Use thread_info_ref in enable_thread_stack_temporaries
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-11 Tom Tromey <tom@tromey.com>
2
3 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
4 Change type.
5
6 2020-12-11 Tom Tromey <tromey@adacore.com>
7
8 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
9 field.
10 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
11 (read_atcb): Use cpu_id_offset.
12
13 2020-12-10 Kevin Buettner <kevinb@redhat.com>
14
15 * ada-lang.c (ada_fold_name): Fix off-by-one error.
16
17 2020-12-10 Luis Machado <luis.machado@linaro.org>
18
19 * breakpoint.c (should_be_inserted): Don't output newline.
20
21 2020-12-10 Luis Machado <luis.machado@linaro.org>
22
23 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
24 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
25 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
26 * arch/aarch64.h: ... here.
27 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
28 (aarch64_maybe_swab128): New function.
29 (aarch64_sve_regs_copy_to_reg_buf)
30 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
31 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
32 the data field.
33 (TF_REG_VALUE_BYTES): New enum value.
34 (trad_frame_value_bytes_p): New function.
35 (trad_frame_set_value_bytes): New function.
36 (trad_frame_set_reg_value_bytes): New function.
37 (trad_frame_get_prev_register): Handle register values saved as bytes.
38 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
39 (struct trad_frame_saved_reg) <data>: New field.
40 (trad_frame_set_value_bytes): New prototype.
41 (trad_frame_value_bytes_p): New prototype.
42
43 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
44
45 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
46 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
47 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
48
49 2020-12-09 Tom Tromey <tromey@adacore.com>
50
51 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
52
53 2020-12-09 Tom Tromey <tromey@adacore.com>
54
55 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
56 and "denominator" to gdb_mpz. Handle block forms.
57 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
58 "denominator" to gdb_mpz.
59 (finish_fixed_point_type): Update.
60 (has_zero_over_zero_small_attribute): Update.
61
62 2020-12-09 Tom Tromey <tromey@adacore.com>
63
64 * expprint.c (op_name): Update.
65 * expression.h (enum exp_opcode): Update.
66 * std-operator.def: Add more opcodes.
67 * ada-operator.def, fortran-operator.def: Remove, moving contents
68 into std-operator.def.
69
70 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
73 Return {} instead of false.
74 (get_discrete_bounds): Compute high bound only if low bound is
75 valid.
76
77 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
78
79 PR 26875, PR 26901
80 * gdbtypes.c (get_discrete_low_bound): Make non-static.
81 (get_discrete_high_bound): Make non-static.
82 * gdbtypes.h (get_discrete_low_bound): New declaration.
83 (get_discrete_high_bound): New declaration.
84 * valarith.c (value_subscript): Only fetch high bound if
85 necessary.
86
87 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
88
89 * gdbtypes.c (get_discrete_bounds): Implement with
90 get_discrete_low_bound and get_discrete_high_bound.
91 (get_discrete_low_bound): New.
92 (get_discrete_high_bound): New.
93
94 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
95
96 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
97 callers.
98 * gdbtypes.c (get_discrete_bounds): Return bool.
99
100 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
101
102 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
103 (ada_value_slice): Adjust.
104 (pos_atr): Adjust.
105 * gdbtypes.c (get_discrete_bounds): Adjust.
106 (discrete_position): Return optional.
107 * gdbtypes.h (discrete_position): Return optional.
108
109 2020-12-07 Tom Tromey <tromey@adacore.com>
110
111 * maint.c (_initialize_maint_cmds): Use expression command
112 completer for "maint print type".
113
114 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
115
116 * completer.c (complete_explicit_location): Also add keywords
117 that start with '-' to the completion list.
118
119 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120
121 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
122 keyword may be followed by any keyword.
123 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
124 'toklen' in the case for "-force-condition".
125
126 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
127
128 * main.c (catch_command_errors): Add a flag parameter; invoke
129 `bpstat_do_actions` if the flag is set.
130 (execute_cmdargs): Update a call to `catch_command_errors`.
131
132 2020-12-07 Tom de Vries <tdevries@suse.de>
133
134 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
135
136 2020-12-06 Tom Tromey <tom@tromey.com>
137
138 PR ada/26999
139 * ada-lang.c (replace_operator_with_call): Rewrite.
140
141 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
142
143 PR breakpoints/27009
144 * s390-tdep.h (op_bc): Correct BC opcode value.
145
146 2020-12-06 Joel Brobecker <brobecker@adacore.com>
147
148 * gmp-utils.h (gdb_mpz::safe_export): New private method.
149 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
150 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
151 (gdb_mpz::safe_export): New method.
152 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
153 Update function description.
154 (check_as_integer_raises_out_of_range_error): New function.
155 (gdb_mpz_as_integer_out_of_range): New function.
156 (_initialize_gmp_utils_selftests): Register
157 gdb_mpz_as_integer_out_of_range as a selftest.
158
159 2020-12-05 Joel Brobecker <brobecker@adacore.com>
160
161 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
162 TARGET_CHAR_BIT.
163 (gdb_mpz::write): Likewise.
164
165 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
166
167 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
168 number of displaced step buffers.
169
170 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
171
172 * displaced-stepping.h (struct displaced_step_buffer): Rename
173 to...
174 (struct displaced_step_buffers): ... this.
175 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
176 <struct displaced_step_buffer>: New inner class.
177 <m_buffers>: New.
178 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
179 to...
180 (displaced_step_buffers::prepare): ... this, adjust for multiple
181 buffers.
182 (displaced_step_buffer::finish): Rename to...
183 (displaced_step_buffers::finish): ... this, adjust for multiple
184 buffers.
185 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
186 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
187 adjust for multiple buffers.
188 (displaced_step_buffer::restore_in_ptid): Rename to...
189 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
190 multiple buffers.
191 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
192 for num_disp_step_buffers.
193 * linux-tdep.c (struct linux_gdbarch_data)
194 <num_disp_step_buffers>: New field.
195 (struct linux_info) <disp_step_buf>: Rename to...
196 <disp_step_bufs>: ... this, change type to
197 displaced_step_buffers.
198 (linux_displaced_step_prepare): Use
199 linux_gdbarch_data::num_disp_step_buffers to create that number
200 of buffers.
201 (linux_displaced_step_finish): Adjust.
202 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
203 (linux_displaced_step_restore_all_in_ptid): Adjust.
204 (linux_init_abi): Change supports_displaced_step parameter for
205 num_disp_step_buffers, save it in linux_gdbarch_data.
206 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
207 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
208 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
209 supports_displaced_step parameter for num_disp_step_buffers.
210 (amd64_linux_init_abi): Adjust.
211 (amd64_x32_linux_init_abi): Adjust.
212 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
213 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
214 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
215 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
216 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
217 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
218 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
219 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
220 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
221 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
222 * m68k-linux-tdep.c (m68k_linux_init_abi):
223 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
224 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
225 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
226 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
227 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
228 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
229 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
230 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
231 Change type to displaced_step_buffers.
232 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
233 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
234 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
235 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
236 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
237 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
238 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
239
240 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
241
242 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
243 obkstack.
244 (_initialize_linux_tdep): Register pre-init gdb data instead of
245 post-init.
246
247 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
248
249 * displaced-stepping.h (struct
250 displaced_step_copy_insn_closure): Adjust comments.
251 (struct displaced_step_inferior_state) <step_thread,
252 step_gdbarch, step_closure, step_original, step_copy,
253 step_saved_copy>: Remove fields.
254 (struct displaced_step_thread_state): New.
255 (struct displaced_step_buffer): New.
256 * displaced-stepping.c (displaced_step_buffer::prepare): New.
257 (write_memory_ptid): Move from infrun.c.
258 (displaced_step_instruction_executed_successfully): New,
259 factored out of displaced_step_finish.
260 (displaced_step_buffer::finish): New.
261 (displaced_step_buffer::copy_insn_closure_by_addr): New.
262 (displaced_step_buffer::restore_in_ptid): New.
263 * gdbarch.sh (displaced_step_location): Remove.
264 (displaced_step_prepare, displaced_step_finish,
265 displaced_step_copy_insn_closure_by_addr,
266 displaced_step_restore_all_in_ptid): New.
267 * gdbarch.c: Re-generate.
268 * gdbarch.h: Re-generate.
269 * gdbthread.h (class thread_info) <displaced_step_state>: New
270 field.
271 (thread_step_over_chain_remove): New declaration.
272 (thread_step_over_chain_next): New declaration.
273 (thread_step_over_chain_length): New declaration.
274 * thread.c (thread_step_over_chain_remove): Make non-static.
275 (thread_step_over_chain_next): New.
276 (global_thread_step_over_chain_next): Use
277 thread_step_over_chain_next.
278 (thread_step_over_chain_length): New.
279 (global_thread_step_over_chain_enqueue): Add debug print.
280 (global_thread_step_over_chain_remove): Add debug print.
281 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
282 Remove.
283 * infrun.c (get_displaced_stepping_state): New.
284 (displaced_step_in_progress_any_inferior): Remove.
285 (displaced_step_in_progress_thread): Adjust.
286 (displaced_step_in_progress): Adjust.
287 (displaced_step_in_progress_any_thread): New.
288 (get_displaced_step_copy_insn_closure_by_addr): Remove.
289 (gdbarch_supports_displaced_stepping): Use
290 gdbarch_displaced_step_prepare_p.
291 (displaced_step_reset): Change parameter from inferior to
292 thread.
293 (displaced_step_prepare_throw): Implement using
294 gdbarch_displaced_step_prepare.
295 (write_memory_ptid): Move to displaced-step.c.
296 (displaced_step_restore): Remove.
297 (displaced_step_finish): Implement using
298 gdbarch_displaced_step_finish.
299 (start_step_over): Allow starting more than one displaced step.
300 (prepare_for_detach): Handle possibly multiple threads doing
301 displaced steps.
302 (handle_inferior_event): Handle possibility that fork event
303 happens while another thread displaced steps.
304 * linux-tdep.h (linux_displaced_step_prepare): New.
305 (linux_displaced_step_finish): New.
306 (linux_displaced_step_copy_insn_closure_by_addr): New.
307 (linux_displaced_step_restore_all_in_ptid): New.
308 (linux_init_abi): Add supports_displaced_step parameter.
309 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
310 (linux_displaced_step_prepare): New.
311 (linux_displaced_step_finish): New.
312 (linux_displaced_step_copy_insn_closure_by_addr): New.
313 (linux_displaced_step_restore_all_in_ptid): New.
314 (linux_init_abi): Add supports_displaced_step parameter,
315 register displaced step methods if true.
316 (_initialize_linux_tdep): Register inferior_execd observer.
317 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
318 supports_displaced_step parameter, adjust call to
319 linux_init_abi. Remove call to
320 set_gdbarch_displaced_step_location.
321 (amd64_linux_init_abi): Adjust call to
322 amd64_linux_init_abi_common.
323 (amd64_x32_linux_init_abi): Likewise.
324 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
325 linux_init_abi. Remove call to
326 set_gdbarch_displaced_step_location.
327 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
328 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
329 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
330 linux_init_abi.
331 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
332 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
333 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
334 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
335 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
336 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
337 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
338 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
339 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
340 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
341 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
342 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
343 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
344 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
345 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
346 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
347 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
348 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
349 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
350 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
351 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
352 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
353 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
354 linux_init_abi. Remove call to
355 set_gdbarch_displaced_step_location.
356 * arm-tdep.c (arm_pc_is_thumb): Call
357 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
358 get_displaced_step_copy_insn_closure_by_addr.
359 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
360 clear gdbarch methods.
361 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
362 (get_ppc_per_inferior): New function.
363 (ppc_displaced_step_prepare): New function.
364 (ppc_displaced_step_finish): New function.
365 (ppc_displaced_step_restore_all_in_ptid): New function.
366 (rs6000_gdbarch_init): Register new gdbarch methods.
367 * s390-tdep.c (s390_gdbarch_init): Don't call
368 set_gdbarch_displaced_step_location, set new gdbarch methods.
369
370 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
371
372 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
373 * aarch64-tdep.h: Include displaced-stepping.h.
374 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
375 Move here.
376 (displaced_step_copy_insn_closure_up): Move here.
377 (struct buf_displaced_step_copy_insn_closure): Move here.
378 (struct displaced_step_inferior_state): Move here.
379 (debug_displaced): Move here.
380 (displaced_debug_printf_1): Move here.
381 (displaced_debug_printf): Move here.
382 * displaced-stepping.c: New file.
383 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
384 * gdbarch.h: Re-generate.
385 * inferior.h: Include displaced-stepping.h.
386 * infrun.h (debug_displaced): Move to displaced-stepping.h.
387 (displaced_debug_printf_1): Likewise.
388 (displaced_debug_printf): Likewise.
389 (struct displaced_step_copy_insn_closure): Likewise.
390 (displaced_step_copy_insn_closure_up): Likewise.
391 (struct buf_displaced_step_copy_insn_closure): Likewise.
392 (struct displaced_step_inferior_state): Likewise.
393 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
394 (displaced_debug_printf_1): Likewise.
395 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
396 Likewise.
397 (_initialize_infrun): Don't register "set/show debug displaced".
398
399 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
400
401 * linux-tdep.c (get_linux_inferior_data): Add inferior
402 parameter.
403 (linux_vsyscall_range): Pass current inferior.
404
405 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
406
407 * infrun.c (displaced_step_prepare_throw): Change return type to
408 displaced_step_prepare_status.
409 (displaced_step_prepare): Likewise.
410 (displaced_step_finish): Change return type to
411 displaced_step_finish_status.
412 (resume_1): Adjust.
413 (stop_all_threads): Adjust.
414 * displaced-stepping.h: New file.
415
416 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
417
418 * infrun.c (displaced_step_fixup): Rename to...
419 (displaced_step_finish): ... this, update all callers.
420
421 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
422
423 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
424 (get_displaced_step_copy_insn_closure_by_addr): ... this.
425 Update all users.
426 (displaced_step_closure): Rename to...
427 (displaced_step_copy_insn_closure): ... this. Update all users.
428 (displaced_step_closure_up): Rename to...
429 (displaced_step_copy_insn_closure_up). ... this. Update all
430 users.
431 (buf_displaced_step_closure): Rename to...
432 (buf_displaced_step_copy_insn_closure): ... this. Update all
433 users.
434 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
435 (get_displaced_step_copy_insn_closure_by_addr): ... this.
436 Update all users.
437 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
438 (aarch64_displaced_step_copy_insn_closure): ... this. Update
439 all users.
440 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
441 (amd64_displaced_step_copy_insn_closure): ... this. Update all
442 users.
443 * arm-tdep.h (arm_displaced_step_closure): Rename to...
444 (arm_displaced_step_copy_insn_closure): ... this. Update all
445 users.
446 * i386-tdep.h (i386_displaced_step_closure): Rename to...
447 (i386_displaced_step_copy_insn_closure): ... this. Update all
448 users.
449 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
450 (ppc_displaced_step_copy_insn_closure): ... this. Update all
451 users.
452 * s390-tdep.c (s390_displaced_step_closure): Rename to...
453 (s390_displaced_step_copy_insn_closure): ... this. Update all
454 users.
455 * gdbarch.h: Re-generate.
456 * gdbarch.c: Re-generate.
457
458 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
459
460 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
461 (global_thread_step_over_chain_enqueue): ... this. Update all
462 users.
463 (thread_step_over_chain_remove): Rename to...
464 (global_thread_step_over_chain_remove): ... this. Update all
465 users.
466 (thread_step_over_chain_next): Rename to...
467 (global_thread_step_over_chain_next): ... this. Update all
468 users.
469 * infrun.h (step_over_queue_head): Rename to...
470 (global_thread_step_over_chain_head): ... this. Update all
471 users.
472 * infrun.c (step_over_queue_head): Rename to...
473 (global_thread_step_over_chain_head): ... this. Update all
474 users.
475 * thread.c (step_over_chain_remove): Rename to...
476 (thread_step_over_chain_remove): ... this. Update all users.
477 (thread_step_over_chain_next): Rename to...
478 (global_thread_step_over_chain_next): ... this. Update all
479 users.
480 (thread_step_over_chain_enqueue): Rename to...
481 (global_thread_step_over_chain_enqueue): ... this. Update all
482 users.
483 (thread_step_over_chain_remove): Rename to...
484 (global_thread_step_over_chain_remove): ... this. Update all
485 users.
486
487 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * infrun.c (get_displaced_stepping_state): Remove, change
490 callers to access the field directly.
491
492 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * infrun.c (handle_inferior_event): Restore displaced step
495 buffer bytes in child process when handling fork, even if fork
496 happened in another thread than the displaced-stepping one.
497
498 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
499
500 * infrun.c (infrun_inferior_execd): New function.
501 (_initialize_infrun): Attach inferior_execd observer.
502
503 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
504
505 * observable.h (inferior_execd): Declare new observable.
506 * observable.c (inferior_execd): Declare new observable.
507 * infrun.c (follow_exec): Notify inferior_execd observer.
508 * jit.c (jit_inferior_created_hook): Make static.
509 (_initialize_jit): Register inferior_execd observer.
510 * jit.h (jit_inferior_created_hook): Remove declaration.
511 * solib.c (_initialize_solib): Register inferior_execd observer.
512
513 2020-12-04 Tom de Vries <tdevries@suse.de>
514
515 PR gdb/27003
516 * completer.c (completion_tracker::build_completion_result): Don't
517 access match_list[0][-1].
518
519 2020-12-04 Tom Tromey <tromey@adacore.com>
520
521 * linespec.c (struct linespec_token): Rename; remove typedef.
522 * guile/scm-block.c (struct block_smob): Remove typedef.
523 (struct block_syms_progress_smob): Likewise.
524 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
525 * guile/scm-symtab.c (symtab_smob): Remove typedef.
526 (struct sal_smob): Remove typedef.
527 * guile/scm-param.c (struct param_smob): Remove typedef.
528 * guile/scm-progspace.c (struct pspace_smob): Rename.
529 * guile/scm-objfile.c (struct objfile_smob): Rename.
530 * guile/scm-iterator.c (struct iterator_smob): Rename.
531 * guile/scm-frame.c (struct frame_smob): Rename.
532 * guile/scm-arch.c (struct arch_smob): Rename.
533 * guile/scm-type.c (struct field_smob): Remove typedef.
534 (struct type_smob): Rename.
535 * guile/scm-cmd.c (struct command_smob): Remove typedef.
536 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
537 * guile/scm-value.c (struct value_smob): Remove typedef.
538 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
539 * guile/guile-internal.h (struct scheme_variable)
540 (struct scheme_function, struct scheme_integer_constant)
541 (struct gdb_smob, struct chained_gdb_smob)
542 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
543 (objfile_smob, pspace_smob, type_smob): Remove typedef.
544 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
545 (struct pretty_printer_worker_smob): Remove typedef.
546 * guile/scm-exception.c (struct exception_smob): Remove typedef.
547 * python/py-block.c (struct block_object): Remove typedef.
548 (block_syms_iterator_object): Update.
549 (set_block): Update.
550 (block_syms_iterator_object): Remove typedef.
551 * python/py-inferior.c (struct membuf_object): Remove typedef.
552 * python/py-symtab.c (struct symtab_object): Remove typedef.
553 (set_symtab): Update.
554 (sal_object): Remove typedef.
555 (set_sal): Update.
556 * python/py-frame.c (frame_object): Remove typedef.
557 * python/py-record-btrace.c (struct btpy_list_object): Remove
558 typedef.
559 * python/py-arch.c (struct arch_object): Remove typedef.
560 * python/py-linetable.c (struct linetable_entry_object)
561 (linetable_object, struct ltpy_iterator_object): Remove typedef.
562 * python/py-events.h (eventregistry_object): Remove typedef.
563 (struct events_object): Remove typedef.
564 * python/python-internal.h (gdbpy_breakpoint_object): Remove
565 typedef.
566 (thread_object): Remove typedef.
567 * python/py-progspace.c (pspace_object): Remove typedef.
568 * python/py-value.c (struct value_object): Remove typedef.
569 * python/py-record.h (recpy_record_object): Remove typedef.
570 (struct recpy_element_object): Remove typedef.
571 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
572 * python/py-objfile.c (objfile_object): Remove typedef.
573 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
574 * python/py-type.c (type_object): Remove typedef.
575 (typy_iterator_object): Update.
576 (set_type): Update.
577 (field_object): Remove typedef.
578 (typy_iterator_object): Remove typedef.
579 * python/py-registers.c (register_descriptor_iterator_object):
580 Remove typedef.
581 (struct register_descriptor_object)
582 (struct reggroup_iterator_object, struct reggroup_object): Remove
583 typedef.
584 * python/py-record.c (recpy_gap_object): Remove typedef.
585 * python/py-symbol.c (symbol_object): Remove typedef.
586 (set_symbol): Update.
587 * python/py-event.h (event_object): Remove typedef.
588 * python/py-param.c (parmpy_object): Remove typedef.
589 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
590 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
591 (unwind_info_object, struct cached_frame_info): Likewise.
592
593 2020-12-04 Tom Tromey <tromey@adacore.com>
594
595 * value.c (value_internal_function_name): Make return type const.
596 * value.h (value_internal_function_name): Make return type const.
597
598 2020-12-04 Luis Machado <luis.machado@linaro.org>
599
600 * aarch64-tdep.c (submask, bit, bits): Remove.
601 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
602 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
603 (aarch64_decode_cb, aarch64_decode_tb)
604 (aarch64_decode_ldr_literal): Use sbits to extract a signed
605 immediate.
606 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
607
608 2020-12-04 Tom de Vries <tdevries@suse.de>
609
610 PR tdep/27007
611 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
612
613 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
614
615 PR gdb/26876
616 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
617 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
618
619 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * arch/riscv.c: Include 'rv32e-xregs.c'.
622 (riscv_create_target_description): Update to handle rv32e.
623 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
624 member variable.
625 <operator==>: Update to account for new field.
626 <hash>: Likewise.
627 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
628 * features/riscv/rv32e-xregs.c: Generated.
629 * features/riscv/rv32e-xregs.xml: New file.
630 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
631 file.
632 (riscv_debug_infcall): Likewise.
633 (riscv_debug_unwinder): Likewise.
634 (riscv_debug_gdbarch): Likewise.
635 (enum riscv_register_required_status): Delete.
636 (struct riscv_register_feature): Add constructor, delete default
637 constructor, copy, and assign constructors.
638 (struct riscv_register_feature::register_info) <required>: Delete.
639 <check>: Update comment and arguments.
640 (struct riscv_register_feature) <name>: Change to member function.
641 <prefer_first_name>: Delete.
642 <tdesc_feature>: New member function.
643 <registers>: Rename to...
644 <m_registers>: ...this.
645 <m_feature_name>: New member variable.
646 (riscv_register_feature::register_info::check): Update arguments.
647 (riscv_xreg_feature): Rewrite as class, create a single static
648 instance of the class.
649 (riscv_freg_feature): Likewise.
650 (riscv_virtual_feature): Likewise.
651 (riscv_csr_feature): Likewise.
652 (riscv_create_csr_aliases): Has become a member function inside
653 riscv_csr_feature class.
654 (riscv_abi_embedded): New function definition.
655 (riscv_register_name): Adjust to use new feature objects.
656 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
657 and adjust available argument registers.
658 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
659 (riscv_check_tdesc_feature): Delete.
660 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
661 (riscv_gdbarch_init): Delete target description checking code, and
662 instead call to the new feature objects to perform the checks.
663 Reorder handling of no abi information case, allows small code
664 simplification.
665 (_initialize_riscv_tdep): Remove call, this is now done in the
666 riscv_csr_feature constructor.
667 * riscv-tdep.h (riscv_abi_embedded): Declare.
668
669 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
672 DECLARE_CSR_ALIAS.
673
674 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * riscv-tdep.c (riscv_is_unknown_csr): New function,
677 implementation moved from riscv_register_reggroup_p.
678 (riscv_register_reggroup_p): Update group handling for unknown
679 CSRs.
680
681 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
682
683 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
684 (dwarf2_get_dwz_file): Convert 'filename' to a
685 std::string. Use dwz_search_other_debugdirs to search for DWZ
686 files in the debug-file-directories provided by the user as well.
687
688 2020-12-01 Tom Tromey <tom@tromey.com>
689
690 * parse.c (expr_builder::expr_builder): Initialize expout.
691 (expr_builder::release): Use expression::resize.
692 (expression::expression, expression::~expression)
693 (expression::resize): New methods.
694 (write_exp_elt): Use expression::resize.
695 (prefixify_expression): Update.
696 (increase_expout_size): Use expression::resize.
697 * expression.h (struct expression): Add constructor, destructor.
698 <resize>: New method.
699 (expression_up): Change type.
700
701 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
702 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
703 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
704 set region.
705
706 2020-11-30 Tom de Vries <tdevries@suse.de>
707
708 PR symtab/26905
709 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
710 is_reference parameter.
711 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
712
713 2020-11-30 Tom Tromey <tom@tromey.com>
714
715 * rust-lang.c (rust_op_name): Remove.
716 (exp_descriptor_rust): Update.
717 * parser-defs.h (op_name_standard): Don't declare.
718 (struct exp_descriptor) <op_name>: Remove.
719 * parse.c (exp_descriptor_standard): Update.
720 * opencl-lang.c (exp_descriptor_opencl): Update.
721 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
722 * f-lang.c (op_name_f): Remove.
723 (f_language::exp_descriptor_tab): Update.
724 * expression.h (op_name): Update.
725 * expprint.c (op_name): Rewrite.
726 (op_name_standard): Remove.
727 (dump_raw_expression, dump_subexp): Update.
728 * c-lang.c (exp_descriptor_c): Update.
729 * ax-gdb.c (gen_expr): Update.
730 * ada-lang.c (ada_op_name): Remove.
731 (ada_exp_descriptor): Update.
732
733 2020-11-30 Tom Tromey <tom@tromey.com>
734
735 * eval.c (init_array_element): Remove.
736 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
737
738 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
739
740 PR tui/26973
741 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
742 static locator win info.
743
744 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
745
746 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
747 program.
748
749 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
752 is always initialized.
753
754 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
755 * MAINTAINERS (Write After Approval): Add myself.
756
757 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
758
759 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
760 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
761
762 2020-11-25 Tom Tromey <tom@tromey.com>
763
764 * eval.c (evaluate_subexp_standard): Remove unnecessary
765 variables.
766
767 2020-11-25 Tom Tromey <tom@tromey.com>
768
769 * d-lang.c: Include parser-defs.h.
770 * rust-lang.c: Include parser-defs.h.
771 * c-lang.h: Do not include parser-defs.h.
772
773 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * regcache.h (struct cached_reg): Remove typedef.
776
777 2020-11-24 Joel Brobecker <brobecker@adacore.com>
778
779 * README: Fix the URL of the MPFR library.
780
781 2020-11-24 Joel Brobecker <brobecker@adacore.com>
782
783 * README: Document the --with-libgmp-prefix configure option.
784
785 2020-11-24 Joel Brobecker <brobecker@adacore.com>
786
787 * NEWS: Add entry documenting support for DWARF-based fixed
788 point types.
789
790 2020-11-24 Joel Brobecker <brobecker@adacore.com>
791
792 * NEWS: Document that building GDB now requires GMP.
793
794 2020-11-24 Joel Brobecker <brobecker@adacore.com>
795
796 * typeprint.c (print_type_scalar): Add handling of
797 TYPE_CODE_FIXED_POINT.
798
799 2020-11-24 Joel Brobecker <brobecker@adacore.com>
800
801 * valarith.c (fixed_point_binop): Replace the
802 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
803 users accordingly.
804
805 2020-11-24 Joel Brobecker <brobecker@adacore.com>
806
807 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
808 replacing fixed_point_scaling_factor. All callers updated
809 throughout this project.
810 (fixed_point_scaling_factor): Delete declaration.
811 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
812 fixed_point_scaling_factor. Adjust implementation accordingly.
813
814 2020-11-24 Joel Brobecker <brobecker@adacore.com>
815
816 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
817 replacing the fixed_point_type_base_type function. All callers
818 updated throughout this project.
819 (fixed_point_type_base_type): Remove declaration.
820 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
821 fixed_point_type_base_type. Adjust implementation accordingly.
822
823 2020-11-24 Joel Brobecker <brobecker@adacore.com>
824
825 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
826 New methods.
827 (INIT_FIXED_POINT_SPECIFIC): Adjust.
828 (TYPE_FIXED_POINT_INFO): Delete macro.
829 (allocate_fixed_point_type_info): Change return type to void.
830 * gdbtypes.c (copy_type_recursive): Replace the use of
831 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
832 (fixed_point_scaling_factor): Likewise.
833 (allocate_fixed_point_type_info): Change return type to void.
834 Adjust implementation accordingly.
835 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
836 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
837
838 2020-11-24 Joel Brobecker <brobecker@adacore.com>
839
840 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
841 into one single gdb::array_view parameter.
842 (gdb_mpz::write): Likewise.
843 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
844 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
845 into one single gdb::array_view parameter.
846 Adjust implementation accordingly.
847 (gdb_mpz::write): Likewise.
848 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
849 * unittests/gmp-utils-selftests.c: Adapt following changes above.
850 * valarith.c, valops.c, valprint.c, value.c: Likewise.
851
852 2020-11-24 Joel Brobecker <brobecker@adacore.com>
853
854 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
855 Change return type to std::string. Update all callers.
856 * gmp-utils.c (gmp_string_printf): Likewise.
857
858 2020-11-24 Joel Brobecker <brobecker@adacore.com>
859
860 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
861 instead of mpq_set_ui to initialize our GMP rational.
862
863 2020-11-23 Tom de Vries <tdevries@suse.de>
864
865 * debuginfod-support.c (debuginfod_source_query)
866 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
867
868 2020-11-21 Tom Tromey <tom@tromey.com>
869
870 * breakpoint.c (watchpoint_exp_is_const): Return bool.
871
872 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
875 Pass 2.0 to pow.
876 (gdb_mpz_write_all_from_small): Likewise.
877
878 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
881 of abs.
882
883 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
884
885 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
886 ctf_arc_open_by_name.
887
888 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
889
890 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
891 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
892
893 2020-11-20 Pedro Alves <pedro@palves.net>
894
895 * language.c (language_arch_info::lookup_primitive_type): Use
896 gdb::function_view instead of gdb::function.
897 (template language_lookup_primitive_type): Rename to ...
898 (language_lookup_primitive_type_1): ... this, and make static.
899 (language_lookup_primitive_type(const struct language_defn *,
900 struct gdbarch *, const char *): Make non-template.
901 (language_lookup_primitive_type(const struct language_defn *,
902 struct gdbarch *, std::function<bool (struct type *)>): Make
903 non-template and use gdb::function_view.
904 * language.h (language_arch_info::lookup_primitive_type): Use
905 gdb::function_view instead of std::function.
906 (language_lookup_primitive_type): No longer template.
907 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
908 lambda instead of a std::function.
909
910 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
911
912 PR tdep/26916
913 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
914 and STOCFH.
915
916 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
919
920 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
923 in `loop_cb` parameter.
924 * gdbarch.c: Re-generate.
925 * gdbarch.h: Re-generate.
926 * arch-utils.c (default_read_core_file_mappings): Remove `other`
927 parameter.
928 * arch-utils.h (default_read_core_file_mappings): Likewise.
929 * corelow.c (core_target::build_file_mappings): Likewise.
930 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
931 (linux_core_info_proc_mappings): Likewise.
932
933 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
936 * NEWS: Mention new options.
937 * f-array-walker.h: New file.
938 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
939 (repack_array_slices): New static global.
940 (show_repack_array_slices): New function.
941 (fortran_array_slicing_debug): New static global.
942 (show_fortran_array_slicing_debug): New function.
943 (value_f90_subarray): Delete.
944 (skip_undetermined_arglist): Delete.
945 (class fortran_array_repacker_base_impl): New class.
946 (class fortran_lazy_array_repacker_impl): New class.
947 (class fortran_array_repacker_impl): New class.
948 (fortran_value_subarray): Complete rewrite.
949 (set_fortran_list): New static global.
950 (show_fortran_list): Likewise.
951 (_initialize_f_language): Register new commands.
952 (fortran_adjust_dynamic_array_base_address_hack): New function.
953 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
954 Declare.
955 * f-valprint.c: Include 'f-array-walker.h'.
956 (class fortran_array_printer_impl): New class.
957 (f77_print_array_1): Delete.
958 (f77_print_array): Delete.
959 (fortran_print_array): New.
960 (f_value_print_inner): Update to call fortran_print_array.
961 * gdbtypes.c: Include 'f-lang.h'.
962 (resolve_dynamic_type_internal): Call
963 fortran_adjust_dynamic_array_base_address_hack.
964
965 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * breakpoint.c (struct watch_options): New struct.
968 (watch_option_defs): New static global.
969 (make_watch_options_def_group): New function.
970 (watch_maybe_just_location): Convert option parsing.
971 (watch_command_completer): New function.
972 (_initialize_breakpoint): Build help text using options mechanism.
973
974 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
977 (watch_command_1): Update parameter types. Convert locals to
978 bool.
979 (watch_command_wrapper): Change parameter type.
980 (watch_maybe_just_location): Change locals to bool.
981 (rwatch_command_wrapper): Update parameter type.
982 (awatch_command_wrapper): Update parameter type.
983 * breakpoint.h (watch_command_wrapper): Change parameter type.
984 (rwatch_command_wrapper): Update parameter type.
985 (awatch_command_wrapper): Update parameter type.
986 * eval.c (fetch_subexp_value): Change parameter type.
987 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
988 'false' not '0'.
989 * value.h (fetch_subexp_value): Change parameter type in
990 declaration.
991
992 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
993
994 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
995 skip_spaces.
996
997 2020-11-18 Keith Seitz <keiths@redhat.com>
998
999 * linux-tdep.c (dump_note_entry_p): Return true instead of
1000 checking `filename'.
1001
1002 2020-11-18 Tom de Vries <tdevries@suse.de>
1003
1004 * debuginfod-support.c (debuginfod_source_query)
1005 (debuginfod_debuginfo_query): Also do early exit if
1006 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1007
1008 2020-11-18 Tom de Vries <tdevries@suse.de>
1009
1010 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1011 warning.
1012
1013 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1016 callers. Move doc here.
1017 * gdbtypes.c (get_array_bounds): Return bool
1018
1019 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1022 assert.
1023 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1024 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1025 case to the default.
1026
1027 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * printcmd.c: Include 'safe-ctype.c'.
1030 (skip_over_slash_fmt): New function.
1031 (print_command_completer): Call skip_over_slash_fmt.
1032 (display_and_x_command_completer): New function.
1033 (_initialize_printcmd): Add command completion for 'x' and
1034 'display'.
1035
1036 2020-11-16 Pedro Alves <pedro@palves.net>
1037
1038 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1039 (get_prev_frame_always_1): ... to here.
1040 * inline-frame.c (inline_frame_this_id): Mention
1041 get_prev_frame_always_1 in comment.
1042
1043 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1044
1045 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1046 handling.
1047 (value_less): Add fixed-point handling.
1048
1049 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1050
1051 * eval.c (binop_promote): Add fixed-point type handling.
1052 * valarith.c (fixed_point_binop): New function.
1053 (scalar_binop): Add fixed-point type handling.
1054 (value_neg): Add fixed-point type handling.
1055 * valops.c (value_cast_to_fixed_point): New function.
1056 (value_cast): Add fixed-point type handling.
1057
1058 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1059
1060 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1061 range types.
1062 * c-typeprint.c (c_type_print_varspec_prefix)
1063 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1064 TYPE_CODE_FIXED_POINT handling.
1065 * p-typeprint.c (pascal_type_print_varspec_prefix)
1066 (pascal_type_print_varspec_suffix): Likewise.
1067 * typeprint.c (print_type_fixed_point): New function.
1068 * typeprint.h (print_type_fixed_point): Add declaration.
1069
1070 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1071
1072 * printcmd.c (print_scalar_formatted): Add fixed-point type
1073 handling when options->format is set.
1074
1075 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1078 * dwarf2/read.c (get_dwarf2_rational_constant)
1079 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1080 (has_zero_over_zero_small_attribute): New functions.
1081 read_base_type, set_die_type): Add fixed-point type handling.
1082 * gdb-gdb.py.in: Add fixed-point type handling.
1083 * gdbtypes.c: #include "gmp-utils.h".
1084 (create_range_type, set_type_code): Add fixed-point type handling.
1085 (init_fixed_point_type): New function.
1086 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1087 (print_fixed_point_type_info): New function.
1088 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1089 handling.
1090 (fixed_point_type_storage): New typedef.
1091 (fixed_point_objfile_key): New static global.
1092 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1093 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1094 functions.
1095 * gdbtypes.h: #include "gmp-utils.h".
1096 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1097 (union type_specific) <fixed_point_info>: New field.
1098 (struct fixed_point_type_info): New struct.
1099 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1100 (init_fixed_point_type, is_fixed_point_type)
1101 (fixed_point_type_base_type, fixed_point_scaling_factor)
1102 (allocate_fixed_point_type_info): Add declarations.
1103 * valprint.c (generic_val_print_fixed_point): New function.
1104 (generic_value_print): Add fixed-point type handling.
1105 * value.c (value_as_address, unpack_long): Add fixed-point type
1106 handling.
1107
1108 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1109
1110 * utils.h (uinteger_pow): Add declaration.
1111 * utils.c (uinteger_pow): Moved here (without changes)...
1112 * valarith.c (uinteger_pow): ... from here.
1113
1114 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1115
1116 * gmp-utils.h, gmp-utils.c: New file.
1117 * unittests/gmp-utils-selftests.c: New file.
1118 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1119 unittests/gmp-utils-selftests.c.
1120 (COMMON_SFILES) Add gmp-utils.c.
1121 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1122
1123 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1124
1125 * configure.ac: Generate an error if a usable GMP library
1126 could not be found.
1127 * configure: Regenerate.
1128
1129 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1130
1131 * configure.ac: Add support for --with-libgmp-prefix.
1132 * Makefile.in (LIBGMP): New variable.
1133 (CLIBS): Include $(LIBGMP).
1134 * configure, config.in: Regenerate
1135
1136 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 PR cli/26879
1139 * f-exp.y (COMPLETE): New token.
1140 (exp): Two new rules for tab-completion.
1141 (saw_name_at_eof): New static global.
1142 (last_was_structop): Likewise.
1143 (yylex): Set new variables, and return COMPLETE token at the end
1144 of the input stream in some cases.
1145
1146 2020-11-14 Tom Tromey <tom@tromey.com>
1147
1148 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1149
1150 2020-11-14 Tom Tromey <tom@tromey.com>
1151
1152 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1153
1154 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1157
1158 2020-11-13 Tom Tromey <tom@tromey.com>
1159
1160 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1161 (convert_escape, parse_one_string): Constify.
1162
1163 2020-11-13 Keith Seitz <keiths@redhat.com>
1164
1165 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1166 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1167 outside of ELF segments" warning for debugin
1168
1169 2020-11-13 Keith Seitz <keiths@redhat.com>
1170
1171 PR gdb/23034
1172 * elfread.c (elf_symfile_segments): Output a BFD file name
1173 for the "Loadable section ... outside of ELF segments" warning.
1174
1175 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 PR gdb/26835
1178 * arm-tdep.c (class arm_instruction_reader): New.
1179 (target_arm_instruction_reader): New.
1180 (arm_analyze_prologue): Add instruction reader parameter and use
1181 it. Use arm_expand_immediate.
1182 (class target_arm_instruction_reader): Adjust.
1183 (arm_skip_prologue): Adjust.
1184 (arm_expand_immediate): New.
1185 (arm_scan_prologue): Adjust.
1186 (arm_analyze_prologue_test): New.
1187 (class test_arm_instruction_reader): New.
1188
1189 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * f-lang.c (fortran_argument_convert): Add declaration. Add
1192 header comment, taken from f-lang.h. Make static.
1193 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1194 (fortran_argument_convert): Delete declaration.
1195
1196 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * ada-exp.y (find_primitive_type): Make parameter const.
1199 * ada-lang.c (enum ada_primitive_types): Delete.
1200 (ada_language::language_arch_info): Update.
1201 * c-lang.c (enum c_primitive_types): Delete.
1202 (c_language_arch_info): Update.
1203 (enum cplus_primitive_types): Delete.
1204 (cplus_language::language_arch_info): Update.
1205 * d-lang.c (enum d_primitive_types): Delete.
1206 (d_language::language_arch_info): Update.
1207 * f-lang.c (enum f_primitive_types): Delete.
1208 (f_language::language_arch_info): Update.
1209 * go-lang.c (enum go_primitive_types): Delete.
1210 (go_language::language_arch_info): Update.
1211 * language.c (auto_or_unknown_language::language_arch_info):
1212 Update.
1213 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1214 (language_string_char_type): Add header comment, call function in
1215 language_arch_info.
1216 (language_bool_type): Likewise
1217 (language_arch_info::bool_type): Define.
1218 (language_lookup_primitive_type_1): Delete.
1219 (language_lookup_primitive_type): Rewrite as a templated function
1220 to call function in language_arch_info, then instantiate twice.
1221 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1222 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1223 (language_arch_info::lookup_primitive_type): Define twice with
1224 different signatures.
1225 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1226 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1227 member function in language_arch_info.
1228 * language.h (language_arch_info): Complete rewrite.
1229 (language_lookup_primitive_type): Make templated.
1230 * m2-lang.c (enum m2_primitive_types): Delete.
1231 (m2_language::language_arch_info): Update.
1232 * opencl-lang.c (OCL_P_TYPE): Delete.
1233 (enum opencl_primitive_types): Delete.
1234 (opencl_type_data): Delete.
1235 (builtin_opencl_type): Delete.
1236 (lookup_opencl_vector_type): Update.
1237 (opencl_language::language_arch_info): Update, lots of content
1238 moved from...
1239 (build_opencl_types): ...here. This function is now deleted.
1240 (_initialize_opencl_language): Delete.
1241 * p-lang.c (enum pascal_primitive_types): Delete.
1242 (pascal_language::language_arch_info): Update.
1243 * rust-lang.c (enum rust_primitive_types): Delete.
1244 (rust_language::language_arch_info): Update.
1245
1246 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1249 dwarf2_queue_guard.
1250
1251 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1254 comment.
1255
1256 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * dwarf2/read.c (dwarf_read_debug_printf,
1259 dwarf_read_debug_printf_v): New macros, use throughout the file.
1260
1261 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1262
1263 PR tdep/27015
1264 * arc-linux-tdep.c (collect_register): Populate "eret" by
1265 "pc" value from the regcache when asked for "pc" value.
1266
1267 2020-11-12 Tom Tromey <tom@tromey.com>
1268
1269 PR rust/26799:
1270 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1271 exist.
1272
1273 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * features/Makefile (XMLTOC): Add rx.xml.
1276 (FEATURE_XMLFILES): Remove rx.xml.
1277 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1278 * features/rx.c: Regenerate.
1279 * features/rx.xml: Wrap in `target` tags, and reindent.
1280 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1281 structure.
1282 (maint_print_c_tdesc_opt_def): New typedef.
1283 (maint_print_c_tdesc_opt_defs): New static global.
1284 (make_maint_print_c_tdesc_options_def_group): New function.
1285 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1286 print single feature C file for target descriptions containing a
1287 single feature.
1288 (maint_print_c_tdesc_cmd_completer): New function.
1289 (_initialize_target_descriptions): Update call to register command
1290 completer, and include command line flag in help text.
1291
1292 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1295 numbers.
1296 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1297 enum values.
1298
1299 2020-11-10 Tom Tromey <tom@tromey.com>
1300
1301 * value.h (internalvar_name): Update.
1302 * value.c (internalvar_name): Make return type const.
1303
1304 2020-11-10 Tom Tromey <tom@tromey.com>
1305
1306 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1307 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1308 const.
1309
1310 2020-11-10 Tom Tromey <tom@tromey.com>
1311
1312 * objc-lang.h (value_nsstring): Update.
1313 * objc-lang.c (value_nsstring): Make "ptr" const.
1314
1315 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * expprint.c (print_subexp_funcall): Increment expression position
1318 after reading argument count.
1319 * f-lang.c (print_subexp_f): Skip over opcode before calling
1320 common function.
1321 (dump_subexp_body_f): Likewise.
1322
1323 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1324
1325 PR python/26832
1326 * configure: Regenerate.
1327 * configure.ac: Check for python modules ctypes instead of
1328 itertools.
1329
1330 2020-11-06 Pedro Alves <pedro@palves.net>
1331
1332 * macroexp.c (struct macro_buffer): Split in two classes. Add
1333 uses adjusted.
1334 (struct shared_macro_buffer): New, factored out from struct
1335 macro_buffer.
1336 (struct growable_macro_buffer): New, factored out from struct
1337 macro_buffer.
1338 (set_token, get_comment, get_identifier, get_pp_number)
1339 (get_character_constant, get_string_literal, get_punctuator)
1340 (get_next_token_for_substitution): Constify parameters.
1341 (substitute_args): Constify locals.
1342
1343 2020-11-05 Tom Tromey <tom@tromey.com>
1344
1345 * dwarf2/read.c (read_cutu_die_from_dwo)
1346 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1347 (build_type_psymtabs_1): Update.
1348 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1349 parameter.
1350 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1351 Don't read section. Add assert.
1352
1353 2020-11-04 Tom Tromey <tromey@adacore.com>
1354
1355 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1356
1357 2020-11-04 Tom Tromey <tromey@adacore.com>
1358
1359 * ada-typeprint.c (ada_print_type): Handle __T types.
1360
1361 2020-11-04 Tom Tromey <tromey@adacore.com>
1362
1363 * dwarf2/read.c (add_partial_symbol, process_die):
1364 Handle DW_TAG_array_type.
1365 (is_type_tag_for_partial): Add "lang" parameter.
1366 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1367
1368 2020-11-04 Tom Tromey <tromey@adacore.com>
1369
1370 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1371
1372 2020-11-04 Tom Tromey <tromey@adacore.com>
1373
1374 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1375 array.
1376
1377 2020-11-04 Tom Tromey <tromey@adacore.com>
1378
1379 * gdbtypes.c (update_static_array_size): Handle bit stride.
1380
1381 2020-11-04 Tom Tromey <tromey@adacore.com>
1382
1383 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1384
1385 2020-11-04 Tom Tromey <tromey@adacore.com>
1386
1387 * ada-lang.c (ada_is_any_packed_array_type): New function.
1388 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1389
1390 2020-11-04 Tom Tromey <tromey@adacore.com>
1391
1392 * dwarf2/read.c (recognize_bound_expression)
1393 (quirk_ada_thick_pointer): New functions.
1394 (read_array_type): Call quirk_ada_thick_pointer.
1395 (set_die_type): Add "skip_data_location" parameter.
1396 (quirk_ada_thick_pointer): New function.
1397 (process_structure_scope): Call quirk_ada_thick_pointer.
1398 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1399 (decode_packed_array_bitsize): Handle thick pointers without
1400 parallel types.
1401 (ada_is_gnat_encoded_packed_array_type): Rename from
1402 ada_is_packed_array_type.
1403 (ada_is_constrained_packed_array_type): Update.
1404 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1405 (ada_value_print_1): Use ada_get_decoded_value.
1406
1407 2020-11-04 Tom Tromey <tromey@adacore.com>
1408
1409 * ada-lang.c (recursively_update_array_bitsize): New function.
1410 (decode_constrained_packed_array_type): Call it.
1411
1412 2020-11-04 Tom Tromey <tromey@adacore.com>
1413
1414 * ada-lang.c (to_fixed_array_type): Error if
1415 decode_constrained_packed_array_type returns NULL.
1416
1417 2020-11-04 Tom Tromey <tromey@adacore.com>
1418
1419 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1420
1421 2020-11-02 Tom Tromey <tromey@adacore.com>
1422
1423 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1424 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1425 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1426 * amd64-ravenscar-thread.c: New file.
1427 * amd64-ravenscar-thread.h: New file.
1428 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1429 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1430
1431 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * main.c (execute_cmdargs): New function.
1434 (captured_main_1): Make use of execute_cmdargs.
1435
1436 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * NEWS: Mention changes to config file search path.
1439 * main.c
1440
1441 2020-11-02 Tom Tromey <tromey@adacore.com>
1442
1443 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1444 (python_GdbModuleDef): Move earlier. Now static.
1445 (do_start_initialization): Consolidate some IS_PY3K blocks.
1446
1447 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * aarch64-linux-tdep.c: Fix indentation.
1450 * aarch64-ravenscar-thread.c: Fix indentation.
1451 * aarch64-tdep.c: Fix indentation.
1452 * aarch64-tdep.h: Fix indentation.
1453 * ada-lang.c: Fix indentation.
1454 * ada-lang.h: Fix indentation.
1455 * ada-tasks.c: Fix indentation.
1456 * ada-typeprint.c: Fix indentation.
1457 * ada-valprint.c: Fix indentation.
1458 * ada-varobj.c: Fix indentation.
1459 * addrmap.c: Fix indentation.
1460 * addrmap.h: Fix indentation.
1461 * agent.c: Fix indentation.
1462 * aix-thread.c: Fix indentation.
1463 * alpha-bsd-nat.c: Fix indentation.
1464 * alpha-linux-tdep.c: Fix indentation.
1465 * alpha-mdebug-tdep.c: Fix indentation.
1466 * alpha-nbsd-tdep.c: Fix indentation.
1467 * alpha-obsd-tdep.c: Fix indentation.
1468 * alpha-tdep.c: Fix indentation.
1469 * amd64-bsd-nat.c: Fix indentation.
1470 * amd64-darwin-tdep.c: Fix indentation.
1471 * amd64-linux-nat.c: Fix indentation.
1472 * amd64-linux-tdep.c: Fix indentation.
1473 * amd64-nat.c: Fix indentation.
1474 * amd64-obsd-tdep.c: Fix indentation.
1475 * amd64-tdep.c: Fix indentation.
1476 * amd64-windows-tdep.c: Fix indentation.
1477 * annotate.c: Fix indentation.
1478 * arc-tdep.c: Fix indentation.
1479 * arch-utils.c: Fix indentation.
1480 * arch/arm-get-next-pcs.c: Fix indentation.
1481 * arch/arm.c: Fix indentation.
1482 * arm-linux-nat.c: Fix indentation.
1483 * arm-linux-tdep.c: Fix indentation.
1484 * arm-nbsd-tdep.c: Fix indentation.
1485 * arm-pikeos-tdep.c: Fix indentation.
1486 * arm-tdep.c: Fix indentation.
1487 * arm-tdep.h: Fix indentation.
1488 * arm-wince-tdep.c: Fix indentation.
1489 * auto-load.c: Fix indentation.
1490 * auxv.c: Fix indentation.
1491 * avr-tdep.c: Fix indentation.
1492 * ax-gdb.c: Fix indentation.
1493 * ax-general.c: Fix indentation.
1494 * bfin-linux-tdep.c: Fix indentation.
1495 * block.c: Fix indentation.
1496 * block.h: Fix indentation.
1497 * blockframe.c: Fix indentation.
1498 * bpf-tdep.c: Fix indentation.
1499 * break-catch-sig.c: Fix indentation.
1500 * break-catch-syscall.c: Fix indentation.
1501 * break-catch-throw.c: Fix indentation.
1502 * breakpoint.c: Fix indentation.
1503 * breakpoint.h: Fix indentation.
1504 * bsd-uthread.c: Fix indentation.
1505 * btrace.c: Fix indentation.
1506 * build-id.c: Fix indentation.
1507 * buildsym-legacy.h: Fix indentation.
1508 * buildsym.c: Fix indentation.
1509 * c-typeprint.c: Fix indentation.
1510 * c-valprint.c: Fix indentation.
1511 * c-varobj.c: Fix indentation.
1512 * charset.c: Fix indentation.
1513 * cli/cli-cmds.c: Fix indentation.
1514 * cli/cli-decode.c: Fix indentation.
1515 * cli/cli-decode.h: Fix indentation.
1516 * cli/cli-script.c: Fix indentation.
1517 * cli/cli-setshow.c: Fix indentation.
1518 * coff-pe-read.c: Fix indentation.
1519 * coffread.c: Fix indentation.
1520 * compile/compile-cplus-types.c: Fix indentation.
1521 * compile/compile-object-load.c: Fix indentation.
1522 * compile/compile-object-run.c: Fix indentation.
1523 * completer.c: Fix indentation.
1524 * corefile.c: Fix indentation.
1525 * corelow.c: Fix indentation.
1526 * cp-abi.h: Fix indentation.
1527 * cp-namespace.c: Fix indentation.
1528 * cp-support.c: Fix indentation.
1529 * cp-valprint.c: Fix indentation.
1530 * cris-linux-tdep.c: Fix indentation.
1531 * cris-tdep.c: Fix indentation.
1532 * darwin-nat-info.c: Fix indentation.
1533 * darwin-nat.c: Fix indentation.
1534 * darwin-nat.h: Fix indentation.
1535 * dbxread.c: Fix indentation.
1536 * dcache.c: Fix indentation.
1537 * disasm.c: Fix indentation.
1538 * dtrace-probe.c: Fix indentation.
1539 * dwarf2/abbrev.c: Fix indentation.
1540 * dwarf2/attribute.c: Fix indentation.
1541 * dwarf2/expr.c: Fix indentation.
1542 * dwarf2/frame.c: Fix indentation.
1543 * dwarf2/index-cache.c: Fix indentation.
1544 * dwarf2/index-write.c: Fix indentation.
1545 * dwarf2/line-header.c: Fix indentation.
1546 * dwarf2/loc.c: Fix indentation.
1547 * dwarf2/macro.c: Fix indentation.
1548 * dwarf2/read.c: Fix indentation.
1549 * dwarf2/read.h: Fix indentation.
1550 * elfread.c: Fix indentation.
1551 * eval.c: Fix indentation.
1552 * event-top.c: Fix indentation.
1553 * exec.c: Fix indentation.
1554 * exec.h: Fix indentation.
1555 * expprint.c: Fix indentation.
1556 * f-lang.c: Fix indentation.
1557 * f-typeprint.c: Fix indentation.
1558 * f-valprint.c: Fix indentation.
1559 * fbsd-nat.c: Fix indentation.
1560 * fbsd-tdep.c: Fix indentation.
1561 * findvar.c: Fix indentation.
1562 * fork-child.c: Fix indentation.
1563 * frame-unwind.c: Fix indentation.
1564 * frame-unwind.h: Fix indentation.
1565 * frame.c: Fix indentation.
1566 * frv-linux-tdep.c: Fix indentation.
1567 * frv-tdep.c: Fix indentation.
1568 * frv-tdep.h: Fix indentation.
1569 * ft32-tdep.c: Fix indentation.
1570 * gcore.c: Fix indentation.
1571 * gdb_bfd.c: Fix indentation.
1572 * gdbarch.sh: Fix indentation.
1573 * gdbarch.c: Re-generate
1574 * gdbarch.h: Re-generate.
1575 * gdbcore.h: Fix indentation.
1576 * gdbthread.h: Fix indentation.
1577 * gdbtypes.c: Fix indentation.
1578 * gdbtypes.h: Fix indentation.
1579 * glibc-tdep.c: Fix indentation.
1580 * gnu-nat.c: Fix indentation.
1581 * gnu-nat.h: Fix indentation.
1582 * gnu-v2-abi.c: Fix indentation.
1583 * gnu-v3-abi.c: Fix indentation.
1584 * go32-nat.c: Fix indentation.
1585 * guile/guile-internal.h: Fix indentation.
1586 * guile/scm-cmd.c: Fix indentation.
1587 * guile/scm-frame.c: Fix indentation.
1588 * guile/scm-iterator.c: Fix indentation.
1589 * guile/scm-math.c: Fix indentation.
1590 * guile/scm-ports.c: Fix indentation.
1591 * guile/scm-pretty-print.c: Fix indentation.
1592 * guile/scm-value.c: Fix indentation.
1593 * h8300-tdep.c: Fix indentation.
1594 * hppa-linux-nat.c: Fix indentation.
1595 * hppa-linux-tdep.c: Fix indentation.
1596 * hppa-nbsd-nat.c: Fix indentation.
1597 * hppa-nbsd-tdep.c: Fix indentation.
1598 * hppa-obsd-nat.c: Fix indentation.
1599 * hppa-tdep.c: Fix indentation.
1600 * hppa-tdep.h: Fix indentation.
1601 * i386-bsd-nat.c: Fix indentation.
1602 * i386-darwin-nat.c: Fix indentation.
1603 * i386-darwin-tdep.c: Fix indentation.
1604 * i386-dicos-tdep.c: Fix indentation.
1605 * i386-gnu-nat.c: Fix indentation.
1606 * i386-linux-nat.c: Fix indentation.
1607 * i386-linux-tdep.c: Fix indentation.
1608 * i386-nto-tdep.c: Fix indentation.
1609 * i386-obsd-tdep.c: Fix indentation.
1610 * i386-sol2-nat.c: Fix indentation.
1611 * i386-tdep.c: Fix indentation.
1612 * i386-tdep.h: Fix indentation.
1613 * i386-windows-tdep.c: Fix indentation.
1614 * i387-tdep.c: Fix indentation.
1615 * i387-tdep.h: Fix indentation.
1616 * ia64-libunwind-tdep.c: Fix indentation.
1617 * ia64-libunwind-tdep.h: Fix indentation.
1618 * ia64-linux-nat.c: Fix indentation.
1619 * ia64-linux-tdep.c: Fix indentation.
1620 * ia64-tdep.c: Fix indentation.
1621 * ia64-tdep.h: Fix indentation.
1622 * ia64-vms-tdep.c: Fix indentation.
1623 * infcall.c: Fix indentation.
1624 * infcmd.c: Fix indentation.
1625 * inferior.c: Fix indentation.
1626 * infrun.c: Fix indentation.
1627 * iq2000-tdep.c: Fix indentation.
1628 * language.c: Fix indentation.
1629 * linespec.c: Fix indentation.
1630 * linux-fork.c: Fix indentation.
1631 * linux-nat.c: Fix indentation.
1632 * linux-tdep.c: Fix indentation.
1633 * linux-thread-db.c: Fix indentation.
1634 * lm32-tdep.c: Fix indentation.
1635 * m2-lang.c: Fix indentation.
1636 * m2-typeprint.c: Fix indentation.
1637 * m2-valprint.c: Fix indentation.
1638 * m32c-tdep.c: Fix indentation.
1639 * m32r-linux-tdep.c: Fix indentation.
1640 * m32r-tdep.c: Fix indentation.
1641 * m68hc11-tdep.c: Fix indentation.
1642 * m68k-bsd-nat.c: Fix indentation.
1643 * m68k-linux-nat.c: Fix indentation.
1644 * m68k-linux-tdep.c: Fix indentation.
1645 * m68k-tdep.c: Fix indentation.
1646 * machoread.c: Fix indentation.
1647 * macrocmd.c: Fix indentation.
1648 * macroexp.c: Fix indentation.
1649 * macroscope.c: Fix indentation.
1650 * macrotab.c: Fix indentation.
1651 * macrotab.h: Fix indentation.
1652 * main.c: Fix indentation.
1653 * mdebugread.c: Fix indentation.
1654 * mep-tdep.c: Fix indentation.
1655 * mi/mi-cmd-catch.c: Fix indentation.
1656 * mi/mi-cmd-disas.c: Fix indentation.
1657 * mi/mi-cmd-env.c: Fix indentation.
1658 * mi/mi-cmd-stack.c: Fix indentation.
1659 * mi/mi-cmd-var.c: Fix indentation.
1660 * mi/mi-cmds.c: Fix indentation.
1661 * mi/mi-main.c: Fix indentation.
1662 * mi/mi-parse.c: Fix indentation.
1663 * microblaze-tdep.c: Fix indentation.
1664 * minidebug.c: Fix indentation.
1665 * minsyms.c: Fix indentation.
1666 * mips-linux-nat.c: Fix indentation.
1667 * mips-linux-tdep.c: Fix indentation.
1668 * mips-nbsd-tdep.c: Fix indentation.
1669 * mips-tdep.c: Fix indentation.
1670 * mn10300-linux-tdep.c: Fix indentation.
1671 * mn10300-tdep.c: Fix indentation.
1672 * moxie-tdep.c: Fix indentation.
1673 * msp430-tdep.c: Fix indentation.
1674 * namespace.h: Fix indentation.
1675 * nat/fork-inferior.c: Fix indentation.
1676 * nat/gdb_ptrace.h: Fix indentation.
1677 * nat/linux-namespaces.c: Fix indentation.
1678 * nat/linux-osdata.c: Fix indentation.
1679 * nat/netbsd-nat.c: Fix indentation.
1680 * nat/x86-dregs.c: Fix indentation.
1681 * nbsd-nat.c: Fix indentation.
1682 * nbsd-tdep.c: Fix indentation.
1683 * nios2-linux-tdep.c: Fix indentation.
1684 * nios2-tdep.c: Fix indentation.
1685 * nto-procfs.c: Fix indentation.
1686 * nto-tdep.c: Fix indentation.
1687 * objfiles.c: Fix indentation.
1688 * objfiles.h: Fix indentation.
1689 * opencl-lang.c: Fix indentation.
1690 * or1k-tdep.c: Fix indentation.
1691 * osabi.c: Fix indentation.
1692 * osabi.h: Fix indentation.
1693 * osdata.c: Fix indentation.
1694 * p-lang.c: Fix indentation.
1695 * p-typeprint.c: Fix indentation.
1696 * p-valprint.c: Fix indentation.
1697 * parse.c: Fix indentation.
1698 * ppc-linux-nat.c: Fix indentation.
1699 * ppc-linux-tdep.c: Fix indentation.
1700 * ppc-nbsd-nat.c: Fix indentation.
1701 * ppc-nbsd-tdep.c: Fix indentation.
1702 * ppc-obsd-nat.c: Fix indentation.
1703 * ppc-ravenscar-thread.c: Fix indentation.
1704 * ppc-sysv-tdep.c: Fix indentation.
1705 * ppc64-tdep.c: Fix indentation.
1706 * printcmd.c: Fix indentation.
1707 * proc-api.c: Fix indentation.
1708 * producer.c: Fix indentation.
1709 * producer.h: Fix indentation.
1710 * prologue-value.c: Fix indentation.
1711 * prologue-value.h: Fix indentation.
1712 * psymtab.c: Fix indentation.
1713 * python/py-arch.c: Fix indentation.
1714 * python/py-bpevent.c: Fix indentation.
1715 * python/py-event.c: Fix indentation.
1716 * python/py-event.h: Fix indentation.
1717 * python/py-finishbreakpoint.c: Fix indentation.
1718 * python/py-frame.c: Fix indentation.
1719 * python/py-framefilter.c: Fix indentation.
1720 * python/py-inferior.c: Fix indentation.
1721 * python/py-infthread.c: Fix indentation.
1722 * python/py-objfile.c: Fix indentation.
1723 * python/py-prettyprint.c: Fix indentation.
1724 * python/py-registers.c: Fix indentation.
1725 * python/py-signalevent.c: Fix indentation.
1726 * python/py-stopevent.c: Fix indentation.
1727 * python/py-stopevent.h: Fix indentation.
1728 * python/py-threadevent.c: Fix indentation.
1729 * python/py-tui.c: Fix indentation.
1730 * python/py-unwind.c: Fix indentation.
1731 * python/py-value.c: Fix indentation.
1732 * python/py-xmethods.c: Fix indentation.
1733 * python/python-internal.h: Fix indentation.
1734 * python/python.c: Fix indentation.
1735 * ravenscar-thread.c: Fix indentation.
1736 * record-btrace.c: Fix indentation.
1737 * record-full.c: Fix indentation.
1738 * record.c: Fix indentation.
1739 * reggroups.c: Fix indentation.
1740 * regset.h: Fix indentation.
1741 * remote-fileio.c: Fix indentation.
1742 * remote.c: Fix indentation.
1743 * reverse.c: Fix indentation.
1744 * riscv-linux-tdep.c: Fix indentation.
1745 * riscv-ravenscar-thread.c: Fix indentation.
1746 * riscv-tdep.c: Fix indentation.
1747 * rl78-tdep.c: Fix indentation.
1748 * rs6000-aix-tdep.c: Fix indentation.
1749 * rs6000-lynx178-tdep.c: Fix indentation.
1750 * rs6000-nat.c: Fix indentation.
1751 * rs6000-tdep.c: Fix indentation.
1752 * rust-lang.c: Fix indentation.
1753 * rx-tdep.c: Fix indentation.
1754 * s12z-tdep.c: Fix indentation.
1755 * s390-linux-tdep.c: Fix indentation.
1756 * score-tdep.c: Fix indentation.
1757 * ser-base.c: Fix indentation.
1758 * ser-mingw.c: Fix indentation.
1759 * ser-uds.c: Fix indentation.
1760 * ser-unix.c: Fix indentation.
1761 * serial.c: Fix indentation.
1762 * sh-linux-tdep.c: Fix indentation.
1763 * sh-nbsd-tdep.c: Fix indentation.
1764 * sh-tdep.c: Fix indentation.
1765 * skip.c: Fix indentation.
1766 * sol-thread.c: Fix indentation.
1767 * solib-aix.c: Fix indentation.
1768 * solib-darwin.c: Fix indentation.
1769 * solib-frv.c: Fix indentation.
1770 * solib-svr4.c: Fix indentation.
1771 * solib.c: Fix indentation.
1772 * source.c: Fix indentation.
1773 * sparc-linux-tdep.c: Fix indentation.
1774 * sparc-nbsd-tdep.c: Fix indentation.
1775 * sparc-obsd-tdep.c: Fix indentation.
1776 * sparc-ravenscar-thread.c: Fix indentation.
1777 * sparc-tdep.c: Fix indentation.
1778 * sparc64-linux-tdep.c: Fix indentation.
1779 * sparc64-nbsd-tdep.c: Fix indentation.
1780 * sparc64-obsd-tdep.c: Fix indentation.
1781 * sparc64-tdep.c: Fix indentation.
1782 * stabsread.c: Fix indentation.
1783 * stack.c: Fix indentation.
1784 * stap-probe.c: Fix indentation.
1785 * stubs/ia64vms-stub.c: Fix indentation.
1786 * stubs/m32r-stub.c: Fix indentation.
1787 * stubs/m68k-stub.c: Fix indentation.
1788 * stubs/sh-stub.c: Fix indentation.
1789 * stubs/sparc-stub.c: Fix indentation.
1790 * symfile-mem.c: Fix indentation.
1791 * symfile.c: Fix indentation.
1792 * symfile.h: Fix indentation.
1793 * symmisc.c: Fix indentation.
1794 * symtab.c: Fix indentation.
1795 * symtab.h: Fix indentation.
1796 * target-float.c: Fix indentation.
1797 * target.c: Fix indentation.
1798 * target.h: Fix indentation.
1799 * tic6x-tdep.c: Fix indentation.
1800 * tilegx-linux-tdep.c: Fix indentation.
1801 * tilegx-tdep.c: Fix indentation.
1802 * top.c: Fix indentation.
1803 * tracefile-tfile.c: Fix indentation.
1804 * tracepoint.c: Fix indentation.
1805 * tui/tui-disasm.c: Fix indentation.
1806 * tui/tui-io.c: Fix indentation.
1807 * tui/tui-regs.c: Fix indentation.
1808 * tui/tui-stack.c: Fix indentation.
1809 * tui/tui-win.c: Fix indentation.
1810 * tui/tui-winsource.c: Fix indentation.
1811 * tui/tui.c: Fix indentation.
1812 * typeprint.c: Fix indentation.
1813 * ui-out.h: Fix indentation.
1814 * unittests/copy_bitwise-selftests.c: Fix indentation.
1815 * unittests/memory-map-selftests.c: Fix indentation.
1816 * utils.c: Fix indentation.
1817 * v850-tdep.c: Fix indentation.
1818 * valarith.c: Fix indentation.
1819 * valops.c: Fix indentation.
1820 * valprint.c: Fix indentation.
1821 * valprint.h: Fix indentation.
1822 * value.c: Fix indentation.
1823 * value.h: Fix indentation.
1824 * varobj.c: Fix indentation.
1825 * vax-tdep.c: Fix indentation.
1826 * windows-nat.c: Fix indentation.
1827 * windows-tdep.c: Fix indentation.
1828 * xcoffread.c: Fix indentation.
1829 * xml-syscall.c: Fix indentation.
1830 * xml-tdesc.c: Fix indentation.
1831 * xstormy16-tdep.c: Fix indentation.
1832 * xtensa-config.c: Fix indentation.
1833 * xtensa-linux-nat.c: Fix indentation.
1834 * xtensa-linux-tdep.c: Fix indentation.
1835 * xtensa-tdep.c: Fix indentation.
1836
1837 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1838 Craig Blackmore <craig.blackmore@embecosm.com>
1839
1840 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1841 as an unsigned value.
1842
1843 2020-11-01 Tom Tromey <tom@tromey.com>
1844
1845 * dbxread.c (dbx_end_psymtab): Update.
1846 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1847 (build_type_psymtabs_reader): Update.
1848 * xcoffread.c (xcoff_end_psymtab): Update.
1849 * ctfread.c (scan_partial_symbols): Update.
1850 * psymtab.c (sort_pst_symbols): Remove.
1851 (partial_symtab::end): Rename from end_psymtab_common. Inline
1852 sort_pst_symbols.
1853 * psympriv.h (struct partial_symtab) <end>: New method.
1854 (end_psymtab_common): Don't declare.
1855
1856 2020-11-01 Tom Tromey <tom@tromey.com>
1857
1858 * symmisc.c (count_psyms): New function.
1859 (print_objfile_statistics): Use it.
1860 * psymtab.c (append_psymbol_to_list): Remove.
1861 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1862 * objfiles.h (struct objstats) <n_psyms>: Remove.
1863
1864 2020-11-01 Tom Tromey <tom@tromey.com>
1865
1866 * dbxread.c (dbx_end_psymtab): Update.
1867 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1868 (build_type_psymtabs_reader): Update.
1869 * xcoffread.c (xcoff_end_psymtab): Update.
1870 * ctfread.c (scan_partial_symbols): Update.
1871 * psympriv.h (end_psymtab_common): Update.
1872 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1873 (sort_pst_symbols): Likewise.
1874
1875 2020-11-01 Tom Tromey <tom@tromey.com>
1876
1877 * dbxread.c (dbx_symfile_read): Update.
1878 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1879 * xcoffread.c (xcoff_initial_scan): Update.
1880 * psympriv.h (init_psymbol_list): Don't declare.
1881 * psymtab.c (init_psymbol_list): Remove.
1882
1883 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1886 gnat_encoded_fixed_type_info. Update all callers.
1887
1888 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1889
1890 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1891 line too long.
1892
1893 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1894
1895 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1896 cast_from_fixed. Update all callers.
1897 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1898 Update all callers.
1899 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1900 Update all callers.
1901 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1902 ada_scaling_factor.
1903 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1904 to print_gnat_encoded_fixed_point_type.
1905 * ada-valprint.c: Likewise.
1906
1907 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1910 (debug_prefixed_printf): Add check of debug_displaced flag.
1911 * linux-nat.c (linux_nat_debug_printf): Add check of
1912 debug_linux_nat flag.
1913
1914 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1915
1916 * infrun.c (infrun_debug_printf_1): Remove.
1917 (displaced_debug_printf_1): Remove.
1918 (stop_all_threads): Use debug_prefixed_printf.
1919 * infrun.h (infrun_debug_printf_1): Remove.
1920 (infrun_debug_printf): Use debug_prefixed_printf.
1921 (displaced_debug_printf_1): Remove.
1922 (displaced_debug_printf): Use debug_prefixed_printf.
1923 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1924 (linux_nat_debug_printf): Use debug_prefixed_printf.
1925
1926 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1927
1928 * configure: Re-generate.
1929 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1930 AC_LANG_PROGRAM.
1931
1932 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * configure: Re-generate.
1935
1936 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * configure: Re-generate.
1939
1940 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * configure: Re-generate.
1943
1944 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * configure: Re-generate.
1947
1948 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * acinclude.m4: Modernize.
1951 * configure: Re-generate.
1952
1953 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * configure.ac: Modernize.
1956 * configure: Re-generate.
1957
1958 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1959
1960 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1961 * configure: Re-generate.
1962 * configure.ac: Remove AM_PROG_CC_STDC.
1963
1964 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1967 AC_CANONICAL_SYSTEM.
1968 * configure: Re-generate.
1969
1970 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1971
1972 * infrun.h (displaced_debug_printf): New macro. Replace
1973 displaced debug prints throughout to use it.
1974 (displaced_debug_printf_1): New declaration.
1975 (displaced_step_dump_bytes): Return string, remove ui_file
1976 parameter, update all callers.
1977 * infrun.c (displaced_debug_printf_1): New function.
1978 (displaced_step_dump_bytes): Return string, remove ui_file
1979 parameter
1980
1981 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1984
1985 2020-10-30 Tom Tromey <tromey@adacore.com>
1986
1987 * Makefile.in (stamp-init): Depend on config.status.
1988
1989 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1990
1991 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1992
1993 2020-10-30 Pedro Alves <pedro@palves.net>
1994
1995 * thread.c (lookup_selected_frame): Move ...
1996 * frame.c (lookup_selected_frame): ... here.
1997
1998 2020-10-30 Pedro Alves <pedro@palves.net>
1999
2000 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2001 * frame.c
2002 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2003 Use save_selected_frame. Save language as well.
2004 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2005 Use restore_selected_frame, and restore language as well.
2006 (selected_frame_id, selected_frame_level): New.
2007 (selected_frame): Update comments.
2008 (save_selected_frame, restore_selected_frame): New.
2009 (get_selected_frame): Use lookup_selected_frame.
2010 (get_selected_frame_if_set): Delete.
2011 (select_frame): Record selected_frame_level and selected_frame_id.
2012 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2013 fields.
2014 (get_selected_frame): Make 'message' parameter optional.
2015 (get_selected_frame_if_set): Delete declaration.
2016 (select_frame): Update comments.
2017 (save_selected_frame, restore_selected_frame)
2018 (lookup_selected_frame): Declare.
2019 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2020 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2021 New field.
2022 (save_infcall_control_state): Use save_selected_frame.
2023 (restore_selected_frame): Delete.
2024 (restore_infcall_control_state): Use restore_selected_frame.
2025 * stack.c (select_frame_command_core, frame_command_core): Use
2026 get_selected_frame.
2027 * thread.c (restore_selected_frame): Rename to ...
2028 (lookup_selected_frame): ... this and make extern. Select the
2029 current frame if the frame level is -1.
2030 (scoped_restore_current_thread::restore): Also restore the
2031 language.
2032 (scoped_restore_current_thread::~scoped_restore_current_thread):
2033 Don't try/catch.
2034 (scoped_restore_current_thread::scoped_restore_current_thread):
2035 Save the language as well. Use save_selected_frame.
2036
2037 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2040 documentation.
2041 * gdbarch.h: Re-generate.
2042
2043 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2046 parameter.
2047 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2048 Likewise.
2049 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2050 Likewise.
2051 * arch-utils.c (default_displaced_step_hw_singlestep):
2052 Likewise.
2053 * arch-utils.h (default_displaced_step_hw_singlestep):
2054 Likewise.
2055 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2056 Likewise.
2057 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2058 Likewise.
2059 * gdbarch.c: Re-generate.
2060 * gdbarch.h: Re-generate.
2061 * infrun.c (resume_1): Adjust.
2062
2063 2020-10-29 Tom Tromey <tom@tromey.com>
2064
2065 * progspace.c (program_space::~program_space): Don't call
2066 exec_close.
2067
2068 2020-10-29 Tom Tromey <tom@tromey.com>
2069
2070 * exec.c (exec_target::close): Don't change current program
2071 space.
2072
2073 2020-10-29 Tom Tromey <tom@tromey.com>
2074
2075 * symfile.c (add_symbol_file_command): Update.
2076 * exec.c (program_space::add_target_sections): Rename.
2077 * symfile-mem.c (symbol_file_add_from_memory): Update.
2078 * progspace.h (struct program_space) <add_target_sections>:
2079 Declare new overload.
2080 * exec.h (add_target_sections_of_objfile): Don't declare.
2081
2082 2020-10-29 Tom Tromey <tom@tromey.com>
2083
2084 * solib.c (solib_map_sections): Update.
2085 * exec.c (program_space::add_target_sections): Now a method.
2086 (exec_file_attach): Update.
2087 * exec.h (add_target_sections): Don't declare.
2088 * progspace.h (struct program_space) <add_target_sections>:
2089 Declare.
2090
2091 2020-10-29 Tom Tromey <tom@tromey.com>
2092
2093 * progspace.h (struct program_space) <remove_target_sections>:
2094 Declare.
2095 * exec.c (program_space::remove_target_sections): Now a method.
2096 * exec.h (remove_target_sections): Don't declare.
2097
2098 2020-10-29 Tom Tromey <tom@tromey.com>
2099
2100 * inferior.c (delete_inferior): Update.
2101 * progspace.c (program_space::empty): Rename from
2102 program_space_empty_p. Return bool.
2103 * progspace.h (struct program_space) <empty>: New method.
2104 (program_space_empty_p): Don't declare.
2105
2106 2020-10-29 Tom Tromey <tom@tromey.com>
2107
2108 * progspace.c (program_space::~program_space): Don't call
2109 clear_program_space_solib_cache.
2110 (program_space::clear_solib_cache): Rename from
2111 clear_solib_cache.
2112 * solib.c (handle_solib_event): Update.
2113 * progspace.h (struct program_space) <clear_solib_cache>: New
2114 method.
2115 (clear_program_space_solib_cache): Don't declare.
2116
2117 2020-10-29 Tom Tromey <tom@tromey.com>
2118
2119 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2120 * target.c (info_target_command): Update.
2121 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2122 (symbol_file_clear, reread_symbols): Update.
2123 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2124 * stabsread.c (scan_file_globals): Update.
2125 * solib.c (update_solib_list): Update.
2126 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2127 (svr4_fetch_objfile_link_map, enable_break)
2128 (svr4_relocate_main_executable)
2129 (svr4_iterate_over_objfiles_in_search_order): Update.
2130 * solib-frv.c (lm_base, enable_break)
2131 (frv_relocate_main_executable): Update.
2132 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2133 (frv_fetch_objfile_link_map): Update.
2134 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2135 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2136 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2137 * remote.c (remote_target::get_offsets): Update.
2138 (remote_target::start_remote)
2139 (extended_remote_target::post_attach): Update.
2140 * objfiles.c (entry_point_address_query): Update.
2141 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2142 * minsyms.c (get_symbol_leading_char): Update.
2143 * frame.c (inside_main_func): Update.
2144 * progspace.h (symfile_objfile): Remove macro.
2145
2146 2020-10-29 Tom Tromey <tom@tromey.com>
2147
2148 * exec.c (exec_file_attach): Update.
2149 * progspace.c (program_space::exec_close): Update.
2150 * progspace.h (struct program_space) <ebfd>: Now a
2151 gdb_bfd_ref_ptr.
2152 <set_exec_bfd>: Change argument type.
2153 <exec_bfd>: Update.
2154
2155 2020-10-29 Tom Tromey <tom@tromey.com>
2156
2157 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2158 * symfile.c (reread_symbols): Update.
2159 * symfile-mem.c (add_symbol_file_from_memory_command)
2160 (add_vsyscall_page): Update.
2161 * source-cache.c (source_cache::get_plain_source_lines): Update.
2162 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2163 (svr4_current_sos_direct, svr4_exec_displacement)
2164 (svr4_relocate_main_executable): Update.
2165 (svr4_iterate_over_objfiles_in_search_order): Update.
2166 * solib-frv.c (enable_break2, enable_break): Update.
2167 * solib-dsbt.c (lm_base, enable_break): Update.
2168 * solib-darwin.c (find_program_interpreter)
2169 (darwin_solib_create_inferior_hook): Update.
2170 * sol-thread.c (rw_common, ps_pdmodel): Update.
2171 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2172 * remote.c (compare_sections_command)
2173 (remote_target::trace_set_readonly_regions): Update.
2174 * remote-sim.c (get_sim_inferior_data)
2175 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2176 (gdbsim_target_open, gdbsim_target::files_info): Update.
2177 * exec.h (exec_bfd): Remove macro.
2178 * progspace.c (initialize_progspace): Update.
2179 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2180 Update.
2181 * nto-procfs.c (nto_procfs_target::post_attach)
2182 (nto_procfs_target::create_inferior): Update.
2183 * maint.c (maintenance_info_sections): Update.
2184 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2185 Update.
2186 * infcmd.c (post_create_inferior): Update.
2187 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2188 (objfile_find_memory_regions): Update.
2189 * exec.c (validate_exec_file, exec_file_attach)
2190 (exec_read_partial_read_only, print_section_info): Update.
2191 * corelow.c (core_target_open): Update.
2192 * corefile.c (reopen_exec_file, validate_files): Update.
2193 * arm-tdep.c (gdb_print_insn_arm): Update.
2194 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2195 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2196 methods.
2197
2198 2020-10-29 Tom Tromey <tom@tromey.com>
2199
2200 * progspace.h (current_target_sections): Remove macro.
2201 * solib-svr4.c (scan_dyntag): Update.
2202 * solib-dsbt.c (scan_dyntag): Update.
2203 * exec.c (exec_target::close): Update.
2204 (add_target_sections, add_target_sections_of_objfile)
2205 (remove_target_sections, exec_target::get_section_table)
2206 (exec_target::files_info, set_section_command)
2207 (exec_set_section_address, exec_target::has_memory)
2208 (exec_target::has_memory): Update.
2209
2210 2020-10-29 Tom Tromey <tom@tromey.com>
2211
2212 * source-cache.c (source_cache::get_plain_source_lines): Use
2213 current_program_space.
2214 * corefile.c (reopen_exec_file): Use current_program_space.
2215 * exec.c (exec_file_attach): Use current_program_space.
2216 * exec.h (exec_bfd_mtime): Remove.
2217
2218 2020-10-29 Tom Tromey <tom@tromey.com>
2219
2220 * gcore.c (default_gcore_mach): Remove.
2221 (create_gcore_bfd): Update.
2222
2223 2020-10-29 Tom Tromey <tom@tromey.com>
2224
2225 * progspace.c (program_space::exec_close): New method, from
2226 exec_close in exec.c.
2227 * exec.c (exec_close): Move to progspace.c.
2228 (exec_target::close, exec_file_attach): Update.
2229 * progspace.h (struct program_space) <exec_close>: Declare
2230 method.
2231
2232 2020-10-29 Tom Tromey <tom@tromey.com>
2233
2234 * progspace.h (struct program_space) <exec_filename>: Rename from
2235 pspace_exec_filename. Now a unique_xmalloc_ptr.
2236 * inferior.c (print_selected_inferior): Update.
2237 (print_inferior): Update.
2238 * mi/mi-main.c (print_one_inferior): Update.
2239 * exec.h (exec_filename): Remove macro.
2240 * corefile.c (get_exec_file): Update.
2241 * exec.c (exec_close): Update.
2242 (exec_file_attach): Update.
2243 * progspace.c (clone_program_space): Update.
2244 (print_program_space): Update.
2245
2246 2020-10-29 Tom Tromey <tom@tromey.com>
2247
2248 * target-section.h (struct target_section): Add constructor.
2249 * exec.c (build_section_table, add_target_sections_of_objfile):
2250 Update.
2251 * corelow.c (core_target::build_file_mappings): Update.
2252
2253 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2254
2255 PR gdb/19318
2256 * inferior.c (detach_inferior_command): Restore the current thread.
2257 (kill_inferior_command): Ditto.
2258
2259 2020-10-28 Tom de Vries <tdevries@suse.de>
2260
2261 PR symtab/26772
2262 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2263 map, check it in the "best match" loop.
2264
2265 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * m32c-tdep.c: Remove unused includes.
2268
2269 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * xtensa-tdep.c: Remove includes.
2272
2273 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2274
2275 * breakpoint.c (struct condition_command_opts): New struct.
2276 (condition_command_option_defs): New static global.
2277 (make_condition_command_options_def_group): New function.
2278 (condition_completer): Update to consider the '-force' flag.
2279 (condition_command): Use gdb::option for the '-force' flag.
2280
2281 2020-10-27 Tom de Vries <tdevries@suse.de>
2282
2283 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2284 symbols in section check.
2285
2286 2020-10-27 Tom de Vries <tdevries@suse.de>
2287
2288 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2289
2290 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2291
2292 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2293 * breakpoint.c: Update the help text of the 'condition' and 'break'
2294 commands.
2295 (set_breakpoint_condition): Take a new bool parameter
2296 to control whether condition definition should be forced even when
2297 the condition expression is invalid in all of the current locations.
2298 (condition_command): Update the call to 'set_breakpoint_condition'.
2299 (find_condition_and_thread): Take the "-force-condition" flag into
2300 account.
2301 * linespec.c (linespec_keywords): Add "-force-condition" as an
2302 element.
2303 (FORCE_KEYWORD_INDEX): New #define.
2304 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2305 as a keyword.
2306 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2307 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2308 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2309 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2310
2311 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2312
2313 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2314 * breakpoint.c (set_breakpoint_location_condition): New function.
2315 (set_breakpoint_condition): Disable a breakpoint location if parsing
2316 the condition string gives an error.
2317 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2318 (build_target_condition_list): Ditto.
2319 (build_target_command_list): Ditto.
2320 (build_bpstat_chain): Ditto.
2321 (print_one_breakpoint_location): Ditto.
2322 (print_one_breakpoint): Ditto.
2323 (breakpoint_1): Ditto.
2324 (bp_location::bp_location): Ditto.
2325 (locations_are_equal): Ditto.
2326 (update_breakpoint_locations): Ditto.
2327 (enable_disable_bp_num_loc): Ditto.
2328 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2329 (find_condition_and_thread_for_sals): New static function.
2330 (create_breakpoint): Call find_condition_and_thread_for_sals.
2331 (location_to_sals): Call find_condition_and_thread_for_sals instead
2332 of find_condition_and_thread.
2333
2334 2020-10-26 Tom de Vries <tdevries@suse.de>
2335
2336 * dwarf2/read.c (process_full_comp_unit): Call
2337 dwarf2_find_base_address.
2338
2339 2020-10-26 Tom Tromey <tromey@adacore.com>
2340
2341 * gdbtypes.c (create_range_type): Revert previous patch. Add
2342 comment.
2343
2344 2020-10-26 Pedro Alves <pedro@palves.net>
2345
2346 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2347 (my_waitpid): Use gdb::handle_eintr.
2348
2349 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * acinclude.m4: Update ptrace.m4 path.
2352 * ptrace.m4: Moved to gdbsupport.
2353
2354 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2357 instead of target_gdbarch.
2358
2359 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2360
2361 * jit.c (jit_reader_load_command): Pass current inferior.
2362 (jit_inferior_init): Change parameter type to inferior, use it.
2363 (jit_inferior_created): Remove.
2364 (jit_inferior_created_hook): Pass inferior parameter down.
2365 (_initialize_jit): Use jit_inferior_created_hook instead of
2366 jit_inferior_created.
2367 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2368 * infrun.c (follow_exec): Pass inferior to
2369 jit_inferior_created_hook.
2370
2371 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2372
2373 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2374 parameter and use it.
2375 (thread_db_inferior_created): Pass inferior argument.
2376
2377 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * aix-thread.c (aix_thread_inferior_created): Add inferior
2380 parameter.
2381 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2382 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2383 * jit.c (jit_inferior_created): Likewise.
2384 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2385 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2386 * observable.h (inferior_created): Likewise.
2387 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2388 * symfile-mem.c (add_vsyscall_page): Likewise.
2389 * infcmd.c (post_create_inferior): Pass inferior argument.
2390
2391 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2392
2393 GDB 10.1 released.
2394
2395 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2396
2397 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2398 to ada_check_typedef.
2399
2400 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * f-exp.y (f_parse): Rename to...
2403 (f_language::parser): ...this.
2404 * f-lang.c (f_get_encoding): Rename to...
2405 (f_language::get_encoding): ...this.
2406 (f_op_print_tab): Rename to...
2407 (f_language::op_print_tab): ...this.
2408 (exp_descriptor_f): Rename to...
2409 (f_language::exp_descriptor_tab): ...this.
2410 (class f_language): Moved to f-lang.h.
2411 (f_language::language_arch_info): New function, moved out of class
2412 declaration.
2413 (f_language::search_name_hash): Likewise.
2414 (f_language::lookup_symbol_nonlocal): Likewise.
2415 (f_language::get_symbol_name_matcher_inner): Likewise.
2416 * f-lang.h: Add 'valprint.h' include.
2417 (class f_language): Moved here from f-lang.c.
2418 * f-typeprint.c (f_type_print_args): Delete commented out
2419 declaration.
2420 (f_print_typedef): Rename to...
2421 (f_language::print_typedef): ...this.
2422 (f_print_type): Rename to...
2423 (f_language::print_type): ...this.
2424 (f_type_print_varspec_prefix): Delete declaration and rename to...
2425 (f_language::f_type_print_varspec_prefix): ...this.
2426 (f_type_print_varspec_suffix): Delete declaration and rename to...
2427 (f_language::f_type_print_varspec_suffix): ...this.
2428 (f_type_print_base): Delete declaration and rename to...
2429 (f_language::f_type_print_base): ...this.
2430 * f-valprint.c (f_value_print_inner): Rename to...
2431 (f_language::value_print_inner): ...this.
2432 * parse.c: Delete 'f-lang.h' include.
2433
2434 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * language.h (language_defn::print_type): Add variable names in
2437 declaration, and update header comment.
2438
2439 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * ada-lang.c (ada_language::demangle): Rename to...
2442 (ada_language::demangle_symbol): ...this.
2443 * c-lang.c (cplus_language::demangle): Rename to...
2444 (cplus_language::demangle_symbol): ...this.
2445 * d-lang.c (d_language::demangle): Rename to...
2446 (d_language::demangle_symbol): ...this.
2447 * f-lang.c (f_language::demangle): Rename to...
2448 (f_language::demangle_symbol): ...this.
2449 * go-lang.c (go_language::demangle): Rename to...
2450 (go_language::demangle_symbol): ...this.
2451 * language.c (language_demangle): Update call to demangle_symbol.
2452 (auto_or_unknown_language::demangle): Rename to...
2453 (auto_or_unknown_language::demangle_symbol): ...this.
2454 * language.h (language_defn::demangle): Rename to...
2455 (language_defn::demangle_symbol): ...this.
2456 * objc-lang.c (objc_language::demangle): Rename to...
2457 (objc_language::demangle_symbol): ...this.
2458 * rust-lang.c (rust_language::demangle): Rename to...
2459 (rust_language::demangle_symbol): ...this.
2460
2461 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2464 (iterate_over_file_blocks): Replace use of macro with the macros
2465 definition.
2466
2467 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2470 * valprint.c (maybe_print_array_index): Replace use of macro with
2471 the macros definition.
2472
2473 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * ada-lang.c (ada_language::print_array_index): Call value_print
2476 directly.
2477 * language.c (language_defn::print_array_index): Likewise.
2478 * language.h (LA_VALUE_PRINT): Delete.
2479 * valprint.c (value_print): Call value_print on the
2480 current_language directly.
2481
2482 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * language.h (LA_PRINT_TYPEDEF): Delete.
2485 * typeprint.c (typedef_print): Call print_typedef directly on the
2486 current_language object.
2487
2488 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2489
2490 * m2-exp.y (m2_parse): Rename to...
2491 (m2_language::parser): ...this. Update function signature.
2492 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2493 (m2_op_print): Rename to...
2494 (m2_language::op_print_tab): ...this, and make const.
2495 (exp_descriptor_modula2): Rename to...
2496 (m2_language::exp_descriptor_modula2): ...this.
2497 (class m2_language): Move to m2-lang.h.
2498 (m2_language::language_arch_info): New function, moved out of
2499 class declaration.
2500 (m2_language::printchar): New function, body from m2_printchar.
2501 (m2_language::printstr): New function, moved out of class
2502 declaration.
2503 (m2_language::emitchar): Likewise.
2504 * m2-lang.h (m2_parse): Delete declaration.
2505 (m2_print_typedef): Delete declaration.
2506 (m2_value_print_inner): Delete declaration.
2507 (class m2_language): Class declaration moved from m2-lang.c,
2508 larger functions are left in m2-lang.c.
2509 * m2-typeprint.c (m2_print_typedef): Rename to...
2510 (m2_language::print_typedef): ...this, and update function
2511 signature.
2512 * m2-valprint.c (m2_value_print_inner): Rename to...
2513 (m2_language::value_print_inner): ...this, replace use of
2514 LA_PRINT_STRING with a direct call to printstr member function,
2515 and update recursive call.
2516
2517 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * language.c (default_is_string_type_p): Delete, implementation
2520 moved into auto_or_unknown_language::is_string_type_p.
2521 (unk_op_print_tab): Moved into
2522 auto_or_unknown_language::opcode_print_table.
2523 (unknown_language_arch_info): Delete, implementation moved into
2524 auto_or_unknown_language::language_arch_info.
2525 (class auto_or_unknown_language): New class, member functions
2526 copied from unknown_language class, with some updates.
2527 (class unknown_language): Most member functions moved into
2528 auto_or_unknown_language class. Inherit from
2529 auto_or_unknown_language class.
2530 (class auto_language): Inherit from auto_or_unknown_language.
2531 Delete most member functions.
2532
2533 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2534
2535 * stabsread.c (read_member_functions): Remove gdb_assert.
2536
2537 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2538
2539 * gdbtypes.c (init_complex_type): Check target type name.
2540
2541 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * target-debug.h (target_debug_print_struct_target_ops_p):
2544 Remove.
2545 (target_debug_print_async_callback_ftype_p): Remove.
2546 (target_debug_print_struct_trace_state_variable_p): Remove.
2547 (target_debug_print_struct_traceframe_info_p): Remove.
2548 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2549 (target_debug_print_enum_btrace_format): Remove.
2550 (target_debug_print_enum_info_proc_what): Remove.
2551 (target_debug_print_thread_info_pp): Remove.
2552
2553 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * target.h (struct target_ops) <make_corefile_notes>:
2556 Change return type to unique pointer.
2557 * target.c (dummy_make_corefile_notes): Likewise.
2558 * exec.c (struct exec_target) <make_corefile_notes>:
2559 Likewise.
2560 (exec_target::make_corefile_notes): Likewise.
2561 * procfs.c (class procfs_target) <make_corefile_notes>:
2562 Likewise.
2563 (procfs_do_thread_registers): Adjust to unique pointer.
2564 (struct procfs_corefile_thread_data): Add constructor.
2565 <note_data>: Change type to unique pointer.
2566 (procfs_corefile_thread_callback): Adjust to unique pointer.
2567 (procfs_target::make_corefile_notes): Change return type to
2568 unique pointer.
2569 * target-delegates.c: Re-generate.
2570 * gcore.c (write_gcore_file_1): Adjust.
2571 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2572 New.
2573
2574 2020-10-22 Tom de Vries <tdevries@suse.de>
2575
2576 * block.c (find_block_in_blockvector): Make sure the returned block
2577 contains pc.
2578
2579 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 PR gdb/26693
2582 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2583 parameter.
2584 (load_cu): Pass existing CU.
2585 (process_imported_unit_die): Likewise.
2586 (follow_die_offset): Likewise.
2587
2588 2020-10-22 Luis Machado <luis.machado@linaro.org>
2589
2590 * corelow.c (core_target::xfer_partial): Also check for an empty
2591 m_core_unavailable_mappings vector.
2592
2593 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2596 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2597 * f-exp.y (arglist): Allow for a series of subranges.
2598 (subrange): Add cases for subranges with strides.
2599 * f-lang.c (value_f90_subarray): Catch use of array strides and
2600 throw an error.
2601 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2602
2603 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * expprint.c (print_subexp_standard): Change enum range_type to
2606 range_flag and rename variables to match.
2607 (dump_subexp_body_standard): Likewise.
2608 * expression.h (enum range_type): Rename to...
2609 (enum range_flag): ...this.
2610 (range_types): Rename to...
2611 (range_flags): ...this.
2612 * f-lang.c (value_f90_subarray): Change enum range_type to
2613 range_flag and rename variables to match.
2614 * parse.c (operator_length_standard): Likewise.
2615 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2616 range_type to range_flag.
2617 * rust-lang.c (rust_evaluate_funcall): Likewise.
2618 (rust_range): Likewise.
2619 (rust_compute_range): Likewise.
2620 (rust_subscript): Likewise.
2621
2622 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2623
2624 * expprint.c (print_subexp_standard): Update to reflect changes to
2625 enum range_type.
2626 (dump_subexp_body_standard): Likewise.
2627 * expression.h (enum range_type): Convert to a bit field enum, and
2628 make the enum unsigned.
2629 * f-exp.y (subrange): Update to reflect changes to enum
2630 range_type.
2631 * f-lang.c (value_f90_subarray): Likewise.
2632 * parse.c (operator_length_standard): Likewise.
2633 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2634 * rust-lang.c (rust_range): Likewise.
2635 (rust_compute_range): Likewise.
2636 (rust_subscript): Likewise.
2637
2638 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2639
2640 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2641 (displaced_step_in_progress): Fix comment.
2642
2643 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2646 * gdbarch.c: Re-generate.
2647 * gdbarch.h: Re-generate.
2648 * gcore.c (write_gcore_file_1): Adjust.
2649 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2650 constructor.
2651 <note_data>: Change type to unique pointer.
2652 <abort_iteration>: Change type to bool.
2653 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2654 (fbsd_collect_thread_registers): Return void, adjust.
2655 (struct fbsd_corefile_thread_data): Add construtor.
2656 <note_data>: Change type to unique pointer.
2657 (fbsd_corefile_thread): Adjust.
2658 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2659 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2660 to unique pointer, adjust.
2661 (struct linux_collect_regset_section_cb_data): Add constructor.
2662 <note_data>: Change type to unique pointer.
2663 <abort_iteration>: Change type to bool.
2664 (linux_collect_thread_registers): Return void, adjust.
2665 (struct linux_corefile_thread_data): Add constructor.
2666 <note_data>: Change type to unique pointer.
2667 (linux_corefile_thread): Adjust.
2668 (linux_make_corefile_notes): Return unique pointer, adjust.
2669
2670 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2671
2672 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2673 * gdbarch.c: Re-generate.
2674 * gdbarch.h: Re-generate.
2675 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2676 bool.
2677 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2678 Likewise.
2679 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2680 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2681 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2682 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2683
2684 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2685
2686 * gdbarch.sh: Make generated predicates return bool.
2687 * gdbarch.c: Re-generate.
2688 * gdbarch.h: Re-generate.
2689
2690 2020-10-20 Tom Tromey <tom@tromey.com>
2691
2692 * varobj-iter.h (struct varobj_item): Remove typedef.
2693
2694 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2695
2696 * infrun.c (currently_stepping): Change int to bool
2697 (maybe_software_singlestep): Likewise.
2698 (show_stop_on_solib_events): Likewise.
2699 (stepping_past_nonsteppable_watchpoint): Likewise.
2700 (displaced_step_in_progress_any_inferior): Likewise.
2701 (displaced_step_in_progress_thread): Likewise.
2702 (keep_going_stepped_thread): Likewise.
2703 (thread_still_needs_step_over): Likewise.
2704 (start_step_over): Likewise.
2705 (do_target_resume): Likewise.
2706 (resume_1): Likewise.
2707 (clear_proceed_status): Likewise.
2708 (thread_still_needs_step_over_bp): Likewise.
2709 (proceed): Likewise.
2710 (switch_back_to_stepped_thread): Likewise.
2711 (adjust_pc_after_break): Likewise.
2712 (stepped_in_from): Likewise.
2713 (handle_stop_requested): Likewise.
2714 (handle_syscall_event): Likewise.
2715 (handle_no_resumed): Likewise.
2716 (handle_inferior_event): Likewise.
2717 (finish_step_over): Likewise.
2718 (handle_signal_stop): Likewise.
2719 (process_event_stop_test): Likewise.
2720
2721 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2722
2723 * infrun.c (get_displaced_stepping_state): Fix comment.
2724
2725 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2726
2727 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2728
2729 2020-10-19 Tom Tromey <tromey@adacore.com>
2730
2731 PR tui/26719
2732 * tui/tui-winsource.h (struct tui_source_window_base)
2733 <refresh_window>: Rename from refresh_pad.
2734 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2735 Rename from refresh_pad.
2736 (tui_source_window_base::show_source_content)
2737 (tui_source_window_base::do_scroll_horizontal): Update.
2738
2739 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740
2741 * thread.c (_initialize_thread): Fine-tune the help text of
2742 'info threads'.
2743
2744 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2745
2746 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2747
2748 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2749
2750 * breakpoint.c (handle_jit_event): Add an argument, change how
2751 `jit_event_handler` is called.
2752
2753 2020-10-17 Tom Tromey <tom@tromey.com>
2754
2755 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2756 (scan_xcoff_symtab): Update.
2757 * psymtab.h (class psymtab_storage) <global_psymbols,
2758 static_psymbols, current_global_psymbols,
2759 current_static_psymbols>: Remove.
2760 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2761 (match_partial_symbol, lookup_partial_symbol): Update.
2762 (print_partial_symbols): Change parameters.
2763 (dump_psymtab, recursively_search_psymtabs)
2764 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2765 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2766 (concat): Remove.
2767 (end_psymtab_common): Simplify.
2768 (append_psymbol_to_list): Change parameters.
2769 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2770 (init_psymbol_list): Simplify.
2771 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2772 * psympriv.h (struct partial_symtab) <empty>: New method.
2773 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2774 Remove.
2775 <global_psymbols, static_psymbols>: New members.
2776 <add_psymbol>: New methods.
2777 (add_psymbol_to_list): Don't declare.
2778 (psymbol_placement): Move earlier.
2779 * mdebugread.c (parse_partial_symbols): Update.
2780 (handle_psymbol_enumerators): Change parameters.
2781 (mdebug_expand_psymtab): Update.
2782 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2783 (add_partial_symbol): Update.
2784 * dwarf2/index-write.c (write_psymbols): Change parameters.
2785 (write_one_signatured_type): Update.
2786 (recursively_count_psymbols): Update.
2787 (recursively_write_psymbols): Update.
2788 (class debug_names) <recursively_write_psymbols>: Update.
2789 <write_psymbols>: Change parameters.
2790 <write_one_signatured_type>: Update.
2791 * dbxread.c (read_dbx_symtab): Update.
2792 (dbx_end_psymtab): Use partial_symtab::empty.
2793 * ctfread.c (struct ctf_context) <pst>: New member.
2794 (create_partial_symtab): Set it.
2795 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2796 (scan_partial_symbols): Use the psymtab's context. Update.
2797
2798 2020-10-17 Tom Tromey <tom@tromey.com>
2799
2800 * valprint.c (generic_value_print): Remove comment.
2801 * m2-valprint.c (m2_value_print_inner): Remove comment.
2802 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2803 type.
2804
2805 2020-10-17 Tom de Vries <tdevries@suse.de>
2806
2807 PR symtab/26317
2808 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2809 symbol main.
2810
2811 2020-10-14 Tom de Vries <tdevries@suse.de>
2812
2813 PR gdb/26733
2814 * solib.c (solib_contains_address_p): Handle
2815 'solib->sections == nullptr'.
2816
2817 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 PR gdb/26642
2820 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2821 target can't do async.
2822 * target.c (target_wait): Assert that we don't pass
2823 TARGET_WNOHANG to a target that can't async.
2824
2825 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2826
2827 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2828 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2829 * alpha-bsd-nat.c: Adjust include.
2830 * alpha-bsd-tdep.h: Adjust comment.
2831 * alpha-nbsd-tdep.c: Rename to ...
2832 * alpha-netbsd-tdep.c: ... this, adjust include.
2833 * amd64-nbsd-nat.c: Rename to ...
2834 * amd64-netbsd-nat.c: ... this, adjust include.
2835 * amd64-nbsd-tdep.c: Rename to ...
2836 * amd64-netbsd-tdep.c: ... this, adjust include.
2837 * amd64-tdep.h: Adjust include.
2838 * arm-nbsd-nat.c: Rename to ...
2839 * arm-netbsd-nat.c: ... this, adjust include.
2840 * arm-nbsd-tdep.c: Rename to ...
2841 * arm-netbsd-tdep.c: ... this, adjust include.
2842 * arm-nbsd-tdep.h: Rename to ...
2843 * arm-netbsd-tdep.h: ... this, adjust include.
2844 * configure.nat: Adjust file lists.
2845 * configure.tgt: Likewise.
2846 * hppa-nbsd-nat.c: Rename to ...
2847 * hppa-netbsd-nat.c: ... this, adjust include.
2848 * hppa-nbsd-tdep.c: Rename to ...
2849 * hppa-netbsd-tdep.c: ... this, adjust include.
2850 * i386-nbsd-nat.c: Rename to ...
2851 * i386-netbsd-nat.c: ... this, adjust include.
2852 * i386-nbsd-tdep.c: Rename to ...
2853 * i386-netbsd-tdep.c: ... this, adjust include.
2854 * m68k-bsd-nat.c: Adjust include.
2855 * mips-nbsd-nat.c: Rename to ...
2856 * mips-netbsd-nat.c: ... this, adjust include.
2857 * mips-nbsd-tdep.c: Rename to ...
2858 * mips-netbsd-tdep.c: ... this, adjust include.
2859 * mips-nbsd-tdep.h: Rename to ...
2860 * mips-netbsd-tdep.h: ... this.
2861 * nbsd-nat.c: Rename to ...
2862 * netbsd-nat.c: ... this, adjust include.
2863 * nbsd-nat.h: Rename to ...
2864 * netbsd-nat.h: ... this, adjust include.
2865 * nbsd-tdep.c: Rename to ...
2866 * netbsd-tdep.c: ... this, adjust include.
2867 * nbsd-tdep.h: Rename to ...
2868 * netbsd-tdep.h: ... this.
2869 * ppc-nbsd-nat.c: Rename to ...
2870 * ppc-netbsd-nat.c: ... this, adjust include.
2871 * ppc-nbsd-tdep.c: Rename to ...
2872 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2873 * ppc-nbsd-tdep.h: Rename to ...
2874 * ppc-netbsd-tdep.h: ... this.
2875 * sh-nbsd-nat.c: Rename to ...
2876 * sh-netbsd-nat.c: ... this, adjust include.
2877 * sh-nbsd-tdep.c: Rename to ...
2878 * sh-netbsd-tdep.c: ... this, adjust include.
2879 * sparc-nbsd-nat.c: Rename to ...
2880 * sparc-netbsd-nat.c: ... this.
2881 * sparc-nbsd-tdep.c: Rename to ...
2882 * sparc-netbsd-tdep.c: ... this, adjust include.
2883 * sparc64-nbsd-nat.c: Rename to ...
2884 * sparc64-netbsd-nat.c: ... this.
2885 * sparc64-nbsd-tdep.c: Rename to ...
2886 * sparc64-netbsd-tdep.c: ... this, adjust include.
2887 * sparc64-tdep.h: Adjust comment.
2888 * vax-bsd-nat.c: Adjust include.
2889 * vax-nbsd-tdep.c: Rename to ...
2890 * vax-netbsd-tdep.c: ... this, adjust include.
2891
2892 2020-10-12 Tom Tromey <tom@tromey.com>
2893
2894 * target.h (struct target_ops) <get_section_table>: Update.
2895 (target_get_section_table): Update.
2896 * target.c (target_get_section_table, target_section_by_addr)
2897 (memory_xfer_partial_1): Update.
2898 * target-section.h (target_section_table): Now an alias.
2899 * target-delegates.c: Rebuild.
2900 * target-debug.h (target_debug_print_target_section_table_p):
2901 Rename from target_debug_print_struct_target_section_table_p.
2902 * symfile.c (build_section_addr_info_from_section_table): Update.
2903 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2904 * solib-svr4.c (scan_dyntag): Update.
2905 * solib-dsbt.c (scan_dyntag): Update.
2906 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2907 Update.
2908 * record-full.c (record_full_core_target::xfer_partial): Update.
2909 * progspace.h (struct program_space) <target_sections>: Update.
2910 * exec.h (print_section_info): Update.
2911 * exec.c (exec_target::close, build_section_table)
2912 (add_target_sections, add_target_sections_of_objfile)
2913 (remove_target_sections, exec_on_vfork)
2914 (section_table_available_memory)
2915 (section_table_xfer_memory_partial)
2916 (exec_target::get_section_table, exec_target::xfer_partial)
2917 (print_section_info, set_section_command)
2918 (exec_set_section_address, exec_target::has_memory): Update.
2919 * corelow.c (core_target::build_file_mappings)
2920 (core_target::xfer_partial, core_target::info_proc_mappings)
2921 (core_target::info_proc_mappings): Update.
2922 * bfd-target.c (class target_bfd): Update
2923
2924 2020-10-12 Tom Tromey <tom@tromey.com>
2925
2926 * progspace.c (program_space::~program_space): Don't call
2927 clear_section_table.
2928 * exec.h (clear_section_table): Don't declare.
2929 * exec.c (exec_target::close): Update.
2930 (clear_section_table): Remove.
2931
2932 2020-10-12 Tom Tromey <tom@tromey.com>
2933
2934 * exec.c (add_target_sections_of_objfile): Simplify.
2935
2936 2020-10-12 Tom Tromey <tom@tromey.com>
2937
2938 * solib.c (solib_map_sections): Update.
2939 * record-full.c (record_full_core_open_1): Update.
2940 * exec.h (build_section_table): Return a target_section_table.
2941 * exec.c (exec_file_attach): Update.
2942 (build_section_table): Return a target_section_table.
2943 * corelow.c (core_target::core_target): Update.
2944 * bfd-target.c (target_bfd::target_bfd): Update.
2945
2946 2020-10-12 Tom Tromey <tom@tromey.com>
2947
2948 * target.c (target_section_by_addr, memory_xfer_partial_1):
2949 Update.
2950 * target-section.h (struct target_section_table): Use
2951 std::vector.
2952 * symfile.h (build_section_addr_info_from_section_table): Take a
2953 target_section_table.
2954 * symfile.c (build_section_addr_info_from_section_table): Take a
2955 target_section_table.
2956 * solist.h (struct so_list) <sections>: Change type.
2957 <sections_end>: Remove.
2958 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2959 (solib_contains_address_p): Update.
2960 * solib-svr4.c (scan_dyntag): Update.
2961 * solib-dsbt.c (scan_dyntag): Update.
2962 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2963 Update.
2964 * record-full.c (record_full_core_start, record_full_core_end):
2965 Remove.
2966 (record_full_core_sections): New global.
2967 (record_full_core_open_1, record_full_core_target::xfer_partial):
2968 Update.
2969 * exec.h (build_section_table, section_table_xfer_memory_partial)
2970 (add_target_sections): Take a target_section_table.
2971 * exec.c (exec_file_attach, clear_section_table): Update.
2972 (resize_section_table): Remove.
2973 (build_section_table, add_target_sections): Take a
2974 target_section_table.
2975 (add_target_sections_of_objfile, remove_target_sections)
2976 (exec_on_vfork): Update.
2977 (section_table_available_memory): Take a target_section_table.
2978 (section_table_read_available_memory): Update.
2979 (section_table_xfer_memory_partial): Take a target_section_table.
2980 (print_section_info, set_section_command)
2981 (exec_set_section_address, exec_target::has_memory): Update.
2982 * corelow.c (class core_target) <m_core_section_table,
2983 m_core_file_mappings>: Remove braces.
2984 <~core_target>: Remove.
2985 (core_target::core_target): Update.
2986 (core_target::~core_target): Remove.
2987 (core_target::build_file_mappings)
2988 (core_target::xfer_memory_via_mappings)
2989 (core_target::xfer_partial, core_target::info_proc_mappings):
2990 Update.
2991 * bfd-target.c (target_bfd::xfer_partial): Update.
2992 (target_bfd::target_bfd): Update.
2993 (target_bfd::~target_bfd): Remove.
2994
2995 2020-10-12 Tom Tromey <tom@tromey.com>
2996
2997 * target.h (struct target_section, struct target_section_table):
2998 Move to target-section.h.
2999 * target-section.h: New file.
3000
3001 2020-10-12 Pedro Alves <pedro@palves.net>
3002
3003 PR exp/26602
3004 * valops.c (struct struct_field_searcher): New.
3005 (update_search_result): Rename to ...
3006 (struct_field_searcher::update_result): ... this. Simplify
3007 prototype. Record all found fields.
3008 (do_search_struct_field): Rename to ...
3009 (struct_field_searcher::search): ... this. Simplify prototype.
3010 Maintain stack of visited baseclass path. Call update_result for
3011 fields too. Keep searching fields in baseclasses instead of
3012 stopping at the first found field.
3013 (search_struct_field): Use struct_field_searcher. When looking
3014 for fields, report ambiguous access attempts.
3015
3016 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * frame.c (inside_main_func): Check full symbols as well as
3019 minimal symbols.
3020
3021 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3022
3023 * ada-lang.c (advance_wild_match): Rewrite the function's
3024 description. Change the type of target0, t0 and t1 to char.
3025
3026 2020-10-09 Tom Tromey <tromey@adacore.com>
3027
3028 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3029
3030 2020-10-09 Tom Tromey <tromey@adacore.com>
3031
3032 * ada-lang.h (ada_encode): Return std::string.
3033 * ada-lang.c (ada_encode_1): Return std::string.
3034 (ada_encode): Likewise.
3035 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3036 Update.
3037 * ada-exp.y (block_lookup, write_var_or_type): Update.
3038
3039 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3040
3041 PR exp/26714
3042 * printcmd.c (print_formatted): Handle void results as
3043 unformatted prints.
3044
3045 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * arch/aarch32.c (aarch32_create_target_description): Release the
3048 target_desc_up as late as possible.
3049 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3050 * arch/amd64.c (amd64_create_target_description): Likewise.
3051 * arch/arc.c (arc_create_target_description): Return a
3052 target_desc_up, don't release it.
3053 * arch/arc.h (arc_create_target_description): Update declaration.
3054 (arc_lookup_target_description): Move target_desc_up into the
3055 cache, and return a borrowed pointer.
3056 * arch/arm.c (arm_create_target_description): Release the
3057 target_desc_up as late as possible.
3058 * arch/i386.c (i386_create_target_description): Likewise.
3059 * arch/riscv.h (riscv_create_target_description): Update
3060 declaration to match definition.
3061 * arch/tic6x.c (tic6x_create_target_description): Release the
3062 target_desc_up as late as possible.
3063
3064 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3067 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3068
3069 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3070
3071 * source.c (directory_command): Notify observers that "directories"
3072 parameter has changed.
3073
3074 2020-10-08 Tom Tromey <tom@tromey.com>
3075
3076 * cli/cli-cmds.c (print_disassembly): Style function name and
3077 addresses. Add _() wrappers.
3078
3079 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3080
3081 * NEWS: Mention ARC support in GDBserver.
3082
3083 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * arch/aarch32.c (aarch32_create_target_description): Release
3086 unique_ptr returned from allocate_target_description.
3087 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3088 * arch/amd64.c (amd64_create_target_description): Likewise.
3089 * arch/arc.c (arc_create_target_description): Likewise.
3090 * arch/arm.c (arm_create_target_description): Likewise.
3091 * arch/i386.c (i386_create_target_description): Likewise.
3092 * arch/riscv.c (riscv_create_target_description): Update return
3093 type. Handle allocate_target_description returning a unique_ptr.
3094 (riscv_lookup_target_description): Update to handle unique_ptr.
3095 * arch/tic6x.c (tic6x_create_target_description): Release
3096 unique_ptr returned from allocate_target_description.
3097 * features/microblaze-with-stack-protect.c: Regenerate.
3098 * features/microblaze.c: Regenerate.
3099 * features/mips-dsp-linux.c: Regenerate.
3100 * features/mips-linux.c: Regenerate.
3101 * features/mips64-dsp-linux.c: Regenerate.
3102 * features/mips64-linux.c: Regenerate.
3103 * features/nds32.c: Regenerate.
3104 * features/nios2.c: Regenerate.
3105 * features/or1k.c: Regenerate.
3106 * features/rs6000/powerpc-32.c: Regenerate.
3107 * features/rs6000/powerpc-32l.c: Regenerate.
3108 * features/rs6000/powerpc-403.c: Regenerate.
3109 * features/rs6000/powerpc-403gc.c: Regenerate.
3110 * features/rs6000/powerpc-405.c: Regenerate.
3111 * features/rs6000/powerpc-505.c: Regenerate.
3112 * features/rs6000/powerpc-601.c: Regenerate.
3113 * features/rs6000/powerpc-602.c: Regenerate.
3114 * features/rs6000/powerpc-603.c: Regenerate.
3115 * features/rs6000/powerpc-604.c: Regenerate.
3116 * features/rs6000/powerpc-64.c: Regenerate.
3117 * features/rs6000/powerpc-64l.c: Regenerate.
3118 * features/rs6000/powerpc-7400.c: Regenerate.
3119 * features/rs6000/powerpc-750.c: Regenerate.
3120 * features/rs6000/powerpc-860.c: Regenerate.
3121 * features/rs6000/powerpc-altivec32.c: Regenerate.
3122 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3123 * features/rs6000/powerpc-altivec64.c: Regenerate.
3124 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3125 * features/rs6000/powerpc-e500.c: Regenerate.
3126 * features/rs6000/powerpc-e500l.c: Regenerate.
3127 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3128 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3129 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3130 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3131 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3132 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3133 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3134 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3135 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3136 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3137 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3138 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3139 * features/rs6000/powerpc-vsx32.c: Regenerate.
3140 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3141 * features/rs6000/powerpc-vsx64.c: Regenerate.
3142 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3143 * features/rs6000/rs6000.c: Regenerate.
3144 * features/rx.c: Regenerate.
3145 * features/s390-gs-linux64.c: Regenerate.
3146 * features/s390-linux32.c: Regenerate.
3147 * features/s390-linux32v1.c: Regenerate.
3148 * features/s390-linux32v2.c: Regenerate.
3149 * features/s390-linux64.c: Regenerate.
3150 * features/s390-linux64v1.c: Regenerate.
3151 * features/s390-linux64v2.c: Regenerate.
3152 * features/s390-te-linux64.c: Regenerate.
3153 * features/s390-tevx-linux64.c: Regenerate.
3154 * features/s390-vx-linux64.c: Regenerate.
3155 * features/s390x-gs-linux64.c: Regenerate.
3156 * features/s390x-linux64.c: Regenerate.
3157 * features/s390x-linux64v1.c: Regenerate.
3158 * features/s390x-linux64v2.c: Regenerate.
3159 * features/s390x-te-linux64.c: Regenerate.
3160 * features/s390x-tevx-linux64.c: Regenerate.
3161 * features/s390x-vx-linux64.c: Regenerate.
3162 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3163 from allocate_target_description.
3164 * target-descriptions.c (allocate_target_description): Update
3165 return type.
3166 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3167 allocate_target_description.
3168
3169 2020-10-07 Tom Tromey <tromey@adacore.com>
3170
3171 * unittests/search-memory-selftests.c: New file.
3172 * Makefile.in (SELFTESTS_SRCS): Add
3173 unittests/search-memory-selftests.c.
3174
3175 2020-10-07 Tom Tromey <tromey@adacore.com>
3176
3177 PR gdb/16930:
3178 * findcmd.c (_initialize_mem_search): Mention that the range is
3179 inclusive.
3180
3181 2020-10-07 Tom Tromey <tromey@adacore.com>
3182
3183 * target.h (simple_search_memory): Don't declare.
3184 * target.c (simple_search_memory): Move to gdbsupport.
3185 (default_search_memory): Update.
3186 * remote.c (remote_target::search_memory): Update.
3187
3188 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3189
3190 * Makefile.in (COMPILE): Add CXXFLAGS.
3191 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3192 (check-headers): Add CXXFLAGS.
3193
3194 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3195
3196 * arc-linux-tdep.h: New file.
3197 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3198 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3199 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3200 arc_linux_gregset, arc_linux_v2_regset,
3201 arc_linux_iterate_over_regset_sections,
3202 arc_linux_core_read_description): Implement.
3203 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3204 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3205 (arc_gdbarch_features_create): Add.
3206 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3207
3208 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3209
3210 * arch/arc.h: Rename "arc_gdbarch_features" to
3211 "arc_arch_features".
3212 * arc-tdep.h: Likewise.
3213 * arc-tdep.c: Likewise.
3214
3215 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3216
3217 * infcmd.c (attach_command): Remove the redundant call to
3218 `clear_proceed_status`.
3219
3220 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3221
3222 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3223
3224 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3225
3226 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3227 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3228 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3229
3230 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3233 (_initialize_break_catch_sig): Don't allocate array.
3234
3235 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * symtab.c (find_pc_line): Return unmapped addresses when the
3238 requested address is also unmapped.
3239
3240 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3241
3242 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3243 tui/tui-out.h.
3244
3245 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3246
3247 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3248 type::is_vector instead of TYPE_VECTOR.
3249
3250 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3251
3252 * auto-load.c (auto_load_objfile_script_1): Don't use
3253 debugfile_holder as temporary variable when stripping drive
3254 letter.
3255
3256 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3257
3258 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3259 Add TYPE_CODE_COMPLEX.
3260 (amd64_windows_return_value): Fix types returned via XMM0.
3261
3262 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3263
3264 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3265 AArch64/ARM maintainers.
3266
3267 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3268
3269 * NEWS: Mention set/show debug event-loop.
3270
3271 2020-10-02 Tom Tromey <tromey@adacore.com>
3272
3273 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3274 REG_EXTENDED.
3275
3276 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3279 * procfs.c (procfs_inferior_created): Remove.
3280 (_initialize_procfs): Don't register procfs_inferior_created.
3281
3282 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * async-event.c (invoke_async_signal_handlers): Add debug
3285 print.
3286 (check_async_event_handlers): Likewise.
3287 * event-top.c (show_debug_event_loop): New function.
3288 (_initialize_event_top): Register "set debug event-loop"
3289 setting.
3290
3291 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3294 * debug.h: Remove.
3295 * infrun.c: Include gdbsupport/common-debug.h.
3296 * linux-nat.c: Likewise.
3297
3298 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3299
3300 * async-event.h (create_async_signal_handler): Add name
3301 parameter.
3302 (create_async_event_handler): Likewise.
3303 * async-event.c (struct async_signal_handler) <name>: New field.
3304 (struct async_event_handler) <name>: New field.
3305 (create_async_signal_handler): Assign name.
3306 (create_async_event_handler): Assign name.
3307 * event-top.c (async_init_signals): Pass name when creating
3308 handler.
3309 * infrun.c (_initialize_infrun): Likewise.
3310 * record-btrace.c (record_btrace_push_target): Likewise.
3311 * record-full.c (record_full_open): Likewise.
3312 * remote-notif.c (remote_notif_state_allocate): Likewise.
3313 * remote.c (remote_target::open_1): Likewise.
3314 * tui/tui-win.c (tui_initialize_win): Likewise.
3315
3316 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3317
3318 * async-event.c (initialize_async_signal_handlers): Pass name to
3319 add_file_handler
3320 * event-top.c (ui_register_input_event_handler): Likewise.
3321 * linux-nat.c (linux_nat_target::async): Likewise.
3322 * run-on-main-thread.c (_initialize_run_on_main_thread):
3323 Likewise
3324 * ser-base.c (reschedule): Likewise.
3325 (ser_base_async): Likewise.
3326 * tui/tui-io.c: Likewise.
3327 * top.h (struct ui) <num>: New field.
3328 * top.c (highest_ui_num): New variable.
3329 (ui::ui): Initialize num.
3330
3331 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * observable.h <inferior_created>: Remove parameters. Update all
3334 listeners.
3335 * inferior.h (post_create_inferior): Remove target parameter.
3336 Update all callers.
3337
3338 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3339
3340 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3341 and DW_MACRO_undef_strx.
3342 (dwarf_decode_macros): Likewise
3343 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3344 which is the value of DW_AT_str_offsets_base.
3345 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3346 str_offsets_base.
3347
3348 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3349
3350 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3351
3352 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3353
3354 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3355 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3356
3357 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3358
3359 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3360
3361 2020-09-30 Tom de Vries <tdevries@suse.de>
3362
3363 PR symtab/26683
3364 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3365
3366 2020-09-30 Tom Tromey <tromey@adacore.com>
3367
3368 * dwarf2/read.c (handle_variant): Use constant_value.
3369
3370 2020-09-29 Tom Tromey <tom@tromey.com>
3371
3372 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3373 (read_file_scope, dwarf2_get_pc_bounds)
3374 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3375 (read_structure_type, handle_struct_member_die)
3376 (read_enumeration_type, read_array_type, read_set_type)
3377 (read_tag_pointer_type, read_tag_reference_type)
3378 (read_subroutine_type, read_base_type, read_subrange_type)
3379 (read_full_die_1, partial_die_info::read)
3380 (partial_die_info::read, by, new_symbol)
3381 (dwarf2_const_value_data, dwarf2_const_value_attr)
3382 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3383 (prepare_one_comp_unit): Update.
3384 * dwarf2/attribute.h (DW_UNSND): Remove.
3385
3386 2020-09-29 Tom Tromey <tom@tromey.com>
3387
3388 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3389 (read_subroutine_type, partial_die_info::read)
3390 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3391 (dwarf2_add_member_fn): Update.
3392 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3393 * dwarf2/attribute.c (attribute::as_boolean): New method.
3394
3395 2020-09-29 Tom Tromey <tom@tromey.com>
3396
3397 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3398 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3399 method.
3400 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3401
3402 2020-09-29 Tom Tromey <tom@tromey.com>
3403
3404 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3405 the attribute's form.
3406
3407 2020-09-29 Tom Tromey <tom@tromey.com>
3408
3409 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3410 (dwarf2_add_member_fn): Update.
3411 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3412 * dwarf2/attribute.c (attribute::defaulted): New method, from
3413 is_valid_DW_AT_defaulted.
3414
3415 2020-09-29 Tom Tromey <tom@tromey.com>
3416
3417 * dwarf2/read.c (dw2_get_file_names_reader)
3418 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3419 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3420 (dwarf2_symbol_mark_computed): Use as_unsigned.
3421 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3422 method.
3423 <form_is_section_offset>: Update comment.
3424
3425 2020-09-29 Tom Tromey <tom@tromey.com>
3426
3427 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3428 dwarf2_default_access_attribute. Look up attribute.
3429 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3430 Update.
3431
3432 2020-09-29 Tom Tromey <tom@tromey.com>
3433
3434 * dwarf2/read.c (skip_one_die): Update.
3435 (read_full_die_1): Change how reprocessing is done.
3436 (partial_die_info::read): Update.
3437 (read_attribute_value): Remove need_reprocess parameter.
3438 (read_attribute): Likewise.
3439 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3440 New method.
3441
3442 2020-09-29 Tom Tromey <tom@tromey.com>
3443
3444 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3445 (dwarf2_const_value_attr, dump_die_shallow)
3446 (dwarf2_fetch_constant_bytes): Update.
3447 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3448 comment.
3449 <set_address>: New method.
3450 (DW_ADDR): Remove.
3451 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3452 (attribute::as_string, attribute::as_address): Add assert.
3453
3454 2020-09-29 Tom Tromey <tom@tromey.com>
3455
3456 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3457 (read_attribute_reprocess, read_attribute_value): Update.
3458 (read_attribute): Clear requires_reprocessing.
3459 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3460 form_requires_reprocessing>: New methods.
3461 <string_init>: Clear requires_reprocessing.
3462 <set_unsigned_reprocess>: New method.
3463 <name>: Shrink by one bit.
3464 <requires_reprocessing>: New member.
3465 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3466 method.
3467
3468 2020-09-29 Tom Tromey <tom@tromey.com>
3469
3470 * dwarf2/read.c (read_attribute_value): Update.
3471 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3472 set_unsigned>: New methods.
3473 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3474
3475 2020-09-29 Tom Tromey <tom@tromey.com>
3476
3477 * dwarf2/read.c (get_alignment, read_array_order)
3478 (read_attribute_value, dwarf2_const_value_attr)
3479 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3480 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3481 New methods.
3482 (DW_SND): Remove.
3483
3484 2020-09-29 Tom Tromey <tom@tromey.com>
3485
3486 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3487 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3488 Update.
3489 * dwarf2/attribute.h (struct attribute) <as_signature,
3490 set_signature>: New methods.
3491 (DW_SIGNATURE): Remove.
3492
3493 2020-09-29 Tom Tromey <tom@tromey.com>
3494
3495 * dwarf2/read.c (read_call_site_scope)
3496 (handle_data_member_location, dwarf2_add_member_fn)
3497 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3498 (partial_die_info::read, read_attribute_value)
3499 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3500 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3501 (dwarf2_symbol_mark_computed): Update.
3502 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3503 methods.
3504 (DW_BLOCK): Remove.
3505 * dwarf2/attribute.c (attribute::form_is_block): Add
3506 DW_FORM_data16.
3507
3508 2020-09-29 Tom Tromey <tom@tromey.com>
3509
3510 * dwarf2/read.c (read_cutu_die_from_dwo)
3511 (read_attribute_reprocess, read_attribute_value, read_attribute)
3512 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3513 (dwarf2_fetch_constant_bytes): Update.
3514 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3515 <set_string_noncanonical, set_string_canonical>: New methods.
3516 <string_is_canonical>: Update comment.
3517 <canonical_string_p>: Add assert.
3518 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3519 * dwarf2/attribute.c (attribute::form_is_string): New method.
3520 (attribute::string): Use it.
3521
3522 2020-09-29 Tom Tromey <tom@tromey.com>
3523
3524 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3525 (dump_die_shallow): Use canonical_string_p.
3526 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3527 method.
3528
3529 2020-09-29 Tom Tromey <tom@tromey.com>
3530
3531 * dwarf2/read.c (partial_die_info::read)
3532 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3533 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3534 attribute::as_string.
3535
3536 2020-09-29 Tom Tromey <tom@tromey.com>
3537
3538 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3539 DW_ADDR.
3540 (attribute::string): Don't use DW_STRING.
3541 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3542 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3543
3544 2020-09-29 Tom Tromey <tom@tromey.com>
3545
3546 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3547 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3548 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3549 * dwarf2/attribute.h (struct attribute): Rename methods.
3550 * dwarf2/attribute.c (attribute::as_address): Rename from
3551 value_as_address.
3552 (attribute::as_string): Rename from value_as_string.
3553
3554 2020-09-29 Tom Tromey <tom@tromey.com>
3555
3556 * dwarf2/read.c (partial_die_info::read) <case
3557 DW_AT_linkage_name>: Use value_as_string.
3558 (dwarf2_string_attr): Use value_as_string.
3559 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3560 method.
3561 * dwarf2/attribute.c (attribute::value_as_string): New method.
3562
3563 2020-09-29 Pedro Alves <pedro@palves.net>
3564
3565 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3566 defined before using '#pragma GCC diagnostic' instead of checking
3567 __clang__.
3568
3569 2020-09-28 Tom Tromey <tom@tromey.com>
3570
3571 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3572 (handle_signal_stop): Update.
3573 * procfs.c (procfs_target::insert_watchpoint): Update.
3574 * target.h (target_have_steppable_watchpoint): Now a function.
3575
3576 2020-09-28 Tom Tromey <tom@tromey.com>
3577
3578 * infrun.c (set_schedlock_func): Update.
3579 * target.h (target_can_lock_scheduler): Now a function.
3580
3581 2020-09-28 Tom Tromey <tom@tromey.com>
3582
3583 * inferior.h (class inferior) <has_execution>: Update.
3584 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3585 * valops.c (find_function_in_inferior)
3586 (value_allocate_space_in_inferior): Update.
3587 * top.c (kill_or_detach): Update.
3588 * target.c (target_preopen, set_target_permissions): Update.
3589 (target_has_execution_current): Remove.
3590 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3591 Update.
3592 * solib.c (update_solib_list, reload_shared_libraries): Update.
3593 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3594 * solib-dsbt.c (enable_break): Update.
3595 * score-tdep.c (score7_fetch_inst): Update.
3596 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3597 Update.
3598 * remote.c (remote_target::start_remote)
3599 (remote_target::remote_check_symbols, remote_target::open_1)
3600 (remote_target::remote_detach_1, remote_target::verify_memory)
3601 (remote_target::xfer_partial, remote_target::read_description)
3602 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3603 * record-full.c (record_full_open_1): Update.
3604 * record-btrace.c (record_btrace_target_open): Update.
3605 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3606 (value_nsstring): Update.
3607 * linux-thread-db.c (add_thread_db_info)
3608 (thread_db_find_new_threads_silently, check_thread_db_callback)
3609 (try_thread_db_load_1, record_thread): Update.
3610 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3611 Update.
3612 * linux-fork.c (checkpoint_command): Update.
3613 * infrun.c (set_non_stop, set_observer_mode)
3614 (check_multi_target_resumption, for_each_just_stopped_thread)
3615 (maybe_remove_breakpoints, normal_stop)
3616 (class infcall_suspend_state): Update.
3617 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3618 (info_program_command, attach_command): Update.
3619 * infcall.c (call_function_by_hand_dummy): Update.
3620 * inf-loop.c (inferior_event_handler): Update.
3621 * gcore.c (gcore_command, derive_heap_segment): Update.
3622 * exec.c (exec_file_command): Update.
3623 * eval.c (evaluate_subexp): Update.
3624 * compile/compile.c (compile_to_object): Update.
3625 * cli/cli-dump.c (restore_command): Update.
3626 * breakpoint.c (update_watchpoint)
3627 (update_inserted_breakpoint_locations)
3628 (insert_breakpoint_locations, get_bpstat_thread): Update.
3629 * target.h (target_has_execution): Remove macro.
3630 (target_has_execution_current): Don't declare.
3631 (target_has_execution): Rename from target_has_execution_1. Add
3632 argument default.
3633
3634 2020-09-28 Tom Tromey <tom@tromey.com>
3635
3636 * mi/mi-main.c (exec_reverse_continue)
3637 (mi_cmd_list_target_features): Update.
3638 * infrun.c (set_exec_direction_func): Update.
3639 * target.c (default_execution_direction): Update.
3640 * reverse.c (exec_reverse_once): Update.
3641 * target.h (target_can_execute_reverse): Now a function.
3642
3643 2020-09-28 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-regs.c (tui_get_register)
3646 (tui_data_window::show_registers): Update.
3647 * thread.c (scoped_restore_current_thread::restore)
3648 (scoped_restore_current_thread::scoped_restore_current_thread):
3649 Update.
3650 * regcache-dump.c (regcache_print): Update.
3651 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3652 Update.
3653 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3654 * mep-tdep.c (current_me_module, current_options): Update.
3655 * linux-thread-db.c (thread_db_load): Update.
3656 * infcmd.c (registers_info, info_vector_command)
3657 (info_float_command): Update.
3658 * ia64-tdep.c (ia64_frame_prev_register)
3659 (ia64_sigtramp_frame_prev_register): Update.
3660 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3661 * gcore.c (derive_stack_segment): Update.
3662 * frame.c (get_current_frame, has_stack_frames): Update.
3663 * findvar.c (language_defn::read_var_value): Update.
3664 * arm-tdep.c (arm_pc_is_thumb): Update.
3665 * target.c (target_has_registers): Rename from
3666 target_has_registers_1.
3667 * target.h (target_has_registers): Remove macro.
3668 (target_has_registers): Rename from target_has_registers_1.
3669
3670 2020-09-28 Tom Tromey <tom@tromey.com>
3671
3672 * windows-tdep.c (tlb_make_value): Update.
3673 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3674 * thread.c (scoped_restore_current_thread::restore)
3675 (scoped_restore_current_thread::scoped_restore_current_thread)
3676 (thread_command): Update.
3677 * stack.c (backtrace_command_1, frame_apply_level_command)
3678 (frame_apply_all_command, frame_apply_command): Update.
3679 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3680 Update.
3681 * gcore.c (derive_stack_segment): Update.
3682 * frame.c (get_current_frame, has_stack_frames): Update.
3683 * auxv.c (info_auxv_command): Update.
3684 * ada-tasks.c (ada_build_task_list): Update.
3685 * target.c (target_has_stack): Rename from target_has_stack_1.
3686 * target.h (target_has_stack): Remove macro.
3687 (target_has_stack): Rename from target_has_stack_1.
3688
3689 2020-09-28 Tom Tromey <tom@tromey.com>
3690
3691 * target.c (target_has_memory): Rename from target_has_memory_1.
3692 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3693 * thread.c (scoped_restore_current_thread::restore)
3694 (scoped_restore_current_thread::scoped_restore_current_thread):
3695 Update.
3696 * frame.c (get_current_frame, has_stack_frames): Update.
3697 * target.h (target_has_memory): Remove macro.
3698 (target_has_memory): Rename from target_has_memory_1.
3699
3700 2020-09-28 Tom Tromey <tom@tromey.com>
3701
3702 * target.c (target_has_all_memory_1): Remove.
3703 * target.h (target_has_all_memory): Remove define.
3704 (target_has_all_memory_1): Don't declare.
3705
3706 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3707
3708 * ser-base.c: Adjust comments formatting.
3709
3710 2020-09-27 Tom Tromey <tom@tromey.com>
3711
3712 PR tui/25342:
3713 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3714
3715 2020-09-27 Tom Tromey <tom@tromey.com>
3716
3717 PR tui/25342:
3718 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3719
3720 2020-09-27 Tom Tromey <tom@tromey.com>
3721
3722 * unittests/tui-selftests.c: Update.
3723 * tui/tui-winsource.h (struct tui_source_window_base)
3724 <extra_margin, show_line_number, refresh_pad>: New methods.
3725 <m_max_length, m_pad>: New members.
3726 (tui_copy_source_line): Update.
3727 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3728 first_col, line_width, ndigits parameters. Add length.
3729 (tui_source_window_base::show_source_line): Write to pad. Line
3730 number now 0-based.
3731 (tui_source_window_base::refresh_pad): New method.
3732 (tui_source_window_base::show_source_content): Write to pad. Call
3733 refresh_pad.
3734 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3735 not refill.
3736 (tui_source_window_base::update_exec_info): Call
3737 show_line_number.
3738 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3739 method.
3740 <m_digits>: New member.
3741 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3742 and m_max_length.
3743 (tui_source_window::show_line_number): New method.
3744 * tui/tui-io.h (tui_puts): Fix comment.
3745 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3746 m_max_length.
3747
3748 2020-09-27 Tom Tromey <tom@tromey.com>
3749
3750 * tui/tui-winsource.c
3751 (tui_source_window_base::set_is_exec_point_at): Don't call
3752 show_source_line.
3753
3754 2020-09-27 Tom Tromey <tom@tromey.com>
3755
3756 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3757 method.
3758 <erase>: Update.
3759 <cursor_x, cursor_y>: Remove.
3760 <m_inner_window>: New member.
3761 (tui_py_window::rerender): Create inner window.
3762 (tui_py_window::output): Write to inner window.
3763
3764 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3765
3766 PR python/26586
3767 * cli/cli-script.c (execute_control_commands): don't set
3768 instream to nullptr here as this breaks the from_tty argument
3769 to gdb.execute in Python.
3770 (execute_user_command): set instream to nullptr here instead.
3771
3772 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * infrun.h (infrun_debug_printf): Fix formatting.
3775 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3776
3777 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3778
3779 * compile/compile-object-load.h (struct munmap_list): Add
3780 explicitly-defined move constructor.
3781
3782 2020-09-24 Tom Tromey <tromey@adacore.com>
3783
3784 PR tui/26638:
3785 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3786 method.
3787 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3788 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3789 (tui_prev_win): Rewrite.
3790
3791 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3792
3793 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3794 in WOW64 processes as SIGINT.
3795 * nat/windows-nat.h: Make wow64_process a shared variable.
3796 * windows-nat.c: Remove static wow64_process variable.
3797
3798 2020-09-23 Tom Tromey <tom@tromey.com>
3799
3800 PR symtab/25470:
3801 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3802 offset and bit size.
3803 * printcmd.c (print_scalar_formatted): Handle zero-length
3804 integer.
3805 (print_scalar_formatted): Use bit_size_differs_p.
3806 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3807 constant.
3808 (union type_specific): <int_stuff>: New member.
3809 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3810 methods.
3811 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3812 TYPE_SPECIFIC_FIELD.
3813 (recursive_dump_type, copy_type_recursive): Update.
3814 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3815 DW_AT_data_bit_offset.
3816
3817 2020-09-23 Tom Tromey <tom@tromey.com>
3818
3819 * utils.h (class gdb_argv): Add move operators.
3820 <append>: New methods.
3821 * compile/compile.c (build_argc_argv): Remove.
3822 (compile_args_argc): Remove.
3823 (compile_args_argv): Change type.
3824 (set_compile_args): Simplify.
3825 (append_args): Remove.
3826 (filter_args): Remove argcp parameter.
3827 (get_args): Return gdb_argv. Simplify.
3828 (compile_to_object): Update.
3829
3830 2020-09-23 Tom Tromey <tom@tromey.com>
3831
3832 * compile/compile-object-run.c (do_module_cleanup)
3833 <~do_module_cleanup> :Remove.
3834 (do_module_cleanup): Update.
3835 * compile/compile-object-load.h (struct munmap_list): Add move
3836 assignment operator.
3837 <source_file>: Now a std::string.
3838 <munmap_list>: Rename. No longer a pointer.
3839 * compile/compile-object-load.c (struct setup_sections_data): Add
3840 constructor.
3841 <setup_one_section>: Declare.
3842 <munmap_list>: Move earlier.
3843 <m_bfd>: New member.
3844 <m_last_size, m_last_section_first, m_last_prot,
3845 m_last_max_alignment>: Rename, add initializers where needed.
3846 (setup_sections_data::setup_one_section): Rename from
3847 setup_sections. Update.
3848 (compile_object_load): Update. Don't use bfd_map_over_sections.
3849
3850 2020-09-23 Tom Tromey <tom@tromey.com>
3851
3852 * compile/compile-object-run.c (struct do_module_cleanup): Add
3853 parameters to constructor. Update destructor.
3854 <source_file, scope, scope_data, out_value_type, out_value_addr,
3855 munmap_list_head, objfile_name_string>: Remove.
3856 <module>: New member.
3857 (do_module_cleanup): Update.
3858 (compile_object_run): Update.
3859
3860 2020-09-23 Tom Tromey <tom@tromey.com>
3861
3862 * compile/compile.c (eval_compile_command): Update.
3863 * compile/compile-object-run.h (compile_object_run): Take a
3864 compile_module_up.
3865 * compile/compile-object-run.c (compile_object_run): Take a
3866 compile_module_up.
3867 * compile/compile-object-load.h (struct compile_module): Add
3868 constructor, destructor.
3869 (compile_module_up): New typedef.
3870 (compile_object_load): Return compile_object_up.
3871 * compile/compile-object-load.c (compile_object_load): Return
3872 compile_module_up.
3873
3874 2020-09-23 Tom Tromey <tom@tromey.com>
3875
3876 * compile/compile-object-run.c (struct do_module_cleanup): Add
3877 constructor, destructor.
3878 <objfile_name_string>: Don't use struct hack.
3879 (do_module_cleanup): Use delete.
3880 (compile_object_run): Use new.
3881
3882 2020-09-23 Tom Tromey <tom@tromey.com>
3883
3884 * compile/compile-cplus-types.c
3885 (compile_cplus_convert_struct_or_union): Use std::vector.
3886 (compile_cplus_convert_func): Likewise.
3887 * compile/compile-c-types.c (convert_func): Use std::vector.
3888
3889 2020-09-21 Tom Tromey <tromey@adacore.com>
3890
3891 * sparc-tdep.c (sparc32_skip_prologue): Use
3892 skip_prologue_using_sal.
3893
3894 2020-09-19 Tom Tromey <tom@tromey.com>
3895
3896 * symfile.c (add_section_size_callback): Remove.
3897 (load_one_section): Rename from load_section_callback. Change
3898 parameters.
3899 (generic_load): Use foreach.
3900
3901 2020-09-19 Tom Tromey <tom@tromey.com>
3902
3903 * exec.c (add_to_section_table): Remove.
3904 (build_section_table): Use foreach.
3905
3906 2020-09-19 Tom Tromey <tom@tromey.com>
3907
3908 * elfread.c (elf_locate_sections): Change parameters.
3909 (elf_symfile_read): Use foreach.
3910
3911 2020-09-19 Tom Tromey <tom@tromey.com>
3912
3913 * cli/cli-dump.c (struct callback_data): Remove.
3914 (restore_one_section): Rename from restore_section_callback.
3915 Change parameters.
3916 (restore_binary_file): Change parameters.
3917 (restore_command): Use foreach.
3918
3919 2020-09-19 Tom Tromey <tom@tromey.com>
3920
3921 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3922 (gcore_copy_callback): Likewise.
3923 (gcore_memory_sections): Use foreach.
3924
3925 2020-09-19 Tom Tromey <tom@tromey.com>
3926
3927 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3928 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3929 parameters.
3930 (generic_elf_osabi_sniffer): Use foreach.
3931 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3932 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3933
3934 2020-09-19 Tom Tromey <tom@tromey.com>
3935
3936 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3937 (dwarf2_get_dwz_file): Use foreach.
3938 (dwarf2_locate_dwo_sections): Change parameters.
3939 (open_and_init_dwo_file): Use foreach.
3940 (dwarf2_locate_common_dwp_sections): Change parameters.
3941 (open_and_init_dwp_file): Use foreach.
3942
3943 2020-09-19 Tom Tromey <tom@tromey.com>
3944
3945 * symfile.h: (find_lowest_section): Don't declare.
3946 * symfile.c (find_lowest_section): Now static. Change
3947 parameters.
3948 (struct place_section_arg): Remove.
3949 (place_section): Change parameters.
3950 (addr_info_make_relative): Use foreach.
3951 (symfile_dummy_outputs): Remove.
3952 (default_symfile_relocate): Use foreach.
3953
3954 2020-09-19 Tom Tromey <tom@tromey.com>
3955
3956 * objfiles.c (add_to_objfile_sections): Rename from
3957 add_to_objfile_sections_full.
3958 (add_to_objfile_sections): Remove.
3959 (build_objfile_section_table): Use foreach.
3960
3961 2020-09-19 Tom Tromey <tom@tromey.com>
3962
3963 * stap-probe.c (get_stap_base_address_1): Remove.
3964 (get_stap_base_address): Use foreach.
3965
3966 2020-09-19 Tom Tromey <tom@tromey.com>
3967
3968 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3969 parameters.
3970 (gdb_bfd_close_or_warn): Use foreach.
3971
3972 2020-09-19 Tom Tromey <tom@tromey.com>
3973
3974 * corelow.c (add_to_thread_list): Change parameters.
3975 (core_target_open): Use foreach.
3976
3977 2020-09-19 Tom Tromey <tom@tromey.com>
3978
3979 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3980 existing function.
3981
3982 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3985 for arrays.
3986
3987 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * eval.c: Remove 'f-lang.h' include.
3990 (value_f90_subarray): Moved to f-lang.c.
3991 (eval_call): Renamed to...
3992 (evaluate_subexp_do_call): ...this, is no longer static, header
3993 comment moved into header file.
3994 (evaluate_funcall): Update call to eval_call.
3995 (skip_undetermined_arglist): Moved to f-lang.c.
3996 (fortran_value_subarray): Likewise.
3997 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3998 moved to evaluate_subexp_f.
3999 (calc_f77_array_dims): Moved to f-lang.c
4000 * expprint.c (print_subexp_funcall): New function.
4001 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4002 moved to print_subexp_f, OP_FUNCALL uses new function.
4003 (dump_subexp_body_funcall): New function.
4004 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4005 moved to dump_subexp_f, OP_FUNCALL uses new function.
4006 * expression.h (evaluate_subexp_do_call): Declare.
4007 * f-lang.c (value_f90_subarray): Moved from eval.c.
4008 (skip_undetermined_arglist): Likewise.
4009 (calc_f77_array_dims): Likewise.
4010 (fortran_value_subarray): Likewise.
4011 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4012 (operator_length_f): Likewise.
4013 (print_subexp_f): Likewise.
4014 (dump_subexp_body_f): Likewise.
4015 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4016 declaration of this operation to here.
4017 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4018 support moved to operator_length_f.
4019 * parser-defs.h (dump_subexp_body_funcall): Declare.
4020 (print_subexp_funcall): Declare.
4021 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4022 fortran-operator.def.
4023
4024 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4025
4026 * eval.c (fortran_value_subarray): New function, content is taken
4027 from...
4028 (evaluate_subexp_standard): ...here, in two places. Now arrays
4029 and strings both call the new function.
4030 (calc_f77_array_dims): Add header comment, handle strings.
4031
4032 2020-09-18 Victor Collod <vcollod@nvidia.com>
4033
4034 PR gdb/26635
4035 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4036 (i386_analyze_prologue): Call i386_skip_endbr.
4037
4038 2020-09-18 Tom Tromey <tromey@adacore.com>
4039
4040 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4041 (windows_nat_target::wait): Update.
4042 * target/wait.h (enum target_wait_flag): New. Use
4043 DEF_ENUM_FLAGS_TYPE.
4044 * target/target.h (target_wait): Change type of options.
4045 * target.h (target_options_to_string, default_target_wait):
4046 Update.
4047 (struct target_ops) <wait>: Change type of options.
4048 * target.c (target_wait, default_target_wait, do_option): Change
4049 type of "options".
4050 (target_options_to_string): Likewise.
4051 * target-delegates.c: Rebuild.
4052 * target-debug.h (target_debug_print_target_wait_flags): Rename
4053 from target_debug_print_options.
4054 * sol-thread.c (class sol_thread_target) <wait>: Update.
4055 (sol_thread_target::wait): Update.
4056 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4057 (rs6000_nat_target::wait): Update.
4058 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4059 Update.
4060 (remote_target::wait_ns, remote_target::wait_as): Change type of
4061 "options".
4062 (remote_target::wait): Update.
4063 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4064 (gdbsim_target::wait): Update.
4065 * record-full.c (class record_full_base_target) <wait>: Update.
4066 (record_full_wait_1): Change type of "options".
4067 (record_full_base_target::wait): Update.
4068 * record-btrace.c (class record_btrace_target) <wait>: Update.
4069 (record_btrace_target::wait): Update.
4070 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4071 Update.
4072 (ravenscar_thread_target::wait): Update.
4073 * procfs.c (class procfs_target) <wait>: Update.
4074 (procfs_target::wait): Update.
4075 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4076 * obsd-nat.c (obsd_nat_target::wait): Update.
4077 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4078 (nto_procfs_target::wait): Update.
4079 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4080 * nbsd-nat.c (nbsd_wait): Change type of "options".
4081 (nbsd_nat_target::wait): Update.
4082 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4083 (thread_db_target::wait): Update.
4084 * linux-nat.h (class linux_nat_target) <wait>: Update.
4085 * linux-nat.c (linux_nat_target::wait): Update.
4086 (linux_nat_wait_1): Update.
4087 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4088 "options".
4089 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4090 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4091 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4092 (go32_nat_target::wait): Update.
4093 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4094 * gnu-nat.c (gnu_nat_target::wait): Update.
4095 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4096 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4097 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4098 * darwin-nat.c (darwin_nat_target::wait): Update.
4099 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4100 (bsd_uthread_target::wait): Update.
4101 * aix-thread.c (class aix_thread_target) <wait>: Update.
4102 (aix_thread_target::wait): Update.
4103
4104 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4105
4106 * compile/compile-object-run.c (create_copied_type_recursive): New
4107 function.
4108 (compile_object_run): Use new function.
4109
4110 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4111
4112 * NEWS: Mention x86_64 Cygwin core file support.
4113
4114 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4115
4116 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4117 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4118
4119 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4120
4121 * windows-tdep.h: Add prototypes.
4122 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4123 (i386_windows_core_pid_to_str): Move and rename ...
4124 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4125 (windows_core_pid_to_str): ... and here.
4126 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4127
4128 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4129 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4130 (amd64_windows_init_abi_common): ... and register.
4131
4132 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4133
4134 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4135 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4136
4137 2020-09-18 Pedro Alves <pedro@palves.net>
4138
4139 PR gdb/26631
4140 * thread.c (thread_find_command): Switch inferior before calling
4141 target methods.
4142
4143 2020-09-17 Tom Tromey <tromey@adacore.com>
4144
4145 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4146 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4147 (tdesc_arch_data_up): New typedef.
4148 (tdesc_use_registers, tdesc_data_alloc): Update.
4149 (tdesc_data_cleanup): Don't declare.
4150 * target-descriptions.c (tdesc_data_alloc): Return a
4151 tdesc_arch_data_up.
4152 (tdesc_arch_data_deleter::operator()): Rename from
4153 tdesc_data_cleanup. Change argument type.
4154 (tdesc_use_registers): Change early_data to an rvalue reference.
4155 (tdesc_use_registers): Don't use delete.
4156 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4157 * s390-tdep.c (s390_gdbarch_init): Update.
4158 * rx-tdep.c (rx_gdbarch_init): Update.
4159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4160 * riscv-tdep.c (riscv_gdbarch_init): Update.
4161 * or1k-tdep.c (or1k_gdbarch_init): Update.
4162 * nios2-tdep.c (nios2_gdbarch_init): Update.
4163 * nds32-tdep.c (nds32_gdbarch_init): Update.
4164 * mips-tdep.c (mips_gdbarch_init): Update.
4165 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4166 * m68k-tdep.c (m68k_gdbarch_init): Update.
4167 * i386-tdep.c (i386_gdbarch_init): Update.
4168 * arm-tdep.c (arm_gdbarch_init): Update.
4169 * arc-tdep.c (arc_tdesc_init): Update.
4170 (arc_gdbarch_init): Update.
4171 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4172
4173 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4174
4175 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4176 for WOW64 processes.
4177
4178 2020-09-17 Tom Tromey <tom@tromey.com>
4179
4180 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4181
4182 2020-09-17 Tom Tromey <tom@tromey.com>
4183
4184 * value.c (preserve_values): Update.
4185 * python/py-type.c (save_objfile_types): Update.
4186 * guile/scm-type.c (save_objfile_types): Update.
4187 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4188 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4189 * compile/compile-object-run.c (compile_object_run): Update.
4190
4191 2020-09-17 Tom Tromey <tom@tromey.com>
4192
4193 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4194 Remove.
4195 <m_table>: Now htab_up.
4196 * typeprint.c (typedef_hash_table::recursively_update)
4197 (typedef_hash_table::add_template_parameters)
4198 (typedef_hash_table::typedef_hash_table): Update.
4199 (typedef_hash_table::~typedef_hash_table): Remove.
4200 (typedef_hash_table::typedef_hash_table)
4201 (typedef_hash_table::find_global_typedef)
4202 (typedef_hash_table::find_typedef): Update.
4203
4204 2020-09-17 Tom Tromey <tom@tromey.com>
4205
4206 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4207
4208 2020-09-17 Tom Tromey <tom@tromey.com>
4209
4210 * linespec.c (class decode_compound_collector)
4211 <~decode_compound_collector>: Remove.
4212 <m_unique_syms>: Now htab_up.
4213 (decode_compound_collector::operator ()): Update.
4214 (class symtab_collector) <~symtab_collector>: Remove.
4215 <m_symtab_table>: Now htab_up.
4216 (symtab_collector::operator ()): Update.
4217
4218 2020-09-17 Tom Tromey <tom@tromey.com>
4219
4220 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4221 (filename_seen_cache::clear): Update.
4222 (~filename_seen_cache): Remove.
4223 (filename_seen_cache::seen): Update.
4224 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4225 htab_up.
4226 <~filename_seen_cache>: Remove.
4227 <traverse>: Update.
4228
4229 2020-09-17 Tom Tromey <tom@tromey.com>
4230
4231 * completer.c (completion_tracker::discard_completions)
4232 (completion_tracker::~completion_tracker)
4233 (completion_tracker::maybe_add_completion)
4234 (completion_tracker::remove_completion)
4235 (completion_tracker::recompute_lowest_common_denominator)
4236 (completion_tracker::build_completion_result): Update.
4237 * completer.h (class completion_tracker) <have_completions>:
4238 Update.
4239 <m_entries_hash>: Now htab_up.
4240
4241 2020-09-17 Tom Tromey <tom@tromey.com>
4242
4243 * breakpoint.c (ambiguous_names_p): Use htab_up.
4244
4245 2020-09-17 Tom Tromey <tom@tromey.com>
4246
4247 * auto-load.c (struct auto_load_pspace_info)
4248 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4249 <loaded_script_files, loaded_script_texts>: Change type to
4250 htab_up.
4251 (~auto_load_pspace_info) Remove.
4252 (init_loaded_scripts_info, maybe_add_script_file)
4253 (maybe_add_script_text, auto_load_info_scripts): Update.
4254
4255 2020-09-17 Tom Tromey <tromey@adacore.com>
4256
4257 * c-exp.y (name_obstack): Now static.
4258
4259 2020-09-17 Chungyi Chi <demonic@csie.io>
4260
4261 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4262
4263 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4266 (add_solib_catchpoint): Likewise.
4267 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4268 to bool.
4269 (add_solib_catchpoint): Change int parameter/variable to bool.
4270 (catch_load_or_unload): Likewise.
4271 (init_catchpoint): Likewise.
4272 (create_fork_vfork_event_catchpoint): Likewise.
4273 (catch_fork_command_1): Likewise.
4274 (catch_exec_command_1): Likewise.
4275
4276 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4279 Change instance_flags to m_instance_flags.
4280
4281 2020-09-16 Tom Tromey <tromey@adacore.com>
4282
4283 PR gdb/26598:
4284 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4285
4286 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4287
4288 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4289 PL_FLAG_EXEC.
4290 (fbsd_nat_target::insert_exec_catchpoint)
4291 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4292 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4293 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4294
4295 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4296
4297 * configure.ac: Remove check for kinfo_getvmmap().
4298 * configure, config.in: Regenerate.
4299 * fbsd-nat.c (fbsd_read_mapping): Remove
4300 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4301 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4302 kinfo_get_vmmap() are always present.
4303
4304 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4305
4306 * fbsd-nat.c: Always include support for
4307 TARGET_OBJECT_SIGNAL_INFO.
4308
4309 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4310
4311 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4312 sysctl and remove procfs fallback.
4313
4314 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4315
4316 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4317 * fbsd-nat.h: Likewise.
4318
4319 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4320
4321 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4322 argument.
4323
4324 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4325
4326 * ada-lang.c (ada_language_data): Delete.
4327 (ada_language): Remove references to ada_language_data.
4328 * c-lang.c (c_language_data): Delete.
4329 (c_language): Remove references to c_language_data.
4330 (cplus_language_data): Delete.
4331 (cplus_language): Remove references to cplus_language_data.
4332 (asm_language_data): Delete.
4333 (asm_language): Remove references to asm_language_data.
4334 (minimal_language_data): Delete.
4335 (minimal_language): Remove references to minimal_language_data.
4336 * d-lang.c (d_language_data): Delete.
4337 (d_language): Remove references to d_language_data.
4338 * f-lang.c (f_language_data): Delete.
4339 (f_language): Remove references to f_language_data.
4340 * go-lang.c (go_language_data): Delete.
4341 (go_language): Remove references to go_language_data.
4342 * language.c (unknown_language_data): Delete.
4343 (unknown_language): Remove references to unknown_language_data.
4344 (auto_language_data): Delete.
4345 (auto_language): Remove references to auto_language_data.
4346 * language.h (language_data): Delete struct.
4347 (language_defn): No longer inherit from language_data.
4348 * m2-lang.c (m2_language_data): Delete.
4349 (m2_language): Remove references to m2_language_data.
4350 * objc-lang.c (objc_language_data): Delete.
4351 (objc_language): Remove references to objc_language_data.
4352 * opencl-lang.c (opencl_language_data): Delete.
4353 (opencl_language): Remove references to opencl_language_data.
4354 * p-lang.c (pascal_language_data): Delete.
4355 (pascal_language): Remove references to pascal_language_data.
4356 * rust-lang.c (rust_language_data): Delete.
4357 (rust_language): Remove references to rust_language_data.
4358
4359 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4360
4361 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4362 initializer.
4363 (ada_language::opcode_print_table): New member function.
4364 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4365 (c_language::opcode_print_table): New member function.
4366 (cplus_language_data): Remove la_op_print_tab initializer.
4367 (cplus_language::opcode_print_table): New member function.
4368 (asm_language_data): Remove la_op_print_tab initializer.
4369 (asm_language::opcode_print_table): New member function.
4370 (minimal_language_data): Remove la_op_print_tab initializer.
4371 (minimal_language::opcode_print_table): New member function.
4372 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4373 (d_language::opcode_print_table): New member function.
4374 * expprint.c (print_subexp_standard): Update call to
4375 opcode_print_table.
4376 (op_string): Likewise.
4377 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4378 (f_language::opcode_print_table): New member function.
4379 * go-lang.c (go_language_data): Remove la_op_print_tab
4380 initializer.
4381 (go_language::opcode_print_table): New member function.
4382 * language.c (unknown_language_data): Remove la_op_print_tab
4383 initializer.
4384 (unknown_language::opcode_print_table): New member function.
4385 (auto_language_data): Remove la_op_print_tab initializer.
4386 (auto_language::opcode_print_table): New member function.
4387 * language.h (language_data): Remove la_op_print_tab field.
4388 (language_defn::opcode_print_table): Declare new member function.
4389 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4390 initializer.
4391 (m2_language::opcode_print_table): New member function.
4392 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4393 initializer.
4394 (objc_language::opcode_print_table): New member function.
4395 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4396 initializer.
4397 (opencl_language::opcode_print_table): New member function.
4398 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4399 initializer.
4400 (pascal_language::opcode_print_table): New member function.
4401 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4402 initializer.
4403 (rust_language::opcode_print_table): New member function.
4404
4405 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4408 (ada_language::expression_ops): New member function.
4409 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4410 (c_language::expression_ops): New member function.
4411 (cplus_language_data): Remove la_exp_desc initializer.
4412 (cplus_language::expression_ops): New member function.
4413 (asm_language_data): Remove la_exp_desc initializer.
4414 (asm_language::expression_ops): New member function.
4415 (minimal_language_data): Remove la_exp_desc initializer.
4416 (minimal_language::expression_ops): New member function.
4417 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4418 (d_language::expression_ops): New member function.
4419 * eval.c (evaluate_subexp): Update call to expression_ops.
4420 * expprint.c (print_subexp): Likewise.
4421 (op_name): Likewise.
4422 (dump_subexp_body): Likewise.
4423 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4424 (f_language::expression_ops): New member function.
4425 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4426 (go_language::expression_ops): New member function.
4427 * language.c (language_defn::expression_ops): New function.
4428 (unknown_language_data): Remove la_exp_desc initializer.
4429 (auto_language_data): Likewise.
4430 * language.h (language_data): Remove la_exp_desc field.
4431 (language_defn::expression_ops): Declare new member function.
4432 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4433 (m2_language::expression_ops): New member function.
4434 * objc-lang.c (objc_language_data): Remove la_exp_desc
4435 initializer.
4436 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4437 initializer.
4438 (opencl_language::expression_ops): New member function.
4439 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4440 * parse.c (operator_length): Update call to expression_ops.
4441 (exp_iterate): Likewise.
4442 * rust-lang.c (rust_language_data): Remove la_exp_desc
4443 initializer.
4444 (ruse_language::expression_ops): New member function.
4445
4446 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4449 initializer.
4450 (ada_language::varobj_ops): New member function.
4451 * c-lang.c (c_language_data): Remove la_varobj_ops
4452 initializer.
4453 (cplus_language_data): Likewise.
4454 (cplus_language::varobj_ops): New member function.
4455 (asm_language_data): Remove la_varobj_ops initializer.
4456 (minimal_language_data): Likewise.
4457 * d-lang.c (d_language_data): Likewise.
4458 * f-lang.c (f_language_data): Likewise.
4459 * go-lang.c (go_language_data): Likewise.
4460 * language.c (language_defn::varobj_ops): New function.
4461 (unknown_language_data): Remove la_varobj_ops
4462 initializer.
4463 (auto_language_data): Likewise.
4464 * language.h (language_data): Remove la_varobj_ops field.
4465 (language_defn::varobj_ops): Declare new member function.
4466 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4467 * objc-lang.c (objc_language_data): Likewise.
4468 * opencl-lang.c (opencl_language_data): Likewise.
4469 * p-lang.c (pascal_language_data): Likewise.
4470 * rust-lang.c (rust_language_data): Likewise.
4471 * varobj.c (varobj_create): Update call to varobj_ops.
4472 * varobj.h (default_varobj_ops): Delete define.
4473
4474 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4475
4476 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4477 initializer.
4478 * c-lang.c (c_language_data): Likewise.
4479 (c_language::macro_expansion): New member function.
4480 (cplus_language_data): Likewise.
4481 (cplus_language::macro_expansion): New member function.
4482 (asm_language_data): Likewise.
4483 (asm_language::macro_expansion): New member function.
4484 (minimal_language_data): Likewise.
4485 (minimal_language::macro_expansion): New member function.
4486 * d-lang.c (d_language_data): Remove la_macro_expansion
4487 initializer.
4488 * f-lang.c (f_language_data): Likewise.
4489 * go-lang.c (go_language_data): Likewise.
4490 * language.c (unknown_language_data): Likewise.
4491 (auto_language_data): Likewise.
4492 * language.h (language_data): Remove la_macro_expansion field.
4493 (language_defn::macro_expansion): New member function.
4494 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4495 initializer.
4496 * objc-lang.c (objc_language_data): Likewise.
4497 (objc_language::macro_expansion): New member function.
4498 * opencl-lang.c (opencl_language_data): Likewise.
4499 (opencl_language::macro_expansion): New member function.
4500 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4501 initializer.
4502 * rust-lang.c (rust_language_data): Likewise.
4503 * symtab.c (default_collect_symbol_completion_matches_break_on):
4504 Update call to macro_expansion.
4505
4506 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4507
4508 * ada-lang.c (ada_language_data): Remove la_array_ordering
4509 initializer.
4510 * c-lang.c (c_language_data): Likewise.
4511 (cplus_language_data): Likewise.
4512 (asm_language_data): Likewise.
4513 (minimal_language_data): Likewise.
4514 * d-lang.c (d_language_data): Likewise.
4515 * dwarf2/read.c (read_array_order): Update for call to
4516 array_ordering.
4517 * f-lang.c (f_language_data): Remove la_array_ordering
4518 initializer.
4519 (f_language::array_ordering): New member function.
4520 * go-lang.c (go_language_data): Remove la_array_ordering
4521 initializer.
4522 * language.c (unknown_language_data): Likewise.
4523 (auto_language_data): Likewise.
4524 * language.h (language_data): Delete la_array_ordering field.
4525 (language_defn::array_ordering): New member function.
4526 * m2-lang.c (m2_language_data): Remove la_array_ordering
4527 initializer.
4528 * objc-lang.c (objc_language_data): Likewise.
4529 * opencl-lang.c (opencl_language_data): Likewise.
4530 * p-lang.c (pascal_language_data): Likewise.
4531 * rust-lang.c (rust_language_data): Likewise.
4532
4533 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4536 initializer.
4537 * c-lang.c (c_language_data): Likewise.
4538 (cplus_language_data): Likewise.
4539 (asm_language_data): Likewise.
4540 (minimal_language_data): Likewise.
4541 * d-lang.c (d_language_data): Likewise.
4542 * f-lang.c (f_language_data): Likewise.
4543 (f_language::case_sensitivity): New member function.
4544 * go-lang.c (go_language_data): Remove la_case_sensitivity
4545 initializer.
4546 * language.c (enum case_mode): Moved here from language.h.
4547 (case_mode): Make static.
4548 (show_case_command): Update for case_sensitivity being a method.
4549 (set_case_command): Likewise.
4550 (set_range_case): Likewise.
4551 (unknown_language_data): Remove la_case_sensitivity initializer.
4552 (auto_language_data): Likewise.
4553 * language.h (case_mode): Delete, move enum declaration to
4554 language.c.
4555 (language_data): Delete la_case_sensitivity field.
4556 (language_defn::case_sensitivity): New member function.
4557 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4558 initializer.
4559 * objc-lang.c (objc_language_data): Likewise.
4560 * opencl-lang.c (opencl_language_data): Likewise.
4561 * p-lang.c (pascal_language_data): Likewise.
4562 * rust-lang.c (rust_language_data): Likewise.
4563
4564 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * ada-lang.c (ada_language_data): Remove la_range_check
4567 initializer.
4568 * c-lang.c (c_language_data): Likewise.
4569 (cplus_language_data): Likewise.
4570 (asm_language_data): Likewise.
4571 (minimal_language_data): Likewise.
4572 * d-lang.c (d_language_data): Likewise.
4573 * f-lang.c (f_language_data): Likewise.
4574 (f_language::range_checking_on_by_default): New member function.
4575 * go-lang.c (go_language_data): Remove la_range_check initializer.
4576 * language.c (enum range_mode): Moved here from language.h.
4577 (range_mode): Made static.
4578 (show_range_command): Update to use
4579 range_checking_on_by_default.
4580 (set_range_command): Likewise.
4581 (set_range_case): Likewise.
4582 (unknown_language_data): Remove la_range_check initializer.
4583 (auto_language_data): Likewise.
4584 * language.h (range_mode): Delete. Enum definition moved to
4585 language.c.
4586 (language_data): Remove la_range_check field.
4587 (language_defn::range_checking_on_by_default): New member
4588 function.
4589 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4590 (m2_language::range_checking_on_by_default): New member function.
4591 * objc-lang.c (objc_language_data): Remove la_range_check
4592 initializer.
4593 * opencl-lang.c (opencl_language_data): Likewise.
4594 * p-lang.c (pascal_language_data): Likewise.
4595 (pascal_language::range_checking_on_by_default): New member
4596 function.
4597 * rust-lang.c (rust_language_data): Remove la_range_check
4598 initializer.
4599 (rust_language::range_checking_on_by_default): New member
4600 function.
4601
4602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * dwarf2/read.c (dwarf2_physname): Remove special case for
4605 language_go.
4606 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4607 member function.
4608
4609 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * ada-lang.c (ada_language_data): Remove
4612 la_store_sym_names_in_linkage_form_p initializer.
4613 (ada_language::store_sym_names_in_linkage_form_p): New member
4614 function.
4615 * c-lang.c (c_language_data): Remove
4616 la_store_sym_names_in_linkage_form_p initializer.
4617 (c_language::store_sym_names_in_linkage_form_p): New member
4618 function.
4619 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4620 initializer.
4621 (asm_language_data): Likewise.
4622 (asm_language::store_sym_names_in_linkage_form_p): New member
4623 function.
4624 (minimal_language_data): Remove
4625 la_store_sym_names_in_linkage_form_p initializer.
4626 (minimal_language::store_sym_names_in_linkage_form_p): New member
4627 function.
4628 * d-lang.c (d_language_data): Remove
4629 la_store_sym_names_in_linkage_form_p initializer.
4630 * dwarf2/read.c (dwarf2_physname): Update call to
4631 store_sym_names_in_linkage_form_p.
4632 * f-lang.c (f_language_data): Remove
4633 la_store_sym_names_in_linkage_form_p initializer.
4634 * go-lang.c (go_language_data): Remove
4635 la_store_sym_names_in_linkage_form_p initializer.
4636 * language.c (unknown_language_data): Remove
4637 la_store_sym_names_in_linkage_form_p initializer.
4638 (unknown_language::store_sym_names_in_linkage_form_p): New member
4639 function.
4640 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4641 initializer.
4642 (auto_language::store_sym_names_in_linkage_form_p): New member
4643 function.
4644 * language.h (language_data): Remove
4645 la_store_sym_names_in_linkage_form_p member variable.
4646 (language_defn::store_sym_names_in_linkage_form_p): New member
4647 function.
4648 * m2-lang.c (m2_language_data): Remove
4649 la_store_sym_names_in_linkage_form_p initializer.
4650 * objc-lang.c (objc_language_data): Likewise.
4651 * opencl-lang.c (opencl_language_data): Likewise.
4652 * p-lang.c (pascal_language_data): Likewise.
4653 * rust-lang.c (rust_language_data): Likewise.
4654
4655 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * ada-lang.c (ada_language_data): Remove string_lower_bound
4658 initializer.
4659 * c-lang.c (c_language_data): Likewise.
4660 (cplus_language_data): Likewise.
4661 (asm_language_data): Likewise.
4662 (minimal_language_data): Likewise.
4663 * d-lang.c (d_language_data): Likewise.
4664 * f-lang.c (f_language_data): Likewise.
4665 * go-lang.c (go_language_data): Likewise.
4666 * language.c (unknown_language_data): Likewise.
4667 (auto_language_data): Likewise.
4668 * language.h (language_data): Remove string_lower_bound field.
4669 (language_defn::string_lower_bound): New member function.
4670 * m2-lang.c (m2_language_data): Remove string_lower_bound
4671 initializer.
4672 (m2_language::string_lower_bound): New member function.
4673 * objc-lang.c (objc_language_data): Remove string_lower_bound
4674 initializer.
4675 * opencl-lang.c (opencl_language_data): Likewise.
4676 * p-lang.c (pascal_language_data): Likewise.
4677 * rust-lang.c (rust_language_data): Likewise.
4678 * valops.c (value_cstring): Update call to string_lower_bound.
4679 (value_string): Likewise.
4680 * value.c (allocate_repeated_value): Likewise.
4681
4682 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4683
4684 * valops.c (value_repeat): Fix incorrect argument name in comment.
4685
4686 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 * ada-lang.c (ada_language_data): Remove c_style_arrays
4689 initializer.
4690 (ada_language::c_style_arrays_p): New member fuction.
4691 * c-lang.c (c_language_data): Remove c_style_arrays
4692 initializer.
4693 (cplus_language_data): Likewise.
4694 (asm_language_data): Likewise.
4695 (minimal_language_data): Likewise.
4696 * d-lang.c (d_language_data): Likewise.
4697 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4698 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4699 (f_language::c_style_arrays_p): New member function.
4700 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4701 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4702 * language.c (unknown_language_data): Remove c_style_arrays
4703 initializer.
4704 (auto_language_data): Likewise.
4705 * language.h (language_data): Remove c_style_arrays field.
4706 (language_defn::c_style_arrays_p): New member function.
4707 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4708 (m2_language::c_style_arrays_p): New member function.
4709 * objc-lang.c (objc_language_data): Remove c_style_arrays
4710 initializer.
4711 * opencl-lang.c (opencl_language_data): Likewise.
4712 * p-lang.c (pascal_language_data): Likewise.
4713 * rust-lang.c (rust_language_data): Likewise.
4714 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4715 and update local variable to a bool.
4716 * valops.c (value_cast): Update call to c_style_arrays_p.
4717 (value_array): Likewise.
4718 * value.c (coerce_array): Likewise.
4719
4720 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4721
4722 * ada-lang.c (ada_language_data): Remove la_language initializer.
4723 * c-lang.c (c_language_data): Likewise.
4724 (cplus_language_data): Likewise.
4725 (asm_language_data): Likewise.
4726 (minimal_language_data): Likewise.
4727 * d-lang.c (d_language_data): Likewise.
4728 * f-lang.c (f_language_data): Likewise.
4729 * go-lang.c (go_language_data): Likewise.
4730 * language.c (unknown_language_data): Likewise.
4731 (auto_language_data): Likewise.
4732 * language.h (language_data): Remove la_language field.
4733 (language_defn::language_defn): Initialise la_language field.
4734 (language_defn::la_language): New member variable.
4735 * m2-lang.c (m2_language_data): Remove la_language field.
4736 * objc-lang.c (objc_language_data): Likewise.
4737 * opencl-lang.c (opencl_language_data): Likewise.
4738 * p-lang.c (pascal_language_data): Likewise.
4739 * rust-lang.c (rust_language_data): Likewise.
4740
4741 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4742
4743 * ada-lang.c (ada_extensions): Delete, moved into
4744 ada_language::filename_extensions.
4745 (ada_language_data): Remove la_filename_extensions initializer.
4746 (ada_language::filename_extensions): New member function.
4747 * c-lang.c (c_extensions): Delete, moved into
4748 c_language::filename_extensions.
4749 (c_language_data): Remove la_filename_extensions initializer.
4750 (c_language::filename_extensions): New member function.
4751 (cplus_extensions): Delete, moved into
4752 cplus_language::filename_extensions.
4753 (cplus_language_data): Remove la_filename_extensions initializer.
4754 (cplus_language::filename_extensions): New member function.
4755 (asm_extensions): Delete, moved into
4756 asm_language::filename_extensions.
4757 (asm_language_data): Remove la_filename_extensions initializer.
4758 (asm_language::filename_extensions): New member function.
4759 (minimal_language_data): Remove la_filename_extensions
4760 initializer.
4761 * d-lang.c (d_extensions): Delete, moved into
4762 d_language::filename_extensions.
4763 (d_language_data): Remove la_filename_extensions initializer.
4764 (d_language::filename_extensions): New member function.
4765 * f-lang.c (f_extensions): Delete, moved into
4766 f_language::filename_extensions.
4767 (f_language_data): Remove la_filename_extensions initializer.
4768 (f_language::filename_extensions): New member function.
4769 * go-lang.c (go_language_data): Remove la_filename_extensions
4770 initializer.
4771 * language.c (add_set_language_command): Update now that
4772 filename_extensions returns a vector.
4773 (unknown_language_data): Remove la_filename_extensions
4774 initializer.
4775 (auto_language_data): Likewise.
4776 * language.h (language_data): Remove la_filename_extensions field.
4777 (language_defn::filename_extensions): New member function.
4778 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4779 initializer.
4780 * objc-lang.c (objc_extensions): Delete, moved into
4781 objc_language::filename_extensions.
4782 (objc_language_data): Remove la_filename_extensions initializer.
4783 (objc_language::filename_extensions): New member function.
4784 * opencl-lang.c (opencl_language_data): Remove
4785 la_filename_extensions initializer.
4786 * p-lang.c (pascal_extensions): Delete, moved into
4787 pascal_language::filename_extensions.
4788 (pascal_language_data): Remove la_filename_extensions initializer.
4789 (pascal_language::filename_extensions): New member function.
4790 * rust-lang.c (rust_extensions): Delete, moved into
4791 rust_language::filename_extensions.
4792 (rust_language_data): Remove la_filename_extensions initializer.
4793 (rust_language::filename_extensions): New member function.
4794 * symfile.c (add_filename_language): Add new assert.
4795
4796 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4797
4798 * ada-lang.c (ada_language_data): Remove la_name and
4799 la_natural_name initializers.
4800 (ada_language::name): New member function.
4801 (ada_language::natural_name): New member function.
4802 * c-lang.c (c_language_data): Remove la_name and
4803 la_natural_name initializers.
4804 (c_language::name): New member function.
4805 (c_language::natural_name): New member function.
4806 (cplus_language_data): Remove la_name and
4807 la_natural_name initializers.
4808 (cplus_language::name): New member function.
4809 (cplus_language::natural_name): New member function.
4810 (asm_language_data): Remove la_name and
4811 la_natural_name initializers.
4812 (asm_language::name): New member function.
4813 (asm_language::natural_name): New member function.
4814 (minimal_language_data): Remove la_name and
4815 la_natural_name initializers.
4816 (minimal_language::name): New member function.
4817 (minimal_language::natural_name): New member function.
4818 * compile/compile.c (compile_to_object): Update call to
4819 lanugage_defn::name.
4820 * d-lang.c (d_language_data): Remove la_name and
4821 la_natural_name initializers.
4822 (d_language::name): New member function.
4823 (d_language::natural_name): New member function.
4824 * expprint.c (print_subexp_standard): Update call to
4825 language_defn::name.
4826 (dump_raw_expression): Likewise
4827 (dump_prefix_expression): Likewise.
4828 * f-lang.c (f_language_data): Remove la_name and
4829 la_natural_name initializers.
4830 (f_language::name): New member function.
4831 (f_language::natural_name): New member function.
4832 * go-lang.c (go_language_data): Remove la_name and
4833 la_natural_name initializers.
4834 (go_language::name): New member function.
4835 (go_language::natural_name): New member function.
4836 * language.c (show_language_command): Update call to
4837 language_defn::name.
4838 (set_language_command): Likewise.
4839 (language_enum): Likewise.
4840 (language_str): Likewise.
4841 (add_set_language_command): Likewise, use
4842 language_defn::natural_name in the doc string.
4843 (unknown_language_data): Remove la_name and
4844 la_natural_name initializers.
4845 (unknown_language::name): New member function.
4846 (unknown_language::natural_name): New member function.
4847 (auto_language_data): Remove la_name and
4848 la_natural_name initializers.
4849 (auto_language::name): New member function.
4850 (auto_language::natural_name): New member function.
4851 (language_lookup_primitive_type_as_symbol): Update call to
4852 language_defn::name.
4853 * language.h (language_data): Remove la_name and la_natural_name
4854 member variables.
4855 (language_defn::name): New member function.
4856 (language_defn::natural_name): New member function.
4857 * m2-lang.c (m2_language_data): Remove la_name and
4858 la_natural_name initializers.
4859 (m2_language::name): New member function.
4860 (m2_language::natural_name): New member function.
4861 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4862 language_defn::natural_name.
4863 * objc-lang.c (objc_language_data): Remove la_name and
4864 la_natural_name initializers.
4865 (objc_language::name): New member function.
4866 (objc_language::natural_name): New member function.
4867 * opencl-lang.c (opencl_language_data): Remove la_name and
4868 la_natural_name initializers.
4869 (opencl_language::name): New member function.
4870 (opencl_language::natural_name): New member function.
4871 * p-lang.c (pascal_language_data): Remove la_name and
4872 la_natural_name initializers.
4873 (pascal_language::name): New member function.
4874 (pascal_language::natural_name): New member function.
4875 * rust-lang.c (rust_language_data): Remove la_name and
4876 la_natural_name initializers.
4877 (rust_language::name): New member function.
4878 (rust_language::natural_name): New member function.
4879 * symtab.c (lookup_language_this): Update call to
4880 language_defn::name.
4881
4882 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4883
4884 * ada-lang.c (ada_language_data): Remove la_name_of_this
4885 initializer.
4886 * ax-gdb.c (gen_expr): Update call to name_of_this.
4887 * c-exp.y (classify_name): Likewise.
4888 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4889 (cplus_language_data): Likewise.
4890 (cplus_language::name_of_this): New member function.
4891 (asm_language_data): Remove la_name_of_this initializer.
4892 (minimal_language_data): Likewise.
4893 * d-lang.c (d_language_data): Likewise.
4894 (d_language::name_of_this): New member function.
4895 * expprint.c (print_subexp_standard): Update call to name_of_this.
4896 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4897 * go-lang.c (go_language_data): Likewise.
4898 * language.c (unknown_language_data): Likewise.
4899 (unknown_language::name_of_this): New member function.
4900 (auto_language_data): Remove la_name_of_this initializer.
4901 (auto_language::name_of_this): New member function.
4902 * language.h (language_data): Delete la_name_of_this member
4903 variable.
4904 (language_defn::name_of_this): New member function.
4905 * m2-lang.c (m2_language_data): Remove la_name_of_this
4906 initializer.
4907 * objc-lang.c (objc_language_data): Likewise.
4908 (objc_language::name_of_this): New member function.
4909 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4910 initializer.
4911 * p-lang.c (pascal_language_data): Likewise.
4912 (pascal_language::name_of_this): New member function.
4913 * rust-lang.c (rust_language_data): Remove la_name_of_this
4914 initializer.
4915 * symtab.c (lookup_language_this): Update call to name_of_this.
4916 (lookup_symbol_aux): Likewise.
4917 * valops.c (value_of_this): Likewise.
4918
4919 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4920
4921 * ada-lang.c (ada_language_data): Remove
4922 la_struct_too_deep_ellipsis initializer.
4923 (ada_language::struct_too_deep_ellipsis): New member function.
4924 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4925 initializer.
4926 (cplus_language_data): Likewise.
4927 (asm_language_data): Likewise.
4928 (minimal_language_data): Likewise.
4929 * cp-valprint.c (cp_print_value): Update call to
4930 struct_too_deep_ellipsis.
4931 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4932 initializer.
4933 * f-lang.c (f_language_data): Likewise.
4934 (f_language::struct_too_deep_ellipsis): New member function.
4935 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4936 initializer.
4937 * language.c (unknown_language_data): Likewise.
4938 (auto_language_data): Likewise.
4939 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4940 member variable.
4941 (language_defn::struct_too_deep_ellipsis): New member function.
4942 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4943 initializer.Q
4944 * objc-lang.c (objc_language_data): Likewise.
4945 * opencl-lang.c (opencl_language_data): Likewise.
4946 * p-lang.c (pascal_language_data): Likewise.
4947 * rust-lang.c (rust_language_data): Likewise.
4948 * valprint.c (val_print_check_max_depth): Update call to
4949 struct_too_deep_ellipsis.
4950
4951 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4952
4953 * MAINTAINERS (Write After Approval): Add myself.
4954
4955 2020-09-15 Tom Tromey <tom@tromey.com>
4956
4957 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4958 Remove.
4959
4960 2020-09-15 Tom Tromey <tom@tromey.com>
4961
4962 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4963 and TYPE_CODE_METHODPTR cases.
4964 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4965 (c_value_print_inner): Update.
4966 * valprint.c (generic_value_print_memberptr): New function, from
4967 c_value_print_memberptr.
4968 (generic_value_print): Use it. Call cplus_print_method_ptr.
4969
4970 2020-09-15 Tom Tromey <tromey@adacore.com>
4971
4972 * python/python-internal.h (PyInt_FromLong): Remove define.
4973 * python/py-value.c (convert_value_from_python): Use
4974 gdb_py_object_from_longest.
4975 * python/py-type.c (typy_get_code): Use
4976 gdb_py_object_from_longest.
4977 * python/py-symtab.c (salpy_get_line): Use
4978 gdb_py_object_from_longest.
4979 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4980 gdb_py_object_from_longest.
4981 * python/py-record.c (recpy_gap_reason_code): Use
4982 gdb_py_object_from_longest.
4983 * python/py-record-btrace.c (recpy_bt_insn_size)
4984 (recpy_bt_func_level, btpy_list_count): Use
4985 gdb_py_object_from_longest.
4986 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4987 gdb_py_object_from_longest. Fix error handling.
4988 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4989 gdb_py_object_from_longest.
4990 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4991 gdb_py_object_from_longest.
4992 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4993 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4994 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4995
4996 2020-09-15 Tom Tromey <tromey@adacore.com>
4997
4998 * python/python.c (gdbpy_parameter_value): Use
4999 gdb_py_object_from_ulongest.
5000
5001 2020-09-15 Tom Tromey <tromey@adacore.com>
5002
5003 * python/py-infevents.c (create_register_changed_event_object):
5004 Use gdb_py_object_from_longest.
5005 * python/py-exitedevent.c (create_exited_event_object): Use
5006 gdb_py_object_from_longest.
5007
5008 2020-09-15 Tom Tromey <tromey@adacore.com>
5009
5010 * python/python.c (gdbpy_parameter_value): Use
5011 gdb_py_object_from_longest.
5012 * python/py-type.c (convert_field, typy_range): Use
5013 gdb_py_object_from_longest.
5014 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5015 gdb_py_object_from_longest.
5016 * python/py-lazy-string.c (stpy_get_length): Use
5017 gdb_py_object_from_longest.
5018 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5019 gdb_py_object_from_longest.
5020 * python/py-infevents.c (create_memory_changed_event_object): Use
5021 gdb_py_object_from_longest.
5022 * python/py-inferior.c (infpy_get_num): Use
5023 gdb_py_object_from_longest.
5024 (infpy_get_pid): Likewise.
5025
5026 2020-09-15 Tom Tromey <tromey@adacore.com>
5027
5028 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5029 defines.
5030 * python/py-value.c (valpy_long): Use
5031 gdb_py_object_from_ulongest.
5032 * python/py-symtab.c (salpy_get_pc): Use
5033 gdb_py_object_from_ulongest.
5034 (salpy_get_last): Likewise.
5035 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5036 gdb_py_object_from_ulongest.
5037 * python/py-lazy-string.c (stpy_get_address): Use
5038 gdb_py_object_from_ulongest.
5039 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5040 * python/py-arch.c (archpy_disassemble): Use
5041 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5042 error handling.
5043
5044 2020-09-15 Tom Tromey <tromey@adacore.com>
5045
5046 * python/python-internal.h (gdb_py_long_from_longest): Remove
5047 defines.
5048 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5049 * python/py-type.c (convert_field, typy_get_sizeof): Use
5050 gdb_py_object_from_longest.
5051 * python/py-record-btrace.c (btpy_list_index): Use
5052 gdb_py_object_from_longest.
5053
5054 2020-09-15 Tom Tromey <tromey@adacore.com>
5055
5056 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5057 * python/py-record.c (recpy_element_number): Use
5058 gdb_py_object_from_longest.
5059 (recpy_gap_number): Likewise.
5060
5061 2020-09-15 Tom Tromey <tromey@adacore.com>
5062
5063 * top.c (ui::ui): Update.
5064 (highest_ui_num): Remove.
5065 * top.h (struct ui) <num>: Remove.
5066
5067 2020-09-15 Tom Tromey <tromey@adacore.com>
5068
5069 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5070 * ui-style.c (ansi_regex_text): Now array.
5071 * rust-exp.y (number_regex_text): Now array.
5072 * linespec.c (linespec_quote_characters): Now array.
5073 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5074 Now arrays.
5075
5076 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5077
5078 * debuginfod-support.c (debuginfod_client_deleter): New.
5079 (debuginfod_client_up): New.
5080 (debuginfod_init): Return debuginfod_client_up.
5081 (debuginfod_source_query): Adjust.
5082 (debuginfod_debuginfo_query): Adjust.
5083
5084 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5085
5086 * debuginfod-support.c (debuginfod_source_query): Use
5087 make_unique_xstrdup.
5088
5089 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5092 with `type::instance_flags`.
5093
5094 2020-09-14 Michael Mullin <masmullin@gmail.com>
5095
5096 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5097 Remove baton parameter.
5098
5099 2020-09-14 Pedro Alves <pedro@palves.net>
5100
5101 * Makefile.in (SELFTESTS_SRCS): Add
5102 unittests/enum-flags-selftests.c.
5103 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5104 btrace_function_flags instead of enum btrace_function_flag.
5105 * compile/compile-c-types.c (convert_qualified): Use
5106 enum_flags::raw.
5107 * compile/compile-cplus-symbols.c (convert_one_symbol)
5108 (convert_symbol_bmsym):
5109 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5110 (compile_cplus_convert_struct_or_union_methods)
5111 (compile_cplus_instance::convert_qualified_base):
5112 * go-exp.y (parse_string_or_char): Add cast to int.
5113 * unittests/enum-flags-selftests.c: New file.
5114 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5115 type to btrace_thread_flags from btrace_thread_flag.
5116 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5117 local's type to btrace_thread_flags from btrace_thread_flag. Add
5118 cast in DEBUG call.
5119
5120 2020-09-14 Pedro Alves <pedro@palves.net>
5121
5122 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5123 * gdbtypes.c (address_space_name_to_int): Rename to ...
5124 (address_space_name_to_type_instance_flags): ... this.
5125 (address_space_int_to_name): Rename to ...
5126 (address_space_type_instance_flags_to_name): ... this.
5127 * gdbtypes.h (address_space_name_to_int): Rename to ...
5128 (address_space_name_to_type_instance_flags): ... this.
5129 (address_space_int_to_name): Rename to ...
5130 (address_space_type_instance_flags_to_name): ... this.
5131 * type-stack.c (type_stack::insert): Adjust to rename.
5132 * type-stack.h (type_stack::insert): Likewise.
5133
5134 2020-09-14 Pedro Alves <pedro@palves.net>
5135 Andrew Burgess <andrew.burgess@embecosm.com>
5136
5137 * avr-tdep.c (avr_address_class_type_flags): Return
5138 type_instance_flags.
5139 (avr_address_class_type_flags_to_name): Take a
5140 type_instance_flags.
5141 (avr_address_class_name_to_type_flags): Return bool and take a
5142 type_instance_flags.
5143 * d-lang.c (build_d_types): Use type::set_instance_flags.
5144 * ft32-tdep.c (ft32_address_class_type_flags): Return
5145 type_instance_flags.
5146 (ft32_address_class_type_flags_to_name): Take a
5147 type_instance_flags.
5148 (ft32_address_class_name_to_type_flags): Return bool and take a
5149 type_instance_flags.
5150 (ft32_gdbarch_init): Use type::set_instance_flags.
5151 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5152 * gdbarch.h, gdbarch.c: Regenerate.
5153 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5154 (address_class_name_to_type_flags): Use type_instance_flags and
5155 bool.
5156 * gdbtypes.c (address_space_name_to_int)
5157 (address_space_int_to_name, make_qualified_type): Use
5158 type_instance_flags.
5159 (make_qualified_type): Use type_instance_flags and
5160 type::set_instance_flags.
5161 (make_type_with_address_space, make_cv_type, make_vector_type)
5162 (check_typedef): Use type_instance_flags.
5163 (recursive_dump_type): Cast type_instance_flags to unsigned for
5164 printing.
5165 (copy_type_recursive): Use type::set_instance_flags.
5166 (gdbtypes_post_init): Use type::set_instance_flags.
5167 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5168 <m_instance_flags>: ... this.
5169 <instance_flags, set_instance_flags>: New methods.
5170 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5171 (SET_TYPE_INSTANCE_FLAGS): New.
5172 (address_space_name_to_int, address_space_int_to_name)
5173 (make_type_with_address_space): Pass flags using
5174 type_instance_flags instead of int.
5175 * stabsread.c (cleanup_undefined_types_noname): Use
5176 type::set_instance_flags.
5177 * s390-tdep.c (s390_address_class_type_flags): Return
5178 type_instance_flags.
5179 (s390_address_class_type_flags_to_name): Take a
5180 type_instance_flags.
5181 (s390_address_class_name_to_type_flags): Return bool and take a
5182 type_instance_flags.
5183 * type-stack.c (type_stack::follow_types): Use
5184 type_instance_flags.
5185 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5186
5187 2020-09-14 Tom Tromey <tromey@adacore.com>
5188
5189 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5190 * x86-tdep.c (x86_is_thunk_register_name)
5191 (x86_in_indirect_branch_thunk): Update.
5192 * sparc64-tdep.c (sparc64_fpu_register_names)
5193 (sparc64_cp0_register_names, sparc64_register_names)
5194 (sparc64_pseudo_register_names): Now const.
5195 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5196 cp0_registers_num>: Now const.
5197 * sparc-tdep.c (sparc_core_register_names)
5198 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5199 (sparc32_pseudo_register_names): Now const.
5200 (validate_tdesc_registers): Update.
5201 * rust-lang.c (rust_extensions): Now const.
5202 * p-lang.c (p_extensions): Now const.
5203 * objc-lang.c (objc_extensions): Now const.
5204 * nto-tdep.c (nto_thread_state_str): Now const.
5205 * moxie-tdep.c (moxie_register_names): Now const.
5206 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5207 Now const.
5208 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5209 (mips_linux_reg_names): Now const.
5210 (mips_gdbarch_init): Update.
5211 * microblaze-tdep.c (microblaze_register_names): Now const.
5212 * m68k-tdep.c (m68k_register_names): Now const.
5213 * m32r-tdep.c (m32r_register_names): Now const.
5214 * ia64-tdep.c (ia64_register_names): Now const.
5215 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5216 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5217 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5218 ymm_avx512_register_names, pkeys_register_names>: Now const.
5219 * i386-tdep.c (i386_register_names, i386_zmm_names)
5220 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5221 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5222 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5223 * f-lang.c (f_extensions): Now const.
5224 * d-lang.c (d_extensions): Now const.
5225 * csky-tdep.c (csky_register_names): Now const.
5226 * charset.c (default_charset_names, charset_enum): Now const.
5227 (_initialize_charset): Update.
5228 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5229 const.
5230 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5231 (bsd_uthread_solib_loaded): Update.
5232 (bsd_uthread_state): Now const.
5233 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5234 (amd64_ymm_avx512_names, amd64_ymmh_names)
5235 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5236 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5237 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5238 (amd64_dword_names): Now const.
5239 * agent.c (can_use_agent_enum): Now const.
5240 * ada-tasks.c (task_states, long_task_states): Now const.
5241 * ada-lang.c (known_runtime_file_name_patterns)
5242 (known_auxiliary_function_name_patterns, attribute_names)
5243 (standard_exc, ada_extensions): Now const.
5244
5245 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * bcache.h (struct bcache) <bcache>: Remove constructor.
5248 <m_hash_function, m_compare_function>: Remove.
5249 <~bcache>: Make virtual.
5250 <compare>: Remove static method, introduce virtual method.
5251 <default_hash>: Remove.
5252 <hash>: New virtual method.
5253 * bcache.c (bcache::expand_hash_table): Update.
5254 (bcache::insert): Update.
5255 (bcache::hash): New.
5256 (bcache::compare): Update comment and parameter names.
5257 * gdbtypes.c (types_deeply_equal): Update.
5258 * psymtab.h (struct psymbol_bcache): New struct.
5259 (class psymtab_storage) <psymtab_storage>: Make default.
5260 <psymbol_cache>: Change type to psymbol_bcache.
5261 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5262 (psymbol_hash): Change to...
5263 (psymbol_bcache::hash): ... this.
5264 (psymbol_compare): Change to...
5265 (psymbol_bcache::compare): ... this.
5266
5267 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5268
5269 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5270 checking for initial lwp.
5271
5272 2020-09-14 Tom Tromey <tromey@adacore.com>
5273
5274 * m68k-tdep.c (m68k_extract_return_value): Use
5275 pointer_result_regnum.
5276 (m68k_store_return_value): Likewise.
5277 (m68k_reg_struct_return_p): Handle vectors and arrays.
5278 (m68k_return_value): Handle arrays.
5279 (m68k_svr4_return_value): Fix single-element aggregate handling.
5280 Handle long double. Adjust for embedded ABI.
5281 (m68k_svr4_init_abi): Set pointer_result_regnum.
5282 (m68k_embedded_init_abi): New function.
5283 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5284 (m68k_osabi_sniffer): New function.
5285 (_initialize_m68k_tdep): Register osabi sniffer.
5286 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5287 member.
5288
5289 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5292 with gdb::unique_xmalloc_ptr<char>.
5293
5294 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * xml-support.h (xml_fetch_another): Change type to be a
5297 function_view.
5298 (xml_process_xincludes): Remove baton parameter.
5299 (xml_fetch_content_from_file): Change baton parameter to
5300 dirname.
5301 * xml-support.c (struct xinclude_parsing_data)
5302 <xinclude_parsing_data>: Remove baton parameter.
5303 <fetcher_baton>: Remove.
5304 (xinclude_start_include): Adjust.
5305 (xml_process_xincludes): Adjust.
5306 (xml_fetch_content_from_file): Replace baton parameter with
5307 dirname.
5308 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5309 (xml_init_syscalls_info): Use a lambda.
5310 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5311 (file_read_description_xml): Use a lambda.
5312 (fetch_available_features_from_target): Change baton parameter
5313 to target_ops.
5314 (target_read_description_xml): Use a lambda.
5315 (target_fetch_description_xml): Use a lambda.
5316 (string_read_description_xml): Update.
5317
5318 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5319
5320 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5321 uses with type::endianity_is_not_default.
5322
5323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * gdbtypes.h (struct type) <endianity_is_not_default,
5326 set_endianity_is_not_default>: New methods.
5327 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5328 type::endianity_is_not_default, change all write call sites to
5329 use type::set_endianity_is_not_default.
5330
5331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5334 uses with type::is_fixed_instance.
5335
5336 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * gdbtypes.h (struct type) <is_fixed_instance,
5339 set_is_fixed_instance>: New methods.
5340 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5341 write call sites to use type::set_is_fixed_instance.
5342
5343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5346 uses with type::is_gnu_ifunc.
5347
5348 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5351 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5352 use type::set_is_gnu_ifunc.
5353
5354 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5357 uses with type::stub_is_supported.
5358
5359 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5362 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5363 use type::set_stub_is_supported.
5364
5365 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5368 uses with type::is_vector.
5369
5370 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5373 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5374 use type::set_is_vector.
5375
5376 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5379 uses with type::has_varargs.
5380
5381 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5384 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5385 use type::set_has_varargs.
5386
5387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5390 uses with type::is_prototyped.
5391
5392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5395 New methods.
5396 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5397 call sites to use type::set_is_prototyped.
5398
5399 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5402 uses with type::target_is_stub.
5403
5404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5407 New methods.
5408 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5409 sites to use type::set_target_is_stub.
5410
5411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * gdbtypes.h (TYPE_STUB): Remove, replace all
5414 uses with type::is_stub.
5415
5416 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5419 (TYPE_STUB): Use type::is_stub, change all write call sites to
5420 use type::set_is_stub.
5421
5422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5423
5424 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5425 type::has_no_signedness.
5426
5427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * gdbtypes.h (struct type) <has_no_signedness,
5430 set_has_no_signedness>: New methods.
5431 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5432 call sites to use type::set_has_no_signedness.
5433
5434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5437 type::is_unsigned.
5438
5439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5442 methods.
5443 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5444 sites to use type::set_is_unsigned.
5445
5446 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5447 Adam Renquinha <arenquinha@cimeq.qc.ca>
5448
5449 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5450 pointer and stack frame offset when unwinding.
5451
5452 2020-09-13 Pedro Alves <pedro@palves.net>
5453
5454 * NEWS: Document "-break-insert --qualified".
5455 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5456
5457 2020-09-13 Pedro Alves <pedro@palves.net>
5458
5459 * linespec.c (classify_mtype, compare_msyms): Delete.
5460 (search_minsyms_for_name): Remove classification logic. Instead
5461 filter out trampoline symbols if we also found an external
5462 function of the same name.
5463
5464 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5465
5466 * NEWS: Create a new section for the next release branch.
5467 Rename the section of the current branch, now that it has
5468 been cut.
5469
5470 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5471
5472 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5473 * version.in: Bump version to 11.0.50.DATE-git.
5474
5475 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5476
5477 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5478
5479 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5480 Felix Willgerodt <Felix.Willgerodt@intel.com>
5481
5482 * gdbarch.sh: Added bfloat16 type.
5483 * gdbarch.c: Regenerated.
5484 * gdbarch.h: Regenerated.
5485 * gdbtypes.c (floatformats_bfloat16): New struct.
5486 (gdbtypes_post_init): Add builtin_bfloat16.
5487 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5488 (floatformats_bfloat16): New struct.
5489 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5490 (i386_ymm_type): Add field "v16_bfloat16"
5491 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5492 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5493 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5494 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5495 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5496 * features/i386/64bit-avx512.c: Regenerated.
5497 * features/i386/64bit-sse.xml: Add bfloat16 type.
5498 * features/i386/64bit-sse.c: Regenerated.
5499
5500 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5501
5502 * i386-tdep.c (i386_zmm_type): Fix field names.
5503 (i386_ymm_type): Fix field names.
5504
5505 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5506
5507 * breakpoint.c: Fix typo in the help message of the
5508 "set breakpoint condition-evaluation" command.
5509
5510 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5511
5512 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5513 * (nbsd_nat_target::pid_to_exec_file)
5514 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5515 (nbsd_nat_target::post_startup_inferior)
5516 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5517 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5518 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5519 * (nbsd_thread_lister): Remove.
5520
5521 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5522
5523 * fork-inferior.c (startup_inferior): Avoid double free.
5524
5525 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5526
5527 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5528 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5529
5530 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5531
5532 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5533 * netbsd-nat.c: Include <sys/ptrace.h>.
5534 * (netbsd_nat::enable_proc_events): Add.
5535
5536 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5537
5538 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5539 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5540 (netbsd_nat::for_each_thread): Add.
5541 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5542 "gdbsupport/common-debug.h".
5543 * (netbsd_nat::netbsd_thread_lister)
5544 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5545 (netbsd_nat::for_each_thread): Add.
5546
5547 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5548
5549 * netbsd-nat.h: Include <unistd.h>.
5550 * (netbsd_nat::pid_to_exec_file): Add.
5551 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5552 * (netbsd_nat::pid_to_exec_file) Add.
5553
5554 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5555
5556 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5557
5558 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5559
5560 * netbsd-nat.h: New file.
5561 * netbsd-nat.c: Likewise.
5562
5563 2020-09-09 Tom Tromey <tromey@adacore.com>
5564
5565 * ada-lang.c (remove_extra_symbols): Do not increment when
5566 removing an element
5567
5568 2020-09-08 Tom Tromey <tromey@adacore.com>
5569
5570 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5571
5572 2020-09-08 Tom Tromey <tromey@adacore.com>
5573
5574 PR win32/25302:
5575 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5576 (gdb_bfd_init_data): New function.
5577 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5578
5579 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5580
5581 * infrun.c (fetch_inferior_event): Use
5582 `switch_to_target_no_thread` to switch the target.
5583
5584 2020-09-06 Tom Tromey <tom@tromey.com>
5585
5586 * symfile.h (dwarf2_free_objfile): Don't declare.
5587
5588 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5589
5590 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5591 to match 16 byte real/complex type generated by Flang compiler.
5592
5593 2020-09-03 Tom de Vries <tdevries@suse.de>
5594
5595 PR breakpoint/26546
5596 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5597 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5598
5599 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5600
5601 * maint.c (index_digits): New function.
5602 (struct maint_print_section_data): Remove.
5603 (print_bfd_section_info): Remove print_data parameter, add arg
5604 and index_digits.
5605 (print_objfile_section_info): Likewise.
5606 (print_bfd_section_info_maybe_relocated): Likewise (plus
5607 objfile).
5608 (maintenance_info_sections): Adjust calls.
5609
5610 2020-09-02 Tom Tromey <tromey@adacore.com>
5611
5612 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5613 for null pointers.
5614 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5615
5616 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * bcache.h (struct bcache) <insert>: Change type of `added` to
5619 pointer to bool.
5620 * bcache.c (bcache::insert): Likewise.
5621 * gdbtypes.c (check_types_worklist): Adjust.
5622 * psymtab.c (add_psymbol_to_bcache): Adjust.
5623
5624 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5625
5626 * corelow.c (unordered_set): Include.
5627 (class core_target): Add field 'm_core_unavailable_mappings'.
5628 (core_target::build_file_mappings): Print only one warning
5629 per inaccessible file. Add unavailable/broken mappings
5630 to m_core_unavailable_mappings.
5631 (core_target::xfer_partial): Call...
5632 (core_target::xfer_memory_via_mappings): New method.
5633
5634 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5637 type to bool.
5638
5639 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5640
5641 * dwarf2/read.c (struct field_info): Fix indentation.
5642
5643 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5646 ordering in comment.
5647 * frame.c (frame_id_eq): Fix indentation.
5648
5649 2020-08-31 Scott Linder <scott@scottlinder.com>
5650 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5653 inline frame ids in outer frame.
5654
5655 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5658 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5659 (outer_frame_id): Use FID_STACK_OUTER instead of
5660 FID_STACK_INVALID.
5661 (frame_id_p): Don't check for outer_frame_id.
5662
5663 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5666 regnum/frame in value. Call allocate_value_lazy.
5667 * frame.c (frame_unwind_register_value): Use
5668 val_print_not_saved.
5669
5670 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5673
5674 2020-08-29 Pedro Alves <pedro@palves.net>
5675
5676 * progspace.c (print_program_space): Use all_inferiors. Switch to
5677 the inferior before calling target_pid_to_str.
5678
5679 2020-08-28 Tom Tromey <tom@tromey.com>
5680
5681 * xcoffread.c (xcoff_end_psymtab): Update comment.
5682 * dbxread.c (dbx_end_psymtab): Update comment.
5683
5684 2020-08-28 Tom de Vries <tdevries@suse.de>
5685
5686 PR breakpoint/26544
5687 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5688 event_location.
5689 (create_breakpoint): Same.
5690 (base_breakpoint_decode_location): Same.
5691 (bkpt_create_sals_from_location): Same.
5692 (bkpt_decode_location): Same.
5693 (bkpt_probe_create_sals_from_location): Same.
5694 (bkpt_probe_decode_location): Same.
5695 (tracepoint_create_sals_from_location): Same.
5696 (tracepoint_decode_location): Same.
5697 (tracepoint_probe_decode_location): Same.
5698 (strace_marker_create_sals_from_location): Same.
5699 (strace_marker_decode_location): Same.
5700 (create_sals_from_location_default): Same.
5701 (decode_location_default): Same.
5702 * breakpoint.h (struct breakpoint_ops): Same.
5703 (create_breakpoint): Same.
5704 * linespec.h (decode_line_full): Same.
5705 * linespec.c (decode_line_full): Same. Throw error if
5706 result.size () == 0.
5707
5708 2020-08-27 Pedro Alves <pedro@palves.net>
5709
5710 PR gdb/26524
5711 * breakpoint.c (until_break_fsm) <location_breakpoint,
5712 caller_breakpoint>: Delete fields.
5713 <breakpoints>: New field.
5714 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5715 two individual breakpoints.
5716 (until_break_fsm::should_stop): Loop over breakpoints in the
5717 breakpoint vector.
5718 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5719 vector.
5720 (until_break_command): Handle location expanding into multiple
5721 sals.
5722
5723 2020-08-27 Pedro Alves <pedro@palves.net>
5724
5725 PR gdb/26523
5726 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5727 bp_until breakpoints user-specified locations. Update intro
5728 comment.
5729
5730 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5731
5732 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5733 gdb_bfd_sections): New.
5734 * maint.c (print_bfd_section_info): Change param type to
5735 maint_print_section_data.
5736 (print_objfile_section_info): Likewise.
5737 (print_bfd_section_info_maybe_relocated): Likewise.
5738 (maintenance_info_sections): Use gdb_bfd_sections.
5739
5740 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5741
5742 * MAINTAINERS: Add ARC target and maintainer.
5743
5744 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5745
5746 * configure.tgt: ARC support for GNU/Linux.
5747 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5748 * arc-linux-tdep.c: New file.
5749 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5750 * arc-tdep.c (arc_write_pc): Use it.
5751
5752 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5753
5754 * arc-tdep.c (arc_check_for_hardware_loop): New.
5755 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5756
5757 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5758
5759 * arc-tdep.h: Include "gdbarch.h".
5760
5761 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5762
5763 * arch/arc.h
5764 (arc_gdbarch_features): New class to stir the selection of target XML.
5765 (arc_create_target_description): Use FEATURES to choose XML target.
5766 (arc_lookup_target_description): Use arc_create_target_description
5767 to create _new_ target descriptions or return the already created
5768 ones if the FEATURES is the same.
5769 * arch/arc.c: Implementation of prototypes described above.
5770 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5771 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5772 * arc-tdep.c (*_feature_name): Make feature names consistent.
5773 (arc_register_feature): A new struct to hold information about
5774 registers of a particular target/feature.
5775 (arc_check_tdesc_feature): Check if XML provides registers in
5776 compliance with ARC_REGISTER_FEATURE structs.
5777 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5778 (determine_*_reg_feature_set): Which feature name to look for.
5779 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5780 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5781 to expected ISA enums to be used in arc_gdbarch_features structs.
5782 * features/Makefile (FEATURE_XMLFILES): Add new files.
5783 * gdb/features/arc/v1-aux.c: New file.
5784 * gdb/features/arc/v1-aux.xml: Likewise.
5785 * gdb/features/arc/v1-core.c: Likewise.
5786 * gdb/features/arc/v1-core.xml: Likewise.
5787 * gdb/features/arc/v2-aux.c: Likewise.
5788 * gdb/features/arc/v2-aux.xml: Likewise.
5789 * gdb/features/arc/v2-core.c: Likewise.
5790 * gdb/features/arc/v2-core.xml: Likewise.
5791 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5792
5793 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5794 Andrew Burgess <andrew.burgess@embecosm.com>
5795
5796 PR m2/26372
5797 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5798 an assert. Remove single element array indexing pattern as the
5799 MULTI_SUBSCRIPT support will handle this case too.
5800
5801 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5802
5803 * value.h (valprint_check_validity): Move declaration from
5804 here...
5805 * valprint.h (valprint_check_validity): ... to here.
5806
5807 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5808
5809 * debug.h: New file.
5810 * debug.c (debug_prefixed_vprintf): New function.
5811 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5812 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5813
5814 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * infrun.h (infrun_debug_printf_1): New function declaration.
5817 (infrun_debug_printf): New macro.
5818 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5819 throughout.
5820 (infrun_debug_printf): New function.
5821 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5822 (handle_jit_event): Likewise.
5823
5824 2020-08-21 Mark Wielaard <mark@klomp.org>
5825
5826 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5827
5828 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * frame.c (enum class frame_id_status): New.
5831 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5832 (fprintf_frame): Update.
5833 (compute_frame_id): Set frame id status to "computing" on entry.
5834 Set it back to "not_computed" on failure and to "computed" on
5835 success.
5836 (get_frame_id): Assert the frame id is not being computed.
5837 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5838 (create_new_frame): Likewise.
5839 (frame_cleanup_after_sniffer): Update assert.
5840
5841 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5842
5843 * regcache.c (pid_ptid_regcache_map): New type.
5844 (target_ptid_regcache_map): Remove.
5845 (target_pid_ptid_regcache_map): New type.
5846 (regcaches): Change type to target_pid_ptid_regcache_map.
5847 (get_thread_arch_aspace_regcache): Update.
5848 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5849 case.
5850 (regcaches_size): Update.
5851 (regcache_count): Update.
5852 (registers_changed_ptid_target_pid_test): New.
5853 (_initialize_regcache): Register new test.
5854
5855 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * regcache.c (regcache_count): New.
5858 (struct regcache_test_data): New.
5859 (regcache_test_data_up): New.
5860 (populate_regcaches_for_test): New.
5861 (regcaches_test): Remove.
5862 (get_thread_arch_aspace_regcache_test): New.
5863 (registers_changed_ptid_all_test): New.
5864 (registers_changed_ptid_target_test): New.
5865 (registers_changed_ptid_target_ptid_test): New.
5866 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5867 (_initialize_regcache): Register new tests.
5868
5869 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5872 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5873 gdbarch and aspace parameter. Use current inferior's aspace.
5874 Validate regcache's arch value.
5875 (regcaches_test): Update.
5876
5877 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * regcache.c (regcaches_test): Call registers_changed.
5880
5881 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5882
5883 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5884
5885 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5886
5887 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5888 to find the end of prologue for flang compiled binaries.
5889 * arm-tdep.c (arm_skip_prologue): Likewise.
5890 * i386-tdep.c (i386_skip_prologue): Likewise.
5891 * producer.c (producer_is_llvm): New function.
5892 (producer_parsing_tests): Added new tests for clang/flang.
5893 * producer.h (producer_is_llvm): New declaration.
5894
5895 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * linux-nat.c (linux_nat_debug_printf): New function.
5898 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5899
5900 2020-08-18 Aaron Merey <amerey@redhat.com>
5901
5902 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5903 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5904 (CLIBS): Add DEBUGINFOD_LIBS.
5905
5906 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5907
5908 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5909 'gdbarch_num_regs'.
5910
5911 2020-08-17 Tom Tromey <tromey@adacore.com>
5912
5913 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5914 ada_get_decoded_value returns NULL.
5915
5916 2020-08-17 Tom Tromey <tromey@adacore.com>
5917
5918 * python/py-inferior.c (infpy_search_memory): Use
5919 gdb_py_object_from_ulongest.
5920 * python/py-infevents.c (create_inferior_call_event_object)
5921 (create_memory_changed_event_object): Use
5922 gdb_py_object_from_ulongest.
5923 * python/py-linetable.c (ltpy_entry_get_pc): Use
5924 gdb_py_object_from_ulongest.
5925
5926 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5927
5928 * loc.c (class symbol_needs_eval_context): Fix indentation.
5929
5930 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5933 bool.
5934
5935 2020-08-17 Tom de Vries <tdevries@suse.de>
5936
5937 PR gdb/26393
5938 * gdbtypes.c (dump_dynamic_prop): New function.
5939 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5940
5941 2020-08-15 Tom de Vries <tdevries@suse.de>
5942
5943 PR backtrace/26390
5944 * stack.c (print_frame_args): Temporarily set the selected
5945 frame to FRAME while printing the frame's arguments.
5946
5947 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5948
5949 PR breakpoints/26385
5950 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5951 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5952
5953 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5954
5955 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5956 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5957 and >= to check return value instead of == -1 and != -1.
5958
5959 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5960
5961 * utils.h (class gdb_argv) <as_array_view>: New method.
5962 * utils.c (gdb_argv_as_array_view_test): New.
5963 (_initialize_utils): Register selftest.
5964 * maint.c (maintenance_selftest): Use the new method.
5965
5966 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5967
5968 * target.h (supports_dumpcore, dumpcore): New
5969 function declarations.
5970 * target.c (supports_dumpcore, dumpcore): New
5971 functions.
5972 * target-delegates.c: Rebuild.
5973 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5974 and target_dumpcore ().
5975
5976 2020-08-13 Aaron Merey <amerey@redhat.com>
5977
5978 * debuginfod-support.c: Replace global variables with user_data.
5979
5980 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * maint.c (maintenance_selftest): Split args and pass array_view
5983 to run_tests.
5984
5985 2020-08-12 Luis Machado <luis.machado@linaro.org>
5986
5987 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5988 type's length.
5989 Use %s and pulongest to print the length.
5990
5991 2020-08-12 Pedro Alves <palves@redhat.com>
5992
5993 * NEWS: Move "Multi-target debugging support" item to the
5994 "Changes since GDB 9" section.
5995
5996 2020-08-12 Pedro Alves <palves@redhat.com>
5997
5998 PR gdb/26336
5999 * progspace.c (program_space::remove_objfile): Invalidate the
6000 frame cache.
6001
6002 2020-08-11 Tom de Vries <tdevries@suse.de>
6003
6004 * MAINTAINERS: Mark ms1 as deleted.
6005
6006 2020-08-10 Luis Machado <luis.machado@linaro.org>
6007
6008 PR gdb/26310
6009
6010 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6011 act accordingly.
6012 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6013 movz/str/stur/stp skipping behavior.
6014
6015 2020-08-10 Luis Machado <luis.machado@linaro.org>
6016
6017 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6018 struct user_sve_header instead of struct sve_context.
6019
6020 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6021
6022 * read.h (dwarf2_fetch_die_loc_sect_off,
6023 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6024 `void *` parameter with function_view.
6025 * read.c (dwarf2_fetch_die_loc_sect_off,
6026 dwarf2_fetch_die_loc_cu_off): Likewise.
6027 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6028 (per_cu_dwarf_call): Adjust.
6029 (get_frame_address_in_block_wrapper): Remove.
6030 (indirect_synthetic_pointer): Adjust.
6031 (get_ax_pc): Remove.
6032 (dwarf2_compile_expr_to_ax): Adjust.
6033
6034 2020-08-08 Tom de Vries <tdevries@suse.de>
6035
6036 PR build/26344
6037 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6038 constructor.
6039 * regcache.c (get_thread_arch_aspace_regcache): Same.
6040
6041 2020-08-07 Tom Tromey <tromey@adacore.com>
6042
6043 * ravenscar-thread.c
6044 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6045 New method.
6046 (ravenscar_thread_target::wait): Check
6047 runtime_initialized.
6048 (ravenscar_thread_target::prepare_to_store)
6049 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6050 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6051 (ravenscar_thread_target::stopped_by_watchpoint)
6052 (ravenscar_thread_target::stopped_data_address)
6053 (ravenscar_thread_target::core_of_thread): Use
6054 scoped_restore_current_thread and
6055 set_base_thread_from_ravenscar_task.
6056
6057 2020-08-07 Tom Tromey <tromey@adacore.com>
6058
6059 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6060
6061 2020-08-07 Tom Tromey <tromey@adacore.com>
6062
6063 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6064 update_inferior_ptid before update_thread_list.
6065 (temporarily_change_regcache_ptid): New class.
6066 (ravenscar_thread_target::fetch_registers)
6067 (ravenscar_thread_target::store_registers)
6068 (ravenscar_thread_target::prepare_to_store): Use base thread when
6069 forwarding operation.
6070
6071 2020-08-07 Tom Tromey <tromey@adacore.com>
6072
6073 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6074 "is_pid" case.
6075
6076 2020-08-07 Tom Tromey <tromey@adacore.com>
6077
6078 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6079 New methods.
6080 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6081 first.
6082 (ravenscar_thread_target::add_thread): Rename from
6083 ravenscar_add_thread.
6084 (ravenscar_thread_target::update_thread_list): Use a lambda.
6085 (ravenscar_thread_target::xfer_partial): New method.
6086
6087 2020-08-07 Tom Tromey <tromey@adacore.com>
6088
6089 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6090 gdb::function_view.
6091 (iterate_over_live_ada_tasks): Change type of argument.
6092 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6093 of argument.
6094
6095 2020-08-07 Tom Tromey <tromey@adacore.com>
6096
6097 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6098 Remove.
6099 (ravenscar_thread_target::extra_thread_info): Remove.
6100 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6101 defer to target beneath for non-Ravenscar threads.
6102
6103 2020-08-07 Tom Tromey <tromey@adacore.com>
6104
6105 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6106 get_base_thread_from_ravenscar_task>: Now methods.
6107 <m_cpu_map>: New member.
6108 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6109 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6110 (ravenscar_thread_target::task_is_currently_active): Update.
6111 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6112 Now a method.
6113 (ravenscar_thread_target::add_active_thread): Put initial thread
6114 into the m_cpu_map.
6115
6116 2020-08-07 Tom Tromey <tromey@adacore.com>
6117
6118 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6119 event_ptid.
6120
6121 2020-08-07 Tom Tromey <tromey@adacore.com>
6122
6123 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6124 runtime_initialized.
6125
6126 2020-08-07 Tom Tromey <tromey@adacore.com>
6127
6128 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6129 add_active_thread.
6130 (ravenscar_thread_target::add_active_thread): Now public.
6131 (ravenscar_inferior_created): Call add_active_thread after pushing
6132 the target.
6133
6134 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6135
6136 * regcache.c (ptid_regcache_map): New type.
6137 (target_ptid_regcache_map): New type.
6138 (regcaches): Change type to target_ptid_regcache_map.
6139 (get_thread_arch_aspace_regcache): Update to regcaches' new
6140 type.
6141 (regcache_thread_ptid_changed): Likewise.
6142 (registers_changed_ptid): Likewise.
6143 (regcaches_size): Likewise.
6144 (regcaches_test): Update.
6145 (regcache_thread_ptid_changed): Update.
6146 * regcache.h (regcache_up): New type.
6147 * gdbsupport/ptid.h (hash_ptid): New struct.
6148
6149 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * observable.h (thread_ptid_changed): Add parameter
6152 `process_stratum_target *`.
6153 * infrun.c (infrun_thread_ptid_changed): Add parameter
6154 `process_stratum_target *` and use it.
6155 (selftests): New namespace.
6156 (infrun_thread_ptid_changed): New function.
6157 (_initialize_infrun): Register selftest.
6158 * regcache.c (regcache_thread_ptid_changed): Add parameter
6159 `process_stratum_target *` and use it.
6160 (regcache_thread_ptid_changed): New function.
6161 (_initialize_regcache): Register selftest.
6162 * thread.c (thread_change_ptid): Pass target to
6163 thread_ptid_changed observable.
6164
6165 2020-08-06 Caroline Tice <cmtice@google.com>
6166
6167 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6168 (struct dwp_sections): Update field comments. Add loclists and
6169 rnglists fields.
6170 (struct virtual_v2_dwo_sections): Rename struct to
6171 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6172 size & offset fields for loclists and rnglists.
6173 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6174 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6175 skipping dummy type units.
6176 (create_dwp_hash_table): Update the large comment above the function to
6177 discuss Version 5 DWP files as well, with references. Update all the
6178 version checks in the function to check for version 5 as well. Add new
6179 section at the end to create dwp hash table for version 5.
6180 (create_dwp_v2_section): Rename function to
6181 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6182 Add V5 to error message text.
6183 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6184 into calls to create_dwp_v2_or_v5_section.
6185 (create_dwo_unit_in_dwp_v5): New function.
6186 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6187 check for version2; add else clause to handle version 5.
6188 (open_and_init_dwo_file): Add code to check dwarf version & only call
6189 create_debug_types_hash_table (with sections.types) if version is not 5;
6190 else call create_debug_type_hash_table, with sections.info.
6191 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6192 version 5.
6193 (dwarf2_locate_v5_dwp_sections): New function.
6194 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6195 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6196
6197 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * regcache.h (class regcache): Remove friend
6200 registers_changed_ptid.
6201 <regcache_thread_ptid_changed>: Remove.
6202 <regcaches>: Remove.
6203 * regcache.c (regcache::regcaches): Rename to...
6204 (regcaches): ... this. Make static.
6205 (get_thread_arch_aspace_regcache): Update.
6206 (regcache::regcache_thread_ptid_changed): Rename to...
6207 (regcache_thread_ptid_changed): ... this. Update.
6208 (class regcache_access): Remove.
6209 (regcaches_test): Update.
6210 (_initialize_regcache): Update.
6211 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6212 <forward_list>.
6213
6214 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * regcache.h (class regcache) <current_regcache>: Rename to...
6217 <regcaches>: ... this. Move doc here.
6218 * regcache.c (regcache::current_regcache) Rename to...
6219 (regcache::regcaches): ... this. Move doc to header.
6220 (get_thread_arch_aspace_regcache): Update.
6221 (regcache::regcache_thread_ptid_changed): Update.
6222 (registers_changed_ptid): Update.
6223 (class regcache_access) <current_regcache_size>: Rename to...
6224 <regcaches_size>: ... this.
6225 (current_regcache_test): Rename to...
6226 (regcaches_test): ... this.
6227 (_initialize_regcache): Update.
6228
6229 2020-08-06 Victor Collod <vcollod@nvidia.com>
6230
6231 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6232
6233 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6234
6235 * corelow.c (core_target::build_file_mappings): Don't output
6236 null pathname in warning.
6237
6238 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6241 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6242 gdb.dwarf2/dw2-single-line-discriminators.exp,
6243 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6244
6245 2020-08-05 Tom Tromey <tromey@adacore.com>
6246
6247 PR rust/26197:
6248 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6249 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6250 Fix off-by-one and type size errors in ordinary case.
6251
6252 2020-08-05 Tom de Vries <tdevries@suse.de>
6253
6254 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6255 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6256
6257 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * frame.h (frame_id_p): Return bool.
6260 (frame_id_artificial_p): Return bool.
6261 (frame_id_eq): Return bool.
6262 (has_stack_frames): Return bool.
6263 (get_selected_frame): Fix typo in comment.
6264 (get_frame_pc_if_available): Return bool.
6265 (get_frame_address_in_block_if_available): Return bool.
6266 (get_frame_func_if_available): Return bool.
6267 (read_frame_register_unsigned): Return bool.
6268 (get_frame_register_bytes): Return bool.
6269 (safe_frame_unwind_memory): Return bool.
6270 (deprecated_frame_register_read): Return bool.
6271 (frame_unwinder_is): Return bool.
6272 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6273 bool.
6274 <this_id::p>: Likewise.
6275 <prev_p>: Likewise.
6276 (frame_stash_add): Return bool.
6277 (get_frame_id): Use bool.
6278 (frame_id_build_special) Use bool.
6279 (frame_id_build_unavailable_stack): Use bool.
6280 (frame_id_build): Use bool.
6281 (frame_id_p): Return bool, use true/false instead of 1/0.
6282 (frame_id_artificial_p): Likewise.
6283 (frame_id_eq): Likewise.
6284 (frame_id_inner): Likewise.
6285 (get_frame_func_if_available): Likewise.
6286 (read_frame_register_unsigned): Likewise.
6287 (deprecated_frame_register_read): Likewise.
6288 (get_frame_register_bytes): Likewise.
6289 (has_stack_frames): Likewise.
6290 (inside_main_func): Likewise.
6291 (inside_entry_func): Likewise.
6292 (get_frame_pc_if_available): Likewise.
6293 (get_frame_address_in_block_if_available): Likewise.
6294 (frame_unwinder_is): Likewise.
6295 (safe_frame_unwind_memory): Likewise.
6296 (frame_unwind_arch): Likewise.
6297
6298 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6301 type to cached_copy_status.
6302 (fprintf_frame): Adjust.
6303 (get_frame_func_if_available): Adjust.
6304 (frame_cleanup_after_sniffer): Adjust.
6305
6306 2020-08-04 Mark Wielaard <mark@klomp.org>
6307
6308 * MAINTAINERS (Write After Approval): Update email address.
6309
6310 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6313 dynamic_prop::const_val.
6314
6315 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6318 dynamic_prop::kind.
6319
6320 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6323
6324 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6325
6326 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6327
6328 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6329 Jose E. Marchesi <jose.marchesi@oracle.com>
6330
6331 * configure.tgt: Add entry for bpf-*-*.
6332 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6333 (ALLDEPFILES): Add bpf-tdep.c.
6334 * bpf-tdep.c: New file.
6335 * MAINTAINERS: Add bpf target and maintainer.
6336 * NEWS: Mention the support for the new target.
6337
6338 2020-08-04 Tom de Vries <tdevries@suse.de>
6339
6340 PR symtab/23270
6341 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6342 Error.
6343
6344 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6345
6346 * syscalls/freebsd.xml: Regenerate.
6347
6348 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6349
6350 * syscalls/update-freebsd.sh: Fix usage and year range.
6351
6352 2020-08-03 Tom de Vries <tdevries@suse.de>
6353
6354 PR symtab/26333
6355 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6356 DW_LNE_lo_user/DW_LNE_hi_user range.
6357
6358 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 PR ada/26318
6361 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6362 kind.
6363
6364 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6365
6366 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6367
6368 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6369
6370 * breakpoint.c (set_breakpoint_condition): Update the condition
6371 expressions after checking that the input condition string parses
6372 successfully and does not contain junk at the end.
6373
6374 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6375
6376 * breakpoint.c (set_breakpoint_condition): Update the
6377 condition string after parsing the new condition successfully.
6378
6379 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6380
6381 * proc-api.c (_STRUCTURED_PROC): Don't define.
6382 * proc-events.c: Likewise.
6383 * proc-flags.c: Likewise.
6384 * proc-why.c: Likewise.
6385 * procfs.c: Likewise.
6386
6387 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6388 * configure, config.in: Regenerate.
6389
6390 2020-07-30 Tom de Vries <tdevries@suse.de>
6391
6392 PR build/26320
6393 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6394 m_red/m_green/m_blue in a union.
6395
6396 2020-07-29 Tom de Vries <tdevries@suse.de>
6397
6398 PR tdep/26280
6399 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6400
6401 2020-07-28 Tom Tromey <tromey@adacore.com>
6402
6403 PR symtab/26270:
6404 * symtab.h (find_pc_partial_function_sym): Declare.
6405 * cli/cli-cmds.c (disassemble_command): Use
6406 find_pc_partial_function_sym. Check asm_demangle.
6407 * blockframe.c (cache_pc_function_sym): New global.
6408 (cache_pc_function_name): Remove.
6409 (clear_pc_function_cache): Update.
6410 (find_pc_partial_function_sym): New function, from
6411 find_pc_partial_function.
6412 (find_pc_partial_function): Rewrite using
6413 find_pc_partial_function_sym.
6414
6415 2020-07-28 Tom Tromey <tromey@adacore.com>
6416
6417 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6418 help. Add usage.
6419
6420 2020-07-28 Tom Tromey <tromey@adacore.com>
6421
6422 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6423 <DW_OP_GNU_variable_value>: Cast to address type.
6424
6425 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6426
6427 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6428 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6429 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6430 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6431 (nbsd_get_siginfo_type): New.
6432 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6433 (_initialize_nbsd_tdep): New.
6434
6435 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6436
6437 PR binutils/26301
6438 * configure: Regenerated.
6439
6440 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6441
6442 PR binutils/26301
6443 * configure: Regenerated.
6444
6445 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * python/py-frame.c: Remove 'user-regs.h' include.
6448 (frapy_read_register): Rewrite to make use of
6449 gdbpy_parse_register_id.
6450 * python/py-registers.c (gdbpy_parse_register_id): New function,
6451 moved here from python/py-unwind.c. Updated the return type, and
6452 also accepts register descriptor objects.
6453 * python/py-unwind.c: Remove 'user-regs.h' include.
6454 (pyuw_parse_register_id): Moved to python/py-registers.c.
6455 (unwind_infopy_add_saved_register): Update to use
6456 gdbpy_parse_register_id.
6457 (pending_framepy_read_register): Likewise.
6458 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6459
6460 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6461
6462 * python/py-registers.c: Add 'user-regs.h' include.
6463 (register_descriptor_iter_find): New function.
6464 (register_descriptor_iterator_object_methods): New static global
6465 methods array.
6466 (register_descriptor_iterator_object_type): Add pointer to methods
6467 array.
6468
6469 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6470
6471 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6472 for all architectures on FreeBSD 11.3 and later.
6473
6474 2020-07-27 Tom Tromey <tromey@adacore.com>
6475
6476 * gcore.h (load_corefile): Don't declare.
6477
6478 2020-07-27 Tom de Vries <tdevries@suse.de>
6479
6480 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6481 * config.in: Regenerate.
6482 * configure: Regenerate.
6483
6484 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6485
6486 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6487 ws2tcpip.h. When checking whether socklen_t type is defined, use
6488 ws2tcpip.h if it is available and sys/socket.h isn't.
6489 * configure: Regenerate.
6490 * config.in: Regenerate.
6491
6492 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6493
6494 PR fortran/23051
6495 PR fortran/26139
6496 * valops.c (value_ind): Pass address to
6497 readjust_indirect_value_type.
6498 * value.c (readjust_indirect_value_type): Make parameter
6499 non-const, and add extra address parameter. Resolve original type
6500 before using it.
6501 * value.h (readjust_indirect_value_type): Update function
6502 signature and comment.
6503
6504 2020-07-25 Tom de Vries <tdevries@suse.de>
6505
6506 PR symtab/26243
6507 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6508 entries.
6509
6510 2020-07-24 Aaron Merey <amerey@redhat.com>
6511
6512 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6513 * configure: Rebuild.
6514
6515 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6516
6517 PR corefiles/26294
6518 * corelow.c (_initialize_corelow): Add period to help text
6519 for "maintenance print core-file-backed-mappings".
6520
6521 2020-07-23 Pedro Alves <pedro@palves.net>
6522
6523 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6524 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6525 meanwhile.
6526 * frame.c (frame_cache_generation, get_frame_cache_generation):
6527 New.
6528 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6529 (get_prev_frame_if_no_cycle): On exception, don't touch
6530 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6531 * frame.h (get_frame_cache_generation): Declare.
6532
6533 2020-07-23 Tom de Vries <tdevries@suse.de>
6534
6535 PR tui/26282
6536 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6537 New default constructor.
6538
6539 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6542 exclude non-statement entries.
6543
6544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6545
6546 * NEWS (New commands): Mention new command
6547 "maintenance print core-file-backed-mappings".
6548
6549 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6550
6551 * corelow.c (gdbcmd.h): Include.
6552 (core_target::info_proc_mappings): New method.
6553 (get_current_core_target): New function.
6554 (maintenance_print_core_file_backed_mappings): New function.
6555 (_initialize_corelow): Add core-file-backed-mappings to
6556 "maint print" commands.
6557
6558 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6559
6560 * linux-tdep.c (dump_note_entry_p): New function.
6561 (linux_dump_mapping_p_ftype): New typedef.
6562 (linux_find_memory_regions_full): Add new parameter,
6563 should_dump_mapping_p.
6564 (linux_find_memory_regions): Adjust call to
6565 linux_find_memory_regions_full.
6566 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6567 call to linux_find_memory_regions_full.
6568
6569 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6570
6571 * corelow.c (solist.h, unordered_map): Include.
6572 (class core_target): Add field m_core_file_mappings and
6573 method build_file_mappings.
6574 (core_target::core_target): Call build_file_mappings.
6575 (core_target::~core_target): Free memory associated with
6576 m_core_file_mappings.
6577 (core_target::build_file_mappings): New method.
6578 (core_target::xfer_partial): Use m_core_file_mappings
6579 for memory transfers.
6580 * linux-tdep.c (linux_read_core_file_mappings): New
6581 function.
6582 (linux_core_info_proc_mappings): Rewrite to use
6583 linux_read_core_file_mappings.
6584 (linux_init_abi): Register linux_read_core_file_mappings.
6585
6586 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6587
6588 * arch-utils.c (default_read_core_file_mappings): New function.
6589 * arch-utils.c (default_read_core_file_mappings): Declare.
6590 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6591 * gdbarch.h, gdbarch.c: Regenerate.
6592
6593 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6594
6595 PR corefiles/25631
6596 * corelow.c (core_target:xfer_partial): Revise
6597 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6598 case after first checking the stratum beneath the core
6599 target.
6600 (has_all_memory): Return true.
6601 * target.c (raw_memory_xfer_partial): Revise comment
6602 regarding use of has_all_memory.
6603
6604 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6605
6606 * exec.h (section_table_xfer_memory): Revise declaration,
6607 replacing section name parameter with an optional callback
6608 predicate.
6609 * exec.c (section_table_xfer_memory): Likewise.
6610 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6611 of section_table_xfer_memory.
6612
6613 2020-07-22 Tom Tromey <tromey@adacore.com>
6614
6615 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6616 lookup_symbol_search_name.
6617
6618 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6619
6620 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6621 redundant local variable.
6622 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6623 reference, not pointer, update code accordingly.
6624
6625 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6626 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627
6628 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6629 * jit.c (jit_breakpoint_re_set_internal): Use the
6630 `skip_jit_symbol_lookup` field.
6631
6632 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6633 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6634
6635 * jit.c (jit_read_descriptor): Define the descriptor address once,
6636 use twice.
6637 (jit_breakpoint_deleted): Move the declaration of the loop variable
6638 `iter` into the loop header.
6639 (jit_breakpoint_re_set_internal): Move the declaration of the local
6640 variable `objf_data` to the first point of definition.
6641 (jit_event_handler): Move the declaration of local variables
6642 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6643 Rename `objf` to `jited`.
6644
6645 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6646
6647 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6648 Remove.
6649 * jit.c (get_jiter_objfile_data): Update.
6650
6651 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6652 Simon Marchi <simon.marchi@polymtl.ca>
6653
6654 * jit.c (struct jit_program_space_data): Remove.
6655 (jit_program_space_key): Remove.
6656 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6657 stuff.
6658 (get_jit_program_space_data): Remove.
6659 (jit_breakpoint_deleted): Iterate on all of the program space's
6660 objfiles.
6661 (jit_inferior_init): Likewise.
6662 (jit_breakpoint_re_set_internal): Likewise. Also change return
6663 type to void.
6664 (jit_breakpoint_re_set): Pass current_program_space to
6665 jit_breakpoint_re_set_internal.
6666
6667 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6668
6669 * jit.h (struct jiter_objfile_data) <cached_code_address,
6670 jit_breakpoint>: Move to here from ...
6671 * jit.c (jit_program_space_data): ... here.
6672 (jiter_objfile_data::~jiter_objfile_data): Update.
6673 (jit_breakpoint_deleted): Update.
6674 (jit_breakpoint_re_set_internal): Update.
6675
6676 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6677
6678 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6679 checks.
6680 (jit_read_descriptor): Remove NULL check.
6681 (jit_event_handler): Add an assertion.
6682
6683 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6684
6685 * jit.h (struct jit_objfile_data): Split into...
6686 (struct jiter_objfile_data): ... this ...
6687 (struct jited_objfile_data): ... and this.
6688 * objfiles.h (struct objfile) <jit_data>: Remove.
6689 <jiter_data, jited_data>: New fields.
6690 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6691 (jiter_objfile_data::~jiter_objfile_data): ... this.
6692 (get_jit_objfile_data): Rename to ...
6693 (get_jiter_objfile_data): ... this.
6694 (add_objfile_entry): Update.
6695 (jit_read_descriptor): Use get_jiter_objfile_data.
6696 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6697 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6698 (jit_inferior_exit_hook): Use objfile's jited_data field.
6699
6700 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6701
6702 * jit.h: Forward-declare `struct minimal_symbol`.
6703 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6704 constructor, destructor, and an objfile* field.
6705 * jit.c (jit_objfile_data): Remove.
6706 (struct jit_objfile_data): Migrate from here to jit.h.
6707 (jit_objfile_data::~jit_objfile_data): New destructor
6708 implementation with code moved from free_objfile_data.
6709 (free_objfile_data): Delete.
6710 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6711 (jit_find_objf_with_entry_addr): Ditto.
6712 (jit_inferior_exit_hook): Ditto.
6713 (_initialize_jit): Remove the call to
6714 register_objfile_data_with_cleanup.
6715 * objfiles.h (struct objfile) <jit_data>: New field.
6716
6717 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6718
6719 * jit.h: Forward-declare `struct objfile`.
6720 (jit_event_handler): Add a second parameter, the JITer objfile.
6721 * jit.c (jit_read_descriptor): Change the signature to take the
6722 JITer objfile as an argument instead of the jit_program_space_data.
6723 (jit_inferior_init): Update the call to jit_read_descriptor.
6724 (jit_event_handler): Use the new JITer objfile argument when calling
6725 jit_read_descriptor.
6726 * breakpoint.c (handle_jit_event): Update the call to
6727 jit_event_handler to pass the JITer objfile.
6728
6729 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6730
6731 * gdbarch.c: Regenerate.
6732 * gdbarch.h: Regenerate.
6733 * gdbarch.sh (handle_segmentation_fault): Remove method.
6734 * infrun.c (handle_segmentation_fault): Remove.
6735 (print_signal_received_reason): Remove call to
6736 handle_segmentation_fault.
6737
6738 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6739
6740 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6741 Rename to sparc64_linux_report_signal_info and add siggnal
6742 argument.
6743 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6744 instead of sparc64_linux_handle_segmentation_fault.
6745
6746 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6747
6748 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6749 i386_linux_report_signal_info instead of
6750 i386_linux_handle_segmentation_fault.
6751 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6752 to i386_linux_report_signal_info and add siggnal argument.
6753 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6754 of i386_linux_handle_segmentation_fault.
6755 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6756 to i386_linux_report_signal_info and add siggnal argument.
6757
6758 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6759
6760 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6761 hook if present.
6762
6763 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6764
6765 * gdbarch.c: Regenerate.
6766 * gdbarch.h: Regenerate.
6767 * gdbarch.sh (report_signal_info): New method.
6768 * infrun.c (print_signal_received_reason): Invoke gdbarch
6769 report_signal_info hook if present.
6770
6771 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * python/py-registers.c : Add 'unordered_map' include.
6774 (gdbpy_new_reggroup): Renamed to...
6775 (gdbpy_get_reggroup): ...this. Update to only create register
6776 group descriptors when needed.
6777 (gdbpy_reggroup_iter_next): Update.
6778
6779 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * python/py-registers.c (gdbpy_register_object_data): New static
6782 global.
6783 (gdbpy_register_object_data_init): New function.
6784 (gdbpy_new_register_descriptor): Renamed to...
6785 (gdbpy_get_register_descriptor): ...this, and update to reuse
6786 existing register descriptors where possible.
6787 (gdbpy_register_descriptor_iter_next): Update.
6788 (gdbpy_initialize_registers): Register new gdbarch data.
6789
6790 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6791
6792 * linux-nat.c (stopped_pids): Make static.
6793
6794 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6795
6796 PR ada/26235
6797 * gdbtypes.c (ada_discrete_type_low_bound,
6798 ada_discrete_type_high_bound): Handle undefined bounds.
6799
6800 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6801
6802 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6803 declaration.
6804 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6805 function.
6806
6807 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6808
6809 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6810 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6811 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6812 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6813 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6814 method.
6815
6816 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6817
6818 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6819 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6820 which are deprecated in Guile 3.0.
6821 * configure.ac (try_guile_versions): Add "guile-3.0".
6822 * configure (try_guile_versions): Regenerate.
6823 * NEWS: Update entry.
6824
6825 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6826 Doug Evans <dje@google.com>
6827
6828 PR gdb/21104
6829 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6830 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6831 USING_GUILE_BEFORE_2_2.
6832 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6833 Change type to 'scm_t_port_type *'.
6834 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6835 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6836 parameter and honor it. Update callers.
6837 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6838 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6839 functions.
6840 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6841 USING_GUILE_BEFORE_2_2.
6842 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6843 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6844 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6845 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6846 and 'SCM_PORT_TYPE'.
6847 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6848 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6849 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6850 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6851 [!USING_GUILE_BEFORE_2_2]: New functions.
6852 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6853 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6854 'gdbscm_memory_port_read'.
6855 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6856 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6857 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6858 function.
6859 (ioscm_init_memory_port): Remove.
6860 (ioscm_init_memory_port_stream): New function
6861 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6862 function.
6863 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6864 Return scm_from_uint (0).
6865 (gdbscm_set_memory_port_read_buffer_size_x)
6866 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6867 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6868 Return scm_from_uint (0).
6869 (gdbscm_set_memory_port_write_buffer_size_x)
6870 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6871 * configure.ac (try_guile_versions): Add "guile-2.2".
6872 * configure: Regenerate.
6873 * NEWS: Add entry.
6874
6875 2020-07-18 Tom Tromey <tom@tromey.com>
6876
6877 * linux-nat.c (linux_multi_process): Remove.
6878 (linux_nat_target::supports_multi_process): Return true.
6879
6880 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6883 (riscv_lookup_target_description): Return pointer out of
6884 unique_ptr.
6885 * target-descriptions.c (allocate_target_description): Add
6886 comment.
6887 (target_desc_deleter::operator()): Likewise.
6888 * target-descriptions.h (struct target_desc_deleter): Moved to
6889 gdbsupport/tdesc.h.
6890 (target_desc_up): Likewise.
6891
6892 2020-07-17 Tom Tromey <tromey@adacore.com>
6893
6894 * linux-nat.c (linux_nat_target::supports_non_stop)
6895 (linux_nat_target::always_non_stop_p): Use "true".
6896 (linux_nat_target::supports_disable_randomization): Use "true" and
6897 "false".
6898
6899 2020-07-16 Caroline Tice <cmtice@google.com>
6900
6901 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6902 (RNGLIST_HEADER_SIZE64): New constant definition.
6903 (struct dwop_section_names): Add rnglists_dwo.
6904 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6905 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6906 (struct dwo_sections): Add rnglists field.
6907 (read_attribut_reprocess): Add tag parameter.
6908 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6909 (cu_debug_rnglists_section): New function (decl & definition).
6910 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6911 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6912 die whose range is being checked; get rnglist section from
6913 cu_debug_rnglists_section, to get from either objfile or dwo file as
6914 appropriate. Add cases for DW_RLE_base_addressx,
6915 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6916 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6917 test inside if-condition and updating complaint message.
6918 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6919 dwarf2_rnglists_process.
6920 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6921 dwarf2_ranges_process.
6922 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6923 need_ranges_base and update comment appropriately. Also pass die tag
6924 to dwarf2_ranges_read.
6925 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6926 need_ranges_base and update comment appropriately. Also pass die tag
6927 to dwarf2_ranges_process.
6928 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6929 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6930 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6931 need_ranges_base and update comment appropriately. Also pass die tag
6932 to read_attribute_reprocess and dwarf2_ranges_read.
6933 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6934 and update function comment appropriately.
6935 (read_loclist_index): Call read_loclists_rnglists_header instead of
6936 read_loclist_header.
6937 (read_rnglist_index): New function.
6938 (read_attribute_reprocess): Add tag parameter. Add code for
6939 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6940 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6941
6942 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6945 being resolved.
6946
6947 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6948
6949 * arch-utils.c (show_architecture): Update formatting of messages.
6950
6951 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6952
6953 * gdbtypes.h (struct type) <bounds>: Handle array and string
6954 types.
6955 * ada-lang.c (assign_aggregate): Use type::bounds on
6956 array/string type.
6957 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6958 * c-varobj.c (c_number_of_children): Likewise.
6959 (c_describe_child): Likewise.
6960 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6961 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6962 (f_type_print_base): Likewise.
6963 * f-valprint.c (f77_array_offset_tbl): Likewise.
6964 (f77_get_upperbound): Likewise.
6965 (f77_print_array_1): Likewise.
6966 * guile/scm-type.c (gdbscm_type_range): Likewise.
6967 * m2-typeprint.c (m2_array): Likewise.
6968 (m2_is_long_set_of_type): Likewise.
6969 * m2-valprint.c (get_long_set_bounds): Likewise.
6970 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6971 * python/py-type.c (typy_range): Likewise.
6972 * rust-lang.c (rust_internal_print_type): Likewise.
6973 * type-stack.c (type_stack::follow_types): Likewise.
6974 * valarith.c (value_subscripted_rvalue): Likewise.
6975 * valops.c (value_cast): Likewise.
6976
6977 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6980 callers to use the equivalent accessor methods.
6981
6982 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6985 (struct type) <bit_stride>: New method.
6986 (TYPE_BIT_STRIDE): Remove.
6987 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6988
6989 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6992 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6993 callers to use the equivalent accessor methods instead.
6994
6995 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6998 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6999 callers to use the equivalent accessor methods instead.
7000
7001 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7002
7003 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7004 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7005 to use dynamic_prop::kind.
7006
7007 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7008
7009 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7010 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7011 to get the bound property's kind and check against
7012 PROP_UNDEFINED.
7013
7014 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7017 all callers to use type::range_bounds followed by
7018 dynamic_prop::{low,high}.
7019
7020 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7021
7022 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7023 const_val, set_const_val, baton, set_locexpr, set_loclist,
7024 set_addr_offset, variant_parts, set_variant_parts,
7025 original_type, set_original_type>: New methods.
7026 <kind>: Rename to...
7027 <m_kind>: ... this. Update all users to use the new methods
7028 instead.
7029 <data>: Rename to...
7030 <m_data>: ... this. Update all users to use the new methods
7031 instead.
7032
7033 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * gdbtypes.c (get_discrete_bounds): Return failure if
7036 the range type's bounds are not both defined and constant
7037 values.
7038 (get_array_bounds): Update comment. Remove undefined bound check.
7039
7040 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7041
7042 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7043 the type::bounds method directly.
7044
7045 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7048 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7049 are used to set the range type's bounds to use set_bounds.
7050
7051 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7052
7053 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7054
7055 2020-07-10 Pedro Alves <pedro@palves.net>
7056
7057 * gdbthread.h (inferior_ref): Define.
7058 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7059 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7060 * thread.c
7061 (scoped_restore_current_thread::restore):
7062 Adjust to gdb::ref_ptr.
7063 (scoped_restore_current_thread::~scoped_restore_current_thread):
7064 Remove manual decref handling.
7065 (scoped_restore_current_thread::scoped_restore_current_thread):
7066 Adjust to use
7067 inferior_ref::new_reference/thread_info_ref::new_reference.
7068 Incref the thread before calling get_frame_id instead of after.
7069 Let TARGET_CLOSE_ERROR propagate.
7070
7071 2020-07-10 Pedro Alves <pedro@palves.net>
7072
7073 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7074 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7075 NOT_AVAILABLE_ERROR.
7076 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7077 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7078
7079 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7080 Pedro Alves <pedro@palves.net>
7081
7082 PR gdb/26199
7083 * infrun.c (threads_are_resumed_pending_p): Delete.
7084 (do_target_wait): Remove threads_are_executing and
7085 threads_are_resumed_pending_p checks from the inferior_matches
7086 lambda. Update comments.
7087
7088 2020-07-10 Pedro Alves <pedro@palves.net>
7089
7090 PR gdb/26199
7091 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7092 executing threads.
7093
7094 2020-07-10 Pedro Alves <pedro@palves.net>
7095
7096 PR gdb/26199
7097 * infrun.c (handle_no_resumed): Handle multiple targets.
7098
7099 2020-07-10 Pedro Alves <pedro@palves.net>
7100
7101 PR gdb/26199
7102 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7103 target_is_async_p.
7104
7105 2020-07-10 Pedro Alves <pedro@palves.net>
7106
7107 PR gdb/26199
7108 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7109 threads, not all threads.
7110
7111 2020-07-10 Pedro Alves <pedro@palves.net>
7112
7113 PR gdb/26199
7114 * remote.c (remote_target::open_1): Pass remote target pointer as
7115 data to create_async_event_handler.
7116 (remote_async_inferior_event_handler): Mark async event handler
7117 before returning if the remote target still has either pending
7118 events or unacknowledged notifications.
7119
7120 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7121
7122 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7123 declaration.
7124 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7125 function.
7126
7127 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7128
7129 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7130 inferior_ptid.
7131
7132 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7133
7134 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7135 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7136 AT_FREEBSD_PS_STRINGS.
7137
7138 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7139
7140 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7141 of debugfile path on Windows.
7142
7143 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7144
7145 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7146 argument to 'data'.
7147
7148 2020-07-08 Tom Tromey <tromey@adacore.com>
7149
7150 * ada-lang.c (ada_exception_message_1): Use read_memory.
7151
7152 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 PR python/22748
7155 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7156 special handling for inline frames.
7157 * findvar.c (value_of_register_lazy): Skip inline frames when
7158 creating lazy register values.
7159 * frame.c (frame_id_computed_p): Delete definition.
7160 * frame.h (frame_id_computed_p): Delete declaration.
7161
7162 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * NEWS: Mention additions to Python API.
7165 * python/py-arch.c (archpy_register_groups): New function.
7166 (arch_object_methods): Add 'register_groups' method.
7167 * python/py-registers.c (reggroup_iterator_object): New struct.
7168 (reggroup_object): New struct.
7169 (gdbpy_new_reggroup): New function.
7170 (gdbpy_reggroup_to_string): New function.
7171 (gdbpy_reggroup_name): New function.
7172 (gdbpy_reggroup_iter): New function.
7173 (gdbpy_reggroup_iter_next): New function.
7174 (gdbpy_new_reggroup_iterator): New function
7175 (gdbpy_initialize_registers): Register new types.
7176 (reggroup_iterator_object_type): Define new Python type.
7177 (gdbpy_reggroup_getset): New static global.
7178 (reggroup_object_type): Define new Python type.
7179 * python/python-internal.h
7180
7181 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7184 * python/py-arch.c (archpy_registers): New function.
7185 (arch_object_methods): Add 'registers' method.
7186 * python/py-registers.c: New file.
7187 * python/python-internal.h
7188 (gdbpy_new_register_descriptor_iterator): Declare.
7189 (gdbpy_initialize_registers): Declare.
7190 * python/python.c (do_start_initialization): Call
7191 gdbpy_initialize_registers.
7192 * NEWS: Mention additions to the Python API.
7193
7194 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * NEWS: Mention new Python API method.
7197 * python/py-unwind.c (pending_framepy_architecture): New function.
7198 (pending_frame_object_methods): Add architecture method.
7199
7200 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * gdbarch.c: Regenerate.
7203 * gdbarch.h: Regenerate.
7204 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7205 (gdbarch_data): Use internal_error for the case where
7206 deprecated_set_gdbarch_data was originally needed.
7207 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7208 and use passed in obstack.
7209 (libunwind_frame_set_descr): Should no longer get back NULL from
7210 gdbarch_data.
7211 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7212 type.
7213 * user-regs.c (user_regs_init): Update parameters, and use passed
7214 in obstack.
7215 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7216 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7217
7218 2020-07-06 Tom de Vries <tdevries@suse.de>
7219
7220 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7221 End-Of-Sequence in lte_is_less_than.
7222 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7223 "gdb: Don't reorder line table entries too much when sorting".
7224
7225 2020-07-06 Tom de Vries <tdevries@suse.de>
7226
7227 PR tui/26205
7228 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7229
7230 2020-07-05 Tom de Vries <tdevries@suse.de>
7231
7232 PR build/26187
7233 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7234 std::uncaught_exceptions instead of deprecated
7235 std::uncaught_exception.
7236
7237 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7238
7239 * macroexp.h (macro_stringify): Return
7240 gdb::unique_xmalloc_ptr<char>.
7241 * macroexp.c (macro_stringify): Likewise.
7242 * macrotab.c (fixup_definition): Update.
7243
7244 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7245
7246 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7247 (lex_one_token): Update.
7248 * macroexp.c (struct macro_buffer) <release>: Return
7249 gdb::unique_xmalloc_ptr<char>.
7250 (macro_stringify): Update.
7251 (macro_expand): Update.
7252 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7253 * macroexp.h (macro_expand_next): Likewise.
7254
7255 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * macroexp.h (macro_lookup_ftype): Remove.
7258 (macro_expand, macro_expand_once, macro_expand_next): Remove
7259 lookup function parameters, add scope parameter.
7260 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7261 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7262 * macroscope.h (standard_macro_lookup): Change parameter type
7263 to macro_scope.
7264 * macroscope.c (standard_macro_lookup): Likewise.
7265 * c-exp.y (lex_one_token): Update.
7266 * macrocmd.c (macro_expand_command): Likewise.
7267 (macro_expand_once_command): Likewise.
7268
7269 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7270
7271 * inf-loop.c (inferior_event_handler): Remove client_data param.
7272 * inf-loop.h (inferior_event_handler): Likewise.
7273 * infcmd.c (step_1): Adjust.
7274 * infrun.c (proceed): Adjust.
7275 (fetch_inferior_event): Remove client_data param.
7276 (infrun_async_inferior_event_handler): Adjust.
7277 * infrun.h (fetch_inferior_event): Remove `void *` param.
7278 * linux-nat.c (handle_target_event): Adjust.
7279 * record-btrace.c (record_btrace_handle_async_inferior_event):
7280 Adjust.
7281 * record-full.c (record_full_async_inferior_event_handler):
7282 Adjust.
7283 * remote.c (remote_async_inferior_event_handler): Adjust.
7284
7285 2020-07-01 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7288 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7289
7290 2020-07-01 Tom Tromey <tom@tromey.com>
7291
7292 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7293 tui_gen_win_info.
7294 (tui_win_info::make_window): Merge with
7295 tui_gen_win_info::make_window.
7296 (tui_win_info::make_visible): Move from tui_gen_win_info.
7297 * tui/tui-win.c (tui_win_info::max_width): Move from
7298 tui_gen_win_info.
7299 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7300 type.
7301 <window_factory>: Likewise.
7302 * tui/tui-layout.c (tui_win_info::resize): Move from
7303 tui_gen_win_info.
7304 (make_standard_window): Change return type.
7305 (get_locator_window, tui_get_window_by_name): Likewise.
7306 (tui_layout_window::apply): Remove a cast.
7307 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7308 (struct tui_win_info): Merge with tui_gen_win_info.
7309 (struct tui_gen_win_info): Remove.
7310
7311 2020-07-01 Tom Tromey <tom@tromey.com>
7312
7313 * tui/tui-stack.h (struct tui_locator_window): Derive from
7314 tui_win_info.
7315 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7316 <can_box>: New method.
7317
7318 2020-07-01 Tom Tromey <tom@tromey.com>
7319
7320 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7321
7322 2020-07-01 Tom Tromey <tom@tromey.com>
7323
7324 * tui/tui-regs.c (tui_data_window::display_registers_from)
7325 (tui_data_window::display_registers_from)
7326 (tui_data_window::first_data_item_displayed)
7327 (tui_data_window::delete_data_content_windows): Update.
7328 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7329 Remove.
7330 (tui_data_window::check_register_values): Update.
7331 (tui_data_item_window::rerender): Add parameters. Update.
7332 (tui_data_item_window::refresh_window): Remove.
7333 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7334 virtual.
7335 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7336 tui_gen_win_info.
7337 <refresh_window, max_height, min_height>: Remove.
7338 <rerender>: Add parameters.
7339 <x, y, visible>: New members.
7340 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7341 <m_item_width>: New member.
7342
7343 2020-07-01 Tom Tromey <tom@tromey.com>
7344
7345 * tui/tui-regs.c (tui_data_window::show_register_group)
7346 (tui_data_window::check_register_values): Update.
7347 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7348 from item_no.
7349
7350 2020-07-01 Tom Tromey <tom@tromey.com>
7351
7352 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7353 useless "if".
7354
7355 2020-07-01 Tom Tromey <tom@tromey.com>
7356
7357 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7358 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7359
7360 2020-07-01 Tom Tromey <tom@tromey.com>
7361
7362 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7363 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7364 (struct tui_line_or_address): Move from tui-data.h.
7365 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7366 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7367 (tui_cmd_window, tui_source_window_base, tui_source_window)
7368 (tui_disasm_window): Don't declare.
7369 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7370 to tui-winsource.h.
7371 (SINGLE_KEY): Move to tui-stack.c.
7372
7373 2020-07-01 Tom Tromey <tom@tromey.com>
7374
7375 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7376 std::string.
7377 * tui/tui-regs.c (class tab_expansion_file): New.
7378 (tab_expansion_file::write): New method.
7379 (tui_register_format): Change return type. Use
7380 tab_expansion_file.
7381 (tui_get_register, tui_data_window::display_registers_from)
7382 (tui_data_item_window::rerender): Update.
7383 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7384 * tui/tui-io.c (tui_expand_tabs): Remove.
7385
7386 2020-07-01 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7389
7390 2020-07-01 Fangrui Song <maskray@google.com>
7391
7392 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7393
7394 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7395
7396 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7397 forms for DW_AT_associated and DW_AT_allocated attributes,
7398 which is already checked in function attr_to_dynamic_prop.
7399
7400 2020-06-30 Tom Tromey <tromey@adacore.com>
7401
7402 * dwarf2/read.c (quirk_rust_enum): Correctly call
7403 alloc_rust_variant for default-less enum.
7404
7405 2020-06-30 Tom Tromey <tromey@adacore.com>
7406
7407 PR build/26183:
7408 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7409 gdb::to_string.
7410
7411 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7414 * gdbarch.h: Re-generate.
7415
7416 2020-06-28 Tom Tromey <tom@tromey.com>
7417
7418 * command.h (cmd_types): Remove.
7419 (cmd_type): Don't declare.
7420 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7421 typedef.
7422 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7423 * cli/cli-decode.c (cmd_type): Remove.
7424
7425 2020-06-27 Pedro Alves <palves@redhat.com>
7426
7427 * fork-child.c (prefork_hook): Adjust.
7428 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7429 Delete.
7430 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7431 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7432 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7433 Remove declarations.
7434 (struct inferior) <set_tty, tty>: New methods.
7435 (struct inferior) <terminal>: Rename to ...
7436 (struct inferior) <m_terminal>: ... this and make private.
7437 * main.c (captured_main_1): Adjust.
7438 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7439 (mi_cmd_inferior_tty_show): Adjust.
7440 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7441 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7442
7443 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7444
7445 * configure.ac: Add --enable-libctf: handle --disable-static
7446 properly.
7447 * acinclude.m4: sinclude ../config/enable.m4.
7448 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7449 (LIBCTF): Substitute in.
7450 (CTF_DEPS): New, likewise.
7451 (CLIBS): libctf needs symbols from libbfd: move earlier.
7452 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7453 flags.
7454 * ctfread.c: Surround in ENABLE_LIBCTF.
7455 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7456 * configure: Regenerate.
7457 * config.in: Likewise.
7458
7459 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7462
7463 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * inferior.h (struct inferior) <terminal>: Change type to
7466 gdb::unique_xmalloc_ptr<char>.
7467 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7468 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7469 field, adjust to unique pointer.
7470 (get_inferior_io_terminal): Adjust to unique pointer.
7471
7472 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7473
7474 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7475 registers, not just the known core set of registers.
7476
7477 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7478
7479 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7480 fflags, frm, and fcsr registers.
7481 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7482 restore groups.
7483 (riscv_tdesc_unknown_reg): New function.
7484 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7485 tdesc_use_registers.
7486 * riscv-tdep.h (struct gdbarch_tdep): Add
7487 unknown_csrs_first_regnum, unknown_csrs_count,
7488 duplicate_fflags_regnum, duplicate_frm_regnum, and
7489 duplicate_fcsr_regnum fields.
7490
7491 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7494 callback, use the callback (when not null) to help number unknown
7495 registers.
7496 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7497 (tdesc_use_registers): Add extra parameter to declaration.
7498
7499 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7500
7501 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7502 in the file.
7503 (class riscv_pending_register_alias): Likewise.
7504 (riscv_register_feature::register_info): Change 'required_p' field
7505 to 'required', and change its type. Add 'check' member function.
7506 (riscv_register_feature::register_info::check): Define new member
7507 function.
7508 (riscv_xreg_feature): Change initialisation of 'required' field.
7509 (riscv_freg_feature): Likewise.
7510 (riscv_virtual_feature): Likewise.
7511 (riscv_csr_feature): Likewise.
7512 (riscv_check_tdesc_feature): Take extra parameter, the csr
7513 tdesc_feature, rewrite the function to use the new
7514 riscv_register_feature::register_info::check function.
7515 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7516
7517 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7518
7519 * features/Makefile: Remove all references to the deleted files
7520 below.
7521 * features/riscv/32bit-csr.c: Deleted.
7522 * features/riscv/32bit-csr.xml: Deleted.
7523 * features/riscv/64bit-csr.c: Deleted.
7524 * features/riscv/64bit-csr.xml: Deleted.
7525 * features/riscv/rebuild-csr-xml.sh: Deleted.
7526
7527 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7528
7529 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7530 whitespace error for declaration of names member variable.
7531 (struct riscv_register_feature): Add new prefer_first_name member
7532 variable, and fix whitespace error in declaration of registers.
7533 (riscv_xreg_feature): Initialize prefer_first_name field.
7534 (riscv_freg_feature): Likewise.
7535 (riscv_virtual_feature): Likewise.
7536 (riscv_csr_feature): Likewise.
7537 (riscv_register_name): Expand on comments. Remove register name
7538 modifications for CSR and virtual registers.
7539
7540 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7541
7542 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7543 errors.
7544
7545 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7546
7547 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7548 riscv-opc.h.
7549 (class riscv_pending_register_alias): New class.
7550 (riscv_check_tdesc_feature): Take vector of pending aliases and
7551 populate it as appropriate.
7552 (riscv_setup_register_aliases): Delete.
7553 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7554 to riscv_check_tdesc_feature in all cases. Use the vector to
7555 create the register aliases.
7556
7557 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7558
7559 * sol2-tdep.c (sol2_static_transform_name): Remove.
7560 (sol2_init_abi): Don't register it.
7561 * gdbarch.sh (static_transform_name): Remove.
7562 * gdbarch.c, gdbarch.h: Regenerate.
7563
7564 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7565 gdbarch_static_transform_name.
7566 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7567 * stabsread.c (define_symbol) <'X'>: Remove.
7568 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7569 handling.
7570 <'V'>: Likewise.
7571 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7572 <'S'>: Remove call to gdbarch_static_transform_name.
7573
7574 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575
7576 * procfs.c (procfs_pre_trace): New function.
7577 (procfs_target::create_inferior): Pass it to fork_inferior.
7578
7579 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7580
7581 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7582 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7583 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7584 sol2-tdep.o, sparc-sol2-tdep.o.
7585 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7586 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7587 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7588 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7589
7590 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7591
7592 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7593 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7594 Call sol2_init_abi.
7595 Remove calls to set_gdbarch_skip_solib_resolver,
7596 set_gdbarch_core_pid_to_str.
7597 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7598 (i386_sol2_static_transform_name): Remove.
7599 (i386_sol2_init_abi): Call sol2_init_abi.
7600 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7601 set_gdbarch_static_transform_name,
7602 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7603 Use sol2_sigtramp_p.
7604 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7605 (sol2_sigtramp_p): New function.
7606 (sol2_static_transform_name): New function.
7607 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7608 (sol2_init_abi): New function.
7609 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7610 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7611 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7612 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7613 (sparc_sol2_static_transform_name): Remove.
7614 (sparc32_sol2_init_abi): Call sol2_init_abi.
7615 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7616 set_gdbarch_static_transform_name,
7617 set_gdbarch_skip_solib_resolver,
7618 set_gdbarch_core_pid_to_str.
7619 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7620 (sparc_sol2_static_transform_name): Remove
7621 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7622 call sol2_sigtramp_p.
7623 (sparc64_sol2_init_abi): Call sol2_init_abi.
7624 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7625 set_gdbarch_static_transform_name,
7626 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7627
7628 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7629
7630 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7631 * exec.c (validate_exec_file): If from_tty, set both
7632 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7633 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7634 and from_tty, unconditionally ask a confirmation.
7635
7636 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * target-descriptions.c (tdesc_architecture_name): Protect against
7639 NULL pointer dereference.
7640 (maint_print_xml_tdesc_cmd): New function.
7641 (_initialize_target_descriptions): Register new 'maint print
7642 xml-tdesc' command and give it the filename completer.
7643 * NEWS: Mention new 'maint print xml-tdesc' command.
7644
7645 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7646
7647 * target-descriptions.c (class tdesc_compatible_info): New class.
7648 (struct target_desc): Change type of compatible vector.
7649 (tdesc_compatible_p): Update for change in type of
7650 target_desc::compatible.
7651 (tdesc_compatible_info_list): New function.
7652 (tdesc_compatible_info_arch_name): New function.
7653 (tdesc_add_compatible): Update for change in type of
7654 target_desc::compatible.
7655 (print_c_tdesc::visit_pre): Likewise.
7656
7657 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7658
7659 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7660 whitespace to underscore.
7661 (maint_print_c_tdesc_cmd): Use fake filename for target
7662 descriptions that came from the target.
7663 (_initialize_target_descriptions): Add filename command completion
7664 for 'maint print c-tdesc'.
7665
7666 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7669 lines.
7670
7671 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7674 lines.
7675 (dwarf2_find_location_expression): Likewise.
7676 (call_site_parameter_matches): Likewise.
7677 (dwarf2_compile_expr_to_ax): Likewise.
7678 (disassemble_dwarf_expression): Likewise.
7679 (loclist_describe_location): Likewise.
7680
7681 2020-06-23 Pedro Alves <palves@redhat.com>
7682
7683 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7684 progspace-and-thread.h. Include scoped-mock-context.h instead.
7685 (register_to_value_test): Use scoped_mock_context.
7686 * regcache.c: Include "scoped-mock-context.h".
7687 (cooked_read_test): Don't error out if a target is already pushed.
7688 Use scoped_mock_context. Adjust.
7689 * scoped-mock-context.h: New file.
7690
7691 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7692
7693 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7694 initializer.
7695 (ada_language::is_string_type_p): New member function.
7696 * c-lang.c (c_language_data): Delete la_is_string_type_p
7697 initializer.
7698 (cplus_language_data): Likewise.
7699 (asm_language_data): Likewise.
7700 (minimal_language_data): Likewise.
7701 * d-lang.c (d_language_data): Likewise.
7702 * f-lang.c (f_is_string_type_p): Delete function, implementation
7703 moved to f_language::is_string_type_p.
7704 (f_language_data): Delete la_is_string_type_p initializer.
7705 (f_language::is_string_type_p): New member function,
7706 implementation from f_is_string_type_p.
7707 * go-lang.c (go_is_string_type_p): Delete function, implementation
7708 moved to go_language::is_string_type_p.
7709 (go_language_data): Delete la_is_string_type_p initializer.
7710 (go_language::is_string_type_p): New member function,
7711 implementation from go_is_string_type_p.
7712 * language.c (language_defn::is_string_type_p): Define new member
7713 function.
7714 (default_is_string_type_p): Make static, add comment copied from
7715 header file.
7716 (unknown_language_data): Delete la_is_string_type_p initializer.
7717 (unknown_language::is_string_type_p): New member function.
7718 (auto_language_data): Delete la_is_string_type_p initializer.
7719 (auto_language::is_string_type_p): New member function.
7720 * language.h (language_data): Delete la_is_string_type_p field.
7721 (language_defn::is_string_type_p): Declare new function.
7722 (default_is_string_type_p): Delete desclaration, move comment to
7723 definition.
7724 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7725 moved to m2_language::is_string_type_p.
7726 (m2_language_data): Delete la_is_string_type_p initializer.
7727 (m2_language::is_string_type_p): New member function,
7728 implementation from m2_is_string_type_p.
7729 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7730 initializer.
7731 * opencl-lang.c (opencl_language_data): Likewise.
7732 * p-lang.c (pascal_is_string_type_p): Delete function,
7733 implementation moved to pascal_language::is_string_type_p.
7734 (pascal_language_data): Delete la_is_string_type_p initializer.
7735 (pascal_language::is_string_type_p): New member function,
7736 implementation from pascal_is_string_type_p.
7737 * rust-lang.c (rust_is_string_type_p): Delete function,
7738 implementation moved to rust_language::is_string_type_p.
7739 (rust_language_data): Delete la_is_string_type_p initializer.
7740 (rust_language::is_string_type_p): New member function,
7741 implementation from rust_is_string_type_p.
7742 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7743 is_string_type_p.
7744
7745 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7746
7747 * ada-lang.c (ada_language_data): Delete la_print_typedef
7748 initializer.
7749 (ada_language::print_typedef): New member function.
7750 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7751 (cplus_language_data): Likewise.
7752 (asm_language_data): Likewise.
7753 (minimal_language_data): Likewise.
7754 * d-lang.c (d_language_data): Likewise.
7755 * f-lang.c (f_language_data): Likewise.
7756 (f_language::print_typedef): New member function.
7757 * go-lang.c (go_language_data): Delete la_print_typedef
7758 initializer.
7759 * language.c (language_defn::print_typedef): Define member
7760 function.
7761 (unknown_language_data): Delete la_print_typedef initializer.
7762 (unknown_language::print_typedef): New member function.
7763 (auto_language_data): Delete la_print_typedef initializer.
7764 (auto_language::print_typedef): New member function.
7765 * language.h (language_data): Delete la_print_typedef field.
7766 (language_defn::print_typedef): Declare new member function.
7767 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7768 (default_print_typedef): Delete declaration.
7769 * m2-lang.c (m2_language_data): Delete la_print_typedef
7770 initializer.
7771 (m2_language::print_typedef): New member function.
7772 * objc-lang.c (objc_language_data): Delete la_print_typedef
7773 initializer.
7774 * opencl-lang.c (opencl_language_data): Likewise.
7775 * p-lang.c (pascal_language_data): Likewise.
7776 (pascal_language::print_typedef): New member function.
7777 * rust-lang.c (rust_print_typedef): Delete function,
7778 implementation moved to rust_language::print_typedef.
7779 (rust_language): Delete la_print_typedef initializer.
7780 (rust_language::print_typedef): New member function,
7781 implementation from rust_print_typedef.
7782 * typeprint.c (default_print_typedef): Delete.
7783
7784 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7787 (ada_language::printstr): New member function.
7788 * c-lang.c (c_language_data): Delete la_printstr initializer.
7789 (cplus_language_data): Likewise.
7790 (asm_language_data): Likewise.
7791 (minimal_language_data): Likewise.
7792 * d-lang.c (d_language_data): Likewise.
7793 * f-lang.c (f_printstr): Rename to f_language::printstr.
7794 (f_language_data): Delete la_printstr initializer.
7795 (f_language::printstr): New member function, implementation from
7796 f_printstr.
7797 * go-lang.c (go_language_data): Delete la_printstr initializer.
7798 * language.c (language_defn::printstr): Define new member
7799 function.
7800 (unk_lang_printstr): Delete.
7801 (unknown_language_data): Delete la_printstr initializer.
7802 (unknown_language::printstr): New member function.
7803 (auto_language_data): Delete la_printstr initializer.
7804 (auto_language::printstr): New member function.
7805 * language.h (language_data): Delete la_printstr field.
7806 (language_defn::printstr): Declare new member function.
7807 (LA_PRINT_STRING): Update call to printstr.
7808 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7809 (m2_language_data): Delete la_printstr initializer.
7810 (m2_language::printstr): New member function, implementation from
7811 m2_printstr.
7812 * objc-lang.c (objc_language_data): Delete la_printstr
7813 initializer.
7814 * opencl-lang.c (opencl_language_data): Likewise.
7815 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7816 (pascal_language_data): Delete la_printstr initializer.
7817 (pascal_language::printstr): New member function, implementation
7818 from pascal_printstr.
7819 * p-lang.h (pascal_printstr): Delete declaration.
7820 * rust-lang.c (rust_printstr): Update header comment.
7821 (rust_language_data): Delete la_printstr initializer.
7822 (rust_language::printstr): New member function.
7823
7824 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7827 (ada_language::printchar): New member function.
7828 * c-lang.c (c_language_data): Delete la_printchar initializer.
7829 (cplus_language_data): Likewise.
7830 (asm_language_data): Likewise.
7831 (minimal_language_data): Likewise.
7832 * d-lang.c (d_language_data): Likewise.
7833 * f-lang.c (f_printchar): Rename to f_language::printchar.
7834 (f_language_data): Delete la_printchar initializer.
7835 (f_language::printchar): New member function, implementation from
7836 f_printchar.
7837 * go-lang.c (go_language_data): Delete la_printchar initializer.
7838 * language.c (unk_lang_printchar): Delete.
7839 (language_defn::printchar): Define new member function.
7840 (unknown_language_data): Delete la_printchar initializer.
7841 (unknown_language::printchar): New member function.
7842 (auto_language_data): Delete la_printchar initializer.
7843 (auto_language::printchar): New member function.
7844 * language.h (language_data): Delete la_printchar field.
7845 (language_defn::printchar): Declare new member function.
7846 (LA_PRINT_CHAR): Update call to printchar.
7847 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7848 (m2_language::printchar): New member function.
7849 * objc-lang.c (objc_language_data): Delete la_printchar
7850 initializer.
7851 * opencl-lang.c (opencl_language_data): Likewise.
7852 * p-lang.c (pascal_language_data): Delete la_printchar
7853 initializer.
7854 (pascal_language::printchar): New member function.
7855 * rust-lang.c (rust_printchar): Rename to
7856 rust_language::printchar.
7857 (rust_language_data): Delete la_printchar initializer.
7858 (rust_language::printchar): New member function, implementation
7859 from rust_printchar.
7860
7861 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7864 (ada_language_data): Delete la_emitchar initializer.
7865 (ada_language::emitchar): New member function, implementation from
7866 emit_char.
7867 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7868 (cplus_language_data): Likewise.
7869 (asm_language_data): Likewise.
7870 (minimal_language_data): Likewise.
7871 * d-lang.c (d_language_data): Likewise.
7872 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7873 (f_language_data): Delete la_emitchar initializer.
7874 (f_language::emitchar): New member function, implementation from
7875 f_emit_char.
7876 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7877 * language.c (unk_lang_emit_char): Delete.
7878 (language_defn::emitchar): New member function definition.
7879 (unknown_language_data): Delete la_emitchar initializer.
7880 (unknown_language::emitchar): New member function.
7881 (auto_language_data): Delete la_emitchar initializer.
7882 (auto_language::emitchar): New member function.
7883 * language.h (language_data): Delete la_emitchar field.
7884 (language_defn::emitchar): New member field declaration.
7885 (LA_EMIT_CHAR): Update call to emitchar.
7886 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7887 (m2_language_data): Delete la_emitchar initializer.
7888 (m2_language::emitchar): New member function, implementation from
7889 m2_emit_char.
7890 * objc-lang.c (objc_language_data): Delete la_emitchar
7891 initializer.
7892 * opencl-lang.c (opencl_language_data): Likewise.
7893 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7894 (pascal_language_data): Delete la_emitchar initializer.
7895 (pascal_language::emitchar): New member function, implementation
7896 from pascal_emit_char.
7897 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7898 (rust_language_data): Delete la_emitchar initializer.
7899 (rust_language::emitchar): New member function, implementation
7900 from rust_emitchar.
7901
7902 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7905 (ada_language_data): Delete la_post_parser initializer.
7906 (ada_language::post_parser): New member function.
7907 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7908 (cplus_language_data): Likewise.
7909 (asm_language_data): Likewise.
7910 (minimal_language_data): Likewise.
7911 * d-lang.c (d_language_data): Likewise.
7912 * f-lang.c (f_language_data): Likewise.
7913 * go-lang.c (go_language_data): Likewise.
7914 * language.c (unknown_language_data): Likewise.
7915 (auto_language_data): Likewise.
7916 * language.h (language_data): Delete la_post_parser field.
7917 (language_defn::post_parser): New member function.
7918 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7919 * objc-lang.c (objc_language_data): Likewise.
7920 * opencl-lang.c (opencl_language_data): Likewise.
7921 * p-lang.c (pascal_language_data): Likewise.
7922 * parse.c (parse_exp_in_context): Update call to post_parser.
7923 (null_post_parser): Delete definition.
7924 * parser-defs.h (null_post_parser): Delete declaration.
7925 * rust-lang.c (rust_language_data): Delete la_post_parser
7926 initializer.
7927
7928 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7929
7930 * ada-lang.c (parse): Rename to ada_language::parser.
7931 (ada_language_data): Delete la_parser initializer.
7932 (ada_language::parser): New member function, implementation from
7933 parse.
7934 * c-lang.c (c_language_data): Delete la_parser initializer.
7935 (cplus_language_data): Likewise.
7936 (asm_language_data): Likewise.
7937 (minimal_language_data): Likewise.
7938 * d-lang.c (d_language_data): Likewise.
7939 (d_language::parser): New member function.
7940 * f-lang.c (f_language_data): Delete la_parser initializer.
7941 (f_language::parser): New member function.
7942 * go-lang.c (go_language_data): Delete la_parser initializer.
7943 (go_language::parser): New member function.
7944 * language.c (unk_lang_parser): Delete.
7945 (language_defn::parser): Define new member function.
7946 (unknown_language_data): Delete la_parser initializer.
7947 (unknown_language::parser): New member function.
7948 (auto_language_data): Delete la_parser initializer.
7949 (auto_language::parser): New member function.
7950 * language.h (language_data): Delete la_parser field.
7951 (language_defn::parser): Declare new member function.
7952 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7953 (m2_language::parser): New member function.
7954 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7955 * opencl-lang.c (opencl_language_data): Likewise.
7956 * p-lang.c (pascal_language_data): Likewise.
7957 (pascal_language::parser): New member function.
7958 * parse.c (parse_exp_in_context): Update call to parser.
7959 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7960 (rust_language::parser): New member function.
7961
7962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7963
7964 * top.c (print_gdb_configuration): Print --with-python-libdir
7965 configuration value.
7966
7967 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7968
7969 * NEWS: Mention change to the alias command.
7970
7971 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7972
7973 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7974 (alias_command_completer)
7975 (make_alias_options_def_group): New functions.
7976 (alias_opts, alias_option_defs): New struct and array.
7977 (alias_usage_error): Update usage.
7978 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7979 Use option framework.
7980 (_initialize_cli_cmds): Update alias command help.
7981 Update aliases command help.
7982 (show_user):
7983 Add NULL for new default_args lookup_cmd argument.
7984 (valid_command_p): Rename to validate_aliased_command.
7985 Add NULL for new default_args lookup_cmd argument. Verify that the
7986 aliased_command has no default args.
7987 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7988 (lookup_cmd_1, lookup_cmd): New argument default_args.
7989 (add_alias_cmd):
7990 Add NULL for new default_args lookup_cmd argument.
7991 (print_help_for_command): Show default args under the layout
7992 alias some_alias = some_aliased_cmd some_alias_default_arg.
7993 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7994 xfree default_args in destructor.
7995 * cli/cli-script.c (process_next_line, do_define_command):
7996 Add NULL for new default_args lookup_cmd argument.
7997 * command.h: Declare new default_args argument in lookup_cmd
7998 and lookup_cmd_1.
7999 * completer.c (complete_line_internal_1):
8000 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8001 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8002 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8003 Likewise.
8004 * infcmd.c (_initialize_infcmd): Likewise.
8005 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8006 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8007 * python/py-param.c (add_setshow_generic): Likewise.
8008 * remote.c (_initialize_remote): Likewise.
8009 * top.c (execute_command): Prepend default_args if command has some.
8010 (set_verbose):
8011 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8012 * tracepoint.c (validate_actionline, encode_actions_1):
8013 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8014
8015 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8016
8017 * jit.c (jit_read_descriptor): Use bool as the return type.
8018 (jit_breakpoint_re_set_internal): Use bool as the return type.
8019 Invert the return value logic; return true if the jit breakpoint
8020 has been successfully initialized.
8021 (jit_inferior_init): Update the call to
8022 jit_breakpoint_re_set_internal.
8023
8024 2020-06-22 Pedro Alves <palves@redhat.com>
8025
8026 PR gdb/25939
8027 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8028 Use the current inferior instead. Don't return
8029 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8030 wait again.
8031 * sol-thread.c (sol_thread_target::wait): Don't reference
8032 inferior_ptid.
8033 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8034 (sol_update_thread_list_callback): Use the current inferior's pid
8035 instead of inferior_ptid.
8036
8037 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8038
8039 * procfs.c: Cleanup many comments.
8040
8041 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8042 (AFTER_WATCHFLAG): Replace by value.
8043
8044 (MAIN_PROC_NAME_FORMAT): Inline ...
8045 (create_procinfo): ... here.
8046
8047 (procfs_debug_inferior): Remove SYS_exec handling.
8048 (syscall_is_exec): Likewise.
8049 (procfs_set_exec_trap): Likewise.
8050
8051 (syscall_is_lwp_exit): Inline in callers.
8052 (syscall_is_exit): Likewise.
8053 (syscall_is_exec): Likewise.
8054 (syscall_is_lwp_create): Likewise.
8055
8056 (invalidate_cache): Remove #if 0 code.
8057
8058 (make_signal_thread_runnable): Remove.
8059 (procfs_target::resume): Remove #if 0 code.
8060
8061 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8062
8063 PR gdb/25939
8064 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8065 call ...
8066 (procfs_target::create_inferior): ... here.
8067
8068 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8069
8070 * exec.c (validate_exec_file): Ensure the build-id is up to
8071 date by calling reopen_exec_file (that checks file timestamp
8072 to decide to re-read the file).
8073
8074 2020-06-18 Pedro Alves <palves@redhat.com>
8075
8076 PR gdb/25412
8077 * gdbthread.h (delete_thread, delete_thread_silent)
8078 (find_thread_ptid): Update comments.
8079 * thread.c (current_thread_): New global.
8080 (is_current_thread): Move higher, and reimplement.
8081 (inferior_thread): Reimplement.
8082 (set_thread_exited): Use bool. Add assertions.
8083 (add_thread_silent): Simplify thread-reuse handling by always
8084 calling delete_thread.
8085 (delete_thread): Remove intro comment.
8086 (find_thread_ptid): Skip exited threads.
8087 (switch_to_thread_no_regs): Write to current_thread_.
8088 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8089 INFERIOR_PTID. Clear current_thread_.
8090
8091 2020-06-18 Pedro Alves <palves@redhat.com>
8092
8093 * aix-thread.c (pd_update): Use switch_to_thread.
8094
8095 2020-06-18 Pedro Alves <palves@redhat.com>
8096
8097 * ravenscar-thread.c (ravenscar_thread_target): Update.
8098 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8099 (ravenscar_thread_target::add_active_thread): ... this. Don't
8100 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8101 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8102
8103 2020-06-18 Pedro Alves <palves@redhat.com>
8104
8105 * nat/windows-nat.c (current_windows_thread): Remove.
8106 * nat/windows-nat.h (current_windows_thread): Remove.
8107 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8108 Adjust.
8109 (display_selectors): Adjust to fetch the current
8110 windows_thread_info based on inferior_ptid.
8111 (fake_create_process): No longer write to current_windows_thread.
8112 (windows_nat_target::get_windows_debug_event):
8113 Don't set inferior_ptid or current_windows_thread.
8114 (windows_nat_target::wait): Adjust to not rely on
8115 current_windows_thread.
8116 (do_initial_windows_stuff): Now a method of windows_nat_target.
8117 Switch to the last_ptid thread.
8118 (windows_nat_target::attach): Adjust.
8119 (windows_nat_target::detach): Use switch_to_no_thread instead of
8120 writing to inferior_ptid directly.
8121 (windows_nat_target::create_inferior): Adjust.
8122
8123 2020-06-18 Pedro Alves <palves@redhat.com>
8124
8125 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8126
8127 2020-06-18 Pedro Alves <palves@redhat.com>
8128
8129 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8130 after creating it, instead of writing to inferior_ptid. Don't
8131 write to inferior_ptid.
8132
8133 2020-06-18 Pedro Alves <palves@redhat.com>
8134
8135 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8136
8137 2020-06-18 Pedro Alves <palves@redhat.com>
8138
8139 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8140 it, instead of writing to inferior_ptid.
8141
8142 2020-06-18 Pedro Alves <palves@redhat.com>
8143
8144 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8145 to inferior_ptid.
8146
8147 2020-06-18 Pedro Alves <palves@redhat.com>
8148
8149 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8150 instead of writing to inferior_ptid directly.
8151
8152 2020-06-18 Pedro Alves <palves@redhat.com>
8153
8154 * corelow.c (core_target::close): Use switch_to_no_thread instead
8155 of writing to inferior_ptid directly.
8156 (add_to_thread_list, core_target_open): Use switch_to_thread
8157 instead of writing to inferior_ptid directly.
8158
8159 2020-06-18 Pedro Alves <palves@redhat.com>
8160
8161 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8162 inferior_ptid.
8163 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8164 inferior_ptid.
8165 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8166 inferior_ptid directly.
8167 (darwin_nat_target::init_thread_list): Switch to thread, instead
8168 of writing to inferior_ptid.
8169 (darwin_nat_target::attach): Don't write to inferior_ptid.
8170 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8171
8172 2020-06-18 Pedro Alves <palves@redhat.com>
8173
8174 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8175 thread.
8176 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8177 Instead use switch_to_thread.
8178 (gnu_nat_target::detach): Use switch_to_no_thread
8179 instead of writing to inferior_ptid directly. Used passed-in
8180 inferior instead of looking up the inferior by pid.
8181
8182 2020-06-18 Pedro Alves <palves@redhat.com>
8183
8184 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8185 inferior_ptid.
8186
8187 2020-06-18 Pedro Alves <palves@redhat.com>
8188
8189 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8190 inferior_ptid.
8191 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8192 thread.
8193 (nto_procfs_target::detach): Avoid referencing
8194 inferior_ptid. Use switch_to_no_thread instead of writing to
8195 inferior_ptid directly.
8196 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8197 instead of writing to inferior_ptid directly.
8198 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8199 to thread.
8200
8201 2020-06-18 Pedro Alves <palves@redhat.com>
8202
8203 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8204 after creating it, instead of writing to inferior_ptid.
8205 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8206 to inferior_ptid directly.
8207 (gdbsim_target::wait): Don't write to inferior_ptid.
8208
8209 2020-06-18 Pedro Alves <palves@redhat.com>
8210
8211 * remote.c (remote_target::remote_notice_new_inferior): Use
8212 switch_to_thread instead of writing to inferior_ptid directly.
8213 (remote_target::add_current_inferior_and_thread): Use
8214 switch_to_no_thread instead of writing to inferior_ptid directly.
8215 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8216 and switch_to_thread instead of using set_current_inferior or
8217 writing to inferior_ptid directly.
8218
8219 2020-06-18 Pedro Alves <palves@redhat.com>
8220
8221 * tracectf.c (ctf_target_open): Switch to added thread instead of
8222 writing to inferior_ptid directly.
8223 (ctf_target::close): Use switch_to_no_thread instead of writing to
8224 inferior_ptid directly.
8225
8226 2020-06-18 Pedro Alves <palves@redhat.com>
8227
8228 * tracefile-tfile.c (tfile_target_open): Don't write to
8229 inferior_ptid directly, instead switch to added thread.
8230 (tfile_target::close): Use switch_to_no_thread instead of writing
8231 to inferior_ptid directly.
8232
8233 2020-06-18 Pedro Alves <palves@redhat.com>
8234
8235 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8236 (procfs_target::detach): Use switch_to_no_thread
8237 instead of writing to inferior_ptid directly.
8238 (do_attach): Change return type to void. Switch to the added
8239 thread.
8240 (procfs_target::create_inferior): Switch to the added thread.
8241 (procfs_do_thread_registers): Don't write to inferior_ptid.
8242
8243 2020-06-18 Pedro Alves <palves@redhat.com>
8244
8245 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8246 of writing to inferior_ptid.
8247 (scoped_restore_exited_inferior): Delete.
8248 (handle_vfork_child_exec_or_exit): Simplify using
8249 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8250 instead of writing to inferior_ptid.
8251 (THREAD_STOPPED_BY): Delete.
8252 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8253 (thread_stopped_by_hw_breakpoint): Delete.
8254 (save_waitstatus): Use
8255 scoped_restore_current_thread+switch_to_thread, and call
8256 target_stopped_by_watchpoint instead of
8257 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8258 instead of thread_stopped_by_sw_breakpoint, and
8259 target_stopped_by_hw_breakpoint instead of
8260 thread_stopped_by_hw_breakpoint.
8261 (handle_inferior_event)
8262 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8263 inferior_ptid directly, nor
8264 set_current_inferior/set_current_program_space. Use
8265 switch_to_thread / switch_to_inferior_no_thread instead.
8266
8267 2020-06-18 Pedro Alves <palves@redhat.com>
8268
8269 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8270 instead of writing to inferior_ptid.
8271
8272 2020-06-18 Pedro Alves <palves@redhat.com>
8273
8274 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8275 added thread.
8276 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8277 to the added thread.
8278 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8279 instead of writing to inferior_ptid.
8280
8281 2020-06-18 Pedro Alves <palves@redhat.com>
8282
8283 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8284 (register_to_value_test): Mock a program_space too. Heap-allocate
8285 the address space. Don't write to inferior_ptid. Use
8286 switch_to_thread instead.
8287
8288 2020-06-18 Pedro Alves <palves@redhat.com>
8289
8290 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8291 Delete.
8292 (find_signalled_thread()): New, factored out from
8293 linux_make_corefile_notes and adjusted to handle exited threads.
8294 (linux_make_corefile_notes): Adjust to use the new
8295 find_signalled_thread.
8296
8297 2020-06-18 Pedro Alves <palves@redhat.com>
8298
8299 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8300 of saving/restoring inferior_ptid.
8301
8302 2020-06-17 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8305 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8306 declare.
8307 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8308
8309 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8310
8311 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8312 of partial symtabs.
8313
8314 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8315
8316 * regformats/reg-arm.dat: Remove.
8317 * regformats/reg-bfin.dat: Remove.
8318 * regformats/reg-cris.dat: Remove.
8319 * regformats/reg-crisv32.dat: Remove.
8320 * regformats/reg-m32r.dat: Remove.
8321 * regformats/reg-tilegx.dat: Remove.
8322 * regformats/reg-tilegx32.dat: Remove.
8323
8324 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8325
8326 * features/Makefile (WHICH): Remove arm files.
8327 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8328 * regformats/arm/arm-with-neon.dat: Remove.
8329 * regformats/arm/arm-with-vfpv2.dat: Remove.
8330 * regformats/arm/arm-with-vfpv3.dat: Remove.
8331
8332 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8333
8334 * features/Makefile (XMLTOC): Remove rx.xml.
8335
8336 2020-06-17 Pedro Alves <palves@redhat.com>
8337
8338 * gdbthread.h (thread_control_state) <trap_expected> Update
8339 comments.
8340
8341 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8342
8343 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8344 ada_language::lookup_symbol_nonlocal.
8345 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8346 (ada_language::lookup_symbol_nonlocal): New member function,
8347 implementation from ada_lookup_symbol_nonlocal.
8348 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8349 initializer.
8350 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8351 initializer.
8352 (cplus_language::lookup_symbol_nonlocal): New member function.
8353 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8354 (minimal_language_data) Likewise.
8355 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8356 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8357 initializer.
8358 (d_language::lookup_symbol_nonlocal): New member function.
8359 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8360 initializer.
8361 (f_language::lookup_symbol_nonlocal): New member function.
8362 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8363 initializer.
8364 * language.c (unknown_language_data): Likewise.
8365 (auto_language_data): Likewise.
8366 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8367 field.
8368 (language_defn::lookup_symbol_nonlocal): New member function.
8369 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8370 initializer.
8371 * objc-lang.c (objc_language_data): Likewise.
8372 * opencl-lang.c (opencl_language_data): Likewise.
8373 * p-lang.c (pascal_language_data): Likewise.
8374 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8375 rust_language::lookup_symbol_nonlocal.
8376 (rust_language_data): Delete la_lookup_symbol_nonlocal
8377 initializer.
8378 (rust_language::lookup_symbol_nonlocal): New member function,
8379 implementation from rust_lookup_symbol_nonlocal.
8380 * symtab.c (lookup_symbol_aux): Update call to
8381 lookup_symbol_nonlocal.
8382 (basic_lookup_symbol_nonlocal): Rename to...
8383 (language_defn::lookup_symbol_nonlocal): ...this, and update
8384 header comment. Remove language_defn parameter, and replace with
8385 uses of `this'.
8386 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8387
8388 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8389
8390 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8391 initializer.
8392 (ada_language::value_print_inner): New member function.
8393 * c-lang.c (c_language_data): Delete la_value_print_inner
8394 initializer.
8395 (cplus_language_data): Likewise.
8396 (asm_language_data): Likewise.
8397 (minimal_language_data): Likewise.
8398 * d-lang.c (d_language_data): Likewise.
8399 (d_language::value_print_inner): New member function.
8400 * f-lang.c (f_language_data): Delete la_value_print_inner
8401 initializer.
8402 (f_language::value_print_inner): New member function.
8403 * f-lang.h (f_value_print_innner): Rename to...
8404 (f_value_print_inner): ...this (note spelling of 'inner').
8405 * f-valprint.c (f_value_print_innner): Rename to...
8406 (f_value_print_inner): ...this (note spelling of 'inner').
8407 * go-lang.c (go_language_data): Delete la_value_print_inner
8408 initializer.
8409 (go_language::value_print_inner): New member function.
8410 * language.c (language_defn::value_print_inner): Define new member
8411 function.
8412 (unk_lang_value_print_inner): Delete.
8413 (unknown_language_data): Delete la_value_print_inner initializer.
8414 (unknown_language::value_print_inner): New member function.
8415 (auto_language_data): Delete la_value_print_inner initializer.
8416 (auto_language::value_print_inner): New member function.
8417 * language.h (language_data): Delete la_value_print_inner field.
8418 (language_defn::value_print_inner): Delcare new member function.
8419 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8420 initializer.
8421 (m2_language::value_print_inner): New member function.
8422 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8423 initializer.
8424 * opencl-lang.c (opencl_language_data): Likewise.
8425 * p-lang.c (pascal_language_data): Likewise.
8426 (pascal_language::value_print_inner): New member function.
8427 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8428 initializer.
8429 (rust_language::value_print_inner): New member function.
8430 * valprint.c (do_val_print): Update call to value_print_inner.
8431
8432 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8433
8434 * ada-lang.c (ada_language_data): Delete la_value_print
8435 initializer.
8436 (ada_language::value_print): New member function.
8437 * c-lang.c (c_language_data): Delete la_value_print initializer.
8438 (cplus_language_data): Likewise.
8439 (asm_language_data): Likewise.
8440 (minimal_language_data): Likewise.
8441 * d-lang.c (d_language_data): Likewise.
8442 * f-lang.c (f_language_data): Likewise.
8443 * go-lang.c (go_language_data): Likewise.
8444 * language.c (unk_lang_value_print): Delete.
8445 (language_defn::value_print): Define new member function.
8446 (unknown_language_data): Delete la_value_print initializer.
8447 (unknown_language::value_print): New member function.
8448 (auto_language_data): Delete la_value_print initializer.
8449 (auto_language::value_print): New member function.
8450 * language.h (language_data): Delete la_value_print field.
8451 (language_defn::value_print): Declare new member function.
8452 (LA_VALUE_PRINT): Update call to value_print.
8453 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8454 * objc-lang.c (objc_language_data): Likewise.
8455 * opencl-lang.c (opencl_language_data): Likewise.
8456 * p-lang.c (pascal_language_data): Likewise.
8457 (pascal_language::value_print): New member function.
8458 * rust-lang.c (rust_language_data): Delete la_value_print
8459 initializer.
8460
8461 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8462
8463 * ada-lang.c (ada_watch_location_expression): Rename to
8464 ada_language::watch_location_expression.
8465 (ada_language_data): Delete la_watch_location_expression
8466 initializer.
8467 (ada_language::watch_location_expression): New member function,
8468 implementation from ada_watch_location_expression.
8469 * breakpoint.c (watch_command_1): Update call to
8470 watch_location_expression.
8471 * c-lang.c (c_watch_location_expression): Rename to
8472 language_defn::watch_location_expression.
8473 (c_language_data): Delete la_watch_location_expression
8474 initializer.
8475 (cplus_language_data): Likewise.
8476 (asm_language_data): Likewise.
8477 (minimal_language_data): Likewise.
8478 * c-lang.h (c_watch_location_expression): Delete declaration.
8479 * d-lang.c (d_language_data): Delete la_watch_location_expression
8480 initializer.
8481 * f-lang.c (f_language_data): Likewise.
8482 * go-lang.c (go_language_data): Likewise.
8483 * language.c (language_defn::watch_location_expression): Member
8484 function implementation from c_watch_location_expression.
8485 (unknown_language_data): Delete la_watch_location_expression
8486 initializer.
8487 (auto_language_data): Likewise.
8488 * language.h (language_data): Delete la_watch_location_expression
8489 field.
8490 (language_defn::watch_location_expression): Declare new member
8491 function.
8492 * m2-lang.c (m2_language_data): Delete
8493 la_watch_location_expression initializer.
8494 * objc-lang.c (objc_language_data): Likewise.
8495 * opencl-lang.c (opencl_language_data): Likewise.
8496 * p-lang.c (pascal_language_data): Likewise.
8497 * rust-lang.c (rust_watch_location_expression): Rename to
8498 rust_language::watch_location_expression.
8499 (rust_language_data): Delete la_watch_location_expression
8500 initializer.
8501 (rust_language::watch_location_expression): New member function,
8502 implementation from rust_watch_location_expression.
8503
8504 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8505
8506 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8507 ada_language::collect_symbol_completion_matches.
8508 (ada_language_data): Delete la_collect_symbol_completion_matches
8509 initializer.
8510 (ada_language::collect_symbol_completion_matches): New member
8511 function, implementation from
8512 ada_collect_symbol_completion_matches.
8513 * c-lang.c (c_language_data): Delete
8514 la_collect_symbol_completion_matches initializer.
8515 (cplus_language_data): Likewise.
8516 (asm_language_data): Likewise.
8517 (minimal_language_data): Likewise.
8518 * d-lang.c (d_language_data): Likewise.
8519 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8520 f_language::collect_symbol_completion_matches.
8521 (f_language_data): Delete la_collect_symbol_completion_matches
8522 initializer.
8523 (f_language::collect_symbol_completion_matches) New member
8524 function, implementation from f_collect_symbol_completion_matches.
8525 * go-lang.c (go_language_data): Delete
8526 la_collect_symbol_completion_matches initializer.
8527 * language.c (unknown_language_data): Likewise.
8528 (auto_language_data): Likewise.
8529 * language.h (language_data): Delete
8530 la_collect_symbol_completion_matches field.
8531 (language_defn::collect_symbol_completion_matches): New member
8532 function.
8533 * m2-lang.c (m2_language_data): Delete
8534 la_collect_symbol_completion_matches initializer.
8535 * objc-lang.c (objc_language_data): Likewise.
8536 * opencl-lang.c (opencl_language_data): Likewise.
8537 * p-lang.c (pascal_language_data): Likewise.
8538 * rust-lang.c (rust_language_data): Likewise.
8539 * symtab.c (default_collect_symbol_completion_matches): Delete.
8540 (collect_symbol_completion_matches): Update call to
8541 collect_symbol_completion_matches.
8542 (collect_symbol_completion_matches_type): Likewise.
8543 * symtab.h (default_collect_symbol_completion_matches): Delete
8544 declaration.
8545
8546 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8549 (ada_language_data): Delete la_word_break_characters initializer.
8550 (ada_language::word_break_characters): New member function.
8551 * c-lang.c (c_language_data): Delete la_word_break_characters
8552 initializer.
8553 (cplus_language_data): Likewise.
8554 (asm_language_data): Likewise.
8555 (minimal_language_data): Likewise.
8556 * completer.c: Update global comment.
8557 (advance_to_expression_complete_word_point): Update call to
8558 word_break_characters.
8559 (complete_files_symbols): Likewise.
8560 (complete_line_internal_1): Likewise.
8561 (default_completer_handle_brkchars): Likewise.
8562 (skip_quoted_chars): Likewise.
8563 * d-lang.c (d_language_data): Delete la_word_break_characters
8564 initializer.
8565 * f-lang.c (f_word_break_characters): Delete.
8566 (f_language_data): Delete la_word_break_characters initializer.
8567 (f_language::word_break_characters): New member function.
8568 * go-lang.c (go_language_data): Delete la_word_break_characters
8569 initializer.
8570 * language.c (unknown_language_data): Likewise.
8571 (auto_language_data): Likewise.
8572 * language.h (default_word_break_characters): Move declaration to
8573 earlier in the file.
8574 (language_data): Delete la_word_break_characters field.
8575 (language_defn::word_break_characters): New member function.
8576 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8577 initializer.
8578 * objc-lang.c (objc_language_data): Likewise.
8579 * opencl-lang.c (opencl_language_data): Likewise.
8580 * p-lang.c (pascal_language_data): Likewise.
8581 * rust-lang.c (rust_language_data): Likewise.
8582
8583 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8584
8585 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8586 (ada_language_data): Delete la_get_symbol_name_matcher
8587 initializer.
8588 (language_defn::get_symbol_name_matcher_inner): New member
8589 function.
8590 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8591 initializer.
8592 (cplus_language_data): Likewise.
8593 (cplus_language::get_symbol_name_matcher_inner): New member
8594 function.
8595 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8596 (minimal_language_data): Likewise.
8597 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8598 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8599 initializer.
8600 * dictionary.c (iter_match_first_hashed): Update call to
8601 get_symbol_name_matcher.
8602 (iter_match_next_hashed): Likewise.
8603 (iter_match_next_linear): Likewise.
8604 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8605 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8606 initializer.
8607 (f_language::get_symbol_name_matcher_inner): New member function.
8608 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8609 initializer.
8610 * language.c (default_symbol_name_matcher): Update header comment,
8611 make static.
8612 (language_defn::get_symbol_name_matcher): New definition.
8613 (language_defn::get_symbol_name_matcher_inner): Likewise.
8614 (get_symbol_name_matcher): Delete.
8615 (unknown_language_data): Delete la_get_symbol_name_matcher
8616 initializer.
8617 (auto_language_data): Likewise.
8618 * language.h (language_data): Delete la_get_symbol_name_matcher
8619 field.
8620 (language_defn::get_symbol_name_matcher): New member function.
8621 (language_defn::get_symbol_name_matcher_inner): Likewise.
8622 (default_symbol_name_matcher): Delete declaration.
8623 * linespec.c (find_methods): Update call to
8624 get_symbol_name_matcher.
8625 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8626 initializer.
8627 * minsyms.c (lookup_minimal_symbol): Update call to
8628 get_symbol_name_matcher.
8629 (iterate_over_minimal_symbols): Likewise.
8630 * objc-lang.c (objc_language_data): Delete
8631 la_get_symbol_name_matcher initializer.
8632 * opencl-lang.c (opencl_language_data): Likewise.
8633 * p-lang.c (pascal_language_data): Likewise.
8634 * psymtab.c (psymbol_name_matches): Update call to
8635 get_symbol_name_matcher.
8636 * rust-lang.c (rust_language_data): Delete
8637 la_get_symbol_name_matcher initializer.
8638 * symtab.c (symbol_matches_search_name): Update call to
8639 get_symbol_name_matcher.
8640 (compare_symbol_name): Likewise.
8641
8642 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * ada-lang.c (ada_language_data): Delete la_compute_program
8645 initializer.
8646 * c-lang.c (c_language_data): Likewise.
8647 (c_language::compute_program): New member function.
8648 (cplus_language_data): Delete la_compute_program initializer.
8649 (cplus_language::compute_program): New member function.
8650 (asm_language_data): Delete la_compute_program initializer.
8651 (minimal_language_data): Likewise.
8652 * c-lang.h (c_compute_program): Update comment.
8653 (cplus_compute_program): Likewise.
8654 * compile/compile-c-support.c (c_compute_program): Likewise.
8655 (cplus_compute_program): Likewise.
8656 * compile/compile.c (compile_to_object): Update call to
8657 la_compute_program.
8658 * d-lang.c (d_language_data): Delete la_compute_program
8659 initializer.
8660 * f-lang.c (f_language_data): Likewise.
8661 * go-lang.c (go_language_data): Likewise.
8662 * language.c (unknown_language_data): Likewise.
8663 (auto_language_data): Likewise.
8664 * language.h (language_data): Delete la_compute_program field.
8665 (language_defn::compute_program): New member function.
8666 * m2-lang.c (m2_language_data): Delete la_compute_program
8667 initializer.
8668 * objc-lang.c (objc_language_data): Likewise.
8669 * opencl-lang.c (opencl_language_data): Likewise.
8670 * p-lang.c (pascal_language_data): Likewise.
8671 * rust-lang.c (rust_language_data): Likewise.
8672
8673 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 * ada-lang.c (ada_language_data) Delete
8676 la_class_name_from_physname initializer.
8677 * c-lang.c (c_language_data): Likewise.
8678 (cplus_language_data): Likewise.
8679 (cplus_language::class_name_from_physname): New member function.
8680 (asm_language_data): Delete la_class_name_from_physname
8681 initializer.
8682 (minimal_language_data): Likewise.
8683 * d-lang.c (d_language_data): Likewise.
8684 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8685 method on language_defn class.
8686 (guess_full_die_structure_name): Likewise.
8687 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8688 initializer.
8689 * go-lang.c (go_language_data): Likewise.
8690 * language.c (language_class_name_from_physname): Delete.
8691 (unk_lang_class_name): Delete.
8692 (unknown_language_data): Delete la_class_name_from_physname
8693 initializer.
8694 (auto_language_data): Likewise.
8695 * language.h (language_data): Delete la_class_name_from_physname
8696 field.
8697 (language_defn::class_name_from_physname): New function.
8698 (language_class_name_from_physname): Delete declaration.
8699 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8700 initializer.
8701 * objc-lang.c (objc_language_data): Likewise.
8702 * opencl-lang.c (opencl_language_data): Likewise.
8703 * p-lang.c (pascal_language_data): Likewise.
8704 * rust-lang.c (rust_language_data): Likewise.
8705
8706 2020-06-16 Tom Tromey <tom@tromey.com>
8707
8708 * tui/tui-data.h (STATUS_NAME): New macro.
8709 * tui/tui-layout.c (tui_remove_some_windows)
8710 (initialize_known_windows, tui_register_window)
8711 (tui_layout_split::remove_windows, initialize_layouts)
8712 (tui_new_layout_command): Don't use hard-coded window names.
8713
8714 2020-06-16 Tom Tromey <tom@tromey.com>
8715
8716 PR tui/25348:
8717 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8718 tui_initialize_readline. Only run once. Call rl_initialize.
8719 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8720 tui_initialize_readline.
8721 * tui/tui-io.c (tui_setup_io): Call
8722 tui_ensure_readline_initialized.
8723 * tui/tui-interp.c (tui_interp::init): Update.
8724
8725 2020-06-16 Tom Tromey <tom@tromey.com>
8726
8727 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8728 Also preserve the status window.
8729
8730 2020-06-16 Tom Tromey <tom@tromey.com>
8731
8732 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8733 where m_window==nullptr.
8734
8735 2020-06-15 Tom Tromey <tromey@adacore.com>
8736
8737 * windows-nat.c (windows_nat::handle_output_debug_string):
8738 Update.
8739 (windows_nat::handle_ms_vc_exception): Update.
8740 * target.h (target_read_string): Change API.
8741 * target.c (target_read_string): Change API.
8742 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8743 Update.
8744 * solib-frv.c (frv_current_sos): Update.
8745 * solib-dsbt.c (dsbt_current_sos): Update.
8746 * solib-darwin.c (darwin_current_sos): Update.
8747 * linux-thread-db.c (inferior_has_bug): Update.
8748 * expprint.c (print_subexp_standard): Update.
8749 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8750 (ada_exception_message_1): Update.
8751
8752 2020-06-15 Tom Tromey <tromey@adacore.com>
8753
8754 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8755
8756 2020-06-15 Tom Tromey <tromey@adacore.com>
8757
8758 * valprint.c (read_string): Update comment.
8759 * target.c (MIN): Remove.
8760 (target_read_string): Rewrite.
8761
8762 2020-06-15 Tom Tromey <tromey@adacore.com>
8763
8764 * corefile.c (read_memory_string): Remove.
8765 * ada-valprint.c (ada_value_print_ptr): Update.
8766 * ada-lang.h (ada_tag_name): Change return type.
8767 * ada-lang.c (type_from_tag): Update.
8768 (ada_tag_name_from_tsd): Change return type. Use
8769 target_read_string.
8770 (ada_tag_name): Likewise.
8771 * gdbcore.h (read_memory_string): Don't declare.
8772
8773 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8774
8775 * symtab.c (rbreak_command): Ignore Windows drive colon.
8776
8777 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * NEWS: Mention removed GDBserver host support.
8780
8781 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8782
8783 * features/riscv/rebuild-csr-xml.sh: Updated.
8784
8785 2020-06-11 Tom Tromey <tom@tromey.com>
8786
8787 PR gdb/18318:
8788 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8789
8790 2020-06-09 Jonny Grant <jg@jguk.org>
8791 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8792
8793 * main.c (captured_main_1): Don't print new line after help.
8794 (print_gdb_help): add mailing list and IRC channel information
8795 to --help. Add new lines between items in the footer. Remove
8796 quotes around bug url.
8797
8798 2020-06-11 Keith Seitz <keiths@redhat.com>
8799
8800 PR gdb/21356
8801 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8802 Resolve typedefs for type length calculations.
8803
8804 2020-06-10 Tom de Vries <tdevries@suse.de>
8805
8806 PR ada/24713
8807 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8808 (write_psymbols): Enable .gdb_index for ada.
8809 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8810 ada.
8811
8812 2020-06-10 Tom de Vries <tdevries@suse.de>
8813
8814 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8815 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8816 namei" instead of "const char *name" argument.
8817 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8818 dw2_symtab_iter_init.
8819
8820 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8823 to use type::field and field::type instead.
8824
8825 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8828 to use field::type instead.
8829
8830 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * gdbtypes.h (struct field) <type, set_type>: New methods.
8833 Rename `type` field to...
8834 <m_type>: ... this. Change references throughout to use type or
8835 set_type methods.
8836 (FIELD_TYPE): Use field::type. Change call sites that modify
8837 the field's type to use field::set_type instead.
8838
8839 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8840
8841 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8842 to use type::index_type instead.
8843
8844 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8845
8846 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8847 methods.
8848 (TYPE_INDEX_TYPE): Use type::index_type.
8849 * gdbtypes.c (create_array_type_with_stride): Likewise.
8850
8851 2020-06-07 Tom Tromey <tom@tromey.com>
8852
8853 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8854 parameter.
8855 (generic_value_print): Update.
8856
8857 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 Revert commit 982a38f60b0.
8860 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8861
8862 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8865 avoid use after free.
8866
8867 2020-06-05 Tom de Vries <tdevries@suse.de>
8868
8869 * NEWS: Fix typos.
8870
8871 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8874 the per_bfd object.
8875 (dwarf2_read_debug_names): Likewise.
8876 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8877 object when re-using a per_bfd object with an index.
8878
8879 2020-06-03 Tom de Vries <tdevries@suse.de>
8880
8881 PR symtab/26046
8882 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8883 children for C++.
8884 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8885 DW_TAG_subprogram.
8886
8887 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * ada-lang.c (ada_language_data): Delete skip_trampoline
8890 initializer.
8891 * c-lang.c (c_language_data): Likewise.
8892 (cplus_language_data): Likewise.
8893 (cplus_language::skip_trampoline): New member function.
8894 (asm_language_data): Delete skip_trampoline initializer.
8895 (minimal_language_data): Likewise.
8896 * d-lang.c (d_language_data): Likewise.
8897 * f-lang.c (f_language_data): Likewise.
8898 * go-lang.c (go_language_data): Likewise.
8899 * language.c (unk_lang_trampoline): Delete function.
8900 (skip_language_trampoline): Update.
8901 (unknown_language_data): Delete skip_trampoline initializer.
8902 (auto_language_data): Likewise.
8903 * language.h (language_data): Delete skip_trampoline field.
8904 (language_defn::skip_trampoline): New function.
8905 * m2-lang.c (m2_language_data): Delete skip_trampoline
8906 initializer.
8907 * objc-lang.c (objc_skip_trampoline): Delete function, move
8908 implementation to objc_language::skip_trampoline.
8909 (objc_language_data): Delete skip_trampoline initializer.
8910 (objc_language::skip_trampoline): New member function with
8911 implementation from objc_skip_trampoline.
8912 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8913 initializer.
8914 * p-lang.c (pascal_language_data): Likewise.
8915 * rust-lang.c (rust_language_data): Likewise.
8916
8917 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8920 (ada_language::demangle): New member function.
8921 * c-lang.c (c_language_data): Delete la_demangle initializer.
8922 (cplus_language_data): Delete la_demangle initializer.
8923 (cplus_language::demangle): New member function.
8924 (asm_language_data): Delete la_demangle initializer.
8925 (minimal_language_data): Delete la_demangle initializer.
8926 * d-lang.c (d_language_data): Delete la_demangle initializer.
8927 (d_language::demangle): New member function.
8928 * f-lang.c (f_language_data): Delete la_demangle initializer.
8929 (f_language::demangle): New member function.
8930 * go-lang.c (go_language_data): Delete la_demangle initializer.
8931 (go_language::demangle): New member function.
8932 * language.c (language_demangle): Update.
8933 (unk_lang_demangle): Delete.
8934 (unknown_language_data): Delete la_demangle initializer.
8935 (unknown_language::demangle): New member function.
8936 (auto_language_data): Delete la_demangle initializer.
8937 (auto_language::demangle): New member function.
8938 * language.h (language_data): Delete la_demangle field.
8939 (language_defn::demangle): New function.
8940 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8941 * objc-lang.c (objc_language_data): Delete la_demangle
8942 initializer.
8943 (objc_language::demangle): New member function.
8944 * opencl-lang.c (opencl_language_data): Delete la_demangle
8945 initializer.
8946 * p-lang.c (pascal_language_data): Likewise.
8947 * rust-lang.c (rust_language_data): Likewise.
8948 (rust_language::demangle): New member function.
8949
8950 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8951
8952 * ada-lang.c (ada_language_data): Delete la_print_type
8953 initializer.
8954 (ada_language::print_type): New member function.
8955 * c-lang.c (c_language_data): Delete la_print_type initializer.
8956 (c_language::print_type): New member function.
8957 (cplus_language_data): Delete la_print_type initializer.
8958 (cplus_language::print_type): New member function.
8959 (asm_language_data): Delete la_print_type initializer.
8960 (asm_language::print_type): New member function.
8961 (minimal_language_data): Delete la_print_type initializer.
8962 (minimal_language::print_type): New member function.
8963 * d-lang.c (d_language_data): Delete la_print_type initializer.
8964 (d_language::print_type): New member function.
8965 * f-lang.c (f_language_data): Delete la_print_type initializer.
8966 (f_language::print_type): New member function.
8967 * go-lang.c (go_language_data): Delete la_print_type initializer.
8968 (go_language::print_type): New member function.
8969 * language.c (unk_lang_print_type): Delete.
8970 (unknown_language_data): Delete la_print_type initializer.
8971 (unknown_language::print_type): New member function.
8972 (auto_language_data): Delete la_print_type initializer.
8973 (auto_language::print_type): New member function.
8974 * language.h (language_data): Delete la_print_type field.
8975 (language_defn::print_type): New function.
8976 (LA_PRINT_TYPE): Update.
8977 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8978 (m2_language::print_type): New member function.
8979 * objc-lang.c (objc_language_data): Delete la_print_type
8980 initializer.
8981 (objc_language::print_type): New member function.
8982 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8983 to opencl_language::print_type.
8984 (opencl_language_data): Delete la_print_type initializer.
8985 (opencl_language::print_type): New member function, implementation
8986 from opencl_print_type.
8987 * p-lang.c (pascal_language_data): Delete la_print_type
8988 initializer.
8989 (pascal_language::print_type): New member function.
8990 * rust-lang.c (rust_print_type): Delete, implementation moved to
8991 rust_language::print_type.
8992 (rust_language_data): Delete la_print_type initializer.
8993 (rust_language::print_type): New member function, implementation
8994 from rust_print_type.
8995
8996 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8999 implementation moves to...
9000 (ada_language::sniff_from_mangled_name): ...here. Update return
9001 type.
9002 (ada_language_data): Delete la_sniff_from_mangled_name
9003 initializer.
9004 * c-lang.c (c_language_data): Likewise.
9005 (cplus_language_data): Likewise.
9006 (cplus_language::sniff_from_mangled_name): New member function,
9007 implementation taken from gdb_sniff_from_mangled_name.
9008 (asm_language_data): Delete la_sniff_from_mangled_name
9009 initializer.
9010 (minimal_language_data): Likewise.
9011 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9012 implementation moves to cplus_language::sniff_from_mangled_name.
9013 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9014 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9015 moves to...
9016 (d_language::sniff_from_mangled_name): ...here.
9017 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9018 * f-lang.c (f_language_data): Likewise.
9019 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9020 moves to...
9021 (go_language::sniff_from_mangled_name): ...here.
9022 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9023 * language.c (language_sniff_from_mangled_name): Delete.
9024 (unknown_language_data): Delete la_sniff_from_mangled_name
9025 initializer.
9026 (auto_language_data): Likewise.
9027 * language.h (language_data): Delete la_sniff_from_mangled_name
9028 field.
9029 (language_defn::sniff_from_mangled_name): New function.
9030 (language_sniff_from_mangled_name): Delete declaration.
9031 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9032 field.
9033 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9034 implementation moves to...
9035 (objc_language::sniff_from_mangled_name): ...here.
9036 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9037 * opencl-lang.c (opencl_language_data): Likewise.
9038 * p-lang.c (pascal_language_data): Likewise.
9039 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9040 implementation moves to...
9041 (rust_language::sniff_from_mangled_name): ...here.
9042 (rust_language_data): Delete la_sniff_from_mangled_name
9043 initializer.
9044 * symtab.c (symbol_find_demangled_name): Call
9045 sniff_from_mangled_name member function.
9046
9047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9048
9049 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9050 initializer.
9051 * c-lang.c (c_language_data): Likewise.
9052 (cplus_language_data): Likewise.
9053 (cplus_language::search_name_hash): New member function.
9054 (asm_language_data): Delete la_search_name_hash initializer.
9055 (minimal_language_data): Likewise.
9056 * d-lang.c (d_language_data): Likewise.
9057 * dictionary.c (default_search_name_hash): Rename to...
9058 (language_defn::search_name_hash): ...this.
9059 * f-lang.c (f_language_data): Likewise.
9060 (f_language::search_name_hash): New member function.
9061 * go-lang.c (go_language_data): Delete la_search_name_hash
9062 initializer.
9063 * language.c (unknown_language_data): Likewise.
9064 (auto_language_data): Likewise.
9065 * language.h (struct language_data): Delete la_search_name_hash
9066 field.
9067 (language_defn::search_name_hash): Declare new member function.
9068 (default_search_name_hash): Delete declaration.
9069 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9070 initializer.
9071 * objc-lang.c (objc_language_data): Likewise.
9072 * opencl-lang.c (opencl_language_data): Likewise.
9073 * p-lang.c (pascal_language_data): Likewise.
9074 * rust-lang.c (rust_language_data): Likewise.
9075 * symtab.c (search_name_hash): Update call.
9076
9077 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9080 initializer.
9081 * c-lang.c (class compile_instance): Declare.
9082 (c_language_data): Delete la_get_compile_instance initializer.
9083 (c_language::get_compile_instance): New member function.
9084 (cplus_language_data): Delete la_get_compile_instance initializer.
9085 (cplus_language::get_compile_instance): New member function.
9086 (asm_language_data): Delete la_get_compile_instance initializer.
9087 (minimal_language_data): Likewise.
9088 * c-lang.h (c_get_compile_context): Update comment.
9089 (cplus_get_compile_context): Update comment.
9090 * compile/compile.c (compile_to_object): Update calls, don't rely
9091 on function pointer being NULL.
9092 * d-lang.c (d_language_data): Delete la_get_compile_instance
9093 initializer.
9094 * f-lang.c (f_language_data): Likewise.
9095 * go-lang.c (go_language_data): Likewise.
9096 * language.c (unknown_language_data): Likewise.
9097 (auto_language_data): Likewise.
9098 * language.h (language_data): Delete la_get_compile_instance field.
9099 (language_defn::get_compile_instance): New member function.
9100 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9101 initializer.
9102 * objc-lang.c (objc_language_data): Likewise.
9103 * opencl-lang.c (opencl_language_data): Likewise.
9104 * p-lang.c (pascal_language_data): Likewise.
9105 * rust-lang.c (rust_language_data): Likewise.
9106
9107 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9108
9109 * ada-lang.c (ada_add_all_symbols): Update comment.
9110 (ada_iterate_over_symbols): Delete, move implementation to...
9111 (ada_language::iterate_over_symbols): ...here, a new member
9112 function, rewrite to use range based for loop.
9113 (ada_language_data): Delete la_iterate_over_symbols initializer.
9114 * c-lang.c (c_language_data): Likewise.
9115 (cplus_language_data): Likewise.
9116 (asm_language_data): Likewise.
9117 (minimal_language_data): Likewise.
9118 * d-lang.c (d_language_data): Likewise.
9119 * f-lang.c (f_language_data): Likewise.
9120 * go-lang.c (go_language_data): Likewise.
9121 * language.c (unknown_language_data): Likewise.
9122 (auto_language_data): Likewise.
9123 * language.h (language_data): Delete la_iterate_over_symbols field.
9124 (language_defn::iterate_over_symbols): New member function.
9125 (LA_ITERATE_OVER_SYMBOLS): Update.
9126 * linespec.c (iterate_over_all_matching_symtabs): Update.
9127 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9128 initializer.
9129 * objc-lang.c (objc_language_data): Likewise.
9130 * opencl-lang.c (opencl_language_data): Likewise.
9131 * p-lang.c (pascal_language_data): Likewise.
9132 * rust-lang.c (rust_language_data): Likewise.
9133
9134 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9135
9136 * ada-lang.c (ada_language_data): Delete
9137 la_lookup_transparent_type initializer.
9138 * c-lang.c (c_language_data): Likewise.
9139 (cplus_language_data): Likewise.
9140 (cplus_language::lookup_transparent_type): New member function.
9141 (asm_language_data): Delete la_lookup_transparent_type
9142 initializer.
9143 (minimal_language_data): Likewise.
9144 * d-lang.c (d_language_data): Likewise.
9145 * f-lang.c (f_language_data): Likewise.
9146 * go-lang.c (go_language_data): Likewise.
9147 * language.c (unknown_language_data): Likewise.
9148 (auto_language_data): Likewise.
9149 * language.h (struct language_data): Delete
9150 la_lookup_transparent_type field.
9151 (language_defn::lookup_transparent_type): New member function.
9152 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9153 initializer.
9154 * objc-lang.c (objc_language_data): Likewise.
9155 * opencl-lang.c (opencl_language_data): Likewise.
9156 * p-lang.c (pascal_language_data): Likewise.
9157 * rust-lang.c (rust_language_data): Likewise.
9158 * symtab.c (symbol_matches_domain): Update call.
9159
9160 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9161
9162 * ada-lang.c (ada_language_arch_info): Delete function, move
9163 implementation to...
9164 (ada_language::language_arch_info): ...here, a new member
9165 function.
9166 (ada_language_data): Delete la_language_arch_info.
9167 * c-lang.c (c_language_data): Likewise.
9168 (c_language::language_arch_info): New member function.
9169 (cplus_language_arch_info): Delete function, move
9170 implementation to...
9171 (cplus_language::language_arch_info): ...here, a new member
9172 function.
9173 (cplus_language_data): Delete la_language_arch_info.
9174 (asm_language_data): Likewise.
9175 (asm_language::language_arch_info): New member function.
9176 (minimal_language_data): Delete la_language_arch_info.
9177 (minimal_language::language_arch_info): New member function.
9178 * d-lang.c (d_language_arch_info): Delete function, move
9179 implementation to...
9180 (d_language::language_arch_info): ...here, a new member
9181 function.
9182 (d_language_data): Delete la_language_arch_info.
9183 * f-lang.c (f_language_arch_info): Delete function, move
9184 implementation to...
9185 (f_language::language_arch_info): ...here, a new member
9186 function.
9187 (f_language_data): Delete la_language_arch_info.
9188 * go-lang.c (go_language_arch_info): Delete function, move
9189 implementation to...
9190 (go_language::language_arch_info): ...here, a new member
9191 function.
9192 (go_language_data): Delete la_language_arch_info.
9193 * language.c (unknown_language_data): Likewise.
9194 (unknown_language::language_arch_info): New member function.
9195 (auto_language_data): Delete la_language_arch_info.
9196 (auto_language::language_arch_info): New member function.
9197 (language_gdbarch_post_init): Update call to
9198 la_language_arch_info.
9199 * language.h (language_data): Delete la_language_arch_info
9200 function pointer.
9201 (language_defn::language_arch_info): New function.
9202 * m2-lang.c (m2_language_arch_info): Delete function, move
9203 implementation to...
9204 (m2_language::language_arch_info): ...here, a new member
9205 function.
9206 (m2_language_data): Delete la_language_arch_info.
9207 * objc-lang.c (objc_language_arch_info): Delete function, move
9208 implementation to...
9209 (objc_language::language_arch_info): ...here, a new member
9210 function.
9211 (objc_language_data): Delete la_language_arch_info.
9212 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9213 implementation to...
9214 (opencl_language::language_arch_info): ...here, a new member
9215 function.
9216 (opencl_language_data): Delete la_language_arch_info.
9217 * p-lang.c (pascal_language_arch_info): Delete function, move
9218 implementation to...
9219 (pascal_language::language_arch_info): ...here, a new member
9220 function.
9221 (pascal_language_data): Delete la_language_arch_info.
9222 * rust-lang.c (rust_language_arch_info): Delete function, move
9223 implementation to...
9224 (rust_language::language_arch_info): ...here, a new member
9225 function.
9226 (rust_language_data): Delete la_language_arch_info.
9227
9228 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9229
9230 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9231 initializer.
9232 * c-lang.c (c_language_data): Likewise.
9233 (cplus_language_data): Likewise.
9234 (cplus_language::pass_by_reference_info): New method.
9235 (asm_language_data): Delete la_pass_by_reference initializer.
9236 (minimal_language_data): Likewise.
9237 * cp-abi.c (cp_pass_by_reference): Remove use of
9238 default_pass_by_reference.
9239 * d-lang.c (d_language_data): Likewise.
9240 * f-lang.c (f_language_data): Likewise.
9241 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9242 default_pass_by_reference.
9243 * go-lang.c (go_language_data): Likewise.
9244 * language.c (language_pass_by_reference): Update.
9245 (default_pass_by_reference): Delete.
9246 (unknown_language_data): Delete la_pass_by_reference
9247 initializer.
9248 (auto_language_data): Likewise.
9249 * language.h (struct language_data): Delete la_pass_by_reference
9250 field.
9251 (language_defn::pass_by_reference_info): New member function.
9252 (default_pass_by_reference): Delete declaration.
9253 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9254 initializer.
9255 * objc-lang.c (objc_language_data): Likewise.
9256 * opencl-lang.c (opencl_language_data): Likewise.
9257 * p-lang.c (pascal_language_data): Likewise.
9258 * rust-lang.c (rust_language_data): Likewise.
9259
9260 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9261
9262 * ada-lang.c (ada_read_var_value): Delete function, move
9263 implementation to...
9264 (ada_language::read_var_value): ...here.
9265 (ada_language_data): Delete la_read_var_value initializer.
9266 * c-lang.c (c_language_data): Likewise.
9267 (cplus_language_data): Likewise.
9268 (minimal_language_data): Likewise.
9269 * d-lang.c (d_language_data): Likewise.
9270 * f-lang.c (f_language_data): Likewise.
9271 * findvar.c (default_read_var_value): Rename to...
9272 (language_defn::read_var_value): ...this.
9273 * findvar.c (read_var_value): Update header comment, and change to
9274 call member function instead of function pointer.
9275 * go-lang.c (go_language_data): Likewise.
9276 * language.c (unknown_language_data): Delete la_read_var_value
9277 initializer.
9278 (auto_language_data): Likewise.
9279 * language.h (struct language_data): Delete la_read_var_value
9280 field.
9281 (language_defn::read_var_value): New member function.
9282 (default_read_var_value): Delete declaration.
9283 * m2-lang.c (m2_language_data): Delete la_read_var_value
9284 initializer.
9285 * objc-lang.c (objc_language_data): Likewise.
9286 * opencl-lang.c (opencl_language_data): Likewise.
9287 * p-lang.c (pascal_language_data): Likewise.
9288 * rust-lang.c (rust_language_data): Likewise.
9289 * value.h (default_read_var_value): Delete declaration.
9290
9291 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9292
9293 * ada-lang.c (ada_print_array_index): Delete function, move
9294 implementation to...
9295 (ada_language::print_array_index): ...here.
9296 (ada_language_data): Delete la_print_array_index initializer.
9297 * c-lang.c (c_language_data): Likewise.
9298 (cplus_language_data): Likewise.
9299 (minimal_language_data): Likewise.
9300 * d-lang.c (d_language_data): Likewise.
9301 * f-lang.c (f_language_data): Likewise.
9302 * go-lang.c (go_language_data): Likewise.
9303 * language.c (default_print_array_index): Delete function, move
9304 implementation to...
9305 (language_defn::print_array_index): ...here.
9306 (unknown_language_data): Delete la_print_array_index initializer.
9307 (auto_language_data): Likewise.
9308 * language.h (struct language_data): Delete la_print_array_index
9309 field.
9310 (language_defn::print_array_index): New member function.
9311 (LA_PRINT_ARRAY_INDEX): Update.
9312 (default_print_array_index): Delete declaration.
9313 * m2-lang.c (m2_language_data): Delete la_print_array_index
9314 initializer.
9315 * objc-lang.c (objc_language_data): Likewise.
9316 * opencl-lang.c (opencl_language_data): Likewise.
9317 * p-lang.c (pascal_language_data): Likewise.
9318 * rust-lang.c (rust_language_data): Likewise.
9319
9320 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9321
9322 * gdb/ada-lang.c (ada_language_defn): Convert to...
9323 (ada_language_data): ...this.
9324 (class ada_language): New class.
9325 (ada_language_defn): New static global.
9326 * gdb/c-lang.c (c_language_defn): Convert to...
9327 (c_language_data): ...this.
9328 (class c_language): New class.
9329 (c_language_defn): New static global.
9330 (cplus_language_defn): Convert to...
9331 (cplus_language_data): ...this.
9332 (class cplus_language): New class.
9333 (cplus_language_defn): New static global.
9334 (asm_language_defn): Convert to...
9335 (asm_language_data): ...this.
9336 (class asm_language): New class.
9337 (asm_language_defn): New static global.
9338 (minimal_language_defn): Convert to...
9339 (minimal_language_data): ...this.
9340 (class minimal_language): New class.
9341 (minimal_language_defn): New static global.
9342 * gdb/d-lang.c (d_language_defn): Convert to...
9343 (d_language_data): ...this.
9344 (class d_language): New class.
9345 (d_language_defn): New static global.
9346 * gdb/f-lang.c (f_language_defn): Convert to...
9347 (f_language_data): ...this.
9348 (class f_language): New class.
9349 (f_language_defn): New static global.
9350 * gdb/go-lang.c (go_language_defn): Convert to...
9351 (go_language_data): ...this.
9352 (class go_language): New class.
9353 (go_language_defn): New static global.
9354 * gdb/language.c (unknown_language_defn): Remove declaration.
9355 (current_language): Initialize to nullptr, real initialization is
9356 moved to _initialize_language.
9357 (languages): Delete global.
9358 (language_defn::languages): Define.
9359 (set_language_command): Use language_defn::languages.
9360 (set_language): Likewise.
9361 (range_error): Likewise.
9362 (language_enum): Likewise.
9363 (language_def): Likewise.
9364 (add_set_language_command): Use language_def::languages for the
9365 language list, and language_def to lookup language pointers.
9366 (skip_language_trampoline): Use language_defn::languages.
9367 (unknown_language_defn): Convert to...
9368 (unknown_language_data): ...this.
9369 (class unknown_language): New class.
9370 (unknown_language_defn): New static global.
9371 (auto_language_defn): Convert to...
9372 (auto_language_data): ...this.
9373 (class auto_language): New class.
9374 (auto_language_defn): New static global.
9375 (language_gdbarch_post_init): Use language_defn::languages.
9376 (_initialize_language): Initialize current_language.
9377 * gdb/language.h (struct language_defn): Rename to...
9378 (struct language_data): ...this.
9379 (struct language_defn): New.
9380 (auto_language_defn): Delete.
9381 (unknown_language_defn): Delete.
9382 (minimal_language_defn): Delete.
9383 (ada_language_defn): Delete.
9384 (asm_language_defn): Delete.
9385 (c_language_defn): Delete.
9386 (cplus_language_defn): Delete.
9387 (d_language_defn): Delete.
9388 (f_language_defn): Delete.
9389 (go_language_defn): Delete.
9390 (m2_language_defn): Delete.
9391 (objc_language_defn): Delete.
9392 (opencl_language_defn): Delete.
9393 (pascal_language_defn): Delete.
9394 (rust_language_defn): Delete.
9395 * gdb/m2-lang.c (m2_language_defn): Convert to...
9396 (m2_language_data): ...this.
9397 (class m2_language): New class.
9398 (m2_language_defn): New static global.
9399 * gdb/objc-lang.c (objc_language_defn): Convert to...
9400 (objc_language_data): ...this.
9401 (class objc_language): New class.
9402 (objc_language_defn): New static global.
9403 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9404 (opencl_language_data): ...this.
9405 (class opencl_language): New class.
9406 (opencl_language_defn): New static global.
9407 * gdb/p-lang.c (pascal_language_defn): Convert to...
9408 (pascal_language_data): ...this.
9409 (class pascal_language): New class.
9410 (pascal_language_defn): New static global.
9411 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9412 language pointer, update comment format.
9413 * gdb/rust-lang.c (rust_language_defn): Convert to...
9414 (rust_language_data): ...this.
9415 (class rust_language): New class.
9416 (rust_language_defn): New static global.
9417
9418 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9419
9420 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9421 member variable.
9422 <m_stmt_at_address>: New member variable.
9423 (lnp_state_machine::record_line): Don't record some lines, update
9424 tracking of is_stmt at the same address.
9425 (lnp_state_machine::lnp_state_machine): Initialise new member
9426 variables.
9427
9428 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9429
9430 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9431 "-include gnu-nat-mig.h".
9432 * gnu-nat-mig.h: New file.
9433 * gnu-nat.c: Include "gnu-nat-mig.h".
9434 (exc_server, msg_reply_server, notify_server,
9435 process_reply_server): Remove declarations.
9436
9437 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9438
9439 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9440 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9441 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9442 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9443 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9444 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9445 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9446 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9447 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9448 to gnu_nat_target class.
9449 * gnu-nat.c: Likewise.
9450 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9451 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9452 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9453 object.
9454 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9455 instead of `gnu_target'.
9456
9457 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9458
9459 * i386-gnu-tdep.c: Include "gdbcore.h"
9460 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9461 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9462 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9463 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9464 i386_gnu_sigcontext_addr): New functions
9465 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9466 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9467 tdep.
9468
9469 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9470
9471 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9472 before fork_inferior call. Avoid calling it if target_is_pushed returns
9473 true.
9474
9475 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9476
9477 * gnu-nat.h (gnu_target): New variable declaration.
9478 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9479 gnu_target.
9480 * gnu-nat.c (gnu_target): New variable.
9481 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9482 add_thread_silent, and add_thread calls.
9483 (gnu_nat_target::create_inferior): Pass gnu_target to
9484 add_thread_silent, thread_change_ptid call.
9485 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9486 call.
9487
9488 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9489
9490 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9491 (gnu_nat_target::find_memory_regions): Remove unused
9492 `old_address' variable.
9493
9494 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9495
9496 * gnu-nat.c: Include "gdbarch.h".
9497
9498 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9499
9500 * reply_mig_hack.awk (Error return): Cast function through
9501 void *, to bypass compiler function call check.
9502
9503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9504
9505 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9506 $(srcdir)/reply_mig_hack.awk.
9507
9508 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9509
9510 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9511
9512 2020-05-30 Jonny Grant <jg@jguk.org>
9513
9514 * configure.ac (ACX_BUGURL): change bug URL to https.
9515
9516 2020-05-30 Pedro Alves <palves@redhat.com>
9517
9518 * cp-support.c (replace_typedefs_template): New.
9519 (replace_typedefs_qualified_name): Handle
9520 DEMANGLE_COMPONENT_TEMPLATE.
9521
9522 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9525 dwarf2/index-cache.h, dwarf2/index-write.c,
9526 dwarf2/index-write.h, dwarf2/line-header.c,
9527 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9528 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9529 variables and fields from `dwarf2_per_objfile` to just
9530 `per_objfile` throughout.
9531
9532 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9533
9534 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9535 <push_dwarf_reg_entry_value>: Add comment.
9536
9537 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9538 Keith Seitz <keiths@redhat.com>
9539
9540 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9541 instead of PyEval_ReleaseLock.
9542 (class gdbpy_gil): Move to earlier in file.
9543 (finalize_python): Set gdb_python_initialized.
9544 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9545 when not initialized.
9546
9547 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9548
9549 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9550 <push_dwarf_reg_entry_value>: Remove assert. Override
9551 per_objfile with caller_per_objfile.
9552
9553 2020-05-28 Tom de Vries <tdevries@suse.de>
9554
9555 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9556 PR gold/15646 workaround to symbol kind "type".
9557
9558 2020-05-27 Tom Tromey <tromey@adacore.com>
9559
9560 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9561
9562 2020-05-27 Tom Tromey <tromey@adacore.com>
9563
9564 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9565 Use htab_find_with_hash.
9566 <add_abbrev>: Remove "abbrev_number" parameter.
9567 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9568 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9569 (hash_abbrev): Add comment.
9570 (abbrev_table::lookup_abbrev): Move to header file.
9571 (abbrev_table::read): Update.
9572
9573 2020-05-27 Tom Tromey <tromey@adacore.com>
9574
9575 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9576 method.
9577 <canonical_name>: New member.
9578 <raw_name>: Rename from "name".
9579 (partial_die_info): Initialize canonical_name.
9580 (scan_partial_symbols): Check raw_name.
9581 (partial_die_parent_scope, partial_die_full_name)
9582 (add_partial_symbol, add_partial_subprogram)
9583 (add_partial_enumeration, load_partial_dies): Use "name" method.
9584 (partial_die_info::name): New method.
9585 (partial_die_info::read, guess_partial_die_structure_name)
9586 (partial_die_info::fixup): Update.
9587
9588 2020-05-27 Tom Tromey <tromey@adacore.com>
9589
9590 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9591 <get_ref_die_offset>: Inline.
9592 <get_ref_die_offset_complaint>: New method.
9593 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9594 (attribute::get_ref_die_offset_complaint): Rename from
9595 get_ref_die_offset. Just issue complaint.
9596
9597 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9598
9599 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9600
9601 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9602
9603 * exec.c (exec_file_attach): Use errno value of first openp failure.
9604
9605 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9606
9607 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9608 Don't close thread handle.
9609
9610 2020-05-27 Tom Tromey <tom@tromey.com>
9611 Simon Marchi <simon.marchi@efficios.com>
9612
9613 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9614 shared_ptr.
9615 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9616 member.
9617 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9618 dwarf2_per_bfd_objfile_data_key>: New globals.
9619 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9620 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9621 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9622 shared.
9623 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9624 short-circuit when sharing.
9625 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9626 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9627
9628 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9631 to...
9632 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9633 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9634
9635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9638 build_name_components, find_name_components_bounds>:
9639 Add per_objfile parameter.
9640 (struct mapped_index) <symbol_name_at>: Likewise.
9641 (struct mapped_debug_names): Remove constructor.
9642 <dwarf2_per_objfile>: Remove field.
9643 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9644 (mapped_index_base::find_name_components_bounds,
9645 mapped_index_base::build_name_components,
9646 dw2_expand_symtabs_matching_symbol): Likewise.
9647 (class mock_mapped_index) <symbol_name_at>: Likewise.
9648 (check_match): Likewise.
9649 (check_find_bounds_finds): Likewise.
9650 (test_mapped_index_find_name_component_bounds): Update.
9651 (CHECK_MATCH): Update.
9652 (dw2_expand_symtabs_matching): Update.
9653 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9654 per_objfile parameter.
9655 <find_vec_in_debug_names>: Likewise.
9656 <m_per_objfile>: New field.
9657 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9658 parameter.
9659 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9660 (dw2_debug_names_iterator::next): Update.
9661 (dw2_debug_names_lookup_symbol): Update.
9662 (dw2_debug_names_expand_symtabs_for_function): Update.
9663 (dw2_debug_names_map_matching_symbols): Update.
9664 (dw2_debug_names_expand_symtabs_matching): Update.
9665 (dwarf2_read_debug_names): Update.
9666
9667 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9670 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9671 move to dwarf2_per_objfile.
9672 <read_in_chain>: Remove.
9673 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9674 remove_all_cus, age_comp_units>: New methods.
9675 <m_dwarf2_cus>: New member.
9676 (struct dwarf2_per_cu_data) <cu>: Remove.
9677 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9678 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9679 moved to methods of dwarf2_per_objfile.
9680 (dwarf2_clear_marks): Remove.
9681 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9682 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9683 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9684 (dwarf2_per_objfile::remove_all_cus): New.
9685 (class free_cached_comp_units) <~free_cached_comp_units>:
9686 Update.
9687 (load_cu): Update.
9688 (dw2_do_instantiate_symtab): Adjust.
9689 (fill_in_sig_entry_from_dwo_entry): Adjust.
9690 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9691 (cutu_reader::cutu_reader): Likewise.
9692 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9693 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9694 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9695 and dwarf2_per_objfile::age_comp_units.
9696 (load_partial_comp_unit): Update.
9697 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9698 (process_queue): Likewise.
9699 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9700 backlink.
9701 (dwarf2_read_addr_index): Likewise.
9702 (follow_die_offset): Likewise.
9703 (dwarf2_fetch_die_loc_sect_off): Likewise.
9704 (dwarf2_fetch_constant_bytes): Likewise.
9705 (dwarf2_fetch_die_type_sect_off): Likewise.
9706 (follow_die_sig_1): Likewise.
9707 (load_full_type_unit): Likewise.
9708 (read_signatured_type): Likewise.
9709 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9710 (dwarf2_cu::~dwarf2_cu): Remove.
9711 (dwarf2_per_objfile::get_cu): New.
9712 (dwarf2_per_objfile::set_cu): New.
9713 (age_cached_comp_units): Rename to...
9714 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9715 to std::unordered_map.
9716 (free_one_cached_comp_unit): Rename to...
9717 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9718 to std::unordered_map.
9719 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9720 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9721 a dwarf2_per_objfile in data.
9722 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9723 (dwarf2_clear_marks): Remove.
9724
9725 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9728 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9729 (init_tu_and_read_dwo_dies): Likewise.
9730 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9731 (cutu_reader::cutu_reader): Likewise.
9732 (load_partial_comp_unit): Likewise.
9733 (process_psymtab_comp_unit): Update.
9734 (build_type_psymtabs_1): Update.
9735 (process_skeletonless_type_unit): Update.
9736 (load_full_comp_unit): Update.
9737 (find_partial_die): Update.
9738 (dwarf2_read_addr_index): Update.
9739 (read_signatured_type): Update.
9740
9741 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9742
9743 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9744 m_header_read_in>: New fields.
9745 <get_header>: New method.
9746 * dwarf2/read.c (per_cu_header_read_in): Remove.
9747 (dwarf2_per_cu_data::get_header): New.
9748 (dwarf2_per_cu_data::addr_size): Update.
9749 (dwarf2_per_cu_data::offset_size): Update.
9750 (dwarf2_per_cu_data::ref_addr_size): Update.
9751
9752 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9753
9754 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9755 (dw2_do_instantiate_symtab): Update.
9756 (queue_and_load_all_dwo_tus): Change parameter from
9757 dwarf2_per_cu_data to dwarf2_cu.
9758 (dwarf2_fetch_die_loc_sect_off): Update.
9759 (dwarf2_fetch_constant_bytes): Update.
9760 (dwarf2_fetch_die_type_sect_off): Update.
9761
9762 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9763
9764 * dwarf2/read.c (process_full_comp_unit,
9765 process_full_type_unit): Remove per_cu, per_objfile paramters.
9766 Add dwarf2_cu parameter.
9767 (process_queue): Update.
9768
9769 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9770
9771 * dwarf2/read.c (create_cu_from_index_list): Replace
9772 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9773 (create_cus_from_index_list): Likewise.
9774 (create_cus_from_index): Likewise.
9775 (create_signatured_type_table_from_index): Likewise.
9776 (create_cus_from_debug_names_list): Likewise.
9777 (create_cus_from_debug_names): Likewise.
9778 (dwarf2_read_gdb_index): Update.
9779 (dwarf2_read_debug_names): Update.
9780
9781 2020-05-27 Tom Tromey <tom@tromey.com>
9782 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * dwarf2/read.h (struct dwarf2_per_objfile)
9785 <get_type_for_signatured_type, set_type_for_signatured_type>:
9786 New methods.
9787 <m_type_map>: New member.
9788 (struct signatured_type) <type>: Remove.
9789 * dwarf2/read.c
9790 (dwarf2_per_objfile::get_type_for_signatured_type,
9791 dwarf2_per_objfile::set_type_for_signatured_type): New.
9792 (get_signatured_type): Use new methods.
9793
9794 2020-05-27 Tom Tromey <tom@tromey.com>
9795 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9798 (struct dwarf2_per_objfile) <type_units>: New member.
9799 <get_type_unit_group_unshareable>: New method.
9800 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9801 num_symtabs, symtabs>: Remove; move to
9802 type_unit_group_unshareable.
9803 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9804 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9805 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9806
9807 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * dwarf2/read.h (struct dwarf2_per_cu_data):
9810 <dwarf2_per_objfile>: Remove.
9811 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9812 dwarf2_per_objfile.
9813 (create_signatured_type_table_from_index): Likewise.
9814 (create_signatured_type_table_from_debug_names): Likewise.
9815 (create_debug_type_hash_table): Likewise.
9816 (fill_in_sig_entry_from_dwo_entry): Likewise.
9817 (create_type_unit_group): Likewise.
9818 (read_comp_units_from_section): Likewise.
9819 (create_cus_hash_table): Likewise.
9820
9821 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9824 dwarf2_per_cu_data::dwarf2_per_objfile.
9825 (compute_compunit_symtab_includes): Likewise.
9826 (dwarf2_cu::start_symtab): Likewise.
9827
9828 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9829
9830 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9831 parameter.
9832 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9833 (read_namespace_alias): Update.
9834 (lookup_die_type): Update.
9835 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9836 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9837 Update.
9838 (disassemble_dwarf_expression): Update.
9839
9840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * dwarf2/read.h (struct dwarf2_queue_item): Add
9843 dwarf2_per_objfile parameter, assign new parameter.
9844 <per_objfile>: New field.
9845 * dwarf2/read.c (free_one_cached_comp_unit): Add
9846 dwarf2_per_objfile parameter.
9847 (queue_comp_unit): Likewise.
9848 (dw2_do_instantiate_symtab): Update.
9849 (process_psymtab_comp_unit): Update.
9850 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9851 (process_imported_unit_die): Update.
9852 (queue_and_load_dwo_tu): Update.
9853 (follow_die_offset): Update.
9854 (follow_die_sig_1): Update.
9855
9856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9857
9858 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9859 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9860 (read_call_site_scope): Assign per_objfile.
9861 (dwarf2_per_cu_data::objfile): Remove.
9862 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9863 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9864 dwarf2_per_objfile parameter.
9865 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9866 dwarf2_per_objfile parameter.
9867 (dwarf_expr_reg_to_entry_parameter): Add output
9868 dwarf2_per_objfile parameter.
9869 (locexpr_get_frame_base): Update.
9870 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9871 <push_dwarf_reg_entry_value>: Update.
9872 <call_site_to_target_addr>: Update.
9873 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9874 parameter.
9875 (value_of_dwarf_reg_entry): Update.
9876 (rw_pieced_value): Update.
9877 (indirect_synthetic_pointer): Update.
9878 (dwarf2_evaluate_property): Update.
9879 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9880 parameter.
9881 (locexpr_read_variable): Update.
9882 (locexpr_get_symbol_read_needs): Update.
9883 (loclist_read_variable): Update.
9884
9885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9886
9887 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9888 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9889 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9890 parameter.
9891 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9892 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9893 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9894 parameter.
9895 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9896 sect_variable_value): Add dwarf2_per_objfile parameter.
9897 (class dwarf_evaluate_loc_desc) <dwarf_call,
9898 dwarf_variable_value>: Update.
9899 (fetch_const_value_from_synthetic_pointer): Add
9900 dwarf2_per_objfile parameter.
9901 (fetch_const_value_from_synthetic_pointer): Update.
9902 (coerced_pieced_ref): Update.
9903 (class symbol_needs_eval_context) <dwarf_call,
9904 dwarf_variable_value>: Update.
9905 (dwarf2_compile_expr_to_ax): Update.
9906
9907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9910 parameter.
9911 (dwarf2_evaluate_loc_desc_full): Update.
9912
9913 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9916 parameter.
9917 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9918 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9919 dwarf2_per_objfile parameter.
9920 (decode_debug_loc_dwo_addresses): Likewise.
9921 (dwarf2_find_location_expression): Update.
9922 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9923 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9924 parameter.
9925 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9926 parameter.
9927 (locexpr_describe_location_1): Likewise.
9928 (locexpr_describe_location): Update.
9929
9930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9933 Remove.
9934 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9935 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9936 (dwarf2_compile_property_to_c): Update.
9937 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9938 use text offset from objfile.
9939 (locexpr_tracepoint_var_ref): Update.
9940 (locexpr_generate_c_location): Update.
9941 (loclist_describe_location): Update.
9942 (loclist_tracepoint_var_ref): Update.
9943 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9944 dwarf2_per_objfile parameter.
9945 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9946 use text offset from objfile.
9947 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9948
9949 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * dwarf2/expr.h (struct dwarf_expr_context)
9952 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9953 <offset>: Remove.
9954 <per_objfile>: New member.
9955 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9956 dwarf2_per_objfile parameter. Don't set offset, set
9957 per_objfile.
9958 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9959 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9960 a dwarf2_per_objfile object instead of an offset.
9961 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9962 constructor.
9963 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9964 to dwarf2_expr_executor constructor. Don't set offset.
9965 (dwarf2_fetch_cfa_info): Update.
9966 (struct dwarf2_frame_cache) <text_offset>: Remove.
9967 <per_objfile>: New field.
9968 (dwarf2_frame_cache): Update.
9969 (dwarf2_frame_prev_register): Update.
9970 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9971 <dwarf_evaluate_loc_desc>: Add constructor.
9972 (dwarf2_evaluate_loc_desc_full): Update.
9973 (dwarf2_locexpr_baton_eval): Update.
9974 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9975 Add constructor.
9976 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9977
9978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9981 addr_sized_int_type>: Move to dwarf2_cu.
9982 <int_type>: Move to dwarf2_per_objfile.
9983 (struct dwarf2_per_objfile) <int_type>: Move here.
9984 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9985 addr_sized_int_type>: Move here.
9986 (read_func_scope): Update.
9987 (read_array_type): Update.
9988 (read_tag_string_type): Update.
9989 (attr_to_dynamic_prop): Update.
9990 (dwarf2_per_cu_data::int_type): Rename to...
9991 (dwarf2_per_objfile::int_type): ... this.
9992 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9993 (dwarf2_cu::addr_sized_int_type): ... this.
9994 (read_subrange_type): Update.
9995 (dwarf2_per_cu_data::addr_type): Rename to...
9996 (dwarf2_cu::addr_type): ... this.
9997 (set_die_type): Update.
9998
9999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10000
10001 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10002 data through per_cu->cu.
10003
10004 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10005
10006 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10007 dwarf2_per_cu_data parameter fo dwarf2_cu.
10008 (lookup_dwo_type_unit): Likewise.
10009 (read_cutu_die_from_dwo): Likewise.
10010 (lookup_dwo_unit): Likewise.
10011 (open_and_init_dwo_file): Likewise.
10012 (lookup_dwo_cutu): Likewise.
10013 (lookup_dwo_comp_unit): Likewise.
10014 (lookup_dwo_type_unit): Likewise.
10015 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10016 (cutu_reader::cutu_reader): Update.
10017
10018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10019
10020 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10021 parameter.
10022 (process_full_type_unit): Likewise.
10023 (process_queue): Update.
10024
10025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * dwarf2/read.c (recursively_compute_inclusions): Add
10028 dwarf2_per_objfile parameter.
10029 (compute_compunit_symtab_includes): Likewise.
10030 (process_cu_includes): Update.
10031
10032 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10033
10034 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10035 parameter.
10036 (create_type_unit_group): Update.
10037 (process_psymtab_comp_unit_reader): Update.
10038 (build_type_psymtabs_reader): Update.
10039
10040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10041
10042 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10043 object through m_this_cu->cu.
10044
10045 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10046
10047 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10048 the info parameter.
10049 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10050
10051 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10052
10053 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10054 per_objfile parameter.
10055 (load_full_type_unit): Add per_objfile parameter.
10056 (read_signatured_type): Likewise.
10057 (load_full_comp_unit): Likewise.
10058 (load_cu): Likewise.
10059 (dw2_do_instantiate_symtab): Likewise.
10060 (dw2_get_file_names): Likewise.
10061 (dw2_map_symtabs_matching_filename): Update.
10062 (dw_expand_symtabs_matching_file_matcher): Update.
10063 (dw2_map_symbol_filenames): Update.
10064 (process_psymtab_comp_unit): Add per_objfile parameter.
10065 (build_type_psymtabs_1): Update.
10066 (process_skeletonless_type_unit): Update.
10067 (dwarf2_build_psymtabs_hard): Update.
10068 (load_partial_comp_unit): Add per_objfile parameter.
10069 (scan_partial_symbols): Update.
10070 (load_full_comp_unit): Add per_objfile parameter.
10071 (process_imported_unit_die): Update.
10072 (create_cus_hash_table): Update.
10073 (find_partial_die): Update.
10074 (dwarf2_read_addr_index): Update.
10075 (follow_die_offset): Update.
10076 (dwarf2_fetch_die_loc_sect_off): Update.
10077 (dwarf2_fetch_constant_bytes): Update.
10078 (dwarf2_fetch_die_type_sect_off): Update.
10079 (follow_die_sig_1): Update.
10080 (load_full_type_unit): Add per_objfile parameter.
10081 (read_signatured_type): Likewise.
10082
10083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10086 of objfile_name.
10087
10088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10089
10090 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10091 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10092 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10093 field.
10094 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10095 (create_cus_from_index): Update.
10096 (dwarf2_read_gdb_index): Update.
10097 (create_cus_from_debug_names): Update.
10098 (dwarf2_read_debug_names): Update.
10099 (get_abbrev_section_for_cu): Update.
10100 (create_all_comp_units): Update.
10101 (read_attribute_value): Update.
10102 (get_debug_line_section): Update.
10103 * dwarf2/index-cache.c (index_cache::store): Update.
10104 * dwarf2/index-write.c (save_gdb_index_command): Update.
10105 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10106
10107 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10108
10109 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10110 member.
10111 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10112 dwarf2_per_cu_data::per_bfd.
10113 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10114 (create_type_unit_group): Likewise.
10115 (queue_comp_unit): Remove reference to
10116 per_cu->dwarf2_per_objfile.
10117 (maybe_queue_comp_unit): Likewise.
10118 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10119 (create_cus_hash_table): Assign new field.
10120
10121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * dwarf2/read.c: Replace
10124 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10125 dwarf2_cu->per_objfile throughout.
10126
10127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10128
10129 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10130 parameter, don't use per_cu->dwarf2_per_objfile.
10131 (dw2_instantiate_symtab): Likewise.
10132 (dw2_find_last_source_symtab): Update.
10133 (dw2_map_expand_apply): Update.
10134 (dw2_lookup_symbol): Update.
10135 (dw2_expand_symtabs_for_function): Update.
10136 (dw2_expand_all_symtabs): Update.
10137 (dw2_expand_symtabs_with_fullname): Update.
10138 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10139 don't use per_cu->dwarf2_per_objfile.
10140 (dw2_expand_marked_cus): Update.
10141 (dw2_find_pc_sect_compunit_symtab): Update.
10142 (dw2_debug_names_lookup_symbol): Update.
10143 (dw2_debug_names_expand_symtabs_for_function): Update.
10144 (dw2_debug_names_map_matching_symbols): Update.
10145 (dwarf2_psymtab::expand_psymtab): Update.
10146
10147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10150 <per_objfile>: New member.
10151 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10152 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10153 call to dwarf2_cu.
10154 (cutu_reader::cutu_reader): Update.
10155 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10156
10157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10160 struct dwarf2_per_objfile.
10161 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10162 dwarf2_per_bfd.
10163 * dwarf2/read.c (set_die_type): Update.
10164 (get_die_type_at_offset): Update.
10165
10166 2020-05-27 Tom Tromey <tom@tromey.com>
10167 Simon Marchi <simon.marchi@efficios.com>
10168
10169 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10170 method.
10171 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10172 get_symtab, set_symtab>: New methods.
10173 <m_symtabs>: New field.
10174 (struct dwarf2_psymtab): Derive from partial_symtab.
10175 <readin_p, get_compunit_symtab>: Declare methods.
10176 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10177 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10178 New methods.
10179 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10180 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10181 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10182 (dw2_symtab_iter_next, dw2_print_stats)
10183 (dw2_expand_symtabs_with_fullname)
10184 (dw2_expand_symtabs_matching_one)
10185 (dw_expand_symtabs_matching_file_matcher)
10186 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10187 (dw2_debug_names_iterator::next)
10188 (dw2_debug_names_map_matching_symbols)
10189 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10190 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10191 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10192 New methods.
10193 (get_compunit_symtab, process_full_comp_unit)
10194 (process_full_type_unit): Update.
10195 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10196
10197 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10198
10199 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10200 then introduce a new dwarf2_per_objfile type.
10201 <read_line_string>: Move to the new dwarf2_per_objfile type.
10202 <objfile>: Likewise.
10203 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10204 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10205 dwarf2_per_objfile->per_bfd.
10206 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10207 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10208 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10209 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10210 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10211 (dwarf2_per_objfile::locate_sections): Rename to...
10212 (dwarf2_per_bfd::locate_sections): ... this.
10213 (dwarf2_per_objfile::get_cutu): Rename to...
10214 (dwarf2_per_bfd::get_cutu): ... this.
10215 (dwarf2_per_objfile::get_cu): Rename to...
10216 (dwarf2_per_bfd::get_cu): ... this.
10217 (dwarf2_per_objfile::get_tu): Rename to...
10218 (dwarf2_per_bfd::get_tu): ... this.
10219 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10220 (dwarf2_per_bfd::allocate_per_cu): ... this.
10221 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10222 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10223 (get_gdb_index_contents_ftype): Change parameter from
10224 dwarf2_per_objfile to dwarf2_per_bfd.
10225 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10226 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10227
10228 2020-05-27 Tom Tromey <tom@tromey.com>
10229 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10232 (allocate_piece_closure): Set "per_objfile" member.
10233 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10234 (locexpr_describe_location, loclist_describe_location): Use new
10235 member.
10236 * dwarf2/read.c (read_call_site_scope)
10237 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10238 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10239 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10240 handle_data_member_location): Set per_objfile member.
10241 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10242 member.
10243 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10244
10245 2020-05-27 Tom Tromey <tom@tromey.com>
10246
10247 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10248 allocate_signatured_type>: Declare new methods.
10249 <m_num_psymtabs>: New member.
10250 (struct dwarf2_per_cu_data) <index>: New member.
10251 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10252 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10253 (create_cu_from_index_list): Use allocate_per_cu.
10254 (create_signatured_type_table_from_index)
10255 (create_signatured_type_table_from_debug_names)
10256 (create_debug_type_hash_table, add_type_unit)
10257 (read_comp_units_from_section): Use allocate_signatured_type.
10258
10259 2020-05-27 Tom Tromey <tom@tromey.com>
10260
10261 * psymtab.c (partial_map_expand_apply)
10262 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10263 (psym_lookup_global_symbol_language)
10264 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10265 (psym_print_stats, psym_expand_symtabs_for_function)
10266 (psym_map_symbol_filenames, psym_map_matching_symbols)
10267 (psym_expand_symtabs_matching)
10268 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10269 (maintenance_check_psymtabs): Update.
10270 * psympriv.h (struct partial_symtab) <readin_p,
10271 get_compunit_symtab>: Add objfile parameter.
10272 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10273 Likewise.
10274 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10275 get_compunit_symtab>: Likewise.
10276 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10277
10278 2020-05-27 Tom Tromey <tom@tromey.com>
10279
10280 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10281 member.
10282 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10283 (create_cu_from_index_list)
10284 (create_signatured_type_table_from_index)
10285 (create_signatured_type_table_from_debug_names)
10286 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10287 (dwarf2_create_include_psymtab)
10288 (create_debug_type_hash_table, add_type_unit)
10289 (create_type_unit_group, read_comp_units_from_section)
10290 (dwarf2_compute_name, create_cus_hash_table)
10291 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10292 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10293 obstack.
10294 (dw2_get_real_path): Likewise. Change argument to
10295 dwarf2_per_objfile.
10296
10297 2020-05-27 Luis Machado <luis.machado@linaro.org>
10298
10299 PR tdep/26000
10300 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10301 for ldrd (immediate).
10302
10303 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10304
10305 * command.h: Add comment giving the name of class_tui.
10306 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10307 create the fake command for the help for class_tui.
10308
10309 2020-05-26 Tom Tromey <tromey@adacore.com>
10310
10311 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10312 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10313 (val_atr): New function.
10314 (value_val_atr): Use it.
10315 * ada-valprint.c (print_optional_low_bound): Change low bound
10316 handling for enums.
10317 (val_print_packed_array_elements): Don't call discrete_position.
10318 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10319 discrete_position for enum types.
10320 * language.c (default_print_array_index): Change type.
10321 * language.h (struct language_defn) <la_print_array_index>: Add
10322 index_type parameter, change type of index_value.
10323 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10324 (default_print_array_index): Update.
10325 * valprint.c (maybe_print_array_index): Don't call
10326 value_from_longest. Update.
10327 (value_print_array_elements): Don't call discrete_position.
10328
10329 2020-05-26 Tom Tromey <tromey@adacore.com>
10330
10331 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10332 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10333
10334 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10335
10336 PR gdb/13519
10337 * avr-tdep.c (avr_integer_to_address): Return data or code
10338 address accordingly to the second 'type' argument of the
10339 function.
10340
10341 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10342
10343 * infcmd.c, inferior.h: (construct_inferior_arguments):
10344 Moved function from here to gdbsupport/common-inferior.{h,cc}
10345
10346 2020-05-23 Tom Tromey <tom@tromey.com>
10347
10348 Revert commit eca1f90c:
10349 * NEWS: Remove entry for completion styling.
10350 * completer.c (_rl_completion_prefix_display_length): Move
10351 declaration later.
10352 (gdb_fnprint): Revert.
10353 (gdb_display_match_list_1): Likewise.
10354 * cli/cli-style.c (completion_prefix_style)
10355 (completion_difference_style, completion_suffix_style): Remove.
10356 (_initialize_cli_style): Revert.
10357 * cli/cli-style.h (completion_prefix_style)
10358 (completion_difference_style, completion_suffix_style): Don't
10359 declare.
10360
10361 2020-05-24 Pedro Alves <palves@redhat.com>
10362
10363 * symtab.c (completion_list_add_name): Return boolean indication
10364 of whether the symbol matched.
10365 (completion_list_add_symbol): Don't try to remove C++ aliases if
10366 the symbol didn't match in the first place.
10367 * symtab.h (completion_list_add_name): Return bool.
10368
10369 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10372 type::field.
10373
10374 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10375
10376 GDB 9.2 released.
10377
10378 2020-05-23 Tom Tromey <tom@tromey.com>
10379
10380 * NEWS: Add entry for completion styling.
10381 * completer.c (_rl_completion_prefix_display_length): Move
10382 declaration earlier.
10383 (gdb_fnprint): Use completion_style.
10384 (gdb_display_match_list_1): Likewise.
10385 * cli/cli-style.c (completion_prefix_style)
10386 (completion_difference_style, completion_suffix_style): New
10387 globals.
10388 (_initialize_cli_style): Register new globals.
10389 * cli/cli-style.h (completion_prefix_style)
10390 (completion_difference_style, completion_suffix_style): Declare.
10391
10392 2020-05-23 Pedro Alves <palves@redhat.com>
10393
10394 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10395 (parse_escape): Use ISDIGIT instead of isdigit.
10396 (puts_debug): Use gdb_isprint instead of isprint.
10397 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10398 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10399 ISSPACE instead of isspace.
10400 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10401 instead of isspace.
10402 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10403 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10404 instead of isxdigit and ISDIGIT instead of isdigit.
10405
10406 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * gdbtypes.h (struct type) <field>: New method.
10409 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10410 or type::field.
10411
10412 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10413
10414 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10415 (TYPE_FIELDS): Use type::fields. Change all call sites that
10416 modify the propery to use type::set_fields instead.
10417
10418 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10421 type::num_fields instead.
10422
10423 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10424
10425 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10426 methods.
10427 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10428 that modify the number of fields to use type::set_num_fields
10429 instead.
10430
10431 2020-05-22 Tom Tromey <tromey@adacore.com>
10432
10433 * compile/compile-object-load.h (munmap_list_free): Don't
10434 declare.
10435
10436 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10437
10438 * annotate.c (annotate_source_line): Update return type, add call
10439 to update current symtab and line.
10440 * annotate.h (annotate_source_line): Update return type, and
10441 extend header comment.
10442 * source.c (info_line_command): Check annotation_level before
10443 calling annotate_source_line.
10444 * stack.c (print_frame_info): If calling annotate_source_line
10445 returns true, then don't print any other source line information.
10446
10447 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10448
10449 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10450
10451 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * coffread.c (patch_type): Remove NULL check before xfree.
10454 * corefile.c (set_gnutarget): Likewise.
10455 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10456 * exec.c (build_section_table): Likewise.
10457 * remote.c (remote_target::pass_signals): Likewise.
10458 * utils.c (n_spaces): Likewise.
10459 * cli/cli-script.c (document_command): Likewise.
10460 * i386-windows-tdep.c (core_process_module_section): Likewise.
10461 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10462
10463 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10464
10465 * symfile.c (reread_symbols): Clear objfile's section_offsets
10466 vector and section indices, re-compute them by calling
10467 sym_offsets.
10468
10469 2020-05-20 Tom Tromey <tromey@adacore.com>
10470
10471 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10472 (desc_one_bound, desc_index_type): Compute field name.
10473
10474 2020-05-20 Tom de Vries <tdevries@suse.de>
10475
10476 PR symtab/25833
10477 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10478
10479 2020-05-20 Alan Modra <amodra@gmail.com>
10480
10481 PR 25993
10482 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10483 bfd_set_filename.
10484 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10485 passed to bfd_set_filename.
10486 * symfile-mem.c (add_vsyscall_page): Likewise for string
10487 passed to symbol_file_add_from_memory.
10488 (symbol_file_add_from_memory): Make name param a const char* and
10489 don't strdup.
10490
10491 2020-05-20 Alan Modra <amodra@gmail.com>
10492
10493 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10494 rather than accessing bfd->filename directly.
10495 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10496 and use bfd_section_name.
10497 * dwarf2/frame.c (decode_frame_entry): Likewise.
10498 * exec.c (exec_set_section_address): Likewise.
10499 * solib-aix.c (solib_aix_bfd_open): Likewise.
10500 * stap-probe.c (get_stap_base_address): Likewise.
10501 * symfile.c (reread_symbols): Likewise.
10502
10503 2020-05-19 Tom Tromey <tromey@adacore.com>
10504
10505 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10506
10507 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10510
10511 2020-05-19 Pedro Alves <palves@redhat.com>
10512
10513 * NEWS (set exec-file-mismatch): Adjust entry.
10514 * exec.c: Include "build-id.h".
10515 (validate_exec_file): Try to match build IDs instead of filenames.
10516 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10517 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10518 and pass down 'warn_if_slow'.
10519 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10520 gdb_bfd_open_closure to pass it down.
10521 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10522
10523 2020-05-19 Pedro Alves <palves@redhat.com>
10524
10525 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10526 * target.c (target_fileio_open_1): Rename to target_fileio_open
10527 and make extern. Use bool.
10528 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10529 (target_fileio_read_alloc_1): Adjust.
10530 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10531 (target_fileio_open_warn_if_slow): Delete declaration.
10532
10533 2020-05-19 Pedro Alves <palves@redhat.com>
10534
10535 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10536 Adjust all callers.
10537
10538 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10539
10540 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10541 whether disp is negative.
10542
10543 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10544
10545 * symfile.h (struct symfile_segment_data)
10546 <~symfile_segment_data>: Remove.
10547 <segment_info>: Change to std::vector.
10548 * symfile.c (default_symfile_segments): Update.
10549 * elfread.c (elf_symfile_segments): Update.
10550
10551 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10552
10553 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10554 <segments>: New.
10555 <segment_bases, segment_sizes>: Remove.
10556 * symfile.c (default_symfile_segments): Update.
10557 * elfread.c (elf_symfile_segments): Update.
10558 * remote.c (remote_target::get_offsets): Update.
10559 * solib-target.c (solib_target_relocate_section_addresses):
10560 Update.
10561
10562 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * symfile.h (struct symfile_segment_data): Initialize fields.
10565 <~symfile_segment_data>: Add.
10566 (symfile_segment_data_up): New.
10567 (struct sym_fns) <sym_segments>: Return a
10568 symfile_segment_data_up.
10569 (default_symfile_segments): Return a symfile_segment_data_up.
10570 (free_symfile_segment_data): Remove.
10571 (get_symfile_segment_data): Return a symfile_segment_data_up.
10572 * symfile.c (default_symfile_segments): Likewise.
10573 (get_symfile_segment_data): Likewise.
10574 (free_symfile_segment_data): Remove.
10575 (symfile_find_segment_sections): Update.
10576 * elfread.c (elf_symfile_segments): Return a
10577 symfile_segment_data_up.
10578 * remote.c (remote_target::get_offsets): Update.
10579 * solib-target.c (solib_target_relocate_section_addresses):
10580 Update.
10581 * symfile-debug.c (debug_sym_segments): Return a
10582 symfile_segment_data_up.
10583
10584 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10585
10586 PR build/25981
10587 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10588 Hardcode register numbers.
10589
10590 PR build/25981
10591 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10592 procfs_find_LDT_entry): Remove.
10593 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10594 procfs_find_LDT_entry): Remove.
10595 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10596 Remove.
10597
10598 2020-05-17 Pedro Alves <palves@redhat.com>
10599 Andrew Burgess <andrew.burgess@embecosm.com>
10600 Keno Fischer <keno@juliacomputing.com>
10601
10602 PR gdb/25741
10603 * breakpoint.c (build_target_condition_list): Update comments.
10604 (build_target_command_list): Update comments and skip matching
10605 locations.
10606 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10607 a separate function. Simplify "set breakpoint auto-hw off"
10608 handling.
10609 (insert_breakpoints): Update comment.
10610 (tracepoint_locations_match): New parameter. For breakpoints,
10611 compare location types too, if the caller wants to.
10612 (handle_automatic_hardware_breakpoints): New functions.
10613 (bp_location_is_less_than): Also sort by location type and
10614 hardware breakpoint length.
10615 (update_global_location_list): Handle "set breakpoint auto-hw on"
10616 here.
10617 (update_breakpoint_locations): Ask breakpoint_locations_match to
10618 ignore location types.
10619
10620 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10621
10622 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10623 type::name instead.
10624
10625 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10626
10627 * gdbtypes.h (struct type) <name, set_name>: New methods.
10628 (TYPE_CODE): Use type::name. Change all call sites used to set
10629 the name to use type::set_name instead.
10630
10631 2020-05-16 Tom Tromey <tom@tromey.com>
10632
10633 * top.c (quit_force): Update.
10634 * infrun.c (handle_no_resumed): Update.
10635 * top.h (all_uis): New function.
10636 (ALL_UIS): Remove.
10637
10638 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10639
10640 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10641
10642 2020-05-16 Pedro Alves <palves@redhat.com>
10643
10644 * ia64-linux-nat.c
10645 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10646 Declare method.
10647 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10648
10649 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10650
10651 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10652 (sparc64_adi_info): Likewise.
10653
10654 2020-05-15 Tom Tromey <tom@tromey.com>
10655
10656 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10657 block_objfile.
10658 (lookup_objfile_from_block): Remove.
10659 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10660 (lookup_global_symbol): Use block_objfile.
10661 * symtab.h (lookup_objfile_from_block): Don't declare.
10662 * printcmd.c (clear_dangling_display_expressions): Use
10663 block_objfile.
10664 * parse.c (operator_check_standard): Use block_objfile.
10665
10666 2020-05-15 Tom Tromey <tom@tromey.com>
10667
10668 * language.c (language_alloc_type_symbol): Set
10669 SYMBOL_SECTION.
10670 * symtab.c (initialize_objfile_symbol): Remove.
10671 (allocate_symbol): Remove.
10672 (allocate_template_symbol): Remove.
10673 * dwarf2/read.c (fixup_go_packaging): Use "new".
10674 (new_symbol): Use "new".
10675 (read_variable): Don't call initialize_objfile_symbol. Use
10676 "new".
10677 (read_func_scope): Use "new".
10678 * xcoffread.c (process_xcoff_symbol): Don't call
10679 initialize_objfile_symbol.
10680 (SYMBOL_DUP): Remove.
10681 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10682 "new".
10683 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10684 (allocate_template_symbol): Don't declare.
10685 (struct symbol): Add copy constructor. Change defaults.
10686 * jit.c (finalize_symtab): Use "new".
10687 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10688 Use "new".
10689 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10690 (common_block_end): Use "new".
10691 * mdebugread.c (parse_symbol): Use "new".
10692 (new_symbol): Likewise.
10693
10694 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10695
10696 * NEWS: Mention changes to help and apropos.
10697
10698 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10699
10700 * command.h (enum command_class): Improve comments, document
10701 that class_alias is for user-defined aliases, give the class
10702 name for each class, remove unused class_xdb.
10703 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10704 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10705 by a precise class.
10706 * infcmd.c (_initialize_infcmd): Likewise.
10707 * reverse.c (_initialize_reverse): Likewise.
10708 * stack.c (_initialize_stack): Likewise.
10709 * symfile.c (_initialize_symfile): Likewise.
10710 * tracepoint.c (_initialize_tracepoint): Likewise.
10711
10712 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10713
10714 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10715 when their aliased command is traversed.
10716 (help_cmd): Add fput_command_names_styled call to
10717 output command name and aliases when command has an alias.
10718
10719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10720
10721 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10722 * cli/cli-decode.c (help_cmd_list): Declare as static,
10723 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10724 a command together with the command.
10725 (fput_command_name_styled, fput_command_names_styled): New functions.
10726 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10727 fput_command_name_styled.
10728 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10729 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10730
10731 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10732
10733 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10734 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10735 * command.h (cmd_show_list): Likewise.
10736 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10737 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10738
10739 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10740
10741 * unittests/command-def-selftests.c (traverse_command_structure):
10742 Verify all commands of a list have the same prefix command and
10743 that only the top cmdlist commands have a null prefix.
10744
10745 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10746
10747 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10748 as prefix, not one of its aliases.
10749 (set_cmd_prefix): Remove.
10750 (do_add_cmd): Centralize the setting of the prefix of a command, when
10751 command is defined after its full chain of prefix commands.
10752 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10753 (add_setshow_cmd_full): Likewise.
10754 (update_prefix_field_of_prefixed_commands): New function.
10755 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10756 update_prefix_field_of_prefixed_commands.
10757 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10758 addresses of remote_set_cmdlist and remote_show_cmdlist given
10759 as argument, not the address of an argument.
10760 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10761 * gdb/remote.c (_initialize_remote): Likewise.
10762
10763 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10764
10765 * cli/cli-cmds.c (alias_command): Check for an existing alias
10766 using lookup_cmd_composition, as valid_command_p is too strict
10767 and forbids aliases that are the prefix of an existing alias
10768 or command.
10769 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10770 command is properly recognised as a valid command.
10771
10772 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10773
10774 * unittests/help-doc-selftests.c: Rename to
10775 unittests/command-def-selftests.c
10776 * unittests/command-def-selftests.c (help_doc_tests): Update some
10777 comments.
10778 (command_structure_tests, traverse_command_structure): New namespace
10779 and function.
10780 (command_structure_invariants_tests): New function.
10781 (_initialize_command_def_selftests) Renamed from
10782 _initialize_help_doc_selftests, register command_structure_invariants
10783 selftest.
10784
10785 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10786
10787 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10788 an alias of 'show'.
10789
10790 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10791
10792 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10793 ada_is_fixed_point_type. Update all callers.
10794 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10795 all callers.
10796 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10797 Update all callers.
10798 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10799 print_fixed_point_type. Update all callers.
10800 * ada-valprint.c (ada_value_print_num): Replace call to
10801 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10802
10803 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10804
10805 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10806 processors.
10807 (cpu_supports_bts): Add CV_AMD case.
10808
10809 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10810 Simon Marchi <simon.marchi@efficios.com>
10811
10812 * infrun.c (stop_all_threads): Collect multiple wait events at
10813 each pass.
10814
10815 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10818 type::code instead.
10819
10820 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * gdbtypes.h (struct type) <code, set_code>: New methods.
10823 (TYPE_CODE): Use type::code. Change all call sites used to set
10824 the code to use type::set_code instead.
10825
10826 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10827 Tom de Vries <tdevries@suse.de>
10828 Pedro Alves <palves@redhat.com>
10829
10830 PR threads/25478
10831 * infrun.c (stop_all_threads): Do NOT ignore
10832 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10833 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10834 received.
10835 (handle_no_resumed): Remove code handling a live inferior with no
10836 threads.
10837 * remote.c (has_single_non_exited_thread): New.
10838 (remote_target::update_thread_list): Do not delete a thread if is
10839 the last thread of the process.
10840 * thread.c (thread_select): Call delete_exited_threads instead of
10841 prune_threads.
10842
10843 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10844
10845 * infrun.c (stop_all_threads): Enable/disable thread events of all
10846 targets. Move a debug message denoting the end of the function
10847 into the SCOPED_EXIT block.
10848
10849 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10850
10851 * process-stratum-target.h: Include <set>.
10852 (all_non_exited_process_targets, switch_to_target_no_thread): New
10853 function declarations.
10854 * process-stratum-target.c (all_non_exited_process_targets)
10855 (switch_to_target_no_thread): New function implementations.
10856
10857 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10858
10859 * infrun.c (handle_inferior_event): Extract out a piece of code
10860 into...
10861 (mark_non_executing_threads): ...this new function.
10862
10863 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10864
10865 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10866 use.
10867
10868 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10869
10870 * regcache.c (regcache_read_pc_protected): New function
10871 implementation that returns 0 if the PC cannot read via
10872 'regcache_read_pc'.
10873 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10874 instead of 'regcache_read_pc'.
10875 (keep_going_pass_signal): Ditto.
10876
10877 2020-05-13 Tom Tromey <tromey@adacore.com>
10878
10879 * ada-lang.c (align_value): Remove.
10880 (ada_template_to_fixed_record_type_1): Use align_up.
10881
10882 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10883
10884 * async-event.c: Update the copyright year.
10885 * async-event.h: Update the copyright year.
10886
10887 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10888
10889 * objfiles.h (is_addr_in_objfile,
10890 shared_objfile_contains_address_p): Return bool.
10891 * objfile.c (is_addr_in_objfile,
10892 shared_objfile_contains_address_p): Return bool.
10893
10894 2020-05-11 Tom Tromey <tromey@adacore.com>
10895
10896 * cli/cli-cmds.c (info_command): Restore.
10897 (_initialize_cli_cmds): Use add_prefix_command for "info".
10898 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10899
10900 2020-05-11 Tom Tromey <tromey@adacore.com>
10901
10902 * ada-lang.c (ada_value_primitive_field): Now public.
10903 * ada-lang.h (ada_value_primitive_field): Declare.
10904 * ada-valprint.c (print_field_values): Use
10905 ada_value_primitive_field for wrapper fields.
10906
10907 2020-05-11 Tom de Vries <tdevries@suse.de>
10908
10909 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10910 MODULE_DOMAIN.
10911
10912 2020-05-11 Tom de Vries <tdevries@suse.de>
10913
10914 PR symtab/25941
10915 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10916 with length 0, if not gdb-produced.
10917 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10918
10919 2020-05-09 Tom de Vries <tdevries@suse.de>
10920
10921 PR gdb/25955
10922 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10923 calculation.
10924
10925 2020-05-09 Tom Tromey <tom@tromey.com>
10926
10927 * top.c (server_command): Now bool.
10928 * top.h (server_command): Now bool.
10929
10930 2020-05-08 Tom Tromey <tromey@adacore.com>
10931
10932 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10933 already being processed.
10934
10935 2020-05-08 Tom Tromey <tom@tromey.com>
10936
10937 * printcmd.c (struct display) <next>: Remove.
10938 <display>: New constructor.
10939 <exp_string>: Now a std::string.
10940 <enabled_p>: Now a bool.
10941 (display_number): Move definition earlier.
10942 (displays): Rename from display_chain. Now a std::vector.
10943 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10944 (display_command): Update.
10945 (do_one_display, disable_display)
10946 (enable_disable_display_command, do_enable_disable_display):
10947 Update.
10948 (free_display): Remove.
10949 (clear_displays): Rewrite.
10950 (delete_display): Update.
10951 (map_display_numbers): Use function_view. Remove "data"
10952 parameter. Update.
10953 (do_delete_display): Remove.
10954 (undisplay_command): Update.
10955 (do_one_display, do_displays, disable_display)
10956 (info_display_command): Update.
10957 (do_enable_disable_display): Remove.
10958 (enable_disable_display_command)
10959 (clear_dangling_display_expressions): Update.
10960
10961 2020-05-08 Tom Tromey <tom@tromey.com>
10962
10963 * symtab.c (set_symbol_cache_size)
10964 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10965 (maintenance_print_symbol_cache_statistics): Update.
10966 * symmisc.c (print_symbol_bcache_statistics)
10967 (print_objfile_statistics, maintenance_print_objfiles)
10968 (maintenance_info_symtabs, maintenance_check_symtabs)
10969 (maintenance_expand_symtabs, maintenance_info_line_tables):
10970 Update.
10971 * symfile-debug.c (set_debug_symfile): Update.
10972 * source.c (forget_cached_source_info): Update.
10973 * python/python.c (gdbpy_progspaces): Update.
10974 * psymtab.c (maintenance_info_psymtabs): Update.
10975 * probe.c (parse_probes): Update.
10976 * linespec.c (iterate_over_all_matching_symtabs)
10977 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10978 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10979 * exec.c (exec_target::close): Update.
10980 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10981 * breakpoint.c (print_one_breakpoint_location)
10982 (create_longjmp_master_breakpoint)
10983 (create_std_terminate_master_breakpoint): Update.
10984 * progspace.c (program_spaces): Now a std::vector.
10985 (maybe_new_address_space): Update.
10986 (add_program_space): Remove.
10987 (program_space::program_space): Update.
10988 (remove_program_space): Update.
10989 (number_of_program_spaces): Remove.
10990 (print_program_space, update_address_spaces): Update.
10991 * progspace.h (program_spaces): Change type.
10992 (ALL_PSPACES): Remove.
10993 (number_of_program_spaces): Don't declare.
10994 (struct program_space) <next>: Remove.
10995
10996 2020-05-08 Tom Tromey <tom@tromey.com>
10997
10998 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10999 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11000 (enable_break): Update.
11001 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11002 (frv_fdpic_find_canonical_descriptor): Update.
11003 (frv_fetch_objfile_link_map): Update.
11004 * progspace.c (program_space::free_all_objfiles): Update.
11005 (program_space::solibs): New method.
11006 * progspace.h (struct program_space) <solibs>: New method.
11007 * solist.h (master_so_list): Don't declare.
11008 (ALL_SO_LIBS): Remove.
11009 * solib.h (so_list_head): Remove.
11010 (update_solib_list): Update comment.
11011 * solib.c (master_so_list): Remove.
11012 (solib_used, update_solib_list, solib_add)
11013 (info_sharedlibrary_command, clear_solib)
11014 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11015
11016 2020-05-08 Tom Tromey <tom@tromey.com>
11017
11018 * extension.c (extension_languages): Now a std::array.
11019 (ALL_EXTENSION_LANGUAGES): Remove.
11020 (get_ext_lang_defn, get_ext_lang_of_file)
11021 (eval_ext_lang_from_control_command): Update.
11022 (finish_ext_lang_initialization)
11023 (auto_load_ext_lang_scripts_for_objfile)
11024 (ext_lang_type_printers::ext_lang_type_printers)
11025 (apply_ext_lang_type_printers)
11026 (ext_lang_type_printers::~ext_lang_type_printers)
11027 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11028 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11029 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11030 (get_matching_xmethod_workers, ext_lang_colorize)
11031 (ext_lang_before_prompt): Update.
11032 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11033
11034 2020-05-08 Tom Tromey <tom@tromey.com>
11035
11036 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11037 overload.
11038 <swap_string, m_string>: Remove.
11039 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11040 Update.
11041 * stabsread.c (define_symbol, read_type): Update.
11042 * linespec.c (find_linespec_symbols): Update.
11043 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11044 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11045 * dbxread.c (read_dbx_symtab): Update.
11046 * cp-support.h (cp_canonicalize_string_full)
11047 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11048 Return unique_xmalloc_ptr.
11049 * cp-support.c (inspect_type): Update.
11050 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11051 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11052 Likewise.
11053 * c-typeprint.c (print_name_maybe_canonical): Update.
11054 * break-catch-throw.c (check_status_exception_catchpoint):
11055 Update.
11056
11057 2020-05-08 Tom de Vries <tdevries@suse.de>
11058
11059 * infrun.c (follow_fork): Copy current_line and current_symtab to
11060 child thread.
11061
11062 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11063
11064 * async-event.c (struct async_signal_handler, struct
11065 async_event_handler): Reformat, remove typedef.
11066
11067 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11070 access thistype->main_type->dyn_prop_list directly.
11071
11072 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11073
11074 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11075 (remove_dyn_prop): Remove. Update all users to use
11076 type::remove_dyn_prop.
11077 * gdbtypes.c (remove_dyn_prop): Rename to...
11078 (type::remove_dyn_prop): ... this.
11079
11080 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11081
11082 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11083 (add_dyn_prop): Remove. Update all users to use
11084 type::add_dyn_prop.
11085 * gdbtypes.c (add_dyn_prop): Rename to...
11086 (type::add_dyn_prop): ... this.
11087
11088 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11091 (get_dyn_prop): Remove. Update all users to use
11092 type::dyn_prop.
11093 * gdbtypes.c (get_dyn_prop): Rename to...
11094 (type::dyn_prop): ... this.
11095
11096 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11097
11098 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11099
11100 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11103 instruction, skip it if it's there.
11104
11105 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11108
11109 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11110
11111 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11112 * gdbtypes.c (recursive_dump_type): Remove use of
11113 TYPE_INCOMPLETE.
11114
11115 2020-05-03 Tom Tromey <tom@tromey.com>
11116
11117 * breakpoint.c (catch_command, tcatch_command): Remove.
11118 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11121 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11122 Remove.
11123 (add_internal_problem_command): Use add_basic_prefix_cmd,
11124 add_show_prefix_cmd.
11125 * mips-tdep.c (set_mipsfpu_command): Remove.
11126 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11127 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11128 (_initialize_index_cache): Use add_basic_prefix_cmd.
11129 * memattr.c (dummy_cmd): Remove.
11130 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11131 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11132 (_initialize_tui_win): Use add_basic_prefix_cmd,
11133 add_show_prefix_cmd.
11134 * cli/cli-logging.c (set_logging_command): Remove.
11135 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11136 add_show_prefix_cmd.
11137 (show_logging_command): Remove.
11138 * target.c (target_command): Remove.
11139 (add_target): Use add_basic_prefix_cmd.
11140
11141 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11142
11143 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11144
11145 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11146
11147 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11148 info_command.
11149
11150 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11151
11152 * nbsd-nat.c (nbsd_enable_proc_events)
11153 (nbsd_nat_target::post_startup_inferior): Add.
11154 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11155 (nbsd_nat_target::update_thread_list): Rewrite.
11156 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11157 "PTRACE_LWP_CREATE".
11158 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11159
11160 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11161
11162 * stack.c (_initialize_stack): Remove duplicated creation
11163 of "frame" command and "f" alias.
11164
11165 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11166
11167 PR gdb/18706
11168 * gdbtypes.c (check_typedef): Calculate size of array of
11169 stubbed type.
11170
11171 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11172
11173 PR gdb/15559
11174 * i386-tdep.c (i386_push_dummy_call): Call
11175 i386_thiscall_push_dummy_call.
11176 (i386_thiscall_push_dummy_call): New function.
11177 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11178 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11179 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11180
11181 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11182
11183 * gdbarch.sh (do_read): Add shellcheck disable directive for
11184 warning SC2162.
11185
11186 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11187
11188 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11189 "referenced but not assigned" warning.
11190
11191 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11192
11193 * gdbarch.sh: Remove code that sets fallbackdefault.
11194
11195 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11196
11197 * gdbarch.sh: Use shell operators && and || instead of
11198 -a and -o.
11199
11200 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11201
11202 * gdbarch.sh: Use $(...) instead of `...`.
11203
11204 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * gdbarch.sh: Use double quotes around variables.
11207
11208 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11209
11210 * gdbarch.sh: Use %s with printf, instead of variables in the
11211 format string.
11212
11213 2020-04-29 Tom Tromey <tromey@adacore.com>
11214
11215 PR ada/25875:
11216 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11217 type fields here.
11218 (read_enumeration_type): Call
11219 update_enumeration_type_from_children later. Update comments.
11220 (process_enumeration_scope): Don't create type fields.
11221
11222 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11223
11224 * nbsd-tdep.c: Include "xml-syscall.h".
11225 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11226
11227 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11228
11229 * nbsd-nat.c: Include "sys/wait.h".
11230 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11231 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11232 (nbsd_nat_target::remove_exec_catchpoint)
11233 (nbsd_nat_target::set_syscall_catchpoint): Add.
11234 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11235 (nbsd_nat_target::insert_exec_catchpoint)
11236 (nbsd_nat_target::remove_exec_catchpoint)
11237 (nbsd_nat_target::set_syscall_catchpoint): Add.
11238 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11239 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11240 `nbsd_get_syscall_number'.
11241
11242 2020-04-29 Tom Tromey <tom@tromey.com>
11243
11244 * stack.c (print_block_frame_labels): Remove.
11245
11246 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11247
11248 PR gdb/17320
11249 * ada-valprint.c (val_print_packed_array_elements): Move array
11250 end bracket to new line.
11251 (ada_val_print_string): Remove extra spaces before first array
11252 element.
11253 * c-valprint.c (c_value_print_array): Likewise.
11254 * m2-valprint.c (m2_print_array_contents): Likewise.
11255 (m2_value_print_inner): Likewise.
11256 * p-valprint.c (pascal_value_print_inner): Likewise.
11257 * valprint.c (generic_val_print_array): Likewise.
11258 (value_print_array_elements): Move first array element and array
11259 end bracket to new line.
11260
11261 2020-04-29 Tom de Vries <tdevries@suse.de>
11262
11263 PR symtab/25889
11264 * linespec.c (find_method): Fix ix calculation.
11265
11266 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11267
11268 * syscalls/update-netbsd.sh: New file.
11269 * syscalls/netbsd.xml: Regenerate.
11270 * data-directory/Makefile.in: Register `netbsd.xml' in
11271 `SYSCALLS_FILES'.
11272
11273 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * syscalls/update-freebsd.sh: Add double quotes.
11276
11277 2020-04-28 Tom Tromey <tom@tromey.com>
11278
11279 * NEWS: Update.
11280 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11281 (cmdpy_init): Allow class_tui.
11282
11283 2020-04-28 Mark Williams <mark@myosotissp.com>
11284
11285 PR gdb/24480
11286 * dwarf2read.c: Add missing assingments to list_in_scope when
11287 start_symtab was already called.
11288
11289 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11290
11291 PR gdb/25881
11292 * dwarf2/read.c (offset_map_type): Use
11293 gdb:hash_enum<sect_offset> as hash function.
11294
11295 2020-04-28 Tom de Vries <tdevries@suse.de>
11296
11297 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11298 with DW_AT_signature.
11299
11300 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * configure.ac: Remove check for fs_base/gs_base in
11303 user_regs_struct.
11304 * configure: Re-generate.
11305 * config.in: Re-generate.
11306 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11307 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11308 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11309
11310 2020-04-27 Luis Machado <luis.machado@linaro.org>
11311
11312 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11313 problematic inline frame unwinding situation.
11314 * frame.c (frame_id_computed_p): New function.
11315 * frame.h (frame_id_computed_p): New prototype.
11316
11317 2020-04-26 Tom Tromey <tom@tromey.com>
11318
11319 * command.h (enum command_class) <class_pseudo>: Remove.
11320
11321 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11322
11323 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11324 and whitespace.
11325
11326 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11327
11328 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11329 `PT_GET_PROCESS_STATE' block.
11330
11331 2020-04-24 Tom Tromey <tom@tromey.com>
11332
11333 * symtab.h (symbol_get_demangled_name): Don't declare.
11334 * symtab.c (symbol_get_demangled_name): Remove.
11335 (general_symbol_info::natural_name)
11336 (general_symbol_info::demangled_name): Update.
11337
11338 2020-04-24 Tom Tromey <tom@tromey.com>
11339
11340 PR rust/25025:
11341 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11342
11343 2020-04-24 Tom Tromey <tom@tromey.com>
11344
11345 PR symtab/12707:
11346 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11347 exists.
11348 (new_symbol): Likewise.
11349 * compile/compile-object-load.c (get_out_value_type): Use
11350 symbol_matches_search_name.
11351
11352 2020-04-24 Tom Tromey <tom@tromey.com>
11353
11354 * dwarf2/read.c (add_partial_symbol): Do not call
11355 compute_and_set_names.
11356
11357 2020-04-24 Tom Tromey <tom@tromey.com>
11358
11359 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11360 overload.
11361
11362 2020-04-24 Tom Tromey <tom@tromey.com>
11363
11364 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11365 (add_psymbol_to_list): New overload. Make old overload call new
11366 one.
11367 * psympriv.h (add_psymbol_to_list): New overload.
11368
11369 2020-04-24 Tom Tromey <tom@tromey.com>
11370
11371 * dwarf2/read.c (partial_die_info::read) <case
11372 DW_AT_linkage_name>: Use value_as_string.
11373 (dwarf2_string_attr): Use value_as_string.
11374 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11375 method.
11376 * dwarf2/attribute.c (attribute::value_as_string): New method.
11377
11378 2020-04-24 Tom Tromey <tom@tromey.com>
11379
11380 * symtab.c (general_symbol_info::natural_name)
11381 (general_symbol_info::demangled_name): Check for language_rust.
11382
11383 2020-04-24 Tom Tromey <tom@tromey.com>
11384
11385 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11386 (dwarf2_physname): ... from here.
11387 (partial_die_info::read): Add Rust "{" hack.
11388
11389 2020-04-24 Tom Tromey <tom@tromey.com>
11390
11391 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11392 method.
11393 (symbol_set_demangled_name): Don't declare.
11394 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11395 symbol_set_demangled_name.
11396 (general_symbol_info::set_language)
11397 (general_symbol_info::compute_and_set_names): Update.
11398 * minsyms.c (minimal_symbol_reader::install): Update.
11399 * dwarf2/read.c (new_symbol): Update.
11400
11401 2020-04-24 Tom Tromey <tromey@adacore.com>
11402
11403 PR python/23662:
11404 * python/py-type.c (convert_field): Handle
11405 FIELD_LOC_KIND_DWARF_BLOCK.
11406 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11407 (typy_get_dynamic): Nw function.
11408 (type_object_getset): Add "dynamic".
11409 * NEWS: Add entry.
11410
11411 2020-04-24 Tom Tromey <tromey@adacore.com>
11412
11413 * ada-typeprint.c (print_choices, print_variant_part)
11414 (print_record_field_types_dynamic): New functions.
11415 (print_record_field_types): Use print_record_field_types_dynamic.
11416
11417 2020-04-24 Tom Tromey <tromey@adacore.com>
11418
11419 * dwarf2/read.c (handle_data_member_location): New overload.
11420 (dwarf2_add_field): Use it.
11421 (decode_locdesc): Add "computed" parameter. Update comment.
11422 * gdbtypes.c (is_dynamic_type_internal): Also look for
11423 FIELD_LOC_KIND_DWARF_BLOCK.
11424 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11425 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11426 virtual base classes.
11427 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11428 FIELD_LOC_KIND_DWARF_BLOCK.
11429
11430 2020-04-24 Tom Tromey <tromey@adacore.com>
11431
11432 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11433 * gdbtypes.c (is_dynamic_type_internal): Check
11434 TYPE_HAS_DYNAMIC_LENGTH.
11435 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11436 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11437 New macros.
11438 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11439 constant.
11440
11441 2020-04-24 Tom Tromey <tromey@adacore.com>
11442
11443 * dwarf2/read.c (struct variant_field): Rewrite.
11444 (struct variant_part_builder): New.
11445 (struct nextfield): Remove "variant" field. Add "offset".
11446 (struct field_info): Add "current_variant_part" and
11447 "variant_parts".
11448 (alloc_discriminant_info): Remove.
11449 (alloc_rust_variant): New function.
11450 (quirk_rust_enum): Update.
11451 (dwarf2_add_field): Set "offset" member. Don't handle
11452 DW_TAG_variant_part.
11453 (offset_map_type): New typedef.
11454 (convert_variant_range, create_one_variant)
11455 (create_one_variant_part, create_variant_parts)
11456 (add_variant_property): New functions.
11457 (dwarf2_attach_fields_to_type): Call add_variant_property.
11458 (read_structure_type): Don't handle DW_TAG_variant_part.
11459 (handle_variant_part, handle_variant): New functions.
11460 (handle_struct_member_die): Use them.
11461 (process_structure_scope): Don't handle variant parts.
11462 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11463 (struct discriminant_info): Remove.
11464 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11465 (struct main_type) <flag_discriminated_union>: Remove.
11466 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11467 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11468 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11469 Update.
11470 * valops.c (value_union_variant): Remove.
11471 * value.h (value_union_variant): Don't declare.
11472
11473 2020-04-24 Tom Tromey <tromey@adacore.com>
11474
11475 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11476 (ada_value_primitive_packed_val): Update.
11477 * ada-valprint.c (ada_value_print_1): Update.
11478 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11479 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11480 just an address. Use evaluate_for_locexpr_baton.
11481 (dwarf2_evaluate_property): Update.
11482 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11483 array_view.
11484 * findvar.c (default_read_var_value): Update.
11485 * gdbtypes.c (compute_variant_fields_inner)
11486 (resolve_dynamic_type_internal): Update.
11487 (resolve_dynamic_type): Change type of valaddr parameter.
11488 * gdbtypes.h (resolve_dynamic_type): Update.
11489 * valarith.c (value_subscripted_rvalue): Update.
11490 * value.c (value_from_contents_and_address): Update.
11491
11492 2020-04-24 Tom Tromey <tromey@adacore.com>
11493
11494 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11495 "push_initial_value" parameter.
11496 (dwarf2_evaluate_property): Likewise.
11497 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11498
11499 2020-04-24 Tom Tromey <tromey@adacore.com>
11500
11501 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11502 (variant::matches, compute_variant_fields_recurse)
11503 (compute_variant_fields_inner, compute_variant_fields): New
11504 functions.
11505 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11506 Use resolved_type after type is made.
11507 (operator==): Add new cases.
11508 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11509 (struct discriminant_range, struct variant, struct variant_part):
11510 New.
11511 (union dynamic_prop_data) <variant_parts, original_type>: New
11512 members.
11513 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11514 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11515 constants.
11516 * value.c (unpack_bits_as_long): Now public.
11517 * value.h (unpack_bits_as_long): Declare.
11518
11519 2020-04-24 Tom Tromey <tromey@adacore.com>
11520
11521 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11522 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11523
11524 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11525
11526 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11527
11528 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11529
11530 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11531 (remove_fork_catchpoint, post_startup_inferior)
11532 (post_attach): Move...
11533 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11534 (remove_fork_catchpoint, post_startup_inferior)
11535 (post_attach): ...here.
11536 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11537 (remove_fork_catchpoint, post_startup_inferior)
11538 (post_attach): Move...
11539 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11540 (remove_fork_catchpoint, post_startup_inferior)
11541 (post_attach): ...here.
11542
11543 2020-04-24 Tom Tromey <tromey@adacore.com>
11544
11545 * nat/windows-nat.h (struct windows_thread_info)
11546 <pc_adjusted>: New member.
11547 * windows-nat.c (windows_fetch_one_register): Check
11548 pc_adjusted.
11549 (windows_nat_target::get_windows_debug_event)
11550 (windows_nat_target::wait): Set pc_adjusted.
11551
11552 2020-04-24 Tom de Vries <tdevries@suse.de>
11553
11554 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11555 Run gdb-add-index inside temp dir.
11556
11557 2020-04-23 Tom Tromey <tromey@adacore.com>
11558
11559 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11560 in loop.
11561
11562 2020-04-23 Luis Machado <luis.machado@linaro.org>
11563
11564 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11565 get_frame_register instead of gdbarch_unwind_pc.
11566
11567 2020-04-23 Tom de Vries <tdevries@suse.de>
11568
11569 * symtab.c (lookup_global_symbol): Prefer def over decl.
11570
11571 2020-04-23 Tom de Vries <tdevries@suse.de>
11572
11573 PR symtab/25807
11574 * block.c (best_symbol, better_symbol): Promote to external.
11575 * block.h (best_symbol, better_symbol): Declare.
11576 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11577 decl.
11578
11579 2020-04-23 Tom Tromey <tromey@adacore.com>
11580
11581 PR ada/25837:
11582 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11583 "const char *", not a "const std::string &".
11584 <name_and_matcher::operator==>: Update.
11585 * unittests/lookup_name_info-selftests.c: Change type of
11586 "result".
11587
11588 2020-04-23 Tom Tromey <tom@tromey.com>
11589
11590 * inferior.h (iterate_over_inferiors): Don't declare.
11591 * inferior.c (iterate_over_inferiors): Remove.
11592 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11593 Remove.
11594 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11595 use iterate_over_inferiors.
11596 (darwin_resume_inferior_it)
11597 (struct resume_inferior_threads_param)
11598 (darwin_resume_inferior_threads_it): Remove.
11599 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11600
11601 2020-04-23 Tom de Vries <tdevries@suse.de>
11602
11603 * blockframe.c (find_pc_partial_function): Use
11604 find_pc_sect_compunit_symtab rather than
11605 objfile->sf->qf->find_pc_sect_compunit_symtab.
11606
11607 2020-04-22 Tom de Vries <tdevries@suse.de>
11608
11609 PR symtab/25764
11610 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11611 in psymtabs.
11612
11613 2020-04-22 Tom de Vries <tdevries@suse.de>
11614
11615 PR symtab/25801
11616 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11617 symtabs.
11618
11619 2020-04-22 Tom de Vries <tdevries@suse.de>
11620
11621 PR symtab/25700
11622 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11623 CU if already created.
11624
11625 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11626
11627 * infrun.c (displaced_step_fixup): Switch to the event_thread
11628 before calling displaced_step_restore, not after.
11629
11630 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11631
11632 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11633 its inferior is not recorded by us.
11634 (record_btrace_target_open): Replace call to
11635 all_non_exited_threads () with call to current_inferior
11636 ()->non_exited_threads ().
11637 (record_btrace_target::stop_recording): Likewise.
11638 (record_btrace_target::close): Likewise.
11639 (record_btrace_target::wait): Likewise.
11640 (record_btrace_target::record_stop_replaying): Likewise.
11641
11642 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11643
11644 * btrace.c (btrace_enable): Throw an error on double enables and
11645 when enabling recording fails.
11646 (btrace_disable): Throw an error if the thread is not recorded.
11647
11648 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11649
11650 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11651 request if we do not have a thread_info.
11652
11653 2020-04-21 Tom de Vries <tdevries@suse.de>
11654
11655 PR gdb/25471
11656 * thread.c
11657 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11658 exception in get_frame_id.
11659
11660 2020-04-20 Tom Tromey <tromey@adacore.com>
11661
11662 * python/python.c (struct gdbpy_event): Mark move constructor as
11663 noexcept.
11664 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11665 constructor as noexcept.
11666 * completer.h (struct completion_result): Mark move constructor as
11667 noexcept.
11668 * completer.c (completion_result::completion_result): Use
11669 initialization style. Don't call reset_match_list.
11670
11671 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11672
11673 * MAINTAINERS (Write After Approval): Add myself.
11674
11675 2020-04-18 Tom Tromey <tom@tromey.com>
11676
11677 * windows-tdep.c (init_w32_command_list)
11678 (w32_prefix_command_valid): Restore.
11679 (_initialize_windows_tdep): Call init_w32_command_list.
11680
11681 2020-04-18 Tom Tromey <tom@tromey.com>
11682
11683 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11684 * value.c (value_fn_field): Update.
11685 * valops.c (find_function_in_inferior)
11686 (value_allocate_space_in_inferior): Update.
11687 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11688 Update.
11689 * tui/tui-source.c (tui_source_window::set_contents): Update.
11690 * symtab.c (lookup_global_or_static_symbol)
11691 (find_function_start_sal_1, skip_prologue_sal)
11692 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11693 * symmisc.c (dump_msymbols, dump_symtab_1)
11694 (maintenance_print_one_line_table): Update.
11695 * symfile.c (init_entry_point_info, section_is_mapped)
11696 (list_overlays_command, simple_read_overlay_table)
11697 (simple_overlay_update_1): Update.
11698 * stap-probe.c (handle_stap_probe): Update.
11699 * stabsread.c (dbx_init_float_type, define_symbol)
11700 (read_one_struct_field, read_enum_type, read_range_type): Update.
11701 * source.c (info_line_command): Update.
11702 * python/python.c (gdbpy_source_objfile_script)
11703 (gdbpy_execute_objfile_script): Update.
11704 * python/py-type.c (save_objfile_types): Update.
11705 * python/py-objfile.c (py_free_objfile): Update.
11706 * python/py-inferior.c (python_new_objfile): Update.
11707 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11708 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11709 (maintenance_check_psymtabs): Update.
11710 * printcmd.c (info_address_command): Update.
11711 * objfiles.h (struct objfile) <arch>: New method, from
11712 get_objfile_arch.
11713 (get_objfile_arch): Don't declare.
11714 * objfiles.c (get_objfile_arch): Remove.
11715 (filter_overlapping_sections): Update.
11716 * minsyms.c (msymbol_is_function): Update.
11717 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11718 (output_nondebug_symbol): Update.
11719 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11720 (mdebug_expand_psymtab): Update.
11721 * machoread.c (macho_add_oso_symfile): Update.
11722 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11723 Update.
11724 * linux-fork.c (checkpoint_command): Update.
11725 * linespec.c (convert_linespec_to_sals): Update.
11726 * jit.c (finalize_symtab): Update.
11727 * infrun.c (insert_exception_resume_from_probe): Update.
11728 * ia64-tdep.c (ia64_find_unwind_table): Update.
11729 * hppa-tdep.c (internalize_unwinds): Update.
11730 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11731 Update.
11732 * gcore.c (call_target_sbrk): Update.
11733 * elfread.c (record_minimal_symbol, elf_symtab_read)
11734 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11735 (elf_gnu_ifunc_resolve_by_got): Update.
11736 * dwarf2/read.c (create_addrmap_from_index)
11737 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11738 (read_debug_names_from_section)
11739 (process_psymtab_comp_unit_reader, add_partial_symbol)
11740 (add_partial_subprogram, process_full_comp_unit)
11741 (read_file_scope, read_func_scope, read_lexical_block_scope)
11742 (read_call_site_scope, dwarf2_ranges_read)
11743 (dwarf2_record_block_ranges, dwarf2_add_field)
11744 (mark_common_block_symbol_computed, read_tag_pointer_type)
11745 (read_tag_string_type, dwarf2_init_float_type)
11746 (dwarf2_init_complex_target_type, read_base_type)
11747 (partial_die_info::read, partial_die_info::read)
11748 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11749 (dwarf2_fetch_die_loc_sect_off): Update.
11750 * dwarf2/loc.c (dwarf2_find_location_expression)
11751 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11752 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11753 (dwarf2_loc_desc_get_symbol_read_needs)
11754 (locexpr_describe_location_piece, locexpr_describe_location_1)
11755 (loclist_describe_location): Update.
11756 * dwarf2/index-write.c (write_debug_names): Update.
11757 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11758 * dtrace-probe.c (dtrace_process_dof): Update.
11759 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11760 (process_one_symbol): Update.
11761 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11762 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11763 (coff_read_enum_type): Update.
11764 * cli/cli-cmds.c (edit_command, list_command): Update.
11765 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11766 * breakpoint.c (create_overlay_event_breakpoint)
11767 (create_longjmp_master_breakpoint)
11768 (create_std_terminate_master_breakpoint)
11769 (create_exception_master_breakpoint, get_sal_arch): Update.
11770 * block.c (block_gdbarch): Update.
11771 * annotate.c (annotate_source_line): Update.
11772
11773 2020-04-17 Tom Tromey <tromey@adacore.com>
11774
11775 * auto-load.c (show_auto_load_cmd): Remove.
11776 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11777 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11778 (maintenance_print_arc_command): Remove.
11779 * tui/tui-win.c (tui_command): Remove.
11780 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11781 * tui/tui-layout.c (tui_layout_command): Remove.
11782 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11783 * python/python.c (user_set_python, user_show_python): Remove.
11784 (_initialize_python): Use add_basic_prefix_cmd,
11785 add_show_prefix_cmd.
11786 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11787 (install_gdb_commands): Use add_basic_prefix_cmd,
11788 add_show_prefix_cmd.
11789 (info_guile_command): Remove.
11790 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11791 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11792 add_show_prefix_cmd.
11793 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11794 Remove do_set and do_show parameters.
11795 * cli/cli-style.c (set_style, show_style): Remove.
11796 (_initialize_cli_style): Use add_basic_prefix_cmd,
11797 add_show_prefix_cmd.
11798 (cli_style_option::add_setshow_commands): Remove do_set and
11799 do_show parameters.
11800 (cli_style_option::add_setshow_commands): Use
11801 add_basic_prefix_cmd, add_show_prefix_cmd.
11802 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11803 (set_style_name): Remove.
11804 * cli/cli-dump.c (dump_command, append_command): Remove.
11805 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11806 (tekhex_dump_command, binary_dump_command)
11807 (binary_append_command): Remove.
11808 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11809 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11810 (init_w32_command_list): Remove; move into ...
11811 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11812 * valprint.c (set_print, show_print, set_print_raw)
11813 (show_print_raw): Remove.
11814 (_initialize_valprint): Use add_basic_prefix_cmd,
11815 add_show_prefix_cmd.
11816 * typeprint.c (set_print_type, show_print_type): Remove.
11817 (_initialize_typeprint): Use add_basic_prefix_cmd,
11818 add_show_prefix_cmd.
11819 * record.c (set_record_command, show_record_command): Remove.
11820 (_initialize_record): Use add_basic_prefix_cmd,
11821 add_show_prefix_cmd.
11822 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11823 add_show_prefix_cmd.
11824 (info_command, show_command, set_debug, show_debug): Remove.
11825 * top.h (set_history, show_history): Don't declare.
11826 * top.c (set_history, show_history): Remove.
11827 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11828 (unset_tdesc_cmd): Remove.
11829 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11830 add_show_prefix_cmd.
11831 * symtab.c (info_module_command): Remove.
11832 (_initialize_symtab): Use add_basic_prefix_cmd.
11833 * symfile.c (overlay_command): Remove.
11834 (_initialize_symfile): Use add_basic_prefix_cmd.
11835 * sparc64-tdep.c (info_adi_command): Remove.
11836 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11837 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11838 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11839 add_show_prefix_cmd.
11840 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11841 (_initialize_serial): Use add_basic_prefix_cmd,
11842 add_show_prefix_cmd.
11843 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11844 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11845 add_show_prefix_cmd.
11846 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11847 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11848 add_show_prefix_cmd.
11849 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11850 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11851 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11852 add_show_prefix_cmd.
11853 * remote.c (remote_command, set_remote_cmd): Remove.
11854 (_initialize_remote): Use add_basic_prefix_cmd.
11855 * record-full.c (set_record_full_command)
11856 (show_record_full_command): Remove.
11857 (_initialize_record_full): Use add_basic_prefix_cmd,
11858 add_show_prefix_cmd.
11859 * record-btrace.c (cmd_set_record_btrace)
11860 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11861 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11862 (cmd_show_record_btrace_pt): Remove.
11863 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11864 add_show_prefix_cmd.
11865 * ravenscar-thread.c (set_ravenscar_command)
11866 (show_ravenscar_command): Remove.
11867 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11868 add_show_prefix_cmd.
11869 * mips-tdep.c (show_mips_command, set_mips_command)
11870 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11871 add_show_prefix_cmd.
11872 * maint.c (maintenance_command, maintenance_info_command)
11873 (maintenance_check_command, maintenance_print_command)
11874 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11875 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11876 add_show_prefix_cmd.
11877 (show_per_command_cmd): Remove.
11878 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11879 Remove.
11880 (maintenance_show_test_settings_cmd): Remove.
11881 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11882 add_show_prefix_cmd.
11883 * maint-test-options.c (maintenance_test_options_command):
11884 Remove.
11885 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11886 * macrocmd.c (macro_command): Remove
11887 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11888 * language.c (set_check, show_check): Remove.
11889 (_initialize_language): Use add_basic_prefix_cmd,
11890 add_show_prefix_cmd.
11891 * infcmd.c (unset_command): Remove.
11892 (_initialize_infcmd): Use add_basic_prefix_cmd.
11893 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11894 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11895 add_show_prefix_cmd.
11896 * go32-nat.c (go32_info_dos_command): Remove.
11897 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11898 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11899 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11900 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11901 (_initialize_frame): Use add_basic_prefix_cmd,
11902 add_show_prefix_cmd.
11903 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11904 (_initialize_dcache): Use add_basic_prefix_cmd,
11905 add_show_prefix_cmd.
11906 * cp-support.c (maint_cplus_command): Remove.
11907 (_initialize_cp_support): Use add_basic_prefix_cmd.
11908 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11909 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11910 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11911 add_basic_prefix_cmd, add_show_prefix_cmd.
11912 * breakpoint.c (save_command): Remove.
11913 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11914 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11915 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11916 add_show_prefix_cmd.
11917 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11918 (set_ada_command, show_ada_command): Remove.
11919 (_initialize_ada_language): Use add_basic_prefix_cmd,
11920 add_show_prefix_cmd.
11921 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11922
11923 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11924
11925 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11926 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11927
11928 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11929
11930 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11931 warning messages.
11932
11933 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11934
11935 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11936 import table is not at beginning of .idata section.
11937
11938 2020-04-16 Pedro Alves <palves@redhat.com>
11939
11940 * inferior.c (delete_inferior): Use delete operator directly
11941 instead of delete_program_space.
11942 * progspace.c (add_program_space): New, factored out from
11943 program_space::program_space.
11944 (remove_program_space): New, factored out from
11945 delete_program_space.
11946 (program_space::program_space): Remove intro comment. Rewrite.
11947 (program_space::~program_space): Remove intro comment. Call
11948 remove_program_space.
11949 (delete_program_space): Delete.
11950 * progspace.h (program_space::program_space): Make explicit. Move
11951 intro comment here, adjusted.
11952 (program_space::~program_space): Move intro comment here,
11953 adjusted.
11954 (delete_program_space): Remove.
11955
11956 2020-04-16 Tom Tromey <tromey@adacore.com>
11957
11958 * windows-nat.c (windows_nat::handle_access_violation): New
11959 function.
11960 * nat/windows-nat.h (handle_access_violation): Declare.
11961 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11962 windows-nat.c. Call handle_access_violation.
11963
11964 2020-04-16 Tom de Vries <tdevries@suse.de>
11965
11966 PR symtab/25791
11967 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11968 CUs without psymtab.
11969
11970 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11971
11972 * python/python.c (do_start_initialization): Don't call
11973 PyEval_InitThreads for Python 3.9 and beyond.
11974
11975 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11976
11977 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11978 thread functions.
11979 (obsd_nat_target::wait): Likewise.
11980
11981 2020-04-15 Tom Tromey <tromey@adacore.com>
11982
11983 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11984 (DEBUG_EXCEPT): Use debug_printf.
11985
11986 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11987
11988 * completer.c (class completion_tracker::completion_hash_entry)
11989 <hash_name>: New member function.
11990 (completion_tracker::discard_completions): New callback to hash a
11991 completion_hash_entry, pass this to htab_create_alloc.
11992
11993 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11994
11995 * windows-nat.c (windows_make_so): Warn rather than stopping with
11996 an error if realpath() fails.
11997
11998 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11999
12000 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12001 (nbsd_nat_target::info_proc): Add do_status.
12002
12003 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12004 Tom de Vries <tdevries@suse.de>
12005
12006 PR symtab/25718
12007 * psympriv.h (struct partial_symtab::read_symtab)
12008 (struct partial_symtab::expand_psymtab)
12009 (struct partial_symtab::read_dependencies): Update comments.
12010 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12011 read_symtab for includer.
12012 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12013 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12014 (struct dwarf2_include_psymtab::m_readin): Remove.
12015 (struct dwarf2_include_psymtab::includer): New member function.
12016 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12017
12018 2020-04-14 Tom de Vries <tdevries@suse.de>
12019
12020 PR symtab/25720
12021 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12022 with NULL symbol_matcher and lookup_name.
12023 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12024 and lookup_name.
12025 * dwarf2/read.c (dw2_expand_symtabs_matching)
12026 (dw2_debug_names_expand_symtabs_matching): Same.
12027 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12028 Make lookup_name a pointer. Update comment.
12029 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12030 lookup_name being a pointer.
12031 * symfile.c (expand_symtabs_matching): Same.
12032 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12033 * linespec.c (iterate_over_all_matching_symtabs): Same.
12034
12035 2020-04-13 Tom Tromey <tom@tromey.com>
12036
12037 * run-on-main-thread.c: Update include.
12038 * unittests/main-thread-selftests.c: Update include.
12039 * tui/tui-win.c: Update include.
12040 * tui/tui-io.c: Update include.
12041 * tui/tui-interp.c: Update include.
12042 * tui/tui-hooks.c: Update include.
12043 * top.h: Update include.
12044 * top.c: Update include.
12045 * ser-base.c: Update include.
12046 * remote.c: Update include.
12047 * remote-notif.c: Update include.
12048 * remote-fileio.c: Update include.
12049 * record-full.c: Update include.
12050 * record-btrace.c: Update include.
12051 * python/python.c: Update include.
12052 * posix-hdep.c: Update include.
12053 * mingw-hdep.c: Update include.
12054 * mi/mi-main.c: Update include.
12055 * mi/mi-interp.c: Update include.
12056 * main.c: Update include.
12057 * linux-nat.c: Update include.
12058 * interps.c: Update include.
12059 * infrun.c: Update include.
12060 * inf-loop.c: Update include.
12061 * event-top.c: Update include.
12062 * event-loop.c: Move to ../gdbsupport/.
12063 * event-loop.h: Move to ../gdbsupport/.
12064 * async-event.h: Update include.
12065 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12066
12067 2020-04-13 Tom Tromey <tom@tromey.com>
12068
12069 * tui/tui-win.c: Include async-event.h.
12070 * remote.c: Include async-event.h.
12071 * remote-notif.c: Include async-event.h.
12072 * record-full.c: Include async-event.h.
12073 * record-btrace.c: Include async-event.h.
12074 * infrun.c: Include async-event.h.
12075 * event-top.c: Include async-event.h.
12076 * event-loop.h: Move some declarations to async-event.h.
12077 * event-loop.c: Don't include ser-event.h or top.h. Move some
12078 code to async-event.c.
12079 * async-event.h: New file.
12080 * async-event.c: New file.
12081 * Makefile.in (COMMON_SFILES): Add async-event.c.
12082 (HFILES_NO_SRCDIR): Add async-event.h.
12083
12084 2020-04-13 Tom Tromey <tom@tromey.com>
12085
12086 * utils.c (flush_streams): New function.
12087 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12088
12089 2020-04-13 Tom Tromey <tom@tromey.com>
12090
12091 * event-loop.c (handle_file_event): Use warning, not
12092 printf_unfiltered.
12093
12094 2020-04-13 Tom Tromey <tom@tromey.com>
12095
12096 * event-loop.c: Include <chrono>.
12097
12098 2020-04-13 Tom Tromey <tom@tromey.com>
12099
12100 * gdb_select.h: Move to ../gdbsupport/.
12101 * event-loop.c: Update include path.
12102 * top.c: Update include path.
12103 * ser-base.c: Update include path.
12104 * ui-file.c: Update include path.
12105 * ser-tcp.c: Update include path.
12106 * guile/scm-ports.c: Update include path.
12107 * posix-hdep.c: Update include path.
12108 * ser-unix.c: Update include path.
12109 * gdb_usleep.c: Update include path.
12110 * mingw-hdep.c: Update include path.
12111 * inflow.c: Update include path.
12112 * infrun.c: Update include path.
12113 * event-top.c: Update include path.
12114
12115 2020-04-13 Tom Tromey <tom@tromey.com>
12116
12117 * configure: Rebuild.
12118 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12119
12120 2020-04-13 Tom Tromey <tom@tromey.com>
12121
12122 * event-loop.h (start_event_loop): Don't declare.
12123 * event-loop.c (start_event_loop): Move...
12124 * main.c (start_event_loop): ...here. Now static.
12125
12126 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12127
12128 * MAINTAINERS: Update my email address.
12129
12130 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12131
12132 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12133 IP_ALL.
12134
12135 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12136
12137 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12138 (nbsd_nat_target::info_proc): Add do_cmdline.
12139
12140 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12141
12142 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12143 (nbsd_nat_target::info_proc): Add do_cwd.
12144
12145 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12146
12147 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12148
12149 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12150
12151 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12152 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12153 (nbsd_nat_target::info_proc): New functions.
12154 * nbsd-nat.c (kinfo_get_vmmap): New function.
12155 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12156 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12157 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12158 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12159 functions.
12160 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12161 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12162 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12163 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12164 (KINFO_VME_FLAG_GROWS_DOWN): New.
12165
12166 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12167
12168 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12169 bit shift.
12170
12171 2020-04-10 Tom Tromey <tromey@adacore.com>
12172
12173 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12174
12175 2020-04-10 Tom Tromey <tromey@adacore.com>
12176
12177 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12178 separate debug files.
12179
12180 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12181
12182 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12183 Move to...
12184 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12185 ... here.
12186 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12187 Check for STATUS_WX86_BREAKPOINT.
12188 (windows_nat_target::wait): Same.
12189
12190 2020-04-10 Tom de Vries <tdevries@suse.de>
12191
12192 PR cli/25808
12193 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12194
12195 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12196
12197 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12198 (Write After Approval): Remove Tom de Vries.
12199
12200 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12201
12202 revert partially:
12203 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12204
12205 * buildsym.c (record_line): Fix undefined behavior and preserve
12206 lines at eof.
12207
12208 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12209
12210 * auxv.h (svr4_auxv_parse): New.
12211 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12212 and generic_auxv_parse.
12213 (svr4_auxv_parse): Add.
12214 * obsd-tdep.c: Include "auxv.h".
12215 (obsd_auxv_parse): Remove.
12216 (obsd_init_abi): Remove comment.
12217 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12218 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12219 * nbsd-tdep.c: Include "auxv.h".
12220 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12221
12222 2020-04-08 Tom Tromey <tromey@adacore.com>
12223
12224 * nat/windows-nat.h (last_wait_event): Don't declare.
12225 (wait_for_debug_event): Update comment.
12226 * nat/windows-nat.c (last_wait_event): Now static.
12227
12228 2020-04-08 Tom Tromey <tromey@adacore.com>
12229
12230 * windows-nat.c (wait_for_debug_event): Move to
12231 nat/windows-nat.c.
12232 * nat/windows-nat.h (wait_for_debug_event): Declare.
12233 * nat/windows-nat.c (wait_for_debug_event): Move from
12234 windows-nat.c. No longer static.
12235
12236 2020-04-08 Tom Tromey <tromey@adacore.com>
12237
12238 * windows-nat.c (get_windows_debug_event): Use
12239 fetch_pending_stop.
12240 * nat/windows-nat.h (fetch_pending_stop): Declare.
12241 * nat/windows-nat.c (fetch_pending_stop): New function.
12242
12243 2020-04-08 Tom Tromey <tromey@adacore.com>
12244
12245 * windows-nat.c (windows_continue): Use matching_pending_stop and
12246 continue_last_debug_event.
12247 * nat/windows-nat.h (matching_pending_stop)
12248 (continue_last_debug_event): Declare.
12249 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12250 (matching_pending_stop, continue_last_debug_event): New
12251 functions.
12252
12253 2020-04-08 Tom Tromey <tromey@adacore.com>
12254
12255 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12256 (handle_exception_result): Move to nat/windows-nat.h.
12257 (DEBUG_EXCEPTION_SIMPLE): Remove.
12258 (windows_nat::handle_ms_vc_exception): New function.
12259 (handle_exception): Move to nat/windows-nat.c.
12260 (get_windows_debug_event): Update.
12261 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12262 nat/windows-nat.c.
12263 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12264 (handle_exception_result): Move from windows-nat.c.
12265 (handle_exception): Declare.
12266 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12267 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12268 windows-nat.c.
12269
12270 2020-04-08 Tom Tromey <tromey@adacore.com>
12271
12272 * windows-nat.c (exception_count, event_count): Remove.
12273 (handle_exception, get_windows_debug_event)
12274 (do_initial_windows_stuff): Update.
12275
12276 2020-04-08 Tom Tromey <tromey@adacore.com>
12277
12278 * windows-nat.c (windows_nat::handle_load_dll)
12279 (windows_nat::handle_unload_dll): Rename. No longer static.
12280 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12281 Declare.
12282
12283 2020-04-08 Tom Tromey <tromey@adacore.com>
12284
12285 * complaints.h (stop_whining): Declare at top-level.
12286 (complaint): Don't declare stop_whining.
12287
12288 2020-04-08 Tom Tromey <tromey@adacore.com>
12289
12290 * windows-nat.c (windows_nat::handle_output_debug_string):
12291 Rename. No longer static.
12292 * nat/windows-nat.h (handle_output_debug_string): Declare.
12293
12294 2020-04-08 Tom Tromey <tromey@adacore.com>
12295
12296 * windows-nat.c (current_process_handle, current_process_id)
12297 (main_thread_id, last_sig, current_event, last_wait_event)
12298 (current_windows_thread, desired_stop_thread_id, pending_stops)
12299 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12300 (display_selectors, fake_create_process)
12301 (get_windows_debug_event): Update.
12302 * nat/windows-nat.h (current_process_handle, current_process_id)
12303 (main_thread_id, last_sig, current_event, last_wait_event)
12304 (current_windows_thread, desired_stop_thread_id, pending_stops)
12305 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12306 * nat/windows-nat.c (current_process_handle, current_process_id)
12307 (main_thread_id, last_sig, current_event, last_wait_event)
12308 (current_windows_thread, desired_stop_thread_id, pending_stops)
12309 (siginfo_er): New globals. Move from windows-nat.c.
12310
12311 2020-04-08 Tom Tromey <tromey@adacore.com>
12312
12313 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12314 (handle_load_dll): Update.
12315 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12316
12317 2020-04-08 Tom Tromey <tromey@adacore.com>
12318
12319 * windows-nat.c (enum thread_disposition_type): Move to
12320 nat/windows-nat.h.
12321 (windows_nat::thread_rec): Rename from thread_rec. No longer
12322 static.
12323 (windows_add_thread, windows_nat_target::fetch_registers)
12324 (windows_nat_target::store_registers, handle_exception)
12325 (windows_nat_target::resume, get_windows_debug_event)
12326 (windows_nat_target::get_tib_address)
12327 (windows_nat_target::thread_name)
12328 (windows_nat_target::thread_alive): Update.
12329 * nat/windows-nat.h (enum thread_disposition_type): Move from
12330 windows-nat.c.
12331 (thread_rec): Declare.
12332
12333 2020-04-08 Tom Tromey <tromey@adacore.com>
12334
12335 * windows-nat.c: Add "using namespace".
12336 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12337 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12338
12339 2020-04-08 Tom Tromey <tromey@adacore.com>
12340
12341 * nat/windows-nat.h (struct windows_thread_info): Declare
12342 destructor.
12343 * nat/windows-nat.c (~windows_thread_info): New.
12344
12345 2020-04-08 Tom Tromey <tromey@adacore.com>
12346
12347 PR gdb/22992
12348 * windows-nat.c (current_event): Update comment.
12349 (last_wait_event, desired_stop_thread_id): New globals.
12350 (struct pending_stop): New.
12351 (pending_stops): New global.
12352 (windows_nat_target) <stopped_by_sw_breakpoint>
12353 <supports_stopped_by_sw_breakpoint>: New methods.
12354 (windows_fetch_one_register): Add assertions. Adjust PC.
12355 (windows_continue): Handle pending stops. Suspend other threads
12356 when stepping. Use last_wait_event
12357 (wait_for_debug_event): New function.
12358 (get_windows_debug_event): Use wait_for_debug_event. Handle
12359 pending stops. Queue spurious stops.
12360 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12361 (windows_nat_target::kill): Use wait_for_debug_event.
12362 * nat/windows-nat.h (struct windows_thread_info)
12363 <stopped_at_software_breakpoint>: New field.
12364 * nat/windows-nat.c (windows_thread_info::resume): Clear
12365 stopped_at_software_breakpoint.
12366
12367 2020-04-08 Tom Tromey <tromey@adacore.com>
12368
12369 * windows-nat.c (enum thread_disposition_type): New.
12370 (thread_rec): Replace "get_context" parameter with "disposition";
12371 change type.
12372 (windows_add_thread, windows_nat_target::fetch_registers)
12373 (windows_nat_target::store_registers, handle_exception)
12374 (windows_nat_target::resume, get_windows_debug_event)
12375 (windows_nat_target::get_tib_address)
12376 (windows_nat_target::thread_name)
12377 (windows_nat_target::thread_alive): Update.
12378
12379 2020-04-08 Tom Tromey <tromey@adacore.com>
12380
12381 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12382 (windows_continue): Use windows_continue::resume.
12383 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12384 resume>: Declare new methods.
12385 * nat/windows-nat.c: New file.
12386 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12387
12388 2020-04-08 Tom Tromey <tromey@adacore.com>
12389
12390 * windows-nat.c (windows_add_thread, windows_delete_thread)
12391 (windows_nat_target::fetch_registers)
12392 (windows_nat_target::store_registers, fake_create_process)
12393 (windows_nat_target::resume, windows_nat_target::resume)
12394 (get_windows_debug_event, windows_nat_target::wait)
12395 (windows_nat_target::pid_to_str)
12396 (windows_nat_target::get_tib_address)
12397 (windows_nat_target::get_ada_task_ptid)
12398 (windows_nat_target::thread_name)
12399 (windows_nat_target::thread_alive): Use lwp, not tid.
12400
12401 2020-04-08 Tom Tromey <tromey@adacore.com>
12402
12403 * windows-nat.c (handle_exception)
12404 (windows_nat_target::thread_name): Update.
12405 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12406 <name>: Now unique_xmalloc_ptr.
12407
12408 2020-04-08 Tom Tromey <tromey@adacore.com>
12409
12410 * windows-nat.c (thread_rec)
12411 (windows_nat_target::fetch_registers): Update.
12412 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12413 Update comment.
12414 <debug_registers_changed, reload_context>: Now bool.
12415
12416 2020-04-08 Tom Tromey <tromey@adacore.com>
12417
12418 * windows-nat.c (windows_add_thread): Use new.
12419 (windows_init_thread_list, windows_delete_thread): Use delete.
12420 (get_windows_debug_event): Update.
12421 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12422 destructor, and initializers.
12423
12424 2020-04-08 Tom Tromey <tromey@adacore.com>
12425
12426 * windows-nat.c (struct windows_thread_info): Remove.
12427 * nat/windows-nat.h: New file.
12428
12429 2020-04-08 Tom Tromey <tromey@adacore.com>
12430
12431 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12432 (thread_rec, windows_add_thread, windows_delete_thread)
12433 (windows_continue): Update.
12434
12435 2020-04-08 Tom Tromey <tromey@adacore.com>
12436
12437 * windows-nat.c (struct windows_thread_info): Remove typedef.
12438 (thread_head): Remove.
12439 (thread_list): New global.
12440 (thread_rec, windows_add_thread, windows_init_thread_list)
12441 (windows_delete_thread, windows_continue): Update.
12442
12443 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12444
12445 * windows-tdep.h (windows_init_abi): Add comment.
12446 (cygwin_init_abi): New declaration.
12447 * windows-tdep.c: Split signal enumeration in two, one for
12448 Windows and one for Cygwin.
12449 (windows_gdb_signal_to_target): Only deal with signal of the
12450 Windows OS ABI.
12451 (cygwin_gdb_signal_to_target): New function.
12452 (windows_init_abi): Rename to windows_init_abi_common, don't set
12453 gdb_signal_to_target gdbarch method. Add new new function with
12454 this name.
12455 (cygwin_init_abi): New function.
12456 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12457 comment. Don't call windows_init_abi.
12458 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12459 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12460 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12461 i386_windows_init_abi_common, don't call windows_init_abi. Add
12462 a new function of this name.
12463 (i386_cygwin_init_abi): New function.
12464 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12465 OS ABI Cygwin.
12466
12467 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12468
12469 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12470 parameter.c.
12471 (dwarf2_read_gdb_index): Update.
12472
12473 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12474
12475 * nbsd-tdep.c: Include "objfiles.h".
12476 (nbsd_skip_solib_resolver): New.
12477 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12478
12479 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12480
12481 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12482 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12483 with DW_LLE_base_addressx are being emitted in DWARFv5.
12484 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12485 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12486 unsigned integer.
12487
12488 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12489
12490 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12491 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12492 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12493 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12494 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12495 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12496 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12497
12498
12499 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12500
12501 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12502 (read_loclist_index): New function definition.
12503 (lookup_loclist_base): New function definition.
12504 (read_loclist_header): New function definition.
12505 (dwarf2_cu): Add loclist_base and loclist_header field.
12506 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12507 (read_full_die_1): Read the value of DW_AT_loclists_base.
12508 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12509 (read_attribute_value): Handle DW_FORM_loclistx.
12510 (skip_one_die): Handle DW_FORM_loclistx.
12511 (loclist_header): New structure declaration.
12512 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12513
12514 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12515
12516 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12517 constructor. Remove `addr` parameter from other constructor and
12518 add `per_cu` parameter.
12519 * dwarf2/read.c (create_partial_symtab): Update.
12520
12521 2020-04-07 Tom de Vries <tdevries@suse.de>
12522
12523 PR symtab/25796
12524 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12525 (partial_die_info::fixup): Inherit has_const_value.
12526
12527 2020-04-07 Tom de Vries <tdevries@suse.de>
12528
12529 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12530 symbols without address.
12531
12532 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12533
12534 * nbsd-nat.h (struct thread_info): Add forward declaration.
12535 (nbsd_nat_target::thread_alive): Add.
12536 (nbsd_nat_target::thread_name): Likewise.
12537 (nbsd_nat_target::update_thread_list): Likewise.
12538 (update_thread_list::post_attach): Likewise.
12539 (post_attach::pid_to_str): Likewise.
12540 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12541 (nbsd_thread_lister): Add.
12542 (nbsd_nat_target::thread_alive): Likewise.
12543 (nbsd_nat_target::thread_name): Likewise.
12544 (nbsd_add_threads): Likewise.
12545 (update_thread_list::post_attach): Likewise.
12546 (nbsd_nat_target::update_thread_list): Likewise.
12547 (post_attach::pid_to_str): Likewise.
12548
12549 2020-04-06 Tom Tromey <tromey@adacore.com>
12550
12551 * ada-valprint.c (print_variant_part): Extract the variant field.
12552 (print_field_values): Use the field as the outer value when
12553 recursing.
12554
12555 2020-04-06 Tom Tromey <tromey@adacore.com>
12556
12557 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12558 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12559 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12560 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12561 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12562
12563 2020-04-06 Tom Tromey <tromey@adacore.com>
12564
12565 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12566 TYPE_CODE_ERROR.
12567
12568 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12569
12570 * nbsd-tdep.c: Include "gdbarch.h".
12571 Define enum with NetBSD signal numbers.
12572 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12573 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12574 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12575 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12576 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12577 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12578 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12579 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12580 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12581 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12582 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12583 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12584
12585 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12586
12587 PR gdb/25325
12588 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12589
12590 2020-04-03 Tom Tromey <tromey@adacore.com>
12591
12592 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12593 Read constant block.
12594
12595 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12596
12597 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12598 (gdb_bfd_get_full_section_contents): New declaration.
12599 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12600 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12601 gdb_bfd_get_full_section_contents.
12602
12603 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12604
12605 * exec.c (build_section_table): Replace internal_error with
12606 gdb_assert.
12607 (section_table_xfer_memory_partial): Likewise.
12608 * mdebugread.c (parse_partial_symbols): Likewise.
12609 * psymtab.c (lookup_partial_symbol): Likewise.
12610 * utils.c (wrap_here): Likewise.
12611
12612 2020-04-02 Tom Tromey <tromey@adacore.com>
12613
12614 * f-lang.c (build_fortran_types): Use arch_type to initialize
12615 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12616
12617 2020-04-02 Tom Tromey <tromey@adacore.com>
12618
12619 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12620 of attributes.
12621
12622 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12623 Bernd Edlinger <bernd.edlinger@hotmail.de>
12624 Tom Tromey <tromey@adacore.com>
12625
12626 * buildsym.c (buildsym_compunit::record_line): Remove
12627 deduplication code.
12628
12629 2020-04-02 Tom de Vries <tdevries@suse.de>
12630
12631 PR ada/24671
12632 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12633
12634 2020-04-02 Tom de Vries <tdevries@suse.de>
12635
12636 * dwarf2/read.c (dwarf2_gdb_index_functions,
12637 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12638 NULL.
12639 * psymtab.c (psym_lookup_global_symbol_language): New function.
12640 (psym_functions): Init psym_lookup_global_symbol_language with
12641 psym_lookup_global_symbol_language.
12642 * symfile-debug.c (debug_sym_quick_functions): Init
12643 lookup_global_symbol_language with NULL.
12644 * symfile.c (set_initial_language): Remove fixme comment.
12645 * symfile.h (struct quick_symbol_functions): Add
12646 lookup_global_symbol_language.
12647 * symtab.c (find_quick_global_symbol_language): New function.
12648 (find_main_name): Use find_quick_global_symbol_language.
12649
12650 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12651
12652 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12653
12654 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12655
12656 * buildsym.c (record_line): Fix undefined behavior and preserve
12657 lines at eof.
12658
12659 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12660
12661 * buildsym.c (record_line): Fix the resizing condition.
12662
12663 2020-04-01 Tom Tromey <tom@tromey.com>
12664
12665 * value.h (value_literal_complex): Add comment.
12666 * valops.c (value_literal_complex): Refer to value.h.
12667
12668 2020-04-01 Tom Tromey <tom@tromey.com>
12669
12670 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12671 (scalar_type): New rule, from typebase.
12672 (typebase): Use scalar_type. Recognize complex types.
12673 (field_name): Handle FLOAT_KEYWORD.
12674 (ident_tokens): Add _Complex and __complex__.
12675
12676 2020-04-01 Tom Tromey <tom@tromey.com>
12677
12678 PR exp/25299:
12679 * valarith.c (promotion_type, complex_binop): New functions.
12680 (scalar_binop): Handle complex numbers. Use promotion_type.
12681 (value_pos, value_neg, value_complement): Handle complex numbers.
12682
12683 2020-04-01 Tom Tromey <tom@tromey.com>
12684
12685 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12686 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12687 (parse_number): Handle complex numbers.
12688
12689 2020-04-01 Tom Tromey <tom@tromey.com>
12690
12691 * c-valprint.c (c_decorations): Change complex suffix to "i".
12692
12693 2020-04-01 Tom Tromey <tom@tromey.com>
12694
12695 * valprint.c (generic_value_print_complex): Use accessors.
12696 * value.h (value_real_part, value_imaginary_part): Declare.
12697 * valops.c (value_real_part, value_imaginary_part): New
12698 functions.
12699 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12700
12701 2020-04-01 Tom Tromey <tom@tromey.com>
12702
12703 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12704 (read_range_type): Update.
12705 * mdebugread.c (basic_type): Update.
12706 * go-lang.c (build_go_types): Use init_complex_type.
12707 * gdbtypes.h (struct main_type) <complex_type>: New member.
12708 (init_complex_type): Update.
12709 (arch_complex_type): Don't declare.
12710 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12711 Make name if none given. Use alloc_type_copy. Look for cached
12712 complex type.
12713 (arch_complex_type): Remove.
12714 (gdbtypes_post_init): Use init_complex_type.
12715 * f-lang.c (build_fortran_types): Use init_complex_type.
12716 * dwarf2/read.c (read_base_type): Update.
12717 * d-lang.c (build_d_types): Use init_complex_type.
12718 * ctfread.c (read_base_type): Update.
12719
12720 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12721
12722 * infrun.c (stop_all_threads): Update assertion, plus when
12723 stopping threads, take into account that we might be trying
12724 to stop an all-stop target.
12725 (stop_waiting): Call 'stop_all_threads' if there exists a
12726 non-stop target.
12727
12728 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12729
12730 * target.h (exists_non_stop_target): New function declaration.
12731 * target.c (exists_non_stop_target): New function.
12732
12733 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12734
12735 PR gdb/24789
12736 * eval.c (is_integral_or_integral_reference): New function.
12737 (evaluate_subexp_standard): Allow integer references in
12738 pointer arithmetic.
12739
12740 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12741
12742 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12743 check for no ptid in the stop reply when the target is non-stop.
12744
12745 2020-04-01 Tom Tromey <tromey@adacore.com>
12746
12747 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12748 "name" parameter to rvalue reference. Initialize m_name_holder.
12749 <lookup_name_info>: New overloads.
12750 <name>: Return gdb::string_view.
12751 <c_str>: New method.
12752 <make_ignore_params>: Update.
12753 <search_name_hash>: Update.
12754 <language_lookup_name>: Return const char *.
12755 <m_name>: Change type.
12756 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12757 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12758 (lookup_name_info::match_any): Update.
12759 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12760 Update.
12761 * minsyms.c (linkage_name_str): Update.
12762 * language.c (default_symbol_name_matcher): Update.
12763 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12764 Update.
12765 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12766 (ada_lookup_name_info::ada_lookup_name_info): Update.
12767 (literal_symbol_name_matcher): Update.
12768
12769 2020-04-01 Tom Tromey <tromey@adacore.com>
12770
12771 * psymtab.c (psymtab_search_name): Remove function.
12772 (psym_lookup_symbol): Create search name and lookup name here.
12773 (lookup_partial_symbol): Remove "name" parameter; add
12774 lookup_name.
12775 (psym_expand_symtabs_for_function): Update.
12776
12777 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12778
12779 PR tui/25597:
12780 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12781
12782 2020-03-31 Tom Tromey <tromey@adacore.com>
12783
12784 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12785 memcpy.
12786
12787 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12788
12789 * features/riscv/32bit-csr.xml: Regenerated.
12790 * features/riscv/64bit-csr.xml: Regenerated.
12791
12792 2020-03-30 Tom Tromey <tromey@adacore.com>
12793
12794 * ada-valprint.c (print_variant_part): Update.
12795 * ada-lang.h (ada_which_variant_applies): Update.
12796 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12797 outer_valaddr parameters; replace with "outer" value parameter.
12798 (to_fixed_variant_branch_type): Update.
12799
12800 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12801
12802 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12803 <list>. Remove inclusion of observable.h.
12804 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12805 (struct arch_lwp_info): New struct.
12806 (class ppc_linux_dreg_interface): New class.
12807 (struct ppc_linux_process_info): New struct.
12808 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12809 <low_new_clone, low_forget_process, low_prepare_to_resume>
12810 <copy_thread_dreg_state, mark_thread_stale>
12811 <mark_debug_registers_changed, register_hw_breakpoint>
12812 <clear_hw_breakpoint, register_wp, clear_wp>
12813 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12814 <num_memory_accesses, get_trigger_type>
12815 <create_watchpoint_request, hwdebug_point_cmp>
12816 <init_arch_lwp_info, get_arch_lwp_info>
12817 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12818 methods.
12819 <struct ptid_hash>: New inner struct.
12820 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12821 members.
12822 (saved_dabr_value, hwdebug_info, max_slots_number)
12823 (struct hw_break_tuple, struct thread_points, ppc_threads)
12824 (have_ptrace_hwdebug_interface)
12825 (hwdebug_find_thread_points_by_tid)
12826 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12827 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12828 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12829 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12830 use m_dreg_interface.
12831 (hwdebug_point_cmp): Change to...
12832 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12833 reference arguments instead of pointers.
12834 (ppc_linux_nat_target::ranged_break_num_registers): Use
12835 m_dreg_interface.
12836 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12837 m_dreg_interface. Call register_hw_breakpoint.
12838 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12839 m_dreg_interface. Call clear_hw_breakpoint.
12840 (get_trigger_type): Change to...
12841 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12842 comment.
12843 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12844 use m_dreg_interface. Call register_hw_breakpoint.
12845 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12846 use m_dreg_interface. Call clear_hw_breakpoint.
12847 (can_use_watchpoint_cond_accel): Change to...
12848 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12849 method. Update comment, use m_dreg_interface and
12850 m_process_info.
12851 (calculate_dvc): Change to...
12852 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12853 m_dreg_interface.
12854 (num_memory_accesses): Change to...
12855 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12856 (check_condition): Change to...
12857 (ppc_linux_nat_target::check_condition): ...this method.
12858 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12859 comment, use m_dreg_interface.
12860 (create_watchpoint_request): Change to...
12861 (ppc_linux_nat_target::create_watchpoint_request): ...this
12862 method. Use m_dreg_interface.
12863 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12864 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12865 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12866 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12867 (ppc_linux_nat_target::low_forget_process)
12868 (ppc_linux_nat_target::low_new_fork)
12869 (ppc_linux_nat_target::low_new_clone)
12870 (ppc_linux_nat_target::low_delete_thread)
12871 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12872 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12873 only call mark_thread_stale.
12874 (ppc_linux_thread_exit): Remove.
12875 (ppc_linux_nat_target::stopped_data_address): Change to...
12876 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12877 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12878 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12879 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12880 comment. Call low_stopped_data_address.
12881 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12882 m_dreg_interface.
12883 (ppc_linux_nat_target::masked_watch_num_registers): Use
12884 m_dreg_interface.
12885 (ppc_linux_nat_target::copy_thread_dreg_state)
12886 (ppc_linux_nat_target::mark_thread_stale)
12887 (ppc_linux_nat_target::mark_debug_registers_changed)
12888 (ppc_linux_nat_target::register_hw_breakpoint)
12889 (ppc_linux_nat_target::clear_hw_breakpoint)
12890 (ppc_linux_nat_target::register_wp)
12891 (ppc_linux_nat_target::clear_wp)
12892 (ppc_linux_nat_target::init_arch_lwp_info)
12893 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12894 (_initialize_ppc_linux_nat): Remove observer callback.
12895
12896 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12897
12898 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12899 (ppc_linux_nat_target::auxv_parse)
12900 (ppc_linux_nat_target::read_description)
12901 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12902 Move up.
12903
12904 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12905
12906 * linux-nat.h (low_new_clone): New method.
12907 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12908
12909 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12910
12911 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12912 (dbx_expand_psymtab): ... this.
12913 (start_psymtab): Update.
12914 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12915 (mdebug_expand_psymtab): ... this.
12916 (parse_partial_symbols): Update.
12917 (new_psymtab): Update.
12918 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12919 (xcoff_expand_psymtab): ... this.
12920 (xcoff_start_psymtab): Update.
12921
12922 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12923
12924 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12925 <expand_dependencies>: ... this.
12926 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12927 (partial_symtab::expand_dependencies): ... this.
12928 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12929 Update.
12930 (dwarf2_psymtab::expand_psymtab): Update.
12931 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12932 * mdebugread.c (psymtab_to_symtab_1): Update.
12933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12934
12935 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12936
12937 * psympriv.h (discard_psymtab): Remove.
12938 * dbxread.c (dbx_end_psymtab): Update.
12939 * xcoffread.c (xcoff_end_psymtab): Update.
12940
12941 2020-03-28 Tom Tromey <tom@tromey.com>
12942
12943 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12944 comment.
12945
12946 2020-03-28 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12949
12950 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12951
12952 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12953
12954 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12955
12956 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12957
12958 2020-03-26 Tom Tromey <tom@tromey.com>
12959
12960 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12961 (mark_common_block_symbol_computed, read_tag_string_type)
12962 (attr_to_dynamic_prop, read_subrange_type): Update.
12963 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12964 to be methods on struct attribute.
12965 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12966 (read_call_site_scope, partial_die_info::read)
12967 (partial_die_info::read, lookup_die_type, follow_die_ref):
12968 Update.
12969 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12970 from dwarf2_get_ref_die_offset.
12971 (attribute::constant_value): New method, from
12972 dwarf2_get_attr_constant_value.
12973 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12974 Declare method.
12975 <constant_value>: New method.
12976
12977 2020-03-26 Tom Tromey <tom@tromey.com>
12978
12979 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12980 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12981 (dwarf_type_encoding_name): Move to stringify.c.
12982 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12983 * dwarf2/stringify.c: New file.
12984 * dwarf2/stringify.h: New file.
12985
12986 2020-03-26 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12989 Rewrite.
12990
12991 2020-03-26 Tom Tromey <tom@tromey.com>
12992
12993 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12994 methods.
12995 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12996 (lookup_ranges_base): Likewise.
12997 (read_cutu_die_from_dwo, read_full_die_1): Update.
12998
12999 2020-03-26 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (read_import_statement, read_file_scope)
13002 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13003 (read_lexical_block_scope, read_call_site_scope)
13004 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13005 (handle_struct_member_die, process_structure_scope)
13006 (update_enumeration_type_from_children)
13007 (process_enumeration_scope, read_array_type, read_common_block)
13008 (read_namespace, read_module, read_subroutine_type): Update.
13009 (sibling_die): Remove.
13010
13011 2020-03-26 Tom Tromey <tom@tromey.com>
13012
13013 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13014 (build_type_psymtabs_reader, read_structure_type)
13015 (read_enumeration_type, read_full_die_1): Update.
13016 (dwarf2_attr_no_follow): Move to die.h.
13017 * dwarf2/die.h (struct die_info) <attr>: New method.
13018
13019 2020-03-26 Tom Tromey <tom@tromey.com>
13020
13021 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13022 <base_address>: Now an optional.
13023 (dwarf2_find_base_address, dwarf2_rnglists_process)
13024 (dwarf2_ranges_process, fill_in_loclist_baton)
13025 (dwarf2_symbol_mark_computed): Update.
13026
13027 2020-03-26 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2/read.c (struct die_info): Move to die.h.
13030 * dwarf2/die.h: New file.
13031
13032 2020-03-26 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13035 * dwarf2/read.c
13036 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13037 Move to line-header.c.
13038 (read_checked_initial_length_and_offset, read_formatted_entries):
13039 Likewise.
13040 (dwarf_decode_line_header): Split into two.
13041 * dwarf2/line-header.c
13042 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13043 Move from read.c.
13044 (read_checked_initial_length_and_offset, read_formatted_entries):
13045 Likewise.
13046 (dwarf_decode_line_header): New function, split from read.c.
13047
13048 2020-03-26 Tom Tromey <tom@tromey.com>
13049
13050 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13051 Declare method.
13052 * dwarf2/read.c (read_attribute_value): Update.
13053 (dwarf2_per_objfile::read_line_string): Rename from
13054 read_indirect_line_string.
13055 (read_formatted_entries): Update.
13056
13057 2020-03-26 Tom Tromey <tom@tromey.com>
13058
13059 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13060 variable.
13061
13062 2020-03-26 Tom Tromey <tom@tromey.com>
13063
13064 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13065 const.
13066 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13067 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13068 parameter const.
13069
13070 2020-03-26 Tom Tromey <tom@tromey.com>
13071
13072 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13073 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13074 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13075 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13076
13077 2020-03-26 Tom Tromey <tom@tromey.com>
13078
13079 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13080 file_names_size, file_full_name, file_file_name>: Use const.
13081 <file_name_at, file_names>: Add const overload.
13082 * dwarf2/line-header.c (line_header::file_file_name)
13083 (line_header::file_full_name): Update.
13084
13085 2020-03-26 Tom Tromey <tom@tromey.com>
13086
13087 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13088 (macro_start_file, consume_improper_spaces)
13089 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13090 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13091 (dwarf_decode_macros): Move to macro.c.
13092 * dwarf2/macro.c: New file.
13093 * dwarf2/macro.h: New file.
13094 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13095
13096 2020-03-26 Tom Tromey <tom@tromey.com>
13097
13098 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13099 method.
13100 * dwarf2/section.c: New method. From
13101 read_indirect_string_at_offset_from.
13102 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13103 (read_indirect_string_at_offset_from): Move to section.c.
13104 (read_indirect_string_at_offset): Rewrite.
13105 (read_indirect_line_string_at_offset): Remove.
13106 (read_indirect_string, read_indirect_line_string)
13107 (dwarf_decode_macro_bytes): Update.
13108
13109 2020-03-26 Tom Tromey <tom@tromey.com>
13110
13111 * dwarf2/section.h (struct dwarf2_section_info)
13112 <overload_complaint>: Declare.
13113 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13114 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13115 Rename from dwarf2_section_buffer_overflow_complaint.
13116 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13117 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13118
13119 2020-03-26 Tom Tromey <tom@tromey.com>
13120
13121 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13122 Declare.
13123 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13124 Move from read.c.
13125 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13126 to section.c.
13127
13128 2020-03-26 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13131
13132 2020-03-26 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13135 "builder".
13136 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13137 parameter.
13138 (dwarf_decode_macros): Update.
13139
13140 2020-03-26 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/read.c (read_attribute_value): Update.
13143 (read_indirect_string_from_dwz): Move to dwz.c; change into
13144 method.
13145 (dwarf_decode_macro_bytes): Update.
13146 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13147 * dwarf2/dwz.c: New file.
13148 * Makefile.in (COMMON_SFILES): Add dwz.c.
13149
13150 2020-03-26 Tom Tromey <tom@tromey.com>
13151
13152 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13153 * dwarf2/read.c: Add include.
13154 * dwarf2/index-write.c: Add include.
13155 * dwarf2/index-cache.c: Add include.
13156 * dwarf2/dwz.h: New file.
13157
13158 2020-03-25 Tom Tromey <tom@tromey.com>
13159
13160 * compile/compile-object-load.c (get_out_value_type): Mention
13161 correct symbol name in error message.
13162
13163 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13164
13165 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13166
13167 2020-03-25 Tom de Vries <tdevries@suse.de>
13168
13169 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13170 * symmisc.c (dump_symtab_1): Print user and includes fields.
13171 (maintenance_info_symtabs): Same.
13172
13173 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13174
13175 PR gdb/25534
13176 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13177 (riscv_regcache_cooked_write): New function.
13178 (riscv_push_dummy_call): Use new function.
13179 (riscv_return_value): Likewise.
13180
13181 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13182
13183 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13184 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13185 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13186 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13187 * infrun.c (follow_fork): Likewise.
13188 (follow_fork_inferior): Likewise.
13189 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13190 * linux-nat.h (class linux_nat_target): Likewise.
13191 * remote.c (class remote_target) <follow_fork>: Likewise.
13192 (remote_target::follow_fork): Likewise.
13193 * target-delegates.c: Re-generate.
13194 * target.c (default_follow_fork): Likewise.
13195 (target_follow_fork): Likewise.
13196 * target.h (struct target_ops) <follow_fork>: Likewise.
13197 (target_follow_fork): Likewise.
13198
13199 2020-03-24 Tom de Vries <tdevries@suse.de>
13200
13201 * psymtab.c (maintenance_info_psymtabs): Print user field.
13202
13203 2020-03-20 Tom Tromey <tromey@adacore.com>
13204
13205 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13206 const.
13207 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13208 const.
13209
13210 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13211
13212 * ptrace.m4: Don't check for ptrace declaration.
13213 * config.in: Re-generate.
13214 * configure: Re-generate.
13215 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13216 not defined.
13217
13218 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13219
13220 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13221 `PTRACE_TYPE_RET'.
13222 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13223 * sparc-nat.c (gdb_ptrace): Likewise.
13224 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13225
13226 2020-03-20 Tom Tromey <tromey@adacore.com>
13227
13228 * c-exp.y (lex_one_token): Fix assert.
13229
13230 2020-03-20 Tom Tromey <tromey@adacore.com>
13231
13232 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13233 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13234 strncpy call.
13235
13236 2020-03-20 Tom Tromey <tromey@adacore.com>
13237
13238 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13239
13240 2020-03-20 Tom Tromey <tromey@adacore.com>
13241
13242 * ada-valprint.c (print_variant_part): Remove parameters; switch
13243 to value-based API.
13244 (print_field_values): Likewise.
13245 (ada_val_print_struct_union): Likewise.
13246 (ada_value_print_1): Update.
13247
13248 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13249
13250 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13251 nbsd_nat_target instead of inf_ptrace_target.
13252 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13253 nbsd_nat_target.
13254
13255 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13256
13257 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13258 it to the ptrace call.
13259 * (store_registers): Likewise.
13260
13261 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13262
13263 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13264 it to the ptrace call.
13265 * (store_registers): Likewise.
13266
13267 2020-03-19 Luis Machado <luis.machado@linaro.org>
13268
13269 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13270 valid, fetch vg value from ptrace.
13271
13272 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13273 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13274 * inf-ptrace.c: Likewise.
13275 * (gdb_ptrace): Add.
13276 * (inf_ptrace_target::resume): Update.
13277 * (inf_ptrace_target::xfer_partial): Likewise.
13278 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13279 * (inf_ptrace_peek_poke): Update.
13280
13281 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13282
13283 * x86-bsd-nat.c (gdb_ptrace): New.
13284 * (x86bsd_dr_set): Add new argument `ptid'.
13285 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13286 x86bsd_dr_set_addr): Update.
13287
13288 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 * remote.c (remote_target::process_stop_reply): Handle events for
13291 all threads differently.
13292
13293 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13294
13295 * completer.c (completion_tracker::remove_completion): Define new
13296 function.
13297 * completer.h (completion_tracker::remove_completion): Declare new
13298 function.
13299 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13300 when adding a C++ function symbol.
13301
13302 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13303
13304 * completer.c (completion_tracker::completion_hash_entry): Define
13305 new class.
13306 (advance_to_filename_complete_word_point): Call
13307 recompute_lowest_common_denominator.
13308 (completion_tracker::completion_tracker): Call discard_completions
13309 to setup the hash table.
13310 (completion_tracker::discard_completions): Allow for being called
13311 from the constructor, pass new equal function, and element deleter
13312 when constructing the hash table. Initialise new class member
13313 variables.
13314 (completion_tracker::maybe_add_completion): Remove use of
13315 m_entries_vec, and store more information into m_entries_hash.
13316 (completion_tracker::recompute_lcd_visitor): New function, most
13317 content taken from...
13318 (completion_tracker::recompute_lowest_common_denominator):
13319 ...here, this now just visits each item in the hash calling the
13320 above visitor.
13321 (completion_tracker::build_completion_result): Remove use of
13322 m_entries_vec, call recompute_lowest_common_denominator.
13323 * completer.h (completion_tracker::have_completions): Remove use
13324 of m_entries_vec.
13325 (completion_tracker::completion_hash_entry): Declare new class.
13326 (completion_tracker::recompute_lowest_common_denominator): Change
13327 function signature.
13328 (completion_tracker::recompute_lcd_visitor): Declare new function.
13329 (completion_tracker::m_entries_vec): Delete.
13330 (completion_tracker::m_entries_hash): Initialize to NULL.
13331 (completion_tracker::m_lowest_common_denominator_valid): New
13332 member variable.
13333 (completion_tracker::m_lowest_common_denominator_max_length): New
13334 member variable.
13335
13336 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13337
13338 * regformats/regdef.h: Put reg in gdb namespace.
13339
13340 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13341
13342 * i386-bsd-nat.c (gdb_ptrace): New.
13343 * (i386bsd_fetch_inferior_registers,
13344 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13345 * (i386bsd_fetch_inferior_registers,
13346 i386bsd_store_inferior_registers) Use gdb_ptrace.
13347
13348 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13349
13350 * amd64-bsd-nat.c (gdb_ptrace): New.
13351 * (amd64bsd_fetch_inferior_registers,
13352 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13353 * (amd64bsd_fetch_inferior_registers,
13354 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13355
13356 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13357
13358 * user-regs.c (user_reg::read): Rename to...
13359 (user_reg::xread): ...this.
13360 * (append_user_reg): Rename argument `read' to `xread'.
13361 * (user_reg_add_builtin): Likewise.
13362 * (user_reg_add): Likewise.
13363 * (value_of_user_reg): Likewise.
13364
13365 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13366
13367 * sparc-nat.c (gdb_ptrace): New.
13368 * sparc-nat.c (sparc_fetch_inferior_registers)
13369 (sparc_store_inferior_registers) Remove obsolete comment.
13370 * sparc-nat.c (sparc_fetch_inferior_registers)
13371 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13372 * sparc-nat.c (sparc_fetch_inferior_registers)
13373 (sparc_store_inferior_registers) Use gdb_ptrace.
13374
13375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13376
13377 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13378 it to the ptrace call.
13379 * sh-nbsd-nat.c (store_registers): Likewise.
13380
13381 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13382
13383 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13384 nbsd_nat_target instead of inf_ptrace_target.
13385 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13386 nbsd_nat_target.
13387
13388 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13389
13390 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13391
13392 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13393
13394 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13395 <sys/sysctl.h>.
13396 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13397
13398 2020-03-17 Tom de Vries <tdevries@suse.de>
13399
13400 PR gdb/23710
13401 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13402 fields.
13403 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13404 fields.
13405 (process_imported_unit_die): Skip import of c++ CUs.
13406
13407 2020-03-16 Tom Tromey <tom@tromey.com>
13408
13409 * p-valprint.c (pascal_object_print_value): Initialize
13410 base_value.
13411
13412 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13413 Shahab Vahedi <shahab@synopsys.com>
13414
13415 * Makefile.in: Add arch/arc.o
13416 * configure.tgt: Likewise.
13417 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13418 (_initialize_arc_tdep): Don't initialize old target descriptions.
13419 (arc_read_description): New function to cache target descriptions.
13420 * arc-tdep.h (arc_read_description): Add proto type.
13421 * arch/arc.c: New file.
13422 * arch/arc.h: Likewise.
13423 * features/Makefile: Replace old target descriptions with new.
13424 * features/arc-arcompact.c: Remove.
13425 * features/arc-arcompact.xml: Likewise.
13426 * features/arc-v2.c: Likewise
13427 * features/arc-v2.xml: Likewise
13428 * features/arc/aux-arcompact.xml: New file.
13429 * features/arc/aux-v2.xml: Likewise.
13430 * features/arc/core-arcompact.xml: Likewise.
13431 * features/arc/core-v2.xml: Likewise.
13432 * features/arc/aux-arcompact.c: Generate.
13433 * features/arc/aux-v2.c: Likewise.
13434 * features/arc/core-arcompact.c: Likewise.
13435 * features/arc/core-v2.c: Likewise.
13436 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13437
13438 2020-03-16 Tom Tromey <tromey@adacore.com>
13439
13440 PR gdb/25663:
13441 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13442 putting value into bcache.
13443
13444 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13445
13446 PR gdb/21500
13447 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13448 to...
13449 (amd64_windows_init_abi_common): ... this. Don't set size of
13450 long type.
13451 (amd64_windows_init_abi): New function.
13452 (amd64_cygwin_init_abi): New function.
13453 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13454 the Cygwin OS ABI.
13455 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13456 comment.
13457
13458 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13459
13460 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13461 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13462 (pe_import_directory_entry): New struct type.
13463 (is_linked_with_cygwin_dll): New function.
13464 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13465 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13466 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13467
13468 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13469
13470 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13471 i386_cygwin_core_osabi_sniffer.
13472
13473 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13474
13475 * i386-cygwin-tdep.c: Rename to...
13476 * i386-windows-tdep.c: ... this.
13477 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13478 i386-windows-tdep.c.
13479 * configure.tgt: Likewise.
13480
13481 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13482
13483 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13484 * osabi.c (gdb_osabi_names): Add "Windows".
13485 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13486 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13487 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13488 i386_cygwin_osabi_sniffer.
13489 (_initialize_i386_cygwin_tdep): Register OS ABI
13490 GDB_OSABI_WINDOWS for i386.
13491 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13492 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13493 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13494 for x86-64.
13495 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13496 when the target matches '*-*-mingw*'.
13497
13498 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13499
13500 * defs.h (enum gdb_osabi): Move to...
13501 * osabi.h (enum gdb_osabi): ... here.
13502 * gdbarch.sh: Include osabi.h in gdbarch.h.
13503 * gdbarch.h: Re-generate.
13504
13505 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13506
13507 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13508 function.
13509 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13510
13511 2020-03-14 Tom Tromey <tom@tromey.com>
13512
13513 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13514 for C++.
13515 (c_type_print_modifier): Likewise. Add "language" parameter.
13516 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13517 (c_type_print_base_1): Update.
13518 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13519 constants.
13520 * type-stack.c (type_stack::insert): Handle tp_atomic and
13521 tp_restrict.
13522 (type_stack::follow_type_instance_flags): Likewise.
13523 (type_stack::follow_types): Likewise. Merge type-following code.
13524 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13525 (space_identifier, cv_with_space_id)
13526 (const_or_volatile_or_space_identifier_noopt)
13527 (const_or_volatile_or_space_identifier): Remove.
13528 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13529 rules.
13530 (ptr_operator, typebase): Update.
13531 (enum token_flag) <FLAG_C>: New constant.
13532 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13533 "_Atomic".
13534 (lex_one_token): Handle FLAG_C.
13535
13536 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13537
13538 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13539 it to the ptrace call.
13540 * m68k-bsd-nat.c (store_registers): Likewise.
13541
13542 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13543
13544 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13545 gdb_byte *.
13546 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13547 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13548 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13549
13550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13551
13552 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13553 nbsd_nat_target instead of inf_ptrace_target.
13554 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13555 nbsd_nat_target.
13556
13557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13558
13559 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13560 register_t.
13561
13562 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13563
13564 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13565 it to the ptrace call.
13566 * alpha-bsd-nat.c (store_registers): Likewise.
13567
13568 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13569
13570 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13571 includes.
13572 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13573 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13574 fill_fpregset): Likewise.
13575
13576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13577
13578 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13579 nbsd_nat_target instead of inf_ptrace_target.
13580 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13581 nbsd_nat_target.
13582
13583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13584
13585 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13586 register_t.
13587
13588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13589
13590 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13591 it to the ptrace call.
13592 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13593 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13594 * arm-nbsd-nat.c (store_register): Likewise.
13595 * arm-nbsd-nat.c (store_regs): Likewise.
13596 * arm-nbsd-nat.c (store_fp_register): Likewise.
13597 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13598
13599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13600
13601 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13602 nbsd_nat_target instead of inf_ptrace_target.
13603 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13604 nbsd_nat_target.
13605
13606 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13607
13608 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13609 it to the ptrace call.
13610 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13611
13612 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13613
13614 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13615 it to the ptrace call.
13616 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13617
13618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13619
13620 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13621 gdb_byte *.
13622 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13623
13624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13625
13626 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13627 instead of inf_ptrace_target.
13628 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13629 nbsd_nat_target.
13630
13631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13632
13633 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13634 register_t.
13635
13636 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13637
13638 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13639 register_t.
13640
13641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13642
13643 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13644 register_t.
13645
13646 2020-03-13 Tom Tromey <tom@tromey.com>
13647
13648 * value.h (val_print): Don't declare.
13649 * valprint.h (val_print_array_elements)
13650 (val_print_scalar_formatted, generic_val_print): Don't declare.
13651 * valprint.c (generic_val_print_array): Take a struct value.
13652 (generic_val_print_ptr, generic_val_print_memberptr)
13653 (generic_val_print_bool, generic_val_print_int)
13654 (generic_val_print_char, generic_val_print_complex)
13655 (generic_val_print): Remove.
13656 (generic_value_print): Update.
13657 (do_val_print): Remove unused parameters. Don't call
13658 la_val_print.
13659 (val_print): Remove.
13660 (common_val_print): Update. Don't call value_check_printable.
13661 (val_print_scalar_formatted, val_print_array_elements): Remove.
13662 * rust-lang.c (rust_val_print): Remove.
13663 (rust_language_defn): Update.
13664 * p-valprint.c (pascal_val_print): Remove.
13665 (pascal_value_print_inner): Update.
13666 (pascal_object_print_val_fields, pascal_object_print_val):
13667 Remove.
13668 (pascal_object_print_static_field): Update.
13669 * p-lang.h (pascal_val_print): Don't declare.
13670 * p-lang.c (pascal_language_defn): Update.
13671 * opencl-lang.c (opencl_language_defn): Update.
13672 * objc-lang.c (objc_language_defn): Update.
13673 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13674 * m2-lang.h (m2_val_print): Don't declare.
13675 * m2-lang.c (m2_language_defn): Update.
13676 * language.h (struct language_defn) <la_val_print>: Remove.
13677 * language.c (unk_lang_value_print_inner): Rename. Change
13678 argument types.
13679 (unknown_language_defn, auto_language_defn): Update.
13680 * go-valprint.c (go_val_print): Remove.
13681 * go-lang.h (go_val_print): Don't declare.
13682 * go-lang.c (go_language_defn): Update.
13683 * f-valprint.c (f_val_print): Remove.
13684 * f-lang.h (f_value_print): Don't declare.
13685 * f-lang.c (f_language_defn): Update.
13686 * d-valprint.c (d_val_print): Remove.
13687 * d-lang.h (d_value_print): Don't declare.
13688 * d-lang.c (d_language_defn): Update.
13689 * cp-valprint.c (cp_print_value_fields)
13690 (cp_print_value_fields_rtti, cp_print_value): Remove.
13691 (cp_print_static_field): Update.
13692 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13693 (c_val_print_struct, c_val_print_union, c_val_print_int)
13694 (c_val_print_memberptr, c_val_print): Remove.
13695 * c-lang.h (c_val_print_array, cp_print_value_fields)
13696 (cp_print_value_fields_rtti): Don't declare.
13697 * c-lang.c (c_language_defn, cplus_language_defn)
13698 (asm_language_defn, minimal_language_defn): Update.
13699 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13700 (ada_val_print_enum): Take a struct value.
13701 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13702 (ada_val_print): Remove.
13703 (ada_value_print_1): Update.
13704 (printable_val_type): Remove.
13705 * ada-lang.h (ada_val_print): Don't declare.
13706 * ada-lang.c (ada_language_defn): Update.
13707
13708 2020-03-13 Tom Tromey <tom@tromey.com>
13709
13710 * valprint.c (do_val_print): Update.
13711 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13712 a struct value.
13713 (value_to_value_object_no_release): Declare.
13714 * python/py-value.c (value_to_value_object_no_release): New
13715 function.
13716 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13717 struct value.
13718 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13719 function.
13720 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13721 a struct value.
13722 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13723 Declare.
13724 (gdbscm_apply_val_pretty_printer): Take a struct value.
13725 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13726 value.
13727 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13728 value.
13729 * extension-priv.h (struct extension_language_ops)
13730 <apply_val_pretty_printer>: Take a struct value.
13731 * cp-valprint.c (cp_print_value): Create a struct value.
13732 (cp_print_value): Update.
13733
13734 2020-03-13 Tom Tromey <tom@tromey.com>
13735
13736 * ada-valprint.c (print_field_values): Call common_val_print.
13737
13738 2020-03-13 Tom Tromey <tom@tromey.com>
13739
13740 * ada-valprint.c (val_print_packed_array_elements): Remove
13741 bitoffset and val parameters. Call common_val_print.
13742 (ada_val_print_string): Remove offset, address, and original_value
13743 parameters.
13744 (ada_val_print_array): Update.
13745 (ada_value_print_array): New function.
13746 (ada_value_print_1): Call it.
13747
13748 2020-03-13 Tom Tromey <tom@tromey.com>
13749
13750 * ada-valprint.c (ada_value_print): Use common_val_print.
13751
13752 2020-03-13 Tom Tromey <tom@tromey.com>
13753
13754 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13755
13756 2020-03-13 Tom Tromey <tom@tromey.com>
13757
13758 * ada-valprint.c (ada_value_print_num): New function.
13759 (ada_value_print_1): Use it.
13760
13761 2020-03-13 Tom Tromey <tom@tromey.com>
13762
13763 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13764
13765 2020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * ada-valprint.c (ada_value_print_ptr): New function.
13768 (ada_value_print_1): Use it.
13769
13770 2020-03-13 Tom Tromey <tom@tromey.com>
13771
13772 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13773 call common_val_print.
13774 (ada_val_print_1): Update.
13775 (ada_value_print_1): New function.
13776 (ada_value_print_inner): Rewrite.
13777
13778 2020-03-13 Tom Tromey <tom@tromey.com>
13779
13780 * cp-valprint.c (cp_print_value_fields): Update.
13781 (cp_print_value): New function.
13782
13783 2020-03-13 Tom Tromey <tom@tromey.com>
13784
13785 * m2-valprint.c (m2_value_print_inner): Use
13786 cp_print_value_fields.
13787 * cp-valprint.c (cp_print_value_fields): New function.
13788 * c-valprint.c (c_value_print_struct): New function.
13789 (c_value_print_inner): Use c_value_print_struct.
13790 * c-lang.h (cp_print_value_fields): Declare.
13791
13792 2020-03-13 Tom Tromey <tom@tromey.com>
13793
13794 * c-valprint.c (c_value_print_array): New function.
13795 (c_value_print_inner): Use it.
13796
13797 2020-03-13 Tom Tromey <tom@tromey.com>
13798
13799 * c-valprint.c (c_value_print_memberptr): New function.
13800 (c_value_print_inner): Use it.
13801
13802 2020-03-13 Tom Tromey <tom@tromey.com>
13803
13804 * c-valprint.c (c_value_print_int): New function.
13805 (c_value_print_inner): Use it.
13806
13807 2020-03-13 Tom Tromey <tom@tromey.com>
13808
13809 * c-valprint.c (c_value_print_ptr): New function.
13810 (c_value_print_inner): Use it.
13811
13812 2020-03-13 Tom Tromey <tom@tromey.com>
13813
13814 * c-valprint.c (c_value_print_inner): Rewrite.
13815
13816 2020-03-13 Tom Tromey <tom@tromey.com>
13817
13818 * valprint.c (generic_value_print_complex): New function.
13819 (generic_value_print): Use it.
13820
13821 2020-03-13 Tom Tromey <tom@tromey.com>
13822
13823 * valprint.c (generic_val_print_float): Don't call
13824 val_print_scalar_formatted.
13825 (generic_val_print, generic_value_print): Update.
13826
13827 2020-03-13 Tom Tromey <tom@tromey.com>
13828
13829 * valprint.c (generic_value_print_char): New function
13830 (generic_value_print): Use it.
13831
13832 2020-03-13 Tom Tromey <tom@tromey.com>
13833
13834 * valprint.c (generic_value_print_int): New function.
13835 (generic_value_print): Use it.
13836
13837 2020-03-13 Tom Tromey <tom@tromey.com>
13838
13839 * valprint.c (generic_value_print_bool): New function.
13840 (generic_value_print): Use it.
13841
13842 2020-03-13 Tom Tromey <tom@tromey.com>
13843
13844 * valprint.c (generic_val_print_func): Simplify.
13845 (generic_val_print, generic_value_print): Update.
13846
13847 2020-03-13 Tom Tromey <tom@tromey.com>
13848
13849 * valprint.c (generic_val_print_flags): Remove.
13850 (generic_val_print, generic_value_print): Update.
13851 (val_print_type_code_flags): Add original_value parameter.
13852
13853 2020-03-13 Tom Tromey <tom@tromey.com>
13854
13855 * valprint.c (generic_val_print): Update.
13856 (generic_value_print): Update.
13857 * valprint.c (generic_val_print_enum): Don't call
13858 val_print_scalar_formatted.
13859
13860 2020-03-13 Tom Tromey <tom@tromey.com>
13861
13862 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13863 * valprint.c (generic_value_print_ptr): New function.
13864
13865 2020-03-13 Tom Tromey <tom@tromey.com>
13866
13867 * valprint.c (generic_value_print): Rewrite.
13868
13869 2020-03-13 Tom Tromey <tom@tromey.com>
13870
13871 * p-valprint.c (pascal_object_print_value_fields)
13872 (pascal_object_print_value): New functions.
13873
13874 2020-03-13 Tom Tromey <tom@tromey.com>
13875
13876 * p-valprint.c (pascal_value_print_inner): Rewrite.
13877
13878 2020-03-13 Tom Tromey <tom@tromey.com>
13879
13880 * f-valprint.c (f_value_print_innner): Rewrite.
13881
13882 2020-03-13 Tom Tromey <tom@tromey.com>
13883
13884 * m2-valprint.c (m2_print_unbounded_array): New overload.
13885 (m2_print_unbounded_array): Update.
13886 (m2_print_array_contents): Take a struct value.
13887 (m2_value_print_inner): Rewrite.
13888
13889 2020-03-13 Tom Tromey <tom@tromey.com>
13890
13891 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13892 (d_value_print_inner): New function.
13893 * d-lang.h (d_value_print_inner): Declare.
13894 * d-lang.c (d_language_defn): Use d_value_print_inner.
13895
13896 2020-03-13 Tom Tromey <tom@tromey.com>
13897
13898 * go-valprint.c (go_value_print_inner): New function.
13899 * go-lang.h (go_value_print_inner): Declare.
13900 * go-lang.c (go_language_defn): Use go_value_print_inner.
13901
13902 2020-03-13 Tom Tromey <tom@tromey.com>
13903
13904 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13905 API.
13906 (rust_val_print): Rewrite.
13907 (rust_value_print_inner): New function, from rust_val_print.
13908 (rust_language_defn): Use rust_value_print_inner.
13909
13910 2020-03-13 Tom Tromey <tom@tromey.com>
13911
13912 * ada-valprint.c (ada_value_print_inner): New function.
13913 * ada-lang.h (ada_value_print_inner): Declare.
13914 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13915
13916 2020-03-13 Tom Tromey <tom@tromey.com>
13917
13918 * f-valprint.c (f_value_print_innner): New function.
13919 * f-lang.h (f_value_print_innner): Declare.
13920 * f-lang.c (f_language_defn): Use f_value_print_innner.
13921
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13923
13924 * p-valprint.c (pascal_value_print_inner): New function.
13925 * p-lang.h (pascal_value_print_inner): Declare.
13926 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13927
13928 2020-03-13 Tom Tromey <tom@tromey.com>
13929
13930 * m2-valprint.c (m2_value_print_inner): New function.
13931 * m2-lang.h (m2_value_print_inner): Declare.
13932 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13933
13934 2020-03-13 Tom Tromey <tom@tromey.com>
13935
13936 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13937 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13938 * c-valprint.c (c_value_print_inner): New function.
13939 * c-lang.h (c_value_print_inner): Declare.
13940 * c-lang.c (c_language_defn, cplus_language_defn)
13941 (asm_language_defn, minimal_language_defn): Use
13942 c_value_print_inner.
13943
13944 2020-03-13 Tom Tromey <tom@tromey.com>
13945
13946 * p-valprint.c (pascal_object_print_value_fields): Now static.
13947 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13948
13949 2020-03-13 Tom Tromey <tom@tromey.com>
13950
13951 * c-valprint.c (c_val_print_array): Simplify.
13952
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13954
13955 * valprint.c (value_print_array_elements): New function.
13956 * valprint.h (value_print_array_elements): Declare.
13957
13958 2020-03-13 Tom Tromey <tom@tromey.com>
13959
13960 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13961 * mips-tdep.c (mips_print_register): Use
13962 value_print_scalar_formatted.
13963
13964 2020-03-13 Tom Tromey <tom@tromey.com>
13965
13966 * valprint.h (value_print_scalar_formatted): Declare.
13967 * valprint.c (value_print_scalar_formatted): New function.
13968
13969 2020-03-13 Tom Tromey <tom@tromey.com>
13970
13971 * valprint.h (generic_value_print): Declare.
13972 * valprint.c (generic_value_print): New function.
13973
13974 2020-03-13 Tom Tromey <tom@tromey.com>
13975
13976 * valprint.c (do_val_print): Call la_value_print_inner, if
13977 available.
13978 * rust-lang.c (rust_language_defn): Update.
13979 * p-lang.c (pascal_language_defn): Update.
13980 * opencl-lang.c (opencl_language_defn): Update.
13981 * objc-lang.c (objc_language_defn): Update.
13982 * m2-lang.c (m2_language_defn): Update.
13983 * language.h (struct language_defn) <la_value_print_inner>: New
13984 member.
13985 * language.c (unknown_language_defn, auto_language_defn): Update.
13986 * go-lang.c (go_language_defn): Update.
13987 * f-lang.c (f_language_defn): Update.
13988 * d-lang.c (d_language_defn): Update.
13989 * c-lang.c (c_language_defn, cplus_language_defn)
13990 (asm_language_defn, minimal_language_defn): Update.
13991 * ada-lang.c (ada_language_defn): Update.
13992
13993 2020-03-13 Tom Tromey <tom@tromey.com>
13994
13995 * c-valprint.c (c_value_print): Use common_val_print.
13996
13997 2020-03-13 Tom Tromey <tom@tromey.com>
13998
13999 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14000
14001 2020-03-13 Tom Tromey <tom@tromey.com>
14002
14003 * f-valprint.c (f77_print_array_1, f_val_print): Use
14004 common_val_print.
14005
14006 2020-03-13 Tom Tromey <tom@tromey.com>
14007
14008 * riscv-tdep.c (riscv_print_one_register_info): Use
14009 common_val_print.
14010
14011 2020-03-13 Tom Tromey <tom@tromey.com>
14012
14013 * mi/mi-main.c (output_register): Use common_val_print.
14014
14015 2020-03-13 Tom Tromey <tom@tromey.com>
14016
14017 * infcmd.c (default_print_one_register_info): Use
14018 common_val_print.
14019
14020 2020-03-13 Tom Tromey <tom@tromey.com>
14021
14022 * valprint.h (common_val_print_checked): Declare.
14023 * valprint.c (common_val_print_checked): New function.
14024 * stack.c (print_frame_arg): Use common_val_print_checked.
14025
14026 2020-03-13 Tom Tromey <tom@tromey.com>
14027
14028 * valprint.c (do_val_print): New function, from val_print.
14029 (val_print): Use do_val_print.
14030 (common_val_print): Use do_val_print.
14031
14032 2020-03-13 Tom Tromey <tom@tromey.com>
14033
14034 * valprint.c (value_print): Use scoped_value_mark.
14035
14036 2020-03-13 Tom de Vries <tdevries@suse.de>
14037
14038 PR symtab/25646
14039 * psymtab.c (partial_symtab::partial_symtab): Don't set
14040 globals_offset and statics_offset. Push element onto
14041 current_global_psymbols and current_static_psymbols stacks.
14042 (concat): New function.
14043 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14044 element from current_global_psymbols and current_static_psymbols
14045 stacks. Concat popped elements to global_psymbols and
14046 static_symbols.
14047 (add_psymbol_to_list): Use current_global_psymbols and
14048 current_static_psymbols stacks.
14049 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14050 current_static_psymbols fields.
14051
14052 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14053
14054 * corelow.c (sniff_core_bfd): Remove.
14055 (class core_target) <m_core_vec>: Remove.
14056 (core_target::core_target): Update.
14057 (core_file_fns): Remove.
14058 (deprecated_add_core_fns): Remove.
14059 (default_core_sniffer): Remove.
14060 (sniff_core_bfd): Remove.
14061 (default_check_format): Remove.
14062 (gdb_check_format): Remove.
14063 (core_target_open): Update.
14064 (core_target::get_core_register_section): Update.
14065 (get_core_registers_cb): Update.
14066 (core_target::fetch_registers): Update.
14067 * gdbcore.h (struct core_fns): Remove.
14068 (deprecated_add_core_fns): Remove.
14069 (default_core_sniffer): Remove.
14070 (default_check_format): Remove.
14071
14072 2020-03-12 Tom Tromey <tom@tromey.com>
14073
14074 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14075 CORE_ADDR.
14076 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14077
14078 2020-03-12 Tom Tromey <tom@tromey.com>
14079
14080 * remote.c (remote_target::download_tracepoint)
14081 (remote_target::enable_tracepoint)
14082 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14083 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14084 sprintf_vma.
14085
14086 2020-03-12 Tom Tromey <tom@tromey.com>
14087
14088 * symfile-mem.c: Update CORE_ADDR size assert.
14089
14090 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14091
14092 * selftest.m4: Move to gdbsupport/.
14093 * acinclude.m4: Update path to selftest.m4.
14094
14095 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14096
14097 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14098 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14099 gdbarch-selfselftests.c and selftest-arch.c.
14100 (SUBDIR_UNITTESTS_OBS): Rename to...
14101 (SELFTESTS_OBS): ... this.
14102 (COMMON_SFILES): Remove disasm-selftests.c and
14103 gdbarch-selftests.c.
14104 * configure.ac: Don't add selftest-arch.{c,o} to
14105 CONFIG_{SRCS,OBS}.
14106 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14107 preprocessor conditions.
14108
14109 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14110
14111 * configure.ac: Don't source bfd/development.sh.
14112 * selftest.m4: Modify comment.
14113 * configure: Re-generate.
14114
14115 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14116
14117 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14118 not "true" or "false".
14119 * configure: Re-generate.
14120
14121 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14122
14123 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14124 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14125 renamed to arm_nbsd_supply_gregset.
14126 (fetch_register): Update to call arm_nbsd_supply_gregset.
14127 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14128 (arm_netbsd_nat_target::fetch_registers): Update.
14129 (fetch_elfcore_registers): Removed.
14130 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14131 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14132 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14133 not require NetBSD system headers.
14134 (arm_nbsd_regset): New struct.
14135 (arm_nbsd_iterate_over_regset_sections): New function.
14136 (arm_netbsd_init_abi_common): Updated to call
14137 set_gdbarch_iterate_over_regset_sections.
14138 * arm-nbsd-tdep.h: New file.
14139
14140 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14141
14142 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14143 recursion.
14144
14145 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14146
14147 * configure: Re-generate.
14148
14149 2020-03-11 Tom Tromey <tromey@adacore.com>
14150
14151 * ada-typeprint.c (print_choices): Fix comment.
14152
14153 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14154
14155 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14156 previous item in the list, when the list has no items.
14157
14158 2020-03-11 Tom de Vries <tdevries@suse.de>
14159
14160 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14161 PROP_LOCLIST handling code.
14162
14163 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14164
14165 * buildsym-legacy.c (record_line): Pass extra parameter to
14166 record_line.
14167 * buildsym.c (buildsym_compunit::record_line): Take an extra
14168 parameter, reduce duplication in the line table, and record the
14169 is_stmt flag in the line table.
14170 * buildsym.h (buildsym_compunit::record_line): Add extra
14171 parameter.
14172 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14173 non-statement lines.
14174 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14175 this to the symtab builder.
14176 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14177 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14178 through to dwarf_record_line_1.
14179 * infrun.c (process_event_stop_test): When stepping, don't stop at
14180 a non-statement instruction, and only refresh the step info when
14181 we land in the middle of a line's range. Also add an extra
14182 comment.
14183 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14184 field.
14185 * record-btrace.c (btrace_find_line_range): Only record lines
14186 marked as is-statement.
14187 * stack.c (frame_show_address): Show the frame address if we are
14188 in a non-statement sal.
14189 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14190 (maintenance_print_one_line_table): Print a header for the is_stmt
14191 column, and include is_stmt information in the output.
14192 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14193 preference to non-statements.
14194 (find_pcs_for_symtab_line): Prefer is-statement entries.
14195 (find_line_common): Likewise.
14196 * symtab.h (struct linetable_entry): Add is_stmt field.
14197 (struct symtab_and_line): Likewise.
14198 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14199 arranging the line table.
14200
14201 2020-03-07 Tom de Vries <tdevries@suse.de>
14202
14203 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14204 DIE.
14205
14206 2020-03-07 Tom Tromey <tom@tromey.com>
14207
14208 * valops.c (value_literal_complex): Remove obsolete comment.
14209 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14210 comment.
14211
14212 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14213
14214 * infrun.h: Forward-declare thread_info.
14215 (set_step_info): Add thread_info parameter, add doc.
14216 * infrun.c (set_step_info): Add thread_info parameter, move doc
14217 to header.
14218 * infrun.c (process_event_stop_test): Pass thread to
14219 set_step_info call.
14220 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14221 set_step_info.
14222 (prepare_one_step): Add thread_info parameter, pass it to
14223 set_step_frame and prepare_one_step (recursive) call.
14224 (step_1): Pass thread to prepare_one_step call.
14225 (step_command_fsm::should_stop): Pass thread to
14226 prepare_one_step.
14227 (until_next_fsm): Pass thread to set_step_frame call.
14228 (finish_command): Pass thread to set_step_info call.
14229
14230 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14231
14232 * windows-tdep.c (windows_solib_create_inferior_hook):
14233 Check if inferior is running.
14234
14235 2020-03-06 Tom de Vries <tdevries@suse.de>
14236
14237 * NEWS: Fix "the the".
14238 * ctfread.c: Same.
14239
14240 2020-03-06 Tom de Vries <tdevries@suse.de>
14241
14242 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14243
14244 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14245
14246 * .dir-locals.el: Add a comment referencing the other copies of
14247 this file.
14248
14249 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14250
14251 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14252 psargs.
14253
14254 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14255
14256 * .gitattributes: New file.
14257
14258 2020-03-04 Tom Tromey <tom@tromey.com>
14259
14260 * symmisc.c (print_symbol_bcache_statistics)
14261 (print_objfile_statistics): Update.
14262 * symfile.c (allocate_symtab): Use intern.
14263 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14264 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14265 macro_cache>: Remove.
14266 <string_cache>: New member.
14267 (struct objfile) <intern>: New methods.
14268 * elfread.c (elf_symtab_read): Use intern.
14269 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14270 (dwarf2_compute_name, dwarf2_physname)
14271 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14272 names.
14273 (guess_partial_die_structure_name): Update.
14274 (partial_die_info::fixup): Intern name.
14275 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14276 name.
14277 (dwarf2_name): Intern name. Update.
14278 * buildsym.c (buildsym_compunit::get_macro_table): Use
14279 string_cache.
14280
14281 2020-03-04 Tom Tromey <tom@tromey.com>
14282
14283 * jit.c (bfd_open_from_target_memory): Make "target" const.
14284 * corefile.c (gnutarget): Now const.
14285 * gdbcore.h (gnutarget): Now const.
14286
14287 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14288
14289 * NEWS: Mention support for WOW64 processes.
14290 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14291 (amd64_windows_segment_register_p): Remove static.
14292 (_initialize_amd64_windows_nat): Update.
14293 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14294 * i386-windows-nat.c (context_offset): Update.
14295 (i386_mappings): Rename and remove static.
14296 (i386_windows_segment_register_p): Remove static.
14297 (_initialize_i386_windows_nat): Update.
14298 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14299 (STATUS_WX86_SINGLE_STEP): New macro.
14300 (EnumProcessModulesEx): New macro.
14301 (Wow64SuspendThread): New macro.
14302 (Wow64GetThreadContext): New macro.
14303 (Wow64SetThreadContext): New macro.
14304 (Wow64GetThreadSelectorEntry): New macro.
14305 (windows_set_context_register_offsets): Add static.
14306 (windows_set_segment_register_p): Likewise.
14307 (windows_add_thread): Adapt for WOW64 processes.
14308 (windows_fetch_one_register): Likewise.
14309 (windows_nat_target::fetch_registers): Likewise.
14310 (windows_store_one_register): Likewise.
14311 (display_selector): Likewise.
14312 (display_selectors): Likewise.
14313 (handle_exception): Likewise.
14314 (windows_continue): Likewise.
14315 (windows_nat_target::resume): Likewise.
14316 (windows_add_all_dlls): Likewise.
14317 (do_initial_windows_stuff): Likewise.
14318 (windows_nat_target::attach): Likewise.
14319 (windows_get_exec_module_filename): Likewise.
14320 (windows_nat_target::create_inferior): Likewise.
14321 (windows_xfer_siginfo): Likewise.
14322 (_initialize_loadable): Initialize Wow64SuspendThread,
14323 Wow64GetThreadContext, Wow64SetThreadContext,
14324 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14325 * windows-nat.h (windows_set_context_register_offsets):
14326 Remove declaration.
14327 (windows_set_segment_register_p): Likewise.
14328 (i386_windows_segment_register_p): Add declaration.
14329 (amd64_windows_segment_register_p): Likewise.
14330
14331 2020-03-04 Luis Machado <luis.machado@linaro.org>
14332
14333 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14334 in "info registers" for AArch64/ARM.
14335
14336 The change caused "info registers" to not print GPR's.
14337
14338 gdb/ChangeLog:
14339
14340 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14341
14342 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14343 when reg->group is empty and reggroup is not.
14344
14345 2020-03-03 Tom Tromey <tromey@adacore.com>
14346
14347 * dwarf2/frame.c (struct dwarf2_frame_cache)
14348 <checked_tailcall_bottom, entry_cfa_sp_offset,
14349 entry_cfa_sp_offset_p>: Remove members.
14350 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14351 (dwarf2_frame_prev_register): Don't call
14352 dwarf2_tailcall_sniffer_first.
14353 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14354 * frame-unwind.c (add_unwinder): New fuction.
14355 (frame_unwind_init): Use it. Add tailcall unwinder.
14356
14357 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14358 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14359
14360 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14361 value should be printed as true.
14362
14363 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14364
14365 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14366 (windows_init_abi): Set and use windows_so_ops.
14367
14368 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14369
14370 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14371 when verifying if dealing with a convenience variable.
14372
14373 2020-03-03 Luis Machado <luis.machado@linaro.org>
14374
14375 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14376
14377 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14378
14379 * infrun.c (gdbarch_supports_displaced_stepping): New.
14380 (use_displaced_stepping): Break up conditions in smaller pieces.
14381 Use gdbarch_supports_displaced_stepping.
14382 (displaced_step_prepare_throw): Use
14383 gdbarch_supports_displaced_stepping.
14384
14385 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14386
14387 * NEWS: Mention new behaviour of the history filename.
14388 * top.c (write_history_p): Add comment.
14389 (show_write_history_p): Add header comment, give a different
14390 message when history writing is on, but the history filename is
14391 empty.
14392 (history_filename): Add comment.
14393 (history_filename_empty): New function.
14394 (show_history_filename): Add header comment, give a different
14395 message when the filename is empty.
14396 (init_history): Compare history_filename against nullptr, and only
14397 read history if the filename is not empty.
14398 (set_history_filename): Add header comment, and only make
14399 non-empty filenames absolute.
14400 (init_main): Make the filename argument to 'set history filename'
14401 optional.
14402
14403 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14404
14405 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14406 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14407 (fetch_fp_register): Update.
14408 (fetch_fp_regs): Update.
14409 (store_fp_register): Update.
14410 (store_fp_regs): Update.
14411 (arm_netbsd_nat_target::read_description): New function.
14412 (fetch_elfcore_registers): Update.
14413
14414 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14415
14416 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14417 general_thread if the stop reply is missing a thread-id.
14418 (remote_target::process_stop_reply): Use the first non-exited
14419 thread if the target didn't pass a thread-id.
14420 * infrun.c (do_target_wait): Move call to
14421 switch_to_inferior_no_thread to ....
14422 (do_target_wait_1): ... here.
14423
14424 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14425
14426 * debuginfod-support.c: Include defs.h first.
14427
14428 2020-02-28 Tom de Vries <tdevries@suse.de>
14429
14430 * symfile.c (set_initial_language): Use default language for lookup.
14431
14432 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14433
14434 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14435 reader variable, pass `this` to read_cutu_die_from_dwo.
14436
14437 2020-02-27 Aaron Merey <amerey@redhat.com>
14438
14439 * source.c (open_source_file): Check for nullptr when computing
14440 srcpath.
14441
14442 2020-02-27 Tom Tromey <tromey@adacore.com>
14443
14444 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14445 member.
14446 (dwarf2_add_field): Don't update nfields.
14447 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14448
14449 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14450
14451 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14452 abs.
14453
14454 2020-02-26 Tom Tromey <tom@tromey.com>
14455
14456 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14457 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14458 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14459 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14460 per_cu_data.
14461
14462 2020-02-26 Tom Tromey <tom@tromey.com>
14463
14464 * dwarf2/index-write.c (psym_index_map): Change type.
14465 (add_address_entry_worker, write_one_signatured_type)
14466 (recursively_count_psymbols, recursively_write_psymbols)
14467 (class debug_names, psyms_seen_size, write_gdbindex)
14468 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14469
14470 2020-02-26 Aaron Merey <amerey@redhat.com>
14471
14472 * Makefile.in: Handle optional debuginfod support.
14473 * NEWS: Update.
14474 * README: Add --with-debuginfod summary.
14475 * config.in: Regenerate.
14476 * configure: Regenerate.
14477 * configure.ac: Handle optional debuginfod support.
14478 * debuginfod-support.c: debuginfod helper functions.
14479 * debuginfod-support.h: Ditto.
14480 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14481 summary.
14482 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14483 when a dwz file cannot be found.
14484 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14485 debuginfo file cannot be found.
14486 * source.c (open_source_file): Query debuginfod servers when a
14487 source file cannot be found.
14488 * top.c (print_gdb_configuration): Include
14489 --{with,without}-debuginfod in the output.
14490
14491 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14492
14493 * thread.c (thr_try_catch_cmd): Print thread name.
14494
14495 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14496
14497 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14499 dwarf2_fetch_die_type_sect_off): Move to...
14500 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14501 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14502 dwarf2_fetch_die_type_sect_off): ... here.
14503 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14504 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14505 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14506
14507 2020-02-26 Tom de Vries <tdevries@suse.de>
14508
14509 PR gdb/25603
14510 * symfile.c (set_initial_language): Exit-early if
14511 language_mode == language_mode_manual.
14512
14513 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14514
14515 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14516 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14517 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14518
14519 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14520
14521 * gdbtypes.c (create_array_type_with_stride): Handle negative
14522 array strides.
14523 * valarith.c (value_subscripted_rvalue): Likewise.
14524
14525 2020-02-25 Luis Machado <luis.machado@linaro.org>
14526
14527 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14528
14529 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14530
14531 * loc.h (dwarf2_get_die_type): Move to...
14532 * read.h (dwarf2_get_die_type): ... here.
14533 * read.c (dwarf2_get_die_type): Move doc to header.
14534
14535 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14536
14537 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14538 'gnulib/Makefile.in' to the list.
14539
14540 2020-02-24 Tom Tromey <tom@tromey.com>
14541
14542 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14543 Remove.
14544 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14545 XOBNEWVEC.
14546
14547 2020-02-24 Tom Tromey <tom@tromey.com>
14548
14549 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14550 New method.
14551 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14552 (dw2_do_instantiate_symtab, dw2_get_file_names)
14553 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14554
14555 2020-02-24 Tom Tromey <tom@tromey.com>
14556
14557 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14558 make_scoped_restore.
14559 (dwarf2_psymtab::read_symtab): Don't clear
14560 reading_partial_symbols.
14561
14562 2020-02-24 Tom de Vries <tdevries@suse.de>
14563
14564 PR gdb/25592
14565 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14566
14567 2020-02-24 Tom de Vries <tdevries@suse.de>
14568
14569 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14570 commands layout next/prev/regs.
14571
14572 2020-02-22 Tom Tromey <tom@tromey.com>
14573
14574 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14575 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14576
14577 2020-02-22 Tom Tromey <tom@tromey.com>
14578
14579 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14580
14581 2020-02-22 Tom Tromey <tom@tromey.com>
14582
14583 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14584 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14585 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14586 * tui/tui.c (_initialize_tui): Add usage text.
14587
14588 2020-02-22 Tom Tromey <tom@tromey.com>
14589
14590 * tui/tui-win.c (tui_set_focus_command)
14591 (tui_set_win_height_command): Use error_no_arg.
14592 (_initialize_tui_win): Update help text.
14593 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14594
14595 2020-02-22 Tom Tromey <tom@tromey.com>
14596
14597 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14598 * tui/tui-disasm.h (struct tui_disasm_window)
14599 <display_start_addr>: Declare.
14600 * tui/tui-source.h (struct tui_source_window)
14601 <display_start_addr>: Declare.
14602 * tui/tui-winsource.h (struct tui_source_window_base)
14603 <show_source_line, display_start_addr>: New methods.
14604 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14605 Rename and move to protected section.
14606 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14607 (tui_source_window_base::do_erase_source_content): Update.
14608 (tui_source_window_base::show_source_line): Now a method.
14609 (tui_source_window_base::show_source_content)
14610 (tui_source_window_base::tui_source_window_base)
14611 (tui_source_window_base::rerender)
14612 (tui_source_window_base::refill)
14613 (tui_source_window_base::do_scroll_horizontal)
14614 (tui_source_window_base::set_is_exec_point_at)
14615 (tui_source_window_base::update_breakpoint_info)
14616 (tui_source_window_base::update_exec_info): Update.
14617 * tui/tui-source.c (tui_source_window::set_contents)
14618 (tui_source_window::showing_source_p)
14619 (tui_source_window::do_scroll_vertical)
14620 (tui_source_window::location_matches_p)
14621 (tui_source_window::line_is_displayed): Update.
14622 (tui_source_window::display_start_addr): New method.
14623 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14624 (tui_disasm_window::do_scroll_vertical)
14625 (tui_disasm_window::location_matches_p): Update.
14626 (tui_disasm_window::display_start_addr): New method.
14627
14628 2020-02-22 Tom Tromey <tom@tromey.com>
14629
14630 * NEWS: Add entry for gdb.register_window_type.
14631 * tui/tui-layout.h (window_factory): New typedef.
14632 (tui_register_window): Declare.
14633 * tui/tui-layout.c (saved_tui_windows): New global.
14634 (tui_apply_current_layout): Use it.
14635 (tui_register_window): New function.
14636 * python/python.c (do_start_initialization): Call
14637 gdbpy_initialize_tui.
14638 (python_GdbMethods): Add "register_window_type" function.
14639 * python/python-internal.h (gdbpy_register_tui_window)
14640 (gdbpy_initialize_tui): Declare.
14641 * python/py-tui.c: New file.
14642 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14643
14644 2020-02-22 Tom Tromey <tom@tromey.com>
14645
14646 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14647
14648 2020-02-22 Tom Tromey <tom@tromey.com>
14649
14650 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14651 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14652 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14653 (tui_set_win_focus_to): Move from tui-win.c.
14654
14655 2020-02-22 Tom Tromey <tom@tromey.com>
14656
14657 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14658 functions.
14659 (known_window_types): New global.
14660 (tui_get_window_by_name): Reimplement.
14661 (initialize_known_windows): New function.
14662 (validate_window_name): Rewrite.
14663 (_initialize_tui_layout): Call initialize_known_windows.
14664
14665 2020-02-22 Tom Tromey <tom@tromey.com>
14666
14667 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14668 Remove constants.
14669 * tui/tui-winsource.h (struct tui_source_window_base)
14670 <tui_source_window_base>: Remove parameter.
14671 * tui/tui-winsource.c
14672 (tui_source_window_base::tui_source_window_base): Remove
14673 parameter.
14674 (tui_source_window_base::refill): Update.
14675 * tui/tui-stack.h (struct tui_locator_window)
14676 <tui_locator_window>: Update.
14677 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14678 Default the constructor.
14679 * tui/tui-regs.h (struct tui_data_item_window)
14680 <tui_data_item_window>: Default the constructor.
14681 (struct tui_data_window) <tui_data_window>: Likewise.
14682 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14683 Default the constructor.
14684 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14685 Default the constructor.
14686 <type>: Remove.
14687 (struct tui_win_info) <tui_win_info>: Default the constructor.
14688 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14689 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14690 Default the constructor.
14691
14692 2020-02-22 Tom Tromey <tom@tromey.com>
14693
14694 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14695 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14696 * tui/tui-win.c (tui_resize_all): Don't call
14697 tui_delete_invisible_windows.
14698 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14699 done.
14700 (tui_set_layout): Update.
14701 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14702 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14703 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14704
14705 2020-02-22 Tom Tromey <tom@tromey.com>
14706
14707 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14708 correctly.
14709
14710 2020-02-22 Tom Tromey <tom@tromey.com>
14711
14712 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14713
14714 2020-02-22 Tom Tromey <tom@tromey.com>
14715
14716 * tui/tui-winsource.h (struct tui_source_window_iterator)
14717 <inner_iterator>: New etytypedef.
14718 <tui_source_window_iterator>: Take "end" parameter.
14719 <tui_source_window_iterator>: Take iterator.
14720 <operator*, advance>: Update.
14721 <m_iter>: Change type.
14722 <m_end>: New field.
14723 (struct tui_source_windows) <begin, end>: Update.
14724 * tui/tui-layout.c (tui_windows): New global.
14725 (tui_apply_current_layout): Clear tui_windows.
14726 (tui_layout_window::apply): Update tui_windows.
14727 * tui/tui-data.h (tui_windows): Declare.
14728 (all_tui_windows): Now inline function.
14729 (class tui_window_iterator, struct all_tui_windows): Remove.
14730
14731 2020-02-22 Tom Tromey <tom@tromey.com>
14732
14733 PR tui/17850:
14734 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14735 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14736 "height" argument.
14737 (class tui_layout_window) <get_sizes>: Likewise.
14738 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14739 argument.
14740 <get_sizes>: Add "height" argument.
14741 <m_vertical>: New field.
14742 * tui/tui-layout.c (tui_layout_split::clone): Update.
14743 (tui_layout_split::get_sizes): Add "height" argument.
14744 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14745 (tui_new_layout_command): Parse "-horizontal".
14746 (_initialize_tui_layout): Update help string.
14747 (tui_layout_split::specification): Add "-horizontal" when needed.
14748 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14749 argument.
14750 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14751 New methods.
14752
14753 2020-02-22 Tom Tromey <tom@tromey.com>
14754
14755 * tui/tui-layout.h (enum tui_adjust_result): New.
14756 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14757 (class tui_layout_window) <adjust_size>: Return
14758 tui_adjust_result. Rewrite.
14759 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14760 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14761
14762 2020-02-22 Tom Tromey <tom@tromey.com>
14763
14764 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14765 parameter and return types.
14766 (class tui_layout_base) <specification>: Add "depth".
14767 (class tui_layout_window) <specification>: Add "depth".
14768 (class tui_layout_split) <specification>: Add "depth".
14769 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14770 and return types.
14771 (tui_new_layout_command): Parse sub-layouts.
14772 (_initialize_tui_layout): Update help string.
14773 (tui_layout_window::specification): Add "depth".
14774 (add_layout_command): Update.
14775
14776 2020-02-22 Tom Tromey <tom@tromey.com>
14777
14778 * NEWS: Add "tui new-layout" item.
14779 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14780 Add new-layout command to help text.
14781 (validate_window_name): New function.
14782 (tui_new_layout_command): New function.
14783 (_initialize_tui_layout): Register "new-layout".
14784 (tui_layout_window::specification): New method.
14785 (tui_layout_window::specification): New method.
14786 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14787 method.
14788 (class tui_layout_window) <specification>: New method.
14789 (class tui_layout_split) <specification>: New method.
14790
14791 2020-02-22 Tom Tromey <tom@tromey.com>
14792
14793 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14794 * tui/tui-win.c (window_name_completer): Update comment.
14795 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14796 Declare method.
14797 (class tui_layout_window) <replace_window>: Likewise.
14798 (class tui_layout_split) <replace_window>: Likewise.
14799 (tui_set_layout): Don't declare.
14800 (tui_set_initial_layout): Declare function.
14801 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14802 (asm_regs_layout): New globals.
14803 (tui_current_layout, show_layout): Remove.
14804 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14805 (find_layout, tui_apply_layout): New function.
14806 (layout_completer): Remove.
14807 (tui_next_layout): Reimplement.
14808 (tui_next_layout_command): New function.
14809 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14810 (tui_regs_layout): Reimplement.
14811 (tui_regs_layout_command): New function.
14812 (extract_display_start_addr): Rewrite.
14813 (next_layout, prev_layout): Remove.
14814 (tui_layout_window::replace_window): New method.
14815 (tui_layout_split::replace_window): New method.
14816 (destroy_layout): New function.
14817 (layout_list): New global.
14818 (add_layout_command): New function.
14819 (initialize_layouts): Update.
14820 (tui_layout_command): New function.
14821 (_initialize_tui_layout): Install "layout" commands.
14822 * tui/tui-data.h (enum tui_layout_type): Remove.
14823 (tui_current_layout): Don't declare.
14824
14825 2020-02-22 Tom Tromey <tom@tromey.com>
14826
14827 * tui/tui-regs.c (tui_reg_layout): Remove.
14828 (tui_reg_command): Use tui_regs_layout.
14829 * tui/tui-layout.h (tui_reg_command): Declare.
14830 * tui/tui-layout.c (tui_reg_command): New function.
14831
14832 2020-02-22 Tom Tromey <tom@tromey.com>
14833
14834 * tui/tui.c (tui_rl_delete_other_windows): Call
14835 tui_remove_some_windows.
14836 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14837 Declare method.
14838 (class tui_layout_window) <remove_windows>: New method.
14839 (class tui_layout_split) <remove_windows>: Declare.
14840 (tui_remove_some_windows): Declare.
14841 * tui/tui-layout.c (tui_remove_some_windows): New function.
14842 (tui_layout_split::remove_windows): New method.
14843
14844 2020-02-22 Tom Tromey <tom@tromey.com>
14845
14846 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14847 * tui/tui-layout.h (tui_next_layout): Declare.
14848 * tui/tui-layout.c (tui_next_layout): New function.
14849
14850 2020-02-22 Tom Tromey <tom@tromey.com>
14851
14852 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14853 correct coordinates.
14854
14855 2020-02-22 Tom Tromey <tom@tromey.com>
14856
14857 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14858 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14859 DATA_WIN case.
14860
14861 2020-02-22 Tom Tromey <tom@tromey.com>
14862
14863 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14864 TUI_DISASM_WIN, not tui_win_list.
14865
14866 2020-02-22 Tom Tromey <tom@tromey.com>
14867
14868 * valprint.c (generic_val_print_enum_1)
14869 (val_print_type_code_flags): Style member names.
14870 * rust-lang.c (val_print_struct, rust_print_enum)
14871 (rust_print_struct_def, rust_internal_print_type): Style member
14872 names.
14873 * p-valprint.c (pascal_object_print_value_fields): Style member
14874 names. Only call fprintf_symbol_filtered for static members.
14875 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14876 * f-valprint.c (f_val_print): Style member names.
14877 * f-typeprint.c (f_type_print_base): Style member names.
14878 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14879 call fprintf_symbol_filtered for static members.
14880 (cp_print_class_member): Style member names.
14881 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14882 member names.
14883 * ada-valprint.c (ada_print_scalar): Style enum names.
14884 (ada_val_print_enum): Likewise.
14885 * ada-typeprint.c (print_enum_type): Style enum names.
14886
14887 2020-02-21 Tom Tromey <tom@tromey.com>
14888
14889 * psympriv.h (struct partial_symtab): Update comment.
14890
14891 2020-02-21 Tom Tromey <tromey@adacore.com>
14892
14893 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14894 type is CORE_ADDR.
14895
14896 2020-02-21 Tom de Vries <tdevries@suse.de>
14897
14898 PR gdb/25534
14899 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14900 if dependencies[i]->user != NULL.
14901
14902 2020-02-21 Ali Tamur <tamur@google.com>
14903
14904 * dwarf2/read.c (dwarf2_name): Add null check.
14905
14906 2020-02-20 Tom Tromey <tom@tromey.com>
14907
14908 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14909 ">=", in binary search.
14910 (dwarf2_find_containing_comp_unit): New overload.
14911 (run_test): New self-test.
14912 (_initialize_dwarf2_read): Register new test.
14913
14914 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14915
14916 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14917 * riscv-tdep.h: Likewise.
14918 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14919 rv32-only CSR.
14920 * features/riscv/64bit-csr.xml: Regenerated.
14921
14922 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14923 Tom Tromey <tom@tromey.com>
14924
14925 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14926 of 'fputc_unfiltered'.
14927 (putchar_unfiltered): Call 'fputc_unfiltered'.
14928 (fputc_unfiltered): Call 'fputs_unfiltered'.
14929
14930 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14931
14932 * config.in: Regenerate.
14933 * configure: Regenerate.
14934 * configure.ac: Add --with-python-libdir option.
14935 * main.c: Use WITH_PYTHON_LIBDIR.
14936
14937 2020-02-19 Tom Tromey <tom@tromey.com>
14938
14939 * symtab.c (general_symbol_info::compute_and_set_names): Use
14940 obstack_strndup. Simplify call to symbol_set_demangled_name.
14941
14942 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14943
14944 * dwarf2/read.c (allocate_signatured_type_table,
14945 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14946 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14947 Remove objfile parameter, update all callers.
14948
14949 2020-02-19 Doug Evans <dje@google.com>
14950
14951 PR rust/25535
14952 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14953 rust_enum_variant calculation.
14954
14955 2020-02-19 Tom Tromey <tromey@adacore.com>
14956
14957 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14958
14959 2020-02-19 Tom Tromey <tromey@adacore.com>
14960
14961 * ada-lang.c (cache_symbol): Use obstack_strdup.
14962
14963 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14964
14965 * configure: Regenerate.
14966
14967 2020-02-19 Tom Tromey <tromey@adacore.com>
14968
14969 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14970 NULL check.
14971
14972 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14973
14974 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14975
14976 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14977
14978 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14979 if GDBSERVER is not defined.
14980 (riscv_tdesc_cache): Likewise, also store const target_desc.
14981 (STATIC_IN_GDB): Define.
14982 (riscv_create_target_description): Update declaration with
14983 STATIC_IN_GDB.
14984 (riscv_lookup_target_description): New function, only define if
14985 GDBSERVER is not defined.
14986 * arch/riscv.h (riscv_create_target_description): Declare only
14987 when GDBSERVER is defined.
14988 (riscv_lookup_target_description): New declaration when GDBSERVER
14989 is not defined.
14990 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14991 (riscv_linux_read_features): ...this, and return
14992 riscv_gdbarch_features instead of target_desc.
14993 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14994 (riscv_linux_read_description): Rename to...
14995 (riscv_linux_read_features): ...this.
14996 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14997 Update to use riscv_gdbarch_features and
14998 riscv_lookup_target_description.
14999 * riscv-tdep.c (riscv_find_default_target_description): Use
15000 riscv_lookup_target_description instead of
15001 riscv_create_target_description.
15002
15003 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15004
15005 * valprint.c (generic_val_print_enum_1): When printing a flag
15006 enum with value 0 and there is no enumerator with value 0, print
15007 just "0" instead of "(unknown: 0x0)".
15008
15009 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15010
15011 * valprint.c (generic_val_print_enum_1): Print unknown part of
15012 flag enum in hex.
15013
15014 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15015
15016 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15017 flag enums to contain duplicate enumerators.
15018 * valprint.c (generic_val_print_enum_1): Update comment.
15019
15020 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15021
15022 * dwarf2/read.c: Include "count-one-bits.h".
15023 (update_enumeration_type_from_children): If an enumerator has
15024 multiple bits set, don't treat the enumeration as a "flag enum".
15025 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15026 of flag enums have 0 or 1 bit set.
15027
15028 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15029
15030 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15031 conversion.
15032 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15033 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15034 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15035 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15036 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15037
15038 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15039
15040 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15041
15042 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15043
15044 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15045 displaced_step_closure_up.
15046 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15047 (struct displaced_step_closure_up):
15048 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15049 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15050 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15051 Likewise.
15052 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15053 * gdbarch.c, gdbarch.h: Re-generate.
15054 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15055 displaced_step_closure_up.
15056 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15057 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15058 * infrun.h (displaced_step_closure_up): New type alias.
15059 (struct displaced_step_inferior_state) <step_closure>: Change
15060 type to displaced_step_closure_up.
15061 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15062 displaced_step_closure_up.
15063 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15064
15065 2020-02-14 Tom Tromey <tom@tromey.com>
15066
15067 * minidebug.c (gnu_debug_key): New global.
15068 (find_separate_debug_file_in_section): Use it.
15069
15070 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15071
15072 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15073 std::unique_ptr.
15074 * gdbarch.c: Re-generate.
15075 * gdbarch.h: Re-generate.
15076 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15077 change.
15078 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15079 type to std::unique_ptr.
15080 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15081 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15082 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15083 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15084 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15085 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15086 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15087 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15088 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15089
15090 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15091
15092 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15093 std::unique_ptr.
15094 (displaced_step_clear): Rename to...
15095 (displaced_step_reset): ... this. Just call displaced->reset ().
15096 (displaced_step_clear_cleanup): Rename to...
15097 (displaced_step_reset_cleanup): ... this.
15098 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15099 (displaced_step_fixup): Likewise.
15100 (resume_1): Likewise.
15101 (handle_inferior_event): Restore child's memory before calling
15102 displaced_step_fixup on the parent.
15103 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15104 to std::unique_ptr.
15105 <step_closure>: Change type to std::unique_ptr.
15106
15107 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15108
15109 * arm-tdep.c: Include count-one-bits.h.
15110 (cleanup_block_store_pc): Use count_one_bits.
15111 (cleanup_block_load_pc): Use count_one_bits.
15112 (arm_copy_block_xfer): Use count_one_bits.
15113 (thumb2_copy_block_xfer): Use count_one_bits.
15114 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15115 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15116 (thumb_get_next_pcs_raw): Use count_one_bits.
15117 (arm_get_next_pcs_raw): Use count_one_bits_l.
15118 * arch/arm.c (bitcount): Remove.
15119 * arch/arm.h (bitcount): Remove.
15120
15121 2020-02-14 Tom Tromey <tromey@adacore.com>
15122
15123 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15124 Update.
15125 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15126 * dwarf2/loc.c (call_site_find_chain_1): Return
15127 unique_xmalloc_ptr.
15128 (call_site_find_chain): Likewise.
15129
15130 2020-02-14 Richard Biener <rguenther@suse.de>
15131
15132 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15133 on expression with division operators.
15134
15135 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15136
15137 * MAINTAINERS (Write After Approval): Adding myself.
15138
15139 2020-02-12 Tom Tromey <tom@tromey.com>
15140
15141 * event-loop.c (event_data, gdb_event, event_handler_func):
15142 Remove.
15143
15144 2020-02-12 Tom Tromey <tom@tromey.com>
15145
15146 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15147 (dwarf2_frame_objfile_data): Add comment.
15148 (find_comp_unit, set_comp_unit): New functions.
15149 (dwarf2_frame_find_fde): Use find_comp_unit.
15150 (dwarf2_build_frame_info): Use set_comp_unit.
15151
15152 2020-02-12 Tom Tromey <tom@tromey.com>
15153
15154 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15155 (comp_unit): Don't initialize objfile.
15156 (execute_cfa_program): Add text_offset parameter.
15157 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15158 (dwarf2_frame_cache): Update.
15159 (dwarf2_build_frame_info): Don't set "objfile" member.
15160
15161 2020-02-12 Tom Tromey <tom@tromey.com>
15162
15163 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15164 (decode_frame_entry): Likewise.
15165 (dwarf2_build_frame_info): Update.
15166
15167 2020-02-12 Tom Tromey <tom@tromey.com>
15168
15169 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15170 (decode_frame_entry_1): Use the comp_unit obstack.
15171
15172 2020-02-12 Tom Tromey <tom@tromey.com>
15173
15174 * dwarf2/frame.c (struct comp_unit): Add initializers and
15175 constructor.
15176 (dwarf2_frame_objfile_data): Store a comp_unit.
15177 (dwarf2_frame_find_fde): Update.
15178 (dwarf2_build_frame_info): Use "new".
15179
15180 2020-02-12 Tom Tromey <tom@tromey.com>
15181
15182 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15183 (dwarf2_fde_table): Typedef for std::vector.
15184 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15185 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15186 (decode_frame_entry): Update.
15187 (dwarf2_build_frame_info): Use "new".
15188
15189 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15190
15191 * arm-tdep.c (arm_gdbarch_init): Update.
15192 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15193 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15194 have_neon, is_m>: Change to bool.
15195
15196 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15197
15198 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15199
15200 2020-02-12 Tom Tromey <tom@tromey.com>
15201
15202 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15203
15204 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15205
15206 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15207 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15208
15209 2020-02-11 Tom Tromey <tom@tromey.com>
15210
15211 * psymtab.h: Update comment.
15212
15213 2020-02-11 Tom Tromey <tom@tromey.com>
15214
15215 * gdb_obstack.h (struct auto_obstack): Use
15216 DISABLE_COPY_AND_ASSIGN.
15217
15218 2020-02-11 Tom Tromey <tom@tromey.com>
15219
15220 * dwarf2/frame.h (struct objfile): Don't forward declare.
15221
15222 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15223
15224 * cris-tdep.c (cris_supply_gregset): Change signature to match
15225 what struct regset expects.
15226 (cris_regset): New struct.
15227 (fetch_core_registers): Remove.
15228 (cris_iterate_over_regset_sections): New function.
15229 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15230 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15231
15232 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15233
15234 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15235 registers.
15236
15237 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15238
15239 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15240
15241 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15242
15243 * configure: Re-generate.
15244
15245 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15246
15247 * configure: Re-generate.
15248
15249 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15250
15251 * acinclude: Update warning.m4 path.
15252 * warning.m4: Move to gdbsupport.
15253
15254 2020-02-11 Tom Tromey <tromey@adacore.com>
15255
15256 * remote.c (remote_console_output): Update.
15257 * printcmd.c (printf_command): Update.
15258 * event-loop.c (gdb_wait_for_event): Update.
15259 * linux-nat.c (sigchld_handler): Update.
15260 * remote-sim.c (gdb_os_write_stdout): Update.
15261 (gdb_os_flush_stdout): Update.
15262 (gdb_os_flush_stderr): Update.
15263 (gdb_os_write_stderr): Update.
15264 * exceptions.c (print_exception): Update.
15265 * remote-fileio.c (remote_fileio_func_read): Update.
15266 (remote_fileio_func_write): Update.
15267 * tui/tui.c (tui_enable): Update.
15268 * tui/tui-interp.c (tui_interp::init): Update.
15269 * utils.c (init_page_info): Update.
15270 (putchar_unfiltered, fputc_unfiltered): Update.
15271 (gdb_flush): Update.
15272 (emit_style_escape): Update.
15273 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15274 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15275 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15276 (stderr_file::write): Update.
15277 (stderr_file::puts): Update.
15278 * ui-file.h (ui_file_isatty, ui_file_write)
15279 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15280 (ui_file_puts): Don't declare.
15281
15282 2020-02-10 Tom de Vries <tdevries@suse.de>
15283
15284 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15285 sentinel to char *.
15286
15287 2020-02-09 Tom de Vries <tdevries@suse.de>
15288
15289 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15290 filename if it matches "<artificial>".
15291
15292 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15293
15294 * windows-tdep.c (struct enum_value_name): New struct.
15295 (create_enum): New function.
15296 (windows_get_siginfo_type): Create and use enum types.
15297
15298 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15299
15300 * NEWS: Mention $_siginfo support for Windows.
15301 * windows-nat.c (handle_exception): Set siginfo_er.
15302 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15303 (windows_xfer_siginfo): New function.
15304 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15305 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15306 (init_windows_gdbarch_data): New function.
15307 (get_windows_gdbarch_data): New function.
15308 (windows_get_siginfo_type): New function.
15309 (windows_init_abi): Register windows_get_siginfo_type.
15310 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15311
15312 2020-02-08 Tom Tromey <tom@tromey.com>
15313
15314 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15315 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15316 <keep>: Declare method.
15317 <m_keep>: Remove member.
15318 <~cutu_reader>: Remove.
15319 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15320 (cutu_reader::cutu_reader): Update.
15321 (cutu_reader::keep): Rename from ~cutu_reader.
15322 (process_psymtab_comp_unit, build_type_psymtabs_1)
15323 (process_skeletonless_type_unit, load_partial_comp_unit)
15324 (load_full_comp_unit, dwarf2_read_addr_index)
15325 (read_signatured_type): Update.
15326
15327 2020-02-08 Tom Tromey <tom@tromey.com>
15328
15329 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15330 "want_partial_unit" parameter.
15331 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15332 Inline check for DW_TAG_partial_unit.
15333 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15334
15335 2020-02-08 Tom Tromey <tom@tromey.com>
15336
15337 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15338 read.c.
15339 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15340 read.c.
15341
15342 2020-02-08 Tom Tromey <tom@tromey.com>
15343
15344 * dwarf2/read.c (read_address): Move to comp-unit.c.
15345 (dwarf2_rnglists_process, dwarf2_ranges_process)
15346 (read_attribute_value, dwarf_decode_lines_1)
15347 (var_decode_location, decode_locdesc): Update.
15348 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15349 read.c. Remove "cu" parameter.
15350 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15351 method.
15352
15353 2020-02-08 Tom Tromey <tom@tromey.com>
15354
15355 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15356 (read_indirect_line_string): Update.
15357 * dwarf2/comp-unit.c (read_offset): Remove.
15358 (read_comp_unit_head): Update.
15359 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15360 method.
15361 (read_offset): Don't declare.
15362
15363 2020-02-08 Tom Tromey <tom@tromey.com>
15364
15365 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15366 * dwarf2/read.c (struct comp_unit_head): Move to
15367 dwarf2/comp-unit.h.
15368 (enum class rcuh_kind): Move to comp-unit.h.
15369 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15370 (read_comp_unit_head, error_check_comp_unit_head)
15371 (read_and_check_comp_unit_head): Move to comp-unit.c.
15372 (read_offset, dwarf_unit_type_name): Likewise.
15373 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15374 (cutu_reader::cutu_reader, read_call_site_scope)
15375 (find_partial_die, follow_die_offset): Update.
15376 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15377
15378 2020-02-08 Tom Tromey <tom@tromey.com>
15379
15380 * dwarf2/read.c (read_offset_1): Move to leb.c.
15381 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15382 (dwarf_decode_macro_bytes): Update.
15383 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15384 * dwarf2/leb.h (read_offset): Declare.
15385
15386 2020-02-08 Tom Tromey <tom@tromey.com>
15387
15388 * dwarf2/read.c (dwarf2_section_size): Remove.
15389 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15390 Update.
15391 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15392
15393 2020-02-08 Tom Tromey <tom@tromey.com>
15394
15395 * dwarf2/read.c (read_initial_length): Move to leb.c.
15396 * dwarf2/leb.h (read_initial_length): Declare.
15397 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15398 handle_nonstd parameter.
15399 * dwarf2/frame.c (read_initial_length): Remove.
15400 (decode_frame_entry_1): Update.
15401
15402 2020-02-08 Tom Tromey <tom@tromey.com>
15403
15404 * dwarf2/loc.c (dwarf2_find_location_expression)
15405 (dwarf_evaluate_loc_desc::get_tls_address)
15406 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15407 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15408 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15409 (dwarf2_compile_property_to_c)
15410 (dwarf2_loc_desc_get_symbol_read_needs)
15411 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15412 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15413 (loclist_describe_location, loclist_tracepoint_var_ref)
15414 (loclist_generate_c_location): Update.
15415 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15416 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15417 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15418 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15419 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15420 (dwarf2_per_cu_data::addr_size)
15421 (dwarf2_per_cu_data::ref_addr_size)
15422 (dwarf2_per_cu_data::text_offset)
15423 (dwarf2_per_cu_data::addr_type): Now methods.
15424 (per_cu_header_read_in): Make per_cu "const".
15425 (dwarf2_version): Remove.
15426 (dwarf2_per_cu_data::int_type): Now a method.
15427 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15428 (set_die_type, read_array_type, read_subrange_index_type)
15429 (read_tag_string_type, read_subrange_type): Update.
15430 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15431 offset_size, ref_addr_size, text_offset, addr_type, version,
15432 objfile, int_type, addr_sized_int_type>: Declare methods.
15433
15434 2020-02-08 Tom Tromey <tom@tromey.com>
15435
15436 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15437 Move earlier.
15438
15439 2020-02-08 Tom Tromey <tom@tromey.com>
15440
15441 * dwarf2/read.h (dwarf_line_debug): Declare.
15442 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15443 * dwarf2/read.c: Move line_header code to new files.
15444 (dwarf_line_debug): No longer static.
15445 * dwarf2/line-header.c: New file.
15446 * dwarf2/line-header.h: New file.
15447
15448 2020-02-08 Tom Tromey <tom@tromey.com>
15449
15450 * dwarf2/read.c (struct line_header) <file_full_name,
15451 file_file_name>: Return unique_xmalloc_ptr.
15452 (line_header::file_file_name): Update.
15453 (line_header::file_full_name): Update.
15454 (dw2_get_file_names_reader): Update.
15455 (macro_start_file): Update.
15456
15457 2020-02-08 Tom Tromey <tom@tromey.com>
15458
15459 * dwarf2/read.c (struct line_header) <file_full_name,
15460 file_file_name>: Declare methods.
15461 (dw2_get_file_names_reader): Update.
15462 (file_file_name): Now a method.
15463 (file_full_name): Likewise.
15464 (macro_start_file): Update.
15465
15466 2020-02-08 Tom Tromey <tom@tromey.com>
15467
15468 * dwarf2/read.c (dwarf_always_disassemble)
15469 (show_dwarf_always_disassemble): Move to loc.c.
15470 (_initialize_dwarf2_read): Move "always-disassemble" registration
15471 to loc.c.
15472 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15473 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15474 static.
15475 (show_dwarf_always_disassemble): Move from read.c.
15476 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15477
15478 2020-02-08 Tom Tromey <tom@tromey.com>
15479
15480 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15481 (create_quick_file_names_table): Return htab_up.
15482 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15483 Update.
15484 * dwarf2/read.h (struct dwarf2_per_objfile)
15485 <quick_file_names_table>: Now htab_up.
15486
15487 2020-02-08 Tom Tromey <tom@tromey.com>
15488
15489 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15490
15491 2020-02-08 Tom Tromey <tom@tromey.com>
15492
15493 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15494 Rewrite.
15495 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15496 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15497 (abbrev_table::abbrev_table): No longer inline.
15498 (ABBREV_HASH_SIZE): Remove.
15499 (abbrev_table::m_abbrevs): Now an htab_up.
15500
15501 2020-02-08 Tom Tromey <tom@tromey.com>
15502
15503 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15504 (cutu_reader): Update.
15505 (build_type_psymtabs_1): Update.
15506 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15507 (abbrev_table::alloc_abbrev): Update.
15508 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15509 (abbrev_table::read): New static method, renamed from
15510 abbrev_table_read_table.
15511 (abbrev_table::alloc_abbrev)
15512 (abbrev_table::add_abbrev): Now private.
15513 (abbrev_table::abbrev_table): Now private.
15514 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15515
15516 2020-02-08 Tom Tromey <tom@tromey.com>
15517
15518 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15519 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15520 htab_up.
15521
15522 2020-02-08 Tom Tromey <tom@tromey.com>
15523
15524 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15525 htab_up.
15526 (lookup_dwo_unit_in_dwp): Update.
15527 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15528 on obstack.
15529
15530 2020-02-08 Tom Tromey <tom@tromey.com>
15531
15532 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15533 obstack.
15534
15535 2020-02-08 Tom Tromey <tom@tromey.com>
15536
15537 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15538 line_header_hash.
15539 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15540 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15541 Change type to htab_up.
15542
15543 2020-02-08 Tom Tromey <tom@tromey.com>
15544
15545 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15546 htab_up. Don't allocate on obstack.
15547 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15548 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15549 Change type to htab_up.
15550
15551 2020-02-08 Tom Tromey <tom@tromey.com>
15552
15553 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15554 Change type to htab_up.
15555 * dwarf2/read.c (create_signatured_type_table_from_index)
15556 (create_signatured_type_table_from_debug_names)
15557 (create_all_type_units, add_type_unit)
15558 (lookup_dwo_signatured_type, lookup_signatured_type)
15559 (process_skeletonless_type_unit): Update.
15560 (create_debug_type_hash_table, create_debug_types_hash_table):
15561 Change type of types_htab.
15562 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15563 htab_up. Don't allocate on obstack.
15564 (create_cus_hash_table): Change type of cus_htab parameter.
15565 (struct dwo_file) <cus, tus>: Now htab_up.
15566 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15567 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15568 (queue_and_load_all_dwo_tus): Update.
15569 * dwarf2/index-write.c (write_gdbindex): Update.
15570 (write_debug_names): Update.
15571
15572 2020-02-08 Tom Tromey <tom@tromey.com>
15573
15574 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15575 dwarf2/read.c. Remove "next" member. Add constructor ntad
15576 destructor.
15577 (struct dwarf2_per_objfile) <queue>: New member.
15578 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15579 dwarf2/read.h.
15580 (dwarf2_queue, dwarf2_queue_tail): Remove.
15581 (class dwarf2_queue_guard): Add parameter to constructor. Use
15582 DISABLE_COPY_AND_ASSIGN.
15583 <m_per_objfile>: New member.
15584 <~dwarf2_queue_guard>: Rewrite.
15585 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15586 Update.
15587 (~dwarf2_queue_item): New.
15588
15589 2020-02-08 Tom Tromey <tom@tromey.com>
15590
15591 * dwarf2/read.c (struct die_info) <has_children>: New member.
15592 (dw2_get_file_names_reader): Remove has_children.
15593 (dw2_get_file_names): Update.
15594 (read_cutu_die_from_dwo): Remove has_children.
15595 (cutu_reader::init_tu_and_read_dwo_dies)
15596 (cutu_reader::cutu_reader): Update.
15597 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15598 Remove has_children.
15599 (build_type_psymtabs_1, process_skeletonless_type_unit)
15600 (load_partial_comp_unit, load_full_comp_unit): Update.
15601 (create_dwo_cu_reader): Remove has_children.
15602 (create_cus_hash_table, read_die_and_children): Update.
15603 (read_full_die_1,read_full_die): Remove has_children.
15604 (read_signatured_type): Update.
15605 (class cutu_reader) <has_children>: Remove.
15606
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15608
15609 * dwarf2/expr.c: Rename from dwarf2expr.c.
15610 * dwarf2/expr.h: Rename from dwarf2expr.h.
15611 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15612 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15613 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15614 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15615 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15616 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15617 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15618 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15619 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15620 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15621 * dwarf2/loc.c: Rename from dwarf2loc.c.
15622 * dwarf2/loc.h: Rename from dwarf2loc.h.
15623 * dwarf2/read.c: Rename from dwarf2read.c.
15624 * dwarf2/read.h: Rename from dwarf2read.h.
15625 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15626 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15627 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15628 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15629 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15630 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15631 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15632 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15633 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15634 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15635 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15636 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15637 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15638 Update.
15639 * Makefile.in (COMMON_SFILES): Update.
15640 (HFILES_NO_SRCDIR): Update.
15641
15642 2020-02-08 Tom Tromey <tom@tromey.com>
15643
15644 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15645 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15646
15647 2020-02-08 Tom Tromey <tom@tromey.com>
15648
15649 * dwarf2read.h (struct die_info): Don't declare.
15650
15651 2020-02-08 Tom Tromey <tom@tromey.com>
15652
15653 * dwarf2read.h (die_info_ptr): Remove typedef.
15654
15655 2020-02-08 Tom Tromey <tom@tromey.com>
15656
15657 * dwarf2read.c (read_call_site_scope)
15658 (handle_data_member_location, dwarf2_add_member_fn)
15659 (mark_common_block_symbol_computed, read_common_block)
15660 (attr_to_dynamic_prop, partial_die_info::read)
15661 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15662 (dwarf2_symbol_mark_computed, set_die_type): Update.
15663 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15664 method.
15665 (attr_form_is_block): Don't declare.
15666 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15667
15668 2020-02-08 Tom Tromey <tom@tromey.com>
15669
15670 * dwarf2read.c (dwarf2_find_base_address, )
15671 (read_call_site_scope, rust_containing_type)
15672 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15673 (handle_data_member_location, dwarf2_add_member_fn)
15674 (get_alignment, read_structure_type, process_structure_scope)
15675 (mark_common_block_symbol_computed, read_common_block)
15676 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15677 (partial_die_info::read, read_attribute_value, new_symbol)
15678 (lookup_die_type, dwarf2_get_ref_die_offset)
15679 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15680 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15681 (dwarf2_symbol_mark_computed): Update.
15682 * dwarf2/attribute.h (struct attribute) <value_as_address,
15683 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15684 methods.
15685 (value_as_address, attr_form_is_section_offset)
15686 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15687 * dwarf2/attribute.c (attribute::value_as_address)
15688 (attribute::form_is_section_offset, attribute::form_is_constant)
15689 (attribute::form_is_ref): Now methods.
15690
15691 2020-02-08 Tom Tromey <tom@tromey.com>
15692
15693 * dwarf2read.c (struct attribute, DW_STRING)
15694 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15695 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15696 (attr_form_is_block, attr_form_is_section_offset)
15697 (attr_form_is_constant, attr_form_is_ref): Move.
15698 * dwarf2/attribute.h: New file.
15699 * dwarf2/attribute.c: New file, from dwarf2read.c.
15700 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15701
15702 2020-02-08 Tom Tromey <tom@tromey.com>
15703
15704 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15705 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15706 Move.
15707 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15708 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15709 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15710 abbrev.c.
15711 * dwarf2/abbrev.h: New file.
15712 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15713 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15714
15715 2020-02-08 Tom Tromey <tom@tromey.com>
15716
15717 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15718 (dwarf2_section_size, dwarf2_get_section_info)
15719 (create_signatured_type_table_from_debug_names)
15720 (create_addrmap_from_aranges, read_debug_names_from_section)
15721 (get_gdb_index_contents_from_section, read_comp_unit_head)
15722 (error_check_comp_unit_head, read_abbrev_offset)
15723 (create_debug_type_hash_table, init_cu_die_reader)
15724 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15725 (read_comp_units_from_section, create_cus_hash_table)
15726 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15727 (create_dwp_v2_section, dwarf2_rnglists_process)
15728 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15729 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15730 (read_indirect_string_from_dwz, read_addr_index_1)
15731 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15732 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15733 (fill_in_loclist_baton): Update.
15734 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15735 get_containing_section, get_bfd_owner, get_bfd_section,
15736 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15737 (dwarf2_read_section, get_section_name, get_section_file_name)
15738 (get_containing_section, get_section_bfd_owner)
15739 (get_section_bfd_section, get_section_name, get_section_file_name)
15740 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15741 declare.
15742 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15743 (dwarf2_section_info::get_bfd_owner)
15744 (dwarf2_section_info::get_bfd_section)
15745 (dwarf2_section_info::get_name)
15746 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15747 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15748 (dwarf2_section_info::read): Now methods.
15749 * dwarf-index-write.c (class debug_names): Update.
15750
15751 2020-02-08 Tom Tromey <tom@tromey.com>
15752
15753 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15754 Move to dwarf2/section.h.
15755 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15756 (get_section_bfd_section, get_section_name)
15757 (get_section_file_name, get_section_id, get_section_flags)
15758 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15759 dwarf2/section.c.
15760 * dwarf2/section.h: New file.
15761 * dwarf2/section.c: New file, from dwarf2read.c.
15762 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15763
15764 2020-02-08 Tom Tromey <tom@tromey.com>
15765
15766 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15767 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15768 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15769 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15770 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15771 * dwarf2/leb.h: New file, from dwarf2read.c.
15772 * dwarf2/leb.c: New file, from dwarf2read.c.
15773 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15774 Remove.
15775 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15776 (COMMON_SFILES): Add dwarf2/leb.c.
15777
15778 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15779
15780 GDB 9.1 released.
15781
15782 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15783
15784 PR gdb/25190:
15785 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15786 * gdb/remote.c (remote_console_output): Update.
15787 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15788 (ui_file_puts): ...this.
15789 * gdb/ui-file.h (ui_file_puts): Add declaration.
15790 * gdb/utils.c (emit_style_escape): Update.
15791 (flush_wrap_buffer): Update.
15792 (fputs_maybe_filtered): Update.
15793 (fputs_unfiltered): Add function.
15794
15795 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15796
15797 * gdb/event-loop.c (gdb_wait_for_event): Update.
15798 * gdb/printcmd.c (printf_command): Update.
15799 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15800 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15801 (gdb_os_flush_stderr): Update.
15802 * gdb/remote.c (remote_console_output): Update.
15803 * gdb/ui-file.c (gdb_flush): Rename to...
15804 (ui_file_flush): ...this.
15805 (stderr_file::write): Update.
15806 (stderr_file::puts): Update.
15807 * gdb/ui-file.h (gdb_flush): Rename to...
15808 (ui_file_flush): ...this.
15809 * gdb/utils.c (gdb_flush): Add function.
15810 * gdb/utils.h (gdb_flush): Add declaration.
15811
15812 2020-02-07 Tom Tromey <tromey@adacore.com>
15813
15814 PR breakpoints/24915:
15815 * source.c (find_and_open_source): Do not check basenames_may_differ.
15816
15817 2020-02-07 Tom Tromey <tom@tromey.com>
15818
15819 * README: Update gdbserver documentation.
15820 * gdbserver: Move to top level.
15821 * configure.tgt (build_gdbserver): Remove.
15822 * configure.ac: Remove --enable-gdbserver.
15823 * configure: Rebuild.
15824 * Makefile.in (distclean): Don't mention gdbserver.
15825
15826 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15827
15828 * source-cache.c (source_cache::ensure): Surround
15829 get_plain_source_lines with a try/catch.
15830 (source_cache::get_line_charpos): Get rid of try/catch
15831 and only check for the return value of "ensure".
15832 * tui/tui-source.c (tui_source_window::set_contents):
15833 Simplify "nlines" calculation.
15834
15835 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15836
15837 * MAINTAINERS (Write After Approval): Add myself.
15838
15839 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15840
15841 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15842 function call.
15843
15844 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15845
15846 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15847
15848 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15849
15850 * nat/riscv-linux-tdesc.h: New file.
15851 * nat/riscv-linux-tdesc.c: New file, taking code from...
15852 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15853 ... here.
15854 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15855 NATDEPFILES.
15856
15857 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15858
15859 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15860 we don't set the fake simulator ptid to the null_ptid.
15861
15862 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15863
15864 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15865 * gdbthread.h (class thread_info) <resumed>: Likewise.
15866 * infrun.c (resume_1): Likewise.
15867 (proceed): Likewise.
15868 (infrun_thread_stop_requested): Likewise.
15869 (stop_all_threads): Likewise.
15870 (handle_inferior_event): Likewise.
15871 (restart_threads): Likewise.
15872 (finish_step_over): Likewise.
15873 (keep_going_stepped_thread): Likewise.
15874 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15875 (linux_handle_extended_wait): Likewise.
15876 * record-btrace.c (get_thread_current_frame_id): Likewise.
15877 * record-full.c (record_full_wait_1): Likewise.
15878 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15879 * target.c (target_resume): Likewise.
15880 * thread.c (set_running_thread): Likewise.
15881
15882 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15883
15884 * f-valprint.c (f77_print_array_1): Changed datatype of index
15885 variable to LONGEST from int to enable it to contain bound
15886 values correctly.
15887
15888 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15889
15890 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15891 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15892 offsets according to FLEN determined.
15893 (riscv_linux_nat_target::read_description): Determine FLEN
15894 dynamically.
15895 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15896 according to FLEN determined.
15897 (riscv_linux_nat_target::store_registers): Likewise.
15898
15899 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15900
15901 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15902 when reg->group is empty and reggroup is not.
15903
15904 2020-01-31 Tom Tromey <tromey@adacore.com>
15905
15906 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15907 Call beneath target's mourn_inferior after unpushing.
15908
15909 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15910
15911 PR tui/9765
15912 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15913 have enough lines to fill the screen, still return the lowest
15914 address we found.
15915
15916 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15917
15918 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15919 '-', '<', and '>' commands.
15920
15921 2020-01-29 Pedro Alves <palves@redhat.com>
15922 Sergio Durigan Junior <sergiodj@redhat.com>
15923
15924 * infcmd.c (construct_inferior_arguments): Assert that
15925 'argc' is greater than 0.
15926
15927 2020-01-29 Luis Machado <luis.machado@linaro.org>
15928
15929 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15930 (BRK_INSN_MASK): Define to 0xd4200000.
15931 (aarch64_program_breakpoint_here_p): New function.
15932 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15933 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15934 breakpoint.c.
15935 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15936 breakpoint.h
15937 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15938 call gdbarch_program_breakpoint_here_p.
15939 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15940 default_program_breakpoint_here_p, changed return type to bool and
15941 simplified.
15942 * breakpoint.h (program_breakpoint_here): Moved prototype to
15943 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15944 return type to bool.
15945 * gdbarch.c: Regenerate.
15946 * gdbarch.h: Regenerate.
15947 * gdbarch.sh (program_breakpoint_here_p): New method.
15948 * infrun.c (handle_signal_stop): Call
15949 gdbarch_program_breakpoint_here_p.
15950
15951 2020-01-26 Tom Tromey <tom@tromey.com>
15952
15953 * ctfread.c (struct ctf_fp_info): Reindent.
15954 (_initialize_ctfread): Remove.
15955
15956 2020-01-26 Tom Tromey <tom@tromey.com>
15957
15958 * psymtab.c (partial_map_expand_apply)
15959 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15960 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15961 (psym_print_stats, psym_expand_symtabs_for_function)
15962 (psym_map_symbol_filenames, psym_map_matching_symbols)
15963 (psym_expand_symtabs_matching)
15964 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15965 (maintenance_check_psymtabs): Use new methods.
15966 * psympriv.h (struct partial_symtab) <readin_p,
15967 get_compunit_symtab>: New methods.
15968 <readin, compunit_symtab>: Remove members.
15969 (struct standard_psymtab): New.
15970 (struct legacy_psymtab): Derive from standard_psymtab.
15971 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15972 standard_psymtab.
15973 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15974
15975 2020-01-26 Tom Tromey <tom@tromey.com>
15976
15977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15978 read_dependencies. Add assert.
15979 * psymtab.c (partial_symtab::read_dependencies): New method.
15980 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15981 method.
15982 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15983 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15984 read_dependencies.
15985 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15986 Add assert.
15987
15988 2020-01-26 Tom Tromey <tom@tromey.com>
15989
15990 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15991 Call expand_psymtab.
15992 (xcoff_read_symtab): Call expand_psymtab.
15993 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15994 legacy_expand_psymtab.
15995 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15996 method.
15997 (struct legacy_psymtab) <expand_psymtab>: Implement.
15998 <legacy_expand_psymtab>: New member.
15999 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16000 (parse_partial_symbols): Set legacy_expand_psymtab.
16001 (psymtab_to_symtab_1): Change argument order. Call
16002 expand_psymtab.
16003 (new_psymtab): Set legacy_expand_psymtab.
16004 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16005 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16006 expand_psymtab.
16007 (dwarf2_psymtab::expand_psymtab): Rename from
16008 psymtab_to_symtab_1. Call expand_psymtab.
16009 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16010 (dbx_end_psymtab): Likewise.
16011 (dbx_psymtab_to_symtab_1): Change argument order. Call
16012 expand_psymtab.
16013 (dbx_read_symtab): Call expand_psymtab.
16014 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16015 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16016 (ctf_psymtab::read_symtab): Call expand_psymtab.
16017
16018 2020-01-26 Tom Tromey <tom@tromey.com>
16019
16020 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16021 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16022 messages.
16023 * mdebugread.c (mdebug_read_symtab): Remove prints.
16024 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16025 assert.
16026 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16027
16028 2020-01-26 Tom Tromey <tom@tromey.com>
16029
16030 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16031 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16032 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16033 legacy_symtab.
16034 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16035 * psymtab.c (psymtab_to_symtab): Call method.
16036 (dump_psymtab): Update.
16037 * psympriv.h (struct partial_symtab): Add virtual destructor.
16038 <read_symtab>: New method.
16039 (struct legacy_symtab): New.
16040 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16041 (struct pst_map) <pst>: Now a legacy_psymtab.
16042 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16043 (new_psymtab): Use legacy_psymtab.
16044 * dwarf2read.h (struct dwarf2_psymtab): New.
16045 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16046 * dwarf2read.c (dwarf2_create_include_psymtab)
16047 (dwarf2_build_include_psymtabs, create_type_unit_group)
16048 (create_partial_symtab, process_psymtab_comp_unit_reader)
16049 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16050 (set_partial_user): Use dwarf2_psymtab.
16051 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16052 (psymtab_to_symtab_1, process_full_comp_unit)
16053 (process_full_type_unit, dwarf2_ranges_read)
16054 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16055 (dwarf_decode_lines): Use dwarf2_psymtab.
16056 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16057 (add_address_entry_worker, write_one_signatured_type)
16058 (recursively_count_psymbols, recursively_write_psymbols)
16059 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16060 (write_debug_names): Likewise.
16061 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16062 <pst>: Now a legacy_psymtab.
16063 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16064 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16065 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16066 * ctfread.c (struct ctf_psymtab): New.
16067 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16068 ctf_psymtab.
16069 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16070 (create_partial_symtab): Return a ctf_psymtab.
16071 (scan_partial_symbols): Update.
16072
16073 2020-01-26 Tom Tromey <tom@tromey.com>
16074
16075 * xcoffread.c (xcoff_start_psymtab): Use new.
16076 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16077 renamed from start_psymtab_common.
16078 * psympriv.h (struct partial_symtab): Add new constructor.
16079 (start_psymtab_common): Don't declare.
16080 * mdebugread.c (parse_partial_symbols): Use new.
16081 * dwarf2read.c (create_partial_symtab): Use new.
16082 * dbxread.c (start_psymtab): Use new.
16083 * ctfread.c (create_partial_symtab): Use new.
16084
16085 2020-01-26 Tom Tromey <tom@tromey.com>
16086
16087 * xcoffread.c (xcoff_end_psymtab): Use new.
16088 * psymtab.c (start_psymtab_common): Use new.
16089 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16090 Update.
16091 * psympriv.h (struct partial_symtab): Add parameters to
16092 constructor. Don't inline.
16093 (allocate_psymtab): Don't declare.
16094 * mdebugread.c (new_psymtab): Use new.
16095 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16096 * dbxread.c (dbx_end_psymtab): Use new.
16097
16098 2020-01-26 Tom Tromey <tom@tromey.com>
16099
16100 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16101 allocate_psymtab. Update documentation.
16102 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16103 allocate_psymtab. Do not use new.
16104 (allocate_psymtab): Use new. Update.
16105
16106 2020-01-26 Tom Tromey <tom@tromey.com>
16107
16108 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16109 * psymtab.c (psym_print_stats): Update.
16110 * psympriv.h (struct partial_symtab) <readin,
16111 psymtabs_addrmap_supported, anonymous>: Now bool.
16112 * mdebugread.c (psymtab_to_symtab_1): Update.
16113 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16114 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16115 (process_full_comp_unit, process_full_type_unit): Update.
16116 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16117 * ctfread.c (psymtab_to_symtab): Update.
16118
16119 2020-01-26 Tom Tromey <tom@tromey.com>
16120
16121 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16122 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16123 * psymtab.c (psymtab_storage): Delete psymtabs.
16124 (psymtab_storage::allocate_psymtab): Use new.
16125 (psymtab_storage::discard_psymtab): Use delete.
16126 * psympriv.h (struct partial_symtab): Add constructor and
16127 initializers.
16128
16129 2020-01-26 Tom Tromey <tom@tromey.com>
16130
16131 * machoread.c: Do not include psympriv.h.
16132
16133 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16134
16135 * NEWS: Mention the new option and the set/show commands.
16136
16137 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16138
16139 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16140 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16141 (validate_exec_file): New variables, enums, functions.
16142 (exec_file_locate_attach, print_section_info): Style the filenames.
16143 (_initialize_exec): Install show_exec_file_mismatch_command and
16144 set_exec_file_mismatch_command.
16145 * gdbcore.h (validate_exec_file): Declare.
16146 * infcmd.c (attach_command): Call validate_exec_file.
16147 * remote.c ( remote_target::remote_add_inferior): Likewise.
16148
16149 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16150
16151 * frame.c (find_frame_sal): Move call to get_next_frame into more
16152 inner scope.
16153 * inline-frame.c (inilne_state) <inline_state>: Update argument
16154 types.
16155 (inilne_state) <skipped_symbol>: Rename to...
16156 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16157 (skip_inline_frames): Build vector of skipped symbols and use this
16158 to reate the inline_state.
16159 (inline_skipped_symbol): Add a comment and some assertions, fetch
16160 skipped symbol from the list.
16161
16162 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16163
16164 * buildsym.c (lte_is_less_than): Delete.
16165 (buildsym_compunit::end_symtab_with_blockvector): Create local
16166 lambda function to sort line table entries, and use
16167 std::stable_sort instead of std::sort.
16168 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16169 markers when looking for a previous line.
16170
16171 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16172
16173 * dwarf2read.c (lnp_state_machine::record_line): Include
16174 end_sequence parameter in debug print out. Record the line if we
16175 are at an end_sequence marker even if it's not the start of a
16176 statement.
16177 * symmisc.c (maintenance_print_one_line_table): Print end of
16178 sequence markers with 'END' not '0'.
16179
16180 2020-01-24 Pedro Alves <palves@redhat.com>
16181
16182 PR gdb/25410
16183 * thread.c (scoped_restore_current_thread::restore): Use
16184 switch_to_inferior_no_thread.
16185 * exec.c: Include "progspace-and-thread.h".
16186 (add_target_sections, remove_target_sections):
16187 scoped_restore_current_pspace_and_thread instead of
16188 scoped_restore_current_thread.
16189 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16190 and aspace to the inferior before calling clone_program_space.
16191 Remove stale comment.
16192
16193 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16194
16195 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16196 (arm_netbsd_nat_target::fetch_registers): ...this.
16197 (arm_nbsd_nat_target::store_registers): Rename to...
16198 (arm_netbsd_nat_target::store_registers): ...this.
16199
16200 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16201
16202 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16203 register_t.
16204
16205 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16206
16207 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16208 Update comment.
16209 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16210 Likewise.
16211 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16212 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16213 the correct replacement (iterate_over_regset_sections).
16214 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16215 Update comment.
16216
16217 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16218
16219 PR gdb/23718
16220 * gdb/python/python.c (execute_gdb_command): Call
16221 async_enable_stdin in catch block.
16222
16223 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16224
16225 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16226 SWITCH_THRU_ALL_UIS.
16227
16228 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16229
16230 PR tui/9765
16231 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16232 comment, add extra parameter, and update to store previous symbol
16233 when appropriate.
16234 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16235 add extra parameter.
16236 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16237 remove unneeded parameter, add try/catch around gdb_print_insn,
16238 rewrite to add items to asm_lines vector.
16239 (tui_find_backward_disassembly_start_address): New function.
16240 (tui_find_disassembly_address): Updated throughout.
16241 (tui_disasm_window::set_contents): Update for changes to
16242 tui_disassemble.
16243 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16244 number of lines to scroll.
16245
16246 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16247
16248 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16249 (SECT_OFF_DATA): Likewise.
16250 (SECT_OFF_RODATA): Likewise.
16251 (SECT_OFF_TEXT): Likewise.
16252 (SECT_OFF_BSS): Likewise.
16253 (struct objfile) <text_section_offset, data_section_offset>: New
16254 methods.
16255 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16256 objfile::text_section_offset.
16257 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16258 * coffread.c (coff_symtab_read): Likewise.
16259 (enter_linenos): Likewise.
16260 (process_coff_symbol): Likewise.
16261 * ctfread.c (get_objfile_text_range): Likewise.
16262 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16263 Use objfile::data_section_offset.
16264 * dwarf2-frame.c (execute_cfa_program): Use
16265 objfile::text_section_offset.
16266 (dwarf2_frame_find_fde): Likewise.
16267 * dwarf2read.c (create_addrmap_from_index): Likewise.
16268 (create_addrmap_from_aranges): Likewise.
16269 (dw2_find_pc_sect_compunit_symtab): Likewise.
16270 (process_psymtab_comp_unit_reader): Likewise.
16271 (add_partial_symbol): Likewise.
16272 (add_partial_subprogram): Likewise.
16273 (process_full_comp_unit): Likewise.
16274 (read_file_scope): Likewise.
16275 (read_func_scope): Likewise.
16276 (read_lexical_block_scope): Likewise.
16277 (read_call_site_scope): Likewise.
16278 (dwarf2_rnglists_process): Likewise.
16279 (dwarf2_ranges_process): Likewise.
16280 (dwarf2_ranges_read): Likewise.
16281 (dwarf_decode_lines_1): Likewise.
16282 (new_symbol): Likewise.
16283 (dwarf2_fetch_die_loc_sect_off): Likewise.
16284 (dwarf2_per_cu_text_offset): Likewise.
16285 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16286 * hppa-tdep.c (read_unwind_info): Likewise.
16287 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16288 * psympriv.h (struct partial_symtab): Likewise.
16289 * psymtab.c (find_pc_sect_psymtab): Likewise.
16290 * solib-svr4.c (enable_break): Likewise.
16291 * stap-probe.c (relocate_address): Use
16292 objfile::data_section_offset.
16293 * xcoffread.c (enter_line_range): Use
16294 objfile::text_section_offset.
16295 (read_xcoff_symtab): Likewise.
16296
16297 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16298
16299 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16300 declaration to narrower scopes.
16301
16302 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16303
16304 * darwin-nat.h (struct darwin_exception_msg, enum
16305 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16306 Move up.
16307 (class darwin_nat_target) <wait_1, check_new_threads,
16308 decode_exception_message, decode_message, stop_inferior,
16309 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16310 * darwin-nat.c (darwin_check_new_threads): Rename to...
16311 (darwin_nat_target::check_new_threads): ... this.
16312 (darwin_suspend_inferior_it): Remove.
16313 (darwin_decode_exception_message): Rename to...
16314 (darwin_nat_target::decode_exception_message): ... this.
16315 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16316 (darwin_decode_message): Rename to...
16317 (darwin_nat_target::decode_message): ... this.
16318 (cancel_breakpoint): Rename to...
16319 (darwin_nat_target::cancel_breakpoint): ... this.
16320 (darwin_wait): Rename to...
16321 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16322 instead of iterate_over_inferiors.
16323 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16324 (darwin_stop_inferior): Rename to...
16325 (darwin_nat_target::stop_inferior): ... this.
16326 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16327 (darwin_init_thread_list): Rename to...
16328 (darwin_nat_target::init_thread_list): ... this.
16329 (darwin_ptrace_him): Rename to...
16330 (darwin_nat_target::ptrace_him): ... this.
16331 (darwin_nat_target::create_inferior): Pass lambda function to
16332 fork_inferior.
16333 (darwin_nat_target::detach): Call stop_inferior instead of
16334 darwin_stop_inferior.
16335 * fork-inferior.h (fork_inferior): Change init_trace_fun
16336 parameter to gdb::function_view.
16337 * fork-inferior.c (fork_inferior): Likewise.
16338
16339 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16340
16341 * i386-cygwin-tdep.c (core_process_module_section): Update.
16342 * windows-nat.c (struct lm_info_windows): Add text_offset.
16343 (windows_xfer_shared_libraries): Update.
16344 * windows-tdep.c (windows_xfer_shared_library):
16345 Add text_offset_cached argument.
16346 * windows-tdep.h (windows_xfer_shared_library): Update.
16347
16348 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16349
16350 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16351
16352 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16353
16354 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16355 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16356 replace with range-based for.
16357 (gdbsim_interrupt_inferior): Remove.
16358 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16359 with a range-based for. Inline code from
16360 gdbsim_interrupt_inferior.
16361
16362 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16363
16364 * infrun.c (proceed): Fix indentation.
16365
16366 2020-01-21 Tom Tromey <tromey@adacore.com>
16367
16368 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16369 * python/python.c (python_extension_ops): Update.
16370 (gdbpy_colorize): New function.
16371 * python/lib/gdb/__init__.py (colorize): New function.
16372 * extension.h (ext_lang_colorize): Declare.
16373 * extension.c (ext_lang_colorize): New function.
16374 * extension-priv.h (struct extension_language_ops) <colorize>: New
16375 member.
16376 * cli/cli-style.c (_initialize_cli_style): Update help text.
16377
16378 2020-01-21 Luis Machado <luis.machado@linaro.org>
16379
16380 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16381 <cond>: Change type to bool.
16382 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16383 (aarch64_displaced_step_cb): Likewise.
16384 (aarch64_displaced_step_tb): Likewise.
16385
16386 2020-01-21 Luis Machado <luis.machado@linaro.org>
16387
16388 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16389 output.
16390
16391 2020-01-21 Luis Machado <luis.machado@linaro.org>
16392
16393 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16394 <pc_adjust>: Adjust the documentation.
16395 (aarch64_displaced_step_fixup): Check if PC really moved before
16396 adjusting it.
16397
16398 2020-01-19 Tom Tromey <tom@tromey.com>
16399
16400 * disasm.c (~gdb_disassembler): New destructor.
16401 (gdb_buffered_insn_length): Call disassemble_free_target.
16402 * disasm.h (class gdb_disassembler): Declare destructor. Use
16403 DISABLE_COPY_AND_ASSIGN.
16404
16405 2020-01-19 Tom Tromey <tom@tromey.com>
16406
16407 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16408 (die_reader_func_ftype): Remove.
16409 (cutu_reader): New class.
16410 (dw2_get_file_names_reader): Remove "data" parameter.
16411 (dw2_get_file_names): Use cutu_reader.
16412 (create_debug_type_hash_table): Update.
16413 (read_cutu_die_from_dwo): Update comment.
16414 (lookup_dwo_unit): Add dwo_name parameter.
16415 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16416 die_reader_func_ftype and data parameters.
16417 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16418 Remove die_reader_func_ftype and data parameters.
16419 (~cutu_reader): New; from init_cutu_and_read_dies.
16420 (cutu_reader::cutu_reader): Rename from
16421 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16422 and data parameters.
16423 (init_cutu_and_read_dies_simple): Remove.
16424 (struct process_psymtab_comp_unit_data): Remove.
16425 (process_psymtab_comp_unit_reader): Remove data parameter; add
16426 want_partial_unit and pretend_language parameters.
16427 (process_psymtab_comp_unit): Use cutu_reader.
16428 (build_type_psymtabs_reader): Remove data parameter.
16429 (build_type_psymtabs_1): Use cutu_reader.
16430 (process_skeletonless_type_unit): Likewise.
16431 (load_partial_comp_unit_reader): Remove.
16432 (load_partial_comp_unit): Use cutu_reader.
16433 (load_full_comp_unit_reader): Remove.
16434 (load_full_comp_unit): Use cutu_reader.
16435 (struct create_dwo_cu_data): Remove.
16436 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16437 dwo_unit parameters.
16438 (create_cus_hash_table): Use cutu_reader.
16439 (struct dwarf2_read_addr_index_data): Remove.
16440 (dwarf2_read_addr_index_reader): Remove.
16441 (dwarf2_read_addr_index): Use cutu_reader.
16442 (read_signatured_type_reader): Remove.
16443 (read_signatured_type): Use cutu_reader.
16444
16445 2020-01-19 Tom Tromey <tom@tromey.com>
16446
16447 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16448 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16449 (tui_wrefresh): Declare.
16450 * tui/tui-wingeneral.c (suppress_output): New global.
16451 (tui_suppress_output, ~tui_suppress_output): New constructor and
16452 destructor.
16453 (tui_wrefresh): New function.
16454 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16455 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16456 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16457 method.
16458 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16459 tui_wrefresh.
16460 (tui_data_window::no_refresh): New method.
16461 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16462 (tui_reg_command): Use tui_suppress_output
16463 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16464 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16465 method.
16466 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16467
16468 2020-01-19 Tom Tromey <tom@tromey.com>
16469
16470 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16471 Handle case where symtab is null.
16472
16473 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16474
16475 * linux-fork.c (one_fork_p): Simplify.
16476
16477 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16478
16479 * top.c (struct qt_args): Remove.
16480 (kill_or_detach): Change return type to void, replace `void *`
16481 parameter with a proper one.
16482 (print_inferior_quit_action): Likewise.
16483 (quit_confirm): Use range-based for loop to iterate over inferiors.
16484 (quit_force): Likewise.
16485
16486 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16487
16488 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16489 `void *` parameter with proper parameters.
16490 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16491 (print_one_inferior): Change return type to void, replace `void *`
16492 parameter with proper parameters.
16493 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16494 inferiors.
16495 (get_other_inferior): Remove.
16496 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16497 inferiors.
16498
16499 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16500
16501 * mi/mi-interp.c (report_initial_inferior): Remove.
16502 (mi_interp::init): Use range-based for to iterate over inferiors.
16503
16504 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16505
16506 * python/py-inferior.c (build_inferior_list): Remove.
16507 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16508
16509 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16510
16511 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16512 (btrace_stitch_trace): Likewise.
16513 * charset.c (intermediate_encoding): Likewise (vaild).
16514 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16515 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16516 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16517
16518 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16519
16520 * windows-tdep.c (windows_get_tlb_type):
16521 Add rtl_user_process_parameters type.
16522
16523 2020-01-16 Pedro Alves <palves@redhat.com>
16524 Norbert Lange <nolange79@gmail.com>
16525
16526 PR build/24805
16527 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16528 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16529 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16530 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16531 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16532 (ps_plog): Redeclare exported functions with default visibility.
16533
16534 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16535
16536 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16537 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16538
16539 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16540
16541 * infcmd.c (post_create_inferior): Use get_thread_regcache
16542 instead of get_current_regcache.
16543
16544 2020-01-14 Tom Tromey <tom@tromey.com>
16545
16546 PR symtab/12535:
16547 * python/python.c (gdbpy_decode_line): Treat empty string the same
16548 as no argument.
16549
16550 2020-01-14 Tom Tromey <tom@tromey.com>
16551
16552 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16553
16554 2020-01-14 Tom Tromey <tom@tromey.com>
16555
16556 * nat/linux-btrace.c: Don't include <config.h>.
16557 * nat/linux-ptrace.c: Don't include <config.h>.
16558 * nat/x86-linux-dregs.c: Don't include <config.h>.
16559
16560 2020-01-14 Tom Tromey <tom@tromey.com>
16561
16562 * configure: Rebuild.
16563 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16564
16565 2020-01-14 Tom Tromey <tom@tromey.com>
16566
16567 * nat/x86-linux-dregs.c: Include configh.h.
16568 * nat/linux-ptrace.c: Include configh.h.
16569 * nat/linux-btrace.c: Include configh.h.
16570 * defs.h: Include config.h, bfd.h.
16571 * configure.ac: Don't source common.host.
16572 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16573 * configure: Rebuild.
16574 * acinclude.m4: Update path.
16575 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16576 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16577 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16578 (CLIBS): Add LIBSUPPORT.
16579 (CDEPS): Likewise.
16580 (COMMON_SFILES): Remove gdbsupport files.
16581 (HFILES_NO_SRCDIR): Likewise.
16582 (stamp-version): Update path to create-version.sh.
16583 (ALLDEPFILES): Remove gdbsupport files.
16584
16585 2020-01-14 Tom Tromey <tom@tromey.com>
16586
16587 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16588 USE_WIN32API when needed.
16589 * configure.ac (USE_WIN32API): Don't define.
16590 (WIN32LIBS): Use WIN32APILIBS.
16591 * configure: Rebuild.
16592
16593 2020-01-14 Tom Tromey <tom@tromey.com>
16594
16595 * configure: Rebuild.
16596 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16597
16598 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16599
16600 * skip.c (skip_function_command): Make skip w/o arguments use the
16601 name of the inlined function if pc is inside any inlined function.
16602
16603 2020-01-14 Luis Machado <luis.machado@linaro.org>
16604
16605 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16606 * infrun.c (resume_1): Likewise.
16607 (handle_inferior_event): Remove stale comment.
16608 * linux-nat.c (linux_nat_target::resume): Update comments.
16609 (save_stop_reason): Likewise.
16610 (linux_nat_filter_event): Likewise.
16611 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16612
16613 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16614
16615 * elfread.c (record_minimal_symbol): Set section index to 0 for
16616 non-allocatable sections.
16617
16618
16619 2020-01-13 Ali Tamur <tamur@google.com>
16620
16621 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16622 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16623 to gdb::optional. Update comments.
16624 (dwo_file): Update comments.
16625 (read_attribute): Update API to take an additional out parameter,
16626 need_reprocess. This is used to mark attributes that need other
16627 attributes (e.g. str_offsets_base) for correct computation which may not
16628 have been read yet.
16629 (read_attribute_reprocess): New function declaration.
16630 (read_addr_index): Likewise.
16631 (read_dwo_str_index): Likewise.
16632 (read_stub_str_index): Likewise.
16633 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16634 (lookup_addr_base): New function definition.
16635 (lookup_ranges_base): Likewise.
16636 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16637 lookup_ranges_base.
16638 (init_cutu_and_read_dies): Update comments.
16639 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16640 unit. This is used to inherit parent's str_offsets_base and addr_base.
16641 Update comments.
16642 (init_cutu_and_read_dies_simple): Reflect API changes.
16643 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16644 (create_cus_hash_table): Change API to take parent compile unit.
16645 Reflect API changes.
16646 (open_and_init_dwo_file): Reflect API changes.
16647 (dwarf2_get_pc_bounds): Update comments.
16648 (dwarf2_record_block_ranges): Likewise.
16649 (read_full_die_1): Change implementation to reprocess attributes that
16650 need str_offsets_base and addr_base.
16651 (partial_die_info::read): Likewise.
16652 (read_attribute_reprocess): New function definition.
16653 (read_attribute_value): Change API to take an additional out parameter,
16654 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16655 when a non-dwo compile unit has index based attributes.
16656 (read_attribute): Reflect API changes.
16657 (read_addr_index_1): Reflect API changes. Update comments.
16658 (dwarf2_read_addr_index_data): Reflect API changes.
16659 (dwarf2_read_addr_index): Likewise.
16660 (read_str_index): Change API and implementation. This becomes a helper
16661 to be used by the new string index related methods. Update error
16662 message and comments.
16663 (read_dwo_str_index): New function definition.
16664 (read_stub_str_index): Likewise.
16665 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16666 * symfile.h (dwarf2_debug_sections): Likewise.
16667 * xcoffread.c (dwarf2_debug_sections): Likewise.
16668
16669 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16670
16671 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16672 core_reg_sect type to gdb_byte *.
16673 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16674 * cris-tdep.c (fetch_core_registers): Likewise.
16675 * corelow.c (core_target::get_core_register_section): Change
16676 type of `contents` to gdb::byte_vector.
16677
16678 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16679
16680 * tui/tui-wingeneral.c (box_win): Position the title in the center
16681 of the border.
16682
16683 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16684
16685 * corelow.c (core_target::get_core_register_section): Use
16686 std::vector instead of alloca.
16687
16688 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16689
16690 * warning.m4: Add -Wmissing-declarations to build_warnings.
16691 * configure: Re-generate.
16692
16693 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16694
16695 * python/python.c (init__gdb_module): Add declaration.
16696
16697 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16698
16699 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16700 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16701 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16702 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16703 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16704 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16705 * ada-exp.y (_initialize_ada_exp): Add declaration.
16706 * ada-lang.c (_initialize_ada_language): Add declaration.
16707 * ada-tasks.c (_initialize_tasks): Add declaration.
16708 * agent.c (_initialize_agent): Add declaration.
16709 * aix-thread.c (_initialize_aix_thread): Add declaration.
16710 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16711 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16712 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16713 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16714 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16715 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16716 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16717 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16718 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16719 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16720 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16721 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16722 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16723 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16724 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16725 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16726 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16727 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16728 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16729 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16730 * annotate.c (_initialize_annotate): Add declaration.
16731 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16732 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16733 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16734 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16735 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16736 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16737 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16738 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16739 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16740 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16741 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16742 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16743 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16744 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16745 * auto-load.c (_initialize_auto_load): Add declaration.
16746 * auxv.c (_initialize_auxv): Add declaration.
16747 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16748 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16749 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16750 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16751 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16752 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16753 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16754 * breakpoint.c (_initialize_breakpoint): Add declaration.
16755 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16756 * btrace.c (_initialize_btrace): Add declaration.
16757 * charset.c (_initialize_charset): Add declaration.
16758 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16759 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16760 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16761 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16762 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16763 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16764 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16765 * coffread.c (_initialize_coffread): Add declaration.
16766 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16767 * compile/compile.c (_initialize_compile): Add declaration.
16768 * complaints.c (_initialize_complaints): Add declaration.
16769 * completer.c (_initialize_completer): Add declaration.
16770 * copying.c (_initialize_copying): Add declaration.
16771 * corefile.c (_initialize_core): Add declaration.
16772 * corelow.c (_initialize_corelow): Add declaration.
16773 * cp-abi.c (_initialize_cp_abi): Add declaration.
16774 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16775 * cp-support.c (_initialize_cp_support): Add declaration.
16776 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16777 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16778 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16779 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16780 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16781 * ctfread.c (_initialize_ctfread): Add declaration.
16782 * d-lang.c (_initialize_d_language): Add declaration.
16783 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16784 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16785 * dbxread.c (_initialize_dbxread): Add declaration.
16786 * dcache.c (_initialize_dcache): Add declaration.
16787 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16788 * disasm.c (_initialize_disasm): Add declaration.
16789 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16790 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16791 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16792 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16793 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16794 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16795 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16796 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16797 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16798 * elfread.c (_initialize_elfread): Add declaration.
16799 * exec.c (_initialize_exec): Add declaration.
16800 * extension.c (_initialize_extension): Add declaration.
16801 * f-lang.c (_initialize_f_language): Add declaration.
16802 * f-valprint.c (_initialize_f_valprint): Add declaration.
16803 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16804 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16805 * filesystem.c (_initialize_filesystem): Add declaration.
16806 * findcmd.c (_initialize_mem_search): Add declaration.
16807 * findvar.c (_initialize_findvar): Add declaration.
16808 * fork-child.c (_initialize_fork_child): Add declaration.
16809 * frame-base.c (_initialize_frame_base): Add declaration.
16810 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16811 * frame.c (_initialize_frame): Add declaration.
16812 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16813 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16814 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16815 * gcore.c (_initialize_gcore): Add declaration.
16816 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16817 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16818 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16819 * gdbarch.c (_initialize_gdbarch): Add declaration.
16820 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16821 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16822 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16823 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16824 * go-lang.c (_initialize_go_language): Add declaration.
16825 * go32-nat.c (_initialize_go32_nat): Add declaration.
16826 * guile/guile.c (_initialize_guile): Add declaration.
16827 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16828 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16829 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16830 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16831 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16832 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16833 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16834 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16835 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16836 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16837 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16838 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16839 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16840 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16841 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16842 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16843 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16844 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16845 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16846 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16847 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16848 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16849 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16850 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16851 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16852 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16853 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16854 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16855 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16856 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16857 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16858 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16859 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16860 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16861 * infcall.c (_initialize_infcall): Add declaration.
16862 * infcmd.c (_initialize_infcmd): Add declaration.
16863 * inflow.c (_initialize_inflow): Add declaration.
16864 * infrun.c (_initialize_infrun): Add declaration.
16865 * interps.c (_initialize_interpreter): Add declaration.
16866 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16867 * jit.c (_initialize_jit): Add declaration.
16868 * language.c (_initialize_language): Add declaration.
16869 * linux-fork.c (_initialize_linux_fork): Add declaration.
16870 * linux-nat.c (_initialize_linux_nat): Add declaration.
16871 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16872 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16873 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16874 * m2-lang.c (_initialize_m2_language): Add declaration.
16875 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16876 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16877 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16878 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16879 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16880 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16881 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16882 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16883 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16884 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16885 * machoread.c (_initialize_machoread): Add declaration.
16886 * macrocmd.c (_initialize_macrocmd): Add declaration.
16887 * macroscope.c (_initialize_macroscope): Add declaration.
16888 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16889 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16890 * maint.c (_initialize_maint_cmds): Add declaration.
16891 * mdebugread.c (_initialize_mdebugread): Add declaration.
16892 * memattr.c (_initialize_mem): Add declaration.
16893 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16894 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16895 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16896 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16897 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16898 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16899 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16900 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16901 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16902 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16903 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16904 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16905 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16906 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16907 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16908 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16909 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16910 * mipsread.c (_initialize_mipsread): Add declaration.
16911 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16912 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16913 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16914 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16915 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16916 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16917 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16918 * nto-procfs.c (_initialize_procfs): Add declaration.
16919 * objc-lang.c (_initialize_objc_language): Add declaration.
16920 * observable.c (_initialize_observer): Add declaration.
16921 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16922 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16923 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16924 * osabi.c (_initialize_gdb_osabi): Add declaration.
16925 * osdata.c (_initialize_osdata): Add declaration.
16926 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16927 * parse.c (_initialize_parse): Add declaration.
16928 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16929 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16930 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16931 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16932 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16933 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16934 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16935 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16936 * printcmd.c (_initialize_printcmd): Add declaration.
16937 * probe.c (_initialize_probe): Add declaration.
16938 * proc-api.c (_initialize_proc_api): Add declaration.
16939 * proc-events.c (_initialize_proc_events): Add declaration.
16940 * proc-service.c (_initialize_proc_service): Add declaration.
16941 * procfs.c (_initialize_procfs): Add declaration.
16942 * producer.c (_initialize_producer): Add declaration.
16943 * psymtab.c (_initialize_psymtab): Add declaration.
16944 * python/python.c (_initialize_python): Add declaration.
16945 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16946 * record-btrace.c (_initialize_record_btrace): Add declaration.
16947 * record-full.c (_initialize_record_full): Add declaration.
16948 * record.c (_initialize_record): Add declaration.
16949 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16950 * regcache.c (_initialize_regcache): Add declaration.
16951 * reggroups.c (_initialize_reggroup): Add declaration.
16952 * remote-notif.c (_initialize_notif): Add declaration.
16953 * remote-sim.c (_initialize_remote_sim): Add declaration.
16954 * remote.c (_initialize_remote): Add declaration.
16955 * reverse.c (_initialize_reverse): Add declaration.
16956 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16957 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16958 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16959 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16960 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16961 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16962 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16963 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16964 Add declaration.
16965 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16966 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16967 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16968 * rust-exp.y (_initialize_rust_exp): Add declaration.
16969 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16970 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16971 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16972 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16973 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16974 * score-tdep.c (_initialize_score_tdep): Add declaration.
16975 * ser-go32.c (_initialize_ser_dos): Add declaration.
16976 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16977 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16978 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16979 * ser-uds.c (_initialize_ser_socket): Add declaration.
16980 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16981 * serial.c (_initialize_serial): Add declaration.
16982 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16983 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16984 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16985 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16986 * skip.c (_initialize_step_skip): Add declaration.
16987 * sol-thread.c (_initialize_sol_thread): Add declaration.
16988 * solib-aix.c (_initialize_solib_aix): Add declaration.
16989 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16990 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16991 * solib-frv.c (_initialize_frv_solib): Add declaration.
16992 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16993 * solib-target.c (_initialize_solib_target): Add declaration.
16994 * solib.c (_initialize_solib): Add declaration.
16995 * source-cache.c (_initialize_source_cache): Add declaration.
16996 * source.c (_initialize_source): Add declaration.
16997 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16998 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16999 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17000 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17001 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17002 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17003 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17004 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17005 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17006 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17007 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17008 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17009 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17010 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17011 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17012 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17013 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17014 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17015 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17016 * stabsread.c (_initialize_stabsread): Add declaration.
17017 * stack.c (_initialize_stack): Add declaration.
17018 * stap-probe.c (_initialize_stap_probe): Add declaration.
17019 * std-regs.c (_initialize_frame_reg): Add declaration.
17020 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17021 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17022 * symfile.c (_initialize_symfile): Add declaration.
17023 * symmisc.c (_initialize_symmisc): Add declaration.
17024 * symtab.c (_initialize_symtab): Add declaration.
17025 * target.c (_initialize_target): Add declaration.
17026 * target-connection.c (_initialize_target_connection): Add
17027 declaration.
17028 * target-dcache.c (_initialize_target_dcache): Add declaration.
17029 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17030 * thread.c (_initialize_thread): Add declaration.
17031 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17032 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17033 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17034 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17035 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17036 * tracectf.c (_initialize_ctf): Add declaration.
17037 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17038 * tracefile.c (_initialize_tracefile): Add declaration.
17039 * tracepoint.c (_initialize_tracepoint): Add declaration.
17040 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17041 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17042 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17043 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17044 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17045 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17046 * tui/tui.c (_initialize_tui): Add declaration.
17047 * typeprint.c (_initialize_typeprint): Add declaration.
17048 * ui-style.c (_initialize_ui_style): Add declaration.
17049 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17050 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17051 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17052 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17053 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17054 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17055 * unittests/filtered_iterator-selftests.c
17056 (_initialize_filtered_iterator_selftests): Add declaration.
17057 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17058 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17059 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17060 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17061 * unittests/main-thread-selftests.c
17062 (_initialize_main_thread_selftests): Add declaration.
17063 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17064 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17065 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17066 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17067 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17068 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17069 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17070 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17071 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17072 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17073 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17074 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17075 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17076 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17077 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17078 declaration.
17079 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17080 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17081 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17082 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17083 * user-regs.c (_initialize_user_regs): Add declaration.
17084 * utils.c (_initialize_utils): Add declaration.
17085 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17086 * valops.c (_initialize_valops): Add declaration.
17087 * valprint.c (_initialize_valprint): Add declaration.
17088 * value.c (_initialize_values): Add declaration.
17089 * varobj.c (_initialize_varobj): Add declaration.
17090 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17091 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17092 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17093 * windows-nat.c (_initialize_windows_nat): Add declaration.
17094 (_initialize_check_for_gdb_ini): Add declaration.
17095 (_initialize_loadable): Add declaration.
17096 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17097 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17098 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17099 * xcoffread.c (_initialize_xcoffread): Add declaration.
17100 * xml-support.c (_initialize_xml_support): Add declaration.
17101 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17102 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17103 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17104 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17105
17106 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17107
17108 * regformats/regdat.sh: Generate declaration for init function.
17109
17110 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17111
17112 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17113 up.
17114 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17115 close_one_inferior>: New methods.
17116 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17117 pass down target to find_inferior_pid.
17118 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17119 Pass down target to find_inferior_ptid.
17120 (gdbsim_target::create_inferior): Pass down target to
17121 add_thread_silent.
17122 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17123 target down to find_inferior_ptid and switch_to_thread.
17124 (gdbsim_target::close): Update to call close_one_inferior.
17125 (struct resume_data): Remove.
17126 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17127 directly, rather than through a void pointer.
17128 (gdbsim_target::resume): Update to call resume_one_inferior.
17129
17130 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17131
17132 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17133
17134 2020-01-12 Pedro Alves <palves@redhat.com>
17135
17136 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17137 directly for the current inferior instead of
17138 discard_all_inferiors.
17139 (discard_all_inferiors): Delete.
17140
17141 2020-01-11 Tom Tromey <tom@tromey.com>
17142
17143 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17144 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17145 deprecated_safe_get_selected_frame.
17146
17147 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17148
17149 * inferior.c (print_inferior): Switch inferior before printing it.
17150
17151 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17152 Pedro Alves <palves@redhat.com>
17153
17154 * progspace-and-thread.c (switch_to_program_space_and_thread):
17155 Assert there's an inferior for PSPACE. Use
17156 switch_to_inferior_no_thread to switch the inferior too.
17157 * progspace.c (program_space::~program_space): Call
17158 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17159 (program_space::free_all_objfiles): Don't call clear_symtab_users
17160 here.
17161 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17162
17163 2020-01-10 Pedro Alves <palves@redhat.com>
17164
17165 * NEWS: Mention multi-target debugging, "info connections", and
17166 "add-inferior -no-connection".
17167
17168 2020-01-10 Pedro Alves <palves@redhat.com>
17169
17170 * infrun.c: Include "target-connection.h".
17171 (check_multi_target_resumption): New.
17172 (proceed): Call it.
17173 * target-connection.c (make_target_connection_string): Make
17174 extern.
17175 * target-connection.h (make_target_connection_string): Declare.
17176
17177 2020-01-10 Pedro Alves <palves@redhat.com>
17178
17179 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17180 * inferior.c (uiout_field_connection): New function.
17181 (print_inferior): Add new "connection-id" column.
17182 (add_inferior_command): Show connection number/string of added
17183 inferior.
17184 * process-stratum-target.h
17185 (process_stratum_target::connection_string): New virtual method.
17186 (process_stratum_target::connection_number): New field.
17187 * remote.c (remote_target::connection_string): New override.
17188 * target-connection.c: New file.
17189 * target-connection.h: New file.
17190 * target.c (decref_target): Remove process_stratum targets from
17191 the connection list.
17192 (target_stack::push): Add process_stratum targets to the
17193 connection list.
17194
17195 2020-01-10 Pedro Alves <palves@redhat.com>
17196
17197 Revert:
17198 2016-04-12 Pedro Alves <palves@redhat.com>
17199 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17200 Remove references to name.
17201 * serial.h (struct serial) <name>: Delete.
17202
17203 2020-01-10 Pedro Alves <palves@redhat.com>
17204
17205 * gdbarch-selftests.c (register_to_value_test): Remove "target
17206 already pushed" check.
17207
17208 2020-01-10 Pedro Alves <palves@redhat.com>
17209 John Baldwin <jhb@FreeBSD.org>
17210
17211 * aarch64-linux-nat.c
17212 (aarch64_linux_nat_target::thread_architecture): Adjust.
17213 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17214 (task_command_1): Likewise.
17215 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17216 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17217 (aix_thread_target::store_registers)
17218 (aix_thread_target::thread_alive): Adjust.
17219 * amd64-fbsd-tdep.c: Include "inferior.h".
17220 (amd64fbsd_get_thread_local_address): Pass down target.
17221 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17222 thread's gdbarch instead of target_gdbarch.
17223 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17224 get_last_target_status.
17225 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17226 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17227 inferiors.
17228 (update_inserted_breakpoint_locations): Skip if inferiors with no
17229 execution.
17230 (update_global_location_list): When handling moribund locations,
17231 find representative inferior for location's pspace, and use thread
17232 count of its process_stratum target.
17233 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17234 * bsd-uthread.c (bsd_uthread_target::wait): Use
17235 as_process_stratum_target and adjust thread_change_ptid and
17236 add_thread calls.
17237 (bsd_uthread_target::update_thread_list): Use
17238 as_process_stratum_target and adjust find_thread_ptid,
17239 thread_change_ptid and add_thread calls.
17240 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17241 find_thread_ptid call.
17242 * corelow.c (add_to_thread_list): Adjust add_thread call.
17243 (core_target_open): Adjust add_thread_silent and thread_count
17244 calls.
17245 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17246 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17247 * event-top.c (async_disconnect): Pop targets from all inferiors.
17248 * exec.c (add_target_sections): Push exec target on all inferiors
17249 sharing the program space.
17250 (remove_target_sections): Remove the exec target from all
17251 inferiors sharing the program space.
17252 (exec_on_vfork): New.
17253 * exec.h (exec_on_vfork): Declare.
17254 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17255 Pass it down.
17256 (fbsd_nat_target::update_thread_list): Adjust.
17257 (fbsd_nat_target::resume): Adjust.
17258 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17259 down.
17260 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17261 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17262 get_thread_arch_regcache call.
17263 * fork-child.c (gdb_startup_inferior): Pass target down to
17264 startup_inferior and set_executing.
17265 * gdbthread.h (struct process_stratum_target): Forward declare.
17266 (add_thread, add_thread_silent, add_thread_with_info)
17267 (in_thread_list): Add process_stratum_target parameter.
17268 (find_thread_ptid(inferior*, ptid_t)): New overload.
17269 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17270 parameter.
17271 (all_threads()): Delete overload.
17272 (all_threads, all_non_exited_threads): Add process_stratum_target
17273 parameter.
17274 (all_threads_safe): Use brace initialization.
17275 (thread_count): Add process_stratum_target parameter.
17276 (set_resumed, set_running, set_stop_requested, set_executing)
17277 (threads_are_executing, finish_thread_state): Add
17278 process_stratum_target parameter.
17279 (switch_to_thread): Use is_current_thread.
17280 * i386-fbsd-tdep.c: Include "inferior.h".
17281 (i386fbsd_get_thread_local_address): Pass down target.
17282 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17283 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17284 have_inferiors check.
17285 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17286 (inf_ptrace_target::attach): Adjust.
17287 * infcall.c (run_inferior_call): Adjust.
17288 * infcmd.c (run_command_1): Pass target to
17289 scoped_finish_thread_state.
17290 (proceed_thread_callback): Skip inferiors with no execution.
17291 (continue_command): Rename 'all_threads' local to avoid hiding
17292 'all_threads' function. Adjust get_last_target_status call.
17293 (prepare_one_step): Adjust set_running call.
17294 (signal_command): Use user_visible_resume_target. Compare thread
17295 pointers instead of inferior_ptid.
17296 (info_program_command): Adjust to pass down target.
17297 (attach_command): Mark target's 'thread_executing' flag.
17298 (stop_current_target_threads_ns): New, factored out from ...
17299 (interrupt_target_1): ... this. Switch inferior before making
17300 target calls.
17301 * inferior-iter.h
17302 (struct all_inferiors_iterator, struct all_inferiors_range)
17303 (struct all_inferiors_safe_range)
17304 (struct all_non_exited_inferiors_range): Filter on
17305 process_stratum_target too. Remove explicit.
17306 * inferior.c (inferior::inferior): Push dummy target on target
17307 stack.
17308 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17309 Add process_stratum_target parameter, and pass it down.
17310 (have_live_inferiors): Adjust.
17311 (switch_to_inferior_and_push_target): New.
17312 (add_inferior_command, clone_inferior_command): Handle
17313 "-no-connection" parameter. Use
17314 switch_to_inferior_and_push_target.
17315 (_initialize_inferior): Mention "-no-connection" option in
17316 the help of "add-inferior" and "clone-inferior" commands.
17317 * inferior.h: Include "process-stratum-target.h".
17318 (interrupt_target_1): Use bool.
17319 (struct inferior) <push_target, unpush_target, target_is_pushed,
17320 find_target_beneath, top_target, process_target, target_at,
17321 m_stack>: New.
17322 (discard_all_inferiors): Delete.
17323 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17324 (all_inferiors, all_non_exited_inferiors): Add
17325 process_stratum_target parameter.
17326 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17327 (target_last_proc_target): New global.
17328 (follow_fork_inferior): Push target on new inferior. Pass target
17329 to add_thread_silent. Call exec_on_vfork. Handle target's
17330 reference count.
17331 (follow_fork): Adjust get_last_target_status call. Also consider
17332 target.
17333 (follow_exec): Push target on new inferior.
17334 (struct execution_control_state) <target>: New field.
17335 (user_visible_resume_target): New.
17336 (do_target_resume): Call target_async.
17337 (resume_1): Set target's threads_executing flag. Consider resume
17338 target.
17339 (commit_resume_all_targets): New.
17340 (proceed): Also consider resume target. Skip threads of inferiors
17341 with no execution. Commit resumtion in all targets.
17342 (start_remote): Pass current inferior to wait_for_inferior.
17343 (infrun_thread_stop_requested): Consider target as well. Pass
17344 thread_info pointer to clear_inline_frame_state instead of ptid.
17345 (infrun_thread_thread_exit): Consider target as well.
17346 (random_pending_event_thread): New inferior parameter. Use it.
17347 (do_target_wait): Rename to ...
17348 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17349 down.
17350 (threads_are_resumed_pending_p, do_target_wait): New.
17351 (prepare_for_detach): Adjust calls.
17352 (wait_for_inferior): New inferior parameter. Handle it. Use
17353 do_target_wait_1 instead of do_target_wait.
17354 (fetch_inferior_event): Adjust. Switch to representative
17355 inferior. Pass target down.
17356 (set_last_target_status): Add process_stratum_target parameter.
17357 Save target in global.
17358 (get_last_target_status): Add process_stratum_target parameter and
17359 handle it.
17360 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17361 (context_switch): Check inferior_ptid == null_ptid before calling
17362 inferior_thread().
17363 (get_inferior_stop_soon): Pass down target.
17364 (wait_one): Rename to ...
17365 (poll_one_curr_target): ... this.
17366 (struct wait_one_event): New.
17367 (wait_one): New.
17368 (stop_all_threads): Adjust.
17369 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17370 event's target.
17371 (switch_back_to_stepped_thread): Also consider target.
17372 (print_stop_event): Update.
17373 (normal_stop): Update. Also consider the resume target.
17374 * infrun.h (wait_for_inferior): Remove declaration.
17375 (user_visible_resume_target): New declaration.
17376 (get_last_target_status, set_last_target_status): New
17377 process_stratum_target parameter.
17378 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17379 process_stratum_target parameter, and use it.
17380 (clear_inline_frame_state (thread_info*)): New.
17381 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17382 process_stratum_target parameter.
17383 (clear_inline_frame_state (thread_info*)): Declare.
17384 * linux-fork.c (delete_checkpoint_command): Pass target down to
17385 find_thread_ptid.
17386 (checkpoint_command): Adjust.
17387 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17388 instead of just tweaking inferior_ptid.
17389 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17390 (exit_lwp): Pass target down to find_thread_ptid.
17391 (attach_proc_task_lwp_callback): Pass target down to
17392 add_thread/set_running/set_executing.
17393 (linux_nat_target::attach): Pass target down to
17394 thread_change_ptid.
17395 (get_detach_signal): Pass target down to find_thread_ptid.
17396 Consider last target status's target.
17397 (linux_resume_one_lwp_throw, resume_lwp)
17398 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17399 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17400 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17401 (linux_nat_target::async_wait_fd): New.
17402 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17403 target down.
17404 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17405 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17406 * linux-thread-db.c (struct thread_db_info::process_target): New
17407 field.
17408 (add_thread_db_info): Save target.
17409 (get_thread_db_info): New process_stratum_target parameter. Also
17410 match target.
17411 (delete_thread_db_info): New process_stratum_target parameter.
17412 Also match target.
17413 (thread_from_lwp): Adjust to pass down target.
17414 (thread_db_notice_clone): Pass down target.
17415 (check_thread_db_callback): Pass down target.
17416 (try_thread_db_load_1): Always push the thread_db target.
17417 (try_thread_db_load, record_thread): Pass target down.
17418 (thread_db_target::detach): Pass target down. Always unpush the
17419 thread_db target.
17420 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17421 target down. Always unpush the thread_db target.
17422 (find_new_threads_callback, thread_db_find_new_threads_2)
17423 (thread_db_target::update_thread_list): Pass target down.
17424 (thread_db_target::pid_to_str): Pass current inferior down.
17425 (thread_db_target::get_thread_local_address): Pass target down.
17426 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17427 target down.
17428 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17429 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17430 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17431 (procfs_init_inferior): Rename to ...
17432 (procfs_target::procfs_init_inferior): ... this and adjust.
17433 (procfs_target::create_inferior, procfs_notice_thread)
17434 (procfs_do_thread_registers): Adjust.
17435 * ppc-fbsd-tdep.c: Include "inferior.h".
17436 (ppcfbsd_get_thread_local_address): Pass down target.
17437 * proc-service.c (ps_xfer_memory): Switch current inferior and
17438 program space as well.
17439 (get_ps_regcache): Pass target down.
17440 * process-stratum-target.c
17441 (process_stratum_target::thread_address_space)
17442 (process_stratum_target::thread_architecture): Pass target down.
17443 * process-stratum-target.h
17444 (process_stratum_target::threads_executing): New field.
17445 (as_process_stratum_target): New.
17446 * ravenscar-thread.c
17447 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17448 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17449 down.
17450 * record-btrace.c (record_btrace_target::info_record): Adjust.
17451 (record_btrace_target::record_method)
17452 (record_btrace_target::record_is_replaying)
17453 (record_btrace_target::fetch_registers)
17454 (get_thread_current_frame_id, record_btrace_target::resume)
17455 (record_btrace_target::wait, record_btrace_target::stop): Pass
17456 target down.
17457 * record-full.c (record_full_wait_1): Switch to event thread.
17458 Pass target down.
17459 * regcache.c (regcache::regcache)
17460 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17461 process_stratum_target parameter and handle it.
17462 (current_thread_target): New global.
17463 (get_thread_regcache): Add process_stratum_target parameter and
17464 handle it. Switch inferior before calling target method.
17465 (get_thread_regcache): Pass target down.
17466 (get_thread_regcache_for_ptid): Pass target down.
17467 (registers_changed_ptid): Add process_stratum_target parameter and
17468 handle it.
17469 (registers_changed_thread, registers_changed): Pass target down.
17470 (test_get_thread_arch_aspace_regcache): New.
17471 (current_regcache_test): Define a couple local test_target_ops
17472 instances and use them for testing.
17473 (readwrite_regcache): Pass process_stratum_target parameter.
17474 (cooked_read_test, cooked_write_test): Pass mock_target down.
17475 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17476 (get_thread_arch_aspace_regcache): Add process_stratum_target
17477 parameter.
17478 (regcache::target): New method.
17479 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17480 (regcache::registers_changed_ptid): Add process_stratum_target
17481 parameter.
17482 (regcache::m_target): New field.
17483 (registers_changed_ptid): Add process_stratum_target parameter.
17484 * remote.c (remote_state::supports_vCont_probed): New field.
17485 (remote_target::async_wait_fd): New method.
17486 (remote_unpush_and_throw): Add remote_target parameter.
17487 (get_current_remote_target): Adjust.
17488 (remote_target::remote_add_inferior): Push target.
17489 (remote_target::remote_add_thread)
17490 (remote_target::remote_notice_new_inferior)
17491 (get_remote_thread_info): Pass target down.
17492 (remote_target::update_thread_list): Skip threads of inferiors
17493 bound to other targets. (remote_target::close): Don't discard
17494 inferiors. (remote_target::add_current_inferior_and_thread)
17495 (remote_target::process_initial_stop_replies)
17496 (remote_target::start_remote)
17497 (remote_target::remote_serial_quit_handler): Pass down target.
17498 (remote_target::remote_unpush_target): New remote_target
17499 parameter. Unpush the target from all inferiors.
17500 (remote_target::remote_unpush_and_throw): New remote_target
17501 parameter. Pass it down.
17502 (remote_target::open_1): Check whether the current inferior has
17503 execution instead of checking whether any inferior is live. Pass
17504 target down.
17505 (remote_target::remote_detach_1): Pass down target. Use
17506 remote_unpush_target.
17507 (extended_remote_target::attach): Pass down target.
17508 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17509 (remote_target::append_resumption): Pass down target.
17510 (remote_target::append_pending_thread_resumptions)
17511 (remote_target::remote_resume_with_hc, remote_target::resume)
17512 (remote_target::commit_resume): Pass down target.
17513 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17514 (remote_target::interrupt_query)
17515 (remote_target::remove_new_fork_children)
17516 (remote_target::check_pending_events_prevent_wildcard_vcont)
17517 (remote_target::remote_parse_stop_reply)
17518 (remote_target::process_stop_reply): Pass down target.
17519 (first_remote_resumed_thread): New remote_target parameter. Pass
17520 it down.
17521 (remote_target::wait_as): Pass down target.
17522 (unpush_and_perror): New remote_target parameter. Pass it down.
17523 (remote_target::readchar, remote_target::remote_serial_write)
17524 (remote_target::getpkt_or_notif_sane_1)
17525 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17526 down target.
17527 (remote_target::mourn_inferior): Pass down target. Use
17528 remote_unpush_target.
17529 (remote_target::core_of_thread)
17530 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17531 (remote_target::pid_to_exec_file)
17532 (remote_target::thread_handle_to_thread_info): Pass down target.
17533 (remote_target::async_wait_fd): New.
17534 * riscv-fbsd-tdep.c: Include "inferior.h".
17535 (riscv_fbsd_get_thread_local_address): Pass down target.
17536 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17537 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17538 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17539 Adjust.
17540 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17541 * solib-svr4.c (enable_break): Pass down target.
17542 * spu-multiarch.c (parse_spufs_run): Pass down target.
17543 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17544 * target-delegates.c: Regenerate.
17545 * target.c (g_target_stack): Delete.
17546 (current_top_target): Return the current inferior's top target.
17547 (target_has_execution_1): Refer to the passed-in inferior's top
17548 target.
17549 (target_supports_terminal_ours): Check whether the initial
17550 inferior was already created.
17551 (decref_target): New.
17552 (target_stack::push): Incref/decref the target.
17553 (push_target, push_target, unpush_target): Adjust.
17554 (target_stack::unpush): Defref target.
17555 (target_is_pushed): Return bool. Adjust to refer to the current
17556 inferior's target stack.
17557 (dispose_inferior): Delete, and inline parts ...
17558 (target_preopen): ... here. Only dispose of the current inferior.
17559 (target_detach): Hold strong target reference while detaching.
17560 Pass target down.
17561 (target_thread_name): Add assertion.
17562 (target_resume): Pass down target.
17563 (target_ops::beneath, find_target_at): Adjust to refer to the
17564 current inferior's target stack.
17565 (get_dummy_target): New.
17566 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17567 has a thread running.
17568 (initialize_targets): Rename to ...
17569 (_initialize_target): ... this.
17570 * target.h: Include "gdbsupport/refcounted-object.h".
17571 (struct target_ops): Inherit refcounted_object.
17572 (target_ops::shortname, target_ops::longname): Make const.
17573 (target_ops::async_wait_fd): New method.
17574 (decref_target): Declare.
17575 (struct target_ops_ref_policy): New.
17576 (target_ops_ref): New typedef.
17577 (get_dummy_target): Declare function.
17578 (target_is_pushed): Return bool.
17579 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17580 (all_matching_threads_iterator::all_matching_threads_iterator):
17581 Handle filter target.
17582 * thread-iter.h (struct all_matching_threads_iterator, struct
17583 all_matching_threads_range, class all_non_exited_threads_range):
17584 Filter by target too. Remove explicit.
17585 * thread.c (threads_executing): Delete.
17586 (inferior_thread): Pass down current inferior.
17587 (clear_thread_inferior_resources): Pass down thread pointer
17588 instead of ptid_t.
17589 (add_thread_silent, add_thread_with_info, add_thread): Add
17590 process_stratum_target parameter. Use it for thread and inferior
17591 searches.
17592 (is_current_thread): New.
17593 (thread_info::deletable): Use it.
17594 (find_thread_ptid, thread_count, in_thread_list)
17595 (thread_change_ptid, set_resumed, set_running): New
17596 process_stratum_target parameter. Pass it down.
17597 (set_executing): New process_stratum_target parameter. Pass it
17598 down. Adjust reference to 'threads_executing'.
17599 (threads_are_executing): New process_stratum_target parameter.
17600 Adjust reference to 'threads_executing'.
17601 (set_stop_requested, finish_thread_state): New
17602 process_stratum_target parameter. Pass it down.
17603 (switch_to_thread): Also match inferior.
17604 (switch_to_thread): New process_stratum_target parameter. Pass it
17605 down.
17606 (update_threads_executing): Reimplement.
17607 * top.c (quit_force): Pop targets from all inferior.
17608 (gdb_init): Don't call initialize_targets.
17609 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17610 Declare.
17611 (windows_add_thread, windows_delete_thread): Adjust.
17612 (get_windows_debug_event): Rename to ...
17613 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17614 * tracefile-tfile.c (tfile_target_open): Pass down target.
17615 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17616 Forward declare.
17617 (switch_to_thread): Add process_stratum_target parameter.
17618 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17619 parameter. Use it.
17620 (mi_on_resume): Pass target down.
17621 * nat/fork-inferior.c (startup_inferior): Add
17622 process_stratum_target parameter. Pass it down.
17623 * nat/fork-inferior.h (startup_inferior): Add
17624 process_stratum_target parameter.
17625 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17626
17627 2020-01-10 Pedro Alves <palves@redhat.com>
17628
17629 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17630 directly. Instead find the first thread in the thread list and
17631 use switch_to_thread.
17632
17633 2020-01-10 Pedro Alves <palves@redhat.com>
17634
17635 * remote.c (remote_target::remote_add_inferior): Don't bind a
17636 process to the current inferior if the current inferior is already
17637 bound to a process.
17638
17639 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17640 Pedro Alves <palves@redhat.com>
17641
17642 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17643 If no process is specified, return null_ptid instead of
17644 inferior_ptid.
17645 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17646 TARGET_WAITKIND_SIGNALLED with no pid.
17647
17648 2020-01-10 Pedro Alves <palves@redhat.com>
17649
17650 * remote.c (first_remote_resumed_thread): New.
17651 (remote_target::wait_as): Use it as default event_ptid instead of
17652 inferior_ptid.
17653
17654 2020-01-10 Pedro Alves <palves@redhat.com>
17655
17656 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17657
17658 2020-01-10 Pedro Alves <palves@redhat.com>
17659
17660 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17661 not -1.
17662
17663 2020-01-10 Pedro Alves <palves@redhat.com>
17664
17665 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17666 ptid to get_last_target_status.
17667 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17668 ptid to get_last_target_status.
17669 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17670 get_last_target_status.
17671 (info_program_command): Don't pass a target_waitstatus to
17672 get_last_target_status.
17673 * infrun.c (init_wait_for_inferior): Use
17674 nullify_last_target_wait_ptid.
17675 (get_last_target_status): Handle nullptr arguments.
17676 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17677 (print_stop_event): Don't pass a ptid to get_last_target_status.
17678 (normal_stop): Don't pass a ptid to get_last_target_status.
17679 * infrun.h (get_last_target_status, set_last_target_status): Move
17680 comments here and update.
17681 (nullify_last_target_wait_ptid): Declare.
17682 * linux-fork.c (fork_load_infrun_state): Remove local extern
17683 declaration of nullify_last_target_wait_ptid.
17684 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17685 to get_last_target_status.
17686
17687 2020-01-10 Pedro Alves <palves@redhat.com>
17688
17689 * gdbthread.h (scoped_restore_current_thread)
17690 <dont_restore, restore, m_dont_restore>: Declare.
17691 * thread.c (thread_alive): Add assertion. Return bool.
17692 (switch_to_thread_if_alive): New.
17693 (prune_threads): Switch inferior/thread.
17694 (print_thread_info_1): Switch thread before calling target methods.
17695 (scoped_restore_current_thread::restore): New, factored out from
17696 ...
17697 (scoped_restore_current_thread::~scoped_restore_current_thread):
17698 ... this.
17699 (scoped_restore_current_thread::scoped_restore_current_thread):
17700 Add assertion.
17701 (thread_apply_all_command, thread_select): Use
17702 switch_to_thread_if_alive.
17703 * infrun.c (proceed, restart_threads, handle_signal_stop)
17704 (switch_back_to_stepped_thread): Switch current thread before
17705 calling target methods.
17706
17707 2020-01-10 Pedro Alves <palves@redhat.com>
17708
17709 * inferior.c (switch_to_inferior_no_thread): New function,
17710 factored out from ...
17711 (inferior_command): ... here.
17712 * inferior.h (switch_to_inferior_no_thread): Declare.
17713 * mi/mi-main.c (run_one_inferior): Use
17714 switch_to_inferior_no_thread.
17715
17716 2020-01-10 Pedro Alves <palves@redhat.com>
17717
17718 * infcmd.c (kill_command): Remove dead code.
17719
17720 2020-01-10 Pedro Alves <palves@redhat.com>
17721
17722 * remote.c (remote_target::mourn_inferior): No longer check
17723 whether the target is running.
17724
17725 2020-01-10 Pedro Alves <palves@redhat.com>
17726
17727 * corelow.c (core_target::has_execution): Change parameter type to
17728 inferior pointer.
17729 * inferior.c (number_of_live_inferiors): Use
17730 inferior::has_execution instead of target_has_execution_1.
17731 * inferior.h (inferior::has_execution): New.
17732 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17733 inferior::has_execution instead of target_has_execution_1.
17734 * process-stratum-target.c
17735 (process_stratum_target::has_execution): Change parameter type to
17736 inferior pointer. Check the inferior's PID instead of
17737 inferior_ptid.
17738 * process-stratum-target.h
17739 (process_stratum_target::has_execution): Change parameter type to
17740 inferior pointer.
17741 * record-full.c (record_full_core_target::has_execution): Change
17742 parameter type to inferior pointer.
17743 * target.c (target_has_execution_1): Change parameter type to
17744 inferior pointer.
17745 (target_has_execution_current): Adjust.
17746 * target.h (target_ops::has_execution): Change parameter type to
17747 inferior pointer.
17748 (target_has_execution_1): Change parameter type to inferior
17749 pointer. Change return type to bool.
17750 * tracefile.h (tracefile_target::has_execution): Change parameter
17751 type to inferior pointer.
17752
17753 2020-01-10 Pedro Alves <palves@redhat.com>
17754
17755 * exceptions.c (print_flush): Remove current_top_target() check.
17756
17757 2020-01-10 Pedro Alves <palves@redhat.com>
17758
17759 * remote.c (show_remote_exec_file): Show the current inferior's
17760 exec-file instead of the command variable's value.
17761
17762 2020-01-10 Pedro Alves <palves@redhat.com>
17763
17764 * record-full.c (record_full_resume_ptid): New global.
17765 (record_full_target::resume): Set it.
17766 (record_full_wait_1): Use record_full_resume_ptid instead of
17767 inferior_ptid.
17768
17769 2020-01-10 Pedro Alves <palves@redhat.com>
17770
17771 * gdbthread.h (scoped_restore_current_thread)
17772 <dont_restore, restore, m_dont_restore>: Declare.
17773 * thread.c (thread_alive): Add assertion. Return bool.
17774 (switch_to_thread_if_alive): New.
17775 (prune_threads): Switch inferior/thread.
17776 (print_thread_info_1): Switch thread before calling target methods.
17777 (scoped_restore_current_thread::restore): New, factored out from
17778 ...
17779 (scoped_restore_current_thread::~scoped_restore_current_thread):
17780 ... this.
17781 (scoped_restore_current_thread::scoped_restore_current_thread):
17782 Add assertion.
17783 (thread_apply_all_command, thread_select): Use
17784 switch_to_thread_if_alive.
17785
17786 2020-01-10 George Barrett <bob@bob131.so>
17787
17788 * stap-probe.c (stap_modify_semaphore): Don't check for null
17789 semaphores.
17790 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17791 for null semaphores.
17792
17793 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17794
17795 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17796 all source windows, and maintain horizontal scroll status while
17797 doing so.
17798
17799 2020-01-09 Tom Tromey <tom@tromey.com>
17800
17801 PR tui/18932:
17802 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17803 update_source_window, not print_source_lines.
17804
17805 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17806
17807 * tui/tui.c (tui_enable): Register tui hooks after calling
17808 tui_display_main.
17809
17810 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17811
17812 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17813
17814 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17815
17816 * thread.c (print_thread_info_1): Fix indentation.
17817
17818 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17819
17820 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17821 unique_xmalloc_ptr outside the if to always free the demangled name.
17822
17823 2020-01-08 Tom Tromey <tromey@adacore.com>
17824
17825 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17826 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17827 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17828 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17829 Remove.
17830 (section_offsets): New typedef.
17831 * symtab.c (fixup_section, get_msymbol_address): Update.
17832 * symmisc.c (dump_msymbols): Update.
17833 * symfile.h (relative_addr_info_to_section_offsets)
17834 (symfile_map_offsets_to_segments): Update.
17835 * symfile.c (build_section_addr_info_from_objfile)
17836 (init_objfile_sect_indices): Update.
17837 (struct place_section_arg): Change type of "offsets".
17838 (place_section): Update.
17839 (relative_addr_info_to_section_offsets): Change type of
17840 "section_offsets". Remove "num_sections" parameter.
17841 (default_symfile_offsets, syms_from_objfile_1)
17842 (set_objfile_default_section_offset): Update.
17843 (reread_symbols): No need to preserve section offsets by hand.
17844 (symfile_map_offsets_to_segments): Change type of "offsets".
17845 * stap-probe.c (relocate_address): Update.
17846 * stabsread.h (process_one_symbol): Update.
17847 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17848 (solib_target_relocate_section_addresses): Update.
17849 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17850 Update.
17851 * solib-frv.c (frv_relocate_main_executable): Update.
17852 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17853 * solib-aix.c (solib_aix_get_section_offsets): Change return
17854 type.
17855 (solib_aix_solib_create_inferior_hook): Update.
17856 * remote.c (remote_target::get_offsets): Update.
17857 * psymtab.c (find_pc_sect_psymtab): Update.
17858 * psympriv.h (struct partial_symbol) <address, text_low,
17859 text_high>: Update.
17860 * objfiles.h (obj_section_offset): Update.
17861 (struct objfile) <section_offsets>: Change type.
17862 <num_sections>: Remove.
17863 (objfile_relocate): Update.
17864 * objfiles.c (entry_point_address_query): Update
17865 (relocate_one_symbol): Change type of "section_offsets".
17866 (objfile_relocate1, objfile_relocate1): Change type of
17867 "new_offsets".
17868 (objfile_rebase1): Update.
17869 * mipsread.c (mipscoff_symfile_read): Update.
17870 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17871 parameter.
17872 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17873 (parse_external, psymtab_to_symtab_1): Update.
17874 * machoread.c (macho_symfile_offsets): Update.
17875 * ia64-tdep.c (ia64_find_unwind_table): Update.
17876 * hppa-tdep.c (read_unwind_info): Update.
17877 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17878 * dwarf2read.c (create_addrmap_from_index)
17879 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17880 (process_psymtab_comp_unit_reader, add_partial_symbol)
17881 (add_partial_subprogram, process_full_comp_unit)
17882 (read_file_scope, read_func_scope, read_lexical_block_scope)
17883 (read_call_site_scope, dwarf2_rnglists_process)
17884 (dwarf2_ranges_process, dwarf2_ranges_read)
17885 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17886 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17887 Update.
17888 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17889 Update.
17890 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17891 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17892 (process_one_symbol): Change type of "section_offsets".
17893 * ctfread.c (get_objfile_text_range): Update.
17894 * coffread.c (coff_symtab_read, enter_linenos)
17895 (process_coff_symbol): Update.
17896 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17897 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17898
17899 2020-01-08 Tom Tromey <tromey@adacore.com>
17900
17901 * dwarf2read.c (parse_macro_definition): Use std::string.
17902 (parse_macro_definition): Likewise.
17903
17904 2020-01-08 Tom Tromey <tromey@adacore.com>
17905
17906 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17907 (ATTR_ALLOC_CHUNK): Remove.
17908
17909 2020-01-08 Tom Tromey <tromey@adacore.com>
17910
17911 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17912
17913 2020-01-08 Tom Tromey <tromey@adacore.com>
17914
17915 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17916 (dwarf2_compute_name, open_dwo_file): Likewise.
17917 (process_enumeration_scope): Use std::vector.
17918 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17919 (partial_die_info::fixup, dwarf2_start_subfile)
17920 (guess_full_die_structure_name, dwarf2_name): Likewise.
17921 (determine_prefix): Update.
17922 (guess_full_die_structure_name): Make return type const.
17923 (partial_die_full_name): Return unique_xmalloc_ptr.
17924 (DW_FIELD_ALLOC_CHUNK): Remove.
17925
17926 2020-01-07 Tom Tromey <tromey@adacore.com>
17927
17928 PR build/24937:
17929 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17930
17931 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17932
17933 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17934
17935 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17936
17937 * stack.c (print_frame_info): Move disassemble_next_line code
17938 inside source_print block.
17939
17940 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17941
17942 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17943 gdb/signals.h, as we are now using native signal symbols.
17944
17945 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17946
17947 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17948 overflow by an early check of content vs threshold.
17949 * tui/tui-source.c (tui_source_window::line_is_displayed):
17950 Likewise.
17951
17952 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17953
17954 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17955
17956 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17957
17958 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17959 export table if no section contains it's RVA.
17960
17961 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17962
17963 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17964
17965 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17966
17967 * source.c (print_source_lines_base): Set last_line_listed.
17968
17969 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17970
17971 * tui/tui-disasm.c: Remove trailing spaces.
17972
17973 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17974 Pedro Alves <palves@redhat.com>
17975
17976 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17977 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17978 (windows_gdb_signal_to_target): New function, uses the above
17979 enumeration to convert GDB internal signal codes to equivalent
17980 Windows codes.
17981 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17982 * windows-nat.c: Include "gdb_wait.h".
17983 (get_windows_debug_event): Extract the fatal exception from the
17984 exit status and convert to the equivalent Posix signal number.
17985 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17986 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17987 * gdbsupport/gdb_wait.c: New file, implements
17988 windows_status_to_termsig.
17989 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17990 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17991
17992 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17993
17994 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17995 show_layout.
17996
17997 2020-01-05 Luis Machado <luis.machado@linaro.org>
17998
17999 * aarch64-linux-nat.c
18000 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18001 and bfd_mach_aarch64.
18002
18003 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18004
18005 * ui-file.c (stdio_file::can_emit_style_escape)
18006 (tee_file::can_emit_style_escape): Ensure style is used also on
18007 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18008 to gdb_stdout.
18009 * main.c (set_gdb_data_directory): Use file style to output the
18010 warning that the given pathname is not a directory.
18011 * top.c (show_history_filename, gdb_safe_append_history)
18012 (show_gdb_datadir): Use file style.
18013
18014 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18015
18016 * solib-target.c (struct lm_info_target):
18017 Change offsets to be a unique_xmalloc_ptr.
18018 (solib_target_relocate_section_addresses): Update.
18019
18020 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18021
18022 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18023
18024 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18025
18026 * MAINTAINERS (Write After Approval): Add myself.
18027
18028 2020-01-02 Luis Machado <luis.machado@linaro.org>
18029
18030 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18031 Cell BE architecture.
18032 * target.h (struct target_ops) <thread_architecture>: Likewise.
18033
18034 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18035
18036 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18037
18038 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18039
18040 * MAINTAINERS (Write After Approval): Add myself.
18041
18042 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18043
18044 * gdbarch.sh: Update copyright year range of generated files.
18045
18046 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18047
18048 Update copyright year range in all GDB files.
18049
18050 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18051
18052 * copyright.py: Convert to Python 3.
18053
18054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18055
18056 * copyright.py: Adapt after move of gnulib directory from gdb
18057 directory to toplevel directory.
18058
18059 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18060
18061 * copyright.py (main): Exit if run from the wrong directory.
18062
18063 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18064
18065 * top.c (print_gdb_version): Change copyright year to 2020.
18066
18067 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18068
18069 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18070
18071 For older changes see ChangeLog-2019.
18072 \f
18073 Local Variables:
18074 mode: change-log
18075 left-margin: 8
18076 fill-column: 74
18077 version-control: never
18078 coding: utf-8
18079 End:
This page took 0.505063 seconds and 4 git commands to generate.