1 2020-12-11 Tom Tromey <tromey@adacore.com>
3 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
5 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
6 (read_atcb): Use cpu_id_offset.
8 2020-12-10 Kevin Buettner <kevinb@redhat.com>
10 * ada-lang.c (ada_fold_name): Fix off-by-one error.
12 2020-12-10 Luis Machado <luis.machado@linaro.org>
14 * breakpoint.c (should_be_inserted): Don't output newline.
16 2020-12-10 Luis Machado <luis.machado@linaro.org>
18 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
19 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
20 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
21 * arch/aarch64.h: ... here.
22 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
23 (aarch64_maybe_swab128): New function.
24 (aarch64_sve_regs_copy_to_reg_buf)
25 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
26 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
28 (TF_REG_VALUE_BYTES): New enum value.
29 (trad_frame_value_bytes_p): New function.
30 (trad_frame_set_value_bytes): New function.
31 (trad_frame_set_reg_value_bytes): New function.
32 (trad_frame_get_prev_register): Handle register values saved as bytes.
33 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
34 (struct trad_frame_saved_reg) <data>: New field.
35 (trad_frame_set_value_bytes): New prototype.
36 (trad_frame_value_bytes_p): New prototype.
38 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
40 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
41 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
42 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
44 2020-12-09 Tom Tromey <tromey@adacore.com>
46 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
48 2020-12-09 Tom Tromey <tromey@adacore.com>
50 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
51 and "denominator" to gdb_mpz. Handle block forms.
52 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
53 "denominator" to gdb_mpz.
54 (finish_fixed_point_type): Update.
55 (has_zero_over_zero_small_attribute): Update.
57 2020-12-09 Tom Tromey <tromey@adacore.com>
59 * expprint.c (op_name): Update.
60 * expression.h (enum exp_opcode): Update.
61 * std-operator.def: Add more opcodes.
62 * ada-operator.def, fortran-operator.def: Remove, moving contents
63 into std-operator.def.
65 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
67 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
68 Return {} instead of false.
69 (get_discrete_bounds): Compute high bound only if low bound is
72 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
75 * gdbtypes.c (get_discrete_low_bound): Make non-static.
76 (get_discrete_high_bound): Make non-static.
77 * gdbtypes.h (get_discrete_low_bound): New declaration.
78 (get_discrete_high_bound): New declaration.
79 * valarith.c (value_subscript): Only fetch high bound if
82 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
84 * gdbtypes.c (get_discrete_bounds): Implement with
85 get_discrete_low_bound and get_discrete_high_bound.
86 (get_discrete_low_bound): New.
87 (get_discrete_high_bound): New.
89 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
91 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
93 * gdbtypes.c (get_discrete_bounds): Return bool.
95 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
97 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
98 (ada_value_slice): Adjust.
100 * gdbtypes.c (get_discrete_bounds): Adjust.
101 (discrete_position): Return optional.
102 * gdbtypes.h (discrete_position): Return optional.
104 2020-12-07 Tom Tromey <tromey@adacore.com>
106 * maint.c (_initialize_maint_cmds): Use expression command
107 completer for "maint print type".
109 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
111 * completer.c (complete_explicit_location): Also add keywords
112 that start with '-' to the completion list.
114 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
116 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
117 keyword may be followed by any keyword.
118 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
119 'toklen' in the case for "-force-condition".
121 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
123 * main.c (catch_command_errors): Add a flag parameter; invoke
124 `bpstat_do_actions` if the flag is set.
125 (execute_cmdargs): Update a call to `catch_command_errors`.
127 2020-12-07 Tom de Vries <tdevries@suse.de>
129 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
131 2020-12-06 Tom Tromey <tom@tromey.com>
134 * ada-lang.c (replace_operator_with_call): Rewrite.
136 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
139 * s390-tdep.h (op_bc): Correct BC opcode value.
141 2020-12-06 Joel Brobecker <brobecker@adacore.com>
143 * gmp-utils.h (gdb_mpz::safe_export): New private method.
144 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
145 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
146 (gdb_mpz::safe_export): New method.
147 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
148 Update function description.
149 (check_as_integer_raises_out_of_range_error): New function.
150 (gdb_mpz_as_integer_out_of_range): New function.
151 (_initialize_gmp_utils_selftests): Register
152 gdb_mpz_as_integer_out_of_range as a selftest.
154 2020-12-05 Joel Brobecker <brobecker@adacore.com>
156 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
158 (gdb_mpz::write): Likewise.
160 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
162 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
163 number of displaced step buffers.
165 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
167 * displaced-stepping.h (struct displaced_step_buffer): Rename
169 (struct displaced_step_buffers): ... this.
170 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
171 <struct displaced_step_buffer>: New inner class.
173 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
175 (displaced_step_buffers::prepare): ... this, adjust for multiple
177 (displaced_step_buffer::finish): Rename to...
178 (displaced_step_buffers::finish): ... this, adjust for multiple
180 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
181 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
182 adjust for multiple buffers.
183 (displaced_step_buffer::restore_in_ptid): Rename to...
184 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
186 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
187 for num_disp_step_buffers.
188 * linux-tdep.c (struct linux_gdbarch_data)
189 <num_disp_step_buffers>: New field.
190 (struct linux_info) <disp_step_buf>: Rename to...
191 <disp_step_bufs>: ... this, change type to
192 displaced_step_buffers.
193 (linux_displaced_step_prepare): Use
194 linux_gdbarch_data::num_disp_step_buffers to create that number
196 (linux_displaced_step_finish): Adjust.
197 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
198 (linux_displaced_step_restore_all_in_ptid): Adjust.
199 (linux_init_abi): Change supports_displaced_step parameter for
200 num_disp_step_buffers, save it in linux_gdbarch_data.
201 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
202 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
203 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
204 supports_displaced_step parameter for num_disp_step_buffers.
205 (amd64_linux_init_abi): Adjust.
206 (amd64_x32_linux_init_abi): Adjust.
207 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
208 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
209 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
210 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
211 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
212 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
213 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
214 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
215 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
216 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
217 * m68k-linux-tdep.c (m68k_linux_init_abi):
218 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
219 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
220 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
221 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
222 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
223 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
224 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
225 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
226 Change type to displaced_step_buffers.
227 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
228 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
229 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
230 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
231 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
232 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
233 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
235 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
237 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
239 (_initialize_linux_tdep): Register pre-init gdb data instead of
242 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
244 * displaced-stepping.h (struct
245 displaced_step_copy_insn_closure): Adjust comments.
246 (struct displaced_step_inferior_state) <step_thread,
247 step_gdbarch, step_closure, step_original, step_copy,
248 step_saved_copy>: Remove fields.
249 (struct displaced_step_thread_state): New.
250 (struct displaced_step_buffer): New.
251 * displaced-stepping.c (displaced_step_buffer::prepare): New.
252 (write_memory_ptid): Move from infrun.c.
253 (displaced_step_instruction_executed_successfully): New,
254 factored out of displaced_step_finish.
255 (displaced_step_buffer::finish): New.
256 (displaced_step_buffer::copy_insn_closure_by_addr): New.
257 (displaced_step_buffer::restore_in_ptid): New.
258 * gdbarch.sh (displaced_step_location): Remove.
259 (displaced_step_prepare, displaced_step_finish,
260 displaced_step_copy_insn_closure_by_addr,
261 displaced_step_restore_all_in_ptid): New.
262 * gdbarch.c: Re-generate.
263 * gdbarch.h: Re-generate.
264 * gdbthread.h (class thread_info) <displaced_step_state>: New
266 (thread_step_over_chain_remove): New declaration.
267 (thread_step_over_chain_next): New declaration.
268 (thread_step_over_chain_length): New declaration.
269 * thread.c (thread_step_over_chain_remove): Make non-static.
270 (thread_step_over_chain_next): New.
271 (global_thread_step_over_chain_next): Use
272 thread_step_over_chain_next.
273 (thread_step_over_chain_length): New.
274 (global_thread_step_over_chain_enqueue): Add debug print.
275 (global_thread_step_over_chain_remove): Add debug print.
276 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
278 * infrun.c (get_displaced_stepping_state): New.
279 (displaced_step_in_progress_any_inferior): Remove.
280 (displaced_step_in_progress_thread): Adjust.
281 (displaced_step_in_progress): Adjust.
282 (displaced_step_in_progress_any_thread): New.
283 (get_displaced_step_copy_insn_closure_by_addr): Remove.
284 (gdbarch_supports_displaced_stepping): Use
285 gdbarch_displaced_step_prepare_p.
286 (displaced_step_reset): Change parameter from inferior to
288 (displaced_step_prepare_throw): Implement using
289 gdbarch_displaced_step_prepare.
290 (write_memory_ptid): Move to displaced-step.c.
291 (displaced_step_restore): Remove.
292 (displaced_step_finish): Implement using
293 gdbarch_displaced_step_finish.
294 (start_step_over): Allow starting more than one displaced step.
295 (prepare_for_detach): Handle possibly multiple threads doing
297 (handle_inferior_event): Handle possibility that fork event
298 happens while another thread displaced steps.
299 * linux-tdep.h (linux_displaced_step_prepare): New.
300 (linux_displaced_step_finish): New.
301 (linux_displaced_step_copy_insn_closure_by_addr): New.
302 (linux_displaced_step_restore_all_in_ptid): New.
303 (linux_init_abi): Add supports_displaced_step parameter.
304 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
305 (linux_displaced_step_prepare): New.
306 (linux_displaced_step_finish): New.
307 (linux_displaced_step_copy_insn_closure_by_addr): New.
308 (linux_displaced_step_restore_all_in_ptid): New.
309 (linux_init_abi): Add supports_displaced_step parameter,
310 register displaced step methods if true.
311 (_initialize_linux_tdep): Register inferior_execd observer.
312 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
313 supports_displaced_step parameter, adjust call to
314 linux_init_abi. Remove call to
315 set_gdbarch_displaced_step_location.
316 (amd64_linux_init_abi): Adjust call to
317 amd64_linux_init_abi_common.
318 (amd64_x32_linux_init_abi): Likewise.
319 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
320 linux_init_abi. Remove call to
321 set_gdbarch_displaced_step_location.
322 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
323 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
324 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
326 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
327 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
328 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
329 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
330 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
331 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
332 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
333 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
334 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
335 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
336 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
337 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
338 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
339 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
340 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
341 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
342 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
343 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
344 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
345 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
346 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
347 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
348 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
349 linux_init_abi. Remove call to
350 set_gdbarch_displaced_step_location.
351 * arm-tdep.c (arm_pc_is_thumb): Call
352 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
353 get_displaced_step_copy_insn_closure_by_addr.
354 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
355 clear gdbarch methods.
356 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
357 (get_ppc_per_inferior): New function.
358 (ppc_displaced_step_prepare): New function.
359 (ppc_displaced_step_finish): New function.
360 (ppc_displaced_step_restore_all_in_ptid): New function.
361 (rs6000_gdbarch_init): Register new gdbarch methods.
362 * s390-tdep.c (s390_gdbarch_init): Don't call
363 set_gdbarch_displaced_step_location, set new gdbarch methods.
365 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
367 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
368 * aarch64-tdep.h: Include displaced-stepping.h.
369 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
371 (displaced_step_copy_insn_closure_up): Move here.
372 (struct buf_displaced_step_copy_insn_closure): Move here.
373 (struct displaced_step_inferior_state): Move here.
374 (debug_displaced): Move here.
375 (displaced_debug_printf_1): Move here.
376 (displaced_debug_printf): Move here.
377 * displaced-stepping.c: New file.
378 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
379 * gdbarch.h: Re-generate.
380 * inferior.h: Include displaced-stepping.h.
381 * infrun.h (debug_displaced): Move to displaced-stepping.h.
382 (displaced_debug_printf_1): Likewise.
383 (displaced_debug_printf): Likewise.
384 (struct displaced_step_copy_insn_closure): Likewise.
385 (displaced_step_copy_insn_closure_up): Likewise.
386 (struct buf_displaced_step_copy_insn_closure): Likewise.
387 (struct displaced_step_inferior_state): Likewise.
388 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
389 (displaced_debug_printf_1): Likewise.
390 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
392 (_initialize_infrun): Don't register "set/show debug displaced".
394 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
396 * linux-tdep.c (get_linux_inferior_data): Add inferior
398 (linux_vsyscall_range): Pass current inferior.
400 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
402 * infrun.c (displaced_step_prepare_throw): Change return type to
403 displaced_step_prepare_status.
404 (displaced_step_prepare): Likewise.
405 (displaced_step_finish): Change return type to
406 displaced_step_finish_status.
408 (stop_all_threads): Adjust.
409 * displaced-stepping.h: New file.
411 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
413 * infrun.c (displaced_step_fixup): Rename to...
414 (displaced_step_finish): ... this, update all callers.
416 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
418 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
419 (get_displaced_step_copy_insn_closure_by_addr): ... this.
421 (displaced_step_closure): Rename to...
422 (displaced_step_copy_insn_closure): ... this. Update all users.
423 (displaced_step_closure_up): Rename to...
424 (displaced_step_copy_insn_closure_up). ... this. Update all
426 (buf_displaced_step_closure): Rename to...
427 (buf_displaced_step_copy_insn_closure): ... this. Update all
429 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
430 (get_displaced_step_copy_insn_closure_by_addr): ... this.
432 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
433 (aarch64_displaced_step_copy_insn_closure): ... this. Update
435 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
436 (amd64_displaced_step_copy_insn_closure): ... this. Update all
438 * arm-tdep.h (arm_displaced_step_closure): Rename to...
439 (arm_displaced_step_copy_insn_closure): ... this. Update all
441 * i386-tdep.h (i386_displaced_step_closure): Rename to...
442 (i386_displaced_step_copy_insn_closure): ... this. Update all
444 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
445 (ppc_displaced_step_copy_insn_closure): ... this. Update all
447 * s390-tdep.c (s390_displaced_step_closure): Rename to...
448 (s390_displaced_step_copy_insn_closure): ... this. Update all
450 * gdbarch.h: Re-generate.
451 * gdbarch.c: Re-generate.
453 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
455 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
456 (global_thread_step_over_chain_enqueue): ... this. Update all
458 (thread_step_over_chain_remove): Rename to...
459 (global_thread_step_over_chain_remove): ... this. Update all
461 (thread_step_over_chain_next): Rename to...
462 (global_thread_step_over_chain_next): ... this. Update all
464 * infrun.h (step_over_queue_head): Rename to...
465 (global_thread_step_over_chain_head): ... this. Update all
467 * infrun.c (step_over_queue_head): Rename to...
468 (global_thread_step_over_chain_head): ... this. Update all
470 * thread.c (step_over_chain_remove): Rename to...
471 (thread_step_over_chain_remove): ... this. Update all users.
472 (thread_step_over_chain_next): Rename to...
473 (global_thread_step_over_chain_next): ... this. Update all
475 (thread_step_over_chain_enqueue): Rename to...
476 (global_thread_step_over_chain_enqueue): ... this. Update all
478 (thread_step_over_chain_remove): Rename to...
479 (global_thread_step_over_chain_remove): ... this. Update all
482 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
484 * infrun.c (get_displaced_stepping_state): Remove, change
485 callers to access the field directly.
487 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
489 * infrun.c (handle_inferior_event): Restore displaced step
490 buffer bytes in child process when handling fork, even if fork
491 happened in another thread than the displaced-stepping one.
493 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
495 * infrun.c (infrun_inferior_execd): New function.
496 (_initialize_infrun): Attach inferior_execd observer.
498 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
500 * observable.h (inferior_execd): Declare new observable.
501 * observable.c (inferior_execd): Declare new observable.
502 * infrun.c (follow_exec): Notify inferior_execd observer.
503 * jit.c (jit_inferior_created_hook): Make static.
504 (_initialize_jit): Register inferior_execd observer.
505 * jit.h (jit_inferior_created_hook): Remove declaration.
506 * solib.c (_initialize_solib): Register inferior_execd observer.
508 2020-12-04 Tom de Vries <tdevries@suse.de>
511 * completer.c (completion_tracker::build_completion_result): Don't
512 access match_list[0][-1].
514 2020-12-04 Tom Tromey <tromey@adacore.com>
516 * linespec.c (struct linespec_token): Rename; remove typedef.
517 * guile/scm-block.c (struct block_smob): Remove typedef.
518 (struct block_syms_progress_smob): Likewise.
519 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
520 * guile/scm-symtab.c (symtab_smob): Remove typedef.
521 (struct sal_smob): Remove typedef.
522 * guile/scm-param.c (struct param_smob): Remove typedef.
523 * guile/scm-progspace.c (struct pspace_smob): Rename.
524 * guile/scm-objfile.c (struct objfile_smob): Rename.
525 * guile/scm-iterator.c (struct iterator_smob): Rename.
526 * guile/scm-frame.c (struct frame_smob): Rename.
527 * guile/scm-arch.c (struct arch_smob): Rename.
528 * guile/scm-type.c (struct field_smob): Remove typedef.
529 (struct type_smob): Rename.
530 * guile/scm-cmd.c (struct command_smob): Remove typedef.
531 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
532 * guile/scm-value.c (struct value_smob): Remove typedef.
533 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
534 * guile/guile-internal.h (struct scheme_variable)
535 (struct scheme_function, struct scheme_integer_constant)
536 (struct gdb_smob, struct chained_gdb_smob)
537 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
538 (objfile_smob, pspace_smob, type_smob): Remove typedef.
539 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
540 (struct pretty_printer_worker_smob): Remove typedef.
541 * guile/scm-exception.c (struct exception_smob): Remove typedef.
542 * python/py-block.c (struct block_object): Remove typedef.
543 (block_syms_iterator_object): Update.
545 (block_syms_iterator_object): Remove typedef.
546 * python/py-inferior.c (struct membuf_object): Remove typedef.
547 * python/py-symtab.c (struct symtab_object): Remove typedef.
548 (set_symtab): Update.
549 (sal_object): Remove typedef.
551 * python/py-frame.c (frame_object): Remove typedef.
552 * python/py-record-btrace.c (struct btpy_list_object): Remove
554 * python/py-arch.c (struct arch_object): Remove typedef.
555 * python/py-linetable.c (struct linetable_entry_object)
556 (linetable_object, struct ltpy_iterator_object): Remove typedef.
557 * python/py-events.h (eventregistry_object): Remove typedef.
558 (struct events_object): Remove typedef.
559 * python/python-internal.h (gdbpy_breakpoint_object): Remove
561 (thread_object): Remove typedef.
562 * python/py-progspace.c (pspace_object): Remove typedef.
563 * python/py-value.c (struct value_object): Remove typedef.
564 * python/py-record.h (recpy_record_object): Remove typedef.
565 (struct recpy_element_object): Remove typedef.
566 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
567 * python/py-objfile.c (objfile_object): Remove typedef.
568 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
569 * python/py-type.c (type_object): Remove typedef.
570 (typy_iterator_object): Update.
572 (field_object): Remove typedef.
573 (typy_iterator_object): Remove typedef.
574 * python/py-registers.c (register_descriptor_iterator_object):
576 (struct register_descriptor_object)
577 (struct reggroup_iterator_object, struct reggroup_object): Remove
579 * python/py-record.c (recpy_gap_object): Remove typedef.
580 * python/py-symbol.c (symbol_object): Remove typedef.
581 (set_symbol): Update.
582 * python/py-event.h (event_object): Remove typedef.
583 * python/py-param.c (parmpy_object): Remove typedef.
584 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
585 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
586 (unwind_info_object, struct cached_frame_info): Likewise.
588 2020-12-04 Tom Tromey <tromey@adacore.com>
590 * value.c (value_internal_function_name): Make return type const.
591 * value.h (value_internal_function_name): Make return type const.
593 2020-12-04 Luis Machado <luis.machado@linaro.org>
595 * aarch64-tdep.c (submask, bit, bits): Remove.
596 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
597 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
598 (aarch64_decode_cb, aarch64_decode_tb)
599 (aarch64_decode_ldr_literal): Use sbits to extract a signed
601 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
603 2020-12-04 Tom de Vries <tdevries@suse.de>
606 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
608 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
611 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
612 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
614 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
616 * arch/riscv.c: Include 'rv32e-xregs.c'.
617 (riscv_create_target_description): Update to handle rv32e.
618 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
620 <operator==>: Update to account for new field.
622 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
623 * features/riscv/rv32e-xregs.c: Generated.
624 * features/riscv/rv32e-xregs.xml: New file.
625 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
627 (riscv_debug_infcall): Likewise.
628 (riscv_debug_unwinder): Likewise.
629 (riscv_debug_gdbarch): Likewise.
630 (enum riscv_register_required_status): Delete.
631 (struct riscv_register_feature): Add constructor, delete default
632 constructor, copy, and assign constructors.
633 (struct riscv_register_feature::register_info) <required>: Delete.
634 <check>: Update comment and arguments.
635 (struct riscv_register_feature) <name>: Change to member function.
636 <prefer_first_name>: Delete.
637 <tdesc_feature>: New member function.
638 <registers>: Rename to...
639 <m_registers>: ...this.
640 <m_feature_name>: New member variable.
641 (riscv_register_feature::register_info::check): Update arguments.
642 (riscv_xreg_feature): Rewrite as class, create a single static
643 instance of the class.
644 (riscv_freg_feature): Likewise.
645 (riscv_virtual_feature): Likewise.
646 (riscv_csr_feature): Likewise.
647 (riscv_create_csr_aliases): Has become a member function inside
648 riscv_csr_feature class.
649 (riscv_abi_embedded): New function definition.
650 (riscv_register_name): Adjust to use new feature objects.
651 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
652 and adjust available argument registers.
653 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
654 (riscv_check_tdesc_feature): Delete.
655 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
656 (riscv_gdbarch_init): Delete target description checking code, and
657 instead call to the new feature objects to perform the checks.
658 Reorder handling of no abi information case, allows small code
660 (_initialize_riscv_tdep): Remove call, this is now done in the
661 riscv_csr_feature constructor.
662 * riscv-tdep.h (riscv_abi_embedded): Declare.
664 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
666 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
669 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
671 * riscv-tdep.c (riscv_is_unknown_csr): New function,
672 implementation moved from riscv_register_reggroup_p.
673 (riscv_register_reggroup_p): Update group handling for unknown
676 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
678 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
679 (dwarf2_get_dwz_file): Convert 'filename' to a
680 std::string. Use dwz_search_other_debugdirs to search for DWZ
681 files in the debug-file-directories provided by the user as well.
683 2020-12-01 Tom Tromey <tom@tromey.com>
685 * parse.c (expr_builder::expr_builder): Initialize expout.
686 (expr_builder::release): Use expression::resize.
687 (expression::expression, expression::~expression)
688 (expression::resize): New methods.
689 (write_exp_elt): Use expression::resize.
690 (prefixify_expression): Update.
691 (increase_expout_size): Use expression::resize.
692 * expression.h (struct expression): Add constructor, destructor.
693 <resize>: New method.
694 (expression_up): Change type.
696 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
697 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
698 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
701 2020-11-30 Tom de Vries <tdevries@suse.de>
704 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
705 is_reference parameter.
706 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
708 2020-11-30 Tom Tromey <tom@tromey.com>
710 * rust-lang.c (rust_op_name): Remove.
711 (exp_descriptor_rust): Update.
712 * parser-defs.h (op_name_standard): Don't declare.
713 (struct exp_descriptor) <op_name>: Remove.
714 * parse.c (exp_descriptor_standard): Update.
715 * opencl-lang.c (exp_descriptor_opencl): Update.
716 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
717 * f-lang.c (op_name_f): Remove.
718 (f_language::exp_descriptor_tab): Update.
719 * expression.h (op_name): Update.
720 * expprint.c (op_name): Rewrite.
721 (op_name_standard): Remove.
722 (dump_raw_expression, dump_subexp): Update.
723 * c-lang.c (exp_descriptor_c): Update.
724 * ax-gdb.c (gen_expr): Update.
725 * ada-lang.c (ada_op_name): Remove.
726 (ada_exp_descriptor): Update.
728 2020-11-30 Tom Tromey <tom@tromey.com>
730 * eval.c (init_array_element): Remove.
731 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
733 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
736 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
737 static locator win info.
739 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
741 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
744 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
746 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
747 is always initialized.
749 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
750 * MAINTAINERS (Write After Approval): Add myself.
752 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
754 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
755 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
757 2020-11-25 Tom Tromey <tom@tromey.com>
759 * eval.c (evaluate_subexp_standard): Remove unnecessary
762 2020-11-25 Tom Tromey <tom@tromey.com>
764 * d-lang.c: Include parser-defs.h.
765 * rust-lang.c: Include parser-defs.h.
766 * c-lang.h: Do not include parser-defs.h.
768 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
770 * regcache.h (struct cached_reg): Remove typedef.
772 2020-11-24 Joel Brobecker <brobecker@adacore.com>
774 * README: Fix the URL of the MPFR library.
776 2020-11-24 Joel Brobecker <brobecker@adacore.com>
778 * README: Document the --with-libgmp-prefix configure option.
780 2020-11-24 Joel Brobecker <brobecker@adacore.com>
782 * NEWS: Add entry documenting support for DWARF-based fixed
785 2020-11-24 Joel Brobecker <brobecker@adacore.com>
787 * NEWS: Document that building GDB now requires GMP.
789 2020-11-24 Joel Brobecker <brobecker@adacore.com>
791 * typeprint.c (print_type_scalar): Add handling of
792 TYPE_CODE_FIXED_POINT.
794 2020-11-24 Joel Brobecker <brobecker@adacore.com>
796 * valarith.c (fixed_point_binop): Replace the
797 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
800 2020-11-24 Joel Brobecker <brobecker@adacore.com>
802 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
803 replacing fixed_point_scaling_factor. All callers updated
804 throughout this project.
805 (fixed_point_scaling_factor): Delete declaration.
806 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
807 fixed_point_scaling_factor. Adjust implementation accordingly.
809 2020-11-24 Joel Brobecker <brobecker@adacore.com>
811 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
812 replacing the fixed_point_type_base_type function. All callers
813 updated throughout this project.
814 (fixed_point_type_base_type): Remove declaration.
815 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
816 fixed_point_type_base_type. Adjust implementation accordingly.
818 2020-11-24 Joel Brobecker <brobecker@adacore.com>
820 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
822 (INIT_FIXED_POINT_SPECIFIC): Adjust.
823 (TYPE_FIXED_POINT_INFO): Delete macro.
824 (allocate_fixed_point_type_info): Change return type to void.
825 * gdbtypes.c (copy_type_recursive): Replace the use of
826 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
827 (fixed_point_scaling_factor): Likewise.
828 (allocate_fixed_point_type_info): Change return type to void.
829 Adjust implementation accordingly.
830 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
831 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
833 2020-11-24 Joel Brobecker <brobecker@adacore.com>
835 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
836 into one single gdb::array_view parameter.
837 (gdb_mpz::write): Likewise.
838 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
839 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
840 into one single gdb::array_view parameter.
841 Adjust implementation accordingly.
842 (gdb_mpz::write): Likewise.
843 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
844 * unittests/gmp-utils-selftests.c: Adapt following changes above.
845 * valarith.c, valops.c, valprint.c, value.c: Likewise.
847 2020-11-24 Joel Brobecker <brobecker@adacore.com>
849 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
850 Change return type to std::string. Update all callers.
851 * gmp-utils.c (gmp_string_printf): Likewise.
853 2020-11-24 Joel Brobecker <brobecker@adacore.com>
855 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
856 instead of mpq_set_ui to initialize our GMP rational.
858 2020-11-23 Tom de Vries <tdevries@suse.de>
860 * debuginfod-support.c (debuginfod_source_query)
861 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
863 2020-11-21 Tom Tromey <tom@tromey.com>
865 * breakpoint.c (watchpoint_exp_is_const): Return bool.
867 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
869 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
871 (gdb_mpz_write_all_from_small): Likewise.
873 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
875 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
878 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
880 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
881 ctf_arc_open_by_name.
883 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
885 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
886 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
888 2020-11-20 Pedro Alves <pedro@palves.net>
890 * language.c (language_arch_info::lookup_primitive_type): Use
891 gdb::function_view instead of gdb::function.
892 (template language_lookup_primitive_type): Rename to ...
893 (language_lookup_primitive_type_1): ... this, and make static.
894 (language_lookup_primitive_type(const struct language_defn *,
895 struct gdbarch *, const char *): Make non-template.
896 (language_lookup_primitive_type(const struct language_defn *,
897 struct gdbarch *, std::function<bool (struct type *)>): Make
898 non-template and use gdb::function_view.
899 * language.h (language_arch_info::lookup_primitive_type): Use
900 gdb::function_view instead of std::function.
901 (language_lookup_primitive_type): No longer template.
902 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
903 lambda instead of a std::function.
905 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
908 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
911 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
913 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
915 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
917 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
918 in `loop_cb` parameter.
919 * gdbarch.c: Re-generate.
920 * gdbarch.h: Re-generate.
921 * arch-utils.c (default_read_core_file_mappings): Remove `other`
923 * arch-utils.h (default_read_core_file_mappings): Likewise.
924 * corelow.c (core_target::build_file_mappings): Likewise.
925 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
926 (linux_core_info_proc_mappings): Likewise.
928 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
930 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
931 * NEWS: Mention new options.
932 * f-array-walker.h: New file.
933 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
934 (repack_array_slices): New static global.
935 (show_repack_array_slices): New function.
936 (fortran_array_slicing_debug): New static global.
937 (show_fortran_array_slicing_debug): New function.
938 (value_f90_subarray): Delete.
939 (skip_undetermined_arglist): Delete.
940 (class fortran_array_repacker_base_impl): New class.
941 (class fortran_lazy_array_repacker_impl): New class.
942 (class fortran_array_repacker_impl): New class.
943 (fortran_value_subarray): Complete rewrite.
944 (set_fortran_list): New static global.
945 (show_fortran_list): Likewise.
946 (_initialize_f_language): Register new commands.
947 (fortran_adjust_dynamic_array_base_address_hack): New function.
948 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
950 * f-valprint.c: Include 'f-array-walker.h'.
951 (class fortran_array_printer_impl): New class.
952 (f77_print_array_1): Delete.
953 (f77_print_array): Delete.
954 (fortran_print_array): New.
955 (f_value_print_inner): Update to call fortran_print_array.
956 * gdbtypes.c: Include 'f-lang.h'.
957 (resolve_dynamic_type_internal): Call
958 fortran_adjust_dynamic_array_base_address_hack.
960 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
962 * breakpoint.c (struct watch_options): New struct.
963 (watch_option_defs): New static global.
964 (make_watch_options_def_group): New function.
965 (watch_maybe_just_location): Convert option parsing.
966 (watch_command_completer): New function.
967 (_initialize_breakpoint): Build help text using options mechanism.
969 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
971 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
972 (watch_command_1): Update parameter types. Convert locals to
974 (watch_command_wrapper): Change parameter type.
975 (watch_maybe_just_location): Change locals to bool.
976 (rwatch_command_wrapper): Update parameter type.
977 (awatch_command_wrapper): Update parameter type.
978 * breakpoint.h (watch_command_wrapper): Change parameter type.
979 (rwatch_command_wrapper): Update parameter type.
980 (awatch_command_wrapper): Update parameter type.
981 * eval.c (fetch_subexp_value): Change parameter type.
982 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
984 * value.h (fetch_subexp_value): Change parameter type in
987 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
989 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
992 2020-11-18 Keith Seitz <keiths@redhat.com>
994 * linux-tdep.c (dump_note_entry_p): Return true instead of
997 2020-11-18 Tom de Vries <tdevries@suse.de>
999 * debuginfod-support.c (debuginfod_source_query)
1000 (debuginfod_debuginfo_query): Also do early exit if
1001 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1003 2020-11-18 Tom de Vries <tdevries@suse.de>
1005 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1008 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1010 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1011 callers. Move doc here.
1012 * gdbtypes.c (get_array_bounds): Return bool
1014 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1016 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1018 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1019 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1020 case to the default.
1022 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1024 * printcmd.c: Include 'safe-ctype.c'.
1025 (skip_over_slash_fmt): New function.
1026 (print_command_completer): Call skip_over_slash_fmt.
1027 (display_and_x_command_completer): New function.
1028 (_initialize_printcmd): Add command completion for 'x' and
1031 2020-11-16 Pedro Alves <pedro@palves.net>
1033 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1034 (get_prev_frame_always_1): ... to here.
1035 * inline-frame.c (inline_frame_this_id): Mention
1036 get_prev_frame_always_1 in comment.
1038 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1040 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1042 (value_less): Add fixed-point handling.
1044 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1046 * eval.c (binop_promote): Add fixed-point type handling.
1047 * valarith.c (fixed_point_binop): New function.
1048 (scalar_binop): Add fixed-point type handling.
1049 (value_neg): Add fixed-point type handling.
1050 * valops.c (value_cast_to_fixed_point): New function.
1051 (value_cast): Add fixed-point type handling.
1053 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1055 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1057 * c-typeprint.c (c_type_print_varspec_prefix)
1058 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1059 TYPE_CODE_FIXED_POINT handling.
1060 * p-typeprint.c (pascal_type_print_varspec_prefix)
1061 (pascal_type_print_varspec_suffix): Likewise.
1062 * typeprint.c (print_type_fixed_point): New function.
1063 * typeprint.h (print_type_fixed_point): Add declaration.
1065 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1067 * printcmd.c (print_scalar_formatted): Add fixed-point type
1068 handling when options->format is set.
1070 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1072 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1073 * dwarf2/read.c (get_dwarf2_rational_constant)
1074 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1075 (has_zero_over_zero_small_attribute): New functions.
1076 read_base_type, set_die_type): Add fixed-point type handling.
1077 * gdb-gdb.py.in: Add fixed-point type handling.
1078 * gdbtypes.c: #include "gmp-utils.h".
1079 (create_range_type, set_type_code): Add fixed-point type handling.
1080 (init_fixed_point_type): New function.
1081 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1082 (print_fixed_point_type_info): New function.
1083 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1085 (fixed_point_type_storage): New typedef.
1086 (fixed_point_objfile_key): New static global.
1087 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1088 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1090 * gdbtypes.h: #include "gmp-utils.h".
1091 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1092 (union type_specific) <fixed_point_info>: New field.
1093 (struct fixed_point_type_info): New struct.
1094 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1095 (init_fixed_point_type, is_fixed_point_type)
1096 (fixed_point_type_base_type, fixed_point_scaling_factor)
1097 (allocate_fixed_point_type_info): Add declarations.
1098 * valprint.c (generic_val_print_fixed_point): New function.
1099 (generic_value_print): Add fixed-point type handling.
1100 * value.c (value_as_address, unpack_long): Add fixed-point type
1103 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1105 * utils.h (uinteger_pow): Add declaration.
1106 * utils.c (uinteger_pow): Moved here (without changes)...
1107 * valarith.c (uinteger_pow): ... from here.
1109 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1111 * gmp-utils.h, gmp-utils.c: New file.
1112 * unittests/gmp-utils-selftests.c: New file.
1113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1114 unittests/gmp-utils-selftests.c.
1115 (COMMON_SFILES) Add gmp-utils.c.
1116 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1118 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1120 * configure.ac: Generate an error if a usable GMP library
1122 * configure: Regenerate.
1124 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1126 * configure.ac: Add support for --with-libgmp-prefix.
1127 * Makefile.in (LIBGMP): New variable.
1128 (CLIBS): Include $(LIBGMP).
1129 * configure, config.in: Regenerate
1131 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1134 * f-exp.y (COMPLETE): New token.
1135 (exp): Two new rules for tab-completion.
1136 (saw_name_at_eof): New static global.
1137 (last_was_structop): Likewise.
1138 (yylex): Set new variables, and return COMPLETE token at the end
1139 of the input stream in some cases.
1141 2020-11-14 Tom Tromey <tom@tromey.com>
1143 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1145 2020-11-14 Tom Tromey <tom@tromey.com>
1147 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1149 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1151 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1153 2020-11-13 Tom Tromey <tom@tromey.com>
1155 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1156 (convert_escape, parse_one_string): Constify.
1158 2020-11-13 Keith Seitz <keiths@redhat.com>
1160 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1161 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1162 outside of ELF segments" warning for debugin
1164 2020-11-13 Keith Seitz <keiths@redhat.com>
1167 * elfread.c (elf_symfile_segments): Output a BFD file name
1168 for the "Loadable section ... outside of ELF segments" warning.
1170 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1173 * arm-tdep.c (class arm_instruction_reader): New.
1174 (target_arm_instruction_reader): New.
1175 (arm_analyze_prologue): Add instruction reader parameter and use
1176 it. Use arm_expand_immediate.
1177 (class target_arm_instruction_reader): Adjust.
1178 (arm_skip_prologue): Adjust.
1179 (arm_expand_immediate): New.
1180 (arm_scan_prologue): Adjust.
1181 (arm_analyze_prologue_test): New.
1182 (class test_arm_instruction_reader): New.
1184 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1186 * f-lang.c (fortran_argument_convert): Add declaration. Add
1187 header comment, taken from f-lang.h. Make static.
1188 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1189 (fortran_argument_convert): Delete declaration.
1191 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1193 * ada-exp.y (find_primitive_type): Make parameter const.
1194 * ada-lang.c (enum ada_primitive_types): Delete.
1195 (ada_language::language_arch_info): Update.
1196 * c-lang.c (enum c_primitive_types): Delete.
1197 (c_language_arch_info): Update.
1198 (enum cplus_primitive_types): Delete.
1199 (cplus_language::language_arch_info): Update.
1200 * d-lang.c (enum d_primitive_types): Delete.
1201 (d_language::language_arch_info): Update.
1202 * f-lang.c (enum f_primitive_types): Delete.
1203 (f_language::language_arch_info): Update.
1204 * go-lang.c (enum go_primitive_types): Delete.
1205 (go_language::language_arch_info): Update.
1206 * language.c (auto_or_unknown_language::language_arch_info):
1208 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1209 (language_string_char_type): Add header comment, call function in
1211 (language_bool_type): Likewise
1212 (language_arch_info::bool_type): Define.
1213 (language_lookup_primitive_type_1): Delete.
1214 (language_lookup_primitive_type): Rewrite as a templated function
1215 to call function in language_arch_info, then instantiate twice.
1216 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1217 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1218 (language_arch_info::lookup_primitive_type): Define twice with
1219 different signatures.
1220 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1221 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1222 member function in language_arch_info.
1223 * language.h (language_arch_info): Complete rewrite.
1224 (language_lookup_primitive_type): Make templated.
1225 * m2-lang.c (enum m2_primitive_types): Delete.
1226 (m2_language::language_arch_info): Update.
1227 * opencl-lang.c (OCL_P_TYPE): Delete.
1228 (enum opencl_primitive_types): Delete.
1229 (opencl_type_data): Delete.
1230 (builtin_opencl_type): Delete.
1231 (lookup_opencl_vector_type): Update.
1232 (opencl_language::language_arch_info): Update, lots of content
1234 (build_opencl_types): ...here. This function is now deleted.
1235 (_initialize_opencl_language): Delete.
1236 * p-lang.c (enum pascal_primitive_types): Delete.
1237 (pascal_language::language_arch_info): Update.
1238 * rust-lang.c (enum rust_primitive_types): Delete.
1239 (rust_language::language_arch_info): Update.
1241 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1243 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1246 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1248 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1251 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1253 * dwarf2/read.c (dwarf_read_debug_printf,
1254 dwarf_read_debug_printf_v): New macros, use throughout the file.
1256 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1259 * arc-linux-tdep.c (collect_register): Populate "eret" by
1260 "pc" value from the regcache when asked for "pc" value.
1262 2020-11-12 Tom Tromey <tom@tromey.com>
1265 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1268 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1270 * features/Makefile (XMLTOC): Add rx.xml.
1271 (FEATURE_XMLFILES): Remove rx.xml.
1272 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1273 * features/rx.c: Regenerate.
1274 * features/rx.xml: Wrap in `target` tags, and reindent.
1275 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1277 (maint_print_c_tdesc_opt_def): New typedef.
1278 (maint_print_c_tdesc_opt_defs): New static global.
1279 (make_maint_print_c_tdesc_options_def_group): New function.
1280 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1281 print single feature C file for target descriptions containing a
1283 (maint_print_c_tdesc_cmd_completer): New function.
1284 (_initialize_target_descriptions): Update call to register command
1285 completer, and include command line flag in help text.
1287 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1289 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1291 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1294 2020-11-10 Tom Tromey <tom@tromey.com>
1296 * value.h (internalvar_name): Update.
1297 * value.c (internalvar_name): Make return type const.
1299 2020-11-10 Tom Tromey <tom@tromey.com>
1301 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1302 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1305 2020-11-10 Tom Tromey <tom@tromey.com>
1307 * objc-lang.h (value_nsstring): Update.
1308 * objc-lang.c (value_nsstring): Make "ptr" const.
1310 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1312 * expprint.c (print_subexp_funcall): Increment expression position
1313 after reading argument count.
1314 * f-lang.c (print_subexp_f): Skip over opcode before calling
1316 (dump_subexp_body_f): Likewise.
1318 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1321 * configure: Regenerate.
1322 * configure.ac: Check for python modules ctypes instead of
1325 2020-11-06 Pedro Alves <pedro@palves.net>
1327 * macroexp.c (struct macro_buffer): Split in two classes. Add
1329 (struct shared_macro_buffer): New, factored out from struct
1331 (struct growable_macro_buffer): New, factored out from struct
1333 (set_token, get_comment, get_identifier, get_pp_number)
1334 (get_character_constant, get_string_literal, get_punctuator)
1335 (get_next_token_for_substitution): Constify parameters.
1336 (substitute_args): Constify locals.
1338 2020-11-05 Tom Tromey <tom@tromey.com>
1340 * dwarf2/read.c (read_cutu_die_from_dwo)
1341 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1342 (build_type_psymtabs_1): Update.
1343 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1345 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1346 Don't read section. Add assert.
1348 2020-11-04 Tom Tromey <tromey@adacore.com>
1350 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1352 2020-11-04 Tom Tromey <tromey@adacore.com>
1354 * ada-typeprint.c (ada_print_type): Handle __T types.
1356 2020-11-04 Tom Tromey <tromey@adacore.com>
1358 * dwarf2/read.c (add_partial_symbol, process_die):
1359 Handle DW_TAG_array_type.
1360 (is_type_tag_for_partial): Add "lang" parameter.
1361 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1363 2020-11-04 Tom Tromey <tromey@adacore.com>
1365 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1367 2020-11-04 Tom Tromey <tromey@adacore.com>
1369 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1372 2020-11-04 Tom Tromey <tromey@adacore.com>
1374 * gdbtypes.c (update_static_array_size): Handle bit stride.
1376 2020-11-04 Tom Tromey <tromey@adacore.com>
1378 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1380 2020-11-04 Tom Tromey <tromey@adacore.com>
1382 * ada-lang.c (ada_is_any_packed_array_type): New function.
1383 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1385 2020-11-04 Tom Tromey <tromey@adacore.com>
1387 * dwarf2/read.c (recognize_bound_expression)
1388 (quirk_ada_thick_pointer): New functions.
1389 (read_array_type): Call quirk_ada_thick_pointer.
1390 (set_die_type): Add "skip_data_location" parameter.
1391 (quirk_ada_thick_pointer): New function.
1392 (process_structure_scope): Call quirk_ada_thick_pointer.
1393 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1394 (decode_packed_array_bitsize): Handle thick pointers without
1396 (ada_is_gnat_encoded_packed_array_type): Rename from
1397 ada_is_packed_array_type.
1398 (ada_is_constrained_packed_array_type): Update.
1399 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1400 (ada_value_print_1): Use ada_get_decoded_value.
1402 2020-11-04 Tom Tromey <tromey@adacore.com>
1404 * ada-lang.c (recursively_update_array_bitsize): New function.
1405 (decode_constrained_packed_array_type): Call it.
1407 2020-11-04 Tom Tromey <tromey@adacore.com>
1409 * ada-lang.c (to_fixed_array_type): Error if
1410 decode_constrained_packed_array_type returns NULL.
1412 2020-11-04 Tom Tromey <tromey@adacore.com>
1414 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1416 2020-11-02 Tom Tromey <tromey@adacore.com>
1418 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1419 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1420 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1421 * amd64-ravenscar-thread.c: New file.
1422 * amd64-ravenscar-thread.h: New file.
1423 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1424 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1426 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1428 * main.c (execute_cmdargs): New function.
1429 (captured_main_1): Make use of execute_cmdargs.
1431 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1433 * NEWS: Mention changes to config file search path.
1436 2020-11-02 Tom Tromey <tromey@adacore.com>
1438 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1439 (python_GdbModuleDef): Move earlier. Now static.
1440 (do_start_initialization): Consolidate some IS_PY3K blocks.
1442 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1444 * aarch64-linux-tdep.c: Fix indentation.
1445 * aarch64-ravenscar-thread.c: Fix indentation.
1446 * aarch64-tdep.c: Fix indentation.
1447 * aarch64-tdep.h: Fix indentation.
1448 * ada-lang.c: Fix indentation.
1449 * ada-lang.h: Fix indentation.
1450 * ada-tasks.c: Fix indentation.
1451 * ada-typeprint.c: Fix indentation.
1452 * ada-valprint.c: Fix indentation.
1453 * ada-varobj.c: Fix indentation.
1454 * addrmap.c: Fix indentation.
1455 * addrmap.h: Fix indentation.
1456 * agent.c: Fix indentation.
1457 * aix-thread.c: Fix indentation.
1458 * alpha-bsd-nat.c: Fix indentation.
1459 * alpha-linux-tdep.c: Fix indentation.
1460 * alpha-mdebug-tdep.c: Fix indentation.
1461 * alpha-nbsd-tdep.c: Fix indentation.
1462 * alpha-obsd-tdep.c: Fix indentation.
1463 * alpha-tdep.c: Fix indentation.
1464 * amd64-bsd-nat.c: Fix indentation.
1465 * amd64-darwin-tdep.c: Fix indentation.
1466 * amd64-linux-nat.c: Fix indentation.
1467 * amd64-linux-tdep.c: Fix indentation.
1468 * amd64-nat.c: Fix indentation.
1469 * amd64-obsd-tdep.c: Fix indentation.
1470 * amd64-tdep.c: Fix indentation.
1471 * amd64-windows-tdep.c: Fix indentation.
1472 * annotate.c: Fix indentation.
1473 * arc-tdep.c: Fix indentation.
1474 * arch-utils.c: Fix indentation.
1475 * arch/arm-get-next-pcs.c: Fix indentation.
1476 * arch/arm.c: Fix indentation.
1477 * arm-linux-nat.c: Fix indentation.
1478 * arm-linux-tdep.c: Fix indentation.
1479 * arm-nbsd-tdep.c: Fix indentation.
1480 * arm-pikeos-tdep.c: Fix indentation.
1481 * arm-tdep.c: Fix indentation.
1482 * arm-tdep.h: Fix indentation.
1483 * arm-wince-tdep.c: Fix indentation.
1484 * auto-load.c: Fix indentation.
1485 * auxv.c: Fix indentation.
1486 * avr-tdep.c: Fix indentation.
1487 * ax-gdb.c: Fix indentation.
1488 * ax-general.c: Fix indentation.
1489 * bfin-linux-tdep.c: Fix indentation.
1490 * block.c: Fix indentation.
1491 * block.h: Fix indentation.
1492 * blockframe.c: Fix indentation.
1493 * bpf-tdep.c: Fix indentation.
1494 * break-catch-sig.c: Fix indentation.
1495 * break-catch-syscall.c: Fix indentation.
1496 * break-catch-throw.c: Fix indentation.
1497 * breakpoint.c: Fix indentation.
1498 * breakpoint.h: Fix indentation.
1499 * bsd-uthread.c: Fix indentation.
1500 * btrace.c: Fix indentation.
1501 * build-id.c: Fix indentation.
1502 * buildsym-legacy.h: Fix indentation.
1503 * buildsym.c: Fix indentation.
1504 * c-typeprint.c: Fix indentation.
1505 * c-valprint.c: Fix indentation.
1506 * c-varobj.c: Fix indentation.
1507 * charset.c: Fix indentation.
1508 * cli/cli-cmds.c: Fix indentation.
1509 * cli/cli-decode.c: Fix indentation.
1510 * cli/cli-decode.h: Fix indentation.
1511 * cli/cli-script.c: Fix indentation.
1512 * cli/cli-setshow.c: Fix indentation.
1513 * coff-pe-read.c: Fix indentation.
1514 * coffread.c: Fix indentation.
1515 * compile/compile-cplus-types.c: Fix indentation.
1516 * compile/compile-object-load.c: Fix indentation.
1517 * compile/compile-object-run.c: Fix indentation.
1518 * completer.c: Fix indentation.
1519 * corefile.c: Fix indentation.
1520 * corelow.c: Fix indentation.
1521 * cp-abi.h: Fix indentation.
1522 * cp-namespace.c: Fix indentation.
1523 * cp-support.c: Fix indentation.
1524 * cp-valprint.c: Fix indentation.
1525 * cris-linux-tdep.c: Fix indentation.
1526 * cris-tdep.c: Fix indentation.
1527 * darwin-nat-info.c: Fix indentation.
1528 * darwin-nat.c: Fix indentation.
1529 * darwin-nat.h: Fix indentation.
1530 * dbxread.c: Fix indentation.
1531 * dcache.c: Fix indentation.
1532 * disasm.c: Fix indentation.
1533 * dtrace-probe.c: Fix indentation.
1534 * dwarf2/abbrev.c: Fix indentation.
1535 * dwarf2/attribute.c: Fix indentation.
1536 * dwarf2/expr.c: Fix indentation.
1537 * dwarf2/frame.c: Fix indentation.
1538 * dwarf2/index-cache.c: Fix indentation.
1539 * dwarf2/index-write.c: Fix indentation.
1540 * dwarf2/line-header.c: Fix indentation.
1541 * dwarf2/loc.c: Fix indentation.
1542 * dwarf2/macro.c: Fix indentation.
1543 * dwarf2/read.c: Fix indentation.
1544 * dwarf2/read.h: Fix indentation.
1545 * elfread.c: Fix indentation.
1546 * eval.c: Fix indentation.
1547 * event-top.c: Fix indentation.
1548 * exec.c: Fix indentation.
1549 * exec.h: Fix indentation.
1550 * expprint.c: Fix indentation.
1551 * f-lang.c: Fix indentation.
1552 * f-typeprint.c: Fix indentation.
1553 * f-valprint.c: Fix indentation.
1554 * fbsd-nat.c: Fix indentation.
1555 * fbsd-tdep.c: Fix indentation.
1556 * findvar.c: Fix indentation.
1557 * fork-child.c: Fix indentation.
1558 * frame-unwind.c: Fix indentation.
1559 * frame-unwind.h: Fix indentation.
1560 * frame.c: Fix indentation.
1561 * frv-linux-tdep.c: Fix indentation.
1562 * frv-tdep.c: Fix indentation.
1563 * frv-tdep.h: Fix indentation.
1564 * ft32-tdep.c: Fix indentation.
1565 * gcore.c: Fix indentation.
1566 * gdb_bfd.c: Fix indentation.
1567 * gdbarch.sh: Fix indentation.
1568 * gdbarch.c: Re-generate
1569 * gdbarch.h: Re-generate.
1570 * gdbcore.h: Fix indentation.
1571 * gdbthread.h: Fix indentation.
1572 * gdbtypes.c: Fix indentation.
1573 * gdbtypes.h: Fix indentation.
1574 * glibc-tdep.c: Fix indentation.
1575 * gnu-nat.c: Fix indentation.
1576 * gnu-nat.h: Fix indentation.
1577 * gnu-v2-abi.c: Fix indentation.
1578 * gnu-v3-abi.c: Fix indentation.
1579 * go32-nat.c: Fix indentation.
1580 * guile/guile-internal.h: Fix indentation.
1581 * guile/scm-cmd.c: Fix indentation.
1582 * guile/scm-frame.c: Fix indentation.
1583 * guile/scm-iterator.c: Fix indentation.
1584 * guile/scm-math.c: Fix indentation.
1585 * guile/scm-ports.c: Fix indentation.
1586 * guile/scm-pretty-print.c: Fix indentation.
1587 * guile/scm-value.c: Fix indentation.
1588 * h8300-tdep.c: Fix indentation.
1589 * hppa-linux-nat.c: Fix indentation.
1590 * hppa-linux-tdep.c: Fix indentation.
1591 * hppa-nbsd-nat.c: Fix indentation.
1592 * hppa-nbsd-tdep.c: Fix indentation.
1593 * hppa-obsd-nat.c: Fix indentation.
1594 * hppa-tdep.c: Fix indentation.
1595 * hppa-tdep.h: Fix indentation.
1596 * i386-bsd-nat.c: Fix indentation.
1597 * i386-darwin-nat.c: Fix indentation.
1598 * i386-darwin-tdep.c: Fix indentation.
1599 * i386-dicos-tdep.c: Fix indentation.
1600 * i386-gnu-nat.c: Fix indentation.
1601 * i386-linux-nat.c: Fix indentation.
1602 * i386-linux-tdep.c: Fix indentation.
1603 * i386-nto-tdep.c: Fix indentation.
1604 * i386-obsd-tdep.c: Fix indentation.
1605 * i386-sol2-nat.c: Fix indentation.
1606 * i386-tdep.c: Fix indentation.
1607 * i386-tdep.h: Fix indentation.
1608 * i386-windows-tdep.c: Fix indentation.
1609 * i387-tdep.c: Fix indentation.
1610 * i387-tdep.h: Fix indentation.
1611 * ia64-libunwind-tdep.c: Fix indentation.
1612 * ia64-libunwind-tdep.h: Fix indentation.
1613 * ia64-linux-nat.c: Fix indentation.
1614 * ia64-linux-tdep.c: Fix indentation.
1615 * ia64-tdep.c: Fix indentation.
1616 * ia64-tdep.h: Fix indentation.
1617 * ia64-vms-tdep.c: Fix indentation.
1618 * infcall.c: Fix indentation.
1619 * infcmd.c: Fix indentation.
1620 * inferior.c: Fix indentation.
1621 * infrun.c: Fix indentation.
1622 * iq2000-tdep.c: Fix indentation.
1623 * language.c: Fix indentation.
1624 * linespec.c: Fix indentation.
1625 * linux-fork.c: Fix indentation.
1626 * linux-nat.c: Fix indentation.
1627 * linux-tdep.c: Fix indentation.
1628 * linux-thread-db.c: Fix indentation.
1629 * lm32-tdep.c: Fix indentation.
1630 * m2-lang.c: Fix indentation.
1631 * m2-typeprint.c: Fix indentation.
1632 * m2-valprint.c: Fix indentation.
1633 * m32c-tdep.c: Fix indentation.
1634 * m32r-linux-tdep.c: Fix indentation.
1635 * m32r-tdep.c: Fix indentation.
1636 * m68hc11-tdep.c: Fix indentation.
1637 * m68k-bsd-nat.c: Fix indentation.
1638 * m68k-linux-nat.c: Fix indentation.
1639 * m68k-linux-tdep.c: Fix indentation.
1640 * m68k-tdep.c: Fix indentation.
1641 * machoread.c: Fix indentation.
1642 * macrocmd.c: Fix indentation.
1643 * macroexp.c: Fix indentation.
1644 * macroscope.c: Fix indentation.
1645 * macrotab.c: Fix indentation.
1646 * macrotab.h: Fix indentation.
1647 * main.c: Fix indentation.
1648 * mdebugread.c: Fix indentation.
1649 * mep-tdep.c: Fix indentation.
1650 * mi/mi-cmd-catch.c: Fix indentation.
1651 * mi/mi-cmd-disas.c: Fix indentation.
1652 * mi/mi-cmd-env.c: Fix indentation.
1653 * mi/mi-cmd-stack.c: Fix indentation.
1654 * mi/mi-cmd-var.c: Fix indentation.
1655 * mi/mi-cmds.c: Fix indentation.
1656 * mi/mi-main.c: Fix indentation.
1657 * mi/mi-parse.c: Fix indentation.
1658 * microblaze-tdep.c: Fix indentation.
1659 * minidebug.c: Fix indentation.
1660 * minsyms.c: Fix indentation.
1661 * mips-linux-nat.c: Fix indentation.
1662 * mips-linux-tdep.c: Fix indentation.
1663 * mips-nbsd-tdep.c: Fix indentation.
1664 * mips-tdep.c: Fix indentation.
1665 * mn10300-linux-tdep.c: Fix indentation.
1666 * mn10300-tdep.c: Fix indentation.
1667 * moxie-tdep.c: Fix indentation.
1668 * msp430-tdep.c: Fix indentation.
1669 * namespace.h: Fix indentation.
1670 * nat/fork-inferior.c: Fix indentation.
1671 * nat/gdb_ptrace.h: Fix indentation.
1672 * nat/linux-namespaces.c: Fix indentation.
1673 * nat/linux-osdata.c: Fix indentation.
1674 * nat/netbsd-nat.c: Fix indentation.
1675 * nat/x86-dregs.c: Fix indentation.
1676 * nbsd-nat.c: Fix indentation.
1677 * nbsd-tdep.c: Fix indentation.
1678 * nios2-linux-tdep.c: Fix indentation.
1679 * nios2-tdep.c: Fix indentation.
1680 * nto-procfs.c: Fix indentation.
1681 * nto-tdep.c: Fix indentation.
1682 * objfiles.c: Fix indentation.
1683 * objfiles.h: Fix indentation.
1684 * opencl-lang.c: Fix indentation.
1685 * or1k-tdep.c: Fix indentation.
1686 * osabi.c: Fix indentation.
1687 * osabi.h: Fix indentation.
1688 * osdata.c: Fix indentation.
1689 * p-lang.c: Fix indentation.
1690 * p-typeprint.c: Fix indentation.
1691 * p-valprint.c: Fix indentation.
1692 * parse.c: Fix indentation.
1693 * ppc-linux-nat.c: Fix indentation.
1694 * ppc-linux-tdep.c: Fix indentation.
1695 * ppc-nbsd-nat.c: Fix indentation.
1696 * ppc-nbsd-tdep.c: Fix indentation.
1697 * ppc-obsd-nat.c: Fix indentation.
1698 * ppc-ravenscar-thread.c: Fix indentation.
1699 * ppc-sysv-tdep.c: Fix indentation.
1700 * ppc64-tdep.c: Fix indentation.
1701 * printcmd.c: Fix indentation.
1702 * proc-api.c: Fix indentation.
1703 * producer.c: Fix indentation.
1704 * producer.h: Fix indentation.
1705 * prologue-value.c: Fix indentation.
1706 * prologue-value.h: Fix indentation.
1707 * psymtab.c: Fix indentation.
1708 * python/py-arch.c: Fix indentation.
1709 * python/py-bpevent.c: Fix indentation.
1710 * python/py-event.c: Fix indentation.
1711 * python/py-event.h: Fix indentation.
1712 * python/py-finishbreakpoint.c: Fix indentation.
1713 * python/py-frame.c: Fix indentation.
1714 * python/py-framefilter.c: Fix indentation.
1715 * python/py-inferior.c: Fix indentation.
1716 * python/py-infthread.c: Fix indentation.
1717 * python/py-objfile.c: Fix indentation.
1718 * python/py-prettyprint.c: Fix indentation.
1719 * python/py-registers.c: Fix indentation.
1720 * python/py-signalevent.c: Fix indentation.
1721 * python/py-stopevent.c: Fix indentation.
1722 * python/py-stopevent.h: Fix indentation.
1723 * python/py-threadevent.c: Fix indentation.
1724 * python/py-tui.c: Fix indentation.
1725 * python/py-unwind.c: Fix indentation.
1726 * python/py-value.c: Fix indentation.
1727 * python/py-xmethods.c: Fix indentation.
1728 * python/python-internal.h: Fix indentation.
1729 * python/python.c: Fix indentation.
1730 * ravenscar-thread.c: Fix indentation.
1731 * record-btrace.c: Fix indentation.
1732 * record-full.c: Fix indentation.
1733 * record.c: Fix indentation.
1734 * reggroups.c: Fix indentation.
1735 * regset.h: Fix indentation.
1736 * remote-fileio.c: Fix indentation.
1737 * remote.c: Fix indentation.
1738 * reverse.c: Fix indentation.
1739 * riscv-linux-tdep.c: Fix indentation.
1740 * riscv-ravenscar-thread.c: Fix indentation.
1741 * riscv-tdep.c: Fix indentation.
1742 * rl78-tdep.c: Fix indentation.
1743 * rs6000-aix-tdep.c: Fix indentation.
1744 * rs6000-lynx178-tdep.c: Fix indentation.
1745 * rs6000-nat.c: Fix indentation.
1746 * rs6000-tdep.c: Fix indentation.
1747 * rust-lang.c: Fix indentation.
1748 * rx-tdep.c: Fix indentation.
1749 * s12z-tdep.c: Fix indentation.
1750 * s390-linux-tdep.c: Fix indentation.
1751 * score-tdep.c: Fix indentation.
1752 * ser-base.c: Fix indentation.
1753 * ser-mingw.c: Fix indentation.
1754 * ser-uds.c: Fix indentation.
1755 * ser-unix.c: Fix indentation.
1756 * serial.c: Fix indentation.
1757 * sh-linux-tdep.c: Fix indentation.
1758 * sh-nbsd-tdep.c: Fix indentation.
1759 * sh-tdep.c: Fix indentation.
1760 * skip.c: Fix indentation.
1761 * sol-thread.c: Fix indentation.
1762 * solib-aix.c: Fix indentation.
1763 * solib-darwin.c: Fix indentation.
1764 * solib-frv.c: Fix indentation.
1765 * solib-svr4.c: Fix indentation.
1766 * solib.c: Fix indentation.
1767 * source.c: Fix indentation.
1768 * sparc-linux-tdep.c: Fix indentation.
1769 * sparc-nbsd-tdep.c: Fix indentation.
1770 * sparc-obsd-tdep.c: Fix indentation.
1771 * sparc-ravenscar-thread.c: Fix indentation.
1772 * sparc-tdep.c: Fix indentation.
1773 * sparc64-linux-tdep.c: Fix indentation.
1774 * sparc64-nbsd-tdep.c: Fix indentation.
1775 * sparc64-obsd-tdep.c: Fix indentation.
1776 * sparc64-tdep.c: Fix indentation.
1777 * stabsread.c: Fix indentation.
1778 * stack.c: Fix indentation.
1779 * stap-probe.c: Fix indentation.
1780 * stubs/ia64vms-stub.c: Fix indentation.
1781 * stubs/m32r-stub.c: Fix indentation.
1782 * stubs/m68k-stub.c: Fix indentation.
1783 * stubs/sh-stub.c: Fix indentation.
1784 * stubs/sparc-stub.c: Fix indentation.
1785 * symfile-mem.c: Fix indentation.
1786 * symfile.c: Fix indentation.
1787 * symfile.h: Fix indentation.
1788 * symmisc.c: Fix indentation.
1789 * symtab.c: Fix indentation.
1790 * symtab.h: Fix indentation.
1791 * target-float.c: Fix indentation.
1792 * target.c: Fix indentation.
1793 * target.h: Fix indentation.
1794 * tic6x-tdep.c: Fix indentation.
1795 * tilegx-linux-tdep.c: Fix indentation.
1796 * tilegx-tdep.c: Fix indentation.
1797 * top.c: Fix indentation.
1798 * tracefile-tfile.c: Fix indentation.
1799 * tracepoint.c: Fix indentation.
1800 * tui/tui-disasm.c: Fix indentation.
1801 * tui/tui-io.c: Fix indentation.
1802 * tui/tui-regs.c: Fix indentation.
1803 * tui/tui-stack.c: Fix indentation.
1804 * tui/tui-win.c: Fix indentation.
1805 * tui/tui-winsource.c: Fix indentation.
1806 * tui/tui.c: Fix indentation.
1807 * typeprint.c: Fix indentation.
1808 * ui-out.h: Fix indentation.
1809 * unittests/copy_bitwise-selftests.c: Fix indentation.
1810 * unittests/memory-map-selftests.c: Fix indentation.
1811 * utils.c: Fix indentation.
1812 * v850-tdep.c: Fix indentation.
1813 * valarith.c: Fix indentation.
1814 * valops.c: Fix indentation.
1815 * valprint.c: Fix indentation.
1816 * valprint.h: Fix indentation.
1817 * value.c: Fix indentation.
1818 * value.h: Fix indentation.
1819 * varobj.c: Fix indentation.
1820 * vax-tdep.c: Fix indentation.
1821 * windows-nat.c: Fix indentation.
1822 * windows-tdep.c: Fix indentation.
1823 * xcoffread.c: Fix indentation.
1824 * xml-syscall.c: Fix indentation.
1825 * xml-tdesc.c: Fix indentation.
1826 * xstormy16-tdep.c: Fix indentation.
1827 * xtensa-config.c: Fix indentation.
1828 * xtensa-linux-nat.c: Fix indentation.
1829 * xtensa-linux-tdep.c: Fix indentation.
1830 * xtensa-tdep.c: Fix indentation.
1832 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1833 Craig Blackmore <craig.blackmore@embecosm.com>
1835 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1836 as an unsigned value.
1838 2020-11-01 Tom Tromey <tom@tromey.com>
1840 * dbxread.c (dbx_end_psymtab): Update.
1841 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1842 (build_type_psymtabs_reader): Update.
1843 * xcoffread.c (xcoff_end_psymtab): Update.
1844 * ctfread.c (scan_partial_symbols): Update.
1845 * psymtab.c (sort_pst_symbols): Remove.
1846 (partial_symtab::end): Rename from end_psymtab_common. Inline
1848 * psympriv.h (struct partial_symtab) <end>: New method.
1849 (end_psymtab_common): Don't declare.
1851 2020-11-01 Tom Tromey <tom@tromey.com>
1853 * symmisc.c (count_psyms): New function.
1854 (print_objfile_statistics): Use it.
1855 * psymtab.c (append_psymbol_to_list): Remove.
1856 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1857 * objfiles.h (struct objstats) <n_psyms>: Remove.
1859 2020-11-01 Tom Tromey <tom@tromey.com>
1861 * dbxread.c (dbx_end_psymtab): Update.
1862 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1863 (build_type_psymtabs_reader): Update.
1864 * xcoffread.c (xcoff_end_psymtab): Update.
1865 * ctfread.c (scan_partial_symbols): Update.
1866 * psympriv.h (end_psymtab_common): Update.
1867 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1868 (sort_pst_symbols): Likewise.
1870 2020-11-01 Tom Tromey <tom@tromey.com>
1872 * dbxread.c (dbx_symfile_read): Update.
1873 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1874 * xcoffread.c (xcoff_initial_scan): Update.
1875 * psympriv.h (init_psymbol_list): Don't declare.
1876 * psymtab.c (init_psymbol_list): Remove.
1878 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1880 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1881 gnat_encoded_fixed_type_info. Update all callers.
1883 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1885 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1888 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1890 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1891 cast_from_fixed. Update all callers.
1892 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1894 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1896 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1898 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1899 to print_gnat_encoded_fixed_point_type.
1900 * ada-valprint.c: Likewise.
1902 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1904 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1905 (debug_prefixed_printf): Add check of debug_displaced flag.
1906 * linux-nat.c (linux_nat_debug_printf): Add check of
1907 debug_linux_nat flag.
1909 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1911 * infrun.c (infrun_debug_printf_1): Remove.
1912 (displaced_debug_printf_1): Remove.
1913 (stop_all_threads): Use debug_prefixed_printf.
1914 * infrun.h (infrun_debug_printf_1): Remove.
1915 (infrun_debug_printf): Use debug_prefixed_printf.
1916 (displaced_debug_printf_1): Remove.
1917 (displaced_debug_printf): Use debug_prefixed_printf.
1918 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1919 (linux_nat_debug_printf): Use debug_prefixed_printf.
1921 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1923 * configure: Re-generate.
1924 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1927 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1929 * configure: Re-generate.
1931 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1933 * configure: Re-generate.
1935 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1937 * configure: Re-generate.
1939 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1941 * configure: Re-generate.
1943 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1945 * acinclude.m4: Modernize.
1946 * configure: Re-generate.
1948 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1950 * configure.ac: Modernize.
1951 * configure: Re-generate.
1953 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1955 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1956 * configure: Re-generate.
1957 * configure.ac: Remove AM_PROG_CC_STDC.
1959 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1961 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1962 AC_CANONICAL_SYSTEM.
1963 * configure: Re-generate.
1965 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1967 * infrun.h (displaced_debug_printf): New macro. Replace
1968 displaced debug prints throughout to use it.
1969 (displaced_debug_printf_1): New declaration.
1970 (displaced_step_dump_bytes): Return string, remove ui_file
1971 parameter, update all callers.
1972 * infrun.c (displaced_debug_printf_1): New function.
1973 (displaced_step_dump_bytes): Return string, remove ui_file
1976 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1978 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1980 2020-10-30 Tom Tromey <tromey@adacore.com>
1982 * Makefile.in (stamp-init): Depend on config.status.
1984 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1986 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1988 2020-10-30 Pedro Alves <pedro@palves.net>
1990 * thread.c (lookup_selected_frame): Move ...
1991 * frame.c (lookup_selected_frame): ... here.
1993 2020-10-30 Pedro Alves <pedro@palves.net>
1995 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1997 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1998 Use save_selected_frame. Save language as well.
1999 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2000 Use restore_selected_frame, and restore language as well.
2001 (selected_frame_id, selected_frame_level): New.
2002 (selected_frame): Update comments.
2003 (save_selected_frame, restore_selected_frame): New.
2004 (get_selected_frame): Use lookup_selected_frame.
2005 (get_selected_frame_if_set): Delete.
2006 (select_frame): Record selected_frame_level and selected_frame_id.
2007 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2009 (get_selected_frame): Make 'message' parameter optional.
2010 (get_selected_frame_if_set): Delete declaration.
2011 (select_frame): Update comments.
2012 (save_selected_frame, restore_selected_frame)
2013 (lookup_selected_frame): Declare.
2014 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2015 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2017 (save_infcall_control_state): Use save_selected_frame.
2018 (restore_selected_frame): Delete.
2019 (restore_infcall_control_state): Use restore_selected_frame.
2020 * stack.c (select_frame_command_core, frame_command_core): Use
2022 * thread.c (restore_selected_frame): Rename to ...
2023 (lookup_selected_frame): ... this and make extern. Select the
2024 current frame if the frame level is -1.
2025 (scoped_restore_current_thread::restore): Also restore the
2027 (scoped_restore_current_thread::~scoped_restore_current_thread):
2029 (scoped_restore_current_thread::scoped_restore_current_thread):
2030 Save the language as well. Use save_selected_frame.
2032 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2034 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2036 * gdbarch.h: Re-generate.
2038 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2040 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2042 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2044 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2046 * arch-utils.c (default_displaced_step_hw_singlestep):
2048 * arch-utils.h (default_displaced_step_hw_singlestep):
2050 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2052 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2054 * gdbarch.c: Re-generate.
2055 * gdbarch.h: Re-generate.
2056 * infrun.c (resume_1): Adjust.
2058 2020-10-29 Tom Tromey <tom@tromey.com>
2060 * progspace.c (program_space::~program_space): Don't call
2063 2020-10-29 Tom Tromey <tom@tromey.com>
2065 * exec.c (exec_target::close): Don't change current program
2068 2020-10-29 Tom Tromey <tom@tromey.com>
2070 * symfile.c (add_symbol_file_command): Update.
2071 * exec.c (program_space::add_target_sections): Rename.
2072 * symfile-mem.c (symbol_file_add_from_memory): Update.
2073 * progspace.h (struct program_space) <add_target_sections>:
2074 Declare new overload.
2075 * exec.h (add_target_sections_of_objfile): Don't declare.
2077 2020-10-29 Tom Tromey <tom@tromey.com>
2079 * solib.c (solib_map_sections): Update.
2080 * exec.c (program_space::add_target_sections): Now a method.
2081 (exec_file_attach): Update.
2082 * exec.h (add_target_sections): Don't declare.
2083 * progspace.h (struct program_space) <add_target_sections>:
2086 2020-10-29 Tom Tromey <tom@tromey.com>
2088 * progspace.h (struct program_space) <remove_target_sections>:
2090 * exec.c (program_space::remove_target_sections): Now a method.
2091 * exec.h (remove_target_sections): Don't declare.
2093 2020-10-29 Tom Tromey <tom@tromey.com>
2095 * inferior.c (delete_inferior): Update.
2096 * progspace.c (program_space::empty): Rename from
2097 program_space_empty_p. Return bool.
2098 * progspace.h (struct program_space) <empty>: New method.
2099 (program_space_empty_p): Don't declare.
2101 2020-10-29 Tom Tromey <tom@tromey.com>
2103 * progspace.c (program_space::~program_space): Don't call
2104 clear_program_space_solib_cache.
2105 (program_space::clear_solib_cache): Rename from
2107 * solib.c (handle_solib_event): Update.
2108 * progspace.h (struct program_space) <clear_solib_cache>: New
2110 (clear_program_space_solib_cache): Don't declare.
2112 2020-10-29 Tom Tromey <tom@tromey.com>
2114 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2115 * target.c (info_target_command): Update.
2116 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2117 (symbol_file_clear, reread_symbols): Update.
2118 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2119 * stabsread.c (scan_file_globals): Update.
2120 * solib.c (update_solib_list): Update.
2121 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2122 (svr4_fetch_objfile_link_map, enable_break)
2123 (svr4_relocate_main_executable)
2124 (svr4_iterate_over_objfiles_in_search_order): Update.
2125 * solib-frv.c (lm_base, enable_break)
2126 (frv_relocate_main_executable): Update.
2127 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2128 (frv_fetch_objfile_link_map): Update.
2129 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2130 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2131 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2132 * remote.c (remote_target::get_offsets): Update.
2133 (remote_target::start_remote)
2134 (extended_remote_target::post_attach): Update.
2135 * objfiles.c (entry_point_address_query): Update.
2136 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2137 * minsyms.c (get_symbol_leading_char): Update.
2138 * frame.c (inside_main_func): Update.
2139 * progspace.h (symfile_objfile): Remove macro.
2141 2020-10-29 Tom Tromey <tom@tromey.com>
2143 * exec.c (exec_file_attach): Update.
2144 * progspace.c (program_space::exec_close): Update.
2145 * progspace.h (struct program_space) <ebfd>: Now a
2147 <set_exec_bfd>: Change argument type.
2150 2020-10-29 Tom Tromey <tom@tromey.com>
2152 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2153 * symfile.c (reread_symbols): Update.
2154 * symfile-mem.c (add_symbol_file_from_memory_command)
2155 (add_vsyscall_page): Update.
2156 * source-cache.c (source_cache::get_plain_source_lines): Update.
2157 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2158 (svr4_current_sos_direct, svr4_exec_displacement)
2159 (svr4_relocate_main_executable): Update.
2160 (svr4_iterate_over_objfiles_in_search_order): Update.
2161 * solib-frv.c (enable_break2, enable_break): Update.
2162 * solib-dsbt.c (lm_base, enable_break): Update.
2163 * solib-darwin.c (find_program_interpreter)
2164 (darwin_solib_create_inferior_hook): Update.
2165 * sol-thread.c (rw_common, ps_pdmodel): Update.
2166 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2167 * remote.c (compare_sections_command)
2168 (remote_target::trace_set_readonly_regions): Update.
2169 * remote-sim.c (get_sim_inferior_data)
2170 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2171 (gdbsim_target_open, gdbsim_target::files_info): Update.
2172 * exec.h (exec_bfd): Remove macro.
2173 * progspace.c (initialize_progspace): Update.
2174 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2176 * nto-procfs.c (nto_procfs_target::post_attach)
2177 (nto_procfs_target::create_inferior): Update.
2178 * maint.c (maintenance_info_sections): Update.
2179 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2181 * infcmd.c (post_create_inferior): Update.
2182 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2183 (objfile_find_memory_regions): Update.
2184 * exec.c (validate_exec_file, exec_file_attach)
2185 (exec_read_partial_read_only, print_section_info): Update.
2186 * corelow.c (core_target_open): Update.
2187 * corefile.c (reopen_exec_file, validate_files): Update.
2188 * arm-tdep.c (gdb_print_insn_arm): Update.
2189 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2190 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2193 2020-10-29 Tom Tromey <tom@tromey.com>
2195 * progspace.h (current_target_sections): Remove macro.
2196 * solib-svr4.c (scan_dyntag): Update.
2197 * solib-dsbt.c (scan_dyntag): Update.
2198 * exec.c (exec_target::close): Update.
2199 (add_target_sections, add_target_sections_of_objfile)
2200 (remove_target_sections, exec_target::get_section_table)
2201 (exec_target::files_info, set_section_command)
2202 (exec_set_section_address, exec_target::has_memory)
2203 (exec_target::has_memory): Update.
2205 2020-10-29 Tom Tromey <tom@tromey.com>
2207 * source-cache.c (source_cache::get_plain_source_lines): Use
2208 current_program_space.
2209 * corefile.c (reopen_exec_file): Use current_program_space.
2210 * exec.c (exec_file_attach): Use current_program_space.
2211 * exec.h (exec_bfd_mtime): Remove.
2213 2020-10-29 Tom Tromey <tom@tromey.com>
2215 * gcore.c (default_gcore_mach): Remove.
2216 (create_gcore_bfd): Update.
2218 2020-10-29 Tom Tromey <tom@tromey.com>
2220 * progspace.c (program_space::exec_close): New method, from
2221 exec_close in exec.c.
2222 * exec.c (exec_close): Move to progspace.c.
2223 (exec_target::close, exec_file_attach): Update.
2224 * progspace.h (struct program_space) <exec_close>: Declare
2227 2020-10-29 Tom Tromey <tom@tromey.com>
2229 * progspace.h (struct program_space) <exec_filename>: Rename from
2230 pspace_exec_filename. Now a unique_xmalloc_ptr.
2231 * inferior.c (print_selected_inferior): Update.
2232 (print_inferior): Update.
2233 * mi/mi-main.c (print_one_inferior): Update.
2234 * exec.h (exec_filename): Remove macro.
2235 * corefile.c (get_exec_file): Update.
2236 * exec.c (exec_close): Update.
2237 (exec_file_attach): Update.
2238 * progspace.c (clone_program_space): Update.
2239 (print_program_space): Update.
2241 2020-10-29 Tom Tromey <tom@tromey.com>
2243 * target-section.h (struct target_section): Add constructor.
2244 * exec.c (build_section_table, add_target_sections_of_objfile):
2246 * corelow.c (core_target::build_file_mappings): Update.
2248 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2251 * inferior.c (detach_inferior_command): Restore the current thread.
2252 (kill_inferior_command): Ditto.
2254 2020-10-28 Tom de Vries <tdevries@suse.de>
2257 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2258 map, check it in the "best match" loop.
2260 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2262 * m32c-tdep.c: Remove unused includes.
2264 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2266 * xtensa-tdep.c: Remove includes.
2268 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2270 * breakpoint.c (struct condition_command_opts): New struct.
2271 (condition_command_option_defs): New static global.
2272 (make_condition_command_options_def_group): New function.
2273 (condition_completer): Update to consider the '-force' flag.
2274 (condition_command): Use gdb::option for the '-force' flag.
2276 2020-10-27 Tom de Vries <tdevries@suse.de>
2278 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2279 symbols in section check.
2281 2020-10-27 Tom de Vries <tdevries@suse.de>
2283 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2285 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2287 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2288 * breakpoint.c: Update the help text of the 'condition' and 'break'
2290 (set_breakpoint_condition): Take a new bool parameter
2291 to control whether condition definition should be forced even when
2292 the condition expression is invalid in all of the current locations.
2293 (condition_command): Update the call to 'set_breakpoint_condition'.
2294 (find_condition_and_thread): Take the "-force-condition" flag into
2296 * linespec.c (linespec_keywords): Add "-force-condition" as an
2298 (FORCE_KEYWORD_INDEX): New #define.
2299 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2301 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2302 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2303 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2304 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2306 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2308 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2309 * breakpoint.c (set_breakpoint_location_condition): New function.
2310 (set_breakpoint_condition): Disable a breakpoint location if parsing
2311 the condition string gives an error.
2312 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2313 (build_target_condition_list): Ditto.
2314 (build_target_command_list): Ditto.
2315 (build_bpstat_chain): Ditto.
2316 (print_one_breakpoint_location): Ditto.
2317 (print_one_breakpoint): Ditto.
2318 (breakpoint_1): Ditto.
2319 (bp_location::bp_location): Ditto.
2320 (locations_are_equal): Ditto.
2321 (update_breakpoint_locations): Ditto.
2322 (enable_disable_bp_num_loc): Ditto.
2323 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2324 (find_condition_and_thread_for_sals): New static function.
2325 (create_breakpoint): Call find_condition_and_thread_for_sals.
2326 (location_to_sals): Call find_condition_and_thread_for_sals instead
2327 of find_condition_and_thread.
2329 2020-10-26 Tom de Vries <tdevries@suse.de>
2331 * dwarf2/read.c (process_full_comp_unit): Call
2332 dwarf2_find_base_address.
2334 2020-10-26 Tom Tromey <tromey@adacore.com>
2336 * gdbtypes.c (create_range_type): Revert previous patch. Add
2339 2020-10-26 Pedro Alves <pedro@palves.net>
2341 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2342 (my_waitpid): Use gdb::handle_eintr.
2344 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2346 * acinclude.m4: Update ptrace.m4 path.
2347 * ptrace.m4: Moved to gdbsupport.
2349 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2351 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2352 instead of target_gdbarch.
2354 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2356 * jit.c (jit_reader_load_command): Pass current inferior.
2357 (jit_inferior_init): Change parameter type to inferior, use it.
2358 (jit_inferior_created): Remove.
2359 (jit_inferior_created_hook): Pass inferior parameter down.
2360 (_initialize_jit): Use jit_inferior_created_hook instead of
2361 jit_inferior_created.
2362 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2363 * infrun.c (follow_exec): Pass inferior to
2364 jit_inferior_created_hook.
2366 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2368 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2369 parameter and use it.
2370 (thread_db_inferior_created): Pass inferior argument.
2372 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2374 * aix-thread.c (aix_thread_inferior_created): Add inferior
2376 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2377 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2378 * jit.c (jit_inferior_created): Likewise.
2379 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2380 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2381 * observable.h (inferior_created): Likewise.
2382 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2383 * symfile-mem.c (add_vsyscall_page): Likewise.
2384 * infcmd.c (post_create_inferior): Pass inferior argument.
2386 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2390 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2392 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2393 to ada_check_typedef.
2395 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2397 * f-exp.y (f_parse): Rename to...
2398 (f_language::parser): ...this.
2399 * f-lang.c (f_get_encoding): Rename to...
2400 (f_language::get_encoding): ...this.
2401 (f_op_print_tab): Rename to...
2402 (f_language::op_print_tab): ...this.
2403 (exp_descriptor_f): Rename to...
2404 (f_language::exp_descriptor_tab): ...this.
2405 (class f_language): Moved to f-lang.h.
2406 (f_language::language_arch_info): New function, moved out of class
2408 (f_language::search_name_hash): Likewise.
2409 (f_language::lookup_symbol_nonlocal): Likewise.
2410 (f_language::get_symbol_name_matcher_inner): Likewise.
2411 * f-lang.h: Add 'valprint.h' include.
2412 (class f_language): Moved here from f-lang.c.
2413 * f-typeprint.c (f_type_print_args): Delete commented out
2415 (f_print_typedef): Rename to...
2416 (f_language::print_typedef): ...this.
2417 (f_print_type): Rename to...
2418 (f_language::print_type): ...this.
2419 (f_type_print_varspec_prefix): Delete declaration and rename to...
2420 (f_language::f_type_print_varspec_prefix): ...this.
2421 (f_type_print_varspec_suffix): Delete declaration and rename to...
2422 (f_language::f_type_print_varspec_suffix): ...this.
2423 (f_type_print_base): Delete declaration and rename to...
2424 (f_language::f_type_print_base): ...this.
2425 * f-valprint.c (f_value_print_inner): Rename to...
2426 (f_language::value_print_inner): ...this.
2427 * parse.c: Delete 'f-lang.h' include.
2429 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2431 * language.h (language_defn::print_type): Add variable names in
2432 declaration, and update header comment.
2434 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2436 * ada-lang.c (ada_language::demangle): Rename to...
2437 (ada_language::demangle_symbol): ...this.
2438 * c-lang.c (cplus_language::demangle): Rename to...
2439 (cplus_language::demangle_symbol): ...this.
2440 * d-lang.c (d_language::demangle): Rename to...
2441 (d_language::demangle_symbol): ...this.
2442 * f-lang.c (f_language::demangle): Rename to...
2443 (f_language::demangle_symbol): ...this.
2444 * go-lang.c (go_language::demangle): Rename to...
2445 (go_language::demangle_symbol): ...this.
2446 * language.c (language_demangle): Update call to demangle_symbol.
2447 (auto_or_unknown_language::demangle): Rename to...
2448 (auto_or_unknown_language::demangle_symbol): ...this.
2449 * language.h (language_defn::demangle): Rename to...
2450 (language_defn::demangle_symbol): ...this.
2451 * objc-lang.c (objc_language::demangle): Rename to...
2452 (objc_language::demangle_symbol): ...this.
2453 * rust-lang.c (rust_language::demangle): Rename to...
2454 (rust_language::demangle_symbol): ...this.
2456 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2458 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2459 (iterate_over_file_blocks): Replace use of macro with the macros
2462 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2464 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2465 * valprint.c (maybe_print_array_index): Replace use of macro with
2466 the macros definition.
2468 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2470 * ada-lang.c (ada_language::print_array_index): Call value_print
2472 * language.c (language_defn::print_array_index): Likewise.
2473 * language.h (LA_VALUE_PRINT): Delete.
2474 * valprint.c (value_print): Call value_print on the
2475 current_language directly.
2477 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2479 * language.h (LA_PRINT_TYPEDEF): Delete.
2480 * typeprint.c (typedef_print): Call print_typedef directly on the
2481 current_language object.
2483 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2485 * m2-exp.y (m2_parse): Rename to...
2486 (m2_language::parser): ...this. Update function signature.
2487 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2488 (m2_op_print): Rename to...
2489 (m2_language::op_print_tab): ...this, and make const.
2490 (exp_descriptor_modula2): Rename to...
2491 (m2_language::exp_descriptor_modula2): ...this.
2492 (class m2_language): Move to m2-lang.h.
2493 (m2_language::language_arch_info): New function, moved out of
2495 (m2_language::printchar): New function, body from m2_printchar.
2496 (m2_language::printstr): New function, moved out of class
2498 (m2_language::emitchar): Likewise.
2499 * m2-lang.h (m2_parse): Delete declaration.
2500 (m2_print_typedef): Delete declaration.
2501 (m2_value_print_inner): Delete declaration.
2502 (class m2_language): Class declaration moved from m2-lang.c,
2503 larger functions are left in m2-lang.c.
2504 * m2-typeprint.c (m2_print_typedef): Rename to...
2505 (m2_language::print_typedef): ...this, and update function
2507 * m2-valprint.c (m2_value_print_inner): Rename to...
2508 (m2_language::value_print_inner): ...this, replace use of
2509 LA_PRINT_STRING with a direct call to printstr member function,
2510 and update recursive call.
2512 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2514 * language.c (default_is_string_type_p): Delete, implementation
2515 moved into auto_or_unknown_language::is_string_type_p.
2516 (unk_op_print_tab): Moved into
2517 auto_or_unknown_language::opcode_print_table.
2518 (unknown_language_arch_info): Delete, implementation moved into
2519 auto_or_unknown_language::language_arch_info.
2520 (class auto_or_unknown_language): New class, member functions
2521 copied from unknown_language class, with some updates.
2522 (class unknown_language): Most member functions moved into
2523 auto_or_unknown_language class. Inherit from
2524 auto_or_unknown_language class.
2525 (class auto_language): Inherit from auto_or_unknown_language.
2526 Delete most member functions.
2528 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2530 * stabsread.c (read_member_functions): Remove gdb_assert.
2532 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2534 * gdbtypes.c (init_complex_type): Check target type name.
2536 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2538 * target-debug.h (target_debug_print_struct_target_ops_p):
2540 (target_debug_print_async_callback_ftype_p): Remove.
2541 (target_debug_print_struct_trace_state_variable_p): Remove.
2542 (target_debug_print_struct_traceframe_info_p): Remove.
2543 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2544 (target_debug_print_enum_btrace_format): Remove.
2545 (target_debug_print_enum_info_proc_what): Remove.
2546 (target_debug_print_thread_info_pp): Remove.
2548 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2550 * target.h (struct target_ops) <make_corefile_notes>:
2551 Change return type to unique pointer.
2552 * target.c (dummy_make_corefile_notes): Likewise.
2553 * exec.c (struct exec_target) <make_corefile_notes>:
2555 (exec_target::make_corefile_notes): Likewise.
2556 * procfs.c (class procfs_target) <make_corefile_notes>:
2558 (procfs_do_thread_registers): Adjust to unique pointer.
2559 (struct procfs_corefile_thread_data): Add constructor.
2560 <note_data>: Change type to unique pointer.
2561 (procfs_corefile_thread_callback): Adjust to unique pointer.
2562 (procfs_target::make_corefile_notes): Change return type to
2564 * target-delegates.c: Re-generate.
2565 * gcore.c (write_gcore_file_1): Adjust.
2566 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2569 2020-10-22 Tom de Vries <tdevries@suse.de>
2571 * block.c (find_block_in_blockvector): Make sure the returned block
2574 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2577 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2579 (load_cu): Pass existing CU.
2580 (process_imported_unit_die): Likewise.
2581 (follow_die_offset): Likewise.
2583 2020-10-22 Luis Machado <luis.machado@linaro.org>
2585 * corelow.c (core_target::xfer_partial): Also check for an empty
2586 m_core_unavailable_mappings vector.
2588 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2590 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2591 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2592 * f-exp.y (arglist): Allow for a series of subranges.
2593 (subrange): Add cases for subranges with strides.
2594 * f-lang.c (value_f90_subarray): Catch use of array strides and
2596 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2598 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2600 * expprint.c (print_subexp_standard): Change enum range_type to
2601 range_flag and rename variables to match.
2602 (dump_subexp_body_standard): Likewise.
2603 * expression.h (enum range_type): Rename to...
2604 (enum range_flag): ...this.
2605 (range_types): Rename to...
2606 (range_flags): ...this.
2607 * f-lang.c (value_f90_subarray): Change enum range_type to
2608 range_flag and rename variables to match.
2609 * parse.c (operator_length_standard): Likewise.
2610 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2611 range_type to range_flag.
2612 * rust-lang.c (rust_evaluate_funcall): Likewise.
2613 (rust_range): Likewise.
2614 (rust_compute_range): Likewise.
2615 (rust_subscript): Likewise.
2617 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2619 * expprint.c (print_subexp_standard): Update to reflect changes to
2621 (dump_subexp_body_standard): Likewise.
2622 * expression.h (enum range_type): Convert to a bit field enum, and
2623 make the enum unsigned.
2624 * f-exp.y (subrange): Update to reflect changes to enum
2626 * f-lang.c (value_f90_subarray): Likewise.
2627 * parse.c (operator_length_standard): Likewise.
2628 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2629 * rust-lang.c (rust_range): Likewise.
2630 (rust_compute_range): Likewise.
2631 (rust_subscript): Likewise.
2633 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2635 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2636 (displaced_step_in_progress): Fix comment.
2638 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2640 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2641 * gdbarch.c: Re-generate.
2642 * gdbarch.h: Re-generate.
2643 * gcore.c (write_gcore_file_1): Adjust.
2644 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2646 <note_data>: Change type to unique pointer.
2647 <abort_iteration>: Change type to bool.
2648 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2649 (fbsd_collect_thread_registers): Return void, adjust.
2650 (struct fbsd_corefile_thread_data): Add construtor.
2651 <note_data>: Change type to unique pointer.
2652 (fbsd_corefile_thread): Adjust.
2653 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2654 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2655 to unique pointer, adjust.
2656 (struct linux_collect_regset_section_cb_data): Add constructor.
2657 <note_data>: Change type to unique pointer.
2658 <abort_iteration>: Change type to bool.
2659 (linux_collect_thread_registers): Return void, adjust.
2660 (struct linux_corefile_thread_data): Add constructor.
2661 <note_data>: Change type to unique pointer.
2662 (linux_corefile_thread): Adjust.
2663 (linux_make_corefile_notes): Return unique pointer, adjust.
2665 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2667 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2668 * gdbarch.c: Re-generate.
2669 * gdbarch.h: Re-generate.
2670 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2672 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2674 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2675 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2676 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2677 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2679 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2681 * gdbarch.sh: Make generated predicates return bool.
2682 * gdbarch.c: Re-generate.
2683 * gdbarch.h: Re-generate.
2685 2020-10-20 Tom Tromey <tom@tromey.com>
2687 * varobj-iter.h (struct varobj_item): Remove typedef.
2689 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2691 * infrun.c (currently_stepping): Change int to bool
2692 (maybe_software_singlestep): Likewise.
2693 (show_stop_on_solib_events): Likewise.
2694 (stepping_past_nonsteppable_watchpoint): Likewise.
2695 (displaced_step_in_progress_any_inferior): Likewise.
2696 (displaced_step_in_progress_thread): Likewise.
2697 (keep_going_stepped_thread): Likewise.
2698 (thread_still_needs_step_over): Likewise.
2699 (start_step_over): Likewise.
2700 (do_target_resume): Likewise.
2701 (resume_1): Likewise.
2702 (clear_proceed_status): Likewise.
2703 (thread_still_needs_step_over_bp): Likewise.
2704 (proceed): Likewise.
2705 (switch_back_to_stepped_thread): Likewise.
2706 (adjust_pc_after_break): Likewise.
2707 (stepped_in_from): Likewise.
2708 (handle_stop_requested): Likewise.
2709 (handle_syscall_event): Likewise.
2710 (handle_no_resumed): Likewise.
2711 (handle_inferior_event): Likewise.
2712 (finish_step_over): Likewise.
2713 (handle_signal_stop): Likewise.
2714 (process_event_stop_test): Likewise.
2716 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2718 * infrun.c (get_displaced_stepping_state): Fix comment.
2720 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2722 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2724 2020-10-19 Tom Tromey <tromey@adacore.com>
2727 * tui/tui-winsource.h (struct tui_source_window_base)
2728 <refresh_window>: Rename from refresh_pad.
2729 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2730 Rename from refresh_pad.
2731 (tui_source_window_base::show_source_content)
2732 (tui_source_window_base::do_scroll_horizontal): Update.
2734 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2736 * thread.c (_initialize_thread): Fine-tune the help text of
2739 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2743 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2745 * breakpoint.c (handle_jit_event): Add an argument, change how
2746 `jit_event_handler` is called.
2748 2020-10-17 Tom Tromey <tom@tromey.com>
2750 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2751 (scan_xcoff_symtab): Update.
2752 * psymtab.h (class psymtab_storage) <global_psymbols,
2753 static_psymbols, current_global_psymbols,
2754 current_static_psymbols>: Remove.
2755 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2756 (match_partial_symbol, lookup_partial_symbol): Update.
2757 (print_partial_symbols): Change parameters.
2758 (dump_psymtab, recursively_search_psymtabs)
2759 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2760 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2762 (end_psymtab_common): Simplify.
2763 (append_psymbol_to_list): Change parameters.
2764 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2765 (init_psymbol_list): Simplify.
2766 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2767 * psympriv.h (struct partial_symtab) <empty>: New method.
2768 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2770 <global_psymbols, static_psymbols>: New members.
2771 <add_psymbol>: New methods.
2772 (add_psymbol_to_list): Don't declare.
2773 (psymbol_placement): Move earlier.
2774 * mdebugread.c (parse_partial_symbols): Update.
2775 (handle_psymbol_enumerators): Change parameters.
2776 (mdebug_expand_psymtab): Update.
2777 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2778 (add_partial_symbol): Update.
2779 * dwarf2/index-write.c (write_psymbols): Change parameters.
2780 (write_one_signatured_type): Update.
2781 (recursively_count_psymbols): Update.
2782 (recursively_write_psymbols): Update.
2783 (class debug_names) <recursively_write_psymbols>: Update.
2784 <write_psymbols>: Change parameters.
2785 <write_one_signatured_type>: Update.
2786 * dbxread.c (read_dbx_symtab): Update.
2787 (dbx_end_psymtab): Use partial_symtab::empty.
2788 * ctfread.c (struct ctf_context) <pst>: New member.
2789 (create_partial_symtab): Set it.
2790 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2791 (scan_partial_symbols): Use the psymtab's context. Update.
2793 2020-10-17 Tom Tromey <tom@tromey.com>
2795 * valprint.c (generic_value_print): Remove comment.
2796 * m2-valprint.c (m2_value_print_inner): Remove comment.
2797 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2800 2020-10-17 Tom de Vries <tdevries@suse.de>
2803 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2806 2020-10-14 Tom de Vries <tdevries@suse.de>
2809 * solib.c (solib_contains_address_p): Handle
2810 'solib->sections == nullptr'.
2812 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2815 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2816 target can't do async.
2817 * target.c (target_wait): Assert that we don't pass
2818 TARGET_WNOHANG to a target that can't async.
2820 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2822 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2823 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2824 * alpha-bsd-nat.c: Adjust include.
2825 * alpha-bsd-tdep.h: Adjust comment.
2826 * alpha-nbsd-tdep.c: Rename to ...
2827 * alpha-netbsd-tdep.c: ... this, adjust include.
2828 * amd64-nbsd-nat.c: Rename to ...
2829 * amd64-netbsd-nat.c: ... this, adjust include.
2830 * amd64-nbsd-tdep.c: Rename to ...
2831 * amd64-netbsd-tdep.c: ... this, adjust include.
2832 * amd64-tdep.h: Adjust include.
2833 * arm-nbsd-nat.c: Rename to ...
2834 * arm-netbsd-nat.c: ... this, adjust include.
2835 * arm-nbsd-tdep.c: Rename to ...
2836 * arm-netbsd-tdep.c: ... this, adjust include.
2837 * arm-nbsd-tdep.h: Rename to ...
2838 * arm-netbsd-tdep.h: ... this, adjust include.
2839 * configure.nat: Adjust file lists.
2840 * configure.tgt: Likewise.
2841 * hppa-nbsd-nat.c: Rename to ...
2842 * hppa-netbsd-nat.c: ... this, adjust include.
2843 * hppa-nbsd-tdep.c: Rename to ...
2844 * hppa-netbsd-tdep.c: ... this, adjust include.
2845 * i386-nbsd-nat.c: Rename to ...
2846 * i386-netbsd-nat.c: ... this, adjust include.
2847 * i386-nbsd-tdep.c: Rename to ...
2848 * i386-netbsd-tdep.c: ... this, adjust include.
2849 * m68k-bsd-nat.c: Adjust include.
2850 * mips-nbsd-nat.c: Rename to ...
2851 * mips-netbsd-nat.c: ... this, adjust include.
2852 * mips-nbsd-tdep.c: Rename to ...
2853 * mips-netbsd-tdep.c: ... this, adjust include.
2854 * mips-nbsd-tdep.h: Rename to ...
2855 * mips-netbsd-tdep.h: ... this.
2856 * nbsd-nat.c: Rename to ...
2857 * netbsd-nat.c: ... this, adjust include.
2858 * nbsd-nat.h: Rename to ...
2859 * netbsd-nat.h: ... this, adjust include.
2860 * nbsd-tdep.c: Rename to ...
2861 * netbsd-tdep.c: ... this, adjust include.
2862 * nbsd-tdep.h: Rename to ...
2863 * netbsd-tdep.h: ... this.
2864 * ppc-nbsd-nat.c: Rename to ...
2865 * ppc-netbsd-nat.c: ... this, adjust include.
2866 * ppc-nbsd-tdep.c: Rename to ...
2867 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2868 * ppc-nbsd-tdep.h: Rename to ...
2869 * ppc-netbsd-tdep.h: ... this.
2870 * sh-nbsd-nat.c: Rename to ...
2871 * sh-netbsd-nat.c: ... this, adjust include.
2872 * sh-nbsd-tdep.c: Rename to ...
2873 * sh-netbsd-tdep.c: ... this, adjust include.
2874 * sparc-nbsd-nat.c: Rename to ...
2875 * sparc-netbsd-nat.c: ... this.
2876 * sparc-nbsd-tdep.c: Rename to ...
2877 * sparc-netbsd-tdep.c: ... this, adjust include.
2878 * sparc64-nbsd-nat.c: Rename to ...
2879 * sparc64-netbsd-nat.c: ... this.
2880 * sparc64-nbsd-tdep.c: Rename to ...
2881 * sparc64-netbsd-tdep.c: ... this, adjust include.
2882 * sparc64-tdep.h: Adjust comment.
2883 * vax-bsd-nat.c: Adjust include.
2884 * vax-nbsd-tdep.c: Rename to ...
2885 * vax-netbsd-tdep.c: ... this, adjust include.
2887 2020-10-12 Tom Tromey <tom@tromey.com>
2889 * target.h (struct target_ops) <get_section_table>: Update.
2890 (target_get_section_table): Update.
2891 * target.c (target_get_section_table, target_section_by_addr)
2892 (memory_xfer_partial_1): Update.
2893 * target-section.h (target_section_table): Now an alias.
2894 * target-delegates.c: Rebuild.
2895 * target-debug.h (target_debug_print_target_section_table_p):
2896 Rename from target_debug_print_struct_target_section_table_p.
2897 * symfile.c (build_section_addr_info_from_section_table): Update.
2898 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2899 * solib-svr4.c (scan_dyntag): Update.
2900 * solib-dsbt.c (scan_dyntag): Update.
2901 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2903 * record-full.c (record_full_core_target::xfer_partial): Update.
2904 * progspace.h (struct program_space) <target_sections>: Update.
2905 * exec.h (print_section_info): Update.
2906 * exec.c (exec_target::close, build_section_table)
2907 (add_target_sections, add_target_sections_of_objfile)
2908 (remove_target_sections, exec_on_vfork)
2909 (section_table_available_memory)
2910 (section_table_xfer_memory_partial)
2911 (exec_target::get_section_table, exec_target::xfer_partial)
2912 (print_section_info, set_section_command)
2913 (exec_set_section_address, exec_target::has_memory): Update.
2914 * corelow.c (core_target::build_file_mappings)
2915 (core_target::xfer_partial, core_target::info_proc_mappings)
2916 (core_target::info_proc_mappings): Update.
2917 * bfd-target.c (class target_bfd): Update
2919 2020-10-12 Tom Tromey <tom@tromey.com>
2921 * progspace.c (program_space::~program_space): Don't call
2922 clear_section_table.
2923 * exec.h (clear_section_table): Don't declare.
2924 * exec.c (exec_target::close): Update.
2925 (clear_section_table): Remove.
2927 2020-10-12 Tom Tromey <tom@tromey.com>
2929 * exec.c (add_target_sections_of_objfile): Simplify.
2931 2020-10-12 Tom Tromey <tom@tromey.com>
2933 * solib.c (solib_map_sections): Update.
2934 * record-full.c (record_full_core_open_1): Update.
2935 * exec.h (build_section_table): Return a target_section_table.
2936 * exec.c (exec_file_attach): Update.
2937 (build_section_table): Return a target_section_table.
2938 * corelow.c (core_target::core_target): Update.
2939 * bfd-target.c (target_bfd::target_bfd): Update.
2941 2020-10-12 Tom Tromey <tom@tromey.com>
2943 * target.c (target_section_by_addr, memory_xfer_partial_1):
2945 * target-section.h (struct target_section_table): Use
2947 * symfile.h (build_section_addr_info_from_section_table): Take a
2948 target_section_table.
2949 * symfile.c (build_section_addr_info_from_section_table): Take a
2950 target_section_table.
2951 * solist.h (struct so_list) <sections>: Change type.
2952 <sections_end>: Remove.
2953 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2954 (solib_contains_address_p): Update.
2955 * solib-svr4.c (scan_dyntag): Update.
2956 * solib-dsbt.c (scan_dyntag): Update.
2957 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2959 * record-full.c (record_full_core_start, record_full_core_end):
2961 (record_full_core_sections): New global.
2962 (record_full_core_open_1, record_full_core_target::xfer_partial):
2964 * exec.h (build_section_table, section_table_xfer_memory_partial)
2965 (add_target_sections): Take a target_section_table.
2966 * exec.c (exec_file_attach, clear_section_table): Update.
2967 (resize_section_table): Remove.
2968 (build_section_table, add_target_sections): Take a
2969 target_section_table.
2970 (add_target_sections_of_objfile, remove_target_sections)
2971 (exec_on_vfork): Update.
2972 (section_table_available_memory): Take a target_section_table.
2973 (section_table_read_available_memory): Update.
2974 (section_table_xfer_memory_partial): Take a target_section_table.
2975 (print_section_info, set_section_command)
2976 (exec_set_section_address, exec_target::has_memory): Update.
2977 * corelow.c (class core_target) <m_core_section_table,
2978 m_core_file_mappings>: Remove braces.
2979 <~core_target>: Remove.
2980 (core_target::core_target): Update.
2981 (core_target::~core_target): Remove.
2982 (core_target::build_file_mappings)
2983 (core_target::xfer_memory_via_mappings)
2984 (core_target::xfer_partial, core_target::info_proc_mappings):
2986 * bfd-target.c (target_bfd::xfer_partial): Update.
2987 (target_bfd::target_bfd): Update.
2988 (target_bfd::~target_bfd): Remove.
2990 2020-10-12 Tom Tromey <tom@tromey.com>
2992 * target.h (struct target_section, struct target_section_table):
2993 Move to target-section.h.
2994 * target-section.h: New file.
2996 2020-10-12 Pedro Alves <pedro@palves.net>
2999 * valops.c (struct struct_field_searcher): New.
3000 (update_search_result): Rename to ...
3001 (struct_field_searcher::update_result): ... this. Simplify
3002 prototype. Record all found fields.
3003 (do_search_struct_field): Rename to ...
3004 (struct_field_searcher::search): ... this. Simplify prototype.
3005 Maintain stack of visited baseclass path. Call update_result for
3006 fields too. Keep searching fields in baseclasses instead of
3007 stopping at the first found field.
3008 (search_struct_field): Use struct_field_searcher. When looking
3009 for fields, report ambiguous access attempts.
3011 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3013 * frame.c (inside_main_func): Check full symbols as well as
3016 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3018 * ada-lang.c (advance_wild_match): Rewrite the function's
3019 description. Change the type of target0, t0 and t1 to char.
3021 2020-10-09 Tom Tromey <tromey@adacore.com>
3023 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3025 2020-10-09 Tom Tromey <tromey@adacore.com>
3027 * ada-lang.h (ada_encode): Return std::string.
3028 * ada-lang.c (ada_encode_1): Return std::string.
3029 (ada_encode): Likewise.
3030 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3032 * ada-exp.y (block_lookup, write_var_or_type): Update.
3034 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3037 * printcmd.c (print_formatted): Handle void results as
3040 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3042 * arch/aarch32.c (aarch32_create_target_description): Release the
3043 target_desc_up as late as possible.
3044 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3045 * arch/amd64.c (amd64_create_target_description): Likewise.
3046 * arch/arc.c (arc_create_target_description): Return a
3047 target_desc_up, don't release it.
3048 * arch/arc.h (arc_create_target_description): Update declaration.
3049 (arc_lookup_target_description): Move target_desc_up into the
3050 cache, and return a borrowed pointer.
3051 * arch/arm.c (arm_create_target_description): Release the
3052 target_desc_up as late as possible.
3053 * arch/i386.c (i386_create_target_description): Likewise.
3054 * arch/riscv.h (riscv_create_target_description): Update
3055 declaration to match definition.
3056 * arch/tic6x.c (tic6x_create_target_description): Release the
3057 target_desc_up as late as possible.
3059 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3061 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3062 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3064 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3066 * source.c (directory_command): Notify observers that "directories"
3067 parameter has changed.
3069 2020-10-08 Tom Tromey <tom@tromey.com>
3071 * cli/cli-cmds.c (print_disassembly): Style function name and
3072 addresses. Add _() wrappers.
3074 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3076 * NEWS: Mention ARC support in GDBserver.
3078 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3080 * arch/aarch32.c (aarch32_create_target_description): Release
3081 unique_ptr returned from allocate_target_description.
3082 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3083 * arch/amd64.c (amd64_create_target_description): Likewise.
3084 * arch/arc.c (arc_create_target_description): Likewise.
3085 * arch/arm.c (arm_create_target_description): Likewise.
3086 * arch/i386.c (i386_create_target_description): Likewise.
3087 * arch/riscv.c (riscv_create_target_description): Update return
3088 type. Handle allocate_target_description returning a unique_ptr.
3089 (riscv_lookup_target_description): Update to handle unique_ptr.
3090 * arch/tic6x.c (tic6x_create_target_description): Release
3091 unique_ptr returned from allocate_target_description.
3092 * features/microblaze-with-stack-protect.c: Regenerate.
3093 * features/microblaze.c: Regenerate.
3094 * features/mips-dsp-linux.c: Regenerate.
3095 * features/mips-linux.c: Regenerate.
3096 * features/mips64-dsp-linux.c: Regenerate.
3097 * features/mips64-linux.c: Regenerate.
3098 * features/nds32.c: Regenerate.
3099 * features/nios2.c: Regenerate.
3100 * features/or1k.c: Regenerate.
3101 * features/rs6000/powerpc-32.c: Regenerate.
3102 * features/rs6000/powerpc-32l.c: Regenerate.
3103 * features/rs6000/powerpc-403.c: Regenerate.
3104 * features/rs6000/powerpc-403gc.c: Regenerate.
3105 * features/rs6000/powerpc-405.c: Regenerate.
3106 * features/rs6000/powerpc-505.c: Regenerate.
3107 * features/rs6000/powerpc-601.c: Regenerate.
3108 * features/rs6000/powerpc-602.c: Regenerate.
3109 * features/rs6000/powerpc-603.c: Regenerate.
3110 * features/rs6000/powerpc-604.c: Regenerate.
3111 * features/rs6000/powerpc-64.c: Regenerate.
3112 * features/rs6000/powerpc-64l.c: Regenerate.
3113 * features/rs6000/powerpc-7400.c: Regenerate.
3114 * features/rs6000/powerpc-750.c: Regenerate.
3115 * features/rs6000/powerpc-860.c: Regenerate.
3116 * features/rs6000/powerpc-altivec32.c: Regenerate.
3117 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3118 * features/rs6000/powerpc-altivec64.c: Regenerate.
3119 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3120 * features/rs6000/powerpc-e500.c: Regenerate.
3121 * features/rs6000/powerpc-e500l.c: Regenerate.
3122 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3123 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3124 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3125 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3126 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3127 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3128 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3129 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3130 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3131 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3132 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3133 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3134 * features/rs6000/powerpc-vsx32.c: Regenerate.
3135 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3136 * features/rs6000/powerpc-vsx64.c: Regenerate.
3137 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3138 * features/rs6000/rs6000.c: Regenerate.
3139 * features/rx.c: Regenerate.
3140 * features/s390-gs-linux64.c: Regenerate.
3141 * features/s390-linux32.c: Regenerate.
3142 * features/s390-linux32v1.c: Regenerate.
3143 * features/s390-linux32v2.c: Regenerate.
3144 * features/s390-linux64.c: Regenerate.
3145 * features/s390-linux64v1.c: Regenerate.
3146 * features/s390-linux64v2.c: Regenerate.
3147 * features/s390-te-linux64.c: Regenerate.
3148 * features/s390-tevx-linux64.c: Regenerate.
3149 * features/s390-vx-linux64.c: Regenerate.
3150 * features/s390x-gs-linux64.c: Regenerate.
3151 * features/s390x-linux64.c: Regenerate.
3152 * features/s390x-linux64v1.c: Regenerate.
3153 * features/s390x-linux64v2.c: Regenerate.
3154 * features/s390x-te-linux64.c: Regenerate.
3155 * features/s390x-tevx-linux64.c: Regenerate.
3156 * features/s390x-vx-linux64.c: Regenerate.
3157 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3158 from allocate_target_description.
3159 * target-descriptions.c (allocate_target_description): Update
3161 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3162 allocate_target_description.
3164 2020-10-07 Tom Tromey <tromey@adacore.com>
3166 * unittests/search-memory-selftests.c: New file.
3167 * Makefile.in (SELFTESTS_SRCS): Add
3168 unittests/search-memory-selftests.c.
3170 2020-10-07 Tom Tromey <tromey@adacore.com>
3173 * findcmd.c (_initialize_mem_search): Mention that the range is
3176 2020-10-07 Tom Tromey <tromey@adacore.com>
3178 * target.h (simple_search_memory): Don't declare.
3179 * target.c (simple_search_memory): Move to gdbsupport.
3180 (default_search_memory): Update.
3181 * remote.c (remote_target::search_memory): Update.
3183 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3185 * Makefile.in (COMPILE): Add CXXFLAGS.
3186 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3187 (check-headers): Add CXXFLAGS.
3189 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3191 * arc-linux-tdep.h: New file.
3192 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3193 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3194 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3195 arc_linux_gregset, arc_linux_v2_regset,
3196 arc_linux_iterate_over_regset_sections,
3197 arc_linux_core_read_description): Implement.
3198 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3199 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3200 (arc_gdbarch_features_create): Add.
3201 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3203 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3205 * arch/arc.h: Rename "arc_gdbarch_features" to
3206 "arc_arch_features".
3207 * arc-tdep.h: Likewise.
3208 * arc-tdep.c: Likewise.
3210 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212 * infcmd.c (attach_command): Remove the redundant call to
3213 `clear_proceed_status`.
3215 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3217 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3219 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3221 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3222 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3223 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3225 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3227 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3228 (_initialize_break_catch_sig): Don't allocate array.
3230 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3232 * symtab.c (find_pc_line): Return unmapped addresses when the
3233 requested address is also unmapped.
3235 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3237 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3240 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3242 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3243 type::is_vector instead of TYPE_VECTOR.
3245 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3247 * auto-load.c (auto_load_objfile_script_1): Don't use
3248 debugfile_holder as temporary variable when stripping drive
3251 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3253 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3254 Add TYPE_CODE_COMPLEX.
3255 (amd64_windows_return_value): Fix types returned via XMM0.
3257 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3259 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3260 AArch64/ARM maintainers.
3262 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3264 * NEWS: Mention set/show debug event-loop.
3266 2020-10-02 Tom Tromey <tromey@adacore.com>
3268 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3271 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3273 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3274 * procfs.c (procfs_inferior_created): Remove.
3275 (_initialize_procfs): Don't register procfs_inferior_created.
3277 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3279 * async-event.c (invoke_async_signal_handlers): Add debug
3281 (check_async_event_handlers): Likewise.
3282 * event-top.c (show_debug_event_loop): New function.
3283 (_initialize_event_top): Register "set debug event-loop"
3286 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3288 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3290 * infrun.c: Include gdbsupport/common-debug.h.
3291 * linux-nat.c: Likewise.
3293 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3295 * async-event.h (create_async_signal_handler): Add name
3297 (create_async_event_handler): Likewise.
3298 * async-event.c (struct async_signal_handler) <name>: New field.
3299 (struct async_event_handler) <name>: New field.
3300 (create_async_signal_handler): Assign name.
3301 (create_async_event_handler): Assign name.
3302 * event-top.c (async_init_signals): Pass name when creating
3304 * infrun.c (_initialize_infrun): Likewise.
3305 * record-btrace.c (record_btrace_push_target): Likewise.
3306 * record-full.c (record_full_open): Likewise.
3307 * remote-notif.c (remote_notif_state_allocate): Likewise.
3308 * remote.c (remote_target::open_1): Likewise.
3309 * tui/tui-win.c (tui_initialize_win): Likewise.
3311 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3313 * async-event.c (initialize_async_signal_handlers): Pass name to
3315 * event-top.c (ui_register_input_event_handler): Likewise.
3316 * linux-nat.c (linux_nat_target::async): Likewise.
3317 * run-on-main-thread.c (_initialize_run_on_main_thread):
3319 * ser-base.c (reschedule): Likewise.
3320 (ser_base_async): Likewise.
3321 * tui/tui-io.c: Likewise.
3322 * top.h (struct ui) <num>: New field.
3323 * top.c (highest_ui_num): New variable.
3324 (ui::ui): Initialize num.
3326 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3328 * observable.h <inferior_created>: Remove parameters. Update all
3330 * inferior.h (post_create_inferior): Remove target parameter.
3333 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3335 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3336 and DW_MACRO_undef_strx.
3337 (dwarf_decode_macros): Likewise
3338 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3339 which is the value of DW_AT_str_offsets_base.
3340 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3343 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3345 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3347 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3349 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3350 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3352 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3354 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3356 2020-09-30 Tom de Vries <tdevries@suse.de>
3359 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3361 2020-09-30 Tom Tromey <tromey@adacore.com>
3363 * dwarf2/read.c (handle_variant): Use constant_value.
3365 2020-09-29 Tom Tromey <tom@tromey.com>
3367 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3368 (read_file_scope, dwarf2_get_pc_bounds)
3369 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3370 (read_structure_type, handle_struct_member_die)
3371 (read_enumeration_type, read_array_type, read_set_type)
3372 (read_tag_pointer_type, read_tag_reference_type)
3373 (read_subroutine_type, read_base_type, read_subrange_type)
3374 (read_full_die_1, partial_die_info::read)
3375 (partial_die_info::read, by, new_symbol)
3376 (dwarf2_const_value_data, dwarf2_const_value_attr)
3377 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3378 (prepare_one_comp_unit): Update.
3379 * dwarf2/attribute.h (DW_UNSND): Remove.
3381 2020-09-29 Tom Tromey <tom@tromey.com>
3383 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3384 (read_subroutine_type, partial_die_info::read)
3385 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3386 (dwarf2_add_member_fn): Update.
3387 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3388 * dwarf2/attribute.c (attribute::as_boolean): New method.
3390 2020-09-29 Tom Tromey <tom@tromey.com>
3392 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3393 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3395 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3397 2020-09-29 Tom Tromey <tom@tromey.com>
3399 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3400 the attribute's form.
3402 2020-09-29 Tom Tromey <tom@tromey.com>
3404 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3405 (dwarf2_add_member_fn): Update.
3406 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3407 * dwarf2/attribute.c (attribute::defaulted): New method, from
3408 is_valid_DW_AT_defaulted.
3410 2020-09-29 Tom Tromey <tom@tromey.com>
3412 * dwarf2/read.c (dw2_get_file_names_reader)
3413 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3414 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3415 (dwarf2_symbol_mark_computed): Use as_unsigned.
3416 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3418 <form_is_section_offset>: Update comment.
3420 2020-09-29 Tom Tromey <tom@tromey.com>
3422 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3423 dwarf2_default_access_attribute. Look up attribute.
3424 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3427 2020-09-29 Tom Tromey <tom@tromey.com>
3429 * dwarf2/read.c (skip_one_die): Update.
3430 (read_full_die_1): Change how reprocessing is done.
3431 (partial_die_info::read): Update.
3432 (read_attribute_value): Remove need_reprocess parameter.
3433 (read_attribute): Likewise.
3434 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3437 2020-09-29 Tom Tromey <tom@tromey.com>
3439 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3440 (dwarf2_const_value_attr, dump_die_shallow)
3441 (dwarf2_fetch_constant_bytes): Update.
3442 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3444 <set_address>: New method.
3446 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3447 (attribute::as_string, attribute::as_address): Add assert.
3449 2020-09-29 Tom Tromey <tom@tromey.com>
3451 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3452 (read_attribute_reprocess, read_attribute_value): Update.
3453 (read_attribute): Clear requires_reprocessing.
3454 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3455 form_requires_reprocessing>: New methods.
3456 <string_init>: Clear requires_reprocessing.
3457 <set_unsigned_reprocess>: New method.
3458 <name>: Shrink by one bit.
3459 <requires_reprocessing>: New member.
3460 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3463 2020-09-29 Tom Tromey <tom@tromey.com>
3465 * dwarf2/read.c (read_attribute_value): Update.
3466 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3467 set_unsigned>: New methods.
3468 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3470 2020-09-29 Tom Tromey <tom@tromey.com>
3472 * dwarf2/read.c (get_alignment, read_array_order)
3473 (read_attribute_value, dwarf2_const_value_attr)
3474 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3475 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3479 2020-09-29 Tom Tromey <tom@tromey.com>
3481 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3482 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3484 * dwarf2/attribute.h (struct attribute) <as_signature,
3485 set_signature>: New methods.
3486 (DW_SIGNATURE): Remove.
3488 2020-09-29 Tom Tromey <tom@tromey.com>
3490 * dwarf2/read.c (read_call_site_scope)
3491 (handle_data_member_location, dwarf2_add_member_fn)
3492 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3493 (partial_die_info::read, read_attribute_value)
3494 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3495 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3496 (dwarf2_symbol_mark_computed): Update.
3497 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3500 * dwarf2/attribute.c (attribute::form_is_block): Add
3503 2020-09-29 Tom Tromey <tom@tromey.com>
3505 * dwarf2/read.c (read_cutu_die_from_dwo)
3506 (read_attribute_reprocess, read_attribute_value, read_attribute)
3507 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3508 (dwarf2_fetch_constant_bytes): Update.
3509 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3510 <set_string_noncanonical, set_string_canonical>: New methods.
3511 <string_is_canonical>: Update comment.
3512 <canonical_string_p>: Add assert.
3513 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3514 * dwarf2/attribute.c (attribute::form_is_string): New method.
3515 (attribute::string): Use it.
3517 2020-09-29 Tom Tromey <tom@tromey.com>
3519 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3520 (dump_die_shallow): Use canonical_string_p.
3521 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3524 2020-09-29 Tom Tromey <tom@tromey.com>
3526 * dwarf2/read.c (partial_die_info::read)
3527 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3528 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3529 attribute::as_string.
3531 2020-09-29 Tom Tromey <tom@tromey.com>
3533 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3535 (attribute::string): Don't use DW_STRING.
3536 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3537 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3539 2020-09-29 Tom Tromey <tom@tromey.com>
3541 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3542 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3543 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3544 * dwarf2/attribute.h (struct attribute): Rename methods.
3545 * dwarf2/attribute.c (attribute::as_address): Rename from
3547 (attribute::as_string): Rename from value_as_string.
3549 2020-09-29 Tom Tromey <tom@tromey.com>
3551 * dwarf2/read.c (partial_die_info::read) <case
3552 DW_AT_linkage_name>: Use value_as_string.
3553 (dwarf2_string_attr): Use value_as_string.
3554 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3556 * dwarf2/attribute.c (attribute::value_as_string): New method.
3558 2020-09-29 Pedro Alves <pedro@palves.net>
3560 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3561 defined before using '#pragma GCC diagnostic' instead of checking
3564 2020-09-28 Tom Tromey <tom@tromey.com>
3566 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3567 (handle_signal_stop): Update.
3568 * procfs.c (procfs_target::insert_watchpoint): Update.
3569 * target.h (target_have_steppable_watchpoint): Now a function.
3571 2020-09-28 Tom Tromey <tom@tromey.com>
3573 * infrun.c (set_schedlock_func): Update.
3574 * target.h (target_can_lock_scheduler): Now a function.
3576 2020-09-28 Tom Tromey <tom@tromey.com>
3578 * inferior.h (class inferior) <has_execution>: Update.
3579 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3580 * valops.c (find_function_in_inferior)
3581 (value_allocate_space_in_inferior): Update.
3582 * top.c (kill_or_detach): Update.
3583 * target.c (target_preopen, set_target_permissions): Update.
3584 (target_has_execution_current): Remove.
3585 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3587 * solib.c (update_solib_list, reload_shared_libraries): Update.
3588 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3589 * solib-dsbt.c (enable_break): Update.
3590 * score-tdep.c (score7_fetch_inst): Update.
3591 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3593 * remote.c (remote_target::start_remote)
3594 (remote_target::remote_check_symbols, remote_target::open_1)
3595 (remote_target::remote_detach_1, remote_target::verify_memory)
3596 (remote_target::xfer_partial, remote_target::read_description)
3597 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3598 * record-full.c (record_full_open_1): Update.
3599 * record-btrace.c (record_btrace_target_open): Update.
3600 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3601 (value_nsstring): Update.
3602 * linux-thread-db.c (add_thread_db_info)
3603 (thread_db_find_new_threads_silently, check_thread_db_callback)
3604 (try_thread_db_load_1, record_thread): Update.
3605 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3607 * linux-fork.c (checkpoint_command): Update.
3608 * infrun.c (set_non_stop, set_observer_mode)
3609 (check_multi_target_resumption, for_each_just_stopped_thread)
3610 (maybe_remove_breakpoints, normal_stop)
3611 (class infcall_suspend_state): Update.
3612 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3613 (info_program_command, attach_command): Update.
3614 * infcall.c (call_function_by_hand_dummy): Update.
3615 * inf-loop.c (inferior_event_handler): Update.
3616 * gcore.c (gcore_command, derive_heap_segment): Update.
3617 * exec.c (exec_file_command): Update.
3618 * eval.c (evaluate_subexp): Update.
3619 * compile/compile.c (compile_to_object): Update.
3620 * cli/cli-dump.c (restore_command): Update.
3621 * breakpoint.c (update_watchpoint)
3622 (update_inserted_breakpoint_locations)
3623 (insert_breakpoint_locations, get_bpstat_thread): Update.
3624 * target.h (target_has_execution): Remove macro.
3625 (target_has_execution_current): Don't declare.
3626 (target_has_execution): Rename from target_has_execution_1. Add
3629 2020-09-28 Tom Tromey <tom@tromey.com>
3631 * mi/mi-main.c (exec_reverse_continue)
3632 (mi_cmd_list_target_features): Update.
3633 * infrun.c (set_exec_direction_func): Update.
3634 * target.c (default_execution_direction): Update.
3635 * reverse.c (exec_reverse_once): Update.
3636 * target.h (target_can_execute_reverse): Now a function.
3638 2020-09-28 Tom Tromey <tom@tromey.com>
3640 * tui/tui-regs.c (tui_get_register)
3641 (tui_data_window::show_registers): Update.
3642 * thread.c (scoped_restore_current_thread::restore)
3643 (scoped_restore_current_thread::scoped_restore_current_thread):
3645 * regcache-dump.c (regcache_print): Update.
3646 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3648 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3649 * mep-tdep.c (current_me_module, current_options): Update.
3650 * linux-thread-db.c (thread_db_load): Update.
3651 * infcmd.c (registers_info, info_vector_command)
3652 (info_float_command): Update.
3653 * ia64-tdep.c (ia64_frame_prev_register)
3654 (ia64_sigtramp_frame_prev_register): Update.
3655 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3656 * gcore.c (derive_stack_segment): Update.
3657 * frame.c (get_current_frame, has_stack_frames): Update.
3658 * findvar.c (language_defn::read_var_value): Update.
3659 * arm-tdep.c (arm_pc_is_thumb): Update.
3660 * target.c (target_has_registers): Rename from
3661 target_has_registers_1.
3662 * target.h (target_has_registers): Remove macro.
3663 (target_has_registers): Rename from target_has_registers_1.
3665 2020-09-28 Tom Tromey <tom@tromey.com>
3667 * windows-tdep.c (tlb_make_value): Update.
3668 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3669 * thread.c (scoped_restore_current_thread::restore)
3670 (scoped_restore_current_thread::scoped_restore_current_thread)
3671 (thread_command): Update.
3672 * stack.c (backtrace_command_1, frame_apply_level_command)
3673 (frame_apply_all_command, frame_apply_command): Update.
3674 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3676 * gcore.c (derive_stack_segment): Update.
3677 * frame.c (get_current_frame, has_stack_frames): Update.
3678 * auxv.c (info_auxv_command): Update.
3679 * ada-tasks.c (ada_build_task_list): Update.
3680 * target.c (target_has_stack): Rename from target_has_stack_1.
3681 * target.h (target_has_stack): Remove macro.
3682 (target_has_stack): Rename from target_has_stack_1.
3684 2020-09-28 Tom Tromey <tom@tromey.com>
3686 * target.c (target_has_memory): Rename from target_has_memory_1.
3687 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3688 * thread.c (scoped_restore_current_thread::restore)
3689 (scoped_restore_current_thread::scoped_restore_current_thread):
3691 * frame.c (get_current_frame, has_stack_frames): Update.
3692 * target.h (target_has_memory): Remove macro.
3693 (target_has_memory): Rename from target_has_memory_1.
3695 2020-09-28 Tom Tromey <tom@tromey.com>
3697 * target.c (target_has_all_memory_1): Remove.
3698 * target.h (target_has_all_memory): Remove define.
3699 (target_has_all_memory_1): Don't declare.
3701 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3703 * ser-base.c: Adjust comments formatting.
3705 2020-09-27 Tom Tromey <tom@tromey.com>
3708 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3710 2020-09-27 Tom Tromey <tom@tromey.com>
3713 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3715 2020-09-27 Tom Tromey <tom@tromey.com>
3717 * unittests/tui-selftests.c: Update.
3718 * tui/tui-winsource.h (struct tui_source_window_base)
3719 <extra_margin, show_line_number, refresh_pad>: New methods.
3720 <m_max_length, m_pad>: New members.
3721 (tui_copy_source_line): Update.
3722 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3723 first_col, line_width, ndigits parameters. Add length.
3724 (tui_source_window_base::show_source_line): Write to pad. Line
3726 (tui_source_window_base::refresh_pad): New method.
3727 (tui_source_window_base::show_source_content): Write to pad. Call
3729 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3731 (tui_source_window_base::update_exec_info): Call
3733 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3735 <m_digits>: New member.
3736 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3738 (tui_source_window::show_line_number): New method.
3739 * tui/tui-io.h (tui_puts): Fix comment.
3740 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3743 2020-09-27 Tom Tromey <tom@tromey.com>
3745 * tui/tui-winsource.c
3746 (tui_source_window_base::set_is_exec_point_at): Don't call
3749 2020-09-27 Tom Tromey <tom@tromey.com>
3751 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3754 <cursor_x, cursor_y>: Remove.
3755 <m_inner_window>: New member.
3756 (tui_py_window::rerender): Create inner window.
3757 (tui_py_window::output): Write to inner window.
3759 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3762 * cli/cli-script.c (execute_control_commands): don't set
3763 instream to nullptr here as this breaks the from_tty argument
3764 to gdb.execute in Python.
3765 (execute_user_command): set instream to nullptr here instead.
3767 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3769 * infrun.h (infrun_debug_printf): Fix formatting.
3770 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3772 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3774 * compile/compile-object-load.h (struct munmap_list): Add
3775 explicitly-defined move constructor.
3777 2020-09-24 Tom Tromey <tromey@adacore.com>
3780 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3782 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3783 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3784 (tui_prev_win): Rewrite.
3786 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3788 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3789 in WOW64 processes as SIGINT.
3790 * nat/windows-nat.h: Make wow64_process a shared variable.
3791 * windows-nat.c: Remove static wow64_process variable.
3793 2020-09-23 Tom Tromey <tom@tromey.com>
3796 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3797 offset and bit size.
3798 * printcmd.c (print_scalar_formatted): Handle zero-length
3800 (print_scalar_formatted): Use bit_size_differs_p.
3801 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3803 (union type_specific): <int_stuff>: New member.
3804 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3806 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3807 TYPE_SPECIFIC_FIELD.
3808 (recursive_dump_type, copy_type_recursive): Update.
3809 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3810 DW_AT_data_bit_offset.
3812 2020-09-23 Tom Tromey <tom@tromey.com>
3814 * utils.h (class gdb_argv): Add move operators.
3815 <append>: New methods.
3816 * compile/compile.c (build_argc_argv): Remove.
3817 (compile_args_argc): Remove.
3818 (compile_args_argv): Change type.
3819 (set_compile_args): Simplify.
3820 (append_args): Remove.
3821 (filter_args): Remove argcp parameter.
3822 (get_args): Return gdb_argv. Simplify.
3823 (compile_to_object): Update.
3825 2020-09-23 Tom Tromey <tom@tromey.com>
3827 * compile/compile-object-run.c (do_module_cleanup)
3828 <~do_module_cleanup> :Remove.
3829 (do_module_cleanup): Update.
3830 * compile/compile-object-load.h (struct munmap_list): Add move
3831 assignment operator.
3832 <source_file>: Now a std::string.
3833 <munmap_list>: Rename. No longer a pointer.
3834 * compile/compile-object-load.c (struct setup_sections_data): Add
3836 <setup_one_section>: Declare.
3837 <munmap_list>: Move earlier.
3838 <m_bfd>: New member.
3839 <m_last_size, m_last_section_first, m_last_prot,
3840 m_last_max_alignment>: Rename, add initializers where needed.
3841 (setup_sections_data::setup_one_section): Rename from
3842 setup_sections. Update.
3843 (compile_object_load): Update. Don't use bfd_map_over_sections.
3845 2020-09-23 Tom Tromey <tom@tromey.com>
3847 * compile/compile-object-run.c (struct do_module_cleanup): Add
3848 parameters to constructor. Update destructor.
3849 <source_file, scope, scope_data, out_value_type, out_value_addr,
3850 munmap_list_head, objfile_name_string>: Remove.
3851 <module>: New member.
3852 (do_module_cleanup): Update.
3853 (compile_object_run): Update.
3855 2020-09-23 Tom Tromey <tom@tromey.com>
3857 * compile/compile.c (eval_compile_command): Update.
3858 * compile/compile-object-run.h (compile_object_run): Take a
3860 * compile/compile-object-run.c (compile_object_run): Take a
3862 * compile/compile-object-load.h (struct compile_module): Add
3863 constructor, destructor.
3864 (compile_module_up): New typedef.
3865 (compile_object_load): Return compile_object_up.
3866 * compile/compile-object-load.c (compile_object_load): Return
3869 2020-09-23 Tom Tromey <tom@tromey.com>
3871 * compile/compile-object-run.c (struct do_module_cleanup): Add
3872 constructor, destructor.
3873 <objfile_name_string>: Don't use struct hack.
3874 (do_module_cleanup): Use delete.
3875 (compile_object_run): Use new.
3877 2020-09-23 Tom Tromey <tom@tromey.com>
3879 * compile/compile-cplus-types.c
3880 (compile_cplus_convert_struct_or_union): Use std::vector.
3881 (compile_cplus_convert_func): Likewise.
3882 * compile/compile-c-types.c (convert_func): Use std::vector.
3884 2020-09-21 Tom Tromey <tromey@adacore.com>
3886 * sparc-tdep.c (sparc32_skip_prologue): Use
3887 skip_prologue_using_sal.
3889 2020-09-19 Tom Tromey <tom@tromey.com>
3891 * symfile.c (add_section_size_callback): Remove.
3892 (load_one_section): Rename from load_section_callback. Change
3894 (generic_load): Use foreach.
3896 2020-09-19 Tom Tromey <tom@tromey.com>
3898 * exec.c (add_to_section_table): Remove.
3899 (build_section_table): Use foreach.
3901 2020-09-19 Tom Tromey <tom@tromey.com>
3903 * elfread.c (elf_locate_sections): Change parameters.
3904 (elf_symfile_read): Use foreach.
3906 2020-09-19 Tom Tromey <tom@tromey.com>
3908 * cli/cli-dump.c (struct callback_data): Remove.
3909 (restore_one_section): Rename from restore_section_callback.
3911 (restore_binary_file): Change parameters.
3912 (restore_command): Use foreach.
3914 2020-09-19 Tom Tromey <tom@tromey.com>
3916 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3917 (gcore_copy_callback): Likewise.
3918 (gcore_memory_sections): Use foreach.
3920 2020-09-19 Tom Tromey <tom@tromey.com>
3922 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3923 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3925 (generic_elf_osabi_sniffer): Use foreach.
3926 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3927 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3929 2020-09-19 Tom Tromey <tom@tromey.com>
3931 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3932 (dwarf2_get_dwz_file): Use foreach.
3933 (dwarf2_locate_dwo_sections): Change parameters.
3934 (open_and_init_dwo_file): Use foreach.
3935 (dwarf2_locate_common_dwp_sections): Change parameters.
3936 (open_and_init_dwp_file): Use foreach.
3938 2020-09-19 Tom Tromey <tom@tromey.com>
3940 * symfile.h: (find_lowest_section): Don't declare.
3941 * symfile.c (find_lowest_section): Now static. Change
3943 (struct place_section_arg): Remove.
3944 (place_section): Change parameters.
3945 (addr_info_make_relative): Use foreach.
3946 (symfile_dummy_outputs): Remove.
3947 (default_symfile_relocate): Use foreach.
3949 2020-09-19 Tom Tromey <tom@tromey.com>
3951 * objfiles.c (add_to_objfile_sections): Rename from
3952 add_to_objfile_sections_full.
3953 (add_to_objfile_sections): Remove.
3954 (build_objfile_section_table): Use foreach.
3956 2020-09-19 Tom Tromey <tom@tromey.com>
3958 * stap-probe.c (get_stap_base_address_1): Remove.
3959 (get_stap_base_address): Use foreach.
3961 2020-09-19 Tom Tromey <tom@tromey.com>
3963 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3965 (gdb_bfd_close_or_warn): Use foreach.
3967 2020-09-19 Tom Tromey <tom@tromey.com>
3969 * corelow.c (add_to_thread_list): Change parameters.
3970 (core_target_open): Use foreach.
3972 2020-09-19 Tom Tromey <tom@tromey.com>
3974 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3977 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3979 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3982 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3984 * eval.c: Remove 'f-lang.h' include.
3985 (value_f90_subarray): Moved to f-lang.c.
3986 (eval_call): Renamed to...
3987 (evaluate_subexp_do_call): ...this, is no longer static, header
3988 comment moved into header file.
3989 (evaluate_funcall): Update call to eval_call.
3990 (skip_undetermined_arglist): Moved to f-lang.c.
3991 (fortran_value_subarray): Likewise.
3992 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3993 moved to evaluate_subexp_f.
3994 (calc_f77_array_dims): Moved to f-lang.c
3995 * expprint.c (print_subexp_funcall): New function.
3996 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3997 moved to print_subexp_f, OP_FUNCALL uses new function.
3998 (dump_subexp_body_funcall): New function.
3999 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4000 moved to dump_subexp_f, OP_FUNCALL uses new function.
4001 * expression.h (evaluate_subexp_do_call): Declare.
4002 * f-lang.c (value_f90_subarray): Moved from eval.c.
4003 (skip_undetermined_arglist): Likewise.
4004 (calc_f77_array_dims): Likewise.
4005 (fortran_value_subarray): Likewise.
4006 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4007 (operator_length_f): Likewise.
4008 (print_subexp_f): Likewise.
4009 (dump_subexp_body_f): Likewise.
4010 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4011 declaration of this operation to here.
4012 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4013 support moved to operator_length_f.
4014 * parser-defs.h (dump_subexp_body_funcall): Declare.
4015 (print_subexp_funcall): Declare.
4016 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4017 fortran-operator.def.
4019 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4021 * eval.c (fortran_value_subarray): New function, content is taken
4023 (evaluate_subexp_standard): ...here, in two places. Now arrays
4024 and strings both call the new function.
4025 (calc_f77_array_dims): Add header comment, handle strings.
4027 2020-09-18 Victor Collod <vcollod@nvidia.com>
4030 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4031 (i386_analyze_prologue): Call i386_skip_endbr.
4033 2020-09-18 Tom Tromey <tromey@adacore.com>
4035 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4036 (windows_nat_target::wait): Update.
4037 * target/wait.h (enum target_wait_flag): New. Use
4038 DEF_ENUM_FLAGS_TYPE.
4039 * target/target.h (target_wait): Change type of options.
4040 * target.h (target_options_to_string, default_target_wait):
4042 (struct target_ops) <wait>: Change type of options.
4043 * target.c (target_wait, default_target_wait, do_option): Change
4045 (target_options_to_string): Likewise.
4046 * target-delegates.c: Rebuild.
4047 * target-debug.h (target_debug_print_target_wait_flags): Rename
4048 from target_debug_print_options.
4049 * sol-thread.c (class sol_thread_target) <wait>: Update.
4050 (sol_thread_target::wait): Update.
4051 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4052 (rs6000_nat_target::wait): Update.
4053 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4055 (remote_target::wait_ns, remote_target::wait_as): Change type of
4057 (remote_target::wait): Update.
4058 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4059 (gdbsim_target::wait): Update.
4060 * record-full.c (class record_full_base_target) <wait>: Update.
4061 (record_full_wait_1): Change type of "options".
4062 (record_full_base_target::wait): Update.
4063 * record-btrace.c (class record_btrace_target) <wait>: Update.
4064 (record_btrace_target::wait): Update.
4065 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4067 (ravenscar_thread_target::wait): Update.
4068 * procfs.c (class procfs_target) <wait>: Update.
4069 (procfs_target::wait): Update.
4070 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4071 * obsd-nat.c (obsd_nat_target::wait): Update.
4072 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4073 (nto_procfs_target::wait): Update.
4074 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4075 * nbsd-nat.c (nbsd_wait): Change type of "options".
4076 (nbsd_nat_target::wait): Update.
4077 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4078 (thread_db_target::wait): Update.
4079 * linux-nat.h (class linux_nat_target) <wait>: Update.
4080 * linux-nat.c (linux_nat_target::wait): Update.
4081 (linux_nat_wait_1): Update.
4082 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4084 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4085 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4086 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4087 (go32_nat_target::wait): Update.
4088 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4089 * gnu-nat.c (gnu_nat_target::wait): Update.
4090 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4091 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4092 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4093 * darwin-nat.c (darwin_nat_target::wait): Update.
4094 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4095 (bsd_uthread_target::wait): Update.
4096 * aix-thread.c (class aix_thread_target) <wait>: Update.
4097 (aix_thread_target::wait): Update.
4099 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4101 * compile/compile-object-run.c (create_copied_type_recursive): New
4103 (compile_object_run): Use new function.
4105 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4107 * NEWS: Mention x86_64 Cygwin core file support.
4109 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4111 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4112 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4114 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4116 * windows-tdep.h: Add prototypes.
4117 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4118 (i386_windows_core_pid_to_str): Move and rename ...
4119 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4120 (windows_core_pid_to_str): ... and here.
4121 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4123 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4124 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4125 (amd64_windows_init_abi_common): ... and register.
4127 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4129 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4130 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4132 2020-09-18 Pedro Alves <pedro@palves.net>
4135 * thread.c (thread_find_command): Switch inferior before calling
4138 2020-09-17 Tom Tromey <tromey@adacore.com>
4140 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4141 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4142 (tdesc_arch_data_up): New typedef.
4143 (tdesc_use_registers, tdesc_data_alloc): Update.
4144 (tdesc_data_cleanup): Don't declare.
4145 * target-descriptions.c (tdesc_data_alloc): Return a
4147 (tdesc_arch_data_deleter::operator()): Rename from
4148 tdesc_data_cleanup. Change argument type.
4149 (tdesc_use_registers): Change early_data to an rvalue reference.
4150 (tdesc_use_registers): Don't use delete.
4151 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4152 * s390-tdep.c (s390_gdbarch_init): Update.
4153 * rx-tdep.c (rx_gdbarch_init): Update.
4154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4155 * riscv-tdep.c (riscv_gdbarch_init): Update.
4156 * or1k-tdep.c (or1k_gdbarch_init): Update.
4157 * nios2-tdep.c (nios2_gdbarch_init): Update.
4158 * nds32-tdep.c (nds32_gdbarch_init): Update.
4159 * mips-tdep.c (mips_gdbarch_init): Update.
4160 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4161 * m68k-tdep.c (m68k_gdbarch_init): Update.
4162 * i386-tdep.c (i386_gdbarch_init): Update.
4163 * arm-tdep.c (arm_gdbarch_init): Update.
4164 * arc-tdep.c (arc_tdesc_init): Update.
4165 (arc_gdbarch_init): Update.
4166 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4168 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4170 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4171 for WOW64 processes.
4173 2020-09-17 Tom Tromey <tom@tromey.com>
4175 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4177 2020-09-17 Tom Tromey <tom@tromey.com>
4179 * value.c (preserve_values): Update.
4180 * python/py-type.c (save_objfile_types): Update.
4181 * guile/scm-type.c (save_objfile_types): Update.
4182 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4183 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4184 * compile/compile-object-run.c (compile_object_run): Update.
4186 2020-09-17 Tom Tromey <tom@tromey.com>
4188 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4190 <m_table>: Now htab_up.
4191 * typeprint.c (typedef_hash_table::recursively_update)
4192 (typedef_hash_table::add_template_parameters)
4193 (typedef_hash_table::typedef_hash_table): Update.
4194 (typedef_hash_table::~typedef_hash_table): Remove.
4195 (typedef_hash_table::typedef_hash_table)
4196 (typedef_hash_table::find_global_typedef)
4197 (typedef_hash_table::find_typedef): Update.
4199 2020-09-17 Tom Tromey <tom@tromey.com>
4201 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4203 2020-09-17 Tom Tromey <tom@tromey.com>
4205 * linespec.c (class decode_compound_collector)
4206 <~decode_compound_collector>: Remove.
4207 <m_unique_syms>: Now htab_up.
4208 (decode_compound_collector::operator ()): Update.
4209 (class symtab_collector) <~symtab_collector>: Remove.
4210 <m_symtab_table>: Now htab_up.
4211 (symtab_collector::operator ()): Update.
4213 2020-09-17 Tom Tromey <tom@tromey.com>
4215 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4216 (filename_seen_cache::clear): Update.
4217 (~filename_seen_cache): Remove.
4218 (filename_seen_cache::seen): Update.
4219 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4221 <~filename_seen_cache>: Remove.
4224 2020-09-17 Tom Tromey <tom@tromey.com>
4226 * completer.c (completion_tracker::discard_completions)
4227 (completion_tracker::~completion_tracker)
4228 (completion_tracker::maybe_add_completion)
4229 (completion_tracker::remove_completion)
4230 (completion_tracker::recompute_lowest_common_denominator)
4231 (completion_tracker::build_completion_result): Update.
4232 * completer.h (class completion_tracker) <have_completions>:
4234 <m_entries_hash>: Now htab_up.
4236 2020-09-17 Tom Tromey <tom@tromey.com>
4238 * breakpoint.c (ambiguous_names_p): Use htab_up.
4240 2020-09-17 Tom Tromey <tom@tromey.com>
4242 * auto-load.c (struct auto_load_pspace_info)
4243 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4244 <loaded_script_files, loaded_script_texts>: Change type to
4246 (~auto_load_pspace_info) Remove.
4247 (init_loaded_scripts_info, maybe_add_script_file)
4248 (maybe_add_script_text, auto_load_info_scripts): Update.
4250 2020-09-17 Tom Tromey <tromey@adacore.com>
4252 * c-exp.y (name_obstack): Now static.
4254 2020-09-17 Chungyi Chi <demonic@csie.io>
4256 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4258 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4260 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4261 (add_solib_catchpoint): Likewise.
4262 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4264 (add_solib_catchpoint): Change int parameter/variable to bool.
4265 (catch_load_or_unload): Likewise.
4266 (init_catchpoint): Likewise.
4267 (create_fork_vfork_event_catchpoint): Likewise.
4268 (catch_fork_command_1): Likewise.
4269 (catch_exec_command_1): Likewise.
4271 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4273 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4274 Change instance_flags to m_instance_flags.
4276 2020-09-16 Tom Tromey <tromey@adacore.com>
4279 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4281 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4283 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4285 (fbsd_nat_target::insert_exec_catchpoint)
4286 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4287 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4288 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4290 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4292 * configure.ac: Remove check for kinfo_getvmmap().
4293 * configure, config.in: Regenerate.
4294 * fbsd-nat.c (fbsd_read_mapping): Remove
4295 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4296 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4297 kinfo_get_vmmap() are always present.
4299 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4301 * fbsd-nat.c: Always include support for
4302 TARGET_OBJECT_SIGNAL_INFO.
4304 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4306 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4307 sysctl and remove procfs fallback.
4309 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4311 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4312 * fbsd-nat.h: Likewise.
4314 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4316 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4319 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4321 * ada-lang.c (ada_language_data): Delete.
4322 (ada_language): Remove references to ada_language_data.
4323 * c-lang.c (c_language_data): Delete.
4324 (c_language): Remove references to c_language_data.
4325 (cplus_language_data): Delete.
4326 (cplus_language): Remove references to cplus_language_data.
4327 (asm_language_data): Delete.
4328 (asm_language): Remove references to asm_language_data.
4329 (minimal_language_data): Delete.
4330 (minimal_language): Remove references to minimal_language_data.
4331 * d-lang.c (d_language_data): Delete.
4332 (d_language): Remove references to d_language_data.
4333 * f-lang.c (f_language_data): Delete.
4334 (f_language): Remove references to f_language_data.
4335 * go-lang.c (go_language_data): Delete.
4336 (go_language): Remove references to go_language_data.
4337 * language.c (unknown_language_data): Delete.
4338 (unknown_language): Remove references to unknown_language_data.
4339 (auto_language_data): Delete.
4340 (auto_language): Remove references to auto_language_data.
4341 * language.h (language_data): Delete struct.
4342 (language_defn): No longer inherit from language_data.
4343 * m2-lang.c (m2_language_data): Delete.
4344 (m2_language): Remove references to m2_language_data.
4345 * objc-lang.c (objc_language_data): Delete.
4346 (objc_language): Remove references to objc_language_data.
4347 * opencl-lang.c (opencl_language_data): Delete.
4348 (opencl_language): Remove references to opencl_language_data.
4349 * p-lang.c (pascal_language_data): Delete.
4350 (pascal_language): Remove references to pascal_language_data.
4351 * rust-lang.c (rust_language_data): Delete.
4352 (rust_language): Remove references to rust_language_data.
4354 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4356 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4358 (ada_language::opcode_print_table): New member function.
4359 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4360 (c_language::opcode_print_table): New member function.
4361 (cplus_language_data): Remove la_op_print_tab initializer.
4362 (cplus_language::opcode_print_table): New member function.
4363 (asm_language_data): Remove la_op_print_tab initializer.
4364 (asm_language::opcode_print_table): New member function.
4365 (minimal_language_data): Remove la_op_print_tab initializer.
4366 (minimal_language::opcode_print_table): New member function.
4367 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4368 (d_language::opcode_print_table): New member function.
4369 * expprint.c (print_subexp_standard): Update call to
4371 (op_string): Likewise.
4372 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4373 (f_language::opcode_print_table): New member function.
4374 * go-lang.c (go_language_data): Remove la_op_print_tab
4376 (go_language::opcode_print_table): New member function.
4377 * language.c (unknown_language_data): Remove la_op_print_tab
4379 (unknown_language::opcode_print_table): New member function.
4380 (auto_language_data): Remove la_op_print_tab initializer.
4381 (auto_language::opcode_print_table): New member function.
4382 * language.h (language_data): Remove la_op_print_tab field.
4383 (language_defn::opcode_print_table): Declare new member function.
4384 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4386 (m2_language::opcode_print_table): New member function.
4387 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4389 (objc_language::opcode_print_table): New member function.
4390 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4392 (opencl_language::opcode_print_table): New member function.
4393 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4395 (pascal_language::opcode_print_table): New member function.
4396 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4398 (rust_language::opcode_print_table): New member function.
4400 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4402 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4403 (ada_language::expression_ops): New member function.
4404 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4405 (c_language::expression_ops): New member function.
4406 (cplus_language_data): Remove la_exp_desc initializer.
4407 (cplus_language::expression_ops): New member function.
4408 (asm_language_data): Remove la_exp_desc initializer.
4409 (asm_language::expression_ops): New member function.
4410 (minimal_language_data): Remove la_exp_desc initializer.
4411 (minimal_language::expression_ops): New member function.
4412 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4413 (d_language::expression_ops): New member function.
4414 * eval.c (evaluate_subexp): Update call to expression_ops.
4415 * expprint.c (print_subexp): Likewise.
4416 (op_name): Likewise.
4417 (dump_subexp_body): Likewise.
4418 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4419 (f_language::expression_ops): New member function.
4420 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4421 (go_language::expression_ops): New member function.
4422 * language.c (language_defn::expression_ops): New function.
4423 (unknown_language_data): Remove la_exp_desc initializer.
4424 (auto_language_data): Likewise.
4425 * language.h (language_data): Remove la_exp_desc field.
4426 (language_defn::expression_ops): Declare new member function.
4427 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4428 (m2_language::expression_ops): New member function.
4429 * objc-lang.c (objc_language_data): Remove la_exp_desc
4431 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4433 (opencl_language::expression_ops): New member function.
4434 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4435 * parse.c (operator_length): Update call to expression_ops.
4436 (exp_iterate): Likewise.
4437 * rust-lang.c (rust_language_data): Remove la_exp_desc
4439 (ruse_language::expression_ops): New member function.
4441 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4445 (ada_language::varobj_ops): New member function.
4446 * c-lang.c (c_language_data): Remove la_varobj_ops
4448 (cplus_language_data): Likewise.
4449 (cplus_language::varobj_ops): New member function.
4450 (asm_language_data): Remove la_varobj_ops initializer.
4451 (minimal_language_data): Likewise.
4452 * d-lang.c (d_language_data): Likewise.
4453 * f-lang.c (f_language_data): Likewise.
4454 * go-lang.c (go_language_data): Likewise.
4455 * language.c (language_defn::varobj_ops): New function.
4456 (unknown_language_data): Remove la_varobj_ops
4458 (auto_language_data): Likewise.
4459 * language.h (language_data): Remove la_varobj_ops field.
4460 (language_defn::varobj_ops): Declare new member function.
4461 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4462 * objc-lang.c (objc_language_data): Likewise.
4463 * opencl-lang.c (opencl_language_data): Likewise.
4464 * p-lang.c (pascal_language_data): Likewise.
4465 * rust-lang.c (rust_language_data): Likewise.
4466 * varobj.c (varobj_create): Update call to varobj_ops.
4467 * varobj.h (default_varobj_ops): Delete define.
4469 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4471 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4473 * c-lang.c (c_language_data): Likewise.
4474 (c_language::macro_expansion): New member function.
4475 (cplus_language_data): Likewise.
4476 (cplus_language::macro_expansion): New member function.
4477 (asm_language_data): Likewise.
4478 (asm_language::macro_expansion): New member function.
4479 (minimal_language_data): Likewise.
4480 (minimal_language::macro_expansion): New member function.
4481 * d-lang.c (d_language_data): Remove la_macro_expansion
4483 * f-lang.c (f_language_data): Likewise.
4484 * go-lang.c (go_language_data): Likewise.
4485 * language.c (unknown_language_data): Likewise.
4486 (auto_language_data): Likewise.
4487 * language.h (language_data): Remove la_macro_expansion field.
4488 (language_defn::macro_expansion): New member function.
4489 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4491 * objc-lang.c (objc_language_data): Likewise.
4492 (objc_language::macro_expansion): New member function.
4493 * opencl-lang.c (opencl_language_data): Likewise.
4494 (opencl_language::macro_expansion): New member function.
4495 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4497 * rust-lang.c (rust_language_data): Likewise.
4498 * symtab.c (default_collect_symbol_completion_matches_break_on):
4499 Update call to macro_expansion.
4501 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4503 * ada-lang.c (ada_language_data): Remove la_array_ordering
4505 * c-lang.c (c_language_data): Likewise.
4506 (cplus_language_data): Likewise.
4507 (asm_language_data): Likewise.
4508 (minimal_language_data): Likewise.
4509 * d-lang.c (d_language_data): Likewise.
4510 * dwarf2/read.c (read_array_order): Update for call to
4512 * f-lang.c (f_language_data): Remove la_array_ordering
4514 (f_language::array_ordering): New member function.
4515 * go-lang.c (go_language_data): Remove la_array_ordering
4517 * language.c (unknown_language_data): Likewise.
4518 (auto_language_data): Likewise.
4519 * language.h (language_data): Delete la_array_ordering field.
4520 (language_defn::array_ordering): New member function.
4521 * m2-lang.c (m2_language_data): Remove la_array_ordering
4523 * objc-lang.c (objc_language_data): Likewise.
4524 * opencl-lang.c (opencl_language_data): Likewise.
4525 * p-lang.c (pascal_language_data): Likewise.
4526 * rust-lang.c (rust_language_data): Likewise.
4528 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4530 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4532 * c-lang.c (c_language_data): Likewise.
4533 (cplus_language_data): Likewise.
4534 (asm_language_data): Likewise.
4535 (minimal_language_data): Likewise.
4536 * d-lang.c (d_language_data): Likewise.
4537 * f-lang.c (f_language_data): Likewise.
4538 (f_language::case_sensitivity): New member function.
4539 * go-lang.c (go_language_data): Remove la_case_sensitivity
4541 * language.c (enum case_mode): Moved here from language.h.
4542 (case_mode): Make static.
4543 (show_case_command): Update for case_sensitivity being a method.
4544 (set_case_command): Likewise.
4545 (set_range_case): Likewise.
4546 (unknown_language_data): Remove la_case_sensitivity initializer.
4547 (auto_language_data): Likewise.
4548 * language.h (case_mode): Delete, move enum declaration to
4550 (language_data): Delete la_case_sensitivity field.
4551 (language_defn::case_sensitivity): New member function.
4552 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4554 * objc-lang.c (objc_language_data): Likewise.
4555 * opencl-lang.c (opencl_language_data): Likewise.
4556 * p-lang.c (pascal_language_data): Likewise.
4557 * rust-lang.c (rust_language_data): Likewise.
4559 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4561 * ada-lang.c (ada_language_data): Remove la_range_check
4563 * c-lang.c (c_language_data): Likewise.
4564 (cplus_language_data): Likewise.
4565 (asm_language_data): Likewise.
4566 (minimal_language_data): Likewise.
4567 * d-lang.c (d_language_data): Likewise.
4568 * f-lang.c (f_language_data): Likewise.
4569 (f_language::range_checking_on_by_default): New member function.
4570 * go-lang.c (go_language_data): Remove la_range_check initializer.
4571 * language.c (enum range_mode): Moved here from language.h.
4572 (range_mode): Made static.
4573 (show_range_command): Update to use
4574 range_checking_on_by_default.
4575 (set_range_command): Likewise.
4576 (set_range_case): Likewise.
4577 (unknown_language_data): Remove la_range_check initializer.
4578 (auto_language_data): Likewise.
4579 * language.h (range_mode): Delete. Enum definition moved to
4581 (language_data): Remove la_range_check field.
4582 (language_defn::range_checking_on_by_default): New member
4584 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4585 (m2_language::range_checking_on_by_default): New member function.
4586 * objc-lang.c (objc_language_data): Remove la_range_check
4588 * opencl-lang.c (opencl_language_data): Likewise.
4589 * p-lang.c (pascal_language_data): Likewise.
4590 (pascal_language::range_checking_on_by_default): New member
4592 * rust-lang.c (rust_language_data): Remove la_range_check
4594 (rust_language::range_checking_on_by_default): New member
4597 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4599 * dwarf2/read.c (dwarf2_physname): Remove special case for
4601 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4604 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4606 * ada-lang.c (ada_language_data): Remove
4607 la_store_sym_names_in_linkage_form_p initializer.
4608 (ada_language::store_sym_names_in_linkage_form_p): New member
4610 * c-lang.c (c_language_data): Remove
4611 la_store_sym_names_in_linkage_form_p initializer.
4612 (c_language::store_sym_names_in_linkage_form_p): New member
4614 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4616 (asm_language_data): Likewise.
4617 (asm_language::store_sym_names_in_linkage_form_p): New member
4619 (minimal_language_data): Remove
4620 la_store_sym_names_in_linkage_form_p initializer.
4621 (minimal_language::store_sym_names_in_linkage_form_p): New member
4623 * d-lang.c (d_language_data): Remove
4624 la_store_sym_names_in_linkage_form_p initializer.
4625 * dwarf2/read.c (dwarf2_physname): Update call to
4626 store_sym_names_in_linkage_form_p.
4627 * f-lang.c (f_language_data): Remove
4628 la_store_sym_names_in_linkage_form_p initializer.
4629 * go-lang.c (go_language_data): Remove
4630 la_store_sym_names_in_linkage_form_p initializer.
4631 * language.c (unknown_language_data): Remove
4632 la_store_sym_names_in_linkage_form_p initializer.
4633 (unknown_language::store_sym_names_in_linkage_form_p): New member
4635 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4637 (auto_language::store_sym_names_in_linkage_form_p): New member
4639 * language.h (language_data): Remove
4640 la_store_sym_names_in_linkage_form_p member variable.
4641 (language_defn::store_sym_names_in_linkage_form_p): New member
4643 * m2-lang.c (m2_language_data): Remove
4644 la_store_sym_names_in_linkage_form_p initializer.
4645 * objc-lang.c (objc_language_data): Likewise.
4646 * opencl-lang.c (opencl_language_data): Likewise.
4647 * p-lang.c (pascal_language_data): Likewise.
4648 * rust-lang.c (rust_language_data): Likewise.
4650 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4652 * ada-lang.c (ada_language_data): Remove string_lower_bound
4654 * c-lang.c (c_language_data): Likewise.
4655 (cplus_language_data): Likewise.
4656 (asm_language_data): Likewise.
4657 (minimal_language_data): Likewise.
4658 * d-lang.c (d_language_data): Likewise.
4659 * f-lang.c (f_language_data): Likewise.
4660 * go-lang.c (go_language_data): Likewise.
4661 * language.c (unknown_language_data): Likewise.
4662 (auto_language_data): Likewise.
4663 * language.h (language_data): Remove string_lower_bound field.
4664 (language_defn::string_lower_bound): New member function.
4665 * m2-lang.c (m2_language_data): Remove string_lower_bound
4667 (m2_language::string_lower_bound): New member function.
4668 * objc-lang.c (objc_language_data): Remove string_lower_bound
4670 * opencl-lang.c (opencl_language_data): Likewise.
4671 * p-lang.c (pascal_language_data): Likewise.
4672 * rust-lang.c (rust_language_data): Likewise.
4673 * valops.c (value_cstring): Update call to string_lower_bound.
4674 (value_string): Likewise.
4675 * value.c (allocate_repeated_value): Likewise.
4677 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4679 * valops.c (value_repeat): Fix incorrect argument name in comment.
4681 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4683 * ada-lang.c (ada_language_data): Remove c_style_arrays
4685 (ada_language::c_style_arrays_p): New member fuction.
4686 * c-lang.c (c_language_data): Remove c_style_arrays
4688 (cplus_language_data): Likewise.
4689 (asm_language_data): Likewise.
4690 (minimal_language_data): Likewise.
4691 * d-lang.c (d_language_data): Likewise.
4692 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4693 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4694 (f_language::c_style_arrays_p): New member function.
4695 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4696 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4697 * language.c (unknown_language_data): Remove c_style_arrays
4699 (auto_language_data): Likewise.
4700 * language.h (language_data): Remove c_style_arrays field.
4701 (language_defn::c_style_arrays_p): New member function.
4702 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4703 (m2_language::c_style_arrays_p): New member function.
4704 * objc-lang.c (objc_language_data): Remove c_style_arrays
4706 * opencl-lang.c (opencl_language_data): Likewise.
4707 * p-lang.c (pascal_language_data): Likewise.
4708 * rust-lang.c (rust_language_data): Likewise.
4709 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4710 and update local variable to a bool.
4711 * valops.c (value_cast): Update call to c_style_arrays_p.
4712 (value_array): Likewise.
4713 * value.c (coerce_array): Likewise.
4715 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4717 * ada-lang.c (ada_language_data): Remove la_language initializer.
4718 * c-lang.c (c_language_data): Likewise.
4719 (cplus_language_data): Likewise.
4720 (asm_language_data): Likewise.
4721 (minimal_language_data): Likewise.
4722 * d-lang.c (d_language_data): Likewise.
4723 * f-lang.c (f_language_data): Likewise.
4724 * go-lang.c (go_language_data): Likewise.
4725 * language.c (unknown_language_data): Likewise.
4726 (auto_language_data): Likewise.
4727 * language.h (language_data): Remove la_language field.
4728 (language_defn::language_defn): Initialise la_language field.
4729 (language_defn::la_language): New member variable.
4730 * m2-lang.c (m2_language_data): Remove la_language field.
4731 * objc-lang.c (objc_language_data): Likewise.
4732 * opencl-lang.c (opencl_language_data): Likewise.
4733 * p-lang.c (pascal_language_data): Likewise.
4734 * rust-lang.c (rust_language_data): Likewise.
4736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4738 * ada-lang.c (ada_extensions): Delete, moved into
4739 ada_language::filename_extensions.
4740 (ada_language_data): Remove la_filename_extensions initializer.
4741 (ada_language::filename_extensions): New member function.
4742 * c-lang.c (c_extensions): Delete, moved into
4743 c_language::filename_extensions.
4744 (c_language_data): Remove la_filename_extensions initializer.
4745 (c_language::filename_extensions): New member function.
4746 (cplus_extensions): Delete, moved into
4747 cplus_language::filename_extensions.
4748 (cplus_language_data): Remove la_filename_extensions initializer.
4749 (cplus_language::filename_extensions): New member function.
4750 (asm_extensions): Delete, moved into
4751 asm_language::filename_extensions.
4752 (asm_language_data): Remove la_filename_extensions initializer.
4753 (asm_language::filename_extensions): New member function.
4754 (minimal_language_data): Remove la_filename_extensions
4756 * d-lang.c (d_extensions): Delete, moved into
4757 d_language::filename_extensions.
4758 (d_language_data): Remove la_filename_extensions initializer.
4759 (d_language::filename_extensions): New member function.
4760 * f-lang.c (f_extensions): Delete, moved into
4761 f_language::filename_extensions.
4762 (f_language_data): Remove la_filename_extensions initializer.
4763 (f_language::filename_extensions): New member function.
4764 * go-lang.c (go_language_data): Remove la_filename_extensions
4766 * language.c (add_set_language_command): Update now that
4767 filename_extensions returns a vector.
4768 (unknown_language_data): Remove la_filename_extensions
4770 (auto_language_data): Likewise.
4771 * language.h (language_data): Remove la_filename_extensions field.
4772 (language_defn::filename_extensions): New member function.
4773 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4775 * objc-lang.c (objc_extensions): Delete, moved into
4776 objc_language::filename_extensions.
4777 (objc_language_data): Remove la_filename_extensions initializer.
4778 (objc_language::filename_extensions): New member function.
4779 * opencl-lang.c (opencl_language_data): Remove
4780 la_filename_extensions initializer.
4781 * p-lang.c (pascal_extensions): Delete, moved into
4782 pascal_language::filename_extensions.
4783 (pascal_language_data): Remove la_filename_extensions initializer.
4784 (pascal_language::filename_extensions): New member function.
4785 * rust-lang.c (rust_extensions): Delete, moved into
4786 rust_language::filename_extensions.
4787 (rust_language_data): Remove la_filename_extensions initializer.
4788 (rust_language::filename_extensions): New member function.
4789 * symfile.c (add_filename_language): Add new assert.
4791 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4793 * ada-lang.c (ada_language_data): Remove la_name and
4794 la_natural_name initializers.
4795 (ada_language::name): New member function.
4796 (ada_language::natural_name): New member function.
4797 * c-lang.c (c_language_data): Remove la_name and
4798 la_natural_name initializers.
4799 (c_language::name): New member function.
4800 (c_language::natural_name): New member function.
4801 (cplus_language_data): Remove la_name and
4802 la_natural_name initializers.
4803 (cplus_language::name): New member function.
4804 (cplus_language::natural_name): New member function.
4805 (asm_language_data): Remove la_name and
4806 la_natural_name initializers.
4807 (asm_language::name): New member function.
4808 (asm_language::natural_name): New member function.
4809 (minimal_language_data): Remove la_name and
4810 la_natural_name initializers.
4811 (minimal_language::name): New member function.
4812 (minimal_language::natural_name): New member function.
4813 * compile/compile.c (compile_to_object): Update call to
4814 lanugage_defn::name.
4815 * d-lang.c (d_language_data): Remove la_name and
4816 la_natural_name initializers.
4817 (d_language::name): New member function.
4818 (d_language::natural_name): New member function.
4819 * expprint.c (print_subexp_standard): Update call to
4820 language_defn::name.
4821 (dump_raw_expression): Likewise
4822 (dump_prefix_expression): Likewise.
4823 * f-lang.c (f_language_data): Remove la_name and
4824 la_natural_name initializers.
4825 (f_language::name): New member function.
4826 (f_language::natural_name): New member function.
4827 * go-lang.c (go_language_data): Remove la_name and
4828 la_natural_name initializers.
4829 (go_language::name): New member function.
4830 (go_language::natural_name): New member function.
4831 * language.c (show_language_command): Update call to
4832 language_defn::name.
4833 (set_language_command): Likewise.
4834 (language_enum): Likewise.
4835 (language_str): Likewise.
4836 (add_set_language_command): Likewise, use
4837 language_defn::natural_name in the doc string.
4838 (unknown_language_data): Remove la_name and
4839 la_natural_name initializers.
4840 (unknown_language::name): New member function.
4841 (unknown_language::natural_name): New member function.
4842 (auto_language_data): Remove la_name and
4843 la_natural_name initializers.
4844 (auto_language::name): New member function.
4845 (auto_language::natural_name): New member function.
4846 (language_lookup_primitive_type_as_symbol): Update call to
4847 language_defn::name.
4848 * language.h (language_data): Remove la_name and la_natural_name
4850 (language_defn::name): New member function.
4851 (language_defn::natural_name): New member function.
4852 * m2-lang.c (m2_language_data): Remove la_name and
4853 la_natural_name initializers.
4854 (m2_language::name): New member function.
4855 (m2_language::natural_name): New member function.
4856 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4857 language_defn::natural_name.
4858 * objc-lang.c (objc_language_data): Remove la_name and
4859 la_natural_name initializers.
4860 (objc_language::name): New member function.
4861 (objc_language::natural_name): New member function.
4862 * opencl-lang.c (opencl_language_data): Remove la_name and
4863 la_natural_name initializers.
4864 (opencl_language::name): New member function.
4865 (opencl_language::natural_name): New member function.
4866 * p-lang.c (pascal_language_data): Remove la_name and
4867 la_natural_name initializers.
4868 (pascal_language::name): New member function.
4869 (pascal_language::natural_name): New member function.
4870 * rust-lang.c (rust_language_data): Remove la_name and
4871 la_natural_name initializers.
4872 (rust_language::name): New member function.
4873 (rust_language::natural_name): New member function.
4874 * symtab.c (lookup_language_this): Update call to
4875 language_defn::name.
4877 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4879 * ada-lang.c (ada_language_data): Remove la_name_of_this
4881 * ax-gdb.c (gen_expr): Update call to name_of_this.
4882 * c-exp.y (classify_name): Likewise.
4883 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4884 (cplus_language_data): Likewise.
4885 (cplus_language::name_of_this): New member function.
4886 (asm_language_data): Remove la_name_of_this initializer.
4887 (minimal_language_data): Likewise.
4888 * d-lang.c (d_language_data): Likewise.
4889 (d_language::name_of_this): New member function.
4890 * expprint.c (print_subexp_standard): Update call to name_of_this.
4891 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4892 * go-lang.c (go_language_data): Likewise.
4893 * language.c (unknown_language_data): Likewise.
4894 (unknown_language::name_of_this): New member function.
4895 (auto_language_data): Remove la_name_of_this initializer.
4896 (auto_language::name_of_this): New member function.
4897 * language.h (language_data): Delete la_name_of_this member
4899 (language_defn::name_of_this): New member function.
4900 * m2-lang.c (m2_language_data): Remove la_name_of_this
4902 * objc-lang.c (objc_language_data): Likewise.
4903 (objc_language::name_of_this): New member function.
4904 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4906 * p-lang.c (pascal_language_data): Likewise.
4907 (pascal_language::name_of_this): New member function.
4908 * rust-lang.c (rust_language_data): Remove la_name_of_this
4910 * symtab.c (lookup_language_this): Update call to name_of_this.
4911 (lookup_symbol_aux): Likewise.
4912 * valops.c (value_of_this): Likewise.
4914 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4916 * ada-lang.c (ada_language_data): Remove
4917 la_struct_too_deep_ellipsis initializer.
4918 (ada_language::struct_too_deep_ellipsis): New member function.
4919 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4921 (cplus_language_data): Likewise.
4922 (asm_language_data): Likewise.
4923 (minimal_language_data): Likewise.
4924 * cp-valprint.c (cp_print_value): Update call to
4925 struct_too_deep_ellipsis.
4926 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4928 * f-lang.c (f_language_data): Likewise.
4929 (f_language::struct_too_deep_ellipsis): New member function.
4930 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4932 * language.c (unknown_language_data): Likewise.
4933 (auto_language_data): Likewise.
4934 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4936 (language_defn::struct_too_deep_ellipsis): New member function.
4937 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4939 * objc-lang.c (objc_language_data): Likewise.
4940 * opencl-lang.c (opencl_language_data): Likewise.
4941 * p-lang.c (pascal_language_data): Likewise.
4942 * rust-lang.c (rust_language_data): Likewise.
4943 * valprint.c (val_print_check_max_depth): Update call to
4944 struct_too_deep_ellipsis.
4946 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4948 * MAINTAINERS (Write After Approval): Add myself.
4950 2020-09-15 Tom Tromey <tom@tromey.com>
4952 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4955 2020-09-15 Tom Tromey <tom@tromey.com>
4957 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4958 and TYPE_CODE_METHODPTR cases.
4959 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4960 (c_value_print_inner): Update.
4961 * valprint.c (generic_value_print_memberptr): New function, from
4962 c_value_print_memberptr.
4963 (generic_value_print): Use it. Call cplus_print_method_ptr.
4965 2020-09-15 Tom Tromey <tromey@adacore.com>
4967 * python/python-internal.h (PyInt_FromLong): Remove define.
4968 * python/py-value.c (convert_value_from_python): Use
4969 gdb_py_object_from_longest.
4970 * python/py-type.c (typy_get_code): Use
4971 gdb_py_object_from_longest.
4972 * python/py-symtab.c (salpy_get_line): Use
4973 gdb_py_object_from_longest.
4974 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4975 gdb_py_object_from_longest.
4976 * python/py-record.c (recpy_gap_reason_code): Use
4977 gdb_py_object_from_longest.
4978 * python/py-record-btrace.c (recpy_bt_insn_size)
4979 (recpy_bt_func_level, btpy_list_count): Use
4980 gdb_py_object_from_longest.
4981 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4982 gdb_py_object_from_longest. Fix error handling.
4983 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4984 gdb_py_object_from_longest.
4985 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4986 gdb_py_object_from_longest.
4987 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4988 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4989 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4991 2020-09-15 Tom Tromey <tromey@adacore.com>
4993 * python/python.c (gdbpy_parameter_value): Use
4994 gdb_py_object_from_ulongest.
4996 2020-09-15 Tom Tromey <tromey@adacore.com>
4998 * python/py-infevents.c (create_register_changed_event_object):
4999 Use gdb_py_object_from_longest.
5000 * python/py-exitedevent.c (create_exited_event_object): Use
5001 gdb_py_object_from_longest.
5003 2020-09-15 Tom Tromey <tromey@adacore.com>
5005 * python/python.c (gdbpy_parameter_value): Use
5006 gdb_py_object_from_longest.
5007 * python/py-type.c (convert_field, typy_range): Use
5008 gdb_py_object_from_longest.
5009 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5010 gdb_py_object_from_longest.
5011 * python/py-lazy-string.c (stpy_get_length): Use
5012 gdb_py_object_from_longest.
5013 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5014 gdb_py_object_from_longest.
5015 * python/py-infevents.c (create_memory_changed_event_object): Use
5016 gdb_py_object_from_longest.
5017 * python/py-inferior.c (infpy_get_num): Use
5018 gdb_py_object_from_longest.
5019 (infpy_get_pid): Likewise.
5021 2020-09-15 Tom Tromey <tromey@adacore.com>
5023 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5025 * python/py-value.c (valpy_long): Use
5026 gdb_py_object_from_ulongest.
5027 * python/py-symtab.c (salpy_get_pc): Use
5028 gdb_py_object_from_ulongest.
5029 (salpy_get_last): Likewise.
5030 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5031 gdb_py_object_from_ulongest.
5032 * python/py-lazy-string.c (stpy_get_address): Use
5033 gdb_py_object_from_ulongest.
5034 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5035 * python/py-arch.c (archpy_disassemble): Use
5036 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5039 2020-09-15 Tom Tromey <tromey@adacore.com>
5041 * python/python-internal.h (gdb_py_long_from_longest): Remove
5043 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5044 * python/py-type.c (convert_field, typy_get_sizeof): Use
5045 gdb_py_object_from_longest.
5046 * python/py-record-btrace.c (btpy_list_index): Use
5047 gdb_py_object_from_longest.
5049 2020-09-15 Tom Tromey <tromey@adacore.com>
5051 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5052 * python/py-record.c (recpy_element_number): Use
5053 gdb_py_object_from_longest.
5054 (recpy_gap_number): Likewise.
5056 2020-09-15 Tom Tromey <tromey@adacore.com>
5058 * top.c (ui::ui): Update.
5059 (highest_ui_num): Remove.
5060 * top.h (struct ui) <num>: Remove.
5062 2020-09-15 Tom Tromey <tromey@adacore.com>
5064 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5065 * ui-style.c (ansi_regex_text): Now array.
5066 * rust-exp.y (number_regex_text): Now array.
5067 * linespec.c (linespec_quote_characters): Now array.
5068 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5071 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5073 * debuginfod-support.c (debuginfod_client_deleter): New.
5074 (debuginfod_client_up): New.
5075 (debuginfod_init): Return debuginfod_client_up.
5076 (debuginfod_source_query): Adjust.
5077 (debuginfod_debuginfo_query): Adjust.
5079 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5081 * debuginfod-support.c (debuginfod_source_query): Use
5082 make_unique_xstrdup.
5084 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5086 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5087 with `type::instance_flags`.
5089 2020-09-14 Michael Mullin <masmullin@gmail.com>
5091 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5092 Remove baton parameter.
5094 2020-09-14 Pedro Alves <pedro@palves.net>
5096 * Makefile.in (SELFTESTS_SRCS): Add
5097 unittests/enum-flags-selftests.c.
5098 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5099 btrace_function_flags instead of enum btrace_function_flag.
5100 * compile/compile-c-types.c (convert_qualified): Use
5102 * compile/compile-cplus-symbols.c (convert_one_symbol)
5103 (convert_symbol_bmsym):
5104 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5105 (compile_cplus_convert_struct_or_union_methods)
5106 (compile_cplus_instance::convert_qualified_base):
5107 * go-exp.y (parse_string_or_char): Add cast to int.
5108 * unittests/enum-flags-selftests.c: New file.
5109 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5110 type to btrace_thread_flags from btrace_thread_flag.
5111 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5112 local's type to btrace_thread_flags from btrace_thread_flag. Add
5115 2020-09-14 Pedro Alves <pedro@palves.net>
5117 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5118 * gdbtypes.c (address_space_name_to_int): Rename to ...
5119 (address_space_name_to_type_instance_flags): ... this.
5120 (address_space_int_to_name): Rename to ...
5121 (address_space_type_instance_flags_to_name): ... this.
5122 * gdbtypes.h (address_space_name_to_int): Rename to ...
5123 (address_space_name_to_type_instance_flags): ... this.
5124 (address_space_int_to_name): Rename to ...
5125 (address_space_type_instance_flags_to_name): ... this.
5126 * type-stack.c (type_stack::insert): Adjust to rename.
5127 * type-stack.h (type_stack::insert): Likewise.
5129 2020-09-14 Pedro Alves <pedro@palves.net>
5130 Andrew Burgess <andrew.burgess@embecosm.com>
5132 * avr-tdep.c (avr_address_class_type_flags): Return
5133 type_instance_flags.
5134 (avr_address_class_type_flags_to_name): Take a
5135 type_instance_flags.
5136 (avr_address_class_name_to_type_flags): Return bool and take a
5137 type_instance_flags.
5138 * d-lang.c (build_d_types): Use type::set_instance_flags.
5139 * ft32-tdep.c (ft32_address_class_type_flags): Return
5140 type_instance_flags.
5141 (ft32_address_class_type_flags_to_name): Take a
5142 type_instance_flags.
5143 (ft32_address_class_name_to_type_flags): Return bool and take a
5144 type_instance_flags.
5145 (ft32_gdbarch_init): Use type::set_instance_flags.
5146 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5147 * gdbarch.h, gdbarch.c: Regenerate.
5148 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5149 (address_class_name_to_type_flags): Use type_instance_flags and
5151 * gdbtypes.c (address_space_name_to_int)
5152 (address_space_int_to_name, make_qualified_type): Use
5153 type_instance_flags.
5154 (make_qualified_type): Use type_instance_flags and
5155 type::set_instance_flags.
5156 (make_type_with_address_space, make_cv_type, make_vector_type)
5157 (check_typedef): Use type_instance_flags.
5158 (recursive_dump_type): Cast type_instance_flags to unsigned for
5160 (copy_type_recursive): Use type::set_instance_flags.
5161 (gdbtypes_post_init): Use type::set_instance_flags.
5162 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5163 <m_instance_flags>: ... this.
5164 <instance_flags, set_instance_flags>: New methods.
5165 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5166 (SET_TYPE_INSTANCE_FLAGS): New.
5167 (address_space_name_to_int, address_space_int_to_name)
5168 (make_type_with_address_space): Pass flags using
5169 type_instance_flags instead of int.
5170 * stabsread.c (cleanup_undefined_types_noname): Use
5171 type::set_instance_flags.
5172 * s390-tdep.c (s390_address_class_type_flags): Return
5173 type_instance_flags.
5174 (s390_address_class_type_flags_to_name): Take a
5175 type_instance_flags.
5176 (s390_address_class_name_to_type_flags): Return bool and take a
5177 type_instance_flags.
5178 * type-stack.c (type_stack::follow_types): Use
5179 type_instance_flags.
5180 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5182 2020-09-14 Tom Tromey <tromey@adacore.com>
5184 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5185 * x86-tdep.c (x86_is_thunk_register_name)
5186 (x86_in_indirect_branch_thunk): Update.
5187 * sparc64-tdep.c (sparc64_fpu_register_names)
5188 (sparc64_cp0_register_names, sparc64_register_names)
5189 (sparc64_pseudo_register_names): Now const.
5190 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5191 cp0_registers_num>: Now const.
5192 * sparc-tdep.c (sparc_core_register_names)
5193 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5194 (sparc32_pseudo_register_names): Now const.
5195 (validate_tdesc_registers): Update.
5196 * rust-lang.c (rust_extensions): Now const.
5197 * p-lang.c (p_extensions): Now const.
5198 * objc-lang.c (objc_extensions): Now const.
5199 * nto-tdep.c (nto_thread_state_str): Now const.
5200 * moxie-tdep.c (moxie_register_names): Now const.
5201 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5203 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5204 (mips_linux_reg_names): Now const.
5205 (mips_gdbarch_init): Update.
5206 * microblaze-tdep.c (microblaze_register_names): Now const.
5207 * m68k-tdep.c (m68k_register_names): Now const.
5208 * m32r-tdep.c (m32r_register_names): Now const.
5209 * ia64-tdep.c (ia64_register_names): Now const.
5210 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5211 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5212 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5213 ymm_avx512_register_names, pkeys_register_names>: Now const.
5214 * i386-tdep.c (i386_register_names, i386_zmm_names)
5215 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5216 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5217 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5218 * f-lang.c (f_extensions): Now const.
5219 * d-lang.c (d_extensions): Now const.
5220 * csky-tdep.c (csky_register_names): Now const.
5221 * charset.c (default_charset_names, charset_enum): Now const.
5222 (_initialize_charset): Update.
5223 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5225 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5226 (bsd_uthread_solib_loaded): Update.
5227 (bsd_uthread_state): Now const.
5228 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5229 (amd64_ymm_avx512_names, amd64_ymmh_names)
5230 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5231 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5232 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5233 (amd64_dword_names): Now const.
5234 * agent.c (can_use_agent_enum): Now const.
5235 * ada-tasks.c (task_states, long_task_states): Now const.
5236 * ada-lang.c (known_runtime_file_name_patterns)
5237 (known_auxiliary_function_name_patterns, attribute_names)
5238 (standard_exc, ada_extensions): Now const.
5240 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5242 * bcache.h (struct bcache) <bcache>: Remove constructor.
5243 <m_hash_function, m_compare_function>: Remove.
5244 <~bcache>: Make virtual.
5245 <compare>: Remove static method, introduce virtual method.
5246 <default_hash>: Remove.
5247 <hash>: New virtual method.
5248 * bcache.c (bcache::expand_hash_table): Update.
5249 (bcache::insert): Update.
5250 (bcache::hash): New.
5251 (bcache::compare): Update comment and parameter names.
5252 * gdbtypes.c (types_deeply_equal): Update.
5253 * psymtab.h (struct psymbol_bcache): New struct.
5254 (class psymtab_storage) <psymtab_storage>: Make default.
5255 <psymbol_cache>: Change type to psymbol_bcache.
5256 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5257 (psymbol_hash): Change to...
5258 (psymbol_bcache::hash): ... this.
5259 (psymbol_compare): Change to...
5260 (psymbol_bcache::compare): ... this.
5262 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5264 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5265 checking for initial lwp.
5267 2020-09-14 Tom Tromey <tromey@adacore.com>
5269 * m68k-tdep.c (m68k_extract_return_value): Use
5270 pointer_result_regnum.
5271 (m68k_store_return_value): Likewise.
5272 (m68k_reg_struct_return_p): Handle vectors and arrays.
5273 (m68k_return_value): Handle arrays.
5274 (m68k_svr4_return_value): Fix single-element aggregate handling.
5275 Handle long double. Adjust for embedded ABI.
5276 (m68k_svr4_init_abi): Set pointer_result_regnum.
5277 (m68k_embedded_init_abi): New function.
5278 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5279 (m68k_osabi_sniffer): New function.
5280 (_initialize_m68k_tdep): Register osabi sniffer.
5281 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5284 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5286 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5287 with gdb::unique_xmalloc_ptr<char>.
5289 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5291 * xml-support.h (xml_fetch_another): Change type to be a
5293 (xml_process_xincludes): Remove baton parameter.
5294 (xml_fetch_content_from_file): Change baton parameter to
5296 * xml-support.c (struct xinclude_parsing_data)
5297 <xinclude_parsing_data>: Remove baton parameter.
5298 <fetcher_baton>: Remove.
5299 (xinclude_start_include): Adjust.
5300 (xml_process_xincludes): Adjust.
5301 (xml_fetch_content_from_file): Replace baton parameter with
5303 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5304 (xml_init_syscalls_info): Use a lambda.
5305 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5306 (file_read_description_xml): Use a lambda.
5307 (fetch_available_features_from_target): Change baton parameter
5309 (target_read_description_xml): Use a lambda.
5310 (target_fetch_description_xml): Use a lambda.
5311 (string_read_description_xml): Update.
5313 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5315 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5316 uses with type::endianity_is_not_default.
5318 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5320 * gdbtypes.h (struct type) <endianity_is_not_default,
5321 set_endianity_is_not_default>: New methods.
5322 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5323 type::endianity_is_not_default, change all write call sites to
5324 use type::set_endianity_is_not_default.
5326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5328 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5329 uses with type::is_fixed_instance.
5331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5333 * gdbtypes.h (struct type) <is_fixed_instance,
5334 set_is_fixed_instance>: New methods.
5335 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5336 write call sites to use type::set_is_fixed_instance.
5338 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5340 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5341 uses with type::is_gnu_ifunc.
5343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5345 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5346 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5347 use type::set_is_gnu_ifunc.
5349 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5351 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5352 uses with type::stub_is_supported.
5354 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5356 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5357 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5358 use type::set_stub_is_supported.
5360 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5362 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5363 uses with type::is_vector.
5365 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5367 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5368 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5369 use type::set_is_vector.
5371 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5373 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5374 uses with type::has_varargs.
5376 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5378 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5379 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5380 use type::set_has_varargs.
5382 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5384 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5385 uses with type::is_prototyped.
5387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5389 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5391 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5392 call sites to use type::set_is_prototyped.
5394 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5396 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5397 uses with type::target_is_stub.
5399 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5401 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5403 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5404 sites to use type::set_target_is_stub.
5406 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5408 * gdbtypes.h (TYPE_STUB): Remove, replace all
5409 uses with type::is_stub.
5411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5413 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5414 (TYPE_STUB): Use type::is_stub, change all write call sites to
5415 use type::set_is_stub.
5417 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5419 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5420 type::has_no_signedness.
5422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5424 * gdbtypes.h (struct type) <has_no_signedness,
5425 set_has_no_signedness>: New methods.
5426 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5427 call sites to use type::set_has_no_signedness.
5429 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5431 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5436 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5438 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5439 sites to use type::set_is_unsigned.
5441 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5442 Adam Renquinha <arenquinha@cimeq.qc.ca>
5444 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5445 pointer and stack frame offset when unwinding.
5447 2020-09-13 Pedro Alves <pedro@palves.net>
5449 * NEWS: Document "-break-insert --qualified".
5450 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5452 2020-09-13 Pedro Alves <pedro@palves.net>
5454 * linespec.c (classify_mtype, compare_msyms): Delete.
5455 (search_minsyms_for_name): Remove classification logic. Instead
5456 filter out trampoline symbols if we also found an external
5457 function of the same name.
5459 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5461 * NEWS: Create a new section for the next release branch.
5462 Rename the section of the current branch, now that it has
5465 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5467 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5468 * version.in: Bump version to 11.0.50.DATE-git.
5470 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5472 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5474 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5475 Felix Willgerodt <Felix.Willgerodt@intel.com>
5477 * gdbarch.sh: Added bfloat16 type.
5478 * gdbarch.c: Regenerated.
5479 * gdbarch.h: Regenerated.
5480 * gdbtypes.c (floatformats_bfloat16): New struct.
5481 (gdbtypes_post_init): Add builtin_bfloat16.
5482 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5483 (floatformats_bfloat16): New struct.
5484 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5485 (i386_ymm_type): Add field "v16_bfloat16"
5486 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5487 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5488 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5489 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5490 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5491 * features/i386/64bit-avx512.c: Regenerated.
5492 * features/i386/64bit-sse.xml: Add bfloat16 type.
5493 * features/i386/64bit-sse.c: Regenerated.
5495 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5497 * i386-tdep.c (i386_zmm_type): Fix field names.
5498 (i386_ymm_type): Fix field names.
5500 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5502 * breakpoint.c: Fix typo in the help message of the
5503 "set breakpoint condition-evaluation" command.
5505 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5507 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5508 * (nbsd_nat_target::pid_to_exec_file)
5509 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5510 (nbsd_nat_target::post_startup_inferior)
5511 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5512 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5513 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5514 * (nbsd_thread_lister): Remove.
5516 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5518 * fork-inferior.c (startup_inferior): Avoid double free.
5520 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5522 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5523 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5525 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5527 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5528 * netbsd-nat.c: Include <sys/ptrace.h>.
5529 * (netbsd_nat::enable_proc_events): Add.
5531 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5533 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5534 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5535 (netbsd_nat::for_each_thread): Add.
5536 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5537 "gdbsupport/common-debug.h".
5538 * (netbsd_nat::netbsd_thread_lister)
5539 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5540 (netbsd_nat::for_each_thread): Add.
5542 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5544 * netbsd-nat.h: Include <unistd.h>.
5545 * (netbsd_nat::pid_to_exec_file): Add.
5546 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5547 * (netbsd_nat::pid_to_exec_file) Add.
5549 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5551 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5553 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5555 * netbsd-nat.h: New file.
5556 * netbsd-nat.c: Likewise.
5558 2020-09-09 Tom Tromey <tromey@adacore.com>
5560 * ada-lang.c (remove_extra_symbols): Do not increment when
5563 2020-09-08 Tom Tromey <tromey@adacore.com>
5565 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5567 2020-09-08 Tom Tromey <tromey@adacore.com>
5570 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5571 (gdb_bfd_init_data): New function.
5572 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5574 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5576 * infrun.c (fetch_inferior_event): Use
5577 `switch_to_target_no_thread` to switch the target.
5579 2020-09-06 Tom Tromey <tom@tromey.com>
5581 * symfile.h (dwarf2_free_objfile): Don't declare.
5583 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5585 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5586 to match 16 byte real/complex type generated by Flang compiler.
5588 2020-09-03 Tom de Vries <tdevries@suse.de>
5591 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5592 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5594 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5596 * maint.c (index_digits): New function.
5597 (struct maint_print_section_data): Remove.
5598 (print_bfd_section_info): Remove print_data parameter, add arg
5600 (print_objfile_section_info): Likewise.
5601 (print_bfd_section_info_maybe_relocated): Likewise (plus
5603 (maintenance_info_sections): Adjust calls.
5605 2020-09-02 Tom Tromey <tromey@adacore.com>
5607 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5609 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5611 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5613 * bcache.h (struct bcache) <insert>: Change type of `added` to
5615 * bcache.c (bcache::insert): Likewise.
5616 * gdbtypes.c (check_types_worklist): Adjust.
5617 * psymtab.c (add_psymbol_to_bcache): Adjust.
5619 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5621 * corelow.c (unordered_set): Include.
5622 (class core_target): Add field 'm_core_unavailable_mappings'.
5623 (core_target::build_file_mappings): Print only one warning
5624 per inaccessible file. Add unavailable/broken mappings
5625 to m_core_unavailable_mappings.
5626 (core_target::xfer_partial): Call...
5627 (core_target::xfer_memory_via_mappings): New method.
5629 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5631 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5634 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5636 * dwarf2/read.c (struct field_info): Fix indentation.
5638 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5640 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5641 ordering in comment.
5642 * frame.c (frame_id_eq): Fix indentation.
5644 2020-08-31 Scott Linder <scott@scottlinder.com>
5645 Simon Marchi <simon.marchi@efficios.com>
5647 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5648 inline frame ids in outer frame.
5650 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5652 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5653 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5654 (outer_frame_id): Use FID_STACK_OUTER instead of
5656 (frame_id_p): Don't check for outer_frame_id.
5658 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5660 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5661 regnum/frame in value. Call allocate_value_lazy.
5662 * frame.c (frame_unwind_register_value): Use
5663 val_print_not_saved.
5665 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5667 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5669 2020-08-29 Pedro Alves <pedro@palves.net>
5671 * progspace.c (print_program_space): Use all_inferiors. Switch to
5672 the inferior before calling target_pid_to_str.
5674 2020-08-28 Tom Tromey <tom@tromey.com>
5676 * xcoffread.c (xcoff_end_psymtab): Update comment.
5677 * dbxread.c (dbx_end_psymtab): Update comment.
5679 2020-08-28 Tom de Vries <tdevries@suse.de>
5682 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5684 (create_breakpoint): Same.
5685 (base_breakpoint_decode_location): Same.
5686 (bkpt_create_sals_from_location): Same.
5687 (bkpt_decode_location): Same.
5688 (bkpt_probe_create_sals_from_location): Same.
5689 (bkpt_probe_decode_location): Same.
5690 (tracepoint_create_sals_from_location): Same.
5691 (tracepoint_decode_location): Same.
5692 (tracepoint_probe_decode_location): Same.
5693 (strace_marker_create_sals_from_location): Same.
5694 (strace_marker_decode_location): Same.
5695 (create_sals_from_location_default): Same.
5696 (decode_location_default): Same.
5697 * breakpoint.h (struct breakpoint_ops): Same.
5698 (create_breakpoint): Same.
5699 * linespec.h (decode_line_full): Same.
5700 * linespec.c (decode_line_full): Same. Throw error if
5701 result.size () == 0.
5703 2020-08-27 Pedro Alves <pedro@palves.net>
5706 * breakpoint.c (until_break_fsm) <location_breakpoint,
5707 caller_breakpoint>: Delete fields.
5708 <breakpoints>: New field.
5709 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5710 two individual breakpoints.
5711 (until_break_fsm::should_stop): Loop over breakpoints in the
5713 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5715 (until_break_command): Handle location expanding into multiple
5718 2020-08-27 Pedro Alves <pedro@palves.net>
5721 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5722 bp_until breakpoints user-specified locations. Update intro
5725 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5727 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5728 gdb_bfd_sections): New.
5729 * maint.c (print_bfd_section_info): Change param type to
5730 maint_print_section_data.
5731 (print_objfile_section_info): Likewise.
5732 (print_bfd_section_info_maybe_relocated): Likewise.
5733 (maintenance_info_sections): Use gdb_bfd_sections.
5735 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5737 * MAINTAINERS: Add ARC target and maintainer.
5739 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5741 * configure.tgt: ARC support for GNU/Linux.
5742 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5743 * arc-linux-tdep.c: New file.
5744 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5745 * arc-tdep.c (arc_write_pc): Use it.
5747 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5749 * arc-tdep.c (arc_check_for_hardware_loop): New.
5750 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5752 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5754 * arc-tdep.h: Include "gdbarch.h".
5756 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5759 (arc_gdbarch_features): New class to stir the selection of target XML.
5760 (arc_create_target_description): Use FEATURES to choose XML target.
5761 (arc_lookup_target_description): Use arc_create_target_description
5762 to create _new_ target descriptions or return the already created
5763 ones if the FEATURES is the same.
5764 * arch/arc.c: Implementation of prototypes described above.
5765 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5766 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5767 * arc-tdep.c (*_feature_name): Make feature names consistent.
5768 (arc_register_feature): A new struct to hold information about
5769 registers of a particular target/feature.
5770 (arc_check_tdesc_feature): Check if XML provides registers in
5771 compliance with ARC_REGISTER_FEATURE structs.
5772 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5773 (determine_*_reg_feature_set): Which feature name to look for.
5774 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5775 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5776 to expected ISA enums to be used in arc_gdbarch_features structs.
5777 * features/Makefile (FEATURE_XMLFILES): Add new files.
5778 * gdb/features/arc/v1-aux.c: New file.
5779 * gdb/features/arc/v1-aux.xml: Likewise.
5780 * gdb/features/arc/v1-core.c: Likewise.
5781 * gdb/features/arc/v1-core.xml: Likewise.
5782 * gdb/features/arc/v2-aux.c: Likewise.
5783 * gdb/features/arc/v2-aux.xml: Likewise.
5784 * gdb/features/arc/v2-core.c: Likewise.
5785 * gdb/features/arc/v2-core.xml: Likewise.
5786 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5788 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5789 Andrew Burgess <andrew.burgess@embecosm.com>
5792 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5793 an assert. Remove single element array indexing pattern as the
5794 MULTI_SUBSCRIPT support will handle this case too.
5796 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5798 * value.h (valprint_check_validity): Move declaration from
5800 * valprint.h (valprint_check_validity): ... to here.
5802 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5804 * debug.h: New file.
5805 * debug.c (debug_prefixed_vprintf): New function.
5806 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5807 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5809 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5811 * infrun.h (infrun_debug_printf_1): New function declaration.
5812 (infrun_debug_printf): New macro.
5813 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5815 (infrun_debug_printf): New function.
5816 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5817 (handle_jit_event): Likewise.
5819 2020-08-21 Mark Wielaard <mark@klomp.org>
5821 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5823 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5825 * frame.c (enum class frame_id_status): New.
5826 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5827 (fprintf_frame): Update.
5828 (compute_frame_id): Set frame id status to "computing" on entry.
5829 Set it back to "not_computed" on failure and to "computed" on
5831 (get_frame_id): Assert the frame id is not being computed.
5832 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5833 (create_new_frame): Likewise.
5834 (frame_cleanup_after_sniffer): Update assert.
5836 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5838 * regcache.c (pid_ptid_regcache_map): New type.
5839 (target_ptid_regcache_map): Remove.
5840 (target_pid_ptid_regcache_map): New type.
5841 (regcaches): Change type to target_pid_ptid_regcache_map.
5842 (get_thread_arch_aspace_regcache): Update.
5843 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5845 (regcaches_size): Update.
5846 (regcache_count): Update.
5847 (registers_changed_ptid_target_pid_test): New.
5848 (_initialize_regcache): Register new test.
5850 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5852 * regcache.c (regcache_count): New.
5853 (struct regcache_test_data): New.
5854 (regcache_test_data_up): New.
5855 (populate_regcaches_for_test): New.
5856 (regcaches_test): Remove.
5857 (get_thread_arch_aspace_regcache_test): New.
5858 (registers_changed_ptid_all_test): New.
5859 (registers_changed_ptid_target_test): New.
5860 (registers_changed_ptid_target_ptid_test): New.
5861 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5862 (_initialize_regcache): Register new tests.
5864 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5866 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5867 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5868 gdbarch and aspace parameter. Use current inferior's aspace.
5869 Validate regcache's arch value.
5870 (regcaches_test): Update.
5872 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5874 * regcache.c (regcaches_test): Call registers_changed.
5876 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5878 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5880 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5882 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5883 to find the end of prologue for flang compiled binaries.
5884 * arm-tdep.c (arm_skip_prologue): Likewise.
5885 * i386-tdep.c (i386_skip_prologue): Likewise.
5886 * producer.c (producer_is_llvm): New function.
5887 (producer_parsing_tests): Added new tests for clang/flang.
5888 * producer.h (producer_is_llvm): New declaration.
5890 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5892 * linux-nat.c (linux_nat_debug_printf): New function.
5893 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5895 2020-08-18 Aaron Merey <amerey@redhat.com>
5897 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5898 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5899 (CLIBS): Add DEBUGINFOD_LIBS.
5901 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5903 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5906 2020-08-17 Tom Tromey <tromey@adacore.com>
5908 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5909 ada_get_decoded_value returns NULL.
5911 2020-08-17 Tom Tromey <tromey@adacore.com>
5913 * python/py-inferior.c (infpy_search_memory): Use
5914 gdb_py_object_from_ulongest.
5915 * python/py-infevents.c (create_inferior_call_event_object)
5916 (create_memory_changed_event_object): Use
5917 gdb_py_object_from_ulongest.
5918 * python/py-linetable.c (ltpy_entry_get_pc): Use
5919 gdb_py_object_from_ulongest.
5921 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5923 * loc.c (class symbol_needs_eval_context): Fix indentation.
5925 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5927 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5930 2020-08-17 Tom de Vries <tdevries@suse.de>
5933 * gdbtypes.c (dump_dynamic_prop): New function.
5934 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5936 2020-08-15 Tom de Vries <tdevries@suse.de>
5939 * stack.c (print_frame_args): Temporarily set the selected
5940 frame to FRAME while printing the frame's arguments.
5942 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5944 PR breakpoints/26385
5945 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5946 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5948 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5950 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5951 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5952 and >= to check return value instead of == -1 and != -1.
5954 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5956 * utils.h (class gdb_argv) <as_array_view>: New method.
5957 * utils.c (gdb_argv_as_array_view_test): New.
5958 (_initialize_utils): Register selftest.
5959 * maint.c (maintenance_selftest): Use the new method.
5961 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5963 * target.h (supports_dumpcore, dumpcore): New
5964 function declarations.
5965 * target.c (supports_dumpcore, dumpcore): New
5967 * target-delegates.c: Rebuild.
5968 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5969 and target_dumpcore ().
5971 2020-08-13 Aaron Merey <amerey@redhat.com>
5973 * debuginfod-support.c: Replace global variables with user_data.
5975 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5977 * maint.c (maintenance_selftest): Split args and pass array_view
5980 2020-08-12 Luis Machado <luis.machado@linaro.org>
5982 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5984 Use %s and pulongest to print the length.
5986 2020-08-12 Pedro Alves <palves@redhat.com>
5988 * NEWS: Move "Multi-target debugging support" item to the
5989 "Changes since GDB 9" section.
5991 2020-08-12 Pedro Alves <palves@redhat.com>
5994 * progspace.c (program_space::remove_objfile): Invalidate the
5997 2020-08-11 Tom de Vries <tdevries@suse.de>
5999 * MAINTAINERS: Mark ms1 as deleted.
6001 2020-08-10 Luis Machado <luis.machado@linaro.org>
6005 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6007 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6008 movz/str/stur/stp skipping behavior.
6010 2020-08-10 Luis Machado <luis.machado@linaro.org>
6012 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6013 struct user_sve_header instead of struct sve_context.
6015 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6017 * read.h (dwarf2_fetch_die_loc_sect_off,
6018 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6019 `void *` parameter with function_view.
6020 * read.c (dwarf2_fetch_die_loc_sect_off,
6021 dwarf2_fetch_die_loc_cu_off): Likewise.
6022 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6023 (per_cu_dwarf_call): Adjust.
6024 (get_frame_address_in_block_wrapper): Remove.
6025 (indirect_synthetic_pointer): Adjust.
6026 (get_ax_pc): Remove.
6027 (dwarf2_compile_expr_to_ax): Adjust.
6029 2020-08-08 Tom de Vries <tdevries@suse.de>
6032 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6034 * regcache.c (get_thread_arch_aspace_regcache): Same.
6036 2020-08-07 Tom Tromey <tromey@adacore.com>
6038 * ravenscar-thread.c
6039 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6041 (ravenscar_thread_target::wait): Check
6042 runtime_initialized.
6043 (ravenscar_thread_target::prepare_to_store)
6044 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6045 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6046 (ravenscar_thread_target::stopped_by_watchpoint)
6047 (ravenscar_thread_target::stopped_data_address)
6048 (ravenscar_thread_target::core_of_thread): Use
6049 scoped_restore_current_thread and
6050 set_base_thread_from_ravenscar_task.
6052 2020-08-07 Tom Tromey <tromey@adacore.com>
6054 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6056 2020-08-07 Tom Tromey <tromey@adacore.com>
6058 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6059 update_inferior_ptid before update_thread_list.
6060 (temporarily_change_regcache_ptid): New class.
6061 (ravenscar_thread_target::fetch_registers)
6062 (ravenscar_thread_target::store_registers)
6063 (ravenscar_thread_target::prepare_to_store): Use base thread when
6064 forwarding operation.
6066 2020-08-07 Tom Tromey <tromey@adacore.com>
6068 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6071 2020-08-07 Tom Tromey <tromey@adacore.com>
6073 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6075 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6077 (ravenscar_thread_target::add_thread): Rename from
6078 ravenscar_add_thread.
6079 (ravenscar_thread_target::update_thread_list): Use a lambda.
6080 (ravenscar_thread_target::xfer_partial): New method.
6082 2020-08-07 Tom Tromey <tromey@adacore.com>
6084 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6086 (iterate_over_live_ada_tasks): Change type of argument.
6087 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6090 2020-08-07 Tom Tromey <tromey@adacore.com>
6092 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6094 (ravenscar_thread_target::extra_thread_info): Remove.
6095 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6096 defer to target beneath for non-Ravenscar threads.
6098 2020-08-07 Tom Tromey <tromey@adacore.com>
6100 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6101 get_base_thread_from_ravenscar_task>: Now methods.
6102 <m_cpu_map>: New member.
6103 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6104 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6105 (ravenscar_thread_target::task_is_currently_active): Update.
6106 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6108 (ravenscar_thread_target::add_active_thread): Put initial thread
6111 2020-08-07 Tom Tromey <tromey@adacore.com>
6113 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6116 2020-08-07 Tom Tromey <tromey@adacore.com>
6118 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6119 runtime_initialized.
6121 2020-08-07 Tom Tromey <tromey@adacore.com>
6123 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6125 (ravenscar_thread_target::add_active_thread): Now public.
6126 (ravenscar_inferior_created): Call add_active_thread after pushing
6129 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6131 * regcache.c (ptid_regcache_map): New type.
6132 (target_ptid_regcache_map): New type.
6133 (regcaches): Change type to target_ptid_regcache_map.
6134 (get_thread_arch_aspace_regcache): Update to regcaches' new
6136 (regcache_thread_ptid_changed): Likewise.
6137 (registers_changed_ptid): Likewise.
6138 (regcaches_size): Likewise.
6139 (regcaches_test): Update.
6140 (regcache_thread_ptid_changed): Update.
6141 * regcache.h (regcache_up): New type.
6142 * gdbsupport/ptid.h (hash_ptid): New struct.
6144 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6146 * observable.h (thread_ptid_changed): Add parameter
6147 `process_stratum_target *`.
6148 * infrun.c (infrun_thread_ptid_changed): Add parameter
6149 `process_stratum_target *` and use it.
6150 (selftests): New namespace.
6151 (infrun_thread_ptid_changed): New function.
6152 (_initialize_infrun): Register selftest.
6153 * regcache.c (regcache_thread_ptid_changed): Add parameter
6154 `process_stratum_target *` and use it.
6155 (regcache_thread_ptid_changed): New function.
6156 (_initialize_regcache): Register selftest.
6157 * thread.c (thread_change_ptid): Pass target to
6158 thread_ptid_changed observable.
6160 2020-08-06 Caroline Tice <cmtice@google.com>
6162 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6163 (struct dwp_sections): Update field comments. Add loclists and
6165 (struct virtual_v2_dwo_sections): Rename struct to
6166 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6167 size & offset fields for loclists and rnglists.
6168 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6169 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6170 skipping dummy type units.
6171 (create_dwp_hash_table): Update the large comment above the function to
6172 discuss Version 5 DWP files as well, with references. Update all the
6173 version checks in the function to check for version 5 as well. Add new
6174 section at the end to create dwp hash table for version 5.
6175 (create_dwp_v2_section): Rename function to
6176 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6177 Add V5 to error message text.
6178 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6179 into calls to create_dwp_v2_or_v5_section.
6180 (create_dwo_unit_in_dwp_v5): New function.
6181 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6182 check for version2; add else clause to handle version 5.
6183 (open_and_init_dwo_file): Add code to check dwarf version & only call
6184 create_debug_types_hash_table (with sections.types) if version is not 5;
6185 else call create_debug_type_hash_table, with sections.info.
6186 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6188 (dwarf2_locate_v5_dwp_sections): New function.
6189 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6190 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6192 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6194 * regcache.h (class regcache): Remove friend
6195 registers_changed_ptid.
6196 <regcache_thread_ptid_changed>: Remove.
6197 <regcaches>: Remove.
6198 * regcache.c (regcache::regcaches): Rename to...
6199 (regcaches): ... this. Make static.
6200 (get_thread_arch_aspace_regcache): Update.
6201 (regcache::regcache_thread_ptid_changed): Rename to...
6202 (regcache_thread_ptid_changed): ... this. Update.
6203 (class regcache_access): Remove.
6204 (regcaches_test): Update.
6205 (_initialize_regcache): Update.
6206 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6209 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6211 * regcache.h (class regcache) <current_regcache>: Rename to...
6212 <regcaches>: ... this. Move doc here.
6213 * regcache.c (regcache::current_regcache) Rename to...
6214 (regcache::regcaches): ... this. Move doc to header.
6215 (get_thread_arch_aspace_regcache): Update.
6216 (regcache::regcache_thread_ptid_changed): Update.
6217 (registers_changed_ptid): Update.
6218 (class regcache_access) <current_regcache_size>: Rename to...
6219 <regcaches_size>: ... this.
6220 (current_regcache_test): Rename to...
6221 (regcaches_test): ... this.
6222 (_initialize_regcache): Update.
6224 2020-08-06 Victor Collod <vcollod@nvidia.com>
6226 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6228 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6230 * corelow.c (core_target::build_file_mappings): Don't output
6231 null pathname in warning.
6233 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6235 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6236 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6237 gdb.dwarf2/dw2-single-line-discriminators.exp,
6238 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6240 2020-08-05 Tom Tromey <tromey@adacore.com>
6243 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6244 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6245 Fix off-by-one and type size errors in ordinary case.
6247 2020-08-05 Tom de Vries <tdevries@suse.de>
6249 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6250 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6252 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6254 * frame.h (frame_id_p): Return bool.
6255 (frame_id_artificial_p): Return bool.
6256 (frame_id_eq): Return bool.
6257 (has_stack_frames): Return bool.
6258 (get_selected_frame): Fix typo in comment.
6259 (get_frame_pc_if_available): Return bool.
6260 (get_frame_address_in_block_if_available): Return bool.
6261 (get_frame_func_if_available): Return bool.
6262 (read_frame_register_unsigned): Return bool.
6263 (get_frame_register_bytes): Return bool.
6264 (safe_frame_unwind_memory): Return bool.
6265 (deprecated_frame_register_read): Return bool.
6266 (frame_unwinder_is): Return bool.
6267 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6269 <this_id::p>: Likewise.
6271 (frame_stash_add): Return bool.
6272 (get_frame_id): Use bool.
6273 (frame_id_build_special) Use bool.
6274 (frame_id_build_unavailable_stack): Use bool.
6275 (frame_id_build): Use bool.
6276 (frame_id_p): Return bool, use true/false instead of 1/0.
6277 (frame_id_artificial_p): Likewise.
6278 (frame_id_eq): Likewise.
6279 (frame_id_inner): Likewise.
6280 (get_frame_func_if_available): Likewise.
6281 (read_frame_register_unsigned): Likewise.
6282 (deprecated_frame_register_read): Likewise.
6283 (get_frame_register_bytes): Likewise.
6284 (has_stack_frames): Likewise.
6285 (inside_main_func): Likewise.
6286 (inside_entry_func): Likewise.
6287 (get_frame_pc_if_available): Likewise.
6288 (get_frame_address_in_block_if_available): Likewise.
6289 (frame_unwinder_is): Likewise.
6290 (safe_frame_unwind_memory): Likewise.
6291 (frame_unwind_arch): Likewise.
6293 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6295 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6296 type to cached_copy_status.
6297 (fprintf_frame): Adjust.
6298 (get_frame_func_if_available): Adjust.
6299 (frame_cleanup_after_sniffer): Adjust.
6301 2020-08-04 Mark Wielaard <mark@klomp.org>
6303 * MAINTAINERS (Write After Approval): Update email address.
6305 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6307 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6308 dynamic_prop::const_val.
6310 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6312 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6315 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6317 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6319 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6321 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6323 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6324 Jose E. Marchesi <jose.marchesi@oracle.com>
6326 * configure.tgt: Add entry for bpf-*-*.
6327 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6328 (ALLDEPFILES): Add bpf-tdep.c.
6329 * bpf-tdep.c: New file.
6330 * MAINTAINERS: Add bpf target and maintainer.
6331 * NEWS: Mention the support for the new target.
6333 2020-08-04 Tom de Vries <tdevries@suse.de>
6336 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6339 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6341 * syscalls/freebsd.xml: Regenerate.
6343 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6345 * syscalls/update-freebsd.sh: Fix usage and year range.
6347 2020-08-03 Tom de Vries <tdevries@suse.de>
6350 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6351 DW_LNE_lo_user/DW_LNE_hi_user range.
6353 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6356 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6359 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6361 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6363 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6365 * breakpoint.c (set_breakpoint_condition): Update the condition
6366 expressions after checking that the input condition string parses
6367 successfully and does not contain junk at the end.
6369 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6371 * breakpoint.c (set_breakpoint_condition): Update the
6372 condition string after parsing the new condition successfully.
6374 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6376 * proc-api.c (_STRUCTURED_PROC): Don't define.
6377 * proc-events.c: Likewise.
6378 * proc-flags.c: Likewise.
6379 * proc-why.c: Likewise.
6380 * procfs.c: Likewise.
6382 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6383 * configure, config.in: Regenerate.
6385 2020-07-30 Tom de Vries <tdevries@suse.de>
6388 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6389 m_red/m_green/m_blue in a union.
6391 2020-07-29 Tom de Vries <tdevries@suse.de>
6394 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6396 2020-07-28 Tom Tromey <tromey@adacore.com>
6399 * symtab.h (find_pc_partial_function_sym): Declare.
6400 * cli/cli-cmds.c (disassemble_command): Use
6401 find_pc_partial_function_sym. Check asm_demangle.
6402 * blockframe.c (cache_pc_function_sym): New global.
6403 (cache_pc_function_name): Remove.
6404 (clear_pc_function_cache): Update.
6405 (find_pc_partial_function_sym): New function, from
6406 find_pc_partial_function.
6407 (find_pc_partial_function): Rewrite using
6408 find_pc_partial_function_sym.
6410 2020-07-28 Tom Tromey <tromey@adacore.com>
6412 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6415 2020-07-28 Tom Tromey <tromey@adacore.com>
6417 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6418 <DW_OP_GNU_variable_value>: Cast to address type.
6420 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6422 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6423 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6424 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6425 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6426 (nbsd_get_siginfo_type): New.
6427 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6428 (_initialize_nbsd_tdep): New.
6430 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6433 * configure: Regenerated.
6435 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6438 * configure: Regenerated.
6440 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6442 * python/py-frame.c: Remove 'user-regs.h' include.
6443 (frapy_read_register): Rewrite to make use of
6444 gdbpy_parse_register_id.
6445 * python/py-registers.c (gdbpy_parse_register_id): New function,
6446 moved here from python/py-unwind.c. Updated the return type, and
6447 also accepts register descriptor objects.
6448 * python/py-unwind.c: Remove 'user-regs.h' include.
6449 (pyuw_parse_register_id): Moved to python/py-registers.c.
6450 (unwind_infopy_add_saved_register): Update to use
6451 gdbpy_parse_register_id.
6452 (pending_framepy_read_register): Likewise.
6453 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6455 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6457 * python/py-registers.c: Add 'user-regs.h' include.
6458 (register_descriptor_iter_find): New function.
6459 (register_descriptor_iterator_object_methods): New static global
6461 (register_descriptor_iterator_object_type): Add pointer to methods
6464 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6466 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6467 for all architectures on FreeBSD 11.3 and later.
6469 2020-07-27 Tom Tromey <tromey@adacore.com>
6471 * gcore.h (load_corefile): Don't declare.
6473 2020-07-27 Tom de Vries <tdevries@suse.de>
6475 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6476 * config.in: Regenerate.
6477 * configure: Regenerate.
6479 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6481 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6482 ws2tcpip.h. When checking whether socklen_t type is defined, use
6483 ws2tcpip.h if it is available and sys/socket.h isn't.
6484 * configure: Regenerate.
6485 * config.in: Regenerate.
6487 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6491 * valops.c (value_ind): Pass address to
6492 readjust_indirect_value_type.
6493 * value.c (readjust_indirect_value_type): Make parameter
6494 non-const, and add extra address parameter. Resolve original type
6496 * value.h (readjust_indirect_value_type): Update function
6497 signature and comment.
6499 2020-07-25 Tom de Vries <tdevries@suse.de>
6502 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6505 2020-07-24 Aaron Merey <amerey@redhat.com>
6507 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6508 * configure: Rebuild.
6510 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6513 * corelow.c (_initialize_corelow): Add period to help text
6514 for "maintenance print core-file-backed-mappings".
6516 2020-07-23 Pedro Alves <pedro@palves.net>
6518 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6519 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6521 * frame.c (frame_cache_generation, get_frame_cache_generation):
6523 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6524 (get_prev_frame_if_no_cycle): On exception, don't touch
6525 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6526 * frame.h (get_frame_cache_generation): Declare.
6528 2020-07-23 Tom de Vries <tdevries@suse.de>
6531 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6532 New default constructor.
6534 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6536 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6537 exclude non-statement entries.
6539 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6541 * NEWS (New commands): Mention new command
6542 "maintenance print core-file-backed-mappings".
6544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6546 * corelow.c (gdbcmd.h): Include.
6547 (core_target::info_proc_mappings): New method.
6548 (get_current_core_target): New function.
6549 (maintenance_print_core_file_backed_mappings): New function.
6550 (_initialize_corelow): Add core-file-backed-mappings to
6551 "maint print" commands.
6553 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6555 * linux-tdep.c (dump_note_entry_p): New function.
6556 (linux_dump_mapping_p_ftype): New typedef.
6557 (linux_find_memory_regions_full): Add new parameter,
6558 should_dump_mapping_p.
6559 (linux_find_memory_regions): Adjust call to
6560 linux_find_memory_regions_full.
6561 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6562 call to linux_find_memory_regions_full.
6564 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6566 * corelow.c (solist.h, unordered_map): Include.
6567 (class core_target): Add field m_core_file_mappings and
6568 method build_file_mappings.
6569 (core_target::core_target): Call build_file_mappings.
6570 (core_target::~core_target): Free memory associated with
6571 m_core_file_mappings.
6572 (core_target::build_file_mappings): New method.
6573 (core_target::xfer_partial): Use m_core_file_mappings
6574 for memory transfers.
6575 * linux-tdep.c (linux_read_core_file_mappings): New
6577 (linux_core_info_proc_mappings): Rewrite to use
6578 linux_read_core_file_mappings.
6579 (linux_init_abi): Register linux_read_core_file_mappings.
6581 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6583 * arch-utils.c (default_read_core_file_mappings): New function.
6584 * arch-utils.c (default_read_core_file_mappings): Declare.
6585 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6586 * gdbarch.h, gdbarch.c: Regenerate.
6588 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6591 * corelow.c (core_target:xfer_partial): Revise
6592 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6593 case after first checking the stratum beneath the core
6595 (has_all_memory): Return true.
6596 * target.c (raw_memory_xfer_partial): Revise comment
6597 regarding use of has_all_memory.
6599 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6601 * exec.h (section_table_xfer_memory): Revise declaration,
6602 replacing section name parameter with an optional callback
6604 * exec.c (section_table_xfer_memory): Likewise.
6605 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6606 of section_table_xfer_memory.
6608 2020-07-22 Tom Tromey <tromey@adacore.com>
6610 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6611 lookup_symbol_search_name.
6613 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6615 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6616 redundant local variable.
6617 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6618 reference, not pointer, update code accordingly.
6620 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6621 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6623 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6624 * jit.c (jit_breakpoint_re_set_internal): Use the
6625 `skip_jit_symbol_lookup` field.
6627 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6628 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6630 * jit.c (jit_read_descriptor): Define the descriptor address once,
6632 (jit_breakpoint_deleted): Move the declaration of the loop variable
6633 `iter` into the loop header.
6634 (jit_breakpoint_re_set_internal): Move the declaration of the local
6635 variable `objf_data` to the first point of definition.
6636 (jit_event_handler): Move the declaration of local variables
6637 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6638 Rename `objf` to `jited`.
6640 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6642 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6644 * jit.c (get_jiter_objfile_data): Update.
6646 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6647 Simon Marchi <simon.marchi@polymtl.ca>
6649 * jit.c (struct jit_program_space_data): Remove.
6650 (jit_program_space_key): Remove.
6651 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6653 (get_jit_program_space_data): Remove.
6654 (jit_breakpoint_deleted): Iterate on all of the program space's
6656 (jit_inferior_init): Likewise.
6657 (jit_breakpoint_re_set_internal): Likewise. Also change return
6659 (jit_breakpoint_re_set): Pass current_program_space to
6660 jit_breakpoint_re_set_internal.
6662 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6664 * jit.h (struct jiter_objfile_data) <cached_code_address,
6665 jit_breakpoint>: Move to here from ...
6666 * jit.c (jit_program_space_data): ... here.
6667 (jiter_objfile_data::~jiter_objfile_data): Update.
6668 (jit_breakpoint_deleted): Update.
6669 (jit_breakpoint_re_set_internal): Update.
6671 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6673 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6675 (jit_read_descriptor): Remove NULL check.
6676 (jit_event_handler): Add an assertion.
6678 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6680 * jit.h (struct jit_objfile_data): Split into...
6681 (struct jiter_objfile_data): ... this ...
6682 (struct jited_objfile_data): ... and this.
6683 * objfiles.h (struct objfile) <jit_data>: Remove.
6684 <jiter_data, jited_data>: New fields.
6685 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6686 (jiter_objfile_data::~jiter_objfile_data): ... this.
6687 (get_jit_objfile_data): Rename to ...
6688 (get_jiter_objfile_data): ... this.
6689 (add_objfile_entry): Update.
6690 (jit_read_descriptor): Use get_jiter_objfile_data.
6691 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6692 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6693 (jit_inferior_exit_hook): Use objfile's jited_data field.
6695 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6697 * jit.h: Forward-declare `struct minimal_symbol`.
6698 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6699 constructor, destructor, and an objfile* field.
6700 * jit.c (jit_objfile_data): Remove.
6701 (struct jit_objfile_data): Migrate from here to jit.h.
6702 (jit_objfile_data::~jit_objfile_data): New destructor
6703 implementation with code moved from free_objfile_data.
6704 (free_objfile_data): Delete.
6705 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6706 (jit_find_objf_with_entry_addr): Ditto.
6707 (jit_inferior_exit_hook): Ditto.
6708 (_initialize_jit): Remove the call to
6709 register_objfile_data_with_cleanup.
6710 * objfiles.h (struct objfile) <jit_data>: New field.
6712 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6714 * jit.h: Forward-declare `struct objfile`.
6715 (jit_event_handler): Add a second parameter, the JITer objfile.
6716 * jit.c (jit_read_descriptor): Change the signature to take the
6717 JITer objfile as an argument instead of the jit_program_space_data.
6718 (jit_inferior_init): Update the call to jit_read_descriptor.
6719 (jit_event_handler): Use the new JITer objfile argument when calling
6720 jit_read_descriptor.
6721 * breakpoint.c (handle_jit_event): Update the call to
6722 jit_event_handler to pass the JITer objfile.
6724 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6726 * gdbarch.c: Regenerate.
6727 * gdbarch.h: Regenerate.
6728 * gdbarch.sh (handle_segmentation_fault): Remove method.
6729 * infrun.c (handle_segmentation_fault): Remove.
6730 (print_signal_received_reason): Remove call to
6731 handle_segmentation_fault.
6733 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6735 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6736 Rename to sparc64_linux_report_signal_info and add siggnal
6738 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6739 instead of sparc64_linux_handle_segmentation_fault.
6741 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6743 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6744 i386_linux_report_signal_info instead of
6745 i386_linux_handle_segmentation_fault.
6746 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6747 to i386_linux_report_signal_info and add siggnal argument.
6748 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6749 of i386_linux_handle_segmentation_fault.
6750 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6751 to i386_linux_report_signal_info and add siggnal argument.
6753 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6755 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6758 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6760 * gdbarch.c: Regenerate.
6761 * gdbarch.h: Regenerate.
6762 * gdbarch.sh (report_signal_info): New method.
6763 * infrun.c (print_signal_received_reason): Invoke gdbarch
6764 report_signal_info hook if present.
6766 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6768 * python/py-registers.c : Add 'unordered_map' include.
6769 (gdbpy_new_reggroup): Renamed to...
6770 (gdbpy_get_reggroup): ...this. Update to only create register
6771 group descriptors when needed.
6772 (gdbpy_reggroup_iter_next): Update.
6774 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6776 * python/py-registers.c (gdbpy_register_object_data): New static
6778 (gdbpy_register_object_data_init): New function.
6779 (gdbpy_new_register_descriptor): Renamed to...
6780 (gdbpy_get_register_descriptor): ...this, and update to reuse
6781 existing register descriptors where possible.
6782 (gdbpy_register_descriptor_iter_next): Update.
6783 (gdbpy_initialize_registers): Register new gdbarch data.
6785 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6787 * linux-nat.c (stopped_pids): Make static.
6789 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6792 * gdbtypes.c (ada_discrete_type_low_bound,
6793 ada_discrete_type_high_bound): Handle undefined bounds.
6795 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6797 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6799 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6802 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6804 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6805 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6806 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6807 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6808 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6811 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6813 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6814 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6815 which are deprecated in Guile 3.0.
6816 * configure.ac (try_guile_versions): Add "guile-3.0".
6817 * configure (try_guile_versions): Regenerate.
6818 * NEWS: Update entry.
6820 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6821 Doug Evans <dje@google.com>
6824 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6825 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6826 USING_GUILE_BEFORE_2_2.
6827 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6828 Change type to 'scm_t_port_type *'.
6829 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6830 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6831 parameter and honor it. Update callers.
6832 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6833 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6835 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6836 USING_GUILE_BEFORE_2_2.
6837 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6838 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6839 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6840 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6841 and 'SCM_PORT_TYPE'.
6842 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6843 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6844 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6845 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6846 [!USING_GUILE_BEFORE_2_2]: New functions.
6847 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6848 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6849 'gdbscm_memory_port_read'.
6850 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6851 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6852 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6854 (ioscm_init_memory_port): Remove.
6855 (ioscm_init_memory_port_stream): New function
6856 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6858 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6859 Return scm_from_uint (0).
6860 (gdbscm_set_memory_port_read_buffer_size_x)
6861 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6862 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6863 Return scm_from_uint (0).
6864 (gdbscm_set_memory_port_write_buffer_size_x)
6865 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6866 * configure.ac (try_guile_versions): Add "guile-2.2".
6867 * configure: Regenerate.
6870 2020-07-18 Tom Tromey <tom@tromey.com>
6872 * linux-nat.c (linux_multi_process): Remove.
6873 (linux_nat_target::supports_multi_process): Return true.
6875 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6877 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6878 (riscv_lookup_target_description): Return pointer out of
6880 * target-descriptions.c (allocate_target_description): Add
6882 (target_desc_deleter::operator()): Likewise.
6883 * target-descriptions.h (struct target_desc_deleter): Moved to
6885 (target_desc_up): Likewise.
6887 2020-07-17 Tom Tromey <tromey@adacore.com>
6889 * linux-nat.c (linux_nat_target::supports_non_stop)
6890 (linux_nat_target::always_non_stop_p): Use "true".
6891 (linux_nat_target::supports_disable_randomization): Use "true" and
6894 2020-07-16 Caroline Tice <cmtice@google.com>
6896 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6897 (RNGLIST_HEADER_SIZE64): New constant definition.
6898 (struct dwop_section_names): Add rnglists_dwo.
6899 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6900 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6901 (struct dwo_sections): Add rnglists field.
6902 (read_attribut_reprocess): Add tag parameter.
6903 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6904 (cu_debug_rnglists_section): New function (decl & definition).
6905 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6906 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6907 die whose range is being checked; get rnglist section from
6908 cu_debug_rnglists_section, to get from either objfile or dwo file as
6909 appropriate. Add cases for DW_RLE_base_addressx,
6910 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6911 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6912 test inside if-condition and updating complaint message.
6913 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6914 dwarf2_rnglists_process.
6915 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6916 dwarf2_ranges_process.
6917 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6918 need_ranges_base and update comment appropriately. Also pass die tag
6919 to dwarf2_ranges_read.
6920 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6921 need_ranges_base and update comment appropriately. Also pass die tag
6922 to dwarf2_ranges_process.
6923 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6924 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6925 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6926 need_ranges_base and update comment appropriately. Also pass die tag
6927 to read_attribute_reprocess and dwarf2_ranges_read.
6928 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6929 and update function comment appropriately.
6930 (read_loclist_index): Call read_loclists_rnglists_header instead of
6931 read_loclist_header.
6932 (read_rnglist_index): New function.
6933 (read_attribute_reprocess): Add tag parameter. Add code for
6934 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6935 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6937 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6939 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6942 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6944 * arch-utils.c (show_architecture): Update formatting of messages.
6946 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6948 * gdbtypes.h (struct type) <bounds>: Handle array and string
6950 * ada-lang.c (assign_aggregate): Use type::bounds on
6952 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6953 * c-varobj.c (c_number_of_children): Likewise.
6954 (c_describe_child): Likewise.
6955 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6956 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6957 (f_type_print_base): Likewise.
6958 * f-valprint.c (f77_array_offset_tbl): Likewise.
6959 (f77_get_upperbound): Likewise.
6960 (f77_print_array_1): Likewise.
6961 * guile/scm-type.c (gdbscm_type_range): Likewise.
6962 * m2-typeprint.c (m2_array): Likewise.
6963 (m2_is_long_set_of_type): Likewise.
6964 * m2-valprint.c (get_long_set_bounds): Likewise.
6965 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6966 * python/py-type.c (typy_range): Likewise.
6967 * rust-lang.c (rust_internal_print_type): Likewise.
6968 * type-stack.c (type_stack::follow_types): Likewise.
6969 * valarith.c (value_subscripted_rvalue): Likewise.
6970 * valops.c (value_cast): Likewise.
6972 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6974 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6975 callers to use the equivalent accessor methods.
6977 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6979 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6980 (struct type) <bit_stride>: New method.
6981 (TYPE_BIT_STRIDE): Remove.
6982 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6984 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6986 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6987 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6988 callers to use the equivalent accessor methods instead.
6990 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6992 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6993 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6994 callers to use the equivalent accessor methods instead.
6996 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6998 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6999 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7000 to use dynamic_prop::kind.
7002 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7004 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7005 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7006 to get the bound property's kind and check against
7009 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7011 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7012 all callers to use type::range_bounds followed by
7013 dynamic_prop::{low,high}.
7015 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7017 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7018 const_val, set_const_val, baton, set_locexpr, set_loclist,
7019 set_addr_offset, variant_parts, set_variant_parts,
7020 original_type, set_original_type>: New methods.
7021 <kind>: Rename to...
7022 <m_kind>: ... this. Update all users to use the new methods
7024 <data>: Rename to...
7025 <m_data>: ... this. Update all users to use the new methods
7028 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7030 * gdbtypes.c (get_discrete_bounds): Return failure if
7031 the range type's bounds are not both defined and constant
7033 (get_array_bounds): Update comment. Remove undefined bound check.
7035 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7037 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7038 the type::bounds method directly.
7040 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7042 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7043 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7044 are used to set the range type's bounds to use set_bounds.
7046 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7048 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7050 2020-07-10 Pedro Alves <pedro@palves.net>
7052 * gdbthread.h (inferior_ref): Define.
7053 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7054 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7056 (scoped_restore_current_thread::restore):
7057 Adjust to gdb::ref_ptr.
7058 (scoped_restore_current_thread::~scoped_restore_current_thread):
7059 Remove manual decref handling.
7060 (scoped_restore_current_thread::scoped_restore_current_thread):
7062 inferior_ref::new_reference/thread_info_ref::new_reference.
7063 Incref the thread before calling get_frame_id instead of after.
7064 Let TARGET_CLOSE_ERROR propagate.
7066 2020-07-10 Pedro Alves <pedro@palves.net>
7068 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7069 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7070 NOT_AVAILABLE_ERROR.
7071 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7072 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7074 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7075 Pedro Alves <pedro@palves.net>
7078 * infrun.c (threads_are_resumed_pending_p): Delete.
7079 (do_target_wait): Remove threads_are_executing and
7080 threads_are_resumed_pending_p checks from the inferior_matches
7081 lambda. Update comments.
7083 2020-07-10 Pedro Alves <pedro@palves.net>
7086 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7089 2020-07-10 Pedro Alves <pedro@palves.net>
7092 * infrun.c (handle_no_resumed): Handle multiple targets.
7094 2020-07-10 Pedro Alves <pedro@palves.net>
7097 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7100 2020-07-10 Pedro Alves <pedro@palves.net>
7103 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7104 threads, not all threads.
7106 2020-07-10 Pedro Alves <pedro@palves.net>
7109 * remote.c (remote_target::open_1): Pass remote target pointer as
7110 data to create_async_event_handler.
7111 (remote_async_inferior_event_handler): Mark async event handler
7112 before returning if the remote target still has either pending
7113 events or unacknowledged notifications.
7115 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7117 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7119 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7122 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7124 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7127 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7129 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7130 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7131 AT_FREEBSD_PS_STRINGS.
7133 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7135 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7136 of debugfile path on Windows.
7138 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7140 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7143 2020-07-08 Tom Tromey <tromey@adacore.com>
7145 * ada-lang.c (ada_exception_message_1): Use read_memory.
7147 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7150 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7151 special handling for inline frames.
7152 * findvar.c (value_of_register_lazy): Skip inline frames when
7153 creating lazy register values.
7154 * frame.c (frame_id_computed_p): Delete definition.
7155 * frame.h (frame_id_computed_p): Delete declaration.
7157 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7159 * NEWS: Mention additions to Python API.
7160 * python/py-arch.c (archpy_register_groups): New function.
7161 (arch_object_methods): Add 'register_groups' method.
7162 * python/py-registers.c (reggroup_iterator_object): New struct.
7163 (reggroup_object): New struct.
7164 (gdbpy_new_reggroup): New function.
7165 (gdbpy_reggroup_to_string): New function.
7166 (gdbpy_reggroup_name): New function.
7167 (gdbpy_reggroup_iter): New function.
7168 (gdbpy_reggroup_iter_next): New function.
7169 (gdbpy_new_reggroup_iterator): New function
7170 (gdbpy_initialize_registers): Register new types.
7171 (reggroup_iterator_object_type): Define new Python type.
7172 (gdbpy_reggroup_getset): New static global.
7173 (reggroup_object_type): Define new Python type.
7174 * python/python-internal.h
7176 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7178 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7179 * python/py-arch.c (archpy_registers): New function.
7180 (arch_object_methods): Add 'registers' method.
7181 * python/py-registers.c: New file.
7182 * python/python-internal.h
7183 (gdbpy_new_register_descriptor_iterator): Declare.
7184 (gdbpy_initialize_registers): Declare.
7185 * python/python.c (do_start_initialization): Call
7186 gdbpy_initialize_registers.
7187 * NEWS: Mention additions to the Python API.
7189 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7191 * NEWS: Mention new Python API method.
7192 * python/py-unwind.c (pending_framepy_architecture): New function.
7193 (pending_frame_object_methods): Add architecture method.
7195 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7197 * gdbarch.c: Regenerate.
7198 * gdbarch.h: Regenerate.
7199 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7200 (gdbarch_data): Use internal_error for the case where
7201 deprecated_set_gdbarch_data was originally needed.
7202 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7203 and use passed in obstack.
7204 (libunwind_frame_set_descr): Should no longer get back NULL from
7206 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7208 * user-regs.c (user_regs_init): Update parameters, and use passed
7210 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7211 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7213 2020-07-06 Tom de Vries <tdevries@suse.de>
7215 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7216 End-Of-Sequence in lte_is_less_than.
7217 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7218 "gdb: Don't reorder line table entries too much when sorting".
7220 2020-07-06 Tom de Vries <tdevries@suse.de>
7223 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7225 2020-07-05 Tom de Vries <tdevries@suse.de>
7228 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7229 std::uncaught_exceptions instead of deprecated
7230 std::uncaught_exception.
7232 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7234 * macroexp.h (macro_stringify): Return
7235 gdb::unique_xmalloc_ptr<char>.
7236 * macroexp.c (macro_stringify): Likewise.
7237 * macrotab.c (fixup_definition): Update.
7239 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7241 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7242 (lex_one_token): Update.
7243 * macroexp.c (struct macro_buffer) <release>: Return
7244 gdb::unique_xmalloc_ptr<char>.
7245 (macro_stringify): Update.
7246 (macro_expand): Update.
7247 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7248 * macroexp.h (macro_expand_next): Likewise.
7250 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7252 * macroexp.h (macro_lookup_ftype): Remove.
7253 (macro_expand, macro_expand_once, macro_expand_next): Remove
7254 lookup function parameters, add scope parameter.
7255 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7256 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7257 * macroscope.h (standard_macro_lookup): Change parameter type
7259 * macroscope.c (standard_macro_lookup): Likewise.
7260 * c-exp.y (lex_one_token): Update.
7261 * macrocmd.c (macro_expand_command): Likewise.
7262 (macro_expand_once_command): Likewise.
7264 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7266 * inf-loop.c (inferior_event_handler): Remove client_data param.
7267 * inf-loop.h (inferior_event_handler): Likewise.
7268 * infcmd.c (step_1): Adjust.
7269 * infrun.c (proceed): Adjust.
7270 (fetch_inferior_event): Remove client_data param.
7271 (infrun_async_inferior_event_handler): Adjust.
7272 * infrun.h (fetch_inferior_event): Remove `void *` param.
7273 * linux-nat.c (handle_target_event): Adjust.
7274 * record-btrace.c (record_btrace_handle_async_inferior_event):
7276 * record-full.c (record_full_async_inferior_event_handler):
7278 * remote.c (remote_async_inferior_event_handler): Adjust.
7280 2020-07-01 Tom Tromey <tom@tromey.com>
7282 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7283 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7285 2020-07-01 Tom Tromey <tom@tromey.com>
7287 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7289 (tui_win_info::make_window): Merge with
7290 tui_gen_win_info::make_window.
7291 (tui_win_info::make_visible): Move from tui_gen_win_info.
7292 * tui/tui-win.c (tui_win_info::max_width): Move from
7294 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7296 <window_factory>: Likewise.
7297 * tui/tui-layout.c (tui_win_info::resize): Move from
7299 (make_standard_window): Change return type.
7300 (get_locator_window, tui_get_window_by_name): Likewise.
7301 (tui_layout_window::apply): Remove a cast.
7302 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7303 (struct tui_win_info): Merge with tui_gen_win_info.
7304 (struct tui_gen_win_info): Remove.
7306 2020-07-01 Tom Tromey <tom@tromey.com>
7308 * tui/tui-stack.h (struct tui_locator_window): Derive from
7310 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7311 <can_box>: New method.
7313 2020-07-01 Tom Tromey <tom@tromey.com>
7315 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7317 2020-07-01 Tom Tromey <tom@tromey.com>
7319 * tui/tui-regs.c (tui_data_window::display_registers_from)
7320 (tui_data_window::display_registers_from)
7321 (tui_data_window::first_data_item_displayed)
7322 (tui_data_window::delete_data_content_windows): Update.
7323 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7325 (tui_data_window::check_register_values): Update.
7326 (tui_data_item_window::rerender): Add parameters. Update.
7327 (tui_data_item_window::refresh_window): Remove.
7328 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7330 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7332 <refresh_window, max_height, min_height>: Remove.
7333 <rerender>: Add parameters.
7334 <x, y, visible>: New members.
7335 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7336 <m_item_width>: New member.
7338 2020-07-01 Tom Tromey <tom@tromey.com>
7340 * tui/tui-regs.c (tui_data_window::show_register_group)
7341 (tui_data_window::check_register_values): Update.
7342 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7345 2020-07-01 Tom Tromey <tom@tromey.com>
7347 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7350 2020-07-01 Tom Tromey <tom@tromey.com>
7352 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7353 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7355 2020-07-01 Tom Tromey <tom@tromey.com>
7357 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7358 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7359 (struct tui_line_or_address): Move from tui-data.h.
7360 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7361 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7362 (tui_cmd_window, tui_source_window_base, tui_source_window)
7363 (tui_disasm_window): Don't declare.
7364 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7366 (SINGLE_KEY): Move to tui-stack.c.
7368 2020-07-01 Tom Tromey <tom@tromey.com>
7370 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7372 * tui/tui-regs.c (class tab_expansion_file): New.
7373 (tab_expansion_file::write): New method.
7374 (tui_register_format): Change return type. Use
7376 (tui_get_register, tui_data_window::display_registers_from)
7377 (tui_data_item_window::rerender): Update.
7378 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7379 * tui/tui-io.c (tui_expand_tabs): Remove.
7381 2020-07-01 Tom Tromey <tom@tromey.com>
7383 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7385 2020-07-01 Fangrui Song <maskray@google.com>
7387 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7389 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7391 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7392 forms for DW_AT_associated and DW_AT_allocated attributes,
7393 which is already checked in function attr_to_dynamic_prop.
7395 2020-06-30 Tom Tromey <tromey@adacore.com>
7397 * dwarf2/read.c (quirk_rust_enum): Correctly call
7398 alloc_rust_variant for default-less enum.
7400 2020-06-30 Tom Tromey <tromey@adacore.com>
7403 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7406 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7408 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7409 * gdbarch.h: Re-generate.
7411 2020-06-28 Tom Tromey <tom@tromey.com>
7413 * command.h (cmd_types): Remove.
7414 (cmd_type): Don't declare.
7415 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7417 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7418 * cli/cli-decode.c (cmd_type): Remove.
7420 2020-06-27 Pedro Alves <palves@redhat.com>
7422 * fork-child.c (prefork_hook): Adjust.
7423 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7425 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7426 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7427 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7428 Remove declarations.
7429 (struct inferior) <set_tty, tty>: New methods.
7430 (struct inferior) <terminal>: Rename to ...
7431 (struct inferior) <m_terminal>: ... this and make private.
7432 * main.c (captured_main_1): Adjust.
7433 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7434 (mi_cmd_inferior_tty_show): Adjust.
7435 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7436 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7438 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7440 * configure.ac: Add --enable-libctf: handle --disable-static
7442 * acinclude.m4: sinclude ../config/enable.m4.
7443 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7444 (LIBCTF): Substitute in.
7445 (CTF_DEPS): New, likewise.
7446 (CLIBS): libctf needs symbols from libbfd: move earlier.
7447 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7449 * ctfread.c: Surround in ENABLE_LIBCTF.
7450 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7451 * configure: Regenerate.
7452 * config.in: Likewise.
7454 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7456 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7458 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7460 * inferior.h (struct inferior) <terminal>: Change type to
7461 gdb::unique_xmalloc_ptr<char>.
7462 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7463 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7464 field, adjust to unique pointer.
7465 (get_inferior_io_terminal): Adjust to unique pointer.
7467 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7469 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7470 registers, not just the known core set of registers.
7472 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7474 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7475 fflags, frm, and fcsr registers.
7476 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7478 (riscv_tdesc_unknown_reg): New function.
7479 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7480 tdesc_use_registers.
7481 * riscv-tdep.h (struct gdbarch_tdep): Add
7482 unknown_csrs_first_regnum, unknown_csrs_count,
7483 duplicate_fflags_regnum, duplicate_frm_regnum, and
7484 duplicate_fcsr_regnum fields.
7486 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7488 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7489 callback, use the callback (when not null) to help number unknown
7491 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7492 (tdesc_use_registers): Add extra parameter to declaration.
7494 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7496 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7498 (class riscv_pending_register_alias): Likewise.
7499 (riscv_register_feature::register_info): Change 'required_p' field
7500 to 'required', and change its type. Add 'check' member function.
7501 (riscv_register_feature::register_info::check): Define new member
7503 (riscv_xreg_feature): Change initialisation of 'required' field.
7504 (riscv_freg_feature): Likewise.
7505 (riscv_virtual_feature): Likewise.
7506 (riscv_csr_feature): Likewise.
7507 (riscv_check_tdesc_feature): Take extra parameter, the csr
7508 tdesc_feature, rewrite the function to use the new
7509 riscv_register_feature::register_info::check function.
7510 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7512 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7514 * features/Makefile: Remove all references to the deleted files
7516 * features/riscv/32bit-csr.c: Deleted.
7517 * features/riscv/32bit-csr.xml: Deleted.
7518 * features/riscv/64bit-csr.c: Deleted.
7519 * features/riscv/64bit-csr.xml: Deleted.
7520 * features/riscv/rebuild-csr-xml.sh: Deleted.
7522 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7524 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7525 whitespace error for declaration of names member variable.
7526 (struct riscv_register_feature): Add new prefer_first_name member
7527 variable, and fix whitespace error in declaration of registers.
7528 (riscv_xreg_feature): Initialize prefer_first_name field.
7529 (riscv_freg_feature): Likewise.
7530 (riscv_virtual_feature): Likewise.
7531 (riscv_csr_feature): Likewise.
7532 (riscv_register_name): Expand on comments. Remove register name
7533 modifications for CSR and virtual registers.
7535 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7537 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7540 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7542 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7544 (class riscv_pending_register_alias): New class.
7545 (riscv_check_tdesc_feature): Take vector of pending aliases and
7546 populate it as appropriate.
7547 (riscv_setup_register_aliases): Delete.
7548 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7549 to riscv_check_tdesc_feature in all cases. Use the vector to
7550 create the register aliases.
7552 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7554 * sol2-tdep.c (sol2_static_transform_name): Remove.
7555 (sol2_init_abi): Don't register it.
7556 * gdbarch.sh (static_transform_name): Remove.
7557 * gdbarch.c, gdbarch.h: Regenerate.
7559 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7560 gdbarch_static_transform_name.
7561 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7562 * stabsread.c (define_symbol) <'X'>: Remove.
7563 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7566 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7567 <'S'>: Remove call to gdbarch_static_transform_name.
7569 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7571 * procfs.c (procfs_pre_trace): New function.
7572 (procfs_target::create_inferior): Pass it to fork_inferior.
7574 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7576 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7577 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7578 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7579 sol2-tdep.o, sparc-sol2-tdep.o.
7580 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7581 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7582 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7583 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7585 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7587 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7588 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7590 Remove calls to set_gdbarch_skip_solib_resolver,
7591 set_gdbarch_core_pid_to_str.
7592 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7593 (i386_sol2_static_transform_name): Remove.
7594 (i386_sol2_init_abi): Call sol2_init_abi.
7595 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7596 set_gdbarch_static_transform_name,
7597 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7598 Use sol2_sigtramp_p.
7599 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7600 (sol2_sigtramp_p): New function.
7601 (sol2_static_transform_name): New function.
7602 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7603 (sol2_init_abi): New function.
7604 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7605 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7606 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7607 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7608 (sparc_sol2_static_transform_name): Remove.
7609 (sparc32_sol2_init_abi): Call sol2_init_abi.
7610 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7611 set_gdbarch_static_transform_name,
7612 set_gdbarch_skip_solib_resolver,
7613 set_gdbarch_core_pid_to_str.
7614 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7615 (sparc_sol2_static_transform_name): Remove
7616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7617 call sol2_sigtramp_p.
7618 (sparc64_sol2_init_abi): Call sol2_init_abi.
7619 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7620 set_gdbarch_static_transform_name,
7621 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7623 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7625 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7626 * exec.c (validate_exec_file): If from_tty, set both
7627 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7628 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7629 and from_tty, unconditionally ask a confirmation.
7631 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7633 * target-descriptions.c (tdesc_architecture_name): Protect against
7634 NULL pointer dereference.
7635 (maint_print_xml_tdesc_cmd): New function.
7636 (_initialize_target_descriptions): Register new 'maint print
7637 xml-tdesc' command and give it the filename completer.
7638 * NEWS: Mention new 'maint print xml-tdesc' command.
7640 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7642 * target-descriptions.c (class tdesc_compatible_info): New class.
7643 (struct target_desc): Change type of compatible vector.
7644 (tdesc_compatible_p): Update for change in type of
7645 target_desc::compatible.
7646 (tdesc_compatible_info_list): New function.
7647 (tdesc_compatible_info_arch_name): New function.
7648 (tdesc_add_compatible): Update for change in type of
7649 target_desc::compatible.
7650 (print_c_tdesc::visit_pre): Likewise.
7652 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7654 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7655 whitespace to underscore.
7656 (maint_print_c_tdesc_cmd): Use fake filename for target
7657 descriptions that came from the target.
7658 (_initialize_target_descriptions): Add filename command completion
7659 for 'maint print c-tdesc'.
7661 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7663 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7666 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7668 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7670 (dwarf2_find_location_expression): Likewise.
7671 (call_site_parameter_matches): Likewise.
7672 (dwarf2_compile_expr_to_ax): Likewise.
7673 (disassemble_dwarf_expression): Likewise.
7674 (loclist_describe_location): Likewise.
7676 2020-06-23 Pedro Alves <palves@redhat.com>
7678 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7679 progspace-and-thread.h. Include scoped-mock-context.h instead.
7680 (register_to_value_test): Use scoped_mock_context.
7681 * regcache.c: Include "scoped-mock-context.h".
7682 (cooked_read_test): Don't error out if a target is already pushed.
7683 Use scoped_mock_context. Adjust.
7684 * scoped-mock-context.h: New file.
7686 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7688 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7690 (ada_language::is_string_type_p): New member function.
7691 * c-lang.c (c_language_data): Delete la_is_string_type_p
7693 (cplus_language_data): Likewise.
7694 (asm_language_data): Likewise.
7695 (minimal_language_data): Likewise.
7696 * d-lang.c (d_language_data): Likewise.
7697 * f-lang.c (f_is_string_type_p): Delete function, implementation
7698 moved to f_language::is_string_type_p.
7699 (f_language_data): Delete la_is_string_type_p initializer.
7700 (f_language::is_string_type_p): New member function,
7701 implementation from f_is_string_type_p.
7702 * go-lang.c (go_is_string_type_p): Delete function, implementation
7703 moved to go_language::is_string_type_p.
7704 (go_language_data): Delete la_is_string_type_p initializer.
7705 (go_language::is_string_type_p): New member function,
7706 implementation from go_is_string_type_p.
7707 * language.c (language_defn::is_string_type_p): Define new member
7709 (default_is_string_type_p): Make static, add comment copied from
7711 (unknown_language_data): Delete la_is_string_type_p initializer.
7712 (unknown_language::is_string_type_p): New member function.
7713 (auto_language_data): Delete la_is_string_type_p initializer.
7714 (auto_language::is_string_type_p): New member function.
7715 * language.h (language_data): Delete la_is_string_type_p field.
7716 (language_defn::is_string_type_p): Declare new function.
7717 (default_is_string_type_p): Delete desclaration, move comment to
7719 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7720 moved to m2_language::is_string_type_p.
7721 (m2_language_data): Delete la_is_string_type_p initializer.
7722 (m2_language::is_string_type_p): New member function,
7723 implementation from m2_is_string_type_p.
7724 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7726 * opencl-lang.c (opencl_language_data): Likewise.
7727 * p-lang.c (pascal_is_string_type_p): Delete function,
7728 implementation moved to pascal_language::is_string_type_p.
7729 (pascal_language_data): Delete la_is_string_type_p initializer.
7730 (pascal_language::is_string_type_p): New member function,
7731 implementation from pascal_is_string_type_p.
7732 * rust-lang.c (rust_is_string_type_p): Delete function,
7733 implementation moved to rust_language::is_string_type_p.
7734 (rust_language_data): Delete la_is_string_type_p initializer.
7735 (rust_language::is_string_type_p): New member function,
7736 implementation from rust_is_string_type_p.
7737 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7740 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7742 * ada-lang.c (ada_language_data): Delete la_print_typedef
7744 (ada_language::print_typedef): New member function.
7745 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7746 (cplus_language_data): Likewise.
7747 (asm_language_data): Likewise.
7748 (minimal_language_data): Likewise.
7749 * d-lang.c (d_language_data): Likewise.
7750 * f-lang.c (f_language_data): Likewise.
7751 (f_language::print_typedef): New member function.
7752 * go-lang.c (go_language_data): Delete la_print_typedef
7754 * language.c (language_defn::print_typedef): Define member
7756 (unknown_language_data): Delete la_print_typedef initializer.
7757 (unknown_language::print_typedef): New member function.
7758 (auto_language_data): Delete la_print_typedef initializer.
7759 (auto_language::print_typedef): New member function.
7760 * language.h (language_data): Delete la_print_typedef field.
7761 (language_defn::print_typedef): Declare new member function.
7762 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7763 (default_print_typedef): Delete declaration.
7764 * m2-lang.c (m2_language_data): Delete la_print_typedef
7766 (m2_language::print_typedef): New member function.
7767 * objc-lang.c (objc_language_data): Delete la_print_typedef
7769 * opencl-lang.c (opencl_language_data): Likewise.
7770 * p-lang.c (pascal_language_data): Likewise.
7771 (pascal_language::print_typedef): New member function.
7772 * rust-lang.c (rust_print_typedef): Delete function,
7773 implementation moved to rust_language::print_typedef.
7774 (rust_language): Delete la_print_typedef initializer.
7775 (rust_language::print_typedef): New member function,
7776 implementation from rust_print_typedef.
7777 * typeprint.c (default_print_typedef): Delete.
7779 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7781 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7782 (ada_language::printstr): New member function.
7783 * c-lang.c (c_language_data): Delete la_printstr initializer.
7784 (cplus_language_data): Likewise.
7785 (asm_language_data): Likewise.
7786 (minimal_language_data): Likewise.
7787 * d-lang.c (d_language_data): Likewise.
7788 * f-lang.c (f_printstr): Rename to f_language::printstr.
7789 (f_language_data): Delete la_printstr initializer.
7790 (f_language::printstr): New member function, implementation from
7792 * go-lang.c (go_language_data): Delete la_printstr initializer.
7793 * language.c (language_defn::printstr): Define new member
7795 (unk_lang_printstr): Delete.
7796 (unknown_language_data): Delete la_printstr initializer.
7797 (unknown_language::printstr): New member function.
7798 (auto_language_data): Delete la_printstr initializer.
7799 (auto_language::printstr): New member function.
7800 * language.h (language_data): Delete la_printstr field.
7801 (language_defn::printstr): Declare new member function.
7802 (LA_PRINT_STRING): Update call to printstr.
7803 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7804 (m2_language_data): Delete la_printstr initializer.
7805 (m2_language::printstr): New member function, implementation from
7807 * objc-lang.c (objc_language_data): Delete la_printstr
7809 * opencl-lang.c (opencl_language_data): Likewise.
7810 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7811 (pascal_language_data): Delete la_printstr initializer.
7812 (pascal_language::printstr): New member function, implementation
7813 from pascal_printstr.
7814 * p-lang.h (pascal_printstr): Delete declaration.
7815 * rust-lang.c (rust_printstr): Update header comment.
7816 (rust_language_data): Delete la_printstr initializer.
7817 (rust_language::printstr): New member function.
7819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7821 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7822 (ada_language::printchar): New member function.
7823 * c-lang.c (c_language_data): Delete la_printchar initializer.
7824 (cplus_language_data): Likewise.
7825 (asm_language_data): Likewise.
7826 (minimal_language_data): Likewise.
7827 * d-lang.c (d_language_data): Likewise.
7828 * f-lang.c (f_printchar): Rename to f_language::printchar.
7829 (f_language_data): Delete la_printchar initializer.
7830 (f_language::printchar): New member function, implementation from
7832 * go-lang.c (go_language_data): Delete la_printchar initializer.
7833 * language.c (unk_lang_printchar): Delete.
7834 (language_defn::printchar): Define new member function.
7835 (unknown_language_data): Delete la_printchar initializer.
7836 (unknown_language::printchar): New member function.
7837 (auto_language_data): Delete la_printchar initializer.
7838 (auto_language::printchar): New member function.
7839 * language.h (language_data): Delete la_printchar field.
7840 (language_defn::printchar): Declare new member function.
7841 (LA_PRINT_CHAR): Update call to printchar.
7842 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7843 (m2_language::printchar): New member function.
7844 * objc-lang.c (objc_language_data): Delete la_printchar
7846 * opencl-lang.c (opencl_language_data): Likewise.
7847 * p-lang.c (pascal_language_data): Delete la_printchar
7849 (pascal_language::printchar): New member function.
7850 * rust-lang.c (rust_printchar): Rename to
7851 rust_language::printchar.
7852 (rust_language_data): Delete la_printchar initializer.
7853 (rust_language::printchar): New member function, implementation
7854 from rust_printchar.
7856 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7858 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7859 (ada_language_data): Delete la_emitchar initializer.
7860 (ada_language::emitchar): New member function, implementation from
7862 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7863 (cplus_language_data): Likewise.
7864 (asm_language_data): Likewise.
7865 (minimal_language_data): Likewise.
7866 * d-lang.c (d_language_data): Likewise.
7867 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7868 (f_language_data): Delete la_emitchar initializer.
7869 (f_language::emitchar): New member function, implementation from
7871 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7872 * language.c (unk_lang_emit_char): Delete.
7873 (language_defn::emitchar): New member function definition.
7874 (unknown_language_data): Delete la_emitchar initializer.
7875 (unknown_language::emitchar): New member function.
7876 (auto_language_data): Delete la_emitchar initializer.
7877 (auto_language::emitchar): New member function.
7878 * language.h (language_data): Delete la_emitchar field.
7879 (language_defn::emitchar): New member field declaration.
7880 (LA_EMIT_CHAR): Update call to emitchar.
7881 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7882 (m2_language_data): Delete la_emitchar initializer.
7883 (m2_language::emitchar): New member function, implementation from
7885 * objc-lang.c (objc_language_data): Delete la_emitchar
7887 * opencl-lang.c (opencl_language_data): Likewise.
7888 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7889 (pascal_language_data): Delete la_emitchar initializer.
7890 (pascal_language::emitchar): New member function, implementation
7891 from pascal_emit_char.
7892 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7893 (rust_language_data): Delete la_emitchar initializer.
7894 (rust_language::emitchar): New member function, implementation
7897 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7899 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7900 (ada_language_data): Delete la_post_parser initializer.
7901 (ada_language::post_parser): New member function.
7902 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7903 (cplus_language_data): Likewise.
7904 (asm_language_data): Likewise.
7905 (minimal_language_data): Likewise.
7906 * d-lang.c (d_language_data): Likewise.
7907 * f-lang.c (f_language_data): Likewise.
7908 * go-lang.c (go_language_data): Likewise.
7909 * language.c (unknown_language_data): Likewise.
7910 (auto_language_data): Likewise.
7911 * language.h (language_data): Delete la_post_parser field.
7912 (language_defn::post_parser): New member function.
7913 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7914 * objc-lang.c (objc_language_data): Likewise.
7915 * opencl-lang.c (opencl_language_data): Likewise.
7916 * p-lang.c (pascal_language_data): Likewise.
7917 * parse.c (parse_exp_in_context): Update call to post_parser.
7918 (null_post_parser): Delete definition.
7919 * parser-defs.h (null_post_parser): Delete declaration.
7920 * rust-lang.c (rust_language_data): Delete la_post_parser
7923 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7925 * ada-lang.c (parse): Rename to ada_language::parser.
7926 (ada_language_data): Delete la_parser initializer.
7927 (ada_language::parser): New member function, implementation from
7929 * c-lang.c (c_language_data): Delete la_parser initializer.
7930 (cplus_language_data): Likewise.
7931 (asm_language_data): Likewise.
7932 (minimal_language_data): Likewise.
7933 * d-lang.c (d_language_data): Likewise.
7934 (d_language::parser): New member function.
7935 * f-lang.c (f_language_data): Delete la_parser initializer.
7936 (f_language::parser): New member function.
7937 * go-lang.c (go_language_data): Delete la_parser initializer.
7938 (go_language::parser): New member function.
7939 * language.c (unk_lang_parser): Delete.
7940 (language_defn::parser): Define new member function.
7941 (unknown_language_data): Delete la_parser initializer.
7942 (unknown_language::parser): New member function.
7943 (auto_language_data): Delete la_parser initializer.
7944 (auto_language::parser): New member function.
7945 * language.h (language_data): Delete la_parser field.
7946 (language_defn::parser): Declare new member function.
7947 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7948 (m2_language::parser): New member function.
7949 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7950 * opencl-lang.c (opencl_language_data): Likewise.
7951 * p-lang.c (pascal_language_data): Likewise.
7952 (pascal_language::parser): New member function.
7953 * parse.c (parse_exp_in_context): Update call to parser.
7954 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7955 (rust_language::parser): New member function.
7957 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7959 * top.c (print_gdb_configuration): Print --with-python-libdir
7960 configuration value.
7962 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7964 * NEWS: Mention change to the alias command.
7966 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7968 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7969 (alias_command_completer)
7970 (make_alias_options_def_group): New functions.
7971 (alias_opts, alias_option_defs): New struct and array.
7972 (alias_usage_error): Update usage.
7973 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7974 Use option framework.
7975 (_initialize_cli_cmds): Update alias command help.
7976 Update aliases command help.
7978 Add NULL for new default_args lookup_cmd argument.
7979 (valid_command_p): Rename to validate_aliased_command.
7980 Add NULL for new default_args lookup_cmd argument. Verify that the
7981 aliased_command has no default args.
7982 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7983 (lookup_cmd_1, lookup_cmd): New argument default_args.
7985 Add NULL for new default_args lookup_cmd argument.
7986 (print_help_for_command): Show default args under the layout
7987 alias some_alias = some_aliased_cmd some_alias_default_arg.
7988 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7989 xfree default_args in destructor.
7990 * cli/cli-script.c (process_next_line, do_define_command):
7991 Add NULL for new default_args lookup_cmd argument.
7992 * command.h: Declare new default_args argument in lookup_cmd
7994 * completer.c (complete_line_internal_1):
7995 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7996 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7997 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7999 * infcmd.c (_initialize_infcmd): Likewise.
8000 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8001 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8002 * python/py-param.c (add_setshow_generic): Likewise.
8003 * remote.c (_initialize_remote): Likewise.
8004 * top.c (execute_command): Prepend default_args if command has some.
8006 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8007 * tracepoint.c (validate_actionline, encode_actions_1):
8008 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8010 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8012 * jit.c (jit_read_descriptor): Use bool as the return type.
8013 (jit_breakpoint_re_set_internal): Use bool as the return type.
8014 Invert the return value logic; return true if the jit breakpoint
8015 has been successfully initialized.
8016 (jit_inferior_init): Update the call to
8017 jit_breakpoint_re_set_internal.
8019 2020-06-22 Pedro Alves <palves@redhat.com>
8022 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8023 Use the current inferior instead. Don't return
8024 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8026 * sol-thread.c (sol_thread_target::wait): Don't reference
8028 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8029 (sol_update_thread_list_callback): Use the current inferior's pid
8030 instead of inferior_ptid.
8032 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8034 * procfs.c: Cleanup many comments.
8036 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8037 (AFTER_WATCHFLAG): Replace by value.
8039 (MAIN_PROC_NAME_FORMAT): Inline ...
8040 (create_procinfo): ... here.
8042 (procfs_debug_inferior): Remove SYS_exec handling.
8043 (syscall_is_exec): Likewise.
8044 (procfs_set_exec_trap): Likewise.
8046 (syscall_is_lwp_exit): Inline in callers.
8047 (syscall_is_exit): Likewise.
8048 (syscall_is_exec): Likewise.
8049 (syscall_is_lwp_create): Likewise.
8051 (invalidate_cache): Remove #if 0 code.
8053 (make_signal_thread_runnable): Remove.
8054 (procfs_target::resume): Remove #if 0 code.
8056 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8059 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8061 (procfs_target::create_inferior): ... here.
8063 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8065 * exec.c (validate_exec_file): Ensure the build-id is up to
8066 date by calling reopen_exec_file (that checks file timestamp
8067 to decide to re-read the file).
8069 2020-06-18 Pedro Alves <palves@redhat.com>
8072 * gdbthread.h (delete_thread, delete_thread_silent)
8073 (find_thread_ptid): Update comments.
8074 * thread.c (current_thread_): New global.
8075 (is_current_thread): Move higher, and reimplement.
8076 (inferior_thread): Reimplement.
8077 (set_thread_exited): Use bool. Add assertions.
8078 (add_thread_silent): Simplify thread-reuse handling by always
8079 calling delete_thread.
8080 (delete_thread): Remove intro comment.
8081 (find_thread_ptid): Skip exited threads.
8082 (switch_to_thread_no_regs): Write to current_thread_.
8083 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8084 INFERIOR_PTID. Clear current_thread_.
8086 2020-06-18 Pedro Alves <palves@redhat.com>
8088 * aix-thread.c (pd_update): Use switch_to_thread.
8090 2020-06-18 Pedro Alves <palves@redhat.com>
8092 * ravenscar-thread.c (ravenscar_thread_target): Update.
8093 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8094 (ravenscar_thread_target::add_active_thread): ... this. Don't
8095 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8096 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8098 2020-06-18 Pedro Alves <palves@redhat.com>
8100 * nat/windows-nat.c (current_windows_thread): Remove.
8101 * nat/windows-nat.h (current_windows_thread): Remove.
8102 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8104 (display_selectors): Adjust to fetch the current
8105 windows_thread_info based on inferior_ptid.
8106 (fake_create_process): No longer write to current_windows_thread.
8107 (windows_nat_target::get_windows_debug_event):
8108 Don't set inferior_ptid or current_windows_thread.
8109 (windows_nat_target::wait): Adjust to not rely on
8110 current_windows_thread.
8111 (do_initial_windows_stuff): Now a method of windows_nat_target.
8112 Switch to the last_ptid thread.
8113 (windows_nat_target::attach): Adjust.
8114 (windows_nat_target::detach): Use switch_to_no_thread instead of
8115 writing to inferior_ptid directly.
8116 (windows_nat_target::create_inferior): Adjust.
8118 2020-06-18 Pedro Alves <palves@redhat.com>
8120 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8122 2020-06-18 Pedro Alves <palves@redhat.com>
8124 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8125 after creating it, instead of writing to inferior_ptid. Don't
8126 write to inferior_ptid.
8128 2020-06-18 Pedro Alves <palves@redhat.com>
8130 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8132 2020-06-18 Pedro Alves <palves@redhat.com>
8134 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8135 it, instead of writing to inferior_ptid.
8137 2020-06-18 Pedro Alves <palves@redhat.com>
8139 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8142 2020-06-18 Pedro Alves <palves@redhat.com>
8144 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8145 instead of writing to inferior_ptid directly.
8147 2020-06-18 Pedro Alves <palves@redhat.com>
8149 * corelow.c (core_target::close): Use switch_to_no_thread instead
8150 of writing to inferior_ptid directly.
8151 (add_to_thread_list, core_target_open): Use switch_to_thread
8152 instead of writing to inferior_ptid directly.
8154 2020-06-18 Pedro Alves <palves@redhat.com>
8156 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8158 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8160 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8161 inferior_ptid directly.
8162 (darwin_nat_target::init_thread_list): Switch to thread, instead
8163 of writing to inferior_ptid.
8164 (darwin_nat_target::attach): Don't write to inferior_ptid.
8165 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8167 2020-06-18 Pedro Alves <palves@redhat.com>
8169 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8171 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8172 Instead use switch_to_thread.
8173 (gnu_nat_target::detach): Use switch_to_no_thread
8174 instead of writing to inferior_ptid directly. Used passed-in
8175 inferior instead of looking up the inferior by pid.
8177 2020-06-18 Pedro Alves <palves@redhat.com>
8179 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8182 2020-06-18 Pedro Alves <palves@redhat.com>
8184 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8186 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8188 (nto_procfs_target::detach): Avoid referencing
8189 inferior_ptid. Use switch_to_no_thread instead of writing to
8190 inferior_ptid directly.
8191 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8192 instead of writing to inferior_ptid directly.
8193 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8196 2020-06-18 Pedro Alves <palves@redhat.com>
8198 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8199 after creating it, instead of writing to inferior_ptid.
8200 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8201 to inferior_ptid directly.
8202 (gdbsim_target::wait): Don't write to inferior_ptid.
8204 2020-06-18 Pedro Alves <palves@redhat.com>
8206 * remote.c (remote_target::remote_notice_new_inferior): Use
8207 switch_to_thread instead of writing to inferior_ptid directly.
8208 (remote_target::add_current_inferior_and_thread): Use
8209 switch_to_no_thread instead of writing to inferior_ptid directly.
8210 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8211 and switch_to_thread instead of using set_current_inferior or
8212 writing to inferior_ptid directly.
8214 2020-06-18 Pedro Alves <palves@redhat.com>
8216 * tracectf.c (ctf_target_open): Switch to added thread instead of
8217 writing to inferior_ptid directly.
8218 (ctf_target::close): Use switch_to_no_thread instead of writing to
8219 inferior_ptid directly.
8221 2020-06-18 Pedro Alves <palves@redhat.com>
8223 * tracefile-tfile.c (tfile_target_open): Don't write to
8224 inferior_ptid directly, instead switch to added thread.
8225 (tfile_target::close): Use switch_to_no_thread instead of writing
8226 to inferior_ptid directly.
8228 2020-06-18 Pedro Alves <palves@redhat.com>
8230 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8231 (procfs_target::detach): Use switch_to_no_thread
8232 instead of writing to inferior_ptid directly.
8233 (do_attach): Change return type to void. Switch to the added
8235 (procfs_target::create_inferior): Switch to the added thread.
8236 (procfs_do_thread_registers): Don't write to inferior_ptid.
8238 2020-06-18 Pedro Alves <palves@redhat.com>
8240 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8241 of writing to inferior_ptid.
8242 (scoped_restore_exited_inferior): Delete.
8243 (handle_vfork_child_exec_or_exit): Simplify using
8244 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8245 instead of writing to inferior_ptid.
8246 (THREAD_STOPPED_BY): Delete.
8247 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8248 (thread_stopped_by_hw_breakpoint): Delete.
8249 (save_waitstatus): Use
8250 scoped_restore_current_thread+switch_to_thread, and call
8251 target_stopped_by_watchpoint instead of
8252 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8253 instead of thread_stopped_by_sw_breakpoint, and
8254 target_stopped_by_hw_breakpoint instead of
8255 thread_stopped_by_hw_breakpoint.
8256 (handle_inferior_event)
8257 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8258 inferior_ptid directly, nor
8259 set_current_inferior/set_current_program_space. Use
8260 switch_to_thread / switch_to_inferior_no_thread instead.
8262 2020-06-18 Pedro Alves <palves@redhat.com>
8264 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8265 instead of writing to inferior_ptid.
8267 2020-06-18 Pedro Alves <palves@redhat.com>
8269 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8271 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8272 to the added thread.
8273 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8274 instead of writing to inferior_ptid.
8276 2020-06-18 Pedro Alves <palves@redhat.com>
8278 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8279 (register_to_value_test): Mock a program_space too. Heap-allocate
8280 the address space. Don't write to inferior_ptid. Use
8281 switch_to_thread instead.
8283 2020-06-18 Pedro Alves <palves@redhat.com>
8285 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8287 (find_signalled_thread()): New, factored out from
8288 linux_make_corefile_notes and adjusted to handle exited threads.
8289 (linux_make_corefile_notes): Adjust to use the new
8290 find_signalled_thread.
8292 2020-06-18 Pedro Alves <palves@redhat.com>
8294 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8295 of saving/restoring inferior_ptid.
8297 2020-06-17 Tom Tromey <tom@tromey.com>
8299 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8300 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8302 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8304 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8306 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8309 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8311 * regformats/reg-arm.dat: Remove.
8312 * regformats/reg-bfin.dat: Remove.
8313 * regformats/reg-cris.dat: Remove.
8314 * regformats/reg-crisv32.dat: Remove.
8315 * regformats/reg-m32r.dat: Remove.
8316 * regformats/reg-tilegx.dat: Remove.
8317 * regformats/reg-tilegx32.dat: Remove.
8319 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8321 * features/Makefile (WHICH): Remove arm files.
8322 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8323 * regformats/arm/arm-with-neon.dat: Remove.
8324 * regformats/arm/arm-with-vfpv2.dat: Remove.
8325 * regformats/arm/arm-with-vfpv3.dat: Remove.
8327 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8329 * features/Makefile (XMLTOC): Remove rx.xml.
8331 2020-06-17 Pedro Alves <palves@redhat.com>
8333 * gdbthread.h (thread_control_state) <trap_expected> Update
8336 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8338 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8339 ada_language::lookup_symbol_nonlocal.
8340 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8341 (ada_language::lookup_symbol_nonlocal): New member function,
8342 implementation from ada_lookup_symbol_nonlocal.
8343 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8345 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8347 (cplus_language::lookup_symbol_nonlocal): New member function.
8348 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8349 (minimal_language_data) Likewise.
8350 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8351 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8353 (d_language::lookup_symbol_nonlocal): New member function.
8354 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8356 (f_language::lookup_symbol_nonlocal): New member function.
8357 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8359 * language.c (unknown_language_data): Likewise.
8360 (auto_language_data): Likewise.
8361 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8363 (language_defn::lookup_symbol_nonlocal): New member function.
8364 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8366 * objc-lang.c (objc_language_data): Likewise.
8367 * opencl-lang.c (opencl_language_data): Likewise.
8368 * p-lang.c (pascal_language_data): Likewise.
8369 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8370 rust_language::lookup_symbol_nonlocal.
8371 (rust_language_data): Delete la_lookup_symbol_nonlocal
8373 (rust_language::lookup_symbol_nonlocal): New member function,
8374 implementation from rust_lookup_symbol_nonlocal.
8375 * symtab.c (lookup_symbol_aux): Update call to
8376 lookup_symbol_nonlocal.
8377 (basic_lookup_symbol_nonlocal): Rename to...
8378 (language_defn::lookup_symbol_nonlocal): ...this, and update
8379 header comment. Remove language_defn parameter, and replace with
8381 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8383 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8385 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8387 (ada_language::value_print_inner): New member function.
8388 * c-lang.c (c_language_data): Delete la_value_print_inner
8390 (cplus_language_data): Likewise.
8391 (asm_language_data): Likewise.
8392 (minimal_language_data): Likewise.
8393 * d-lang.c (d_language_data): Likewise.
8394 (d_language::value_print_inner): New member function.
8395 * f-lang.c (f_language_data): Delete la_value_print_inner
8397 (f_language::value_print_inner): New member function.
8398 * f-lang.h (f_value_print_innner): Rename to...
8399 (f_value_print_inner): ...this (note spelling of 'inner').
8400 * f-valprint.c (f_value_print_innner): Rename to...
8401 (f_value_print_inner): ...this (note spelling of 'inner').
8402 * go-lang.c (go_language_data): Delete la_value_print_inner
8404 (go_language::value_print_inner): New member function.
8405 * language.c (language_defn::value_print_inner): Define new member
8407 (unk_lang_value_print_inner): Delete.
8408 (unknown_language_data): Delete la_value_print_inner initializer.
8409 (unknown_language::value_print_inner): New member function.
8410 (auto_language_data): Delete la_value_print_inner initializer.
8411 (auto_language::value_print_inner): New member function.
8412 * language.h (language_data): Delete la_value_print_inner field.
8413 (language_defn::value_print_inner): Delcare new member function.
8414 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8416 (m2_language::value_print_inner): New member function.
8417 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8419 * opencl-lang.c (opencl_language_data): Likewise.
8420 * p-lang.c (pascal_language_data): Likewise.
8421 (pascal_language::value_print_inner): New member function.
8422 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8424 (rust_language::value_print_inner): New member function.
8425 * valprint.c (do_val_print): Update call to value_print_inner.
8427 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8429 * ada-lang.c (ada_language_data): Delete la_value_print
8431 (ada_language::value_print): New member function.
8432 * c-lang.c (c_language_data): Delete la_value_print initializer.
8433 (cplus_language_data): Likewise.
8434 (asm_language_data): Likewise.
8435 (minimal_language_data): Likewise.
8436 * d-lang.c (d_language_data): Likewise.
8437 * f-lang.c (f_language_data): Likewise.
8438 * go-lang.c (go_language_data): Likewise.
8439 * language.c (unk_lang_value_print): Delete.
8440 (language_defn::value_print): Define new member function.
8441 (unknown_language_data): Delete la_value_print initializer.
8442 (unknown_language::value_print): New member function.
8443 (auto_language_data): Delete la_value_print initializer.
8444 (auto_language::value_print): New member function.
8445 * language.h (language_data): Delete la_value_print field.
8446 (language_defn::value_print): Declare new member function.
8447 (LA_VALUE_PRINT): Update call to value_print.
8448 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8449 * objc-lang.c (objc_language_data): Likewise.
8450 * opencl-lang.c (opencl_language_data): Likewise.
8451 * p-lang.c (pascal_language_data): Likewise.
8452 (pascal_language::value_print): New member function.
8453 * rust-lang.c (rust_language_data): Delete la_value_print
8456 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8458 * ada-lang.c (ada_watch_location_expression): Rename to
8459 ada_language::watch_location_expression.
8460 (ada_language_data): Delete la_watch_location_expression
8462 (ada_language::watch_location_expression): New member function,
8463 implementation from ada_watch_location_expression.
8464 * breakpoint.c (watch_command_1): Update call to
8465 watch_location_expression.
8466 * c-lang.c (c_watch_location_expression): Rename to
8467 language_defn::watch_location_expression.
8468 (c_language_data): Delete la_watch_location_expression
8470 (cplus_language_data): Likewise.
8471 (asm_language_data): Likewise.
8472 (minimal_language_data): Likewise.
8473 * c-lang.h (c_watch_location_expression): Delete declaration.
8474 * d-lang.c (d_language_data): Delete la_watch_location_expression
8476 * f-lang.c (f_language_data): Likewise.
8477 * go-lang.c (go_language_data): Likewise.
8478 * language.c (language_defn::watch_location_expression): Member
8479 function implementation from c_watch_location_expression.
8480 (unknown_language_data): Delete la_watch_location_expression
8482 (auto_language_data): Likewise.
8483 * language.h (language_data): Delete la_watch_location_expression
8485 (language_defn::watch_location_expression): Declare new member
8487 * m2-lang.c (m2_language_data): Delete
8488 la_watch_location_expression initializer.
8489 * objc-lang.c (objc_language_data): Likewise.
8490 * opencl-lang.c (opencl_language_data): Likewise.
8491 * p-lang.c (pascal_language_data): Likewise.
8492 * rust-lang.c (rust_watch_location_expression): Rename to
8493 rust_language::watch_location_expression.
8494 (rust_language_data): Delete la_watch_location_expression
8496 (rust_language::watch_location_expression): New member function,
8497 implementation from rust_watch_location_expression.
8499 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8501 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8502 ada_language::collect_symbol_completion_matches.
8503 (ada_language_data): Delete la_collect_symbol_completion_matches
8505 (ada_language::collect_symbol_completion_matches): New member
8506 function, implementation from
8507 ada_collect_symbol_completion_matches.
8508 * c-lang.c (c_language_data): Delete
8509 la_collect_symbol_completion_matches initializer.
8510 (cplus_language_data): Likewise.
8511 (asm_language_data): Likewise.
8512 (minimal_language_data): Likewise.
8513 * d-lang.c (d_language_data): Likewise.
8514 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8515 f_language::collect_symbol_completion_matches.
8516 (f_language_data): Delete la_collect_symbol_completion_matches
8518 (f_language::collect_symbol_completion_matches) New member
8519 function, implementation from f_collect_symbol_completion_matches.
8520 * go-lang.c (go_language_data): Delete
8521 la_collect_symbol_completion_matches initializer.
8522 * language.c (unknown_language_data): Likewise.
8523 (auto_language_data): Likewise.
8524 * language.h (language_data): Delete
8525 la_collect_symbol_completion_matches field.
8526 (language_defn::collect_symbol_completion_matches): New member
8528 * m2-lang.c (m2_language_data): Delete
8529 la_collect_symbol_completion_matches initializer.
8530 * objc-lang.c (objc_language_data): Likewise.
8531 * opencl-lang.c (opencl_language_data): Likewise.
8532 * p-lang.c (pascal_language_data): Likewise.
8533 * rust-lang.c (rust_language_data): Likewise.
8534 * symtab.c (default_collect_symbol_completion_matches): Delete.
8535 (collect_symbol_completion_matches): Update call to
8536 collect_symbol_completion_matches.
8537 (collect_symbol_completion_matches_type): Likewise.
8538 * symtab.h (default_collect_symbol_completion_matches): Delete
8541 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8543 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8544 (ada_language_data): Delete la_word_break_characters initializer.
8545 (ada_language::word_break_characters): New member function.
8546 * c-lang.c (c_language_data): Delete la_word_break_characters
8548 (cplus_language_data): Likewise.
8549 (asm_language_data): Likewise.
8550 (minimal_language_data): Likewise.
8551 * completer.c: Update global comment.
8552 (advance_to_expression_complete_word_point): Update call to
8553 word_break_characters.
8554 (complete_files_symbols): Likewise.
8555 (complete_line_internal_1): Likewise.
8556 (default_completer_handle_brkchars): Likewise.
8557 (skip_quoted_chars): Likewise.
8558 * d-lang.c (d_language_data): Delete la_word_break_characters
8560 * f-lang.c (f_word_break_characters): Delete.
8561 (f_language_data): Delete la_word_break_characters initializer.
8562 (f_language::word_break_characters): New member function.
8563 * go-lang.c (go_language_data): Delete la_word_break_characters
8565 * language.c (unknown_language_data): Likewise.
8566 (auto_language_data): Likewise.
8567 * language.h (default_word_break_characters): Move declaration to
8568 earlier in the file.
8569 (language_data): Delete la_word_break_characters field.
8570 (language_defn::word_break_characters): New member function.
8571 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8573 * objc-lang.c (objc_language_data): Likewise.
8574 * opencl-lang.c (opencl_language_data): Likewise.
8575 * p-lang.c (pascal_language_data): Likewise.
8576 * rust-lang.c (rust_language_data): Likewise.
8578 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8580 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8581 (ada_language_data): Delete la_get_symbol_name_matcher
8583 (language_defn::get_symbol_name_matcher_inner): New member
8585 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8587 (cplus_language_data): Likewise.
8588 (cplus_language::get_symbol_name_matcher_inner): New member
8590 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8591 (minimal_language_data): Likewise.
8592 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8593 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8595 * dictionary.c (iter_match_first_hashed): Update call to
8596 get_symbol_name_matcher.
8597 (iter_match_next_hashed): Likewise.
8598 (iter_match_next_linear): Likewise.
8599 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8600 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8602 (f_language::get_symbol_name_matcher_inner): New member function.
8603 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8605 * language.c (default_symbol_name_matcher): Update header comment,
8607 (language_defn::get_symbol_name_matcher): New definition.
8608 (language_defn::get_symbol_name_matcher_inner): Likewise.
8609 (get_symbol_name_matcher): Delete.
8610 (unknown_language_data): Delete la_get_symbol_name_matcher
8612 (auto_language_data): Likewise.
8613 * language.h (language_data): Delete la_get_symbol_name_matcher
8615 (language_defn::get_symbol_name_matcher): New member function.
8616 (language_defn::get_symbol_name_matcher_inner): Likewise.
8617 (default_symbol_name_matcher): Delete declaration.
8618 * linespec.c (find_methods): Update call to
8619 get_symbol_name_matcher.
8620 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8622 * minsyms.c (lookup_minimal_symbol): Update call to
8623 get_symbol_name_matcher.
8624 (iterate_over_minimal_symbols): Likewise.
8625 * objc-lang.c (objc_language_data): Delete
8626 la_get_symbol_name_matcher initializer.
8627 * opencl-lang.c (opencl_language_data): Likewise.
8628 * p-lang.c (pascal_language_data): Likewise.
8629 * psymtab.c (psymbol_name_matches): Update call to
8630 get_symbol_name_matcher.
8631 * rust-lang.c (rust_language_data): Delete
8632 la_get_symbol_name_matcher initializer.
8633 * symtab.c (symbol_matches_search_name): Update call to
8634 get_symbol_name_matcher.
8635 (compare_symbol_name): Likewise.
8637 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8639 * ada-lang.c (ada_language_data): Delete la_compute_program
8641 * c-lang.c (c_language_data): Likewise.
8642 (c_language::compute_program): New member function.
8643 (cplus_language_data): Delete la_compute_program initializer.
8644 (cplus_language::compute_program): New member function.
8645 (asm_language_data): Delete la_compute_program initializer.
8646 (minimal_language_data): Likewise.
8647 * c-lang.h (c_compute_program): Update comment.
8648 (cplus_compute_program): Likewise.
8649 * compile/compile-c-support.c (c_compute_program): Likewise.
8650 (cplus_compute_program): Likewise.
8651 * compile/compile.c (compile_to_object): Update call to
8653 * d-lang.c (d_language_data): Delete la_compute_program
8655 * f-lang.c (f_language_data): Likewise.
8656 * go-lang.c (go_language_data): Likewise.
8657 * language.c (unknown_language_data): Likewise.
8658 (auto_language_data): Likewise.
8659 * language.h (language_data): Delete la_compute_program field.
8660 (language_defn::compute_program): New member function.
8661 * m2-lang.c (m2_language_data): Delete la_compute_program
8663 * objc-lang.c (objc_language_data): Likewise.
8664 * opencl-lang.c (opencl_language_data): Likewise.
8665 * p-lang.c (pascal_language_data): Likewise.
8666 * rust-lang.c (rust_language_data): Likewise.
8668 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8670 * ada-lang.c (ada_language_data) Delete
8671 la_class_name_from_physname initializer.
8672 * c-lang.c (c_language_data): Likewise.
8673 (cplus_language_data): Likewise.
8674 (cplus_language::class_name_from_physname): New member function.
8675 (asm_language_data): Delete la_class_name_from_physname
8677 (minimal_language_data): Likewise.
8678 * d-lang.c (d_language_data): Likewise.
8679 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8680 method on language_defn class.
8681 (guess_full_die_structure_name): Likewise.
8682 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8684 * go-lang.c (go_language_data): Likewise.
8685 * language.c (language_class_name_from_physname): Delete.
8686 (unk_lang_class_name): Delete.
8687 (unknown_language_data): Delete la_class_name_from_physname
8689 (auto_language_data): Likewise.
8690 * language.h (language_data): Delete la_class_name_from_physname
8692 (language_defn::class_name_from_physname): New function.
8693 (language_class_name_from_physname): Delete declaration.
8694 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8696 * objc-lang.c (objc_language_data): Likewise.
8697 * opencl-lang.c (opencl_language_data): Likewise.
8698 * p-lang.c (pascal_language_data): Likewise.
8699 * rust-lang.c (rust_language_data): Likewise.
8701 2020-06-16 Tom Tromey <tom@tromey.com>
8703 * tui/tui-data.h (STATUS_NAME): New macro.
8704 * tui/tui-layout.c (tui_remove_some_windows)
8705 (initialize_known_windows, tui_register_window)
8706 (tui_layout_split::remove_windows, initialize_layouts)
8707 (tui_new_layout_command): Don't use hard-coded window names.
8709 2020-06-16 Tom Tromey <tom@tromey.com>
8712 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8713 tui_initialize_readline. Only run once. Call rl_initialize.
8714 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8715 tui_initialize_readline.
8716 * tui/tui-io.c (tui_setup_io): Call
8717 tui_ensure_readline_initialized.
8718 * tui/tui-interp.c (tui_interp::init): Update.
8720 2020-06-16 Tom Tromey <tom@tromey.com>
8722 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8723 Also preserve the status window.
8725 2020-06-16 Tom Tromey <tom@tromey.com>
8727 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8728 where m_window==nullptr.
8730 2020-06-15 Tom Tromey <tromey@adacore.com>
8732 * windows-nat.c (windows_nat::handle_output_debug_string):
8734 (windows_nat::handle_ms_vc_exception): Update.
8735 * target.h (target_read_string): Change API.
8736 * target.c (target_read_string): Change API.
8737 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8739 * solib-frv.c (frv_current_sos): Update.
8740 * solib-dsbt.c (dsbt_current_sos): Update.
8741 * solib-darwin.c (darwin_current_sos): Update.
8742 * linux-thread-db.c (inferior_has_bug): Update.
8743 * expprint.c (print_subexp_standard): Update.
8744 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8745 (ada_exception_message_1): Update.
8747 2020-06-15 Tom Tromey <tromey@adacore.com>
8749 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8751 2020-06-15 Tom Tromey <tromey@adacore.com>
8753 * valprint.c (read_string): Update comment.
8754 * target.c (MIN): Remove.
8755 (target_read_string): Rewrite.
8757 2020-06-15 Tom Tromey <tromey@adacore.com>
8759 * corefile.c (read_memory_string): Remove.
8760 * ada-valprint.c (ada_value_print_ptr): Update.
8761 * ada-lang.h (ada_tag_name): Change return type.
8762 * ada-lang.c (type_from_tag): Update.
8763 (ada_tag_name_from_tsd): Change return type. Use
8765 (ada_tag_name): Likewise.
8766 * gdbcore.h (read_memory_string): Don't declare.
8768 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8770 * symtab.c (rbreak_command): Ignore Windows drive colon.
8772 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8774 * NEWS: Mention removed GDBserver host support.
8776 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8778 * features/riscv/rebuild-csr-xml.sh: Updated.
8780 2020-06-11 Tom Tromey <tom@tromey.com>
8783 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8785 2020-06-09 Jonny Grant <jg@jguk.org>
8786 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8788 * main.c (captured_main_1): Don't print new line after help.
8789 (print_gdb_help): add mailing list and IRC channel information
8790 to --help. Add new lines between items in the footer. Remove
8791 quotes around bug url.
8793 2020-06-11 Keith Seitz <keiths@redhat.com>
8796 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8797 Resolve typedefs for type length calculations.
8799 2020-06-10 Tom de Vries <tdevries@suse.de>
8802 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8803 (write_psymbols): Enable .gdb_index for ada.
8804 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8807 2020-06-10 Tom de Vries <tdevries@suse.de>
8809 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8810 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8811 namei" instead of "const char *name" argument.
8812 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8813 dw2_symtab_iter_init.
8815 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8817 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8818 to use type::field and field::type instead.
8820 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8822 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8823 to use field::type instead.
8825 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8827 * gdbtypes.h (struct field) <type, set_type>: New methods.
8828 Rename `type` field to...
8829 <m_type>: ... this. Change references throughout to use type or
8831 (FIELD_TYPE): Use field::type. Change call sites that modify
8832 the field's type to use field::set_type instead.
8834 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8836 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8837 to use type::index_type instead.
8839 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8841 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8843 (TYPE_INDEX_TYPE): Use type::index_type.
8844 * gdbtypes.c (create_array_type_with_stride): Likewise.
8846 2020-06-07 Tom Tromey <tom@tromey.com>
8848 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8850 (generic_value_print): Update.
8852 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8854 Revert commit 982a38f60b0.
8855 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8857 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8859 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8860 avoid use after free.
8862 2020-06-05 Tom de Vries <tdevries@suse.de>
8866 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8868 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8870 (dwarf2_read_debug_names): Likewise.
8871 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8872 object when re-using a per_bfd object with an index.
8874 2020-06-03 Tom de Vries <tdevries@suse.de>
8877 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8879 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8882 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8884 * ada-lang.c (ada_language_data): Delete skip_trampoline
8886 * c-lang.c (c_language_data): Likewise.
8887 (cplus_language_data): Likewise.
8888 (cplus_language::skip_trampoline): New member function.
8889 (asm_language_data): Delete skip_trampoline initializer.
8890 (minimal_language_data): Likewise.
8891 * d-lang.c (d_language_data): Likewise.
8892 * f-lang.c (f_language_data): Likewise.
8893 * go-lang.c (go_language_data): Likewise.
8894 * language.c (unk_lang_trampoline): Delete function.
8895 (skip_language_trampoline): Update.
8896 (unknown_language_data): Delete skip_trampoline initializer.
8897 (auto_language_data): Likewise.
8898 * language.h (language_data): Delete skip_trampoline field.
8899 (language_defn::skip_trampoline): New function.
8900 * m2-lang.c (m2_language_data): Delete skip_trampoline
8902 * objc-lang.c (objc_skip_trampoline): Delete function, move
8903 implementation to objc_language::skip_trampoline.
8904 (objc_language_data): Delete skip_trampoline initializer.
8905 (objc_language::skip_trampoline): New member function with
8906 implementation from objc_skip_trampoline.
8907 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8909 * p-lang.c (pascal_language_data): Likewise.
8910 * rust-lang.c (rust_language_data): Likewise.
8912 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8914 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8915 (ada_language::demangle): New member function.
8916 * c-lang.c (c_language_data): Delete la_demangle initializer.
8917 (cplus_language_data): Delete la_demangle initializer.
8918 (cplus_language::demangle): New member function.
8919 (asm_language_data): Delete la_demangle initializer.
8920 (minimal_language_data): Delete la_demangle initializer.
8921 * d-lang.c (d_language_data): Delete la_demangle initializer.
8922 (d_language::demangle): New member function.
8923 * f-lang.c (f_language_data): Delete la_demangle initializer.
8924 (f_language::demangle): New member function.
8925 * go-lang.c (go_language_data): Delete la_demangle initializer.
8926 (go_language::demangle): New member function.
8927 * language.c (language_demangle): Update.
8928 (unk_lang_demangle): Delete.
8929 (unknown_language_data): Delete la_demangle initializer.
8930 (unknown_language::demangle): New member function.
8931 (auto_language_data): Delete la_demangle initializer.
8932 (auto_language::demangle): New member function.
8933 * language.h (language_data): Delete la_demangle field.
8934 (language_defn::demangle): New function.
8935 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8936 * objc-lang.c (objc_language_data): Delete la_demangle
8938 (objc_language::demangle): New member function.
8939 * opencl-lang.c (opencl_language_data): Delete la_demangle
8941 * p-lang.c (pascal_language_data): Likewise.
8942 * rust-lang.c (rust_language_data): Likewise.
8943 (rust_language::demangle): New member function.
8945 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8947 * ada-lang.c (ada_language_data): Delete la_print_type
8949 (ada_language::print_type): New member function.
8950 * c-lang.c (c_language_data): Delete la_print_type initializer.
8951 (c_language::print_type): New member function.
8952 (cplus_language_data): Delete la_print_type initializer.
8953 (cplus_language::print_type): New member function.
8954 (asm_language_data): Delete la_print_type initializer.
8955 (asm_language::print_type): New member function.
8956 (minimal_language_data): Delete la_print_type initializer.
8957 (minimal_language::print_type): New member function.
8958 * d-lang.c (d_language_data): Delete la_print_type initializer.
8959 (d_language::print_type): New member function.
8960 * f-lang.c (f_language_data): Delete la_print_type initializer.
8961 (f_language::print_type): New member function.
8962 * go-lang.c (go_language_data): Delete la_print_type initializer.
8963 (go_language::print_type): New member function.
8964 * language.c (unk_lang_print_type): Delete.
8965 (unknown_language_data): Delete la_print_type initializer.
8966 (unknown_language::print_type): New member function.
8967 (auto_language_data): Delete la_print_type initializer.
8968 (auto_language::print_type): New member function.
8969 * language.h (language_data): Delete la_print_type field.
8970 (language_defn::print_type): New function.
8971 (LA_PRINT_TYPE): Update.
8972 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8973 (m2_language::print_type): New member function.
8974 * objc-lang.c (objc_language_data): Delete la_print_type
8976 (objc_language::print_type): New member function.
8977 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8978 to opencl_language::print_type.
8979 (opencl_language_data): Delete la_print_type initializer.
8980 (opencl_language::print_type): New member function, implementation
8981 from opencl_print_type.
8982 * p-lang.c (pascal_language_data): Delete la_print_type
8984 (pascal_language::print_type): New member function.
8985 * rust-lang.c (rust_print_type): Delete, implementation moved to
8986 rust_language::print_type.
8987 (rust_language_data): Delete la_print_type initializer.
8988 (rust_language::print_type): New member function, implementation
8989 from rust_print_type.
8991 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8993 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8994 implementation moves to...
8995 (ada_language::sniff_from_mangled_name): ...here. Update return
8997 (ada_language_data): Delete la_sniff_from_mangled_name
8999 * c-lang.c (c_language_data): Likewise.
9000 (cplus_language_data): Likewise.
9001 (cplus_language::sniff_from_mangled_name): New member function,
9002 implementation taken from gdb_sniff_from_mangled_name.
9003 (asm_language_data): Delete la_sniff_from_mangled_name
9005 (minimal_language_data): Likewise.
9006 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9007 implementation moves to cplus_language::sniff_from_mangled_name.
9008 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9009 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9011 (d_language::sniff_from_mangled_name): ...here.
9012 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9013 * f-lang.c (f_language_data): Likewise.
9014 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9016 (go_language::sniff_from_mangled_name): ...here.
9017 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9018 * language.c (language_sniff_from_mangled_name): Delete.
9019 (unknown_language_data): Delete la_sniff_from_mangled_name
9021 (auto_language_data): Likewise.
9022 * language.h (language_data): Delete la_sniff_from_mangled_name
9024 (language_defn::sniff_from_mangled_name): New function.
9025 (language_sniff_from_mangled_name): Delete declaration.
9026 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9028 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9029 implementation moves to...
9030 (objc_language::sniff_from_mangled_name): ...here.
9031 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9032 * opencl-lang.c (opencl_language_data): Likewise.
9033 * p-lang.c (pascal_language_data): Likewise.
9034 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9035 implementation moves to...
9036 (rust_language::sniff_from_mangled_name): ...here.
9037 (rust_language_data): Delete la_sniff_from_mangled_name
9039 * symtab.c (symbol_find_demangled_name): Call
9040 sniff_from_mangled_name member function.
9042 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9044 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9046 * c-lang.c (c_language_data): Likewise.
9047 (cplus_language_data): Likewise.
9048 (cplus_language::search_name_hash): New member function.
9049 (asm_language_data): Delete la_search_name_hash initializer.
9050 (minimal_language_data): Likewise.
9051 * d-lang.c (d_language_data): Likewise.
9052 * dictionary.c (default_search_name_hash): Rename to...
9053 (language_defn::search_name_hash): ...this.
9054 * f-lang.c (f_language_data): Likewise.
9055 (f_language::search_name_hash): New member function.
9056 * go-lang.c (go_language_data): Delete la_search_name_hash
9058 * language.c (unknown_language_data): Likewise.
9059 (auto_language_data): Likewise.
9060 * language.h (struct language_data): Delete la_search_name_hash
9062 (language_defn::search_name_hash): Declare new member function.
9063 (default_search_name_hash): Delete declaration.
9064 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9066 * objc-lang.c (objc_language_data): Likewise.
9067 * opencl-lang.c (opencl_language_data): Likewise.
9068 * p-lang.c (pascal_language_data): Likewise.
9069 * rust-lang.c (rust_language_data): Likewise.
9070 * symtab.c (search_name_hash): Update call.
9072 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9074 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9076 * c-lang.c (class compile_instance): Declare.
9077 (c_language_data): Delete la_get_compile_instance initializer.
9078 (c_language::get_compile_instance): New member function.
9079 (cplus_language_data): Delete la_get_compile_instance initializer.
9080 (cplus_language::get_compile_instance): New member function.
9081 (asm_language_data): Delete la_get_compile_instance initializer.
9082 (minimal_language_data): Likewise.
9083 * c-lang.h (c_get_compile_context): Update comment.
9084 (cplus_get_compile_context): Update comment.
9085 * compile/compile.c (compile_to_object): Update calls, don't rely
9086 on function pointer being NULL.
9087 * d-lang.c (d_language_data): Delete la_get_compile_instance
9089 * f-lang.c (f_language_data): Likewise.
9090 * go-lang.c (go_language_data): Likewise.
9091 * language.c (unknown_language_data): Likewise.
9092 (auto_language_data): Likewise.
9093 * language.h (language_data): Delete la_get_compile_instance field.
9094 (language_defn::get_compile_instance): New member function.
9095 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9097 * objc-lang.c (objc_language_data): Likewise.
9098 * opencl-lang.c (opencl_language_data): Likewise.
9099 * p-lang.c (pascal_language_data): Likewise.
9100 * rust-lang.c (rust_language_data): Likewise.
9102 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9104 * ada-lang.c (ada_add_all_symbols): Update comment.
9105 (ada_iterate_over_symbols): Delete, move implementation to...
9106 (ada_language::iterate_over_symbols): ...here, a new member
9107 function, rewrite to use range based for loop.
9108 (ada_language_data): Delete la_iterate_over_symbols initializer.
9109 * c-lang.c (c_language_data): Likewise.
9110 (cplus_language_data): Likewise.
9111 (asm_language_data): Likewise.
9112 (minimal_language_data): Likewise.
9113 * d-lang.c (d_language_data): Likewise.
9114 * f-lang.c (f_language_data): Likewise.
9115 * go-lang.c (go_language_data): Likewise.
9116 * language.c (unknown_language_data): Likewise.
9117 (auto_language_data): Likewise.
9118 * language.h (language_data): Delete la_iterate_over_symbols field.
9119 (language_defn::iterate_over_symbols): New member function.
9120 (LA_ITERATE_OVER_SYMBOLS): Update.
9121 * linespec.c (iterate_over_all_matching_symtabs): Update.
9122 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9124 * objc-lang.c (objc_language_data): Likewise.
9125 * opencl-lang.c (opencl_language_data): Likewise.
9126 * p-lang.c (pascal_language_data): Likewise.
9127 * rust-lang.c (rust_language_data): Likewise.
9129 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9131 * ada-lang.c (ada_language_data): Delete
9132 la_lookup_transparent_type initializer.
9133 * c-lang.c (c_language_data): Likewise.
9134 (cplus_language_data): Likewise.
9135 (cplus_language::lookup_transparent_type): New member function.
9136 (asm_language_data): Delete la_lookup_transparent_type
9138 (minimal_language_data): Likewise.
9139 * d-lang.c (d_language_data): Likewise.
9140 * f-lang.c (f_language_data): Likewise.
9141 * go-lang.c (go_language_data): Likewise.
9142 * language.c (unknown_language_data): Likewise.
9143 (auto_language_data): Likewise.
9144 * language.h (struct language_data): Delete
9145 la_lookup_transparent_type field.
9146 (language_defn::lookup_transparent_type): New member function.
9147 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9149 * objc-lang.c (objc_language_data): Likewise.
9150 * opencl-lang.c (opencl_language_data): Likewise.
9151 * p-lang.c (pascal_language_data): Likewise.
9152 * rust-lang.c (rust_language_data): Likewise.
9153 * symtab.c (symbol_matches_domain): Update call.
9155 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9157 * ada-lang.c (ada_language_arch_info): Delete function, move
9158 implementation to...
9159 (ada_language::language_arch_info): ...here, a new member
9161 (ada_language_data): Delete la_language_arch_info.
9162 * c-lang.c (c_language_data): Likewise.
9163 (c_language::language_arch_info): New member function.
9164 (cplus_language_arch_info): Delete function, move
9165 implementation to...
9166 (cplus_language::language_arch_info): ...here, a new member
9168 (cplus_language_data): Delete la_language_arch_info.
9169 (asm_language_data): Likewise.
9170 (asm_language::language_arch_info): New member function.
9171 (minimal_language_data): Delete la_language_arch_info.
9172 (minimal_language::language_arch_info): New member function.
9173 * d-lang.c (d_language_arch_info): Delete function, move
9174 implementation to...
9175 (d_language::language_arch_info): ...here, a new member
9177 (d_language_data): Delete la_language_arch_info.
9178 * f-lang.c (f_language_arch_info): Delete function, move
9179 implementation to...
9180 (f_language::language_arch_info): ...here, a new member
9182 (f_language_data): Delete la_language_arch_info.
9183 * go-lang.c (go_language_arch_info): Delete function, move
9184 implementation to...
9185 (go_language::language_arch_info): ...here, a new member
9187 (go_language_data): Delete la_language_arch_info.
9188 * language.c (unknown_language_data): Likewise.
9189 (unknown_language::language_arch_info): New member function.
9190 (auto_language_data): Delete la_language_arch_info.
9191 (auto_language::language_arch_info): New member function.
9192 (language_gdbarch_post_init): Update call to
9193 la_language_arch_info.
9194 * language.h (language_data): Delete la_language_arch_info
9196 (language_defn::language_arch_info): New function.
9197 * m2-lang.c (m2_language_arch_info): Delete function, move
9198 implementation to...
9199 (m2_language::language_arch_info): ...here, a new member
9201 (m2_language_data): Delete la_language_arch_info.
9202 * objc-lang.c (objc_language_arch_info): Delete function, move
9203 implementation to...
9204 (objc_language::language_arch_info): ...here, a new member
9206 (objc_language_data): Delete la_language_arch_info.
9207 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9208 implementation to...
9209 (opencl_language::language_arch_info): ...here, a new member
9211 (opencl_language_data): Delete la_language_arch_info.
9212 * p-lang.c (pascal_language_arch_info): Delete function, move
9213 implementation to...
9214 (pascal_language::language_arch_info): ...here, a new member
9216 (pascal_language_data): Delete la_language_arch_info.
9217 * rust-lang.c (rust_language_arch_info): Delete function, move
9218 implementation to...
9219 (rust_language::language_arch_info): ...here, a new member
9221 (rust_language_data): Delete la_language_arch_info.
9223 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9225 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9227 * c-lang.c (c_language_data): Likewise.
9228 (cplus_language_data): Likewise.
9229 (cplus_language::pass_by_reference_info): New method.
9230 (asm_language_data): Delete la_pass_by_reference initializer.
9231 (minimal_language_data): Likewise.
9232 * cp-abi.c (cp_pass_by_reference): Remove use of
9233 default_pass_by_reference.
9234 * d-lang.c (d_language_data): Likewise.
9235 * f-lang.c (f_language_data): Likewise.
9236 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9237 default_pass_by_reference.
9238 * go-lang.c (go_language_data): Likewise.
9239 * language.c (language_pass_by_reference): Update.
9240 (default_pass_by_reference): Delete.
9241 (unknown_language_data): Delete la_pass_by_reference
9243 (auto_language_data): Likewise.
9244 * language.h (struct language_data): Delete la_pass_by_reference
9246 (language_defn::pass_by_reference_info): New member function.
9247 (default_pass_by_reference): Delete declaration.
9248 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
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.
9255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9257 * ada-lang.c (ada_read_var_value): Delete function, move
9258 implementation to...
9259 (ada_language::read_var_value): ...here.
9260 (ada_language_data): Delete la_read_var_value initializer.
9261 * c-lang.c (c_language_data): Likewise.
9262 (cplus_language_data): Likewise.
9263 (minimal_language_data): Likewise.
9264 * d-lang.c (d_language_data): Likewise.
9265 * f-lang.c (f_language_data): Likewise.
9266 * findvar.c (default_read_var_value): Rename to...
9267 (language_defn::read_var_value): ...this.
9268 * findvar.c (read_var_value): Update header comment, and change to
9269 call member function instead of function pointer.
9270 * go-lang.c (go_language_data): Likewise.
9271 * language.c (unknown_language_data): Delete la_read_var_value
9273 (auto_language_data): Likewise.
9274 * language.h (struct language_data): Delete la_read_var_value
9276 (language_defn::read_var_value): New member function.
9277 (default_read_var_value): Delete declaration.
9278 * m2-lang.c (m2_language_data): Delete la_read_var_value
9280 * objc-lang.c (objc_language_data): Likewise.
9281 * opencl-lang.c (opencl_language_data): Likewise.
9282 * p-lang.c (pascal_language_data): Likewise.
9283 * rust-lang.c (rust_language_data): Likewise.
9284 * value.h (default_read_var_value): Delete declaration.
9286 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9288 * ada-lang.c (ada_print_array_index): Delete function, move
9289 implementation to...
9290 (ada_language::print_array_index): ...here.
9291 (ada_language_data): Delete la_print_array_index initializer.
9292 * c-lang.c (c_language_data): Likewise.
9293 (cplus_language_data): Likewise.
9294 (minimal_language_data): Likewise.
9295 * d-lang.c (d_language_data): Likewise.
9296 * f-lang.c (f_language_data): Likewise.
9297 * go-lang.c (go_language_data): Likewise.
9298 * language.c (default_print_array_index): Delete function, move
9299 implementation to...
9300 (language_defn::print_array_index): ...here.
9301 (unknown_language_data): Delete la_print_array_index initializer.
9302 (auto_language_data): Likewise.
9303 * language.h (struct language_data): Delete la_print_array_index
9305 (language_defn::print_array_index): New member function.
9306 (LA_PRINT_ARRAY_INDEX): Update.
9307 (default_print_array_index): Delete declaration.
9308 * m2-lang.c (m2_language_data): Delete la_print_array_index
9310 * objc-lang.c (objc_language_data): Likewise.
9311 * opencl-lang.c (opencl_language_data): Likewise.
9312 * p-lang.c (pascal_language_data): Likewise.
9313 * rust-lang.c (rust_language_data): Likewise.
9315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9317 * gdb/ada-lang.c (ada_language_defn): Convert to...
9318 (ada_language_data): ...this.
9319 (class ada_language): New class.
9320 (ada_language_defn): New static global.
9321 * gdb/c-lang.c (c_language_defn): Convert to...
9322 (c_language_data): ...this.
9323 (class c_language): New class.
9324 (c_language_defn): New static global.
9325 (cplus_language_defn): Convert to...
9326 (cplus_language_data): ...this.
9327 (class cplus_language): New class.
9328 (cplus_language_defn): New static global.
9329 (asm_language_defn): Convert to...
9330 (asm_language_data): ...this.
9331 (class asm_language): New class.
9332 (asm_language_defn): New static global.
9333 (minimal_language_defn): Convert to...
9334 (minimal_language_data): ...this.
9335 (class minimal_language): New class.
9336 (minimal_language_defn): New static global.
9337 * gdb/d-lang.c (d_language_defn): Convert to...
9338 (d_language_data): ...this.
9339 (class d_language): New class.
9340 (d_language_defn): New static global.
9341 * gdb/f-lang.c (f_language_defn): Convert to...
9342 (f_language_data): ...this.
9343 (class f_language): New class.
9344 (f_language_defn): New static global.
9345 * gdb/go-lang.c (go_language_defn): Convert to...
9346 (go_language_data): ...this.
9347 (class go_language): New class.
9348 (go_language_defn): New static global.
9349 * gdb/language.c (unknown_language_defn): Remove declaration.
9350 (current_language): Initialize to nullptr, real initialization is
9351 moved to _initialize_language.
9352 (languages): Delete global.
9353 (language_defn::languages): Define.
9354 (set_language_command): Use language_defn::languages.
9355 (set_language): Likewise.
9356 (range_error): Likewise.
9357 (language_enum): Likewise.
9358 (language_def): Likewise.
9359 (add_set_language_command): Use language_def::languages for the
9360 language list, and language_def to lookup language pointers.
9361 (skip_language_trampoline): Use language_defn::languages.
9362 (unknown_language_defn): Convert to...
9363 (unknown_language_data): ...this.
9364 (class unknown_language): New class.
9365 (unknown_language_defn): New static global.
9366 (auto_language_defn): Convert to...
9367 (auto_language_data): ...this.
9368 (class auto_language): New class.
9369 (auto_language_defn): New static global.
9370 (language_gdbarch_post_init): Use language_defn::languages.
9371 (_initialize_language): Initialize current_language.
9372 * gdb/language.h (struct language_defn): Rename to...
9373 (struct language_data): ...this.
9374 (struct language_defn): New.
9375 (auto_language_defn): Delete.
9376 (unknown_language_defn): Delete.
9377 (minimal_language_defn): Delete.
9378 (ada_language_defn): Delete.
9379 (asm_language_defn): Delete.
9380 (c_language_defn): Delete.
9381 (cplus_language_defn): Delete.
9382 (d_language_defn): Delete.
9383 (f_language_defn): Delete.
9384 (go_language_defn): Delete.
9385 (m2_language_defn): Delete.
9386 (objc_language_defn): Delete.
9387 (opencl_language_defn): Delete.
9388 (pascal_language_defn): Delete.
9389 (rust_language_defn): Delete.
9390 * gdb/m2-lang.c (m2_language_defn): Convert to...
9391 (m2_language_data): ...this.
9392 (class m2_language): New class.
9393 (m2_language_defn): New static global.
9394 * gdb/objc-lang.c (objc_language_defn): Convert to...
9395 (objc_language_data): ...this.
9396 (class objc_language): New class.
9397 (objc_language_defn): New static global.
9398 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9399 (opencl_language_data): ...this.
9400 (class opencl_language): New class.
9401 (opencl_language_defn): New static global.
9402 * gdb/p-lang.c (pascal_language_defn): Convert to...
9403 (pascal_language_data): ...this.
9404 (class pascal_language): New class.
9405 (pascal_language_defn): New static global.
9406 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9407 language pointer, update comment format.
9408 * gdb/rust-lang.c (rust_language_defn): Convert to...
9409 (rust_language_data): ...this.
9410 (class rust_language): New class.
9411 (rust_language_defn): New static global.
9413 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9415 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9417 <m_stmt_at_address>: New member variable.
9418 (lnp_state_machine::record_line): Don't record some lines, update
9419 tracking of is_stmt at the same address.
9420 (lnp_state_machine::lnp_state_machine): Initialise new member
9423 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9425 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9426 "-include gnu-nat-mig.h".
9427 * gnu-nat-mig.h: New file.
9428 * gnu-nat.c: Include "gnu-nat-mig.h".
9429 (exc_server, msg_reply_server, notify_server,
9430 process_reply_server): Remove declarations.
9432 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9434 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9435 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9436 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9437 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9438 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9439 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9440 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9441 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9442 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9443 to gnu_nat_target class.
9444 * gnu-nat.c: Likewise.
9445 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9446 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9447 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9449 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9450 instead of `gnu_target'.
9452 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9454 * i386-gnu-tdep.c: Include "gdbcore.h"
9455 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9456 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9457 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9458 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9459 i386_gnu_sigcontext_addr): New functions
9460 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9461 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9464 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9466 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9467 before fork_inferior call. Avoid calling it if target_is_pushed returns
9470 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9472 * gnu-nat.h (gnu_target): New variable declaration.
9473 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9475 * gnu-nat.c (gnu_target): New variable.
9476 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9477 add_thread_silent, and add_thread calls.
9478 (gnu_nat_target::create_inferior): Pass gnu_target to
9479 add_thread_silent, thread_change_ptid call.
9480 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9483 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9485 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9486 (gnu_nat_target::find_memory_regions): Remove unused
9487 `old_address' variable.
9489 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9491 * gnu-nat.c: Include "gdbarch.h".
9493 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9495 * reply_mig_hack.awk (Error return): Cast function through
9496 void *, to bypass compiler function call check.
9498 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9500 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9501 $(srcdir)/reply_mig_hack.awk.
9503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9505 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9507 2020-05-30 Jonny Grant <jg@jguk.org>
9509 * configure.ac (ACX_BUGURL): change bug URL to https.
9511 2020-05-30 Pedro Alves <palves@redhat.com>
9513 * cp-support.c (replace_typedefs_template): New.
9514 (replace_typedefs_qualified_name): Handle
9515 DEMANGLE_COMPONENT_TEMPLATE.
9517 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9519 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9520 dwarf2/index-cache.h, dwarf2/index-write.c,
9521 dwarf2/index-write.h, dwarf2/line-header.c,
9522 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9523 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9524 variables and fields from `dwarf2_per_objfile` to just
9525 `per_objfile` throughout.
9527 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9529 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9530 <push_dwarf_reg_entry_value>: Add comment.
9532 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9533 Keith Seitz <keiths@redhat.com>
9535 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9536 instead of PyEval_ReleaseLock.
9537 (class gdbpy_gil): Move to earlier in file.
9538 (finalize_python): Set gdb_python_initialized.
9539 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9540 when not initialized.
9542 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9544 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9545 <push_dwarf_reg_entry_value>: Remove assert. Override
9546 per_objfile with caller_per_objfile.
9548 2020-05-28 Tom de Vries <tdevries@suse.de>
9550 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9551 PR gold/15646 workaround to symbol kind "type".
9553 2020-05-27 Tom Tromey <tromey@adacore.com>
9555 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9557 2020-05-27 Tom Tromey <tromey@adacore.com>
9559 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9560 Use htab_find_with_hash.
9561 <add_abbrev>: Remove "abbrev_number" parameter.
9562 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9563 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9564 (hash_abbrev): Add comment.
9565 (abbrev_table::lookup_abbrev): Move to header file.
9566 (abbrev_table::read): Update.
9568 2020-05-27 Tom Tromey <tromey@adacore.com>
9570 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9572 <canonical_name>: New member.
9573 <raw_name>: Rename from "name".
9574 (partial_die_info): Initialize canonical_name.
9575 (scan_partial_symbols): Check raw_name.
9576 (partial_die_parent_scope, partial_die_full_name)
9577 (add_partial_symbol, add_partial_subprogram)
9578 (add_partial_enumeration, load_partial_dies): Use "name" method.
9579 (partial_die_info::name): New method.
9580 (partial_die_info::read, guess_partial_die_structure_name)
9581 (partial_die_info::fixup): Update.
9583 2020-05-27 Tom Tromey <tromey@adacore.com>
9585 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9586 <get_ref_die_offset>: Inline.
9587 <get_ref_die_offset_complaint>: New method.
9588 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9589 (attribute::get_ref_die_offset_complaint): Rename from
9590 get_ref_die_offset. Just issue complaint.
9592 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9594 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9596 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9598 * exec.c (exec_file_attach): Use errno value of first openp failure.
9600 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9602 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9603 Don't close thread handle.
9605 2020-05-27 Tom Tromey <tom@tromey.com>
9606 Simon Marchi <simon.marchi@efficios.com>
9608 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9610 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9612 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9613 dwarf2_per_bfd_objfile_data_key>: New globals.
9614 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9615 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9616 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9618 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9619 short-circuit when sharing.
9620 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9621 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9625 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9627 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9628 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9630 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9632 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9633 build_name_components, find_name_components_bounds>:
9634 Add per_objfile parameter.
9635 (struct mapped_index) <symbol_name_at>: Likewise.
9636 (struct mapped_debug_names): Remove constructor.
9637 <dwarf2_per_objfile>: Remove field.
9638 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9639 (mapped_index_base::find_name_components_bounds,
9640 mapped_index_base::build_name_components,
9641 dw2_expand_symtabs_matching_symbol): Likewise.
9642 (class mock_mapped_index) <symbol_name_at>: Likewise.
9643 (check_match): Likewise.
9644 (check_find_bounds_finds): Likewise.
9645 (test_mapped_index_find_name_component_bounds): Update.
9646 (CHECK_MATCH): Update.
9647 (dw2_expand_symtabs_matching): Update.
9648 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9649 per_objfile parameter.
9650 <find_vec_in_debug_names>: Likewise.
9651 <m_per_objfile>: New field.
9652 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9654 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9655 (dw2_debug_names_iterator::next): Update.
9656 (dw2_debug_names_lookup_symbol): Update.
9657 (dw2_debug_names_expand_symtabs_for_function): Update.
9658 (dw2_debug_names_map_matching_symbols): Update.
9659 (dw2_debug_names_expand_symtabs_matching): Update.
9660 (dwarf2_read_debug_names): Update.
9662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9664 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9665 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9666 move to dwarf2_per_objfile.
9667 <read_in_chain>: Remove.
9668 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9669 remove_all_cus, age_comp_units>: New methods.
9670 <m_dwarf2_cus>: New member.
9671 (struct dwarf2_per_cu_data) <cu>: Remove.
9672 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9673 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9674 moved to methods of dwarf2_per_objfile.
9675 (dwarf2_clear_marks): Remove.
9676 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9677 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9678 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9679 (dwarf2_per_objfile::remove_all_cus): New.
9680 (class free_cached_comp_units) <~free_cached_comp_units>:
9683 (dw2_do_instantiate_symtab): Adjust.
9684 (fill_in_sig_entry_from_dwo_entry): Adjust.
9685 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9686 (cutu_reader::cutu_reader): Likewise.
9687 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9688 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9689 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9690 and dwarf2_per_objfile::age_comp_units.
9691 (load_partial_comp_unit): Update.
9692 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9693 (process_queue): Likewise.
9694 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9696 (dwarf2_read_addr_index): Likewise.
9697 (follow_die_offset): Likewise.
9698 (dwarf2_fetch_die_loc_sect_off): Likewise.
9699 (dwarf2_fetch_constant_bytes): Likewise.
9700 (dwarf2_fetch_die_type_sect_off): Likewise.
9701 (follow_die_sig_1): Likewise.
9702 (load_full_type_unit): Likewise.
9703 (read_signatured_type): Likewise.
9704 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9705 (dwarf2_cu::~dwarf2_cu): Remove.
9706 (dwarf2_per_objfile::get_cu): New.
9707 (dwarf2_per_objfile::set_cu): New.
9708 (age_cached_comp_units): Rename to...
9709 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9710 to std::unordered_map.
9711 (free_one_cached_comp_unit): Rename to...
9712 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9713 to std::unordered_map.
9714 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9715 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9716 a dwarf2_per_objfile in data.
9717 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9718 (dwarf2_clear_marks): Remove.
9720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9722 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9723 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9724 (init_tu_and_read_dwo_dies): Likewise.
9725 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9726 (cutu_reader::cutu_reader): Likewise.
9727 (load_partial_comp_unit): Likewise.
9728 (process_psymtab_comp_unit): Update.
9729 (build_type_psymtabs_1): Update.
9730 (process_skeletonless_type_unit): Update.
9731 (load_full_comp_unit): Update.
9732 (find_partial_die): Update.
9733 (dwarf2_read_addr_index): Update.
9734 (read_signatured_type): Update.
9736 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9738 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9739 m_header_read_in>: New fields.
9740 <get_header>: New method.
9741 * dwarf2/read.c (per_cu_header_read_in): Remove.
9742 (dwarf2_per_cu_data::get_header): New.
9743 (dwarf2_per_cu_data::addr_size): Update.
9744 (dwarf2_per_cu_data::offset_size): Update.
9745 (dwarf2_per_cu_data::ref_addr_size): Update.
9747 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9749 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9750 (dw2_do_instantiate_symtab): Update.
9751 (queue_and_load_all_dwo_tus): Change parameter from
9752 dwarf2_per_cu_data to dwarf2_cu.
9753 (dwarf2_fetch_die_loc_sect_off): Update.
9754 (dwarf2_fetch_constant_bytes): Update.
9755 (dwarf2_fetch_die_type_sect_off): Update.
9757 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9759 * dwarf2/read.c (process_full_comp_unit,
9760 process_full_type_unit): Remove per_cu, per_objfile paramters.
9761 Add dwarf2_cu parameter.
9762 (process_queue): Update.
9764 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9766 * dwarf2/read.c (create_cu_from_index_list): Replace
9767 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9768 (create_cus_from_index_list): Likewise.
9769 (create_cus_from_index): Likewise.
9770 (create_signatured_type_table_from_index): Likewise.
9771 (create_cus_from_debug_names_list): Likewise.
9772 (create_cus_from_debug_names): Likewise.
9773 (dwarf2_read_gdb_index): Update.
9774 (dwarf2_read_debug_names): Update.
9776 2020-05-27 Tom Tromey <tom@tromey.com>
9777 Simon Marchi <simon.marchi@efficios.com>
9779 * dwarf2/read.h (struct dwarf2_per_objfile)
9780 <get_type_for_signatured_type, set_type_for_signatured_type>:
9782 <m_type_map>: New member.
9783 (struct signatured_type) <type>: Remove.
9785 (dwarf2_per_objfile::get_type_for_signatured_type,
9786 dwarf2_per_objfile::set_type_for_signatured_type): New.
9787 (get_signatured_type): Use new methods.
9789 2020-05-27 Tom Tromey <tom@tromey.com>
9790 Simon Marchi <simon.marchi@efficios.com>
9792 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9793 (struct dwarf2_per_objfile) <type_units>: New member.
9794 <get_type_unit_group_unshareable>: New method.
9795 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9796 num_symtabs, symtabs>: Remove; move to
9797 type_unit_group_unshareable.
9798 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9799 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9800 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9802 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9804 * dwarf2/read.h (struct dwarf2_per_cu_data):
9805 <dwarf2_per_objfile>: Remove.
9806 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9808 (create_signatured_type_table_from_index): Likewise.
9809 (create_signatured_type_table_from_debug_names): Likewise.
9810 (create_debug_type_hash_table): Likewise.
9811 (fill_in_sig_entry_from_dwo_entry): Likewise.
9812 (create_type_unit_group): Likewise.
9813 (read_comp_units_from_section): Likewise.
9814 (create_cus_hash_table): Likewise.
9816 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9818 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9819 dwarf2_per_cu_data::dwarf2_per_objfile.
9820 (compute_compunit_symtab_includes): Likewise.
9821 (dwarf2_cu::start_symtab): Likewise.
9823 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9825 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9827 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9828 (read_namespace_alias): Update.
9829 (lookup_die_type): Update.
9830 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9831 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9833 (disassemble_dwarf_expression): Update.
9835 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9837 * dwarf2/read.h (struct dwarf2_queue_item): Add
9838 dwarf2_per_objfile parameter, assign new parameter.
9839 <per_objfile>: New field.
9840 * dwarf2/read.c (free_one_cached_comp_unit): Add
9841 dwarf2_per_objfile parameter.
9842 (queue_comp_unit): Likewise.
9843 (dw2_do_instantiate_symtab): Update.
9844 (process_psymtab_comp_unit): Update.
9845 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9846 (process_imported_unit_die): Update.
9847 (queue_and_load_dwo_tu): Update.
9848 (follow_die_offset): Update.
9849 (follow_die_sig_1): Update.
9851 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9853 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9854 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9855 (read_call_site_scope): Assign per_objfile.
9856 (dwarf2_per_cu_data::objfile): Remove.
9857 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9858 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9859 dwarf2_per_objfile parameter.
9860 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9861 dwarf2_per_objfile parameter.
9862 (dwarf_expr_reg_to_entry_parameter): Add output
9863 dwarf2_per_objfile parameter.
9864 (locexpr_get_frame_base): Update.
9865 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9866 <push_dwarf_reg_entry_value>: Update.
9867 <call_site_to_target_addr>: Update.
9868 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9870 (value_of_dwarf_reg_entry): Update.
9871 (rw_pieced_value): Update.
9872 (indirect_synthetic_pointer): Update.
9873 (dwarf2_evaluate_property): Update.
9874 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9876 (locexpr_read_variable): Update.
9877 (locexpr_get_symbol_read_needs): Update.
9878 (loclist_read_variable): Update.
9880 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9882 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9883 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9884 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9886 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9887 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9888 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9890 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9891 sect_variable_value): Add dwarf2_per_objfile parameter.
9892 (class dwarf_evaluate_loc_desc) <dwarf_call,
9893 dwarf_variable_value>: Update.
9894 (fetch_const_value_from_synthetic_pointer): Add
9895 dwarf2_per_objfile parameter.
9896 (fetch_const_value_from_synthetic_pointer): Update.
9897 (coerced_pieced_ref): Update.
9898 (class symbol_needs_eval_context) <dwarf_call,
9899 dwarf_variable_value>: Update.
9900 (dwarf2_compile_expr_to_ax): Update.
9902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9904 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9906 (dwarf2_evaluate_loc_desc_full): Update.
9908 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9910 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9912 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9913 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9914 dwarf2_per_objfile parameter.
9915 (decode_debug_loc_dwo_addresses): Likewise.
9916 (dwarf2_find_location_expression): Update.
9917 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9918 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9920 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9922 (locexpr_describe_location_1): Likewise.
9923 (locexpr_describe_location): Update.
9925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9927 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9929 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9930 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9931 (dwarf2_compile_property_to_c): Update.
9932 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9933 use text offset from objfile.
9934 (locexpr_tracepoint_var_ref): Update.
9935 (locexpr_generate_c_location): Update.
9936 (loclist_describe_location): Update.
9937 (loclist_tracepoint_var_ref): Update.
9938 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9939 dwarf2_per_objfile parameter.
9940 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9941 use text offset from objfile.
9942 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9944 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9946 * dwarf2/expr.h (struct dwarf_expr_context)
9947 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9949 <per_objfile>: New member.
9950 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9951 dwarf2_per_objfile parameter. Don't set offset, set
9953 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9954 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9955 a dwarf2_per_objfile object instead of an offset.
9956 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9958 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9959 to dwarf2_expr_executor constructor. Don't set offset.
9960 (dwarf2_fetch_cfa_info): Update.
9961 (struct dwarf2_frame_cache) <text_offset>: Remove.
9962 <per_objfile>: New field.
9963 (dwarf2_frame_cache): Update.
9964 (dwarf2_frame_prev_register): Update.
9965 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9966 <dwarf_evaluate_loc_desc>: Add constructor.
9967 (dwarf2_evaluate_loc_desc_full): Update.
9968 (dwarf2_locexpr_baton_eval): Update.
9969 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9971 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9973 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9975 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9976 addr_sized_int_type>: Move to dwarf2_cu.
9977 <int_type>: Move to dwarf2_per_objfile.
9978 (struct dwarf2_per_objfile) <int_type>: Move here.
9979 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9980 addr_sized_int_type>: Move here.
9981 (read_func_scope): Update.
9982 (read_array_type): Update.
9983 (read_tag_string_type): Update.
9984 (attr_to_dynamic_prop): Update.
9985 (dwarf2_per_cu_data::int_type): Rename to...
9986 (dwarf2_per_objfile::int_type): ... this.
9987 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9988 (dwarf2_cu::addr_sized_int_type): ... this.
9989 (read_subrange_type): Update.
9990 (dwarf2_per_cu_data::addr_type): Rename to...
9991 (dwarf2_cu::addr_type): ... this.
9992 (set_die_type): Update.
9994 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9996 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9997 data through per_cu->cu.
9999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10001 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10002 dwarf2_per_cu_data parameter fo dwarf2_cu.
10003 (lookup_dwo_type_unit): Likewise.
10004 (read_cutu_die_from_dwo): Likewise.
10005 (lookup_dwo_unit): Likewise.
10006 (open_and_init_dwo_file): Likewise.
10007 (lookup_dwo_cutu): Likewise.
10008 (lookup_dwo_comp_unit): Likewise.
10009 (lookup_dwo_type_unit): Likewise.
10010 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10011 (cutu_reader::cutu_reader): Update.
10013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10015 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10017 (process_full_type_unit): Likewise.
10018 (process_queue): Update.
10020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10022 * dwarf2/read.c (recursively_compute_inclusions): Add
10023 dwarf2_per_objfile parameter.
10024 (compute_compunit_symtab_includes): Likewise.
10025 (process_cu_includes): Update.
10027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10029 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10031 (create_type_unit_group): Update.
10032 (process_psymtab_comp_unit_reader): Update.
10033 (build_type_psymtabs_reader): Update.
10035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10037 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10038 object through m_this_cu->cu.
10040 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10042 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10043 the info parameter.
10044 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10046 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10048 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10049 per_objfile parameter.
10050 (load_full_type_unit): Add per_objfile parameter.
10051 (read_signatured_type): Likewise.
10052 (load_full_comp_unit): Likewise.
10053 (load_cu): Likewise.
10054 (dw2_do_instantiate_symtab): Likewise.
10055 (dw2_get_file_names): Likewise.
10056 (dw2_map_symtabs_matching_filename): Update.
10057 (dw_expand_symtabs_matching_file_matcher): Update.
10058 (dw2_map_symbol_filenames): Update.
10059 (process_psymtab_comp_unit): Add per_objfile parameter.
10060 (build_type_psymtabs_1): Update.
10061 (process_skeletonless_type_unit): Update.
10062 (dwarf2_build_psymtabs_hard): Update.
10063 (load_partial_comp_unit): Add per_objfile parameter.
10064 (scan_partial_symbols): Update.
10065 (load_full_comp_unit): Add per_objfile parameter.
10066 (process_imported_unit_die): Update.
10067 (create_cus_hash_table): Update.
10068 (find_partial_die): Update.
10069 (dwarf2_read_addr_index): Update.
10070 (follow_die_offset): Update.
10071 (dwarf2_fetch_die_loc_sect_off): Update.
10072 (dwarf2_fetch_constant_bytes): Update.
10073 (dwarf2_fetch_die_type_sect_off): Update.
10074 (follow_die_sig_1): Update.
10075 (load_full_type_unit): Add per_objfile parameter.
10076 (read_signatured_type): Likewise.
10078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10080 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10083 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10085 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10086 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10087 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10089 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10090 (create_cus_from_index): Update.
10091 (dwarf2_read_gdb_index): Update.
10092 (create_cus_from_debug_names): Update.
10093 (dwarf2_read_debug_names): Update.
10094 (get_abbrev_section_for_cu): Update.
10095 (create_all_comp_units): Update.
10096 (read_attribute_value): Update.
10097 (get_debug_line_section): Update.
10098 * dwarf2/index-cache.c (index_cache::store): Update.
10099 * dwarf2/index-write.c (save_gdb_index_command): Update.
10100 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10102 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10104 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10106 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10107 dwarf2_per_cu_data::per_bfd.
10108 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10109 (create_type_unit_group): Likewise.
10110 (queue_comp_unit): Remove reference to
10111 per_cu->dwarf2_per_objfile.
10112 (maybe_queue_comp_unit): Likewise.
10113 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10114 (create_cus_hash_table): Assign new field.
10116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10118 * dwarf2/read.c: Replace
10119 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10120 dwarf2_cu->per_objfile throughout.
10122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10124 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10125 parameter, don't use per_cu->dwarf2_per_objfile.
10126 (dw2_instantiate_symtab): Likewise.
10127 (dw2_find_last_source_symtab): Update.
10128 (dw2_map_expand_apply): Update.
10129 (dw2_lookup_symbol): Update.
10130 (dw2_expand_symtabs_for_function): Update.
10131 (dw2_expand_all_symtabs): Update.
10132 (dw2_expand_symtabs_with_fullname): Update.
10133 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10134 don't use per_cu->dwarf2_per_objfile.
10135 (dw2_expand_marked_cus): Update.
10136 (dw2_find_pc_sect_compunit_symtab): Update.
10137 (dw2_debug_names_lookup_symbol): Update.
10138 (dw2_debug_names_expand_symtabs_for_function): Update.
10139 (dw2_debug_names_map_matching_symbols): Update.
10140 (dwarf2_psymtab::expand_psymtab): Update.
10142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10144 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10145 <per_objfile>: New member.
10146 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10147 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10149 (cutu_reader::cutu_reader): Update.
10150 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10154 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10155 struct dwarf2_per_objfile.
10156 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10158 * dwarf2/read.c (set_die_type): Update.
10159 (get_die_type_at_offset): Update.
10161 2020-05-27 Tom Tromey <tom@tromey.com>
10162 Simon Marchi <simon.marchi@efficios.com>
10164 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10166 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10167 get_symtab, set_symtab>: New methods.
10168 <m_symtabs>: New field.
10169 (struct dwarf2_psymtab): Derive from partial_symtab.
10170 <readin_p, get_compunit_symtab>: Declare methods.
10171 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10172 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10174 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10175 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10176 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10177 (dw2_symtab_iter_next, dw2_print_stats)
10178 (dw2_expand_symtabs_with_fullname)
10179 (dw2_expand_symtabs_matching_one)
10180 (dw_expand_symtabs_matching_file_matcher)
10181 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10182 (dw2_debug_names_iterator::next)
10183 (dw2_debug_names_map_matching_symbols)
10184 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10185 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10186 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10188 (get_compunit_symtab, process_full_comp_unit)
10189 (process_full_type_unit): Update.
10190 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10192 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10194 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10195 then introduce a new dwarf2_per_objfile type.
10196 <read_line_string>: Move to the new dwarf2_per_objfile type.
10197 <objfile>: Likewise.
10198 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10199 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10200 dwarf2_per_objfile->per_bfd.
10201 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10202 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10203 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10204 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10205 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10206 (dwarf2_per_objfile::locate_sections): Rename to...
10207 (dwarf2_per_bfd::locate_sections): ... this.
10208 (dwarf2_per_objfile::get_cutu): Rename to...
10209 (dwarf2_per_bfd::get_cutu): ... this.
10210 (dwarf2_per_objfile::get_cu): Rename to...
10211 (dwarf2_per_bfd::get_cu): ... this.
10212 (dwarf2_per_objfile::get_tu): Rename to...
10213 (dwarf2_per_bfd::get_tu): ... this.
10214 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10215 (dwarf2_per_bfd::allocate_per_cu): ... this.
10216 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10217 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10218 (get_gdb_index_contents_ftype): Change parameter from
10219 dwarf2_per_objfile to dwarf2_per_bfd.
10220 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10221 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10223 2020-05-27 Tom Tromey <tom@tromey.com>
10224 Simon Marchi <simon.marchi@efficios.com>
10226 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10227 (allocate_piece_closure): Set "per_objfile" member.
10228 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10229 (locexpr_describe_location, loclist_describe_location): Use new
10231 * dwarf2/read.c (read_call_site_scope)
10232 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10233 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10234 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10235 handle_data_member_location): Set per_objfile member.
10236 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10238 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10240 2020-05-27 Tom Tromey <tom@tromey.com>
10242 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10243 allocate_signatured_type>: Declare new methods.
10244 <m_num_psymtabs>: New member.
10245 (struct dwarf2_per_cu_data) <index>: New member.
10246 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10247 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10248 (create_cu_from_index_list): Use allocate_per_cu.
10249 (create_signatured_type_table_from_index)
10250 (create_signatured_type_table_from_debug_names)
10251 (create_debug_type_hash_table, add_type_unit)
10252 (read_comp_units_from_section): Use allocate_signatured_type.
10254 2020-05-27 Tom Tromey <tom@tromey.com>
10256 * psymtab.c (partial_map_expand_apply)
10257 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10258 (psym_lookup_global_symbol_language)
10259 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10260 (psym_print_stats, psym_expand_symtabs_for_function)
10261 (psym_map_symbol_filenames, psym_map_matching_symbols)
10262 (psym_expand_symtabs_matching)
10263 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10264 (maintenance_check_psymtabs): Update.
10265 * psympriv.h (struct partial_symtab) <readin_p,
10266 get_compunit_symtab>: Add objfile parameter.
10267 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10269 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10270 get_compunit_symtab>: Likewise.
10271 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10273 2020-05-27 Tom Tromey <tom@tromey.com>
10275 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10277 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10278 (create_cu_from_index_list)
10279 (create_signatured_type_table_from_index)
10280 (create_signatured_type_table_from_debug_names)
10281 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10282 (dwarf2_create_include_psymtab)
10283 (create_debug_type_hash_table, add_type_unit)
10284 (create_type_unit_group, read_comp_units_from_section)
10285 (dwarf2_compute_name, create_cus_hash_table)
10286 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10287 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10289 (dw2_get_real_path): Likewise. Change argument to
10290 dwarf2_per_objfile.
10292 2020-05-27 Luis Machado <luis.machado@linaro.org>
10295 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10296 for ldrd (immediate).
10298 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10300 * command.h: Add comment giving the name of class_tui.
10301 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10302 create the fake command for the help for class_tui.
10304 2020-05-26 Tom Tromey <tromey@adacore.com>
10306 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10307 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10308 (val_atr): New function.
10309 (value_val_atr): Use it.
10310 * ada-valprint.c (print_optional_low_bound): Change low bound
10311 handling for enums.
10312 (val_print_packed_array_elements): Don't call discrete_position.
10313 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10314 discrete_position for enum types.
10315 * language.c (default_print_array_index): Change type.
10316 * language.h (struct language_defn) <la_print_array_index>: Add
10317 index_type parameter, change type of index_value.
10318 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10319 (default_print_array_index): Update.
10320 * valprint.c (maybe_print_array_index): Don't call
10321 value_from_longest. Update.
10322 (value_print_array_elements): Don't call discrete_position.
10324 2020-05-26 Tom Tromey <tromey@adacore.com>
10326 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10327 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10329 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10332 * avr-tdep.c (avr_integer_to_address): Return data or code
10333 address accordingly to the second 'type' argument of the
10336 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10338 * infcmd.c, inferior.h: (construct_inferior_arguments):
10339 Moved function from here to gdbsupport/common-inferior.{h,cc}
10341 2020-05-23 Tom Tromey <tom@tromey.com>
10343 Revert commit eca1f90c:
10344 * NEWS: Remove entry for completion styling.
10345 * completer.c (_rl_completion_prefix_display_length): Move
10347 (gdb_fnprint): Revert.
10348 (gdb_display_match_list_1): Likewise.
10349 * cli/cli-style.c (completion_prefix_style)
10350 (completion_difference_style, completion_suffix_style): Remove.
10351 (_initialize_cli_style): Revert.
10352 * cli/cli-style.h (completion_prefix_style)
10353 (completion_difference_style, completion_suffix_style): Don't
10356 2020-05-24 Pedro Alves <palves@redhat.com>
10358 * symtab.c (completion_list_add_name): Return boolean indication
10359 of whether the symbol matched.
10360 (completion_list_add_symbol): Don't try to remove C++ aliases if
10361 the symbol didn't match in the first place.
10362 * symtab.h (completion_list_add_name): Return bool.
10364 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10366 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10369 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10373 2020-05-23 Tom Tromey <tom@tromey.com>
10375 * NEWS: Add entry for completion styling.
10376 * completer.c (_rl_completion_prefix_display_length): Move
10377 declaration earlier.
10378 (gdb_fnprint): Use completion_style.
10379 (gdb_display_match_list_1): Likewise.
10380 * cli/cli-style.c (completion_prefix_style)
10381 (completion_difference_style, completion_suffix_style): New
10383 (_initialize_cli_style): Register new globals.
10384 * cli/cli-style.h (completion_prefix_style)
10385 (completion_difference_style, completion_suffix_style): Declare.
10387 2020-05-23 Pedro Alves <palves@redhat.com>
10389 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10390 (parse_escape): Use ISDIGIT instead of isdigit.
10391 (puts_debug): Use gdb_isprint instead of isprint.
10392 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10393 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10394 ISSPACE instead of isspace.
10395 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10396 instead of isspace.
10397 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10398 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10399 instead of isxdigit and ISDIGIT instead of isdigit.
10401 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10403 * gdbtypes.h (struct type) <field>: New method.
10404 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10407 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10409 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10410 (TYPE_FIELDS): Use type::fields. Change all call sites that
10411 modify the propery to use type::set_fields instead.
10413 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10415 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10416 type::num_fields instead.
10418 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10420 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10422 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10423 that modify the number of fields to use type::set_num_fields
10426 2020-05-22 Tom Tromey <tromey@adacore.com>
10428 * compile/compile-object-load.h (munmap_list_free): Don't
10431 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10433 * annotate.c (annotate_source_line): Update return type, add call
10434 to update current symtab and line.
10435 * annotate.h (annotate_source_line): Update return type, and
10436 extend header comment.
10437 * source.c (info_line_command): Check annotation_level before
10438 calling annotate_source_line.
10439 * stack.c (print_frame_info): If calling annotate_source_line
10440 returns true, then don't print any other source line information.
10442 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10444 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10446 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10448 * coffread.c (patch_type): Remove NULL check before xfree.
10449 * corefile.c (set_gnutarget): Likewise.
10450 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10451 * exec.c (build_section_table): Likewise.
10452 * remote.c (remote_target::pass_signals): Likewise.
10453 * utils.c (n_spaces): Likewise.
10454 * cli/cli-script.c (document_command): Likewise.
10455 * i386-windows-tdep.c (core_process_module_section): Likewise.
10456 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10458 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10460 * symfile.c (reread_symbols): Clear objfile's section_offsets
10461 vector and section indices, re-compute them by calling
10464 2020-05-20 Tom Tromey <tromey@adacore.com>
10466 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10467 (desc_one_bound, desc_index_type): Compute field name.
10469 2020-05-20 Tom de Vries <tdevries@suse.de>
10472 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10474 2020-05-20 Alan Modra <amodra@gmail.com>
10477 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10479 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10480 passed to bfd_set_filename.
10481 * symfile-mem.c (add_vsyscall_page): Likewise for string
10482 passed to symbol_file_add_from_memory.
10483 (symbol_file_add_from_memory): Make name param a const char* and
10486 2020-05-20 Alan Modra <amodra@gmail.com>
10488 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10489 rather than accessing bfd->filename directly.
10490 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10491 and use bfd_section_name.
10492 * dwarf2/frame.c (decode_frame_entry): Likewise.
10493 * exec.c (exec_set_section_address): Likewise.
10494 * solib-aix.c (solib_aix_bfd_open): Likewise.
10495 * stap-probe.c (get_stap_base_address): Likewise.
10496 * symfile.c (reread_symbols): Likewise.
10498 2020-05-19 Tom Tromey <tromey@adacore.com>
10500 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10502 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10504 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10506 2020-05-19 Pedro Alves <palves@redhat.com>
10508 * NEWS (set exec-file-mismatch): Adjust entry.
10509 * exec.c: Include "build-id.h".
10510 (validate_exec_file): Try to match build IDs instead of filenames.
10511 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10512 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10513 and pass down 'warn_if_slow'.
10514 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10515 gdb_bfd_open_closure to pass it down.
10516 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10518 2020-05-19 Pedro Alves <palves@redhat.com>
10520 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10521 * target.c (target_fileio_open_1): Rename to target_fileio_open
10522 and make extern. Use bool.
10523 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10524 (target_fileio_read_alloc_1): Adjust.
10525 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10526 (target_fileio_open_warn_if_slow): Delete declaration.
10528 2020-05-19 Pedro Alves <palves@redhat.com>
10530 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10531 Adjust all callers.
10533 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10535 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10536 whether disp is negative.
10538 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10540 * symfile.h (struct symfile_segment_data)
10541 <~symfile_segment_data>: Remove.
10542 <segment_info>: Change to std::vector.
10543 * symfile.c (default_symfile_segments): Update.
10544 * elfread.c (elf_symfile_segments): Update.
10546 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10548 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10550 <segment_bases, segment_sizes>: Remove.
10551 * symfile.c (default_symfile_segments): Update.
10552 * elfread.c (elf_symfile_segments): Update.
10553 * remote.c (remote_target::get_offsets): Update.
10554 * solib-target.c (solib_target_relocate_section_addresses):
10557 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10559 * symfile.h (struct symfile_segment_data): Initialize fields.
10560 <~symfile_segment_data>: Add.
10561 (symfile_segment_data_up): New.
10562 (struct sym_fns) <sym_segments>: Return a
10563 symfile_segment_data_up.
10564 (default_symfile_segments): Return a symfile_segment_data_up.
10565 (free_symfile_segment_data): Remove.
10566 (get_symfile_segment_data): Return a symfile_segment_data_up.
10567 * symfile.c (default_symfile_segments): Likewise.
10568 (get_symfile_segment_data): Likewise.
10569 (free_symfile_segment_data): Remove.
10570 (symfile_find_segment_sections): Update.
10571 * elfread.c (elf_symfile_segments): Return a
10572 symfile_segment_data_up.
10573 * remote.c (remote_target::get_offsets): Update.
10574 * solib-target.c (solib_target_relocate_section_addresses):
10576 * symfile-debug.c (debug_sym_segments): Return a
10577 symfile_segment_data_up.
10579 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10582 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10583 Hardcode register numbers.
10586 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10587 procfs_find_LDT_entry): Remove.
10588 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10589 procfs_find_LDT_entry): Remove.
10590 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10593 2020-05-17 Pedro Alves <palves@redhat.com>
10594 Andrew Burgess <andrew.burgess@embecosm.com>
10595 Keno Fischer <keno@juliacomputing.com>
10598 * breakpoint.c (build_target_condition_list): Update comments.
10599 (build_target_command_list): Update comments and skip matching
10601 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10602 a separate function. Simplify "set breakpoint auto-hw off"
10604 (insert_breakpoints): Update comment.
10605 (tracepoint_locations_match): New parameter. For breakpoints,
10606 compare location types too, if the caller wants to.
10607 (handle_automatic_hardware_breakpoints): New functions.
10608 (bp_location_is_less_than): Also sort by location type and
10609 hardware breakpoint length.
10610 (update_global_location_list): Handle "set breakpoint auto-hw on"
10612 (update_breakpoint_locations): Ask breakpoint_locations_match to
10613 ignore location types.
10615 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10617 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10618 type::name instead.
10620 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10622 * gdbtypes.h (struct type) <name, set_name>: New methods.
10623 (TYPE_CODE): Use type::name. Change all call sites used to set
10624 the name to use type::set_name instead.
10626 2020-05-16 Tom Tromey <tom@tromey.com>
10628 * top.c (quit_force): Update.
10629 * infrun.c (handle_no_resumed): Update.
10630 * top.h (all_uis): New function.
10633 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10635 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10637 2020-05-16 Pedro Alves <palves@redhat.com>
10640 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10642 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10644 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10646 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10647 (sparc64_adi_info): Likewise.
10649 2020-05-15 Tom Tromey <tom@tromey.com>
10651 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10653 (lookup_objfile_from_block): Remove.
10654 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10655 (lookup_global_symbol): Use block_objfile.
10656 * symtab.h (lookup_objfile_from_block): Don't declare.
10657 * printcmd.c (clear_dangling_display_expressions): Use
10659 * parse.c (operator_check_standard): Use block_objfile.
10661 2020-05-15 Tom Tromey <tom@tromey.com>
10663 * language.c (language_alloc_type_symbol): Set
10665 * symtab.c (initialize_objfile_symbol): Remove.
10666 (allocate_symbol): Remove.
10667 (allocate_template_symbol): Remove.
10668 * dwarf2/read.c (fixup_go_packaging): Use "new".
10669 (new_symbol): Use "new".
10670 (read_variable): Don't call initialize_objfile_symbol. Use
10672 (read_func_scope): Use "new".
10673 * xcoffread.c (process_xcoff_symbol): Don't call
10674 initialize_objfile_symbol.
10675 (SYMBOL_DUP): Remove.
10676 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10678 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10679 (allocate_template_symbol): Don't declare.
10680 (struct symbol): Add copy constructor. Change defaults.
10681 * jit.c (finalize_symtab): Use "new".
10682 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10684 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10685 (common_block_end): Use "new".
10686 * mdebugread.c (parse_symbol): Use "new".
10687 (new_symbol): Likewise.
10689 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10691 * NEWS: Mention changes to help and apropos.
10693 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10695 * command.h (enum command_class): Improve comments, document
10696 that class_alias is for user-defined aliases, give the class
10697 name for each class, remove unused class_xdb.
10698 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10699 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10700 by a precise class.
10701 * infcmd.c (_initialize_infcmd): Likewise.
10702 * reverse.c (_initialize_reverse): Likewise.
10703 * stack.c (_initialize_stack): Likewise.
10704 * symfile.c (_initialize_symfile): Likewise.
10705 * tracepoint.c (_initialize_tracepoint): Likewise.
10707 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10709 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10710 when their aliased command is traversed.
10711 (help_cmd): Add fput_command_names_styled call to
10712 output command name and aliases when command has an alias.
10714 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10716 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10717 * cli/cli-decode.c (help_cmd_list): Declare as static,
10718 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10719 a command together with the command.
10720 (fput_command_name_styled, fput_command_names_styled): New functions.
10721 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10722 fput_command_name_styled.
10723 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10724 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10726 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10728 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10729 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10730 * command.h (cmd_show_list): Likewise.
10731 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10732 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10734 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10736 * unittests/command-def-selftests.c (traverse_command_structure):
10737 Verify all commands of a list have the same prefix command and
10738 that only the top cmdlist commands have a null prefix.
10740 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10742 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10743 as prefix, not one of its aliases.
10744 (set_cmd_prefix): Remove.
10745 (do_add_cmd): Centralize the setting of the prefix of a command, when
10746 command is defined after its full chain of prefix commands.
10747 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10748 (add_setshow_cmd_full): Likewise.
10749 (update_prefix_field_of_prefixed_commands): New function.
10750 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10751 update_prefix_field_of_prefixed_commands.
10752 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10753 addresses of remote_set_cmdlist and remote_show_cmdlist given
10754 as argument, not the address of an argument.
10755 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10756 * gdb/remote.c (_initialize_remote): Likewise.
10758 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10760 * cli/cli-cmds.c (alias_command): Check for an existing alias
10761 using lookup_cmd_composition, as valid_command_p is too strict
10762 and forbids aliases that are the prefix of an existing alias
10764 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10765 command is properly recognised as a valid command.
10767 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10769 * unittests/help-doc-selftests.c: Rename to
10770 unittests/command-def-selftests.c
10771 * unittests/command-def-selftests.c (help_doc_tests): Update some
10773 (command_structure_tests, traverse_command_structure): New namespace
10775 (command_structure_invariants_tests): New function.
10776 (_initialize_command_def_selftests) Renamed from
10777 _initialize_help_doc_selftests, register command_structure_invariants
10780 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10782 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10783 an alias of 'show'.
10785 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10787 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10788 ada_is_fixed_point_type. Update all callers.
10789 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10791 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10792 Update all callers.
10793 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10794 print_fixed_point_type. Update all callers.
10795 * ada-valprint.c (ada_value_print_num): Replace call to
10796 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10798 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10800 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10802 (cpu_supports_bts): Add CV_AMD case.
10804 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10805 Simon Marchi <simon.marchi@efficios.com>
10807 * infrun.c (stop_all_threads): Collect multiple wait events at
10810 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10812 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10813 type::code instead.
10815 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10817 * gdbtypes.h (struct type) <code, set_code>: New methods.
10818 (TYPE_CODE): Use type::code. Change all call sites used to set
10819 the code to use type::set_code instead.
10821 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10822 Tom de Vries <tdevries@suse.de>
10823 Pedro Alves <palves@redhat.com>
10826 * infrun.c (stop_all_threads): Do NOT ignore
10827 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10828 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10830 (handle_no_resumed): Remove code handling a live inferior with no
10832 * remote.c (has_single_non_exited_thread): New.
10833 (remote_target::update_thread_list): Do not delete a thread if is
10834 the last thread of the process.
10835 * thread.c (thread_select): Call delete_exited_threads instead of
10838 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10840 * infrun.c (stop_all_threads): Enable/disable thread events of all
10841 targets. Move a debug message denoting the end of the function
10842 into the SCOPED_EXIT block.
10844 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10846 * process-stratum-target.h: Include <set>.
10847 (all_non_exited_process_targets, switch_to_target_no_thread): New
10848 function declarations.
10849 * process-stratum-target.c (all_non_exited_process_targets)
10850 (switch_to_target_no_thread): New function implementations.
10852 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10854 * infrun.c (handle_inferior_event): Extract out a piece of code
10856 (mark_non_executing_threads): ...this new function.
10858 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10860 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10863 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10865 * regcache.c (regcache_read_pc_protected): New function
10866 implementation that returns 0 if the PC cannot read via
10867 'regcache_read_pc'.
10868 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10869 instead of 'regcache_read_pc'.
10870 (keep_going_pass_signal): Ditto.
10872 2020-05-13 Tom Tromey <tromey@adacore.com>
10874 * ada-lang.c (align_value): Remove.
10875 (ada_template_to_fixed_record_type_1): Use align_up.
10877 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10879 * async-event.c: Update the copyright year.
10880 * async-event.h: Update the copyright year.
10882 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10884 * objfiles.h (is_addr_in_objfile,
10885 shared_objfile_contains_address_p): Return bool.
10886 * objfile.c (is_addr_in_objfile,
10887 shared_objfile_contains_address_p): Return bool.
10889 2020-05-11 Tom Tromey <tromey@adacore.com>
10891 * cli/cli-cmds.c (info_command): Restore.
10892 (_initialize_cli_cmds): Use add_prefix_command for "info".
10893 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10895 2020-05-11 Tom Tromey <tromey@adacore.com>
10897 * ada-lang.c (ada_value_primitive_field): Now public.
10898 * ada-lang.h (ada_value_primitive_field): Declare.
10899 * ada-valprint.c (print_field_values): Use
10900 ada_value_primitive_field for wrapper fields.
10902 2020-05-11 Tom de Vries <tdevries@suse.de>
10904 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10907 2020-05-11 Tom de Vries <tdevries@suse.de>
10910 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10911 with length 0, if not gdb-produced.
10912 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10914 2020-05-09 Tom de Vries <tdevries@suse.de>
10917 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10920 2020-05-09 Tom Tromey <tom@tromey.com>
10922 * top.c (server_command): Now bool.
10923 * top.h (server_command): Now bool.
10925 2020-05-08 Tom Tromey <tromey@adacore.com>
10927 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10928 already being processed.
10930 2020-05-08 Tom Tromey <tom@tromey.com>
10932 * printcmd.c (struct display) <next>: Remove.
10933 <display>: New constructor.
10934 <exp_string>: Now a std::string.
10935 <enabled_p>: Now a bool.
10936 (display_number): Move definition earlier.
10937 (displays): Rename from display_chain. Now a std::vector.
10938 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10939 (display_command): Update.
10940 (do_one_display, disable_display)
10941 (enable_disable_display_command, do_enable_disable_display):
10943 (free_display): Remove.
10944 (clear_displays): Rewrite.
10945 (delete_display): Update.
10946 (map_display_numbers): Use function_view. Remove "data"
10948 (do_delete_display): Remove.
10949 (undisplay_command): Update.
10950 (do_one_display, do_displays, disable_display)
10951 (info_display_command): Update.
10952 (do_enable_disable_display): Remove.
10953 (enable_disable_display_command)
10954 (clear_dangling_display_expressions): Update.
10956 2020-05-08 Tom Tromey <tom@tromey.com>
10958 * symtab.c (set_symbol_cache_size)
10959 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10960 (maintenance_print_symbol_cache_statistics): Update.
10961 * symmisc.c (print_symbol_bcache_statistics)
10962 (print_objfile_statistics, maintenance_print_objfiles)
10963 (maintenance_info_symtabs, maintenance_check_symtabs)
10964 (maintenance_expand_symtabs, maintenance_info_line_tables):
10966 * symfile-debug.c (set_debug_symfile): Update.
10967 * source.c (forget_cached_source_info): Update.
10968 * python/python.c (gdbpy_progspaces): Update.
10969 * psymtab.c (maintenance_info_psymtabs): Update.
10970 * probe.c (parse_probes): Update.
10971 * linespec.c (iterate_over_all_matching_symtabs)
10972 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10973 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10974 * exec.c (exec_target::close): Update.
10975 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10976 * breakpoint.c (print_one_breakpoint_location)
10977 (create_longjmp_master_breakpoint)
10978 (create_std_terminate_master_breakpoint): Update.
10979 * progspace.c (program_spaces): Now a std::vector.
10980 (maybe_new_address_space): Update.
10981 (add_program_space): Remove.
10982 (program_space::program_space): Update.
10983 (remove_program_space): Update.
10984 (number_of_program_spaces): Remove.
10985 (print_program_space, update_address_spaces): Update.
10986 * progspace.h (program_spaces): Change type.
10987 (ALL_PSPACES): Remove.
10988 (number_of_program_spaces): Don't declare.
10989 (struct program_space) <next>: Remove.
10991 2020-05-08 Tom Tromey <tom@tromey.com>
10993 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10994 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10995 (enable_break): Update.
10996 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10997 (frv_fdpic_find_canonical_descriptor): Update.
10998 (frv_fetch_objfile_link_map): Update.
10999 * progspace.c (program_space::free_all_objfiles): Update.
11000 (program_space::solibs): New method.
11001 * progspace.h (struct program_space) <solibs>: New method.
11002 * solist.h (master_so_list): Don't declare.
11003 (ALL_SO_LIBS): Remove.
11004 * solib.h (so_list_head): Remove.
11005 (update_solib_list): Update comment.
11006 * solib.c (master_so_list): Remove.
11007 (solib_used, update_solib_list, solib_add)
11008 (info_sharedlibrary_command, clear_solib)
11009 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11011 2020-05-08 Tom Tromey <tom@tromey.com>
11013 * extension.c (extension_languages): Now a std::array.
11014 (ALL_EXTENSION_LANGUAGES): Remove.
11015 (get_ext_lang_defn, get_ext_lang_of_file)
11016 (eval_ext_lang_from_control_command): Update.
11017 (finish_ext_lang_initialization)
11018 (auto_load_ext_lang_scripts_for_objfile)
11019 (ext_lang_type_printers::ext_lang_type_printers)
11020 (apply_ext_lang_type_printers)
11021 (ext_lang_type_printers::~ext_lang_type_printers)
11022 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11023 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11024 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11025 (get_matching_xmethod_workers, ext_lang_colorize)
11026 (ext_lang_before_prompt): Update.
11027 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11029 2020-05-08 Tom Tromey <tom@tromey.com>
11031 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11033 <swap_string, m_string>: Remove.
11034 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11036 * stabsread.c (define_symbol, read_type): Update.
11037 * linespec.c (find_linespec_symbols): Update.
11038 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11039 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11040 * dbxread.c (read_dbx_symtab): Update.
11041 * cp-support.h (cp_canonicalize_string_full)
11042 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11043 Return unique_xmalloc_ptr.
11044 * cp-support.c (inspect_type): Update.
11045 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11046 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11048 * c-typeprint.c (print_name_maybe_canonical): Update.
11049 * break-catch-throw.c (check_status_exception_catchpoint):
11052 2020-05-08 Tom de Vries <tdevries@suse.de>
11054 * infrun.c (follow_fork): Copy current_line and current_symtab to
11057 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11059 * async-event.c (struct async_signal_handler, struct
11060 async_event_handler): Reformat, remove typedef.
11062 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11064 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11065 access thistype->main_type->dyn_prop_list directly.
11067 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11069 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11070 (remove_dyn_prop): Remove. Update all users to use
11071 type::remove_dyn_prop.
11072 * gdbtypes.c (remove_dyn_prop): Rename to...
11073 (type::remove_dyn_prop): ... this.
11075 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11077 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11078 (add_dyn_prop): Remove. Update all users to use
11079 type::add_dyn_prop.
11080 * gdbtypes.c (add_dyn_prop): Rename to...
11081 (type::add_dyn_prop): ... this.
11083 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11085 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11086 (get_dyn_prop): Remove. Update all users to use
11088 * gdbtypes.c (get_dyn_prop): Rename to...
11089 (type::dyn_prop): ... this.
11091 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11093 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11095 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11097 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11098 instruction, skip it if it's there.
11100 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11102 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11104 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11106 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11107 * gdbtypes.c (recursive_dump_type): Remove use of
11110 2020-05-03 Tom Tromey <tom@tromey.com>
11112 * breakpoint.c (catch_command, tcatch_command): Remove.
11113 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11116 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11118 (add_internal_problem_command): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 * mips-tdep.c (set_mipsfpu_command): Remove.
11121 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11122 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11123 (_initialize_index_cache): Use add_basic_prefix_cmd.
11124 * memattr.c (dummy_cmd): Remove.
11125 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11126 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11127 (_initialize_tui_win): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 * cli/cli-logging.c (set_logging_command): Remove.
11130 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11131 add_show_prefix_cmd.
11132 (show_logging_command): Remove.
11133 * target.c (target_command): Remove.
11134 (add_target): Use add_basic_prefix_cmd.
11136 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11138 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11140 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11142 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11145 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11147 * nbsd-nat.c (nbsd_enable_proc_events)
11148 (nbsd_nat_target::post_startup_inferior): Add.
11149 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11150 (nbsd_nat_target::update_thread_list): Rewrite.
11151 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11152 "PTRACE_LWP_CREATE".
11153 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11155 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11157 * stack.c (_initialize_stack): Remove duplicated creation
11158 of "frame" command and "f" alias.
11160 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11163 * gdbtypes.c (check_typedef): Calculate size of array of
11166 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11169 * i386-tdep.c (i386_push_dummy_call): Call
11170 i386_thiscall_push_dummy_call.
11171 (i386_thiscall_push_dummy_call): New function.
11172 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11173 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11174 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11176 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11178 * gdbarch.sh (do_read): Add shellcheck disable directive for
11181 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11183 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11184 "referenced but not assigned" warning.
11186 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11188 * gdbarch.sh: Remove code that sets fallbackdefault.
11190 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11192 * gdbarch.sh: Use shell operators && and || instead of
11195 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11197 * gdbarch.sh: Use $(...) instead of `...`.
11199 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11201 * gdbarch.sh: Use double quotes around variables.
11203 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11205 * gdbarch.sh: Use %s with printf, instead of variables in the
11208 2020-04-29 Tom Tromey <tromey@adacore.com>
11211 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11213 (read_enumeration_type): Call
11214 update_enumeration_type_from_children later. Update comments.
11215 (process_enumeration_scope): Don't create type fields.
11217 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11219 * nbsd-tdep.c: Include "xml-syscall.h".
11220 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11222 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11224 * nbsd-nat.c: Include "sys/wait.h".
11225 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11226 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11227 (nbsd_nat_target::remove_exec_catchpoint)
11228 (nbsd_nat_target::set_syscall_catchpoint): Add.
11229 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11230 (nbsd_nat_target::insert_exec_catchpoint)
11231 (nbsd_nat_target::remove_exec_catchpoint)
11232 (nbsd_nat_target::set_syscall_catchpoint): Add.
11233 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11234 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11235 `nbsd_get_syscall_number'.
11237 2020-04-29 Tom Tromey <tom@tromey.com>
11239 * stack.c (print_block_frame_labels): Remove.
11241 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11244 * ada-valprint.c (val_print_packed_array_elements): Move array
11245 end bracket to new line.
11246 (ada_val_print_string): Remove extra spaces before first array
11248 * c-valprint.c (c_value_print_array): Likewise.
11249 * m2-valprint.c (m2_print_array_contents): Likewise.
11250 (m2_value_print_inner): Likewise.
11251 * p-valprint.c (pascal_value_print_inner): Likewise.
11252 * valprint.c (generic_val_print_array): Likewise.
11253 (value_print_array_elements): Move first array element and array
11254 end bracket to new line.
11256 2020-04-29 Tom de Vries <tdevries@suse.de>
11259 * linespec.c (find_method): Fix ix calculation.
11261 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11263 * syscalls/update-netbsd.sh: New file.
11264 * syscalls/netbsd.xml: Regenerate.
11265 * data-directory/Makefile.in: Register `netbsd.xml' in
11268 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11270 * syscalls/update-freebsd.sh: Add double quotes.
11272 2020-04-28 Tom Tromey <tom@tromey.com>
11275 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11276 (cmdpy_init): Allow class_tui.
11278 2020-04-28 Mark Williams <mark@myosotissp.com>
11281 * dwarf2read.c: Add missing assingments to list_in_scope when
11282 start_symtab was already called.
11284 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11287 * dwarf2/read.c (offset_map_type): Use
11288 gdb:hash_enum<sect_offset> as hash function.
11290 2020-04-28 Tom de Vries <tdevries@suse.de>
11292 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11293 with DW_AT_signature.
11295 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11297 * configure.ac: Remove check for fs_base/gs_base in
11299 * configure: Re-generate.
11300 * config.in: Re-generate.
11301 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11302 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11303 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11305 2020-04-27 Luis Machado <luis.machado@linaro.org>
11307 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11308 problematic inline frame unwinding situation.
11309 * frame.c (frame_id_computed_p): New function.
11310 * frame.h (frame_id_computed_p): New prototype.
11312 2020-04-26 Tom Tromey <tom@tromey.com>
11314 * command.h (enum command_class) <class_pseudo>: Remove.
11316 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11318 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11321 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11323 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11324 `PT_GET_PROCESS_STATE' block.
11326 2020-04-24 Tom Tromey <tom@tromey.com>
11328 * symtab.h (symbol_get_demangled_name): Don't declare.
11329 * symtab.c (symbol_get_demangled_name): Remove.
11330 (general_symbol_info::natural_name)
11331 (general_symbol_info::demangled_name): Update.
11333 2020-04-24 Tom Tromey <tom@tromey.com>
11336 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11338 2020-04-24 Tom Tromey <tom@tromey.com>
11341 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11343 (new_symbol): Likewise.
11344 * compile/compile-object-load.c (get_out_value_type): Use
11345 symbol_matches_search_name.
11347 2020-04-24 Tom Tromey <tom@tromey.com>
11349 * dwarf2/read.c (add_partial_symbol): Do not call
11350 compute_and_set_names.
11352 2020-04-24 Tom Tromey <tom@tromey.com>
11354 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11357 2020-04-24 Tom Tromey <tom@tromey.com>
11359 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11360 (add_psymbol_to_list): New overload. Make old overload call new
11362 * psympriv.h (add_psymbol_to_list): New overload.
11364 2020-04-24 Tom Tromey <tom@tromey.com>
11366 * dwarf2/read.c (partial_die_info::read) <case
11367 DW_AT_linkage_name>: Use value_as_string.
11368 (dwarf2_string_attr): Use value_as_string.
11369 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11371 * dwarf2/attribute.c (attribute::value_as_string): New method.
11373 2020-04-24 Tom Tromey <tom@tromey.com>
11375 * symtab.c (general_symbol_info::natural_name)
11376 (general_symbol_info::demangled_name): Check for language_rust.
11378 2020-04-24 Tom Tromey <tom@tromey.com>
11380 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11381 (dwarf2_physname): ... from here.
11382 (partial_die_info::read): Add Rust "{" hack.
11384 2020-04-24 Tom Tromey <tom@tromey.com>
11386 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11388 (symbol_set_demangled_name): Don't declare.
11389 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11390 symbol_set_demangled_name.
11391 (general_symbol_info::set_language)
11392 (general_symbol_info::compute_and_set_names): Update.
11393 * minsyms.c (minimal_symbol_reader::install): Update.
11394 * dwarf2/read.c (new_symbol): Update.
11396 2020-04-24 Tom Tromey <tromey@adacore.com>
11399 * python/py-type.c (convert_field): Handle
11400 FIELD_LOC_KIND_DWARF_BLOCK.
11401 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11402 (typy_get_dynamic): Nw function.
11403 (type_object_getset): Add "dynamic".
11406 2020-04-24 Tom Tromey <tromey@adacore.com>
11408 * ada-typeprint.c (print_choices, print_variant_part)
11409 (print_record_field_types_dynamic): New functions.
11410 (print_record_field_types): Use print_record_field_types_dynamic.
11412 2020-04-24 Tom Tromey <tromey@adacore.com>
11414 * dwarf2/read.c (handle_data_member_location): New overload.
11415 (dwarf2_add_field): Use it.
11416 (decode_locdesc): Add "computed" parameter. Update comment.
11417 * gdbtypes.c (is_dynamic_type_internal): Also look for
11418 FIELD_LOC_KIND_DWARF_BLOCK.
11419 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11420 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11421 virtual base classes.
11422 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11423 FIELD_LOC_KIND_DWARF_BLOCK.
11425 2020-04-24 Tom Tromey <tromey@adacore.com>
11427 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11428 * gdbtypes.c (is_dynamic_type_internal): Check
11429 TYPE_HAS_DYNAMIC_LENGTH.
11430 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11431 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11433 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11436 2020-04-24 Tom Tromey <tromey@adacore.com>
11438 * dwarf2/read.c (struct variant_field): Rewrite.
11439 (struct variant_part_builder): New.
11440 (struct nextfield): Remove "variant" field. Add "offset".
11441 (struct field_info): Add "current_variant_part" and
11443 (alloc_discriminant_info): Remove.
11444 (alloc_rust_variant): New function.
11445 (quirk_rust_enum): Update.
11446 (dwarf2_add_field): Set "offset" member. Don't handle
11447 DW_TAG_variant_part.
11448 (offset_map_type): New typedef.
11449 (convert_variant_range, create_one_variant)
11450 (create_one_variant_part, create_variant_parts)
11451 (add_variant_property): New functions.
11452 (dwarf2_attach_fields_to_type): Call add_variant_property.
11453 (read_structure_type): Don't handle DW_TAG_variant_part.
11454 (handle_variant_part, handle_variant): New functions.
11455 (handle_struct_member_die): Use them.
11456 (process_structure_scope): Don't handle variant parts.
11457 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11458 (struct discriminant_info): Remove.
11459 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11460 (struct main_type) <flag_discriminated_union>: Remove.
11461 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11462 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11463 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11465 * valops.c (value_union_variant): Remove.
11466 * value.h (value_union_variant): Don't declare.
11468 2020-04-24 Tom Tromey <tromey@adacore.com>
11470 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11471 (ada_value_primitive_packed_val): Update.
11472 * ada-valprint.c (ada_value_print_1): Update.
11473 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11474 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11475 just an address. Use evaluate_for_locexpr_baton.
11476 (dwarf2_evaluate_property): Update.
11477 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11479 * findvar.c (default_read_var_value): Update.
11480 * gdbtypes.c (compute_variant_fields_inner)
11481 (resolve_dynamic_type_internal): Update.
11482 (resolve_dynamic_type): Change type of valaddr parameter.
11483 * gdbtypes.h (resolve_dynamic_type): Update.
11484 * valarith.c (value_subscripted_rvalue): Update.
11485 * value.c (value_from_contents_and_address): Update.
11487 2020-04-24 Tom Tromey <tromey@adacore.com>
11489 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11490 "push_initial_value" parameter.
11491 (dwarf2_evaluate_property): Likewise.
11492 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11494 2020-04-24 Tom Tromey <tromey@adacore.com>
11496 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11497 (variant::matches, compute_variant_fields_recurse)
11498 (compute_variant_fields_inner, compute_variant_fields): New
11500 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11501 Use resolved_type after type is made.
11502 (operator==): Add new cases.
11503 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11504 (struct discriminant_range, struct variant, struct variant_part):
11506 (union dynamic_prop_data) <variant_parts, original_type>: New
11508 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11509 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11511 * value.c (unpack_bits_as_long): Now public.
11512 * value.h (unpack_bits_as_long): Declare.
11514 2020-04-24 Tom Tromey <tromey@adacore.com>
11516 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11517 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11519 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11521 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11523 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11525 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11526 (remove_fork_catchpoint, post_startup_inferior)
11527 (post_attach): Move...
11528 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11529 (remove_fork_catchpoint, post_startup_inferior)
11530 (post_attach): ...here.
11531 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11532 (remove_fork_catchpoint, post_startup_inferior)
11533 (post_attach): Move...
11534 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11535 (remove_fork_catchpoint, post_startup_inferior)
11536 (post_attach): ...here.
11538 2020-04-24 Tom Tromey <tromey@adacore.com>
11540 * nat/windows-nat.h (struct windows_thread_info)
11541 <pc_adjusted>: New member.
11542 * windows-nat.c (windows_fetch_one_register): Check
11544 (windows_nat_target::get_windows_debug_event)
11545 (windows_nat_target::wait): Set pc_adjusted.
11547 2020-04-24 Tom de Vries <tdevries@suse.de>
11549 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11550 Run gdb-add-index inside temp dir.
11552 2020-04-23 Tom Tromey <tromey@adacore.com>
11554 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11557 2020-04-23 Luis Machado <luis.machado@linaro.org>
11559 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11560 get_frame_register instead of gdbarch_unwind_pc.
11562 2020-04-23 Tom de Vries <tdevries@suse.de>
11564 * symtab.c (lookup_global_symbol): Prefer def over decl.
11566 2020-04-23 Tom de Vries <tdevries@suse.de>
11569 * block.c (best_symbol, better_symbol): Promote to external.
11570 * block.h (best_symbol, better_symbol): Declare.
11571 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11574 2020-04-23 Tom Tromey <tromey@adacore.com>
11577 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11578 "const char *", not a "const std::string &".
11579 <name_and_matcher::operator==>: Update.
11580 * unittests/lookup_name_info-selftests.c: Change type of
11583 2020-04-23 Tom Tromey <tom@tromey.com>
11585 * inferior.h (iterate_over_inferiors): Don't declare.
11586 * inferior.c (iterate_over_inferiors): Remove.
11587 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11589 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11590 use iterate_over_inferiors.
11591 (darwin_resume_inferior_it)
11592 (struct resume_inferior_threads_param)
11593 (darwin_resume_inferior_threads_it): Remove.
11594 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11596 2020-04-23 Tom de Vries <tdevries@suse.de>
11598 * blockframe.c (find_pc_partial_function): Use
11599 find_pc_sect_compunit_symtab rather than
11600 objfile->sf->qf->find_pc_sect_compunit_symtab.
11602 2020-04-22 Tom de Vries <tdevries@suse.de>
11605 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11608 2020-04-22 Tom de Vries <tdevries@suse.de>
11611 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11614 2020-04-22 Tom de Vries <tdevries@suse.de>
11617 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11618 CU if already created.
11620 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11622 * infrun.c (displaced_step_fixup): Switch to the event_thread
11623 before calling displaced_step_restore, not after.
11625 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11627 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11628 its inferior is not recorded by us.
11629 (record_btrace_target_open): Replace call to
11630 all_non_exited_threads () with call to current_inferior
11631 ()->non_exited_threads ().
11632 (record_btrace_target::stop_recording): Likewise.
11633 (record_btrace_target::close): Likewise.
11634 (record_btrace_target::wait): Likewise.
11635 (record_btrace_target::record_stop_replaying): Likewise.
11637 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11639 * btrace.c (btrace_enable): Throw an error on double enables and
11640 when enabling recording fails.
11641 (btrace_disable): Throw an error if the thread is not recorded.
11643 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11645 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11646 request if we do not have a thread_info.
11648 2020-04-21 Tom de Vries <tdevries@suse.de>
11652 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11653 exception in get_frame_id.
11655 2020-04-20 Tom Tromey <tromey@adacore.com>
11657 * python/python.c (struct gdbpy_event): Mark move constructor as
11659 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11660 constructor as noexcept.
11661 * completer.h (struct completion_result): Mark move constructor as
11663 * completer.c (completion_result::completion_result): Use
11664 initialization style. Don't call reset_match_list.
11666 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11668 * MAINTAINERS (Write After Approval): Add myself.
11670 2020-04-18 Tom Tromey <tom@tromey.com>
11672 * windows-tdep.c (init_w32_command_list)
11673 (w32_prefix_command_valid): Restore.
11674 (_initialize_windows_tdep): Call init_w32_command_list.
11676 2020-04-18 Tom Tromey <tom@tromey.com>
11678 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11679 * value.c (value_fn_field): Update.
11680 * valops.c (find_function_in_inferior)
11681 (value_allocate_space_in_inferior): Update.
11682 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11684 * tui/tui-source.c (tui_source_window::set_contents): Update.
11685 * symtab.c (lookup_global_or_static_symbol)
11686 (find_function_start_sal_1, skip_prologue_sal)
11687 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11688 * symmisc.c (dump_msymbols, dump_symtab_1)
11689 (maintenance_print_one_line_table): Update.
11690 * symfile.c (init_entry_point_info, section_is_mapped)
11691 (list_overlays_command, simple_read_overlay_table)
11692 (simple_overlay_update_1): Update.
11693 * stap-probe.c (handle_stap_probe): Update.
11694 * stabsread.c (dbx_init_float_type, define_symbol)
11695 (read_one_struct_field, read_enum_type, read_range_type): Update.
11696 * source.c (info_line_command): Update.
11697 * python/python.c (gdbpy_source_objfile_script)
11698 (gdbpy_execute_objfile_script): Update.
11699 * python/py-type.c (save_objfile_types): Update.
11700 * python/py-objfile.c (py_free_objfile): Update.
11701 * python/py-inferior.c (python_new_objfile): Update.
11702 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11703 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11704 (maintenance_check_psymtabs): Update.
11705 * printcmd.c (info_address_command): Update.
11706 * objfiles.h (struct objfile) <arch>: New method, from
11708 (get_objfile_arch): Don't declare.
11709 * objfiles.c (get_objfile_arch): Remove.
11710 (filter_overlapping_sections): Update.
11711 * minsyms.c (msymbol_is_function): Update.
11712 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11713 (output_nondebug_symbol): Update.
11714 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11715 (mdebug_expand_psymtab): Update.
11716 * machoread.c (macho_add_oso_symfile): Update.
11717 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11719 * linux-fork.c (checkpoint_command): Update.
11720 * linespec.c (convert_linespec_to_sals): Update.
11721 * jit.c (finalize_symtab): Update.
11722 * infrun.c (insert_exception_resume_from_probe): Update.
11723 * ia64-tdep.c (ia64_find_unwind_table): Update.
11724 * hppa-tdep.c (internalize_unwinds): Update.
11725 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11727 * gcore.c (call_target_sbrk): Update.
11728 * elfread.c (record_minimal_symbol, elf_symtab_read)
11729 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11730 (elf_gnu_ifunc_resolve_by_got): Update.
11731 * dwarf2/read.c (create_addrmap_from_index)
11732 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11733 (read_debug_names_from_section)
11734 (process_psymtab_comp_unit_reader, add_partial_symbol)
11735 (add_partial_subprogram, process_full_comp_unit)
11736 (read_file_scope, read_func_scope, read_lexical_block_scope)
11737 (read_call_site_scope, dwarf2_ranges_read)
11738 (dwarf2_record_block_ranges, dwarf2_add_field)
11739 (mark_common_block_symbol_computed, read_tag_pointer_type)
11740 (read_tag_string_type, dwarf2_init_float_type)
11741 (dwarf2_init_complex_target_type, read_base_type)
11742 (partial_die_info::read, partial_die_info::read)
11743 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11744 (dwarf2_fetch_die_loc_sect_off): Update.
11745 * dwarf2/loc.c (dwarf2_find_location_expression)
11746 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11747 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11748 (dwarf2_loc_desc_get_symbol_read_needs)
11749 (locexpr_describe_location_piece, locexpr_describe_location_1)
11750 (loclist_describe_location): Update.
11751 * dwarf2/index-write.c (write_debug_names): Update.
11752 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11753 * dtrace-probe.c (dtrace_process_dof): Update.
11754 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11755 (process_one_symbol): Update.
11756 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11757 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11758 (coff_read_enum_type): Update.
11759 * cli/cli-cmds.c (edit_command, list_command): Update.
11760 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11761 * breakpoint.c (create_overlay_event_breakpoint)
11762 (create_longjmp_master_breakpoint)
11763 (create_std_terminate_master_breakpoint)
11764 (create_exception_master_breakpoint, get_sal_arch): Update.
11765 * block.c (block_gdbarch): Update.
11766 * annotate.c (annotate_source_line): Update.
11768 2020-04-17 Tom Tromey <tromey@adacore.com>
11770 * auto-load.c (show_auto_load_cmd): Remove.
11771 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11772 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11773 (maintenance_print_arc_command): Remove.
11774 * tui/tui-win.c (tui_command): Remove.
11775 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11776 * tui/tui-layout.c (tui_layout_command): Remove.
11777 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11778 * python/python.c (user_set_python, user_show_python): Remove.
11779 (_initialize_python): Use add_basic_prefix_cmd,
11780 add_show_prefix_cmd.
11781 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11782 (install_gdb_commands): Use add_basic_prefix_cmd,
11783 add_show_prefix_cmd.
11784 (info_guile_command): Remove.
11785 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11786 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11787 add_show_prefix_cmd.
11788 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11789 Remove do_set and do_show parameters.
11790 * cli/cli-style.c (set_style, show_style): Remove.
11791 (_initialize_cli_style): Use add_basic_prefix_cmd,
11792 add_show_prefix_cmd.
11793 (cli_style_option::add_setshow_commands): Remove do_set and
11794 do_show parameters.
11795 (cli_style_option::add_setshow_commands): Use
11796 add_basic_prefix_cmd, add_show_prefix_cmd.
11797 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11798 (set_style_name): Remove.
11799 * cli/cli-dump.c (dump_command, append_command): Remove.
11800 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11801 (tekhex_dump_command, binary_dump_command)
11802 (binary_append_command): Remove.
11803 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11804 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11805 (init_w32_command_list): Remove; move into ...
11806 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11807 * valprint.c (set_print, show_print, set_print_raw)
11808 (show_print_raw): Remove.
11809 (_initialize_valprint): Use add_basic_prefix_cmd,
11810 add_show_prefix_cmd.
11811 * typeprint.c (set_print_type, show_print_type): Remove.
11812 (_initialize_typeprint): Use add_basic_prefix_cmd,
11813 add_show_prefix_cmd.
11814 * record.c (set_record_command, show_record_command): Remove.
11815 (_initialize_record): Use add_basic_prefix_cmd,
11816 add_show_prefix_cmd.
11817 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11818 add_show_prefix_cmd.
11819 (info_command, show_command, set_debug, show_debug): Remove.
11820 * top.h (set_history, show_history): Don't declare.
11821 * top.c (set_history, show_history): Remove.
11822 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11823 (unset_tdesc_cmd): Remove.
11824 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11825 add_show_prefix_cmd.
11826 * symtab.c (info_module_command): Remove.
11827 (_initialize_symtab): Use add_basic_prefix_cmd.
11828 * symfile.c (overlay_command): Remove.
11829 (_initialize_symfile): Use add_basic_prefix_cmd.
11830 * sparc64-tdep.c (info_adi_command): Remove.
11831 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11832 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11833 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11834 add_show_prefix_cmd.
11835 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11836 (_initialize_serial): Use add_basic_prefix_cmd,
11837 add_show_prefix_cmd.
11838 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11839 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11840 add_show_prefix_cmd.
11841 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11842 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11843 add_show_prefix_cmd.
11844 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11845 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11846 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11847 add_show_prefix_cmd.
11848 * remote.c (remote_command, set_remote_cmd): Remove.
11849 (_initialize_remote): Use add_basic_prefix_cmd.
11850 * record-full.c (set_record_full_command)
11851 (show_record_full_command): Remove.
11852 (_initialize_record_full): Use add_basic_prefix_cmd,
11853 add_show_prefix_cmd.
11854 * record-btrace.c (cmd_set_record_btrace)
11855 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11856 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11857 (cmd_show_record_btrace_pt): Remove.
11858 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11859 add_show_prefix_cmd.
11860 * ravenscar-thread.c (set_ravenscar_command)
11861 (show_ravenscar_command): Remove.
11862 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11863 add_show_prefix_cmd.
11864 * mips-tdep.c (show_mips_command, set_mips_command)
11865 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11866 add_show_prefix_cmd.
11867 * maint.c (maintenance_command, maintenance_info_command)
11868 (maintenance_check_command, maintenance_print_command)
11869 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11870 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11871 add_show_prefix_cmd.
11872 (show_per_command_cmd): Remove.
11873 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11875 (maintenance_show_test_settings_cmd): Remove.
11876 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11877 add_show_prefix_cmd.
11878 * maint-test-options.c (maintenance_test_options_command):
11880 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11881 * macrocmd.c (macro_command): Remove
11882 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11883 * language.c (set_check, show_check): Remove.
11884 (_initialize_language): Use add_basic_prefix_cmd,
11885 add_show_prefix_cmd.
11886 * infcmd.c (unset_command): Remove.
11887 (_initialize_infcmd): Use add_basic_prefix_cmd.
11888 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11889 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11890 add_show_prefix_cmd.
11891 * go32-nat.c (go32_info_dos_command): Remove.
11892 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11893 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11894 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11895 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11896 (_initialize_frame): Use add_basic_prefix_cmd,
11897 add_show_prefix_cmd.
11898 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11899 (_initialize_dcache): Use add_basic_prefix_cmd,
11900 add_show_prefix_cmd.
11901 * cp-support.c (maint_cplus_command): Remove.
11902 (_initialize_cp_support): Use add_basic_prefix_cmd.
11903 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11904 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11905 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11906 add_basic_prefix_cmd, add_show_prefix_cmd.
11907 * breakpoint.c (save_command): Remove.
11908 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11909 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11910 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11911 add_show_prefix_cmd.
11912 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11913 (set_ada_command, show_ada_command): Remove.
11914 (_initialize_ada_language): Use add_basic_prefix_cmd,
11915 add_show_prefix_cmd.
11916 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11918 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11920 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11921 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11923 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11925 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11928 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11930 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11931 import table is not at beginning of .idata section.
11933 2020-04-16 Pedro Alves <palves@redhat.com>
11935 * inferior.c (delete_inferior): Use delete operator directly
11936 instead of delete_program_space.
11937 * progspace.c (add_program_space): New, factored out from
11938 program_space::program_space.
11939 (remove_program_space): New, factored out from
11940 delete_program_space.
11941 (program_space::program_space): Remove intro comment. Rewrite.
11942 (program_space::~program_space): Remove intro comment. Call
11943 remove_program_space.
11944 (delete_program_space): Delete.
11945 * progspace.h (program_space::program_space): Make explicit. Move
11946 intro comment here, adjusted.
11947 (program_space::~program_space): Move intro comment here,
11949 (delete_program_space): Remove.
11951 2020-04-16 Tom Tromey <tromey@adacore.com>
11953 * windows-nat.c (windows_nat::handle_access_violation): New
11955 * nat/windows-nat.h (handle_access_violation): Declare.
11956 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11957 windows-nat.c. Call handle_access_violation.
11959 2020-04-16 Tom de Vries <tdevries@suse.de>
11962 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11963 CUs without psymtab.
11965 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11967 * python/python.c (do_start_initialization): Don't call
11968 PyEval_InitThreads for Python 3.9 and beyond.
11970 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11972 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11974 (obsd_nat_target::wait): Likewise.
11976 2020-04-15 Tom Tromey <tromey@adacore.com>
11978 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11979 (DEBUG_EXCEPT): Use debug_printf.
11981 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11983 * completer.c (class completion_tracker::completion_hash_entry)
11984 <hash_name>: New member function.
11985 (completion_tracker::discard_completions): New callback to hash a
11986 completion_hash_entry, pass this to htab_create_alloc.
11988 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11990 * windows-nat.c (windows_make_so): Warn rather than stopping with
11991 an error if realpath() fails.
11993 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11995 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11996 (nbsd_nat_target::info_proc): Add do_status.
11998 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11999 Tom de Vries <tdevries@suse.de>
12002 * psympriv.h (struct partial_symtab::read_symtab)
12003 (struct partial_symtab::expand_psymtab)
12004 (struct partial_symtab::read_dependencies): Update comments.
12005 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12006 read_symtab for includer.
12007 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12008 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12009 (struct dwarf2_include_psymtab::m_readin): Remove.
12010 (struct dwarf2_include_psymtab::includer): New member function.
12011 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12013 2020-04-14 Tom de Vries <tdevries@suse.de>
12016 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12017 with NULL symbol_matcher and lookup_name.
12018 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12020 * dwarf2/read.c (dw2_expand_symtabs_matching)
12021 (dw2_debug_names_expand_symtabs_matching): Same.
12022 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12023 Make lookup_name a pointer. Update comment.
12024 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12025 lookup_name being a pointer.
12026 * symfile.c (expand_symtabs_matching): Same.
12027 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12028 * linespec.c (iterate_over_all_matching_symtabs): Same.
12030 2020-04-13 Tom Tromey <tom@tromey.com>
12032 * run-on-main-thread.c: Update include.
12033 * unittests/main-thread-selftests.c: Update include.
12034 * tui/tui-win.c: Update include.
12035 * tui/tui-io.c: Update include.
12036 * tui/tui-interp.c: Update include.
12037 * tui/tui-hooks.c: Update include.
12038 * top.h: Update include.
12039 * top.c: Update include.
12040 * ser-base.c: Update include.
12041 * remote.c: Update include.
12042 * remote-notif.c: Update include.
12043 * remote-fileio.c: Update include.
12044 * record-full.c: Update include.
12045 * record-btrace.c: Update include.
12046 * python/python.c: Update include.
12047 * posix-hdep.c: Update include.
12048 * mingw-hdep.c: Update include.
12049 * mi/mi-main.c: Update include.
12050 * mi/mi-interp.c: Update include.
12051 * main.c: Update include.
12052 * linux-nat.c: Update include.
12053 * interps.c: Update include.
12054 * infrun.c: Update include.
12055 * inf-loop.c: Update include.
12056 * event-top.c: Update include.
12057 * event-loop.c: Move to ../gdbsupport/.
12058 * event-loop.h: Move to ../gdbsupport/.
12059 * async-event.h: Update include.
12060 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12062 2020-04-13 Tom Tromey <tom@tromey.com>
12064 * tui/tui-win.c: Include async-event.h.
12065 * remote.c: Include async-event.h.
12066 * remote-notif.c: Include async-event.h.
12067 * record-full.c: Include async-event.h.
12068 * record-btrace.c: Include async-event.h.
12069 * infrun.c: Include async-event.h.
12070 * event-top.c: Include async-event.h.
12071 * event-loop.h: Move some declarations to async-event.h.
12072 * event-loop.c: Don't include ser-event.h or top.h. Move some
12073 code to async-event.c.
12074 * async-event.h: New file.
12075 * async-event.c: New file.
12076 * Makefile.in (COMMON_SFILES): Add async-event.c.
12077 (HFILES_NO_SRCDIR): Add async-event.h.
12079 2020-04-13 Tom Tromey <tom@tromey.com>
12081 * utils.c (flush_streams): New function.
12082 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12084 2020-04-13 Tom Tromey <tom@tromey.com>
12086 * event-loop.c (handle_file_event): Use warning, not
12089 2020-04-13 Tom Tromey <tom@tromey.com>
12091 * event-loop.c: Include <chrono>.
12093 2020-04-13 Tom Tromey <tom@tromey.com>
12095 * gdb_select.h: Move to ../gdbsupport/.
12096 * event-loop.c: Update include path.
12097 * top.c: Update include path.
12098 * ser-base.c: Update include path.
12099 * ui-file.c: Update include path.
12100 * ser-tcp.c: Update include path.
12101 * guile/scm-ports.c: Update include path.
12102 * posix-hdep.c: Update include path.
12103 * ser-unix.c: Update include path.
12104 * gdb_usleep.c: Update include path.
12105 * mingw-hdep.c: Update include path.
12106 * inflow.c: Update include path.
12107 * infrun.c: Update include path.
12108 * event-top.c: Update include path.
12110 2020-04-13 Tom Tromey <tom@tromey.com>
12112 * configure: Rebuild.
12113 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12115 2020-04-13 Tom Tromey <tom@tromey.com>
12117 * event-loop.h (start_event_loop): Don't declare.
12118 * event-loop.c (start_event_loop): Move...
12119 * main.c (start_event_loop): ...here. Now static.
12121 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12123 * MAINTAINERS: Update my email address.
12125 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12127 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12130 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12132 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12133 (nbsd_nat_target::info_proc): Add do_cmdline.
12135 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12137 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12138 (nbsd_nat_target::info_proc): Add do_cwd.
12140 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12142 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12144 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12146 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12147 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12148 (nbsd_nat_target::info_proc): New functions.
12149 * nbsd-nat.c (kinfo_get_vmmap): New function.
12150 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12151 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12152 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12153 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12155 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12156 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12157 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12158 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12159 (KINFO_VME_FLAG_GROWS_DOWN): New.
12161 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12163 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12166 2020-04-10 Tom Tromey <tromey@adacore.com>
12168 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12170 2020-04-10 Tom Tromey <tromey@adacore.com>
12172 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12173 separate debug files.
12175 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12177 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12179 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12181 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12182 Check for STATUS_WX86_BREAKPOINT.
12183 (windows_nat_target::wait): Same.
12185 2020-04-10 Tom de Vries <tdevries@suse.de>
12188 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12190 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12192 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12193 (Write After Approval): Remove Tom de Vries.
12195 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12198 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12200 * buildsym.c (record_line): Fix undefined behavior and preserve
12203 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12205 * auxv.h (svr4_auxv_parse): New.
12206 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12207 and generic_auxv_parse.
12208 (svr4_auxv_parse): Add.
12209 * obsd-tdep.c: Include "auxv.h".
12210 (obsd_auxv_parse): Remove.
12211 (obsd_init_abi): Remove comment.
12212 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12213 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12214 * nbsd-tdep.c: Include "auxv.h".
12215 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12217 2020-04-08 Tom Tromey <tromey@adacore.com>
12219 * nat/windows-nat.h (last_wait_event): Don't declare.
12220 (wait_for_debug_event): Update comment.
12221 * nat/windows-nat.c (last_wait_event): Now static.
12223 2020-04-08 Tom Tromey <tromey@adacore.com>
12225 * windows-nat.c (wait_for_debug_event): Move to
12227 * nat/windows-nat.h (wait_for_debug_event): Declare.
12228 * nat/windows-nat.c (wait_for_debug_event): Move from
12229 windows-nat.c. No longer static.
12231 2020-04-08 Tom Tromey <tromey@adacore.com>
12233 * windows-nat.c (get_windows_debug_event): Use
12234 fetch_pending_stop.
12235 * nat/windows-nat.h (fetch_pending_stop): Declare.
12236 * nat/windows-nat.c (fetch_pending_stop): New function.
12238 2020-04-08 Tom Tromey <tromey@adacore.com>
12240 * windows-nat.c (windows_continue): Use matching_pending_stop and
12241 continue_last_debug_event.
12242 * nat/windows-nat.h (matching_pending_stop)
12243 (continue_last_debug_event): Declare.
12244 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12245 (matching_pending_stop, continue_last_debug_event): New
12248 2020-04-08 Tom Tromey <tromey@adacore.com>
12250 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12251 (handle_exception_result): Move to nat/windows-nat.h.
12252 (DEBUG_EXCEPTION_SIMPLE): Remove.
12253 (windows_nat::handle_ms_vc_exception): New function.
12254 (handle_exception): Move to nat/windows-nat.c.
12255 (get_windows_debug_event): Update.
12256 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12258 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12259 (handle_exception_result): Move from windows-nat.c.
12260 (handle_exception): Declare.
12261 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12262 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12265 2020-04-08 Tom Tromey <tromey@adacore.com>
12267 * windows-nat.c (exception_count, event_count): Remove.
12268 (handle_exception, get_windows_debug_event)
12269 (do_initial_windows_stuff): Update.
12271 2020-04-08 Tom Tromey <tromey@adacore.com>
12273 * windows-nat.c (windows_nat::handle_load_dll)
12274 (windows_nat::handle_unload_dll): Rename. No longer static.
12275 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12278 2020-04-08 Tom Tromey <tromey@adacore.com>
12280 * complaints.h (stop_whining): Declare at top-level.
12281 (complaint): Don't declare stop_whining.
12283 2020-04-08 Tom Tromey <tromey@adacore.com>
12285 * windows-nat.c (windows_nat::handle_output_debug_string):
12286 Rename. No longer static.
12287 * nat/windows-nat.h (handle_output_debug_string): Declare.
12289 2020-04-08 Tom Tromey <tromey@adacore.com>
12291 * windows-nat.c (current_process_handle, current_process_id)
12292 (main_thread_id, last_sig, current_event, last_wait_event)
12293 (current_windows_thread, desired_stop_thread_id, pending_stops)
12294 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12295 (display_selectors, fake_create_process)
12296 (get_windows_debug_event): Update.
12297 * nat/windows-nat.h (current_process_handle, current_process_id)
12298 (main_thread_id, last_sig, current_event, last_wait_event)
12299 (current_windows_thread, desired_stop_thread_id, pending_stops)
12300 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12301 * nat/windows-nat.c (current_process_handle, current_process_id)
12302 (main_thread_id, last_sig, current_event, last_wait_event)
12303 (current_windows_thread, desired_stop_thread_id, pending_stops)
12304 (siginfo_er): New globals. Move from windows-nat.c.
12306 2020-04-08 Tom Tromey <tromey@adacore.com>
12308 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12309 (handle_load_dll): Update.
12310 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12312 2020-04-08 Tom Tromey <tromey@adacore.com>
12314 * windows-nat.c (enum thread_disposition_type): Move to
12316 (windows_nat::thread_rec): Rename from thread_rec. No longer
12318 (windows_add_thread, windows_nat_target::fetch_registers)
12319 (windows_nat_target::store_registers, handle_exception)
12320 (windows_nat_target::resume, get_windows_debug_event)
12321 (windows_nat_target::get_tib_address)
12322 (windows_nat_target::thread_name)
12323 (windows_nat_target::thread_alive): Update.
12324 * nat/windows-nat.h (enum thread_disposition_type): Move from
12326 (thread_rec): Declare.
12328 2020-04-08 Tom Tromey <tromey@adacore.com>
12330 * windows-nat.c: Add "using namespace".
12331 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12332 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12334 2020-04-08 Tom Tromey <tromey@adacore.com>
12336 * nat/windows-nat.h (struct windows_thread_info): Declare
12338 * nat/windows-nat.c (~windows_thread_info): New.
12340 2020-04-08 Tom Tromey <tromey@adacore.com>
12343 * windows-nat.c (current_event): Update comment.
12344 (last_wait_event, desired_stop_thread_id): New globals.
12345 (struct pending_stop): New.
12346 (pending_stops): New global.
12347 (windows_nat_target) <stopped_by_sw_breakpoint>
12348 <supports_stopped_by_sw_breakpoint>: New methods.
12349 (windows_fetch_one_register): Add assertions. Adjust PC.
12350 (windows_continue): Handle pending stops. Suspend other threads
12351 when stepping. Use last_wait_event
12352 (wait_for_debug_event): New function.
12353 (get_windows_debug_event): Use wait_for_debug_event. Handle
12354 pending stops. Queue spurious stops.
12355 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12356 (windows_nat_target::kill): Use wait_for_debug_event.
12357 * nat/windows-nat.h (struct windows_thread_info)
12358 <stopped_at_software_breakpoint>: New field.
12359 * nat/windows-nat.c (windows_thread_info::resume): Clear
12360 stopped_at_software_breakpoint.
12362 2020-04-08 Tom Tromey <tromey@adacore.com>
12364 * windows-nat.c (enum thread_disposition_type): New.
12365 (thread_rec): Replace "get_context" parameter with "disposition";
12367 (windows_add_thread, windows_nat_target::fetch_registers)
12368 (windows_nat_target::store_registers, handle_exception)
12369 (windows_nat_target::resume, get_windows_debug_event)
12370 (windows_nat_target::get_tib_address)
12371 (windows_nat_target::thread_name)
12372 (windows_nat_target::thread_alive): Update.
12374 2020-04-08 Tom Tromey <tromey@adacore.com>
12376 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12377 (windows_continue): Use windows_continue::resume.
12378 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12379 resume>: Declare new methods.
12380 * nat/windows-nat.c: New file.
12381 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12383 2020-04-08 Tom Tromey <tromey@adacore.com>
12385 * windows-nat.c (windows_add_thread, windows_delete_thread)
12386 (windows_nat_target::fetch_registers)
12387 (windows_nat_target::store_registers, fake_create_process)
12388 (windows_nat_target::resume, windows_nat_target::resume)
12389 (get_windows_debug_event, windows_nat_target::wait)
12390 (windows_nat_target::pid_to_str)
12391 (windows_nat_target::get_tib_address)
12392 (windows_nat_target::get_ada_task_ptid)
12393 (windows_nat_target::thread_name)
12394 (windows_nat_target::thread_alive): Use lwp, not tid.
12396 2020-04-08 Tom Tromey <tromey@adacore.com>
12398 * windows-nat.c (handle_exception)
12399 (windows_nat_target::thread_name): Update.
12400 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12401 <name>: Now unique_xmalloc_ptr.
12403 2020-04-08 Tom Tromey <tromey@adacore.com>
12405 * windows-nat.c (thread_rec)
12406 (windows_nat_target::fetch_registers): Update.
12407 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12409 <debug_registers_changed, reload_context>: Now bool.
12411 2020-04-08 Tom Tromey <tromey@adacore.com>
12413 * windows-nat.c (windows_add_thread): Use new.
12414 (windows_init_thread_list, windows_delete_thread): Use delete.
12415 (get_windows_debug_event): Update.
12416 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12417 destructor, and initializers.
12419 2020-04-08 Tom Tromey <tromey@adacore.com>
12421 * windows-nat.c (struct windows_thread_info): Remove.
12422 * nat/windows-nat.h: New file.
12424 2020-04-08 Tom Tromey <tromey@adacore.com>
12426 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12427 (thread_rec, windows_add_thread, windows_delete_thread)
12428 (windows_continue): Update.
12430 2020-04-08 Tom Tromey <tromey@adacore.com>
12432 * windows-nat.c (struct windows_thread_info): Remove typedef.
12433 (thread_head): Remove.
12434 (thread_list): New global.
12435 (thread_rec, windows_add_thread, windows_init_thread_list)
12436 (windows_delete_thread, windows_continue): Update.
12438 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12440 * windows-tdep.h (windows_init_abi): Add comment.
12441 (cygwin_init_abi): New declaration.
12442 * windows-tdep.c: Split signal enumeration in two, one for
12443 Windows and one for Cygwin.
12444 (windows_gdb_signal_to_target): Only deal with signal of the
12446 (cygwin_gdb_signal_to_target): New function.
12447 (windows_init_abi): Rename to windows_init_abi_common, don't set
12448 gdb_signal_to_target gdbarch method. Add new new function with
12450 (cygwin_init_abi): New function.
12451 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12452 comment. Don't call windows_init_abi.
12453 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12454 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12455 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12456 i386_windows_init_abi_common, don't call windows_init_abi. Add
12457 a new function of this name.
12458 (i386_cygwin_init_abi): New function.
12459 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12462 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12464 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12466 (dwarf2_read_gdb_index): Update.
12468 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12470 * nbsd-tdep.c: Include "objfiles.h".
12471 (nbsd_skip_solib_resolver): New.
12472 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12474 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12476 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12477 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12478 with DW_LLE_base_addressx are being emitted in DWARFv5.
12479 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12480 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12483 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12485 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12486 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12487 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12488 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12489 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12490 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12491 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12494 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12496 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12497 (read_loclist_index): New function definition.
12498 (lookup_loclist_base): New function definition.
12499 (read_loclist_header): New function definition.
12500 (dwarf2_cu): Add loclist_base and loclist_header field.
12501 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12502 (read_full_die_1): Read the value of DW_AT_loclists_base.
12503 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12504 (read_attribute_value): Handle DW_FORM_loclistx.
12505 (skip_one_die): Handle DW_FORM_loclistx.
12506 (loclist_header): New structure declaration.
12507 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12509 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12511 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12512 constructor. Remove `addr` parameter from other constructor and
12513 add `per_cu` parameter.
12514 * dwarf2/read.c (create_partial_symtab): Update.
12516 2020-04-07 Tom de Vries <tdevries@suse.de>
12519 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12520 (partial_die_info::fixup): Inherit has_const_value.
12522 2020-04-07 Tom de Vries <tdevries@suse.de>
12524 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12525 symbols without address.
12527 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12529 * nbsd-nat.h (struct thread_info): Add forward declaration.
12530 (nbsd_nat_target::thread_alive): Add.
12531 (nbsd_nat_target::thread_name): Likewise.
12532 (nbsd_nat_target::update_thread_list): Likewise.
12533 (update_thread_list::post_attach): Likewise.
12534 (post_attach::pid_to_str): Likewise.
12535 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12536 (nbsd_thread_lister): Add.
12537 (nbsd_nat_target::thread_alive): Likewise.
12538 (nbsd_nat_target::thread_name): Likewise.
12539 (nbsd_add_threads): Likewise.
12540 (update_thread_list::post_attach): Likewise.
12541 (nbsd_nat_target::update_thread_list): Likewise.
12542 (post_attach::pid_to_str): Likewise.
12544 2020-04-06 Tom Tromey <tromey@adacore.com>
12546 * ada-valprint.c (print_variant_part): Extract the variant field.
12547 (print_field_values): Use the field as the outer value when
12550 2020-04-06 Tom Tromey <tromey@adacore.com>
12552 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12553 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12554 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12555 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12556 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12558 2020-04-06 Tom Tromey <tromey@adacore.com>
12560 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12563 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12565 * nbsd-tdep.c: Include "gdbarch.h".
12566 Define enum with NetBSD signal numbers.
12567 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12568 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12569 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12570 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12571 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12572 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12573 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12574 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12575 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12576 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12577 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12578 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12580 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12583 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12585 2020-04-03 Tom Tromey <tromey@adacore.com>
12587 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12588 Read constant block.
12590 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12592 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12593 (gdb_bfd_get_full_section_contents): New declaration.
12594 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12595 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12596 gdb_bfd_get_full_section_contents.
12598 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12600 * exec.c (build_section_table): Replace internal_error with
12602 (section_table_xfer_memory_partial): Likewise.
12603 * mdebugread.c (parse_partial_symbols): Likewise.
12604 * psymtab.c (lookup_partial_symbol): Likewise.
12605 * utils.c (wrap_here): Likewise.
12607 2020-04-02 Tom Tromey <tromey@adacore.com>
12609 * f-lang.c (build_fortran_types): Use arch_type to initialize
12610 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12612 2020-04-02 Tom Tromey <tromey@adacore.com>
12614 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12617 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12618 Bernd Edlinger <bernd.edlinger@hotmail.de>
12619 Tom Tromey <tromey@adacore.com>
12621 * buildsym.c (buildsym_compunit::record_line): Remove
12622 deduplication code.
12624 2020-04-02 Tom de Vries <tdevries@suse.de>
12627 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12629 2020-04-02 Tom de Vries <tdevries@suse.de>
12631 * dwarf2/read.c (dwarf2_gdb_index_functions,
12632 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12634 * psymtab.c (psym_lookup_global_symbol_language): New function.
12635 (psym_functions): Init psym_lookup_global_symbol_language with
12636 psym_lookup_global_symbol_language.
12637 * symfile-debug.c (debug_sym_quick_functions): Init
12638 lookup_global_symbol_language with NULL.
12639 * symfile.c (set_initial_language): Remove fixme comment.
12640 * symfile.h (struct quick_symbol_functions): Add
12641 lookup_global_symbol_language.
12642 * symtab.c (find_quick_global_symbol_language): New function.
12643 (find_main_name): Use find_quick_global_symbol_language.
12645 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12647 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12649 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12651 * buildsym.c (record_line): Fix undefined behavior and preserve
12654 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12656 * buildsym.c (record_line): Fix the resizing condition.
12658 2020-04-01 Tom Tromey <tom@tromey.com>
12660 * value.h (value_literal_complex): Add comment.
12661 * valops.c (value_literal_complex): Refer to value.h.
12663 2020-04-01 Tom Tromey <tom@tromey.com>
12665 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12666 (scalar_type): New rule, from typebase.
12667 (typebase): Use scalar_type. Recognize complex types.
12668 (field_name): Handle FLOAT_KEYWORD.
12669 (ident_tokens): Add _Complex and __complex__.
12671 2020-04-01 Tom Tromey <tom@tromey.com>
12674 * valarith.c (promotion_type, complex_binop): New functions.
12675 (scalar_binop): Handle complex numbers. Use promotion_type.
12676 (value_pos, value_neg, value_complement): Handle complex numbers.
12678 2020-04-01 Tom Tromey <tom@tromey.com>
12680 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12681 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12682 (parse_number): Handle complex numbers.
12684 2020-04-01 Tom Tromey <tom@tromey.com>
12686 * c-valprint.c (c_decorations): Change complex suffix to "i".
12688 2020-04-01 Tom Tromey <tom@tromey.com>
12690 * valprint.c (generic_value_print_complex): Use accessors.
12691 * value.h (value_real_part, value_imaginary_part): Declare.
12692 * valops.c (value_real_part, value_imaginary_part): New
12694 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12696 2020-04-01 Tom Tromey <tom@tromey.com>
12698 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12699 (read_range_type): Update.
12700 * mdebugread.c (basic_type): Update.
12701 * go-lang.c (build_go_types): Use init_complex_type.
12702 * gdbtypes.h (struct main_type) <complex_type>: New member.
12703 (init_complex_type): Update.
12704 (arch_complex_type): Don't declare.
12705 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12706 Make name if none given. Use alloc_type_copy. Look for cached
12708 (arch_complex_type): Remove.
12709 (gdbtypes_post_init): Use init_complex_type.
12710 * f-lang.c (build_fortran_types): Use init_complex_type.
12711 * dwarf2/read.c (read_base_type): Update.
12712 * d-lang.c (build_d_types): Use init_complex_type.
12713 * ctfread.c (read_base_type): Update.
12715 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12717 * infrun.c (stop_all_threads): Update assertion, plus when
12718 stopping threads, take into account that we might be trying
12719 to stop an all-stop target.
12720 (stop_waiting): Call 'stop_all_threads' if there exists a
12723 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12725 * target.h (exists_non_stop_target): New function declaration.
12726 * target.c (exists_non_stop_target): New function.
12728 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12731 * eval.c (is_integral_or_integral_reference): New function.
12732 (evaluate_subexp_standard): Allow integer references in
12733 pointer arithmetic.
12735 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12737 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12738 check for no ptid in the stop reply when the target is non-stop.
12740 2020-04-01 Tom Tromey <tromey@adacore.com>
12742 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12743 "name" parameter to rvalue reference. Initialize m_name_holder.
12744 <lookup_name_info>: New overloads.
12745 <name>: Return gdb::string_view.
12746 <c_str>: New method.
12747 <make_ignore_params>: Update.
12748 <search_name_hash>: Update.
12749 <language_lookup_name>: Return const char *.
12750 <m_name>: Change type.
12751 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12752 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12753 (lookup_name_info::match_any): Update.
12754 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12756 * minsyms.c (linkage_name_str): Update.
12757 * language.c (default_symbol_name_matcher): Update.
12758 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12760 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12761 (ada_lookup_name_info::ada_lookup_name_info): Update.
12762 (literal_symbol_name_matcher): Update.
12764 2020-04-01 Tom Tromey <tromey@adacore.com>
12766 * psymtab.c (psymtab_search_name): Remove function.
12767 (psym_lookup_symbol): Create search name and lookup name here.
12768 (lookup_partial_symbol): Remove "name" parameter; add
12770 (psym_expand_symtabs_for_function): Update.
12772 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12775 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12777 2020-03-31 Tom Tromey <tromey@adacore.com>
12779 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12782 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12784 * features/riscv/32bit-csr.xml: Regenerated.
12785 * features/riscv/64bit-csr.xml: Regenerated.
12787 2020-03-30 Tom Tromey <tromey@adacore.com>
12789 * ada-valprint.c (print_variant_part): Update.
12790 * ada-lang.h (ada_which_variant_applies): Update.
12791 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12792 outer_valaddr parameters; replace with "outer" value parameter.
12793 (to_fixed_variant_branch_type): Update.
12795 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12797 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12798 <list>. Remove inclusion of observable.h.
12799 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12800 (struct arch_lwp_info): New struct.
12801 (class ppc_linux_dreg_interface): New class.
12802 (struct ppc_linux_process_info): New struct.
12803 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12804 <low_new_clone, low_forget_process, low_prepare_to_resume>
12805 <copy_thread_dreg_state, mark_thread_stale>
12806 <mark_debug_registers_changed, register_hw_breakpoint>
12807 <clear_hw_breakpoint, register_wp, clear_wp>
12808 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12809 <num_memory_accesses, get_trigger_type>
12810 <create_watchpoint_request, hwdebug_point_cmp>
12811 <init_arch_lwp_info, get_arch_lwp_info>
12812 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12814 <struct ptid_hash>: New inner struct.
12815 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12817 (saved_dabr_value, hwdebug_info, max_slots_number)
12818 (struct hw_break_tuple, struct thread_points, ppc_threads)
12819 (have_ptrace_hwdebug_interface)
12820 (hwdebug_find_thread_points_by_tid)
12821 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12822 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12823 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12824 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12825 use m_dreg_interface.
12826 (hwdebug_point_cmp): Change to...
12827 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12828 reference arguments instead of pointers.
12829 (ppc_linux_nat_target::ranged_break_num_registers): Use
12831 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12832 m_dreg_interface. Call register_hw_breakpoint.
12833 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12834 m_dreg_interface. Call clear_hw_breakpoint.
12835 (get_trigger_type): Change to...
12836 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12838 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12839 use m_dreg_interface. Call register_hw_breakpoint.
12840 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12841 use m_dreg_interface. Call clear_hw_breakpoint.
12842 (can_use_watchpoint_cond_accel): Change to...
12843 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12844 method. Update comment, use m_dreg_interface and
12846 (calculate_dvc): Change to...
12847 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12849 (num_memory_accesses): Change to...
12850 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12851 (check_condition): Change to...
12852 (ppc_linux_nat_target::check_condition): ...this method.
12853 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12854 comment, use m_dreg_interface.
12855 (create_watchpoint_request): Change to...
12856 (ppc_linux_nat_target::create_watchpoint_request): ...this
12857 method. Use m_dreg_interface.
12858 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12859 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12860 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12861 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12862 (ppc_linux_nat_target::low_forget_process)
12863 (ppc_linux_nat_target::low_new_fork)
12864 (ppc_linux_nat_target::low_new_clone)
12865 (ppc_linux_nat_target::low_delete_thread)
12866 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12867 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12868 only call mark_thread_stale.
12869 (ppc_linux_thread_exit): Remove.
12870 (ppc_linux_nat_target::stopped_data_address): Change to...
12871 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12872 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12873 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12874 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12875 comment. Call low_stopped_data_address.
12876 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12878 (ppc_linux_nat_target::masked_watch_num_registers): Use
12880 (ppc_linux_nat_target::copy_thread_dreg_state)
12881 (ppc_linux_nat_target::mark_thread_stale)
12882 (ppc_linux_nat_target::mark_debug_registers_changed)
12883 (ppc_linux_nat_target::register_hw_breakpoint)
12884 (ppc_linux_nat_target::clear_hw_breakpoint)
12885 (ppc_linux_nat_target::register_wp)
12886 (ppc_linux_nat_target::clear_wp)
12887 (ppc_linux_nat_target::init_arch_lwp_info)
12888 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12889 (_initialize_ppc_linux_nat): Remove observer callback.
12891 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12893 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12894 (ppc_linux_nat_target::auxv_parse)
12895 (ppc_linux_nat_target::read_description)
12896 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12899 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12901 * linux-nat.h (low_new_clone): New method.
12902 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12904 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12906 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12907 (dbx_expand_psymtab): ... this.
12908 (start_psymtab): Update.
12909 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12910 (mdebug_expand_psymtab): ... this.
12911 (parse_partial_symbols): Update.
12912 (new_psymtab): Update.
12913 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12914 (xcoff_expand_psymtab): ... this.
12915 (xcoff_start_psymtab): Update.
12917 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12919 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12920 <expand_dependencies>: ... this.
12921 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12922 (partial_symtab::expand_dependencies): ... this.
12923 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12925 (dwarf2_psymtab::expand_psymtab): Update.
12926 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12927 * mdebugread.c (psymtab_to_symtab_1): Update.
12928 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12930 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12932 * psympriv.h (discard_psymtab): Remove.
12933 * dbxread.c (dbx_end_psymtab): Update.
12934 * xcoffread.c (xcoff_end_psymtab): Update.
12936 2020-03-28 Tom Tromey <tom@tromey.com>
12938 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12941 2020-03-28 Tom Tromey <tom@tromey.com>
12943 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12945 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12947 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12949 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12951 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12953 2020-03-26 Tom Tromey <tom@tromey.com>
12955 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12956 (mark_common_block_symbol_computed, read_tag_string_type)
12957 (attr_to_dynamic_prop, read_subrange_type): Update.
12958 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12959 to be methods on struct attribute.
12960 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12961 (read_call_site_scope, partial_die_info::read)
12962 (partial_die_info::read, lookup_die_type, follow_die_ref):
12964 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12965 from dwarf2_get_ref_die_offset.
12966 (attribute::constant_value): New method, from
12967 dwarf2_get_attr_constant_value.
12968 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12970 <constant_value>: New method.
12972 2020-03-26 Tom Tromey <tom@tromey.com>
12974 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12975 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12976 (dwarf_type_encoding_name): Move to stringify.c.
12977 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12978 * dwarf2/stringify.c: New file.
12979 * dwarf2/stringify.h: New file.
12981 2020-03-26 Tom Tromey <tom@tromey.com>
12983 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12986 2020-03-26 Tom Tromey <tom@tromey.com>
12988 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12990 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12991 (lookup_ranges_base): Likewise.
12992 (read_cutu_die_from_dwo, read_full_die_1): Update.
12994 2020-03-26 Tom Tromey <tom@tromey.com>
12996 * dwarf2/read.c (read_import_statement, read_file_scope)
12997 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12998 (read_lexical_block_scope, read_call_site_scope)
12999 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13000 (handle_struct_member_die, process_structure_scope)
13001 (update_enumeration_type_from_children)
13002 (process_enumeration_scope, read_array_type, read_common_block)
13003 (read_namespace, read_module, read_subroutine_type): Update.
13004 (sibling_die): Remove.
13006 2020-03-26 Tom Tromey <tom@tromey.com>
13008 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13009 (build_type_psymtabs_reader, read_structure_type)
13010 (read_enumeration_type, read_full_die_1): Update.
13011 (dwarf2_attr_no_follow): Move to die.h.
13012 * dwarf2/die.h (struct die_info) <attr>: New method.
13014 2020-03-26 Tom Tromey <tom@tromey.com>
13016 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13017 <base_address>: Now an optional.
13018 (dwarf2_find_base_address, dwarf2_rnglists_process)
13019 (dwarf2_ranges_process, fill_in_loclist_baton)
13020 (dwarf2_symbol_mark_computed): Update.
13022 2020-03-26 Tom Tromey <tom@tromey.com>
13024 * dwarf2/read.c (struct die_info): Move to die.h.
13025 * dwarf2/die.h: New file.
13027 2020-03-26 Tom Tromey <tom@tromey.com>
13029 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13031 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13032 Move to line-header.c.
13033 (read_checked_initial_length_and_offset, read_formatted_entries):
13035 (dwarf_decode_line_header): Split into two.
13036 * dwarf2/line-header.c
13037 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13039 (read_checked_initial_length_and_offset, read_formatted_entries):
13041 (dwarf_decode_line_header): New function, split from read.c.
13043 2020-03-26 Tom Tromey <tom@tromey.com>
13045 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13047 * dwarf2/read.c (read_attribute_value): Update.
13048 (dwarf2_per_objfile::read_line_string): Rename from
13049 read_indirect_line_string.
13050 (read_formatted_entries): Update.
13052 2020-03-26 Tom Tromey <tom@tromey.com>
13054 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13057 2020-03-26 Tom Tromey <tom@tromey.com>
13059 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13061 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13062 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13065 2020-03-26 Tom Tromey <tom@tromey.com>
13067 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13068 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13069 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13070 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13072 2020-03-26 Tom Tromey <tom@tromey.com>
13074 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13075 file_names_size, file_full_name, file_file_name>: Use const.
13076 <file_name_at, file_names>: Add const overload.
13077 * dwarf2/line-header.c (line_header::file_file_name)
13078 (line_header::file_full_name): Update.
13080 2020-03-26 Tom Tromey <tom@tromey.com>
13082 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13083 (macro_start_file, consume_improper_spaces)
13084 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13085 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13086 (dwarf_decode_macros): Move to macro.c.
13087 * dwarf2/macro.c: New file.
13088 * dwarf2/macro.h: New file.
13089 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13091 2020-03-26 Tom Tromey <tom@tromey.com>
13093 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13095 * dwarf2/section.c: New method. From
13096 read_indirect_string_at_offset_from.
13097 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13098 (read_indirect_string_at_offset_from): Move to section.c.
13099 (read_indirect_string_at_offset): Rewrite.
13100 (read_indirect_line_string_at_offset): Remove.
13101 (read_indirect_string, read_indirect_line_string)
13102 (dwarf_decode_macro_bytes): Update.
13104 2020-03-26 Tom Tromey <tom@tromey.com>
13106 * dwarf2/section.h (struct dwarf2_section_info)
13107 <overload_complaint>: Declare.
13108 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13109 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13110 Rename from dwarf2_section_buffer_overflow_complaint.
13111 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13112 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13114 2020-03-26 Tom Tromey <tom@tromey.com>
13116 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13118 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13120 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13123 2020-03-26 Tom Tromey <tom@tromey.com>
13125 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13127 2020-03-26 Tom Tromey <tom@tromey.com>
13129 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13131 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13133 (dwarf_decode_macros): Update.
13135 2020-03-26 Tom Tromey <tom@tromey.com>
13137 * dwarf2/read.c (read_attribute_value): Update.
13138 (read_indirect_string_from_dwz): Move to dwz.c; change into
13140 (dwarf_decode_macro_bytes): Update.
13141 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13142 * dwarf2/dwz.c: New file.
13143 * Makefile.in (COMMON_SFILES): Add dwz.c.
13145 2020-03-26 Tom Tromey <tom@tromey.com>
13147 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13148 * dwarf2/read.c: Add include.
13149 * dwarf2/index-write.c: Add include.
13150 * dwarf2/index-cache.c: Add include.
13151 * dwarf2/dwz.h: New file.
13153 2020-03-25 Tom Tromey <tom@tromey.com>
13155 * compile/compile-object-load.c (get_out_value_type): Mention
13156 correct symbol name in error message.
13158 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13160 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13162 2020-03-25 Tom de Vries <tdevries@suse.de>
13164 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13165 * symmisc.c (dump_symtab_1): Print user and includes fields.
13166 (maintenance_info_symtabs): Same.
13168 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13171 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13172 (riscv_regcache_cooked_write): New function.
13173 (riscv_push_dummy_call): Use new function.
13174 (riscv_return_value): Likewise.
13176 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13178 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13179 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13180 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13181 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13182 * infrun.c (follow_fork): Likewise.
13183 (follow_fork_inferior): Likewise.
13184 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13185 * linux-nat.h (class linux_nat_target): Likewise.
13186 * remote.c (class remote_target) <follow_fork>: Likewise.
13187 (remote_target::follow_fork): Likewise.
13188 * target-delegates.c: Re-generate.
13189 * target.c (default_follow_fork): Likewise.
13190 (target_follow_fork): Likewise.
13191 * target.h (struct target_ops) <follow_fork>: Likewise.
13192 (target_follow_fork): Likewise.
13194 2020-03-24 Tom de Vries <tdevries@suse.de>
13196 * psymtab.c (maintenance_info_psymtabs): Print user field.
13198 2020-03-20 Tom Tromey <tromey@adacore.com>
13200 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13202 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13205 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13207 * ptrace.m4: Don't check for ptrace declaration.
13208 * config.in: Re-generate.
13209 * configure: Re-generate.
13210 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13213 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13215 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13217 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13218 * sparc-nat.c (gdb_ptrace): Likewise.
13219 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13221 2020-03-20 Tom Tromey <tromey@adacore.com>
13223 * c-exp.y (lex_one_token): Fix assert.
13225 2020-03-20 Tom Tromey <tromey@adacore.com>
13227 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13228 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13231 2020-03-20 Tom Tromey <tromey@adacore.com>
13233 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13235 2020-03-20 Tom Tromey <tromey@adacore.com>
13237 * ada-valprint.c (print_variant_part): Remove parameters; switch
13238 to value-based API.
13239 (print_field_values): Likewise.
13240 (ada_val_print_struct_union): Likewise.
13241 (ada_value_print_1): Update.
13243 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13245 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13246 nbsd_nat_target instead of inf_ptrace_target.
13247 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13250 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13252 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13253 it to the ptrace call.
13254 * (store_registers): Likewise.
13256 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13258 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13259 it to the ptrace call.
13260 * (store_registers): Likewise.
13262 2020-03-19 Luis Machado <luis.machado@linaro.org>
13264 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13265 valid, fetch vg value from ptrace.
13267 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13268 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13269 * inf-ptrace.c: Likewise.
13270 * (gdb_ptrace): Add.
13271 * (inf_ptrace_target::resume): Update.
13272 * (inf_ptrace_target::xfer_partial): Likewise.
13273 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13274 * (inf_ptrace_peek_poke): Update.
13276 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13278 * x86-bsd-nat.c (gdb_ptrace): New.
13279 * (x86bsd_dr_set): Add new argument `ptid'.
13280 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13281 x86bsd_dr_set_addr): Update.
13283 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13285 * remote.c (remote_target::process_stop_reply): Handle events for
13286 all threads differently.
13288 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13290 * completer.c (completion_tracker::remove_completion): Define new
13292 * completer.h (completion_tracker::remove_completion): Declare new
13294 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13295 when adding a C++ function symbol.
13297 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13299 * completer.c (completion_tracker::completion_hash_entry): Define
13301 (advance_to_filename_complete_word_point): Call
13302 recompute_lowest_common_denominator.
13303 (completion_tracker::completion_tracker): Call discard_completions
13304 to setup the hash table.
13305 (completion_tracker::discard_completions): Allow for being called
13306 from the constructor, pass new equal function, and element deleter
13307 when constructing the hash table. Initialise new class member
13309 (completion_tracker::maybe_add_completion): Remove use of
13310 m_entries_vec, and store more information into m_entries_hash.
13311 (completion_tracker::recompute_lcd_visitor): New function, most
13312 content taken from...
13313 (completion_tracker::recompute_lowest_common_denominator):
13314 ...here, this now just visits each item in the hash calling the
13316 (completion_tracker::build_completion_result): Remove use of
13317 m_entries_vec, call recompute_lowest_common_denominator.
13318 * completer.h (completion_tracker::have_completions): Remove use
13320 (completion_tracker::completion_hash_entry): Declare new class.
13321 (completion_tracker::recompute_lowest_common_denominator): Change
13322 function signature.
13323 (completion_tracker::recompute_lcd_visitor): Declare new function.
13324 (completion_tracker::m_entries_vec): Delete.
13325 (completion_tracker::m_entries_hash): Initialize to NULL.
13326 (completion_tracker::m_lowest_common_denominator_valid): New
13328 (completion_tracker::m_lowest_common_denominator_max_length): New
13331 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13333 * regformats/regdef.h: Put reg in gdb namespace.
13335 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13337 * i386-bsd-nat.c (gdb_ptrace): New.
13338 * (i386bsd_fetch_inferior_registers,
13339 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13340 * (i386bsd_fetch_inferior_registers,
13341 i386bsd_store_inferior_registers) Use gdb_ptrace.
13343 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13345 * amd64-bsd-nat.c (gdb_ptrace): New.
13346 * (amd64bsd_fetch_inferior_registers,
13347 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13348 * (amd64bsd_fetch_inferior_registers,
13349 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13351 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13353 * user-regs.c (user_reg::read): Rename to...
13354 (user_reg::xread): ...this.
13355 * (append_user_reg): Rename argument `read' to `xread'.
13356 * (user_reg_add_builtin): Likewise.
13357 * (user_reg_add): Likewise.
13358 * (value_of_user_reg): Likewise.
13360 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13362 * sparc-nat.c (gdb_ptrace): New.
13363 * sparc-nat.c (sparc_fetch_inferior_registers)
13364 (sparc_store_inferior_registers) Remove obsolete comment.
13365 * sparc-nat.c (sparc_fetch_inferior_registers)
13366 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13367 * sparc-nat.c (sparc_fetch_inferior_registers)
13368 (sparc_store_inferior_registers) Use gdb_ptrace.
13370 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13372 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13373 it to the ptrace call.
13374 * sh-nbsd-nat.c (store_registers): Likewise.
13376 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13378 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13379 nbsd_nat_target instead of inf_ptrace_target.
13380 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13383 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13385 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13387 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13389 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13391 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13393 2020-03-17 Tom de Vries <tdevries@suse.de>
13396 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13398 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13400 (process_imported_unit_die): Skip import of c++ CUs.
13402 2020-03-16 Tom Tromey <tom@tromey.com>
13404 * p-valprint.c (pascal_object_print_value): Initialize
13407 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13408 Shahab Vahedi <shahab@synopsys.com>
13410 * Makefile.in: Add arch/arc.o
13411 * configure.tgt: Likewise.
13412 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13413 (_initialize_arc_tdep): Don't initialize old target descriptions.
13414 (arc_read_description): New function to cache target descriptions.
13415 * arc-tdep.h (arc_read_description): Add proto type.
13416 * arch/arc.c: New file.
13417 * arch/arc.h: Likewise.
13418 * features/Makefile: Replace old target descriptions with new.
13419 * features/arc-arcompact.c: Remove.
13420 * features/arc-arcompact.xml: Likewise.
13421 * features/arc-v2.c: Likewise
13422 * features/arc-v2.xml: Likewise
13423 * features/arc/aux-arcompact.xml: New file.
13424 * features/arc/aux-v2.xml: Likewise.
13425 * features/arc/core-arcompact.xml: Likewise.
13426 * features/arc/core-v2.xml: Likewise.
13427 * features/arc/aux-arcompact.c: Generate.
13428 * features/arc/aux-v2.c: Likewise.
13429 * features/arc/core-arcompact.c: Likewise.
13430 * features/arc/core-v2.c: Likewise.
13431 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13433 2020-03-16 Tom Tromey <tromey@adacore.com>
13436 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13437 putting value into bcache.
13439 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13442 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13444 (amd64_windows_init_abi_common): ... this. Don't set size of
13446 (amd64_windows_init_abi): New function.
13447 (amd64_cygwin_init_abi): New function.
13448 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13450 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13453 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13455 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13456 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13457 (pe_import_directory_entry): New struct type.
13458 (is_linked_with_cygwin_dll): New function.
13459 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13460 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13461 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13463 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13465 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13466 i386_cygwin_core_osabi_sniffer.
13468 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13470 * i386-cygwin-tdep.c: Rename to...
13471 * i386-windows-tdep.c: ... this.
13472 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13473 i386-windows-tdep.c.
13474 * configure.tgt: Likewise.
13476 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13478 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13479 * osabi.c (gdb_osabi_names): Add "Windows".
13480 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13481 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13482 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13483 i386_cygwin_osabi_sniffer.
13484 (_initialize_i386_cygwin_tdep): Register OS ABI
13485 GDB_OSABI_WINDOWS for i386.
13486 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13487 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13488 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13490 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13491 when the target matches '*-*-mingw*'.
13493 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13495 * defs.h (enum gdb_osabi): Move to...
13496 * osabi.h (enum gdb_osabi): ... here.
13497 * gdbarch.sh: Include osabi.h in gdbarch.h.
13498 * gdbarch.h: Re-generate.
13500 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13502 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13504 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13506 2020-03-14 Tom Tromey <tom@tromey.com>
13508 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13510 (c_type_print_modifier): Likewise. Add "language" parameter.
13511 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13512 (c_type_print_base_1): Update.
13513 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13515 * type-stack.c (type_stack::insert): Handle tp_atomic and
13517 (type_stack::follow_type_instance_flags): Likewise.
13518 (type_stack::follow_types): Likewise. Merge type-following code.
13519 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13520 (space_identifier, cv_with_space_id)
13521 (const_or_volatile_or_space_identifier_noopt)
13522 (const_or_volatile_or_space_identifier): Remove.
13523 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13525 (ptr_operator, typebase): Update.
13526 (enum token_flag) <FLAG_C>: New constant.
13527 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13529 (lex_one_token): Handle FLAG_C.
13531 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13533 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13534 it to the ptrace call.
13535 * m68k-bsd-nat.c (store_registers): Likewise.
13537 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13539 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13541 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13542 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13543 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13545 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13547 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13548 nbsd_nat_target instead of inf_ptrace_target.
13549 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13552 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13554 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13559 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13560 it to the ptrace call.
13561 * alpha-bsd-nat.c (store_registers): Likewise.
13563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13565 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13567 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13568 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13569 fill_fpregset): Likewise.
13571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13573 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13574 nbsd_nat_target instead of inf_ptrace_target.
13575 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13578 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13580 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13585 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13586 it to the ptrace call.
13587 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13588 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13589 * arm-nbsd-nat.c (store_register): Likewise.
13590 * arm-nbsd-nat.c (store_regs): Likewise.
13591 * arm-nbsd-nat.c (store_fp_register): Likewise.
13592 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13594 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13596 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13597 nbsd_nat_target instead of inf_ptrace_target.
13598 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13601 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13603 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13604 it to the ptrace call.
13605 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13607 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13609 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13610 it to the ptrace call.
13611 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13613 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13615 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13617 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13619 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13621 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13622 instead of inf_ptrace_target.
13623 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13628 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13633 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13636 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13638 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13641 2020-03-13 Tom Tromey <tom@tromey.com>
13643 * value.h (val_print): Don't declare.
13644 * valprint.h (val_print_array_elements)
13645 (val_print_scalar_formatted, generic_val_print): Don't declare.
13646 * valprint.c (generic_val_print_array): Take a struct value.
13647 (generic_val_print_ptr, generic_val_print_memberptr)
13648 (generic_val_print_bool, generic_val_print_int)
13649 (generic_val_print_char, generic_val_print_complex)
13650 (generic_val_print): Remove.
13651 (generic_value_print): Update.
13652 (do_val_print): Remove unused parameters. Don't call
13654 (val_print): Remove.
13655 (common_val_print): Update. Don't call value_check_printable.
13656 (val_print_scalar_formatted, val_print_array_elements): Remove.
13657 * rust-lang.c (rust_val_print): Remove.
13658 (rust_language_defn): Update.
13659 * p-valprint.c (pascal_val_print): Remove.
13660 (pascal_value_print_inner): Update.
13661 (pascal_object_print_val_fields, pascal_object_print_val):
13663 (pascal_object_print_static_field): Update.
13664 * p-lang.h (pascal_val_print): Don't declare.
13665 * p-lang.c (pascal_language_defn): Update.
13666 * opencl-lang.c (opencl_language_defn): Update.
13667 * objc-lang.c (objc_language_defn): Update.
13668 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13669 * m2-lang.h (m2_val_print): Don't declare.
13670 * m2-lang.c (m2_language_defn): Update.
13671 * language.h (struct language_defn) <la_val_print>: Remove.
13672 * language.c (unk_lang_value_print_inner): Rename. Change
13674 (unknown_language_defn, auto_language_defn): Update.
13675 * go-valprint.c (go_val_print): Remove.
13676 * go-lang.h (go_val_print): Don't declare.
13677 * go-lang.c (go_language_defn): Update.
13678 * f-valprint.c (f_val_print): Remove.
13679 * f-lang.h (f_value_print): Don't declare.
13680 * f-lang.c (f_language_defn): Update.
13681 * d-valprint.c (d_val_print): Remove.
13682 * d-lang.h (d_value_print): Don't declare.
13683 * d-lang.c (d_language_defn): Update.
13684 * cp-valprint.c (cp_print_value_fields)
13685 (cp_print_value_fields_rtti, cp_print_value): Remove.
13686 (cp_print_static_field): Update.
13687 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13688 (c_val_print_struct, c_val_print_union, c_val_print_int)
13689 (c_val_print_memberptr, c_val_print): Remove.
13690 * c-lang.h (c_val_print_array, cp_print_value_fields)
13691 (cp_print_value_fields_rtti): Don't declare.
13692 * c-lang.c (c_language_defn, cplus_language_defn)
13693 (asm_language_defn, minimal_language_defn): Update.
13694 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13695 (ada_val_print_enum): Take a struct value.
13696 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13697 (ada_val_print): Remove.
13698 (ada_value_print_1): Update.
13699 (printable_val_type): Remove.
13700 * ada-lang.h (ada_val_print): Don't declare.
13701 * ada-lang.c (ada_language_defn): Update.
13703 2020-03-13 Tom Tromey <tom@tromey.com>
13705 * valprint.c (do_val_print): Update.
13706 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13708 (value_to_value_object_no_release): Declare.
13709 * python/py-value.c (value_to_value_object_no_release): New
13711 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13713 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13715 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13717 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13719 (gdbscm_apply_val_pretty_printer): Take a struct value.
13720 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13722 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13724 * extension-priv.h (struct extension_language_ops)
13725 <apply_val_pretty_printer>: Take a struct value.
13726 * cp-valprint.c (cp_print_value): Create a struct value.
13727 (cp_print_value): Update.
13729 2020-03-13 Tom Tromey <tom@tromey.com>
13731 * ada-valprint.c (print_field_values): Call common_val_print.
13733 2020-03-13 Tom Tromey <tom@tromey.com>
13735 * ada-valprint.c (val_print_packed_array_elements): Remove
13736 bitoffset and val parameters. Call common_val_print.
13737 (ada_val_print_string): Remove offset, address, and original_value
13739 (ada_val_print_array): Update.
13740 (ada_value_print_array): New function.
13741 (ada_value_print_1): Call it.
13743 2020-03-13 Tom Tromey <tom@tromey.com>
13745 * ada-valprint.c (ada_value_print): Use common_val_print.
13747 2020-03-13 Tom Tromey <tom@tromey.com>
13749 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13751 2020-03-13 Tom Tromey <tom@tromey.com>
13753 * ada-valprint.c (ada_value_print_num): New function.
13754 (ada_value_print_1): Use it.
13756 2020-03-13 Tom Tromey <tom@tromey.com>
13758 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13760 2020-03-13 Tom Tromey <tom@tromey.com>
13762 * ada-valprint.c (ada_value_print_ptr): New function.
13763 (ada_value_print_1): Use it.
13765 2020-03-13 Tom Tromey <tom@tromey.com>
13767 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13768 call common_val_print.
13769 (ada_val_print_1): Update.
13770 (ada_value_print_1): New function.
13771 (ada_value_print_inner): Rewrite.
13773 2020-03-13 Tom Tromey <tom@tromey.com>
13775 * cp-valprint.c (cp_print_value_fields): Update.
13776 (cp_print_value): New function.
13778 2020-03-13 Tom Tromey <tom@tromey.com>
13780 * m2-valprint.c (m2_value_print_inner): Use
13781 cp_print_value_fields.
13782 * cp-valprint.c (cp_print_value_fields): New function.
13783 * c-valprint.c (c_value_print_struct): New function.
13784 (c_value_print_inner): Use c_value_print_struct.
13785 * c-lang.h (cp_print_value_fields): Declare.
13787 2020-03-13 Tom Tromey <tom@tromey.com>
13789 * c-valprint.c (c_value_print_array): New function.
13790 (c_value_print_inner): Use it.
13792 2020-03-13 Tom Tromey <tom@tromey.com>
13794 * c-valprint.c (c_value_print_memberptr): New function.
13795 (c_value_print_inner): Use it.
13797 2020-03-13 Tom Tromey <tom@tromey.com>
13799 * c-valprint.c (c_value_print_int): New function.
13800 (c_value_print_inner): Use it.
13802 2020-03-13 Tom Tromey <tom@tromey.com>
13804 * c-valprint.c (c_value_print_ptr): New function.
13805 (c_value_print_inner): Use it.
13807 2020-03-13 Tom Tromey <tom@tromey.com>
13809 * c-valprint.c (c_value_print_inner): Rewrite.
13811 2020-03-13 Tom Tromey <tom@tromey.com>
13813 * valprint.c (generic_value_print_complex): New function.
13814 (generic_value_print): Use it.
13816 2020-03-13 Tom Tromey <tom@tromey.com>
13818 * valprint.c (generic_val_print_float): Don't call
13819 val_print_scalar_formatted.
13820 (generic_val_print, generic_value_print): Update.
13822 2020-03-13 Tom Tromey <tom@tromey.com>
13824 * valprint.c (generic_value_print_char): New function
13825 (generic_value_print): Use it.
13827 2020-03-13 Tom Tromey <tom@tromey.com>
13829 * valprint.c (generic_value_print_int): New function.
13830 (generic_value_print): Use it.
13832 2020-03-13 Tom Tromey <tom@tromey.com>
13834 * valprint.c (generic_value_print_bool): New function.
13835 (generic_value_print): Use it.
13837 2020-03-13 Tom Tromey <tom@tromey.com>
13839 * valprint.c (generic_val_print_func): Simplify.
13840 (generic_val_print, generic_value_print): Update.
13842 2020-03-13 Tom Tromey <tom@tromey.com>
13844 * valprint.c (generic_val_print_flags): Remove.
13845 (generic_val_print, generic_value_print): Update.
13846 (val_print_type_code_flags): Add original_value parameter.
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13850 * valprint.c (generic_val_print): Update.
13851 (generic_value_print): Update.
13852 * valprint.c (generic_val_print_enum): Don't call
13853 val_print_scalar_formatted.
13855 2020-03-13 Tom Tromey <tom@tromey.com>
13857 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13858 * valprint.c (generic_value_print_ptr): New function.
13860 2020-03-13 Tom Tromey <tom@tromey.com>
13862 * valprint.c (generic_value_print): Rewrite.
13864 2020-03-13 Tom Tromey <tom@tromey.com>
13866 * p-valprint.c (pascal_object_print_value_fields)
13867 (pascal_object_print_value): New functions.
13869 2020-03-13 Tom Tromey <tom@tromey.com>
13871 * p-valprint.c (pascal_value_print_inner): Rewrite.
13873 2020-03-13 Tom Tromey <tom@tromey.com>
13875 * f-valprint.c (f_value_print_innner): Rewrite.
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13879 * m2-valprint.c (m2_print_unbounded_array): New overload.
13880 (m2_print_unbounded_array): Update.
13881 (m2_print_array_contents): Take a struct value.
13882 (m2_value_print_inner): Rewrite.
13884 2020-03-13 Tom Tromey <tom@tromey.com>
13886 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13887 (d_value_print_inner): New function.
13888 * d-lang.h (d_value_print_inner): Declare.
13889 * d-lang.c (d_language_defn): Use d_value_print_inner.
13891 2020-03-13 Tom Tromey <tom@tromey.com>
13893 * go-valprint.c (go_value_print_inner): New function.
13894 * go-lang.h (go_value_print_inner): Declare.
13895 * go-lang.c (go_language_defn): Use go_value_print_inner.
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13899 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13901 (rust_val_print): Rewrite.
13902 (rust_value_print_inner): New function, from rust_val_print.
13903 (rust_language_defn): Use rust_value_print_inner.
13905 2020-03-13 Tom Tromey <tom@tromey.com>
13907 * ada-valprint.c (ada_value_print_inner): New function.
13908 * ada-lang.h (ada_value_print_inner): Declare.
13909 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13911 2020-03-13 Tom Tromey <tom@tromey.com>
13913 * f-valprint.c (f_value_print_innner): New function.
13914 * f-lang.h (f_value_print_innner): Declare.
13915 * f-lang.c (f_language_defn): Use f_value_print_innner.
13917 2020-03-13 Tom Tromey <tom@tromey.com>
13919 * p-valprint.c (pascal_value_print_inner): New function.
13920 * p-lang.h (pascal_value_print_inner): Declare.
13921 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13923 2020-03-13 Tom Tromey <tom@tromey.com>
13925 * m2-valprint.c (m2_value_print_inner): New function.
13926 * m2-lang.h (m2_value_print_inner): Declare.
13927 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13929 2020-03-13 Tom Tromey <tom@tromey.com>
13931 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13932 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13933 * c-valprint.c (c_value_print_inner): New function.
13934 * c-lang.h (c_value_print_inner): Declare.
13935 * c-lang.c (c_language_defn, cplus_language_defn)
13936 (asm_language_defn, minimal_language_defn): Use
13937 c_value_print_inner.
13939 2020-03-13 Tom Tromey <tom@tromey.com>
13941 * p-valprint.c (pascal_object_print_value_fields): Now static.
13942 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13944 2020-03-13 Tom Tromey <tom@tromey.com>
13946 * c-valprint.c (c_val_print_array): Simplify.
13948 2020-03-13 Tom Tromey <tom@tromey.com>
13950 * valprint.c (value_print_array_elements): New function.
13951 * valprint.h (value_print_array_elements): Declare.
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13955 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13956 * mips-tdep.c (mips_print_register): Use
13957 value_print_scalar_formatted.
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13961 * valprint.h (value_print_scalar_formatted): Declare.
13962 * valprint.c (value_print_scalar_formatted): New function.
13964 2020-03-13 Tom Tromey <tom@tromey.com>
13966 * valprint.h (generic_value_print): Declare.
13967 * valprint.c (generic_value_print): New function.
13969 2020-03-13 Tom Tromey <tom@tromey.com>
13971 * valprint.c (do_val_print): Call la_value_print_inner, if
13973 * rust-lang.c (rust_language_defn): Update.
13974 * p-lang.c (pascal_language_defn): Update.
13975 * opencl-lang.c (opencl_language_defn): Update.
13976 * objc-lang.c (objc_language_defn): Update.
13977 * m2-lang.c (m2_language_defn): Update.
13978 * language.h (struct language_defn) <la_value_print_inner>: New
13980 * language.c (unknown_language_defn, auto_language_defn): Update.
13981 * go-lang.c (go_language_defn): Update.
13982 * f-lang.c (f_language_defn): Update.
13983 * d-lang.c (d_language_defn): Update.
13984 * c-lang.c (c_language_defn, cplus_language_defn)
13985 (asm_language_defn, minimal_language_defn): Update.
13986 * ada-lang.c (ada_language_defn): Update.
13988 2020-03-13 Tom Tromey <tom@tromey.com>
13990 * c-valprint.c (c_value_print): Use common_val_print.
13992 2020-03-13 Tom Tromey <tom@tromey.com>
13994 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13996 2020-03-13 Tom Tromey <tom@tromey.com>
13998 * f-valprint.c (f77_print_array_1, f_val_print): Use
14001 2020-03-13 Tom Tromey <tom@tromey.com>
14003 * riscv-tdep.c (riscv_print_one_register_info): Use
14006 2020-03-13 Tom Tromey <tom@tromey.com>
14008 * mi/mi-main.c (output_register): Use common_val_print.
14010 2020-03-13 Tom Tromey <tom@tromey.com>
14012 * infcmd.c (default_print_one_register_info): Use
14015 2020-03-13 Tom Tromey <tom@tromey.com>
14017 * valprint.h (common_val_print_checked): Declare.
14018 * valprint.c (common_val_print_checked): New function.
14019 * stack.c (print_frame_arg): Use common_val_print_checked.
14021 2020-03-13 Tom Tromey <tom@tromey.com>
14023 * valprint.c (do_val_print): New function, from val_print.
14024 (val_print): Use do_val_print.
14025 (common_val_print): Use do_val_print.
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14029 * valprint.c (value_print): Use scoped_value_mark.
14031 2020-03-13 Tom de Vries <tdevries@suse.de>
14034 * psymtab.c (partial_symtab::partial_symtab): Don't set
14035 globals_offset and statics_offset. Push element onto
14036 current_global_psymbols and current_static_psymbols stacks.
14037 (concat): New function.
14038 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14039 element from current_global_psymbols and current_static_psymbols
14040 stacks. Concat popped elements to global_psymbols and
14042 (add_psymbol_to_list): Use current_global_psymbols and
14043 current_static_psymbols stacks.
14044 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14045 current_static_psymbols fields.
14047 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14049 * corelow.c (sniff_core_bfd): Remove.
14050 (class core_target) <m_core_vec>: Remove.
14051 (core_target::core_target): Update.
14052 (core_file_fns): Remove.
14053 (deprecated_add_core_fns): Remove.
14054 (default_core_sniffer): Remove.
14055 (sniff_core_bfd): Remove.
14056 (default_check_format): Remove.
14057 (gdb_check_format): Remove.
14058 (core_target_open): Update.
14059 (core_target::get_core_register_section): Update.
14060 (get_core_registers_cb): Update.
14061 (core_target::fetch_registers): Update.
14062 * gdbcore.h (struct core_fns): Remove.
14063 (deprecated_add_core_fns): Remove.
14064 (default_core_sniffer): Remove.
14065 (default_check_format): Remove.
14067 2020-03-12 Tom Tromey <tom@tromey.com>
14069 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14071 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14073 2020-03-12 Tom Tromey <tom@tromey.com>
14075 * remote.c (remote_target::download_tracepoint)
14076 (remote_target::enable_tracepoint)
14077 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14078 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14081 2020-03-12 Tom Tromey <tom@tromey.com>
14083 * symfile-mem.c: Update CORE_ADDR size assert.
14085 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14087 * selftest.m4: Move to gdbsupport/.
14088 * acinclude.m4: Update path to selftest.m4.
14090 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14092 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14093 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14094 gdbarch-selfselftests.c and selftest-arch.c.
14095 (SUBDIR_UNITTESTS_OBS): Rename to...
14096 (SELFTESTS_OBS): ... this.
14097 (COMMON_SFILES): Remove disasm-selftests.c and
14098 gdbarch-selftests.c.
14099 * configure.ac: Don't add selftest-arch.{c,o} to
14101 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14102 preprocessor conditions.
14104 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14106 * configure.ac: Don't source bfd/development.sh.
14107 * selftest.m4: Modify comment.
14108 * configure: Re-generate.
14110 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14112 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14113 not "true" or "false".
14114 * configure: Re-generate.
14116 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14118 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14119 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14120 renamed to arm_nbsd_supply_gregset.
14121 (fetch_register): Update to call arm_nbsd_supply_gregset.
14122 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14123 (arm_netbsd_nat_target::fetch_registers): Update.
14124 (fetch_elfcore_registers): Removed.
14125 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14126 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14127 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14128 not require NetBSD system headers.
14129 (arm_nbsd_regset): New struct.
14130 (arm_nbsd_iterate_over_regset_sections): New function.
14131 (arm_netbsd_init_abi_common): Updated to call
14132 set_gdbarch_iterate_over_regset_sections.
14133 * arm-nbsd-tdep.h: New file.
14135 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14137 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14140 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14142 * configure: Re-generate.
14144 2020-03-11 Tom Tromey <tromey@adacore.com>
14146 * ada-typeprint.c (print_choices): Fix comment.
14148 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14150 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14151 previous item in the list, when the list has no items.
14153 2020-03-11 Tom de Vries <tdevries@suse.de>
14155 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14156 PROP_LOCLIST handling code.
14158 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14160 * buildsym-legacy.c (record_line): Pass extra parameter to
14162 * buildsym.c (buildsym_compunit::record_line): Take an extra
14163 parameter, reduce duplication in the line table, and record the
14164 is_stmt flag in the line table.
14165 * buildsym.h (buildsym_compunit::record_line): Add extra
14167 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14168 non-statement lines.
14169 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14170 this to the symtab builder.
14171 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14172 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14173 through to dwarf_record_line_1.
14174 * infrun.c (process_event_stop_test): When stepping, don't stop at
14175 a non-statement instruction, and only refresh the step info when
14176 we land in the middle of a line's range. Also add an extra
14178 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14180 * record-btrace.c (btrace_find_line_range): Only record lines
14181 marked as is-statement.
14182 * stack.c (frame_show_address): Show the frame address if we are
14183 in a non-statement sal.
14184 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14185 (maintenance_print_one_line_table): Print a header for the is_stmt
14186 column, and include is_stmt information in the output.
14187 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14188 preference to non-statements.
14189 (find_pcs_for_symtab_line): Prefer is-statement entries.
14190 (find_line_common): Likewise.
14191 * symtab.h (struct linetable_entry): Add is_stmt field.
14192 (struct symtab_and_line): Likewise.
14193 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14194 arranging the line table.
14196 2020-03-07 Tom de Vries <tdevries@suse.de>
14198 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14201 2020-03-07 Tom Tromey <tom@tromey.com>
14203 * valops.c (value_literal_complex): Remove obsolete comment.
14204 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14207 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14209 * infrun.h: Forward-declare thread_info.
14210 (set_step_info): Add thread_info parameter, add doc.
14211 * infrun.c (set_step_info): Add thread_info parameter, move doc
14213 * infrun.c (process_event_stop_test): Pass thread to
14214 set_step_info call.
14215 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14217 (prepare_one_step): Add thread_info parameter, pass it to
14218 set_step_frame and prepare_one_step (recursive) call.
14219 (step_1): Pass thread to prepare_one_step call.
14220 (step_command_fsm::should_stop): Pass thread to
14222 (until_next_fsm): Pass thread to set_step_frame call.
14223 (finish_command): Pass thread to set_step_info call.
14225 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14227 * windows-tdep.c (windows_solib_create_inferior_hook):
14228 Check if inferior is running.
14230 2020-03-06 Tom de Vries <tdevries@suse.de>
14232 * NEWS: Fix "the the".
14235 2020-03-06 Tom de Vries <tdevries@suse.de>
14237 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14239 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14241 * .dir-locals.el: Add a comment referencing the other copies of
14244 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14246 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14249 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14251 * .gitattributes: New file.
14253 2020-03-04 Tom Tromey <tom@tromey.com>
14255 * symmisc.c (print_symbol_bcache_statistics)
14256 (print_objfile_statistics): Update.
14257 * symfile.c (allocate_symtab): Use intern.
14258 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14259 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14260 macro_cache>: Remove.
14261 <string_cache>: New member.
14262 (struct objfile) <intern>: New methods.
14263 * elfread.c (elf_symtab_read): Use intern.
14264 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14265 (dwarf2_compute_name, dwarf2_physname)
14266 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14268 (guess_partial_die_structure_name): Update.
14269 (partial_die_info::fixup): Intern name.
14270 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14272 (dwarf2_name): Intern name. Update.
14273 * buildsym.c (buildsym_compunit::get_macro_table): Use
14276 2020-03-04 Tom Tromey <tom@tromey.com>
14278 * jit.c (bfd_open_from_target_memory): Make "target" const.
14279 * corefile.c (gnutarget): Now const.
14280 * gdbcore.h (gnutarget): Now const.
14282 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14284 * NEWS: Mention support for WOW64 processes.
14285 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14286 (amd64_windows_segment_register_p): Remove static.
14287 (_initialize_amd64_windows_nat): Update.
14288 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14289 * i386-windows-nat.c (context_offset): Update.
14290 (i386_mappings): Rename and remove static.
14291 (i386_windows_segment_register_p): Remove static.
14292 (_initialize_i386_windows_nat): Update.
14293 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14294 (STATUS_WX86_SINGLE_STEP): New macro.
14295 (EnumProcessModulesEx): New macro.
14296 (Wow64SuspendThread): New macro.
14297 (Wow64GetThreadContext): New macro.
14298 (Wow64SetThreadContext): New macro.
14299 (Wow64GetThreadSelectorEntry): New macro.
14300 (windows_set_context_register_offsets): Add static.
14301 (windows_set_segment_register_p): Likewise.
14302 (windows_add_thread): Adapt for WOW64 processes.
14303 (windows_fetch_one_register): Likewise.
14304 (windows_nat_target::fetch_registers): Likewise.
14305 (windows_store_one_register): Likewise.
14306 (display_selector): Likewise.
14307 (display_selectors): Likewise.
14308 (handle_exception): Likewise.
14309 (windows_continue): Likewise.
14310 (windows_nat_target::resume): Likewise.
14311 (windows_add_all_dlls): Likewise.
14312 (do_initial_windows_stuff): Likewise.
14313 (windows_nat_target::attach): Likewise.
14314 (windows_get_exec_module_filename): Likewise.
14315 (windows_nat_target::create_inferior): Likewise.
14316 (windows_xfer_siginfo): Likewise.
14317 (_initialize_loadable): Initialize Wow64SuspendThread,
14318 Wow64GetThreadContext, Wow64SetThreadContext,
14319 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14320 * windows-nat.h (windows_set_context_register_offsets):
14321 Remove declaration.
14322 (windows_set_segment_register_p): Likewise.
14323 (i386_windows_segment_register_p): Add declaration.
14324 (amd64_windows_segment_register_p): Likewise.
14326 2020-03-04 Luis Machado <luis.machado@linaro.org>
14328 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14329 in "info registers" for AArch64/ARM.
14331 The change caused "info registers" to not print GPR's.
14335 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14337 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14338 when reg->group is empty and reggroup is not.
14340 2020-03-03 Tom Tromey <tromey@adacore.com>
14342 * dwarf2/frame.c (struct dwarf2_frame_cache)
14343 <checked_tailcall_bottom, entry_cfa_sp_offset,
14344 entry_cfa_sp_offset_p>: Remove members.
14345 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14346 (dwarf2_frame_prev_register): Don't call
14347 dwarf2_tailcall_sniffer_first.
14348 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14349 * frame-unwind.c (add_unwinder): New fuction.
14350 (frame_unwind_init): Use it. Add tailcall unwinder.
14352 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14353 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14355 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14356 value should be printed as true.
14358 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14360 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14361 (windows_init_abi): Set and use windows_so_ops.
14363 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14365 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14366 when verifying if dealing with a convenience variable.
14368 2020-03-03 Luis Machado <luis.machado@linaro.org>
14370 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14372 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14374 * infrun.c (gdbarch_supports_displaced_stepping): New.
14375 (use_displaced_stepping): Break up conditions in smaller pieces.
14376 Use gdbarch_supports_displaced_stepping.
14377 (displaced_step_prepare_throw): Use
14378 gdbarch_supports_displaced_stepping.
14380 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14382 * NEWS: Mention new behaviour of the history filename.
14383 * top.c (write_history_p): Add comment.
14384 (show_write_history_p): Add header comment, give a different
14385 message when history writing is on, but the history filename is
14387 (history_filename): Add comment.
14388 (history_filename_empty): New function.
14389 (show_history_filename): Add header comment, give a different
14390 message when the filename is empty.
14391 (init_history): Compare history_filename against nullptr, and only
14392 read history if the filename is not empty.
14393 (set_history_filename): Add header comment, and only make
14394 non-empty filenames absolute.
14395 (init_main): Make the filename argument to 'set history filename'
14398 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14400 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14401 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14402 (fetch_fp_register): Update.
14403 (fetch_fp_regs): Update.
14404 (store_fp_register): Update.
14405 (store_fp_regs): Update.
14406 (arm_netbsd_nat_target::read_description): New function.
14407 (fetch_elfcore_registers): Update.
14409 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14411 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14412 general_thread if the stop reply is missing a thread-id.
14413 (remote_target::process_stop_reply): Use the first non-exited
14414 thread if the target didn't pass a thread-id.
14415 * infrun.c (do_target_wait): Move call to
14416 switch_to_inferior_no_thread to ....
14417 (do_target_wait_1): ... here.
14419 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14421 * debuginfod-support.c: Include defs.h first.
14423 2020-02-28 Tom de Vries <tdevries@suse.de>
14425 * symfile.c (set_initial_language): Use default language for lookup.
14427 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14429 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14430 reader variable, pass `this` to read_cutu_die_from_dwo.
14432 2020-02-27 Aaron Merey <amerey@redhat.com>
14434 * source.c (open_source_file): Check for nullptr when computing
14437 2020-02-27 Tom Tromey <tromey@adacore.com>
14439 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14441 (dwarf2_add_field): Don't update nfields.
14442 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14444 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14446 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14449 2020-02-26 Tom Tromey <tom@tromey.com>
14451 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14452 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14453 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14454 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14457 2020-02-26 Tom Tromey <tom@tromey.com>
14459 * dwarf2/index-write.c (psym_index_map): Change type.
14460 (add_address_entry_worker, write_one_signatured_type)
14461 (recursively_count_psymbols, recursively_write_psymbols)
14462 (class debug_names, psyms_seen_size, write_gdbindex)
14463 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14465 2020-02-26 Aaron Merey <amerey@redhat.com>
14467 * Makefile.in: Handle optional debuginfod support.
14469 * README: Add --with-debuginfod summary.
14470 * config.in: Regenerate.
14471 * configure: Regenerate.
14472 * configure.ac: Handle optional debuginfod support.
14473 * debuginfod-support.c: debuginfod helper functions.
14474 * debuginfod-support.h: Ditto.
14475 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14477 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14478 when a dwz file cannot be found.
14479 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14480 debuginfo file cannot be found.
14481 * source.c (open_source_file): Query debuginfod servers when a
14482 source file cannot be found.
14483 * top.c (print_gdb_configuration): Include
14484 --{with,without}-debuginfod in the output.
14486 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14488 * thread.c (thr_try_catch_cmd): Print thread name.
14490 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14492 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14493 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14494 dwarf2_fetch_die_type_sect_off): Move to...
14495 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14496 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14497 dwarf2_fetch_die_type_sect_off): ... here.
14498 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14499 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14500 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14502 2020-02-26 Tom de Vries <tdevries@suse.de>
14505 * symfile.c (set_initial_language): Exit-early if
14506 language_mode == language_mode_manual.
14508 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14510 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14511 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14512 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14514 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14516 * gdbtypes.c (create_array_type_with_stride): Handle negative
14518 * valarith.c (value_subscripted_rvalue): Likewise.
14520 2020-02-25 Luis Machado <luis.machado@linaro.org>
14522 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14524 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14526 * loc.h (dwarf2_get_die_type): Move to...
14527 * read.h (dwarf2_get_die_type): ... here.
14528 * read.c (dwarf2_get_die_type): Move doc to header.
14530 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14532 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14533 'gnulib/Makefile.in' to the list.
14535 2020-02-24 Tom Tromey <tom@tromey.com>
14537 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14539 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14542 2020-02-24 Tom Tromey <tom@tromey.com>
14544 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14546 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14547 (dw2_do_instantiate_symtab, dw2_get_file_names)
14548 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14550 2020-02-24 Tom Tromey <tom@tromey.com>
14552 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14553 make_scoped_restore.
14554 (dwarf2_psymtab::read_symtab): Don't clear
14555 reading_partial_symbols.
14557 2020-02-24 Tom de Vries <tdevries@suse.de>
14560 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14562 2020-02-24 Tom de Vries <tdevries@suse.de>
14564 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14565 commands layout next/prev/regs.
14567 2020-02-22 Tom Tromey <tom@tromey.com>
14569 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14570 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14572 2020-02-22 Tom Tromey <tom@tromey.com>
14574 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14576 2020-02-22 Tom Tromey <tom@tromey.com>
14578 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14579 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14580 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14581 * tui/tui.c (_initialize_tui): Add usage text.
14583 2020-02-22 Tom Tromey <tom@tromey.com>
14585 * tui/tui-win.c (tui_set_focus_command)
14586 (tui_set_win_height_command): Use error_no_arg.
14587 (_initialize_tui_win): Update help text.
14588 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14590 2020-02-22 Tom Tromey <tom@tromey.com>
14592 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14593 * tui/tui-disasm.h (struct tui_disasm_window)
14594 <display_start_addr>: Declare.
14595 * tui/tui-source.h (struct tui_source_window)
14596 <display_start_addr>: Declare.
14597 * tui/tui-winsource.h (struct tui_source_window_base)
14598 <show_source_line, display_start_addr>: New methods.
14599 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14600 Rename and move to protected section.
14601 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14602 (tui_source_window_base::do_erase_source_content): Update.
14603 (tui_source_window_base::show_source_line): Now a method.
14604 (tui_source_window_base::show_source_content)
14605 (tui_source_window_base::tui_source_window_base)
14606 (tui_source_window_base::rerender)
14607 (tui_source_window_base::refill)
14608 (tui_source_window_base::do_scroll_horizontal)
14609 (tui_source_window_base::set_is_exec_point_at)
14610 (tui_source_window_base::update_breakpoint_info)
14611 (tui_source_window_base::update_exec_info): Update.
14612 * tui/tui-source.c (tui_source_window::set_contents)
14613 (tui_source_window::showing_source_p)
14614 (tui_source_window::do_scroll_vertical)
14615 (tui_source_window::location_matches_p)
14616 (tui_source_window::line_is_displayed): Update.
14617 (tui_source_window::display_start_addr): New method.
14618 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14619 (tui_disasm_window::do_scroll_vertical)
14620 (tui_disasm_window::location_matches_p): Update.
14621 (tui_disasm_window::display_start_addr): New method.
14623 2020-02-22 Tom Tromey <tom@tromey.com>
14625 * NEWS: Add entry for gdb.register_window_type.
14626 * tui/tui-layout.h (window_factory): New typedef.
14627 (tui_register_window): Declare.
14628 * tui/tui-layout.c (saved_tui_windows): New global.
14629 (tui_apply_current_layout): Use it.
14630 (tui_register_window): New function.
14631 * python/python.c (do_start_initialization): Call
14632 gdbpy_initialize_tui.
14633 (python_GdbMethods): Add "register_window_type" function.
14634 * python/python-internal.h (gdbpy_register_tui_window)
14635 (gdbpy_initialize_tui): Declare.
14636 * python/py-tui.c: New file.
14637 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14639 2020-02-22 Tom Tromey <tom@tromey.com>
14641 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14643 2020-02-22 Tom Tromey <tom@tromey.com>
14645 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14646 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14647 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14648 (tui_set_win_focus_to): Move from tui-win.c.
14650 2020-02-22 Tom Tromey <tom@tromey.com>
14652 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14654 (known_window_types): New global.
14655 (tui_get_window_by_name): Reimplement.
14656 (initialize_known_windows): New function.
14657 (validate_window_name): Rewrite.
14658 (_initialize_tui_layout): Call initialize_known_windows.
14660 2020-02-22 Tom Tromey <tom@tromey.com>
14662 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14664 * tui/tui-winsource.h (struct tui_source_window_base)
14665 <tui_source_window_base>: Remove parameter.
14666 * tui/tui-winsource.c
14667 (tui_source_window_base::tui_source_window_base): Remove
14669 (tui_source_window_base::refill): Update.
14670 * tui/tui-stack.h (struct tui_locator_window)
14671 <tui_locator_window>: Update.
14672 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14673 Default the constructor.
14674 * tui/tui-regs.h (struct tui_data_item_window)
14675 <tui_data_item_window>: Default the constructor.
14676 (struct tui_data_window) <tui_data_window>: Likewise.
14677 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14678 Default the constructor.
14679 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14680 Default the constructor.
14682 (struct tui_win_info) <tui_win_info>: Default the constructor.
14683 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14684 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14685 Default the constructor.
14687 2020-02-22 Tom Tromey <tom@tromey.com>
14689 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14690 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14691 * tui/tui-win.c (tui_resize_all): Don't call
14692 tui_delete_invisible_windows.
14693 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14695 (tui_set_layout): Update.
14696 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14697 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14698 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14700 2020-02-22 Tom Tromey <tom@tromey.com>
14702 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14705 2020-02-22 Tom Tromey <tom@tromey.com>
14707 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14709 2020-02-22 Tom Tromey <tom@tromey.com>
14711 * tui/tui-winsource.h (struct tui_source_window_iterator)
14712 <inner_iterator>: New etytypedef.
14713 <tui_source_window_iterator>: Take "end" parameter.
14714 <tui_source_window_iterator>: Take iterator.
14715 <operator*, advance>: Update.
14716 <m_iter>: Change type.
14717 <m_end>: New field.
14718 (struct tui_source_windows) <begin, end>: Update.
14719 * tui/tui-layout.c (tui_windows): New global.
14720 (tui_apply_current_layout): Clear tui_windows.
14721 (tui_layout_window::apply): Update tui_windows.
14722 * tui/tui-data.h (tui_windows): Declare.
14723 (all_tui_windows): Now inline function.
14724 (class tui_window_iterator, struct all_tui_windows): Remove.
14726 2020-02-22 Tom Tromey <tom@tromey.com>
14729 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14730 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14732 (class tui_layout_window) <get_sizes>: Likewise.
14733 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14735 <get_sizes>: Add "height" argument.
14736 <m_vertical>: New field.
14737 * tui/tui-layout.c (tui_layout_split::clone): Update.
14738 (tui_layout_split::get_sizes): Add "height" argument.
14739 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14740 (tui_new_layout_command): Parse "-horizontal".
14741 (_initialize_tui_layout): Update help string.
14742 (tui_layout_split::specification): Add "-horizontal" when needed.
14743 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14745 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14748 2020-02-22 Tom Tromey <tom@tromey.com>
14750 * tui/tui-layout.h (enum tui_adjust_result): New.
14751 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14752 (class tui_layout_window) <adjust_size>: Return
14753 tui_adjust_result. Rewrite.
14754 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14755 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14757 2020-02-22 Tom Tromey <tom@tromey.com>
14759 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14760 parameter and return types.
14761 (class tui_layout_base) <specification>: Add "depth".
14762 (class tui_layout_window) <specification>: Add "depth".
14763 (class tui_layout_split) <specification>: Add "depth".
14764 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14766 (tui_new_layout_command): Parse sub-layouts.
14767 (_initialize_tui_layout): Update help string.
14768 (tui_layout_window::specification): Add "depth".
14769 (add_layout_command): Update.
14771 2020-02-22 Tom Tromey <tom@tromey.com>
14773 * NEWS: Add "tui new-layout" item.
14774 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14775 Add new-layout command to help text.
14776 (validate_window_name): New function.
14777 (tui_new_layout_command): New function.
14778 (_initialize_tui_layout): Register "new-layout".
14779 (tui_layout_window::specification): New method.
14780 (tui_layout_window::specification): New method.
14781 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14783 (class tui_layout_window) <specification>: New method.
14784 (class tui_layout_split) <specification>: New method.
14786 2020-02-22 Tom Tromey <tom@tromey.com>
14788 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14789 * tui/tui-win.c (window_name_completer): Update comment.
14790 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14792 (class tui_layout_window) <replace_window>: Likewise.
14793 (class tui_layout_split) <replace_window>: Likewise.
14794 (tui_set_layout): Don't declare.
14795 (tui_set_initial_layout): Declare function.
14796 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14797 (asm_regs_layout): New globals.
14798 (tui_current_layout, show_layout): Remove.
14799 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14800 (find_layout, tui_apply_layout): New function.
14801 (layout_completer): Remove.
14802 (tui_next_layout): Reimplement.
14803 (tui_next_layout_command): New function.
14804 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14805 (tui_regs_layout): Reimplement.
14806 (tui_regs_layout_command): New function.
14807 (extract_display_start_addr): Rewrite.
14808 (next_layout, prev_layout): Remove.
14809 (tui_layout_window::replace_window): New method.
14810 (tui_layout_split::replace_window): New method.
14811 (destroy_layout): New function.
14812 (layout_list): New global.
14813 (add_layout_command): New function.
14814 (initialize_layouts): Update.
14815 (tui_layout_command): New function.
14816 (_initialize_tui_layout): Install "layout" commands.
14817 * tui/tui-data.h (enum tui_layout_type): Remove.
14818 (tui_current_layout): Don't declare.
14820 2020-02-22 Tom Tromey <tom@tromey.com>
14822 * tui/tui-regs.c (tui_reg_layout): Remove.
14823 (tui_reg_command): Use tui_regs_layout.
14824 * tui/tui-layout.h (tui_reg_command): Declare.
14825 * tui/tui-layout.c (tui_reg_command): New function.
14827 2020-02-22 Tom Tromey <tom@tromey.com>
14829 * tui/tui.c (tui_rl_delete_other_windows): Call
14830 tui_remove_some_windows.
14831 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14833 (class tui_layout_window) <remove_windows>: New method.
14834 (class tui_layout_split) <remove_windows>: Declare.
14835 (tui_remove_some_windows): Declare.
14836 * tui/tui-layout.c (tui_remove_some_windows): New function.
14837 (tui_layout_split::remove_windows): New method.
14839 2020-02-22 Tom Tromey <tom@tromey.com>
14841 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14842 * tui/tui-layout.h (tui_next_layout): Declare.
14843 * tui/tui-layout.c (tui_next_layout): New function.
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14847 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14848 correct coordinates.
14850 2020-02-22 Tom Tromey <tom@tromey.com>
14852 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14853 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14856 2020-02-22 Tom Tromey <tom@tromey.com>
14858 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14859 TUI_DISASM_WIN, not tui_win_list.
14861 2020-02-22 Tom Tromey <tom@tromey.com>
14863 * valprint.c (generic_val_print_enum_1)
14864 (val_print_type_code_flags): Style member names.
14865 * rust-lang.c (val_print_struct, rust_print_enum)
14866 (rust_print_struct_def, rust_internal_print_type): Style member
14868 * p-valprint.c (pascal_object_print_value_fields): Style member
14869 names. Only call fprintf_symbol_filtered for static members.
14870 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14871 * f-valprint.c (f_val_print): Style member names.
14872 * f-typeprint.c (f_type_print_base): Style member names.
14873 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14874 call fprintf_symbol_filtered for static members.
14875 (cp_print_class_member): Style member names.
14876 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14878 * ada-valprint.c (ada_print_scalar): Style enum names.
14879 (ada_val_print_enum): Likewise.
14880 * ada-typeprint.c (print_enum_type): Style enum names.
14882 2020-02-21 Tom Tromey <tom@tromey.com>
14884 * psympriv.h (struct partial_symtab): Update comment.
14886 2020-02-21 Tom Tromey <tromey@adacore.com>
14888 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14891 2020-02-21 Tom de Vries <tdevries@suse.de>
14894 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14895 if dependencies[i]->user != NULL.
14897 2020-02-21 Ali Tamur <tamur@google.com>
14899 * dwarf2/read.c (dwarf2_name): Add null check.
14901 2020-02-20 Tom Tromey <tom@tromey.com>
14903 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14904 ">=", in binary search.
14905 (dwarf2_find_containing_comp_unit): New overload.
14906 (run_test): New self-test.
14907 (_initialize_dwarf2_read): Register new test.
14909 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14911 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14912 * riscv-tdep.h: Likewise.
14913 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14915 * features/riscv/64bit-csr.xml: Regenerated.
14917 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14918 Tom Tromey <tom@tromey.com>
14920 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14921 of 'fputc_unfiltered'.
14922 (putchar_unfiltered): Call 'fputc_unfiltered'.
14923 (fputc_unfiltered): Call 'fputs_unfiltered'.
14925 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14927 * config.in: Regenerate.
14928 * configure: Regenerate.
14929 * configure.ac: Add --with-python-libdir option.
14930 * main.c: Use WITH_PYTHON_LIBDIR.
14932 2020-02-19 Tom Tromey <tom@tromey.com>
14934 * symtab.c (general_symbol_info::compute_and_set_names): Use
14935 obstack_strndup. Simplify call to symbol_set_demangled_name.
14937 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14939 * dwarf2/read.c (allocate_signatured_type_table,
14940 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14941 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14942 Remove objfile parameter, update all callers.
14944 2020-02-19 Doug Evans <dje@google.com>
14947 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14948 rust_enum_variant calculation.
14950 2020-02-19 Tom Tromey <tromey@adacore.com>
14952 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14954 2020-02-19 Tom Tromey <tromey@adacore.com>
14956 * ada-lang.c (cache_symbol): Use obstack_strdup.
14958 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14960 * configure: Regenerate.
14962 2020-02-19 Tom Tromey <tromey@adacore.com>
14964 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14967 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14969 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14971 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14973 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14974 if GDBSERVER is not defined.
14975 (riscv_tdesc_cache): Likewise, also store const target_desc.
14976 (STATIC_IN_GDB): Define.
14977 (riscv_create_target_description): Update declaration with
14979 (riscv_lookup_target_description): New function, only define if
14980 GDBSERVER is not defined.
14981 * arch/riscv.h (riscv_create_target_description): Declare only
14982 when GDBSERVER is defined.
14983 (riscv_lookup_target_description): New declaration when GDBSERVER
14985 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14986 (riscv_linux_read_features): ...this, and return
14987 riscv_gdbarch_features instead of target_desc.
14988 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14989 (riscv_linux_read_description): Rename to...
14990 (riscv_linux_read_features): ...this.
14991 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14992 Update to use riscv_gdbarch_features and
14993 riscv_lookup_target_description.
14994 * riscv-tdep.c (riscv_find_default_target_description): Use
14995 riscv_lookup_target_description instead of
14996 riscv_create_target_description.
14998 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15000 * valprint.c (generic_val_print_enum_1): When printing a flag
15001 enum with value 0 and there is no enumerator with value 0, print
15002 just "0" instead of "(unknown: 0x0)".
15004 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15006 * valprint.c (generic_val_print_enum_1): Print unknown part of
15009 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15011 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15012 flag enums to contain duplicate enumerators.
15013 * valprint.c (generic_val_print_enum_1): Update comment.
15015 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15017 * dwarf2/read.c: Include "count-one-bits.h".
15018 (update_enumeration_type_from_children): If an enumerator has
15019 multiple bits set, don't treat the enumeration as a "flag enum".
15020 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15021 of flag enums have 0 or 1 bit set.
15023 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15025 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15027 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15028 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15029 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15030 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15031 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15033 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15035 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15037 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15039 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15040 displaced_step_closure_up.
15041 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15042 (struct displaced_step_closure_up):
15043 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15044 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15045 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15047 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15048 * gdbarch.c, gdbarch.h: Re-generate.
15049 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15050 displaced_step_closure_up.
15051 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15052 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15053 * infrun.h (displaced_step_closure_up): New type alias.
15054 (struct displaced_step_inferior_state) <step_closure>: Change
15055 type to displaced_step_closure_up.
15056 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15057 displaced_step_closure_up.
15058 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15060 2020-02-14 Tom Tromey <tom@tromey.com>
15062 * minidebug.c (gnu_debug_key): New global.
15063 (find_separate_debug_file_in_section): Use it.
15065 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15067 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15069 * gdbarch.c: Re-generate.
15070 * gdbarch.h: Re-generate.
15071 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15073 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15074 type to std::unique_ptr.
15075 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15076 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15077 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15078 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15079 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15080 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15081 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15082 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15083 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15085 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15087 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15089 (displaced_step_clear): Rename to...
15090 (displaced_step_reset): ... this. Just call displaced->reset ().
15091 (displaced_step_clear_cleanup): Rename to...
15092 (displaced_step_reset_cleanup): ... this.
15093 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15094 (displaced_step_fixup): Likewise.
15095 (resume_1): Likewise.
15096 (handle_inferior_event): Restore child's memory before calling
15097 displaced_step_fixup on the parent.
15098 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15099 to std::unique_ptr.
15100 <step_closure>: Change type to std::unique_ptr.
15102 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15104 * arm-tdep.c: Include count-one-bits.h.
15105 (cleanup_block_store_pc): Use count_one_bits.
15106 (cleanup_block_load_pc): Use count_one_bits.
15107 (arm_copy_block_xfer): Use count_one_bits.
15108 (thumb2_copy_block_xfer): Use count_one_bits.
15109 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15110 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15111 (thumb_get_next_pcs_raw): Use count_one_bits.
15112 (arm_get_next_pcs_raw): Use count_one_bits_l.
15113 * arch/arm.c (bitcount): Remove.
15114 * arch/arm.h (bitcount): Remove.
15116 2020-02-14 Tom Tromey <tromey@adacore.com>
15118 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15120 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15121 * dwarf2/loc.c (call_site_find_chain_1): Return
15122 unique_xmalloc_ptr.
15123 (call_site_find_chain): Likewise.
15125 2020-02-14 Richard Biener <rguenther@suse.de>
15127 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15128 on expression with division operators.
15130 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15132 * MAINTAINERS (Write After Approval): Adding myself.
15134 2020-02-12 Tom Tromey <tom@tromey.com>
15136 * event-loop.c (event_data, gdb_event, event_handler_func):
15139 2020-02-12 Tom Tromey <tom@tromey.com>
15141 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15142 (dwarf2_frame_objfile_data): Add comment.
15143 (find_comp_unit, set_comp_unit): New functions.
15144 (dwarf2_frame_find_fde): Use find_comp_unit.
15145 (dwarf2_build_frame_info): Use set_comp_unit.
15147 2020-02-12 Tom Tromey <tom@tromey.com>
15149 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15150 (comp_unit): Don't initialize objfile.
15151 (execute_cfa_program): Add text_offset parameter.
15152 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15153 (dwarf2_frame_cache): Update.
15154 (dwarf2_build_frame_info): Don't set "objfile" member.
15156 2020-02-12 Tom Tromey <tom@tromey.com>
15158 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15159 (decode_frame_entry): Likewise.
15160 (dwarf2_build_frame_info): Update.
15162 2020-02-12 Tom Tromey <tom@tromey.com>
15164 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15165 (decode_frame_entry_1): Use the comp_unit obstack.
15167 2020-02-12 Tom Tromey <tom@tromey.com>
15169 * dwarf2/frame.c (struct comp_unit): Add initializers and
15171 (dwarf2_frame_objfile_data): Store a comp_unit.
15172 (dwarf2_frame_find_fde): Update.
15173 (dwarf2_build_frame_info): Use "new".
15175 2020-02-12 Tom Tromey <tom@tromey.com>
15177 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15178 (dwarf2_fde_table): Typedef for std::vector.
15179 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15180 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15181 (decode_frame_entry): Update.
15182 (dwarf2_build_frame_info): Use "new".
15184 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15186 * arm-tdep.c (arm_gdbarch_init): Update.
15187 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15188 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15189 have_neon, is_m>: Change to bool.
15191 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15193 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15195 2020-02-12 Tom Tromey <tom@tromey.com>
15197 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15199 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15201 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15202 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15204 2020-02-11 Tom Tromey <tom@tromey.com>
15206 * psymtab.h: Update comment.
15208 2020-02-11 Tom Tromey <tom@tromey.com>
15210 * gdb_obstack.h (struct auto_obstack): Use
15211 DISABLE_COPY_AND_ASSIGN.
15213 2020-02-11 Tom Tromey <tom@tromey.com>
15215 * dwarf2/frame.h (struct objfile): Don't forward declare.
15217 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15219 * cris-tdep.c (cris_supply_gregset): Change signature to match
15220 what struct regset expects.
15221 (cris_regset): New struct.
15222 (fetch_core_registers): Remove.
15223 (cris_iterate_over_regset_sections): New function.
15224 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15225 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15227 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15229 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15232 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15234 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15236 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15238 * configure: Re-generate.
15240 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15242 * configure: Re-generate.
15244 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15246 * acinclude: Update warning.m4 path.
15247 * warning.m4: Move to gdbsupport.
15249 2020-02-11 Tom Tromey <tromey@adacore.com>
15251 * remote.c (remote_console_output): Update.
15252 * printcmd.c (printf_command): Update.
15253 * event-loop.c (gdb_wait_for_event): Update.
15254 * linux-nat.c (sigchld_handler): Update.
15255 * remote-sim.c (gdb_os_write_stdout): Update.
15256 (gdb_os_flush_stdout): Update.
15257 (gdb_os_flush_stderr): Update.
15258 (gdb_os_write_stderr): Update.
15259 * exceptions.c (print_exception): Update.
15260 * remote-fileio.c (remote_fileio_func_read): Update.
15261 (remote_fileio_func_write): Update.
15262 * tui/tui.c (tui_enable): Update.
15263 * tui/tui-interp.c (tui_interp::init): Update.
15264 * utils.c (init_page_info): Update.
15265 (putchar_unfiltered, fputc_unfiltered): Update.
15266 (gdb_flush): Update.
15267 (emit_style_escape): Update.
15268 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15269 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15270 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15271 (stderr_file::write): Update.
15272 (stderr_file::puts): Update.
15273 * ui-file.h (ui_file_isatty, ui_file_write)
15274 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15275 (ui_file_puts): Don't declare.
15277 2020-02-10 Tom de Vries <tdevries@suse.de>
15279 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15280 sentinel to char *.
15282 2020-02-09 Tom de Vries <tdevries@suse.de>
15284 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15285 filename if it matches "<artificial>".
15287 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15289 * windows-tdep.c (struct enum_value_name): New struct.
15290 (create_enum): New function.
15291 (windows_get_siginfo_type): Create and use enum types.
15293 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15295 * NEWS: Mention $_siginfo support for Windows.
15296 * windows-nat.c (handle_exception): Set siginfo_er.
15297 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15298 (windows_xfer_siginfo): New function.
15299 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15300 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15301 (init_windows_gdbarch_data): New function.
15302 (get_windows_gdbarch_data): New function.
15303 (windows_get_siginfo_type): New function.
15304 (windows_init_abi): Register windows_get_siginfo_type.
15305 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15307 2020-02-08 Tom Tromey <tom@tromey.com>
15309 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15310 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15311 <keep>: Declare method.
15312 <m_keep>: Remove member.
15313 <~cutu_reader>: Remove.
15314 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15315 (cutu_reader::cutu_reader): Update.
15316 (cutu_reader::keep): Rename from ~cutu_reader.
15317 (process_psymtab_comp_unit, build_type_psymtabs_1)
15318 (process_skeletonless_type_unit, load_partial_comp_unit)
15319 (load_full_comp_unit, dwarf2_read_addr_index)
15320 (read_signatured_type): Update.
15322 2020-02-08 Tom Tromey <tom@tromey.com>
15324 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15325 "want_partial_unit" parameter.
15326 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15327 Inline check for DW_TAG_partial_unit.
15328 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15330 2020-02-08 Tom Tromey <tom@tromey.com>
15332 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15334 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15337 2020-02-08 Tom Tromey <tom@tromey.com>
15339 * dwarf2/read.c (read_address): Move to comp-unit.c.
15340 (dwarf2_rnglists_process, dwarf2_ranges_process)
15341 (read_attribute_value, dwarf_decode_lines_1)
15342 (var_decode_location, decode_locdesc): Update.
15343 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15344 read.c. Remove "cu" parameter.
15345 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15348 2020-02-08 Tom Tromey <tom@tromey.com>
15350 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15351 (read_indirect_line_string): Update.
15352 * dwarf2/comp-unit.c (read_offset): Remove.
15353 (read_comp_unit_head): Update.
15354 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15356 (read_offset): Don't declare.
15358 2020-02-08 Tom Tromey <tom@tromey.com>
15360 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15361 * dwarf2/read.c (struct comp_unit_head): Move to
15362 dwarf2/comp-unit.h.
15363 (enum class rcuh_kind): Move to comp-unit.h.
15364 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15365 (read_comp_unit_head, error_check_comp_unit_head)
15366 (read_and_check_comp_unit_head): Move to comp-unit.c.
15367 (read_offset, dwarf_unit_type_name): Likewise.
15368 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15369 (cutu_reader::cutu_reader, read_call_site_scope)
15370 (find_partial_die, follow_die_offset): Update.
15371 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15373 2020-02-08 Tom Tromey <tom@tromey.com>
15375 * dwarf2/read.c (read_offset_1): Move to leb.c.
15376 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15377 (dwarf_decode_macro_bytes): Update.
15378 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15379 * dwarf2/leb.h (read_offset): Declare.
15381 2020-02-08 Tom Tromey <tom@tromey.com>
15383 * dwarf2/read.c (dwarf2_section_size): Remove.
15384 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15386 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15388 2020-02-08 Tom Tromey <tom@tromey.com>
15390 * dwarf2/read.c (read_initial_length): Move to leb.c.
15391 * dwarf2/leb.h (read_initial_length): Declare.
15392 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15393 handle_nonstd parameter.
15394 * dwarf2/frame.c (read_initial_length): Remove.
15395 (decode_frame_entry_1): Update.
15397 2020-02-08 Tom Tromey <tom@tromey.com>
15399 * dwarf2/loc.c (dwarf2_find_location_expression)
15400 (dwarf_evaluate_loc_desc::get_tls_address)
15401 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15402 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15403 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15404 (dwarf2_compile_property_to_c)
15405 (dwarf2_loc_desc_get_symbol_read_needs)
15406 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15407 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15408 (loclist_describe_location, loclist_tracepoint_var_ref)
15409 (loclist_generate_c_location): Update.
15410 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15411 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15412 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15413 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15414 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15415 (dwarf2_per_cu_data::addr_size)
15416 (dwarf2_per_cu_data::ref_addr_size)
15417 (dwarf2_per_cu_data::text_offset)
15418 (dwarf2_per_cu_data::addr_type): Now methods.
15419 (per_cu_header_read_in): Make per_cu "const".
15420 (dwarf2_version): Remove.
15421 (dwarf2_per_cu_data::int_type): Now a method.
15422 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15423 (set_die_type, read_array_type, read_subrange_index_type)
15424 (read_tag_string_type, read_subrange_type): Update.
15425 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15426 offset_size, ref_addr_size, text_offset, addr_type, version,
15427 objfile, int_type, addr_sized_int_type>: Declare methods.
15429 2020-02-08 Tom Tromey <tom@tromey.com>
15431 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15434 2020-02-08 Tom Tromey <tom@tromey.com>
15436 * dwarf2/read.h (dwarf_line_debug): Declare.
15437 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15438 * dwarf2/read.c: Move line_header code to new files.
15439 (dwarf_line_debug): No longer static.
15440 * dwarf2/line-header.c: New file.
15441 * dwarf2/line-header.h: New file.
15443 2020-02-08 Tom Tromey <tom@tromey.com>
15445 * dwarf2/read.c (struct line_header) <file_full_name,
15446 file_file_name>: Return unique_xmalloc_ptr.
15447 (line_header::file_file_name): Update.
15448 (line_header::file_full_name): Update.
15449 (dw2_get_file_names_reader): Update.
15450 (macro_start_file): Update.
15452 2020-02-08 Tom Tromey <tom@tromey.com>
15454 * dwarf2/read.c (struct line_header) <file_full_name,
15455 file_file_name>: Declare methods.
15456 (dw2_get_file_names_reader): Update.
15457 (file_file_name): Now a method.
15458 (file_full_name): Likewise.
15459 (macro_start_file): Update.
15461 2020-02-08 Tom Tromey <tom@tromey.com>
15463 * dwarf2/read.c (dwarf_always_disassemble)
15464 (show_dwarf_always_disassemble): Move to loc.c.
15465 (_initialize_dwarf2_read): Move "always-disassemble" registration
15467 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15468 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15470 (show_dwarf_always_disassemble): Move from read.c.
15471 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15473 2020-02-08 Tom Tromey <tom@tromey.com>
15475 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15476 (create_quick_file_names_table): Return htab_up.
15477 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15479 * dwarf2/read.h (struct dwarf2_per_objfile)
15480 <quick_file_names_table>: Now htab_up.
15482 2020-02-08 Tom Tromey <tom@tromey.com>
15484 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15486 2020-02-08 Tom Tromey <tom@tromey.com>
15488 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15490 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15491 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15492 (abbrev_table::abbrev_table): No longer inline.
15493 (ABBREV_HASH_SIZE): Remove.
15494 (abbrev_table::m_abbrevs): Now an htab_up.
15496 2020-02-08 Tom Tromey <tom@tromey.com>
15498 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15499 (cutu_reader): Update.
15500 (build_type_psymtabs_1): Update.
15501 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15502 (abbrev_table::alloc_abbrev): Update.
15503 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15504 (abbrev_table::read): New static method, renamed from
15505 abbrev_table_read_table.
15506 (abbrev_table::alloc_abbrev)
15507 (abbrev_table::add_abbrev): Now private.
15508 (abbrev_table::abbrev_table): Now private.
15509 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15511 2020-02-08 Tom Tromey <tom@tromey.com>
15513 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15514 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15517 2020-02-08 Tom Tromey <tom@tromey.com>
15519 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15521 (lookup_dwo_unit_in_dwp): Update.
15522 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15525 2020-02-08 Tom Tromey <tom@tromey.com>
15527 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15530 2020-02-08 Tom Tromey <tom@tromey.com>
15532 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15534 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15535 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15536 Change type to htab_up.
15538 2020-02-08 Tom Tromey <tom@tromey.com>
15540 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15541 htab_up. Don't allocate on obstack.
15542 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15543 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15544 Change type to htab_up.
15546 2020-02-08 Tom Tromey <tom@tromey.com>
15548 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15549 Change type to htab_up.
15550 * dwarf2/read.c (create_signatured_type_table_from_index)
15551 (create_signatured_type_table_from_debug_names)
15552 (create_all_type_units, add_type_unit)
15553 (lookup_dwo_signatured_type, lookup_signatured_type)
15554 (process_skeletonless_type_unit): Update.
15555 (create_debug_type_hash_table, create_debug_types_hash_table):
15556 Change type of types_htab.
15557 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15558 htab_up. Don't allocate on obstack.
15559 (create_cus_hash_table): Change type of cus_htab parameter.
15560 (struct dwo_file) <cus, tus>: Now htab_up.
15561 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15562 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15563 (queue_and_load_all_dwo_tus): Update.
15564 * dwarf2/index-write.c (write_gdbindex): Update.
15565 (write_debug_names): Update.
15567 2020-02-08 Tom Tromey <tom@tromey.com>
15569 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15570 dwarf2/read.c. Remove "next" member. Add constructor ntad
15572 (struct dwarf2_per_objfile) <queue>: New member.
15573 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15575 (dwarf2_queue, dwarf2_queue_tail): Remove.
15576 (class dwarf2_queue_guard): Add parameter to constructor. Use
15577 DISABLE_COPY_AND_ASSIGN.
15578 <m_per_objfile>: New member.
15579 <~dwarf2_queue_guard>: Rewrite.
15580 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15582 (~dwarf2_queue_item): New.
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15586 * dwarf2/read.c (struct die_info) <has_children>: New member.
15587 (dw2_get_file_names_reader): Remove has_children.
15588 (dw2_get_file_names): Update.
15589 (read_cutu_die_from_dwo): Remove has_children.
15590 (cutu_reader::init_tu_and_read_dwo_dies)
15591 (cutu_reader::cutu_reader): Update.
15592 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15593 Remove has_children.
15594 (build_type_psymtabs_1, process_skeletonless_type_unit)
15595 (load_partial_comp_unit, load_full_comp_unit): Update.
15596 (create_dwo_cu_reader): Remove has_children.
15597 (create_cus_hash_table, read_die_and_children): Update.
15598 (read_full_die_1,read_full_die): Remove has_children.
15599 (read_signatured_type): Update.
15600 (class cutu_reader) <has_children>: Remove.
15602 2020-02-08 Tom Tromey <tom@tromey.com>
15604 * dwarf2/expr.c: Rename from dwarf2expr.c.
15605 * dwarf2/expr.h: Rename from dwarf2expr.h.
15606 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15607 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15608 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15609 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15610 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15611 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15612 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15613 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15614 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15615 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15616 * dwarf2/loc.c: Rename from dwarf2loc.c.
15617 * dwarf2/loc.h: Rename from dwarf2loc.h.
15618 * dwarf2/read.c: Rename from dwarf2read.c.
15619 * dwarf2/read.h: Rename from dwarf2read.h.
15620 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15621 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15622 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15623 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15624 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15625 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15626 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15627 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15628 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15629 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15630 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15631 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15632 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15634 * Makefile.in (COMMON_SFILES): Update.
15635 (HFILES_NO_SRCDIR): Update.
15637 2020-02-08 Tom Tromey <tom@tromey.com>
15639 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15640 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15642 2020-02-08 Tom Tromey <tom@tromey.com>
15644 * dwarf2read.h (struct die_info): Don't declare.
15646 2020-02-08 Tom Tromey <tom@tromey.com>
15648 * dwarf2read.h (die_info_ptr): Remove typedef.
15650 2020-02-08 Tom Tromey <tom@tromey.com>
15652 * dwarf2read.c (read_call_site_scope)
15653 (handle_data_member_location, dwarf2_add_member_fn)
15654 (mark_common_block_symbol_computed, read_common_block)
15655 (attr_to_dynamic_prop, partial_die_info::read)
15656 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15657 (dwarf2_symbol_mark_computed, set_die_type): Update.
15658 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15660 (attr_form_is_block): Don't declare.
15661 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15663 2020-02-08 Tom Tromey <tom@tromey.com>
15665 * dwarf2read.c (dwarf2_find_base_address, )
15666 (read_call_site_scope, rust_containing_type)
15667 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15668 (handle_data_member_location, dwarf2_add_member_fn)
15669 (get_alignment, read_structure_type, process_structure_scope)
15670 (mark_common_block_symbol_computed, read_common_block)
15671 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15672 (partial_die_info::read, read_attribute_value, new_symbol)
15673 (lookup_die_type, dwarf2_get_ref_die_offset)
15674 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15675 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15676 (dwarf2_symbol_mark_computed): Update.
15677 * dwarf2/attribute.h (struct attribute) <value_as_address,
15678 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15680 (value_as_address, attr_form_is_section_offset)
15681 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15682 * dwarf2/attribute.c (attribute::value_as_address)
15683 (attribute::form_is_section_offset, attribute::form_is_constant)
15684 (attribute::form_is_ref): Now methods.
15686 2020-02-08 Tom Tromey <tom@tromey.com>
15688 * dwarf2read.c (struct attribute, DW_STRING)
15689 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15690 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15691 (attr_form_is_block, attr_form_is_section_offset)
15692 (attr_form_is_constant, attr_form_is_ref): Move.
15693 * dwarf2/attribute.h: New file.
15694 * dwarf2/attribute.c: New file, from dwarf2read.c.
15695 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15697 2020-02-08 Tom Tromey <tom@tromey.com>
15699 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15700 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15702 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15703 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15704 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15706 * dwarf2/abbrev.h: New file.
15707 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15708 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15710 2020-02-08 Tom Tromey <tom@tromey.com>
15712 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15713 (dwarf2_section_size, dwarf2_get_section_info)
15714 (create_signatured_type_table_from_debug_names)
15715 (create_addrmap_from_aranges, read_debug_names_from_section)
15716 (get_gdb_index_contents_from_section, read_comp_unit_head)
15717 (error_check_comp_unit_head, read_abbrev_offset)
15718 (create_debug_type_hash_table, init_cu_die_reader)
15719 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15720 (read_comp_units_from_section, create_cus_hash_table)
15721 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15722 (create_dwp_v2_section, dwarf2_rnglists_process)
15723 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15724 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15725 (read_indirect_string_from_dwz, read_addr_index_1)
15726 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15727 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15728 (fill_in_loclist_baton): Update.
15729 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15730 get_containing_section, get_bfd_owner, get_bfd_section,
15731 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15732 (dwarf2_read_section, get_section_name, get_section_file_name)
15733 (get_containing_section, get_section_bfd_owner)
15734 (get_section_bfd_section, get_section_name, get_section_file_name)
15735 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15737 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15738 (dwarf2_section_info::get_bfd_owner)
15739 (dwarf2_section_info::get_bfd_section)
15740 (dwarf2_section_info::get_name)
15741 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15742 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15743 (dwarf2_section_info::read): Now methods.
15744 * dwarf-index-write.c (class debug_names): Update.
15746 2020-02-08 Tom Tromey <tom@tromey.com>
15748 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15749 Move to dwarf2/section.h.
15750 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15751 (get_section_bfd_section, get_section_name)
15752 (get_section_file_name, get_section_id, get_section_flags)
15753 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15755 * dwarf2/section.h: New file.
15756 * dwarf2/section.c: New file, from dwarf2read.c.
15757 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15759 2020-02-08 Tom Tromey <tom@tromey.com>
15761 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15762 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15763 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15764 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15765 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15766 * dwarf2/leb.h: New file, from dwarf2read.c.
15767 * dwarf2/leb.c: New file, from dwarf2read.c.
15768 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15770 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15771 (COMMON_SFILES): Add dwarf2/leb.c.
15773 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15777 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15780 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15781 * gdb/remote.c (remote_console_output): Update.
15782 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15783 (ui_file_puts): ...this.
15784 * gdb/ui-file.h (ui_file_puts): Add declaration.
15785 * gdb/utils.c (emit_style_escape): Update.
15786 (flush_wrap_buffer): Update.
15787 (fputs_maybe_filtered): Update.
15788 (fputs_unfiltered): Add function.
15790 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15792 * gdb/event-loop.c (gdb_wait_for_event): Update.
15793 * gdb/printcmd.c (printf_command): Update.
15794 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15795 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15796 (gdb_os_flush_stderr): Update.
15797 * gdb/remote.c (remote_console_output): Update.
15798 * gdb/ui-file.c (gdb_flush): Rename to...
15799 (ui_file_flush): ...this.
15800 (stderr_file::write): Update.
15801 (stderr_file::puts): Update.
15802 * gdb/ui-file.h (gdb_flush): Rename to...
15803 (ui_file_flush): ...this.
15804 * gdb/utils.c (gdb_flush): Add function.
15805 * gdb/utils.h (gdb_flush): Add declaration.
15807 2020-02-07 Tom Tromey <tromey@adacore.com>
15809 PR breakpoints/24915:
15810 * source.c (find_and_open_source): Do not check basenames_may_differ.
15812 2020-02-07 Tom Tromey <tom@tromey.com>
15814 * README: Update gdbserver documentation.
15815 * gdbserver: Move to top level.
15816 * configure.tgt (build_gdbserver): Remove.
15817 * configure.ac: Remove --enable-gdbserver.
15818 * configure: Rebuild.
15819 * Makefile.in (distclean): Don't mention gdbserver.
15821 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15823 * source-cache.c (source_cache::ensure): Surround
15824 get_plain_source_lines with a try/catch.
15825 (source_cache::get_line_charpos): Get rid of try/catch
15826 and only check for the return value of "ensure".
15827 * tui/tui-source.c (tui_source_window::set_contents):
15828 Simplify "nlines" calculation.
15830 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15832 * MAINTAINERS (Write After Approval): Add myself.
15834 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15836 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15839 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15841 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15843 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15845 * nat/riscv-linux-tdesc.h: New file.
15846 * nat/riscv-linux-tdesc.c: New file, taking code from...
15847 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15849 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15852 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15854 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15855 we don't set the fake simulator ptid to the null_ptid.
15857 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15859 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15860 * gdbthread.h (class thread_info) <resumed>: Likewise.
15861 * infrun.c (resume_1): Likewise.
15862 (proceed): Likewise.
15863 (infrun_thread_stop_requested): Likewise.
15864 (stop_all_threads): Likewise.
15865 (handle_inferior_event): Likewise.
15866 (restart_threads): Likewise.
15867 (finish_step_over): Likewise.
15868 (keep_going_stepped_thread): Likewise.
15869 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15870 (linux_handle_extended_wait): Likewise.
15871 * record-btrace.c (get_thread_current_frame_id): Likewise.
15872 * record-full.c (record_full_wait_1): Likewise.
15873 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15874 * target.c (target_resume): Likewise.
15875 * thread.c (set_running_thread): Likewise.
15877 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15879 * f-valprint.c (f77_print_array_1): Changed datatype of index
15880 variable to LONGEST from int to enable it to contain bound
15883 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15885 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15886 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15887 offsets according to FLEN determined.
15888 (riscv_linux_nat_target::read_description): Determine FLEN
15890 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15891 according to FLEN determined.
15892 (riscv_linux_nat_target::store_registers): Likewise.
15894 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15896 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15897 when reg->group is empty and reggroup is not.
15899 2020-01-31 Tom Tromey <tromey@adacore.com>
15901 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15902 Call beneath target's mourn_inferior after unpushing.
15904 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15907 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15908 have enough lines to fill the screen, still return the lowest
15911 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15913 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15914 '-', '<', and '>' commands.
15916 2020-01-29 Pedro Alves <palves@redhat.com>
15917 Sergio Durigan Junior <sergiodj@redhat.com>
15919 * infcmd.c (construct_inferior_arguments): Assert that
15920 'argc' is greater than 0.
15922 2020-01-29 Luis Machado <luis.machado@linaro.org>
15924 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15925 (BRK_INSN_MASK): Define to 0xd4200000.
15926 (aarch64_program_breakpoint_here_p): New function.
15927 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15928 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15930 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15932 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15933 call gdbarch_program_breakpoint_here_p.
15934 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15935 default_program_breakpoint_here_p, changed return type to bool and
15937 * breakpoint.h (program_breakpoint_here): Moved prototype to
15938 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15939 return type to bool.
15940 * gdbarch.c: Regenerate.
15941 * gdbarch.h: Regenerate.
15942 * gdbarch.sh (program_breakpoint_here_p): New method.
15943 * infrun.c (handle_signal_stop): Call
15944 gdbarch_program_breakpoint_here_p.
15946 2020-01-26 Tom Tromey <tom@tromey.com>
15948 * ctfread.c (struct ctf_fp_info): Reindent.
15949 (_initialize_ctfread): Remove.
15951 2020-01-26 Tom Tromey <tom@tromey.com>
15953 * psymtab.c (partial_map_expand_apply)
15954 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15955 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15956 (psym_print_stats, psym_expand_symtabs_for_function)
15957 (psym_map_symbol_filenames, psym_map_matching_symbols)
15958 (psym_expand_symtabs_matching)
15959 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15960 (maintenance_check_psymtabs): Use new methods.
15961 * psympriv.h (struct partial_symtab) <readin_p,
15962 get_compunit_symtab>: New methods.
15963 <readin, compunit_symtab>: Remove members.
15964 (struct standard_psymtab): New.
15965 (struct legacy_psymtab): Derive from standard_psymtab.
15966 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15968 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15970 2020-01-26 Tom Tromey <tom@tromey.com>
15972 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15973 read_dependencies. Add assert.
15974 * psymtab.c (partial_symtab::read_dependencies): New method.
15975 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15977 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15978 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15980 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15983 2020-01-26 Tom Tromey <tom@tromey.com>
15985 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15986 Call expand_psymtab.
15987 (xcoff_read_symtab): Call expand_psymtab.
15988 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15989 legacy_expand_psymtab.
15990 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15992 (struct legacy_psymtab) <expand_psymtab>: Implement.
15993 <legacy_expand_psymtab>: New member.
15994 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15995 (parse_partial_symbols): Set legacy_expand_psymtab.
15996 (psymtab_to_symtab_1): Change argument order. Call
15998 (new_psymtab): Set legacy_expand_psymtab.
15999 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16000 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16002 (dwarf2_psymtab::expand_psymtab): Rename from
16003 psymtab_to_symtab_1. Call expand_psymtab.
16004 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16005 (dbx_end_psymtab): Likewise.
16006 (dbx_psymtab_to_symtab_1): Change argument order. Call
16008 (dbx_read_symtab): Call expand_psymtab.
16009 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16010 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16011 (ctf_psymtab::read_symtab): Call expand_psymtab.
16013 2020-01-26 Tom Tromey <tom@tromey.com>
16015 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16016 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16018 * mdebugread.c (mdebug_read_symtab): Remove prints.
16019 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16021 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16023 2020-01-26 Tom Tromey <tom@tromey.com>
16025 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16026 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16027 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16029 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16030 * psymtab.c (psymtab_to_symtab): Call method.
16031 (dump_psymtab): Update.
16032 * psympriv.h (struct partial_symtab): Add virtual destructor.
16033 <read_symtab>: New method.
16034 (struct legacy_symtab): New.
16035 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16036 (struct pst_map) <pst>: Now a legacy_psymtab.
16037 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16038 (new_psymtab): Use legacy_psymtab.
16039 * dwarf2read.h (struct dwarf2_psymtab): New.
16040 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16041 * dwarf2read.c (dwarf2_create_include_psymtab)
16042 (dwarf2_build_include_psymtabs, create_type_unit_group)
16043 (create_partial_symtab, process_psymtab_comp_unit_reader)
16044 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16045 (set_partial_user): Use dwarf2_psymtab.
16046 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16047 (psymtab_to_symtab_1, process_full_comp_unit)
16048 (process_full_type_unit, dwarf2_ranges_read)
16049 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16050 (dwarf_decode_lines): Use dwarf2_psymtab.
16051 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16052 (add_address_entry_worker, write_one_signatured_type)
16053 (recursively_count_psymbols, recursively_write_psymbols)
16054 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16055 (write_debug_names): Likewise.
16056 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16057 <pst>: Now a legacy_psymtab.
16058 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16059 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16060 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16061 * ctfread.c (struct ctf_psymtab): New.
16062 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16064 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16065 (create_partial_symtab): Return a ctf_psymtab.
16066 (scan_partial_symbols): Update.
16068 2020-01-26 Tom Tromey <tom@tromey.com>
16070 * xcoffread.c (xcoff_start_psymtab): Use new.
16071 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16072 renamed from start_psymtab_common.
16073 * psympriv.h (struct partial_symtab): Add new constructor.
16074 (start_psymtab_common): Don't declare.
16075 * mdebugread.c (parse_partial_symbols): Use new.
16076 * dwarf2read.c (create_partial_symtab): Use new.
16077 * dbxread.c (start_psymtab): Use new.
16078 * ctfread.c (create_partial_symtab): Use new.
16080 2020-01-26 Tom Tromey <tom@tromey.com>
16082 * xcoffread.c (xcoff_end_psymtab): Use new.
16083 * psymtab.c (start_psymtab_common): Use new.
16084 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16086 * psympriv.h (struct partial_symtab): Add parameters to
16087 constructor. Don't inline.
16088 (allocate_psymtab): Don't declare.
16089 * mdebugread.c (new_psymtab): Use new.
16090 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16091 * dbxread.c (dbx_end_psymtab): Use new.
16093 2020-01-26 Tom Tromey <tom@tromey.com>
16095 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16096 allocate_psymtab. Update documentation.
16097 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16098 allocate_psymtab. Do not use new.
16099 (allocate_psymtab): Use new. Update.
16101 2020-01-26 Tom Tromey <tom@tromey.com>
16103 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16104 * psymtab.c (psym_print_stats): Update.
16105 * psympriv.h (struct partial_symtab) <readin,
16106 psymtabs_addrmap_supported, anonymous>: Now bool.
16107 * mdebugread.c (psymtab_to_symtab_1): Update.
16108 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16109 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16110 (process_full_comp_unit, process_full_type_unit): Update.
16111 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16112 * ctfread.c (psymtab_to_symtab): Update.
16114 2020-01-26 Tom Tromey <tom@tromey.com>
16116 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16117 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16118 * psymtab.c (psymtab_storage): Delete psymtabs.
16119 (psymtab_storage::allocate_psymtab): Use new.
16120 (psymtab_storage::discard_psymtab): Use delete.
16121 * psympriv.h (struct partial_symtab): Add constructor and
16124 2020-01-26 Tom Tromey <tom@tromey.com>
16126 * machoread.c: Do not include psympriv.h.
16128 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16130 * NEWS: Mention the new option and the set/show commands.
16132 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16134 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16135 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16136 (validate_exec_file): New variables, enums, functions.
16137 (exec_file_locate_attach, print_section_info): Style the filenames.
16138 (_initialize_exec): Install show_exec_file_mismatch_command and
16139 set_exec_file_mismatch_command.
16140 * gdbcore.h (validate_exec_file): Declare.
16141 * infcmd.c (attach_command): Call validate_exec_file.
16142 * remote.c ( remote_target::remote_add_inferior): Likewise.
16144 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16146 * frame.c (find_frame_sal): Move call to get_next_frame into more
16148 * inline-frame.c (inilne_state) <inline_state>: Update argument
16150 (inilne_state) <skipped_symbol>: Rename to...
16151 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16152 (skip_inline_frames): Build vector of skipped symbols and use this
16153 to reate the inline_state.
16154 (inline_skipped_symbol): Add a comment and some assertions, fetch
16155 skipped symbol from the list.
16157 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16159 * buildsym.c (lte_is_less_than): Delete.
16160 (buildsym_compunit::end_symtab_with_blockvector): Create local
16161 lambda function to sort line table entries, and use
16162 std::stable_sort instead of std::sort.
16163 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16164 markers when looking for a previous line.
16166 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16168 * dwarf2read.c (lnp_state_machine::record_line): Include
16169 end_sequence parameter in debug print out. Record the line if we
16170 are at an end_sequence marker even if it's not the start of a
16172 * symmisc.c (maintenance_print_one_line_table): Print end of
16173 sequence markers with 'END' not '0'.
16175 2020-01-24 Pedro Alves <palves@redhat.com>
16178 * thread.c (scoped_restore_current_thread::restore): Use
16179 switch_to_inferior_no_thread.
16180 * exec.c: Include "progspace-and-thread.h".
16181 (add_target_sections, remove_target_sections):
16182 scoped_restore_current_pspace_and_thread instead of
16183 scoped_restore_current_thread.
16184 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16185 and aspace to the inferior before calling clone_program_space.
16186 Remove stale comment.
16188 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16190 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16191 (arm_netbsd_nat_target::fetch_registers): ...this.
16192 (arm_nbsd_nat_target::store_registers): Rename to...
16193 (arm_netbsd_nat_target::store_registers): ...this.
16195 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16197 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16200 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16202 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16204 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16206 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16207 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16208 the correct replacement (iterate_over_regset_sections).
16209 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16212 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16215 * gdb/python/python.c (execute_gdb_command): Call
16216 async_enable_stdin in catch block.
16218 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16220 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16221 SWITCH_THRU_ALL_UIS.
16223 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16226 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16227 comment, add extra parameter, and update to store previous symbol
16229 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16230 add extra parameter.
16231 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16232 remove unneeded parameter, add try/catch around gdb_print_insn,
16233 rewrite to add items to asm_lines vector.
16234 (tui_find_backward_disassembly_start_address): New function.
16235 (tui_find_disassembly_address): Updated throughout.
16236 (tui_disasm_window::set_contents): Update for changes to
16238 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16239 number of lines to scroll.
16241 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16243 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16244 (SECT_OFF_DATA): Likewise.
16245 (SECT_OFF_RODATA): Likewise.
16246 (SECT_OFF_TEXT): Likewise.
16247 (SECT_OFF_BSS): Likewise.
16248 (struct objfile) <text_section_offset, data_section_offset>: New
16250 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16251 objfile::text_section_offset.
16252 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16253 * coffread.c (coff_symtab_read): Likewise.
16254 (enter_linenos): Likewise.
16255 (process_coff_symbol): Likewise.
16256 * ctfread.c (get_objfile_text_range): Likewise.
16257 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16258 Use objfile::data_section_offset.
16259 * dwarf2-frame.c (execute_cfa_program): Use
16260 objfile::text_section_offset.
16261 (dwarf2_frame_find_fde): Likewise.
16262 * dwarf2read.c (create_addrmap_from_index): Likewise.
16263 (create_addrmap_from_aranges): Likewise.
16264 (dw2_find_pc_sect_compunit_symtab): Likewise.
16265 (process_psymtab_comp_unit_reader): Likewise.
16266 (add_partial_symbol): Likewise.
16267 (add_partial_subprogram): Likewise.
16268 (process_full_comp_unit): Likewise.
16269 (read_file_scope): Likewise.
16270 (read_func_scope): Likewise.
16271 (read_lexical_block_scope): Likewise.
16272 (read_call_site_scope): Likewise.
16273 (dwarf2_rnglists_process): Likewise.
16274 (dwarf2_ranges_process): Likewise.
16275 (dwarf2_ranges_read): Likewise.
16276 (dwarf_decode_lines_1): Likewise.
16277 (new_symbol): Likewise.
16278 (dwarf2_fetch_die_loc_sect_off): Likewise.
16279 (dwarf2_per_cu_text_offset): Likewise.
16280 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16281 * hppa-tdep.c (read_unwind_info): Likewise.
16282 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16283 * psympriv.h (struct partial_symtab): Likewise.
16284 * psymtab.c (find_pc_sect_psymtab): Likewise.
16285 * solib-svr4.c (enable_break): Likewise.
16286 * stap-probe.c (relocate_address): Use
16287 objfile::data_section_offset.
16288 * xcoffread.c (enter_line_range): Use
16289 objfile::text_section_offset.
16290 (read_xcoff_symtab): Likewise.
16292 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16294 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16295 declaration to narrower scopes.
16297 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16299 * darwin-nat.h (struct darwin_exception_msg, enum
16300 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16302 (class darwin_nat_target) <wait_1, check_new_threads,
16303 decode_exception_message, decode_message, stop_inferior,
16304 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16305 * darwin-nat.c (darwin_check_new_threads): Rename to...
16306 (darwin_nat_target::check_new_threads): ... this.
16307 (darwin_suspend_inferior_it): Remove.
16308 (darwin_decode_exception_message): Rename to...
16309 (darwin_nat_target::decode_exception_message): ... this.
16310 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16311 (darwin_decode_message): Rename to...
16312 (darwin_nat_target::decode_message): ... this.
16313 (cancel_breakpoint): Rename to...
16314 (darwin_nat_target::cancel_breakpoint): ... this.
16315 (darwin_wait): Rename to...
16316 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16317 instead of iterate_over_inferiors.
16318 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16319 (darwin_stop_inferior): Rename to...
16320 (darwin_nat_target::stop_inferior): ... this.
16321 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16322 (darwin_init_thread_list): Rename to...
16323 (darwin_nat_target::init_thread_list): ... this.
16324 (darwin_ptrace_him): Rename to...
16325 (darwin_nat_target::ptrace_him): ... this.
16326 (darwin_nat_target::create_inferior): Pass lambda function to
16328 (darwin_nat_target::detach): Call stop_inferior instead of
16329 darwin_stop_inferior.
16330 * fork-inferior.h (fork_inferior): Change init_trace_fun
16331 parameter to gdb::function_view.
16332 * fork-inferior.c (fork_inferior): Likewise.
16334 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16336 * i386-cygwin-tdep.c (core_process_module_section): Update.
16337 * windows-nat.c (struct lm_info_windows): Add text_offset.
16338 (windows_xfer_shared_libraries): Update.
16339 * windows-tdep.c (windows_xfer_shared_library):
16340 Add text_offset_cached argument.
16341 * windows-tdep.h (windows_xfer_shared_library): Update.
16343 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16345 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16347 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16349 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16350 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16351 replace with range-based for.
16352 (gdbsim_interrupt_inferior): Remove.
16353 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16354 with a range-based for. Inline code from
16355 gdbsim_interrupt_inferior.
16357 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16359 * infrun.c (proceed): Fix indentation.
16361 2020-01-21 Tom Tromey <tromey@adacore.com>
16363 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16364 * python/python.c (python_extension_ops): Update.
16365 (gdbpy_colorize): New function.
16366 * python/lib/gdb/__init__.py (colorize): New function.
16367 * extension.h (ext_lang_colorize): Declare.
16368 * extension.c (ext_lang_colorize): New function.
16369 * extension-priv.h (struct extension_language_ops) <colorize>: New
16371 * cli/cli-style.c (_initialize_cli_style): Update help text.
16373 2020-01-21 Luis Machado <luis.machado@linaro.org>
16375 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16376 <cond>: Change type to bool.
16377 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16378 (aarch64_displaced_step_cb): Likewise.
16379 (aarch64_displaced_step_tb): Likewise.
16381 2020-01-21 Luis Machado <luis.machado@linaro.org>
16383 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16386 2020-01-21 Luis Machado <luis.machado@linaro.org>
16388 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16389 <pc_adjust>: Adjust the documentation.
16390 (aarch64_displaced_step_fixup): Check if PC really moved before
16393 2020-01-19 Tom Tromey <tom@tromey.com>
16395 * disasm.c (~gdb_disassembler): New destructor.
16396 (gdb_buffered_insn_length): Call disassemble_free_target.
16397 * disasm.h (class gdb_disassembler): Declare destructor. Use
16398 DISABLE_COPY_AND_ASSIGN.
16400 2020-01-19 Tom Tromey <tom@tromey.com>
16402 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16403 (die_reader_func_ftype): Remove.
16404 (cutu_reader): New class.
16405 (dw2_get_file_names_reader): Remove "data" parameter.
16406 (dw2_get_file_names): Use cutu_reader.
16407 (create_debug_type_hash_table): Update.
16408 (read_cutu_die_from_dwo): Update comment.
16409 (lookup_dwo_unit): Add dwo_name parameter.
16410 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16411 die_reader_func_ftype and data parameters.
16412 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16413 Remove die_reader_func_ftype and data parameters.
16414 (~cutu_reader): New; from init_cutu_and_read_dies.
16415 (cutu_reader::cutu_reader): Rename from
16416 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16417 and data parameters.
16418 (init_cutu_and_read_dies_simple): Remove.
16419 (struct process_psymtab_comp_unit_data): Remove.
16420 (process_psymtab_comp_unit_reader): Remove data parameter; add
16421 want_partial_unit and pretend_language parameters.
16422 (process_psymtab_comp_unit): Use cutu_reader.
16423 (build_type_psymtabs_reader): Remove data parameter.
16424 (build_type_psymtabs_1): Use cutu_reader.
16425 (process_skeletonless_type_unit): Likewise.
16426 (load_partial_comp_unit_reader): Remove.
16427 (load_partial_comp_unit): Use cutu_reader.
16428 (load_full_comp_unit_reader): Remove.
16429 (load_full_comp_unit): Use cutu_reader.
16430 (struct create_dwo_cu_data): Remove.
16431 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16432 dwo_unit parameters.
16433 (create_cus_hash_table): Use cutu_reader.
16434 (struct dwarf2_read_addr_index_data): Remove.
16435 (dwarf2_read_addr_index_reader): Remove.
16436 (dwarf2_read_addr_index): Use cutu_reader.
16437 (read_signatured_type_reader): Remove.
16438 (read_signatured_type): Use cutu_reader.
16440 2020-01-19 Tom Tromey <tom@tromey.com>
16442 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16443 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16444 (tui_wrefresh): Declare.
16445 * tui/tui-wingeneral.c (suppress_output): New global.
16446 (tui_suppress_output, ~tui_suppress_output): New constructor and
16448 (tui_wrefresh): New function.
16449 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16450 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16451 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16453 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16455 (tui_data_window::no_refresh): New method.
16456 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16457 (tui_reg_command): Use tui_suppress_output
16458 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16459 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16461 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16463 2020-01-19 Tom Tromey <tom@tromey.com>
16465 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16466 Handle case where symtab is null.
16468 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16470 * linux-fork.c (one_fork_p): Simplify.
16472 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16474 * top.c (struct qt_args): Remove.
16475 (kill_or_detach): Change return type to void, replace `void *`
16476 parameter with a proper one.
16477 (print_inferior_quit_action): Likewise.
16478 (quit_confirm): Use range-based for loop to iterate over inferiors.
16479 (quit_force): Likewise.
16481 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16483 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16484 `void *` parameter with proper parameters.
16485 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16486 (print_one_inferior): Change return type to void, replace `void *`
16487 parameter with proper parameters.
16488 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16490 (get_other_inferior): Remove.
16491 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16494 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16496 * mi/mi-interp.c (report_initial_inferior): Remove.
16497 (mi_interp::init): Use range-based for to iterate over inferiors.
16499 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16501 * python/py-inferior.c (build_inferior_list): Remove.
16502 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16504 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16506 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16507 (btrace_stitch_trace): Likewise.
16508 * charset.c (intermediate_encoding): Likewise (vaild).
16509 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16510 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16511 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16513 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16515 * windows-tdep.c (windows_get_tlb_type):
16516 Add rtl_user_process_parameters type.
16518 2020-01-16 Pedro Alves <palves@redhat.com>
16519 Norbert Lange <nolange79@gmail.com>
16522 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16523 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16524 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16525 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16526 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16527 (ps_plog): Redeclare exported functions with default visibility.
16529 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16531 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16532 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16534 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16536 * infcmd.c (post_create_inferior): Use get_thread_regcache
16537 instead of get_current_regcache.
16539 2020-01-14 Tom Tromey <tom@tromey.com>
16542 * python/python.c (gdbpy_decode_line): Treat empty string the same
16545 2020-01-14 Tom Tromey <tom@tromey.com>
16547 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16549 2020-01-14 Tom Tromey <tom@tromey.com>
16551 * nat/linux-btrace.c: Don't include <config.h>.
16552 * nat/linux-ptrace.c: Don't include <config.h>.
16553 * nat/x86-linux-dregs.c: Don't include <config.h>.
16555 2020-01-14 Tom Tromey <tom@tromey.com>
16557 * configure: Rebuild.
16558 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16560 2020-01-14 Tom Tromey <tom@tromey.com>
16562 * nat/x86-linux-dregs.c: Include configh.h.
16563 * nat/linux-ptrace.c: Include configh.h.
16564 * nat/linux-btrace.c: Include configh.h.
16565 * defs.h: Include config.h, bfd.h.
16566 * configure.ac: Don't source common.host.
16567 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16568 * configure: Rebuild.
16569 * acinclude.m4: Update path.
16570 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16571 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16572 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16573 (CLIBS): Add LIBSUPPORT.
16575 (COMMON_SFILES): Remove gdbsupport files.
16576 (HFILES_NO_SRCDIR): Likewise.
16577 (stamp-version): Update path to create-version.sh.
16578 (ALLDEPFILES): Remove gdbsupport files.
16580 2020-01-14 Tom Tromey <tom@tromey.com>
16582 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16583 USE_WIN32API when needed.
16584 * configure.ac (USE_WIN32API): Don't define.
16585 (WIN32LIBS): Use WIN32APILIBS.
16586 * configure: Rebuild.
16588 2020-01-14 Tom Tromey <tom@tromey.com>
16590 * configure: Rebuild.
16591 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16593 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16595 * skip.c (skip_function_command): Make skip w/o arguments use the
16596 name of the inlined function if pc is inside any inlined function.
16598 2020-01-14 Luis Machado <luis.machado@linaro.org>
16600 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16601 * infrun.c (resume_1): Likewise.
16602 (handle_inferior_event): Remove stale comment.
16603 * linux-nat.c (linux_nat_target::resume): Update comments.
16604 (save_stop_reason): Likewise.
16605 (linux_nat_filter_event): Likewise.
16606 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16608 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16610 * elfread.c (record_minimal_symbol): Set section index to 0 for
16611 non-allocatable sections.
16614 2020-01-13 Ali Tamur <tamur@google.com>
16616 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16617 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16618 to gdb::optional. Update comments.
16619 (dwo_file): Update comments.
16620 (read_attribute): Update API to take an additional out parameter,
16621 need_reprocess. This is used to mark attributes that need other
16622 attributes (e.g. str_offsets_base) for correct computation which may not
16623 have been read yet.
16624 (read_attribute_reprocess): New function declaration.
16625 (read_addr_index): Likewise.
16626 (read_dwo_str_index): Likewise.
16627 (read_stub_str_index): Likewise.
16628 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16629 (lookup_addr_base): New function definition.
16630 (lookup_ranges_base): Likewise.
16631 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16632 lookup_ranges_base.
16633 (init_cutu_and_read_dies): Update comments.
16634 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16635 unit. This is used to inherit parent's str_offsets_base and addr_base.
16637 (init_cutu_and_read_dies_simple): Reflect API changes.
16638 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16639 (create_cus_hash_table): Change API to take parent compile unit.
16640 Reflect API changes.
16641 (open_and_init_dwo_file): Reflect API changes.
16642 (dwarf2_get_pc_bounds): Update comments.
16643 (dwarf2_record_block_ranges): Likewise.
16644 (read_full_die_1): Change implementation to reprocess attributes that
16645 need str_offsets_base and addr_base.
16646 (partial_die_info::read): Likewise.
16647 (read_attribute_reprocess): New function definition.
16648 (read_attribute_value): Change API to take an additional out parameter,
16649 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16650 when a non-dwo compile unit has index based attributes.
16651 (read_attribute): Reflect API changes.
16652 (read_addr_index_1): Reflect API changes. Update comments.
16653 (dwarf2_read_addr_index_data): Reflect API changes.
16654 (dwarf2_read_addr_index): Likewise.
16655 (read_str_index): Change API and implementation. This becomes a helper
16656 to be used by the new string index related methods. Update error
16657 message and comments.
16658 (read_dwo_str_index): New function definition.
16659 (read_stub_str_index): Likewise.
16660 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16661 * symfile.h (dwarf2_debug_sections): Likewise.
16662 * xcoffread.c (dwarf2_debug_sections): Likewise.
16664 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16666 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16667 core_reg_sect type to gdb_byte *.
16668 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16669 * cris-tdep.c (fetch_core_registers): Likewise.
16670 * corelow.c (core_target::get_core_register_section): Change
16671 type of `contents` to gdb::byte_vector.
16673 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16675 * tui/tui-wingeneral.c (box_win): Position the title in the center
16678 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16680 * corelow.c (core_target::get_core_register_section): Use
16681 std::vector instead of alloca.
16683 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16685 * warning.m4: Add -Wmissing-declarations to build_warnings.
16686 * configure: Re-generate.
16688 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16690 * python/python.c (init__gdb_module): Add declaration.
16692 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16694 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16695 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16696 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16697 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16698 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16699 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16700 * ada-exp.y (_initialize_ada_exp): Add declaration.
16701 * ada-lang.c (_initialize_ada_language): Add declaration.
16702 * ada-tasks.c (_initialize_tasks): Add declaration.
16703 * agent.c (_initialize_agent): Add declaration.
16704 * aix-thread.c (_initialize_aix_thread): Add declaration.
16705 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16706 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16707 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16708 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16709 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16710 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16711 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16712 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16713 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16714 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16715 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16716 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16717 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16718 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16719 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16720 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16721 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16722 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16723 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16724 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16725 * annotate.c (_initialize_annotate): Add declaration.
16726 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16727 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16728 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16729 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16730 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16731 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16732 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16733 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16734 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16735 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16736 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16737 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16738 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16739 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16740 * auto-load.c (_initialize_auto_load): Add declaration.
16741 * auxv.c (_initialize_auxv): Add declaration.
16742 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16743 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16744 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16745 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16746 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16747 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16748 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16749 * breakpoint.c (_initialize_breakpoint): Add declaration.
16750 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16751 * btrace.c (_initialize_btrace): Add declaration.
16752 * charset.c (_initialize_charset): Add declaration.
16753 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16754 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16755 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16756 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16757 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16758 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16759 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16760 * coffread.c (_initialize_coffread): Add declaration.
16761 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16762 * compile/compile.c (_initialize_compile): Add declaration.
16763 * complaints.c (_initialize_complaints): Add declaration.
16764 * completer.c (_initialize_completer): Add declaration.
16765 * copying.c (_initialize_copying): Add declaration.
16766 * corefile.c (_initialize_core): Add declaration.
16767 * corelow.c (_initialize_corelow): Add declaration.
16768 * cp-abi.c (_initialize_cp_abi): Add declaration.
16769 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16770 * cp-support.c (_initialize_cp_support): Add declaration.
16771 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16772 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16773 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16774 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16775 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16776 * ctfread.c (_initialize_ctfread): Add declaration.
16777 * d-lang.c (_initialize_d_language): Add declaration.
16778 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16779 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16780 * dbxread.c (_initialize_dbxread): Add declaration.
16781 * dcache.c (_initialize_dcache): Add declaration.
16782 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16783 * disasm.c (_initialize_disasm): Add declaration.
16784 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16785 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16786 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16787 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16788 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16789 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16790 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16791 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16792 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16793 * elfread.c (_initialize_elfread): Add declaration.
16794 * exec.c (_initialize_exec): Add declaration.
16795 * extension.c (_initialize_extension): Add declaration.
16796 * f-lang.c (_initialize_f_language): Add declaration.
16797 * f-valprint.c (_initialize_f_valprint): Add declaration.
16798 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16799 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16800 * filesystem.c (_initialize_filesystem): Add declaration.
16801 * findcmd.c (_initialize_mem_search): Add declaration.
16802 * findvar.c (_initialize_findvar): Add declaration.
16803 * fork-child.c (_initialize_fork_child): Add declaration.
16804 * frame-base.c (_initialize_frame_base): Add declaration.
16805 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16806 * frame.c (_initialize_frame): Add declaration.
16807 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16808 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16809 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16810 * gcore.c (_initialize_gcore): Add declaration.
16811 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16812 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16813 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16814 * gdbarch.c (_initialize_gdbarch): Add declaration.
16815 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16816 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16817 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16818 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16819 * go-lang.c (_initialize_go_language): Add declaration.
16820 * go32-nat.c (_initialize_go32_nat): Add declaration.
16821 * guile/guile.c (_initialize_guile): Add declaration.
16822 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16823 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16824 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16825 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16826 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16827 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16828 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16829 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16830 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16831 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16832 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16833 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16834 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16835 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16836 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16837 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16838 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16839 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16840 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16841 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16842 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16843 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16844 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16845 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16846 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16847 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16848 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16849 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16850 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16851 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16852 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16853 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16854 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16855 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16856 * infcall.c (_initialize_infcall): Add declaration.
16857 * infcmd.c (_initialize_infcmd): Add declaration.
16858 * inflow.c (_initialize_inflow): Add declaration.
16859 * infrun.c (_initialize_infrun): Add declaration.
16860 * interps.c (_initialize_interpreter): Add declaration.
16861 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16862 * jit.c (_initialize_jit): Add declaration.
16863 * language.c (_initialize_language): Add declaration.
16864 * linux-fork.c (_initialize_linux_fork): Add declaration.
16865 * linux-nat.c (_initialize_linux_nat): Add declaration.
16866 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16867 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16868 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16869 * m2-lang.c (_initialize_m2_language): Add declaration.
16870 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16871 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16872 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16873 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16874 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16875 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16876 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16877 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16878 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16879 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16880 * machoread.c (_initialize_machoread): Add declaration.
16881 * macrocmd.c (_initialize_macrocmd): Add declaration.
16882 * macroscope.c (_initialize_macroscope): Add declaration.
16883 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16884 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16885 * maint.c (_initialize_maint_cmds): Add declaration.
16886 * mdebugread.c (_initialize_mdebugread): Add declaration.
16887 * memattr.c (_initialize_mem): Add declaration.
16888 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16889 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16890 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16891 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16892 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16893 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16894 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16895 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16896 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16897 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16898 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16899 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16900 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16901 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16902 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16903 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16904 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16905 * mipsread.c (_initialize_mipsread): Add declaration.
16906 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16907 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16908 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16909 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16910 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16911 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16912 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16913 * nto-procfs.c (_initialize_procfs): Add declaration.
16914 * objc-lang.c (_initialize_objc_language): Add declaration.
16915 * observable.c (_initialize_observer): Add declaration.
16916 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16917 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16918 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16919 * osabi.c (_initialize_gdb_osabi): Add declaration.
16920 * osdata.c (_initialize_osdata): Add declaration.
16921 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16922 * parse.c (_initialize_parse): Add declaration.
16923 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16924 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16925 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16926 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16927 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16928 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16929 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16930 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16931 * printcmd.c (_initialize_printcmd): Add declaration.
16932 * probe.c (_initialize_probe): Add declaration.
16933 * proc-api.c (_initialize_proc_api): Add declaration.
16934 * proc-events.c (_initialize_proc_events): Add declaration.
16935 * proc-service.c (_initialize_proc_service): Add declaration.
16936 * procfs.c (_initialize_procfs): Add declaration.
16937 * producer.c (_initialize_producer): Add declaration.
16938 * psymtab.c (_initialize_psymtab): Add declaration.
16939 * python/python.c (_initialize_python): Add declaration.
16940 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16941 * record-btrace.c (_initialize_record_btrace): Add declaration.
16942 * record-full.c (_initialize_record_full): Add declaration.
16943 * record.c (_initialize_record): Add declaration.
16944 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16945 * regcache.c (_initialize_regcache): Add declaration.
16946 * reggroups.c (_initialize_reggroup): Add declaration.
16947 * remote-notif.c (_initialize_notif): Add declaration.
16948 * remote-sim.c (_initialize_remote_sim): Add declaration.
16949 * remote.c (_initialize_remote): Add declaration.
16950 * reverse.c (_initialize_reverse): Add declaration.
16951 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16952 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16953 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16954 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16955 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16956 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16957 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16958 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16960 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16961 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16962 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16963 * rust-exp.y (_initialize_rust_exp): Add declaration.
16964 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16965 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16966 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16967 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16968 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16969 * score-tdep.c (_initialize_score_tdep): Add declaration.
16970 * ser-go32.c (_initialize_ser_dos): Add declaration.
16971 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16972 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16973 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16974 * ser-uds.c (_initialize_ser_socket): Add declaration.
16975 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16976 * serial.c (_initialize_serial): Add declaration.
16977 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16978 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16979 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16980 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16981 * skip.c (_initialize_step_skip): Add declaration.
16982 * sol-thread.c (_initialize_sol_thread): Add declaration.
16983 * solib-aix.c (_initialize_solib_aix): Add declaration.
16984 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16985 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16986 * solib-frv.c (_initialize_frv_solib): Add declaration.
16987 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16988 * solib-target.c (_initialize_solib_target): Add declaration.
16989 * solib.c (_initialize_solib): Add declaration.
16990 * source-cache.c (_initialize_source_cache): Add declaration.
16991 * source.c (_initialize_source): Add declaration.
16992 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16993 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16994 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16995 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16996 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16997 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16998 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16999 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17000 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17001 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17002 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17003 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17004 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17005 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17006 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17007 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17008 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17009 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17010 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17011 * stabsread.c (_initialize_stabsread): Add declaration.
17012 * stack.c (_initialize_stack): Add declaration.
17013 * stap-probe.c (_initialize_stap_probe): Add declaration.
17014 * std-regs.c (_initialize_frame_reg): Add declaration.
17015 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17016 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17017 * symfile.c (_initialize_symfile): Add declaration.
17018 * symmisc.c (_initialize_symmisc): Add declaration.
17019 * symtab.c (_initialize_symtab): Add declaration.
17020 * target.c (_initialize_target): Add declaration.
17021 * target-connection.c (_initialize_target_connection): Add
17023 * target-dcache.c (_initialize_target_dcache): Add declaration.
17024 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17025 * thread.c (_initialize_thread): Add declaration.
17026 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17027 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17028 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17029 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17030 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17031 * tracectf.c (_initialize_ctf): Add declaration.
17032 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17033 * tracefile.c (_initialize_tracefile): Add declaration.
17034 * tracepoint.c (_initialize_tracepoint): Add declaration.
17035 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17036 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17037 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17038 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17039 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17040 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17041 * tui/tui.c (_initialize_tui): Add declaration.
17042 * typeprint.c (_initialize_typeprint): Add declaration.
17043 * ui-style.c (_initialize_ui_style): Add declaration.
17044 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17045 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17046 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17047 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17048 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17049 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17050 * unittests/filtered_iterator-selftests.c
17051 (_initialize_filtered_iterator_selftests): Add declaration.
17052 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17053 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17054 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17055 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17056 * unittests/main-thread-selftests.c
17057 (_initialize_main_thread_selftests): Add declaration.
17058 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17059 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17060 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17061 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17062 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17063 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17064 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17065 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17066 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17067 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17068 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17069 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17070 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17071 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17072 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17074 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17075 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17076 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17077 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17078 * user-regs.c (_initialize_user_regs): Add declaration.
17079 * utils.c (_initialize_utils): Add declaration.
17080 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17081 * valops.c (_initialize_valops): Add declaration.
17082 * valprint.c (_initialize_valprint): Add declaration.
17083 * value.c (_initialize_values): Add declaration.
17084 * varobj.c (_initialize_varobj): Add declaration.
17085 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17086 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17087 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17088 * windows-nat.c (_initialize_windows_nat): Add declaration.
17089 (_initialize_check_for_gdb_ini): Add declaration.
17090 (_initialize_loadable): Add declaration.
17091 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17092 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17093 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17094 * xcoffread.c (_initialize_xcoffread): Add declaration.
17095 * xml-support.c (_initialize_xml_support): Add declaration.
17096 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17097 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17098 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17099 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17101 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17103 * regformats/regdat.sh: Generate declaration for init function.
17105 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17107 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17109 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17110 close_one_inferior>: New methods.
17111 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17112 pass down target to find_inferior_pid.
17113 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17114 Pass down target to find_inferior_ptid.
17115 (gdbsim_target::create_inferior): Pass down target to
17117 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17118 target down to find_inferior_ptid and switch_to_thread.
17119 (gdbsim_target::close): Update to call close_one_inferior.
17120 (struct resume_data): Remove.
17121 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17122 directly, rather than through a void pointer.
17123 (gdbsim_target::resume): Update to call resume_one_inferior.
17125 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17127 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17129 2020-01-12 Pedro Alves <palves@redhat.com>
17131 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17132 directly for the current inferior instead of
17133 discard_all_inferiors.
17134 (discard_all_inferiors): Delete.
17136 2020-01-11 Tom Tromey <tom@tromey.com>
17138 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17139 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17140 deprecated_safe_get_selected_frame.
17142 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17144 * inferior.c (print_inferior): Switch inferior before printing it.
17146 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17147 Pedro Alves <palves@redhat.com>
17149 * progspace-and-thread.c (switch_to_program_space_and_thread):
17150 Assert there's an inferior for PSPACE. Use
17151 switch_to_inferior_no_thread to switch the inferior too.
17152 * progspace.c (program_space::~program_space): Call
17153 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17154 (program_space::free_all_objfiles): Don't call clear_symtab_users
17156 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17158 2020-01-10 Pedro Alves <palves@redhat.com>
17160 * NEWS: Mention multi-target debugging, "info connections", and
17161 "add-inferior -no-connection".
17163 2020-01-10 Pedro Alves <palves@redhat.com>
17165 * infrun.c: Include "target-connection.h".
17166 (check_multi_target_resumption): New.
17167 (proceed): Call it.
17168 * target-connection.c (make_target_connection_string): Make
17170 * target-connection.h (make_target_connection_string): Declare.
17172 2020-01-10 Pedro Alves <palves@redhat.com>
17174 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17175 * inferior.c (uiout_field_connection): New function.
17176 (print_inferior): Add new "connection-id" column.
17177 (add_inferior_command): Show connection number/string of added
17179 * process-stratum-target.h
17180 (process_stratum_target::connection_string): New virtual method.
17181 (process_stratum_target::connection_number): New field.
17182 * remote.c (remote_target::connection_string): New override.
17183 * target-connection.c: New file.
17184 * target-connection.h: New file.
17185 * target.c (decref_target): Remove process_stratum targets from
17186 the connection list.
17187 (target_stack::push): Add process_stratum targets to the
17190 2020-01-10 Pedro Alves <palves@redhat.com>
17193 2016-04-12 Pedro Alves <palves@redhat.com>
17194 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17195 Remove references to name.
17196 * serial.h (struct serial) <name>: Delete.
17198 2020-01-10 Pedro Alves <palves@redhat.com>
17200 * gdbarch-selftests.c (register_to_value_test): Remove "target
17201 already pushed" check.
17203 2020-01-10 Pedro Alves <palves@redhat.com>
17204 John Baldwin <jhb@FreeBSD.org>
17206 * aarch64-linux-nat.c
17207 (aarch64_linux_nat_target::thread_architecture): Adjust.
17208 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17209 (task_command_1): Likewise.
17210 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17211 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17212 (aix_thread_target::store_registers)
17213 (aix_thread_target::thread_alive): Adjust.
17214 * amd64-fbsd-tdep.c: Include "inferior.h".
17215 (amd64fbsd_get_thread_local_address): Pass down target.
17216 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17217 thread's gdbarch instead of target_gdbarch.
17218 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17219 get_last_target_status.
17220 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17221 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17223 (update_inserted_breakpoint_locations): Skip if inferiors with no
17225 (update_global_location_list): When handling moribund locations,
17226 find representative inferior for location's pspace, and use thread
17227 count of its process_stratum target.
17228 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17229 * bsd-uthread.c (bsd_uthread_target::wait): Use
17230 as_process_stratum_target and adjust thread_change_ptid and
17232 (bsd_uthread_target::update_thread_list): Use
17233 as_process_stratum_target and adjust find_thread_ptid,
17234 thread_change_ptid and add_thread calls.
17235 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17236 find_thread_ptid call.
17237 * corelow.c (add_to_thread_list): Adjust add_thread call.
17238 (core_target_open): Adjust add_thread_silent and thread_count
17240 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17241 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17242 * event-top.c (async_disconnect): Pop targets from all inferiors.
17243 * exec.c (add_target_sections): Push exec target on all inferiors
17244 sharing the program space.
17245 (remove_target_sections): Remove the exec target from all
17246 inferiors sharing the program space.
17247 (exec_on_vfork): New.
17248 * exec.h (exec_on_vfork): Declare.
17249 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17251 (fbsd_nat_target::update_thread_list): Adjust.
17252 (fbsd_nat_target::resume): Adjust.
17253 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17255 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17256 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17257 get_thread_arch_regcache call.
17258 * fork-child.c (gdb_startup_inferior): Pass target down to
17259 startup_inferior and set_executing.
17260 * gdbthread.h (struct process_stratum_target): Forward declare.
17261 (add_thread, add_thread_silent, add_thread_with_info)
17262 (in_thread_list): Add process_stratum_target parameter.
17263 (find_thread_ptid(inferior*, ptid_t)): New overload.
17264 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17266 (all_threads()): Delete overload.
17267 (all_threads, all_non_exited_threads): Add process_stratum_target
17269 (all_threads_safe): Use brace initialization.
17270 (thread_count): Add process_stratum_target parameter.
17271 (set_resumed, set_running, set_stop_requested, set_executing)
17272 (threads_are_executing, finish_thread_state): Add
17273 process_stratum_target parameter.
17274 (switch_to_thread): Use is_current_thread.
17275 * i386-fbsd-tdep.c: Include "inferior.h".
17276 (i386fbsd_get_thread_local_address): Pass down target.
17277 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17278 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17279 have_inferiors check.
17280 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17281 (inf_ptrace_target::attach): Adjust.
17282 * infcall.c (run_inferior_call): Adjust.
17283 * infcmd.c (run_command_1): Pass target to
17284 scoped_finish_thread_state.
17285 (proceed_thread_callback): Skip inferiors with no execution.
17286 (continue_command): Rename 'all_threads' local to avoid hiding
17287 'all_threads' function. Adjust get_last_target_status call.
17288 (prepare_one_step): Adjust set_running call.
17289 (signal_command): Use user_visible_resume_target. Compare thread
17290 pointers instead of inferior_ptid.
17291 (info_program_command): Adjust to pass down target.
17292 (attach_command): Mark target's 'thread_executing' flag.
17293 (stop_current_target_threads_ns): New, factored out from ...
17294 (interrupt_target_1): ... this. Switch inferior before making
17297 (struct all_inferiors_iterator, struct all_inferiors_range)
17298 (struct all_inferiors_safe_range)
17299 (struct all_non_exited_inferiors_range): Filter on
17300 process_stratum_target too. Remove explicit.
17301 * inferior.c (inferior::inferior): Push dummy target on target
17303 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17304 Add process_stratum_target parameter, and pass it down.
17305 (have_live_inferiors): Adjust.
17306 (switch_to_inferior_and_push_target): New.
17307 (add_inferior_command, clone_inferior_command): Handle
17308 "-no-connection" parameter. Use
17309 switch_to_inferior_and_push_target.
17310 (_initialize_inferior): Mention "-no-connection" option in
17311 the help of "add-inferior" and "clone-inferior" commands.
17312 * inferior.h: Include "process-stratum-target.h".
17313 (interrupt_target_1): Use bool.
17314 (struct inferior) <push_target, unpush_target, target_is_pushed,
17315 find_target_beneath, top_target, process_target, target_at,
17317 (discard_all_inferiors): Delete.
17318 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17319 (all_inferiors, all_non_exited_inferiors): Add
17320 process_stratum_target parameter.
17321 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17322 (target_last_proc_target): New global.
17323 (follow_fork_inferior): Push target on new inferior. Pass target
17324 to add_thread_silent. Call exec_on_vfork. Handle target's
17326 (follow_fork): Adjust get_last_target_status call. Also consider
17328 (follow_exec): Push target on new inferior.
17329 (struct execution_control_state) <target>: New field.
17330 (user_visible_resume_target): New.
17331 (do_target_resume): Call target_async.
17332 (resume_1): Set target's threads_executing flag. Consider resume
17334 (commit_resume_all_targets): New.
17335 (proceed): Also consider resume target. Skip threads of inferiors
17336 with no execution. Commit resumtion in all targets.
17337 (start_remote): Pass current inferior to wait_for_inferior.
17338 (infrun_thread_stop_requested): Consider target as well. Pass
17339 thread_info pointer to clear_inline_frame_state instead of ptid.
17340 (infrun_thread_thread_exit): Consider target as well.
17341 (random_pending_event_thread): New inferior parameter. Use it.
17342 (do_target_wait): Rename to ...
17343 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17345 (threads_are_resumed_pending_p, do_target_wait): New.
17346 (prepare_for_detach): Adjust calls.
17347 (wait_for_inferior): New inferior parameter. Handle it. Use
17348 do_target_wait_1 instead of do_target_wait.
17349 (fetch_inferior_event): Adjust. Switch to representative
17350 inferior. Pass target down.
17351 (set_last_target_status): Add process_stratum_target parameter.
17352 Save target in global.
17353 (get_last_target_status): Add process_stratum_target parameter and
17355 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17356 (context_switch): Check inferior_ptid == null_ptid before calling
17358 (get_inferior_stop_soon): Pass down target.
17359 (wait_one): Rename to ...
17360 (poll_one_curr_target): ... this.
17361 (struct wait_one_event): New.
17363 (stop_all_threads): Adjust.
17364 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17366 (switch_back_to_stepped_thread): Also consider target.
17367 (print_stop_event): Update.
17368 (normal_stop): Update. Also consider the resume target.
17369 * infrun.h (wait_for_inferior): Remove declaration.
17370 (user_visible_resume_target): New declaration.
17371 (get_last_target_status, set_last_target_status): New
17372 process_stratum_target parameter.
17373 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17374 process_stratum_target parameter, and use it.
17375 (clear_inline_frame_state (thread_info*)): New.
17376 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17377 process_stratum_target parameter.
17378 (clear_inline_frame_state (thread_info*)): Declare.
17379 * linux-fork.c (delete_checkpoint_command): Pass target down to
17381 (checkpoint_command): Adjust.
17382 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17383 instead of just tweaking inferior_ptid.
17384 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17385 (exit_lwp): Pass target down to find_thread_ptid.
17386 (attach_proc_task_lwp_callback): Pass target down to
17387 add_thread/set_running/set_executing.
17388 (linux_nat_target::attach): Pass target down to
17389 thread_change_ptid.
17390 (get_detach_signal): Pass target down to find_thread_ptid.
17391 Consider last target status's target.
17392 (linux_resume_one_lwp_throw, resume_lwp)
17393 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17394 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17395 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17396 (linux_nat_target::async_wait_fd): New.
17397 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17399 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17400 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17401 * linux-thread-db.c (struct thread_db_info::process_target): New
17403 (add_thread_db_info): Save target.
17404 (get_thread_db_info): New process_stratum_target parameter. Also
17406 (delete_thread_db_info): New process_stratum_target parameter.
17408 (thread_from_lwp): Adjust to pass down target.
17409 (thread_db_notice_clone): Pass down target.
17410 (check_thread_db_callback): Pass down target.
17411 (try_thread_db_load_1): Always push the thread_db target.
17412 (try_thread_db_load, record_thread): Pass target down.
17413 (thread_db_target::detach): Pass target down. Always unpush the
17415 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17416 target down. Always unpush the thread_db target.
17417 (find_new_threads_callback, thread_db_find_new_threads_2)
17418 (thread_db_target::update_thread_list): Pass target down.
17419 (thread_db_target::pid_to_str): Pass current inferior down.
17420 (thread_db_target::get_thread_local_address): Pass target down.
17421 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17423 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17424 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17425 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17426 (procfs_init_inferior): Rename to ...
17427 (procfs_target::procfs_init_inferior): ... this and adjust.
17428 (procfs_target::create_inferior, procfs_notice_thread)
17429 (procfs_do_thread_registers): Adjust.
17430 * ppc-fbsd-tdep.c: Include "inferior.h".
17431 (ppcfbsd_get_thread_local_address): Pass down target.
17432 * proc-service.c (ps_xfer_memory): Switch current inferior and
17433 program space as well.
17434 (get_ps_regcache): Pass target down.
17435 * process-stratum-target.c
17436 (process_stratum_target::thread_address_space)
17437 (process_stratum_target::thread_architecture): Pass target down.
17438 * process-stratum-target.h
17439 (process_stratum_target::threads_executing): New field.
17440 (as_process_stratum_target): New.
17441 * ravenscar-thread.c
17442 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17443 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17445 * record-btrace.c (record_btrace_target::info_record): Adjust.
17446 (record_btrace_target::record_method)
17447 (record_btrace_target::record_is_replaying)
17448 (record_btrace_target::fetch_registers)
17449 (get_thread_current_frame_id, record_btrace_target::resume)
17450 (record_btrace_target::wait, record_btrace_target::stop): Pass
17452 * record-full.c (record_full_wait_1): Switch to event thread.
17454 * regcache.c (regcache::regcache)
17455 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17456 process_stratum_target parameter and handle it.
17457 (current_thread_target): New global.
17458 (get_thread_regcache): Add process_stratum_target parameter and
17459 handle it. Switch inferior before calling target method.
17460 (get_thread_regcache): Pass target down.
17461 (get_thread_regcache_for_ptid): Pass target down.
17462 (registers_changed_ptid): Add process_stratum_target parameter and
17464 (registers_changed_thread, registers_changed): Pass target down.
17465 (test_get_thread_arch_aspace_regcache): New.
17466 (current_regcache_test): Define a couple local test_target_ops
17467 instances and use them for testing.
17468 (readwrite_regcache): Pass process_stratum_target parameter.
17469 (cooked_read_test, cooked_write_test): Pass mock_target down.
17470 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17471 (get_thread_arch_aspace_regcache): Add process_stratum_target
17473 (regcache::target): New method.
17474 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17475 (regcache::registers_changed_ptid): Add process_stratum_target
17477 (regcache::m_target): New field.
17478 (registers_changed_ptid): Add process_stratum_target parameter.
17479 * remote.c (remote_state::supports_vCont_probed): New field.
17480 (remote_target::async_wait_fd): New method.
17481 (remote_unpush_and_throw): Add remote_target parameter.
17482 (get_current_remote_target): Adjust.
17483 (remote_target::remote_add_inferior): Push target.
17484 (remote_target::remote_add_thread)
17485 (remote_target::remote_notice_new_inferior)
17486 (get_remote_thread_info): Pass target down.
17487 (remote_target::update_thread_list): Skip threads of inferiors
17488 bound to other targets. (remote_target::close): Don't discard
17489 inferiors. (remote_target::add_current_inferior_and_thread)
17490 (remote_target::process_initial_stop_replies)
17491 (remote_target::start_remote)
17492 (remote_target::remote_serial_quit_handler): Pass down target.
17493 (remote_target::remote_unpush_target): New remote_target
17494 parameter. Unpush the target from all inferiors.
17495 (remote_target::remote_unpush_and_throw): New remote_target
17496 parameter. Pass it down.
17497 (remote_target::open_1): Check whether the current inferior has
17498 execution instead of checking whether any inferior is live. Pass
17500 (remote_target::remote_detach_1): Pass down target. Use
17501 remote_unpush_target.
17502 (extended_remote_target::attach): Pass down target.
17503 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17504 (remote_target::append_resumption): Pass down target.
17505 (remote_target::append_pending_thread_resumptions)
17506 (remote_target::remote_resume_with_hc, remote_target::resume)
17507 (remote_target::commit_resume): Pass down target.
17508 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17509 (remote_target::interrupt_query)
17510 (remote_target::remove_new_fork_children)
17511 (remote_target::check_pending_events_prevent_wildcard_vcont)
17512 (remote_target::remote_parse_stop_reply)
17513 (remote_target::process_stop_reply): Pass down target.
17514 (first_remote_resumed_thread): New remote_target parameter. Pass
17516 (remote_target::wait_as): Pass down target.
17517 (unpush_and_perror): New remote_target parameter. Pass it down.
17518 (remote_target::readchar, remote_target::remote_serial_write)
17519 (remote_target::getpkt_or_notif_sane_1)
17520 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17522 (remote_target::mourn_inferior): Pass down target. Use
17523 remote_unpush_target.
17524 (remote_target::core_of_thread)
17525 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17526 (remote_target::pid_to_exec_file)
17527 (remote_target::thread_handle_to_thread_info): Pass down target.
17528 (remote_target::async_wait_fd): New.
17529 * riscv-fbsd-tdep.c: Include "inferior.h".
17530 (riscv_fbsd_get_thread_local_address): Pass down target.
17531 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17532 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17533 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17535 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17536 * solib-svr4.c (enable_break): Pass down target.
17537 * spu-multiarch.c (parse_spufs_run): Pass down target.
17538 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17539 * target-delegates.c: Regenerate.
17540 * target.c (g_target_stack): Delete.
17541 (current_top_target): Return the current inferior's top target.
17542 (target_has_execution_1): Refer to the passed-in inferior's top
17544 (target_supports_terminal_ours): Check whether the initial
17545 inferior was already created.
17546 (decref_target): New.
17547 (target_stack::push): Incref/decref the target.
17548 (push_target, push_target, unpush_target): Adjust.
17549 (target_stack::unpush): Defref target.
17550 (target_is_pushed): Return bool. Adjust to refer to the current
17551 inferior's target stack.
17552 (dispose_inferior): Delete, and inline parts ...
17553 (target_preopen): ... here. Only dispose of the current inferior.
17554 (target_detach): Hold strong target reference while detaching.
17556 (target_thread_name): Add assertion.
17557 (target_resume): Pass down target.
17558 (target_ops::beneath, find_target_at): Adjust to refer to the
17559 current inferior's target stack.
17560 (get_dummy_target): New.
17561 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17562 has a thread running.
17563 (initialize_targets): Rename to ...
17564 (_initialize_target): ... this.
17565 * target.h: Include "gdbsupport/refcounted-object.h".
17566 (struct target_ops): Inherit refcounted_object.
17567 (target_ops::shortname, target_ops::longname): Make const.
17568 (target_ops::async_wait_fd): New method.
17569 (decref_target): Declare.
17570 (struct target_ops_ref_policy): New.
17571 (target_ops_ref): New typedef.
17572 (get_dummy_target): Declare function.
17573 (target_is_pushed): Return bool.
17574 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17575 (all_matching_threads_iterator::all_matching_threads_iterator):
17576 Handle filter target.
17577 * thread-iter.h (struct all_matching_threads_iterator, struct
17578 all_matching_threads_range, class all_non_exited_threads_range):
17579 Filter by target too. Remove explicit.
17580 * thread.c (threads_executing): Delete.
17581 (inferior_thread): Pass down current inferior.
17582 (clear_thread_inferior_resources): Pass down thread pointer
17584 (add_thread_silent, add_thread_with_info, add_thread): Add
17585 process_stratum_target parameter. Use it for thread and inferior
17587 (is_current_thread): New.
17588 (thread_info::deletable): Use it.
17589 (find_thread_ptid, thread_count, in_thread_list)
17590 (thread_change_ptid, set_resumed, set_running): New
17591 process_stratum_target parameter. Pass it down.
17592 (set_executing): New process_stratum_target parameter. Pass it
17593 down. Adjust reference to 'threads_executing'.
17594 (threads_are_executing): New process_stratum_target parameter.
17595 Adjust reference to 'threads_executing'.
17596 (set_stop_requested, finish_thread_state): New
17597 process_stratum_target parameter. Pass it down.
17598 (switch_to_thread): Also match inferior.
17599 (switch_to_thread): New process_stratum_target parameter. Pass it
17601 (update_threads_executing): Reimplement.
17602 * top.c (quit_force): Pop targets from all inferior.
17603 (gdb_init): Don't call initialize_targets.
17604 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17606 (windows_add_thread, windows_delete_thread): Adjust.
17607 (get_windows_debug_event): Rename to ...
17608 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17609 * tracefile-tfile.c (tfile_target_open): Pass down target.
17610 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17612 (switch_to_thread): Add process_stratum_target parameter.
17613 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17615 (mi_on_resume): Pass target down.
17616 * nat/fork-inferior.c (startup_inferior): Add
17617 process_stratum_target parameter. Pass it down.
17618 * nat/fork-inferior.h (startup_inferior): Add
17619 process_stratum_target parameter.
17620 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17622 2020-01-10 Pedro Alves <palves@redhat.com>
17624 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17625 directly. Instead find the first thread in the thread list and
17626 use switch_to_thread.
17628 2020-01-10 Pedro Alves <palves@redhat.com>
17630 * remote.c (remote_target::remote_add_inferior): Don't bind a
17631 process to the current inferior if the current inferior is already
17632 bound to a process.
17634 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17635 Pedro Alves <palves@redhat.com>
17637 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17638 If no process is specified, return null_ptid instead of
17640 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17641 TARGET_WAITKIND_SIGNALLED with no pid.
17643 2020-01-10 Pedro Alves <palves@redhat.com>
17645 * remote.c (first_remote_resumed_thread): New.
17646 (remote_target::wait_as): Use it as default event_ptid instead of
17649 2020-01-10 Pedro Alves <palves@redhat.com>
17651 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17653 2020-01-10 Pedro Alves <palves@redhat.com>
17655 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17658 2020-01-10 Pedro Alves <palves@redhat.com>
17660 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17661 ptid to get_last_target_status.
17662 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17663 ptid to get_last_target_status.
17664 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17665 get_last_target_status.
17666 (info_program_command): Don't pass a target_waitstatus to
17667 get_last_target_status.
17668 * infrun.c (init_wait_for_inferior): Use
17669 nullify_last_target_wait_ptid.
17670 (get_last_target_status): Handle nullptr arguments.
17671 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17672 (print_stop_event): Don't pass a ptid to get_last_target_status.
17673 (normal_stop): Don't pass a ptid to get_last_target_status.
17674 * infrun.h (get_last_target_status, set_last_target_status): Move
17675 comments here and update.
17676 (nullify_last_target_wait_ptid): Declare.
17677 * linux-fork.c (fork_load_infrun_state): Remove local extern
17678 declaration of nullify_last_target_wait_ptid.
17679 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17680 to get_last_target_status.
17682 2020-01-10 Pedro Alves <palves@redhat.com>
17684 * gdbthread.h (scoped_restore_current_thread)
17685 <dont_restore, restore, m_dont_restore>: Declare.
17686 * thread.c (thread_alive): Add assertion. Return bool.
17687 (switch_to_thread_if_alive): New.
17688 (prune_threads): Switch inferior/thread.
17689 (print_thread_info_1): Switch thread before calling target methods.
17690 (scoped_restore_current_thread::restore): New, factored out from
17692 (scoped_restore_current_thread::~scoped_restore_current_thread):
17694 (scoped_restore_current_thread::scoped_restore_current_thread):
17696 (thread_apply_all_command, thread_select): Use
17697 switch_to_thread_if_alive.
17698 * infrun.c (proceed, restart_threads, handle_signal_stop)
17699 (switch_back_to_stepped_thread): Switch current thread before
17700 calling target methods.
17702 2020-01-10 Pedro Alves <palves@redhat.com>
17704 * inferior.c (switch_to_inferior_no_thread): New function,
17705 factored out from ...
17706 (inferior_command): ... here.
17707 * inferior.h (switch_to_inferior_no_thread): Declare.
17708 * mi/mi-main.c (run_one_inferior): Use
17709 switch_to_inferior_no_thread.
17711 2020-01-10 Pedro Alves <palves@redhat.com>
17713 * infcmd.c (kill_command): Remove dead code.
17715 2020-01-10 Pedro Alves <palves@redhat.com>
17717 * remote.c (remote_target::mourn_inferior): No longer check
17718 whether the target is running.
17720 2020-01-10 Pedro Alves <palves@redhat.com>
17722 * corelow.c (core_target::has_execution): Change parameter type to
17724 * inferior.c (number_of_live_inferiors): Use
17725 inferior::has_execution instead of target_has_execution_1.
17726 * inferior.h (inferior::has_execution): New.
17727 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17728 inferior::has_execution instead of target_has_execution_1.
17729 * process-stratum-target.c
17730 (process_stratum_target::has_execution): Change parameter type to
17731 inferior pointer. Check the inferior's PID instead of
17733 * process-stratum-target.h
17734 (process_stratum_target::has_execution): Change parameter type to
17736 * record-full.c (record_full_core_target::has_execution): Change
17737 parameter type to inferior pointer.
17738 * target.c (target_has_execution_1): Change parameter type to
17740 (target_has_execution_current): Adjust.
17741 * target.h (target_ops::has_execution): Change parameter type to
17743 (target_has_execution_1): Change parameter type to inferior
17744 pointer. Change return type to bool.
17745 * tracefile.h (tracefile_target::has_execution): Change parameter
17746 type to inferior pointer.
17748 2020-01-10 Pedro Alves <palves@redhat.com>
17750 * exceptions.c (print_flush): Remove current_top_target() check.
17752 2020-01-10 Pedro Alves <palves@redhat.com>
17754 * remote.c (show_remote_exec_file): Show the current inferior's
17755 exec-file instead of the command variable's value.
17757 2020-01-10 Pedro Alves <palves@redhat.com>
17759 * record-full.c (record_full_resume_ptid): New global.
17760 (record_full_target::resume): Set it.
17761 (record_full_wait_1): Use record_full_resume_ptid instead of
17764 2020-01-10 Pedro Alves <palves@redhat.com>
17766 * gdbthread.h (scoped_restore_current_thread)
17767 <dont_restore, restore, m_dont_restore>: Declare.
17768 * thread.c (thread_alive): Add assertion. Return bool.
17769 (switch_to_thread_if_alive): New.
17770 (prune_threads): Switch inferior/thread.
17771 (print_thread_info_1): Switch thread before calling target methods.
17772 (scoped_restore_current_thread::restore): New, factored out from
17774 (scoped_restore_current_thread::~scoped_restore_current_thread):
17776 (scoped_restore_current_thread::scoped_restore_current_thread):
17778 (thread_apply_all_command, thread_select): Use
17779 switch_to_thread_if_alive.
17781 2020-01-10 George Barrett <bob@bob131.so>
17783 * stap-probe.c (stap_modify_semaphore): Don't check for null
17785 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17786 for null semaphores.
17788 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17790 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17791 all source windows, and maintain horizontal scroll status while
17794 2020-01-09 Tom Tromey <tom@tromey.com>
17797 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17798 update_source_window, not print_source_lines.
17800 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17802 * tui/tui.c (tui_enable): Register tui hooks after calling
17805 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17807 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17809 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17811 * thread.c (print_thread_info_1): Fix indentation.
17813 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17815 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17816 unique_xmalloc_ptr outside the if to always free the demangled name.
17818 2020-01-08 Tom Tromey <tromey@adacore.com>
17820 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17821 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17822 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17823 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17825 (section_offsets): New typedef.
17826 * symtab.c (fixup_section, get_msymbol_address): Update.
17827 * symmisc.c (dump_msymbols): Update.
17828 * symfile.h (relative_addr_info_to_section_offsets)
17829 (symfile_map_offsets_to_segments): Update.
17830 * symfile.c (build_section_addr_info_from_objfile)
17831 (init_objfile_sect_indices): Update.
17832 (struct place_section_arg): Change type of "offsets".
17833 (place_section): Update.
17834 (relative_addr_info_to_section_offsets): Change type of
17835 "section_offsets". Remove "num_sections" parameter.
17836 (default_symfile_offsets, syms_from_objfile_1)
17837 (set_objfile_default_section_offset): Update.
17838 (reread_symbols): No need to preserve section offsets by hand.
17839 (symfile_map_offsets_to_segments): Change type of "offsets".
17840 * stap-probe.c (relocate_address): Update.
17841 * stabsread.h (process_one_symbol): Update.
17842 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17843 (solib_target_relocate_section_addresses): Update.
17844 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17846 * solib-frv.c (frv_relocate_main_executable): Update.
17847 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17848 * solib-aix.c (solib_aix_get_section_offsets): Change return
17850 (solib_aix_solib_create_inferior_hook): Update.
17851 * remote.c (remote_target::get_offsets): Update.
17852 * psymtab.c (find_pc_sect_psymtab): Update.
17853 * psympriv.h (struct partial_symbol) <address, text_low,
17854 text_high>: Update.
17855 * objfiles.h (obj_section_offset): Update.
17856 (struct objfile) <section_offsets>: Change type.
17857 <num_sections>: Remove.
17858 (objfile_relocate): Update.
17859 * objfiles.c (entry_point_address_query): Update
17860 (relocate_one_symbol): Change type of "section_offsets".
17861 (objfile_relocate1, objfile_relocate1): Change type of
17863 (objfile_rebase1): Update.
17864 * mipsread.c (mipscoff_symfile_read): Update.
17865 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17867 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17868 (parse_external, psymtab_to_symtab_1): Update.
17869 * machoread.c (macho_symfile_offsets): Update.
17870 * ia64-tdep.c (ia64_find_unwind_table): Update.
17871 * hppa-tdep.c (read_unwind_info): Update.
17872 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17873 * dwarf2read.c (create_addrmap_from_index)
17874 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17875 (process_psymtab_comp_unit_reader, add_partial_symbol)
17876 (add_partial_subprogram, process_full_comp_unit)
17877 (read_file_scope, read_func_scope, read_lexical_block_scope)
17878 (read_call_site_scope, dwarf2_rnglists_process)
17879 (dwarf2_ranges_process, dwarf2_ranges_read)
17880 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17881 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17883 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17885 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17886 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17887 (process_one_symbol): Change type of "section_offsets".
17888 * ctfread.c (get_objfile_text_range): Update.
17889 * coffread.c (coff_symtab_read, enter_linenos)
17890 (process_coff_symbol): Update.
17891 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17892 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17894 2020-01-08 Tom Tromey <tromey@adacore.com>
17896 * dwarf2read.c (parse_macro_definition): Use std::string.
17897 (parse_macro_definition): Likewise.
17899 2020-01-08 Tom Tromey <tromey@adacore.com>
17901 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17902 (ATTR_ALLOC_CHUNK): Remove.
17904 2020-01-08 Tom Tromey <tromey@adacore.com>
17906 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17908 2020-01-08 Tom Tromey <tromey@adacore.com>
17910 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17911 (dwarf2_compute_name, open_dwo_file): Likewise.
17912 (process_enumeration_scope): Use std::vector.
17913 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17914 (partial_die_info::fixup, dwarf2_start_subfile)
17915 (guess_full_die_structure_name, dwarf2_name): Likewise.
17916 (determine_prefix): Update.
17917 (guess_full_die_structure_name): Make return type const.
17918 (partial_die_full_name): Return unique_xmalloc_ptr.
17919 (DW_FIELD_ALLOC_CHUNK): Remove.
17921 2020-01-07 Tom Tromey <tromey@adacore.com>
17924 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17926 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17928 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17930 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17932 * stack.c (print_frame_info): Move disassemble_next_line code
17933 inside source_print block.
17935 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17937 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17938 gdb/signals.h, as we are now using native signal symbols.
17940 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17942 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17943 overflow by an early check of content vs threshold.
17944 * tui/tui-source.c (tui_source_window::line_is_displayed):
17947 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17949 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17951 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17953 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17954 export table if no section contains it's RVA.
17956 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17958 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17960 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17962 * source.c (print_source_lines_base): Set last_line_listed.
17964 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17966 * tui/tui-disasm.c: Remove trailing spaces.
17968 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17969 Pedro Alves <palves@redhat.com>
17971 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17972 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17973 (windows_gdb_signal_to_target): New function, uses the above
17974 enumeration to convert GDB internal signal codes to equivalent
17976 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17977 * windows-nat.c: Include "gdb_wait.h".
17978 (get_windows_debug_event): Extract the fatal exception from the
17979 exit status and convert to the equivalent Posix signal number.
17980 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17981 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17982 * gdbsupport/gdb_wait.c: New file, implements
17983 windows_status_to_termsig.
17984 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17985 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17987 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17989 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17992 2020-01-05 Luis Machado <luis.machado@linaro.org>
17994 * aarch64-linux-nat.c
17995 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17996 and bfd_mach_aarch64.
17998 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18000 * ui-file.c (stdio_file::can_emit_style_escape)
18001 (tee_file::can_emit_style_escape): Ensure style is used also on
18002 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18004 * main.c (set_gdb_data_directory): Use file style to output the
18005 warning that the given pathname is not a directory.
18006 * top.c (show_history_filename, gdb_safe_append_history)
18007 (show_gdb_datadir): Use file style.
18009 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18011 * solib-target.c (struct lm_info_target):
18012 Change offsets to be a unique_xmalloc_ptr.
18013 (solib_target_relocate_section_addresses): Update.
18015 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18017 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18019 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18021 * MAINTAINERS (Write After Approval): Add myself.
18023 2020-01-02 Luis Machado <luis.machado@linaro.org>
18025 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18026 Cell BE architecture.
18027 * target.h (struct target_ops) <thread_architecture>: Likewise.
18029 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18031 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18033 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18035 * MAINTAINERS (Write After Approval): Add myself.
18037 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18039 * gdbarch.sh: Update copyright year range of generated files.
18041 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18043 Update copyright year range in all GDB files.
18045 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18047 * copyright.py: Convert to Python 3.
18049 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18051 * copyright.py: Adapt after move of gnulib directory from gdb
18052 directory to toplevel directory.
18054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18056 * copyright.py (main): Exit if run from the wrong directory.
18058 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18060 * top.c (print_gdb_version): Change copyright year to 2020.
18062 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18064 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18066 For older changes see ChangeLog-2019.
18072 version-control: never