Handle CPU offset for Ravenscar
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-11 Tom Tromey <tromey@adacore.com>
2
3 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
4 field.
5 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
6 (read_atcb): Use cpu_id_offset.
7
8 2020-12-10 Kevin Buettner <kevinb@redhat.com>
9
10 * ada-lang.c (ada_fold_name): Fix off-by-one error.
11
12 2020-12-10 Luis Machado <luis.machado@linaro.org>
13
14 * breakpoint.c (should_be_inserted): Don't output newline.
15
16 2020-12-10 Luis Machado <luis.machado@linaro.org>
17
18 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
19 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
20 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
21 * arch/aarch64.h: ... here.
22 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
23 (aarch64_maybe_swab128): New function.
24 (aarch64_sve_regs_copy_to_reg_buf)
25 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
26 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
27 the data field.
28 (TF_REG_VALUE_BYTES): New enum value.
29 (trad_frame_value_bytes_p): New function.
30 (trad_frame_set_value_bytes): New function.
31 (trad_frame_set_reg_value_bytes): New function.
32 (trad_frame_get_prev_register): Handle register values saved as bytes.
33 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
34 (struct trad_frame_saved_reg) <data>: New field.
35 (trad_frame_set_value_bytes): New prototype.
36 (trad_frame_value_bytes_p): New prototype.
37
38 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
39
40 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
41 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
42 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
43
44 2020-12-09 Tom Tromey <tromey@adacore.com>
45
46 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
47
48 2020-12-09 Tom Tromey <tromey@adacore.com>
49
50 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
51 and "denominator" to gdb_mpz. Handle block forms.
52 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
53 "denominator" to gdb_mpz.
54 (finish_fixed_point_type): Update.
55 (has_zero_over_zero_small_attribute): Update.
56
57 2020-12-09 Tom Tromey <tromey@adacore.com>
58
59 * expprint.c (op_name): Update.
60 * expression.h (enum exp_opcode): Update.
61 * std-operator.def: Add more opcodes.
62 * ada-operator.def, fortran-operator.def: Remove, moving contents
63 into std-operator.def.
64
65 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
68 Return {} instead of false.
69 (get_discrete_bounds): Compute high bound only if low bound is
70 valid.
71
72 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
73
74 PR 26875, PR 26901
75 * gdbtypes.c (get_discrete_low_bound): Make non-static.
76 (get_discrete_high_bound): Make non-static.
77 * gdbtypes.h (get_discrete_low_bound): New declaration.
78 (get_discrete_high_bound): New declaration.
79 * valarith.c (value_subscript): Only fetch high bound if
80 necessary.
81
82 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
83
84 * gdbtypes.c (get_discrete_bounds): Implement with
85 get_discrete_low_bound and get_discrete_high_bound.
86 (get_discrete_low_bound): New.
87 (get_discrete_high_bound): New.
88
89 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
90
91 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
92 callers.
93 * gdbtypes.c (get_discrete_bounds): Return bool.
94
95 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
96
97 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
98 (ada_value_slice): Adjust.
99 (pos_atr): Adjust.
100 * gdbtypes.c (get_discrete_bounds): Adjust.
101 (discrete_position): Return optional.
102 * gdbtypes.h (discrete_position): Return optional.
103
104 2020-12-07 Tom Tromey <tromey@adacore.com>
105
106 * maint.c (_initialize_maint_cmds): Use expression command
107 completer for "maint print type".
108
109 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
110
111 * completer.c (complete_explicit_location): Also add keywords
112 that start with '-' to the completion list.
113
114 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
115
116 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
117 keyword may be followed by any keyword.
118 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
119 'toklen' in the case for "-force-condition".
120
121 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
122
123 * main.c (catch_command_errors): Add a flag parameter; invoke
124 `bpstat_do_actions` if the flag is set.
125 (execute_cmdargs): Update a call to `catch_command_errors`.
126
127 2020-12-07 Tom de Vries <tdevries@suse.de>
128
129 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
130
131 2020-12-06 Tom Tromey <tom@tromey.com>
132
133 PR ada/26999
134 * ada-lang.c (replace_operator_with_call): Rewrite.
135
136 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
137
138 PR breakpoints/27009
139 * s390-tdep.h (op_bc): Correct BC opcode value.
140
141 2020-12-06 Joel Brobecker <brobecker@adacore.com>
142
143 * gmp-utils.h (gdb_mpz::safe_export): New private method.
144 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
145 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
146 (gdb_mpz::safe_export): New method.
147 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
148 Update function description.
149 (check_as_integer_raises_out_of_range_error): New function.
150 (gdb_mpz_as_integer_out_of_range): New function.
151 (_initialize_gmp_utils_selftests): Register
152 gdb_mpz_as_integer_out_of_range as a selftest.
153
154 2020-12-05 Joel Brobecker <brobecker@adacore.com>
155
156 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
157 TARGET_CHAR_BIT.
158 (gdb_mpz::write): Likewise.
159
160 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
161
162 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
163 number of displaced step buffers.
164
165 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
166
167 * displaced-stepping.h (struct displaced_step_buffer): Rename
168 to...
169 (struct displaced_step_buffers): ... this.
170 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
171 <struct displaced_step_buffer>: New inner class.
172 <m_buffers>: New.
173 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
174 to...
175 (displaced_step_buffers::prepare): ... this, adjust for multiple
176 buffers.
177 (displaced_step_buffer::finish): Rename to...
178 (displaced_step_buffers::finish): ... this, adjust for multiple
179 buffers.
180 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
181 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
182 adjust for multiple buffers.
183 (displaced_step_buffer::restore_in_ptid): Rename to...
184 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
185 multiple buffers.
186 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
187 for num_disp_step_buffers.
188 * linux-tdep.c (struct linux_gdbarch_data)
189 <num_disp_step_buffers>: New field.
190 (struct linux_info) <disp_step_buf>: Rename to...
191 <disp_step_bufs>: ... this, change type to
192 displaced_step_buffers.
193 (linux_displaced_step_prepare): Use
194 linux_gdbarch_data::num_disp_step_buffers to create that number
195 of buffers.
196 (linux_displaced_step_finish): Adjust.
197 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
198 (linux_displaced_step_restore_all_in_ptid): Adjust.
199 (linux_init_abi): Change supports_displaced_step parameter for
200 num_disp_step_buffers, save it in linux_gdbarch_data.
201 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
202 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
203 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
204 supports_displaced_step parameter for num_disp_step_buffers.
205 (amd64_linux_init_abi): Adjust.
206 (amd64_x32_linux_init_abi): Adjust.
207 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
208 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
209 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
210 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
211 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
212 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
213 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
214 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
215 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
216 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
217 * m68k-linux-tdep.c (m68k_linux_init_abi):
218 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
219 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
220 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
221 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
222 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
223 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
224 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
225 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
226 Change type to displaced_step_buffers.
227 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
228 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
229 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
230 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
231 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
232 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
233 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
234
235 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
236
237 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
238 obkstack.
239 (_initialize_linux_tdep): Register pre-init gdb data instead of
240 post-init.
241
242 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
243
244 * displaced-stepping.h (struct
245 displaced_step_copy_insn_closure): Adjust comments.
246 (struct displaced_step_inferior_state) <step_thread,
247 step_gdbarch, step_closure, step_original, step_copy,
248 step_saved_copy>: Remove fields.
249 (struct displaced_step_thread_state): New.
250 (struct displaced_step_buffer): New.
251 * displaced-stepping.c (displaced_step_buffer::prepare): New.
252 (write_memory_ptid): Move from infrun.c.
253 (displaced_step_instruction_executed_successfully): New,
254 factored out of displaced_step_finish.
255 (displaced_step_buffer::finish): New.
256 (displaced_step_buffer::copy_insn_closure_by_addr): New.
257 (displaced_step_buffer::restore_in_ptid): New.
258 * gdbarch.sh (displaced_step_location): Remove.
259 (displaced_step_prepare, displaced_step_finish,
260 displaced_step_copy_insn_closure_by_addr,
261 displaced_step_restore_all_in_ptid): New.
262 * gdbarch.c: Re-generate.
263 * gdbarch.h: Re-generate.
264 * gdbthread.h (class thread_info) <displaced_step_state>: New
265 field.
266 (thread_step_over_chain_remove): New declaration.
267 (thread_step_over_chain_next): New declaration.
268 (thread_step_over_chain_length): New declaration.
269 * thread.c (thread_step_over_chain_remove): Make non-static.
270 (thread_step_over_chain_next): New.
271 (global_thread_step_over_chain_next): Use
272 thread_step_over_chain_next.
273 (thread_step_over_chain_length): New.
274 (global_thread_step_over_chain_enqueue): Add debug print.
275 (global_thread_step_over_chain_remove): Add debug print.
276 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
277 Remove.
278 * infrun.c (get_displaced_stepping_state): New.
279 (displaced_step_in_progress_any_inferior): Remove.
280 (displaced_step_in_progress_thread): Adjust.
281 (displaced_step_in_progress): Adjust.
282 (displaced_step_in_progress_any_thread): New.
283 (get_displaced_step_copy_insn_closure_by_addr): Remove.
284 (gdbarch_supports_displaced_stepping): Use
285 gdbarch_displaced_step_prepare_p.
286 (displaced_step_reset): Change parameter from inferior to
287 thread.
288 (displaced_step_prepare_throw): Implement using
289 gdbarch_displaced_step_prepare.
290 (write_memory_ptid): Move to displaced-step.c.
291 (displaced_step_restore): Remove.
292 (displaced_step_finish): Implement using
293 gdbarch_displaced_step_finish.
294 (start_step_over): Allow starting more than one displaced step.
295 (prepare_for_detach): Handle possibly multiple threads doing
296 displaced steps.
297 (handle_inferior_event): Handle possibility that fork event
298 happens while another thread displaced steps.
299 * linux-tdep.h (linux_displaced_step_prepare): New.
300 (linux_displaced_step_finish): New.
301 (linux_displaced_step_copy_insn_closure_by_addr): New.
302 (linux_displaced_step_restore_all_in_ptid): New.
303 (linux_init_abi): Add supports_displaced_step parameter.
304 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
305 (linux_displaced_step_prepare): New.
306 (linux_displaced_step_finish): New.
307 (linux_displaced_step_copy_insn_closure_by_addr): New.
308 (linux_displaced_step_restore_all_in_ptid): New.
309 (linux_init_abi): Add supports_displaced_step parameter,
310 register displaced step methods if true.
311 (_initialize_linux_tdep): Register inferior_execd observer.
312 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
313 supports_displaced_step parameter, adjust call to
314 linux_init_abi. Remove call to
315 set_gdbarch_displaced_step_location.
316 (amd64_linux_init_abi): Adjust call to
317 amd64_linux_init_abi_common.
318 (amd64_x32_linux_init_abi): Likewise.
319 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
320 linux_init_abi. Remove call to
321 set_gdbarch_displaced_step_location.
322 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
323 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
324 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
325 linux_init_abi.
326 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
327 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
328 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
329 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
330 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
331 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
332 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
333 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
334 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
335 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
336 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
337 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
338 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
339 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
340 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
341 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
342 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
343 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
344 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
345 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
346 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
347 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
348 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
349 linux_init_abi. Remove call to
350 set_gdbarch_displaced_step_location.
351 * arm-tdep.c (arm_pc_is_thumb): Call
352 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
353 get_displaced_step_copy_insn_closure_by_addr.
354 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
355 clear gdbarch methods.
356 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
357 (get_ppc_per_inferior): New function.
358 (ppc_displaced_step_prepare): New function.
359 (ppc_displaced_step_finish): New function.
360 (ppc_displaced_step_restore_all_in_ptid): New function.
361 (rs6000_gdbarch_init): Register new gdbarch methods.
362 * s390-tdep.c (s390_gdbarch_init): Don't call
363 set_gdbarch_displaced_step_location, set new gdbarch methods.
364
365 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
366
367 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
368 * aarch64-tdep.h: Include displaced-stepping.h.
369 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
370 Move here.
371 (displaced_step_copy_insn_closure_up): Move here.
372 (struct buf_displaced_step_copy_insn_closure): Move here.
373 (struct displaced_step_inferior_state): Move here.
374 (debug_displaced): Move here.
375 (displaced_debug_printf_1): Move here.
376 (displaced_debug_printf): Move here.
377 * displaced-stepping.c: New file.
378 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
379 * gdbarch.h: Re-generate.
380 * inferior.h: Include displaced-stepping.h.
381 * infrun.h (debug_displaced): Move to displaced-stepping.h.
382 (displaced_debug_printf_1): Likewise.
383 (displaced_debug_printf): Likewise.
384 (struct displaced_step_copy_insn_closure): Likewise.
385 (displaced_step_copy_insn_closure_up): Likewise.
386 (struct buf_displaced_step_copy_insn_closure): Likewise.
387 (struct displaced_step_inferior_state): Likewise.
388 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
389 (displaced_debug_printf_1): Likewise.
390 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
391 Likewise.
392 (_initialize_infrun): Don't register "set/show debug displaced".
393
394 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
395
396 * linux-tdep.c (get_linux_inferior_data): Add inferior
397 parameter.
398 (linux_vsyscall_range): Pass current inferior.
399
400 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
401
402 * infrun.c (displaced_step_prepare_throw): Change return type to
403 displaced_step_prepare_status.
404 (displaced_step_prepare): Likewise.
405 (displaced_step_finish): Change return type to
406 displaced_step_finish_status.
407 (resume_1): Adjust.
408 (stop_all_threads): Adjust.
409 * displaced-stepping.h: New file.
410
411 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
412
413 * infrun.c (displaced_step_fixup): Rename to...
414 (displaced_step_finish): ... this, update all callers.
415
416 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
417
418 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
419 (get_displaced_step_copy_insn_closure_by_addr): ... this.
420 Update all users.
421 (displaced_step_closure): Rename to...
422 (displaced_step_copy_insn_closure): ... this. Update all users.
423 (displaced_step_closure_up): Rename to...
424 (displaced_step_copy_insn_closure_up). ... this. Update all
425 users.
426 (buf_displaced_step_closure): Rename to...
427 (buf_displaced_step_copy_insn_closure): ... this. Update all
428 users.
429 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
430 (get_displaced_step_copy_insn_closure_by_addr): ... this.
431 Update all users.
432 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
433 (aarch64_displaced_step_copy_insn_closure): ... this. Update
434 all users.
435 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
436 (amd64_displaced_step_copy_insn_closure): ... this. Update all
437 users.
438 * arm-tdep.h (arm_displaced_step_closure): Rename to...
439 (arm_displaced_step_copy_insn_closure): ... this. Update all
440 users.
441 * i386-tdep.h (i386_displaced_step_closure): Rename to...
442 (i386_displaced_step_copy_insn_closure): ... this. Update all
443 users.
444 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
445 (ppc_displaced_step_copy_insn_closure): ... this. Update all
446 users.
447 * s390-tdep.c (s390_displaced_step_closure): Rename to...
448 (s390_displaced_step_copy_insn_closure): ... this. Update all
449 users.
450 * gdbarch.h: Re-generate.
451 * gdbarch.c: Re-generate.
452
453 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
454
455 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
456 (global_thread_step_over_chain_enqueue): ... this. Update all
457 users.
458 (thread_step_over_chain_remove): Rename to...
459 (global_thread_step_over_chain_remove): ... this. Update all
460 users.
461 (thread_step_over_chain_next): Rename to...
462 (global_thread_step_over_chain_next): ... this. Update all
463 users.
464 * infrun.h (step_over_queue_head): Rename to...
465 (global_thread_step_over_chain_head): ... this. Update all
466 users.
467 * infrun.c (step_over_queue_head): Rename to...
468 (global_thread_step_over_chain_head): ... this. Update all
469 users.
470 * thread.c (step_over_chain_remove): Rename to...
471 (thread_step_over_chain_remove): ... this. Update all users.
472 (thread_step_over_chain_next): Rename to...
473 (global_thread_step_over_chain_next): ... this. Update all
474 users.
475 (thread_step_over_chain_enqueue): Rename to...
476 (global_thread_step_over_chain_enqueue): ... this. Update all
477 users.
478 (thread_step_over_chain_remove): Rename to...
479 (global_thread_step_over_chain_remove): ... this. Update all
480 users.
481
482 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
483
484 * infrun.c (get_displaced_stepping_state): Remove, change
485 callers to access the field directly.
486
487 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * infrun.c (handle_inferior_event): Restore displaced step
490 buffer bytes in child process when handling fork, even if fork
491 happened in another thread than the displaced-stepping one.
492
493 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
494
495 * infrun.c (infrun_inferior_execd): New function.
496 (_initialize_infrun): Attach inferior_execd observer.
497
498 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
499
500 * observable.h (inferior_execd): Declare new observable.
501 * observable.c (inferior_execd): Declare new observable.
502 * infrun.c (follow_exec): Notify inferior_execd observer.
503 * jit.c (jit_inferior_created_hook): Make static.
504 (_initialize_jit): Register inferior_execd observer.
505 * jit.h (jit_inferior_created_hook): Remove declaration.
506 * solib.c (_initialize_solib): Register inferior_execd observer.
507
508 2020-12-04 Tom de Vries <tdevries@suse.de>
509
510 PR gdb/27003
511 * completer.c (completion_tracker::build_completion_result): Don't
512 access match_list[0][-1].
513
514 2020-12-04 Tom Tromey <tromey@adacore.com>
515
516 * linespec.c (struct linespec_token): Rename; remove typedef.
517 * guile/scm-block.c (struct block_smob): Remove typedef.
518 (struct block_syms_progress_smob): Likewise.
519 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
520 * guile/scm-symtab.c (symtab_smob): Remove typedef.
521 (struct sal_smob): Remove typedef.
522 * guile/scm-param.c (struct param_smob): Remove typedef.
523 * guile/scm-progspace.c (struct pspace_smob): Rename.
524 * guile/scm-objfile.c (struct objfile_smob): Rename.
525 * guile/scm-iterator.c (struct iterator_smob): Rename.
526 * guile/scm-frame.c (struct frame_smob): Rename.
527 * guile/scm-arch.c (struct arch_smob): Rename.
528 * guile/scm-type.c (struct field_smob): Remove typedef.
529 (struct type_smob): Rename.
530 * guile/scm-cmd.c (struct command_smob): Remove typedef.
531 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
532 * guile/scm-value.c (struct value_smob): Remove typedef.
533 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
534 * guile/guile-internal.h (struct scheme_variable)
535 (struct scheme_function, struct scheme_integer_constant)
536 (struct gdb_smob, struct chained_gdb_smob)
537 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
538 (objfile_smob, pspace_smob, type_smob): Remove typedef.
539 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
540 (struct pretty_printer_worker_smob): Remove typedef.
541 * guile/scm-exception.c (struct exception_smob): Remove typedef.
542 * python/py-block.c (struct block_object): Remove typedef.
543 (block_syms_iterator_object): Update.
544 (set_block): Update.
545 (block_syms_iterator_object): Remove typedef.
546 * python/py-inferior.c (struct membuf_object): Remove typedef.
547 * python/py-symtab.c (struct symtab_object): Remove typedef.
548 (set_symtab): Update.
549 (sal_object): Remove typedef.
550 (set_sal): Update.
551 * python/py-frame.c (frame_object): Remove typedef.
552 * python/py-record-btrace.c (struct btpy_list_object): Remove
553 typedef.
554 * python/py-arch.c (struct arch_object): Remove typedef.
555 * python/py-linetable.c (struct linetable_entry_object)
556 (linetable_object, struct ltpy_iterator_object): Remove typedef.
557 * python/py-events.h (eventregistry_object): Remove typedef.
558 (struct events_object): Remove typedef.
559 * python/python-internal.h (gdbpy_breakpoint_object): Remove
560 typedef.
561 (thread_object): Remove typedef.
562 * python/py-progspace.c (pspace_object): Remove typedef.
563 * python/py-value.c (struct value_object): Remove typedef.
564 * python/py-record.h (recpy_record_object): Remove typedef.
565 (struct recpy_element_object): Remove typedef.
566 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
567 * python/py-objfile.c (objfile_object): Remove typedef.
568 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
569 * python/py-type.c (type_object): Remove typedef.
570 (typy_iterator_object): Update.
571 (set_type): Update.
572 (field_object): Remove typedef.
573 (typy_iterator_object): Remove typedef.
574 * python/py-registers.c (register_descriptor_iterator_object):
575 Remove typedef.
576 (struct register_descriptor_object)
577 (struct reggroup_iterator_object, struct reggroup_object): Remove
578 typedef.
579 * python/py-record.c (recpy_gap_object): Remove typedef.
580 * python/py-symbol.c (symbol_object): Remove typedef.
581 (set_symbol): Update.
582 * python/py-event.h (event_object): Remove typedef.
583 * python/py-param.c (parmpy_object): Remove typedef.
584 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
585 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
586 (unwind_info_object, struct cached_frame_info): Likewise.
587
588 2020-12-04 Tom Tromey <tromey@adacore.com>
589
590 * value.c (value_internal_function_name): Make return type const.
591 * value.h (value_internal_function_name): Make return type const.
592
593 2020-12-04 Luis Machado <luis.machado@linaro.org>
594
595 * aarch64-tdep.c (submask, bit, bits): Remove.
596 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
597 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
598 (aarch64_decode_cb, aarch64_decode_tb)
599 (aarch64_decode_ldr_literal): Use sbits to extract a signed
600 immediate.
601 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
602
603 2020-12-04 Tom de Vries <tdevries@suse.de>
604
605 PR tdep/27007
606 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
607
608 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
609
610 PR gdb/26876
611 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
612 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
613
614 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * arch/riscv.c: Include 'rv32e-xregs.c'.
617 (riscv_create_target_description): Update to handle rv32e.
618 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
619 member variable.
620 <operator==>: Update to account for new field.
621 <hash>: Likewise.
622 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
623 * features/riscv/rv32e-xregs.c: Generated.
624 * features/riscv/rv32e-xregs.xml: New file.
625 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
626 file.
627 (riscv_debug_infcall): Likewise.
628 (riscv_debug_unwinder): Likewise.
629 (riscv_debug_gdbarch): Likewise.
630 (enum riscv_register_required_status): Delete.
631 (struct riscv_register_feature): Add constructor, delete default
632 constructor, copy, and assign constructors.
633 (struct riscv_register_feature::register_info) <required>: Delete.
634 <check>: Update comment and arguments.
635 (struct riscv_register_feature) <name>: Change to member function.
636 <prefer_first_name>: Delete.
637 <tdesc_feature>: New member function.
638 <registers>: Rename to...
639 <m_registers>: ...this.
640 <m_feature_name>: New member variable.
641 (riscv_register_feature::register_info::check): Update arguments.
642 (riscv_xreg_feature): Rewrite as class, create a single static
643 instance of the class.
644 (riscv_freg_feature): Likewise.
645 (riscv_virtual_feature): Likewise.
646 (riscv_csr_feature): Likewise.
647 (riscv_create_csr_aliases): Has become a member function inside
648 riscv_csr_feature class.
649 (riscv_abi_embedded): New function definition.
650 (riscv_register_name): Adjust to use new feature objects.
651 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
652 and adjust available argument registers.
653 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
654 (riscv_check_tdesc_feature): Delete.
655 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
656 (riscv_gdbarch_init): Delete target description checking code, and
657 instead call to the new feature objects to perform the checks.
658 Reorder handling of no abi information case, allows small code
659 simplification.
660 (_initialize_riscv_tdep): Remove call, this is now done in the
661 riscv_csr_feature constructor.
662 * riscv-tdep.h (riscv_abi_embedded): Declare.
663
664 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
665
666 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
667 DECLARE_CSR_ALIAS.
668
669 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * riscv-tdep.c (riscv_is_unknown_csr): New function,
672 implementation moved from riscv_register_reggroup_p.
673 (riscv_register_reggroup_p): Update group handling for unknown
674 CSRs.
675
676 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
677
678 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
679 (dwarf2_get_dwz_file): Convert 'filename' to a
680 std::string. Use dwz_search_other_debugdirs to search for DWZ
681 files in the debug-file-directories provided by the user as well.
682
683 2020-12-01 Tom Tromey <tom@tromey.com>
684
685 * parse.c (expr_builder::expr_builder): Initialize expout.
686 (expr_builder::release): Use expression::resize.
687 (expression::expression, expression::~expression)
688 (expression::resize): New methods.
689 (write_exp_elt): Use expression::resize.
690 (prefixify_expression): Update.
691 (increase_expout_size): Use expression::resize.
692 * expression.h (struct expression): Add constructor, destructor.
693 <resize>: New method.
694 (expression_up): Change type.
695
696 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
697 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
698 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
699 set region.
700
701 2020-11-30 Tom de Vries <tdevries@suse.de>
702
703 PR symtab/26905
704 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
705 is_reference parameter.
706 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
707
708 2020-11-30 Tom Tromey <tom@tromey.com>
709
710 * rust-lang.c (rust_op_name): Remove.
711 (exp_descriptor_rust): Update.
712 * parser-defs.h (op_name_standard): Don't declare.
713 (struct exp_descriptor) <op_name>: Remove.
714 * parse.c (exp_descriptor_standard): Update.
715 * opencl-lang.c (exp_descriptor_opencl): Update.
716 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
717 * f-lang.c (op_name_f): Remove.
718 (f_language::exp_descriptor_tab): Update.
719 * expression.h (op_name): Update.
720 * expprint.c (op_name): Rewrite.
721 (op_name_standard): Remove.
722 (dump_raw_expression, dump_subexp): Update.
723 * c-lang.c (exp_descriptor_c): Update.
724 * ax-gdb.c (gen_expr): Update.
725 * ada-lang.c (ada_op_name): Remove.
726 (ada_exp_descriptor): Update.
727
728 2020-11-30 Tom Tromey <tom@tromey.com>
729
730 * eval.c (init_array_element): Remove.
731 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
732
733 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
734
735 PR tui/26973
736 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
737 static locator win info.
738
739 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
740
741 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
742 program.
743
744 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
745
746 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
747 is always initialized.
748
749 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
750 * MAINTAINERS (Write After Approval): Add myself.
751
752 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
753
754 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
755 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
756
757 2020-11-25 Tom Tromey <tom@tromey.com>
758
759 * eval.c (evaluate_subexp_standard): Remove unnecessary
760 variables.
761
762 2020-11-25 Tom Tromey <tom@tromey.com>
763
764 * d-lang.c: Include parser-defs.h.
765 * rust-lang.c: Include parser-defs.h.
766 * c-lang.h: Do not include parser-defs.h.
767
768 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * regcache.h (struct cached_reg): Remove typedef.
771
772 2020-11-24 Joel Brobecker <brobecker@adacore.com>
773
774 * README: Fix the URL of the MPFR library.
775
776 2020-11-24 Joel Brobecker <brobecker@adacore.com>
777
778 * README: Document the --with-libgmp-prefix configure option.
779
780 2020-11-24 Joel Brobecker <brobecker@adacore.com>
781
782 * NEWS: Add entry documenting support for DWARF-based fixed
783 point types.
784
785 2020-11-24 Joel Brobecker <brobecker@adacore.com>
786
787 * NEWS: Document that building GDB now requires GMP.
788
789 2020-11-24 Joel Brobecker <brobecker@adacore.com>
790
791 * typeprint.c (print_type_scalar): Add handling of
792 TYPE_CODE_FIXED_POINT.
793
794 2020-11-24 Joel Brobecker <brobecker@adacore.com>
795
796 * valarith.c (fixed_point_binop): Replace the
797 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
798 users accordingly.
799
800 2020-11-24 Joel Brobecker <brobecker@adacore.com>
801
802 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
803 replacing fixed_point_scaling_factor. All callers updated
804 throughout this project.
805 (fixed_point_scaling_factor): Delete declaration.
806 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
807 fixed_point_scaling_factor. Adjust implementation accordingly.
808
809 2020-11-24 Joel Brobecker <brobecker@adacore.com>
810
811 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
812 replacing the fixed_point_type_base_type function. All callers
813 updated throughout this project.
814 (fixed_point_type_base_type): Remove declaration.
815 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
816 fixed_point_type_base_type. Adjust implementation accordingly.
817
818 2020-11-24 Joel Brobecker <brobecker@adacore.com>
819
820 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
821 New methods.
822 (INIT_FIXED_POINT_SPECIFIC): Adjust.
823 (TYPE_FIXED_POINT_INFO): Delete macro.
824 (allocate_fixed_point_type_info): Change return type to void.
825 * gdbtypes.c (copy_type_recursive): Replace the use of
826 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
827 (fixed_point_scaling_factor): Likewise.
828 (allocate_fixed_point_type_info): Change return type to void.
829 Adjust implementation accordingly.
830 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
831 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
832
833 2020-11-24 Joel Brobecker <brobecker@adacore.com>
834
835 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
836 into one single gdb::array_view parameter.
837 (gdb_mpz::write): Likewise.
838 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
839 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
840 into one single gdb::array_view parameter.
841 Adjust implementation accordingly.
842 (gdb_mpz::write): Likewise.
843 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
844 * unittests/gmp-utils-selftests.c: Adapt following changes above.
845 * valarith.c, valops.c, valprint.c, value.c: Likewise.
846
847 2020-11-24 Joel Brobecker <brobecker@adacore.com>
848
849 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
850 Change return type to std::string. Update all callers.
851 * gmp-utils.c (gmp_string_printf): Likewise.
852
853 2020-11-24 Joel Brobecker <brobecker@adacore.com>
854
855 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
856 instead of mpq_set_ui to initialize our GMP rational.
857
858 2020-11-23 Tom de Vries <tdevries@suse.de>
859
860 * debuginfod-support.c (debuginfod_source_query)
861 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
862
863 2020-11-21 Tom Tromey <tom@tromey.com>
864
865 * breakpoint.c (watchpoint_exp_is_const): Return bool.
866
867 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
868
869 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
870 Pass 2.0 to pow.
871 (gdb_mpz_write_all_from_small): Likewise.
872
873 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
876 of abs.
877
878 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
879
880 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
881 ctf_arc_open_by_name.
882
883 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
884
885 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
886 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
887
888 2020-11-20 Pedro Alves <pedro@palves.net>
889
890 * language.c (language_arch_info::lookup_primitive_type): Use
891 gdb::function_view instead of gdb::function.
892 (template language_lookup_primitive_type): Rename to ...
893 (language_lookup_primitive_type_1): ... this, and make static.
894 (language_lookup_primitive_type(const struct language_defn *,
895 struct gdbarch *, const char *): Make non-template.
896 (language_lookup_primitive_type(const struct language_defn *,
897 struct gdbarch *, std::function<bool (struct type *)>): Make
898 non-template and use gdb::function_view.
899 * language.h (language_arch_info::lookup_primitive_type): Use
900 gdb::function_view instead of std::function.
901 (language_lookup_primitive_type): No longer template.
902 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
903 lambda instead of a std::function.
904
905 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
906
907 PR tdep/26916
908 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
909 and STOCFH.
910
911 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
912
913 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
914
915 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
918 in `loop_cb` parameter.
919 * gdbarch.c: Re-generate.
920 * gdbarch.h: Re-generate.
921 * arch-utils.c (default_read_core_file_mappings): Remove `other`
922 parameter.
923 * arch-utils.h (default_read_core_file_mappings): Likewise.
924 * corelow.c (core_target::build_file_mappings): Likewise.
925 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
926 (linux_core_info_proc_mappings): Likewise.
927
928 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
931 * NEWS: Mention new options.
932 * f-array-walker.h: New file.
933 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
934 (repack_array_slices): New static global.
935 (show_repack_array_slices): New function.
936 (fortran_array_slicing_debug): New static global.
937 (show_fortran_array_slicing_debug): New function.
938 (value_f90_subarray): Delete.
939 (skip_undetermined_arglist): Delete.
940 (class fortran_array_repacker_base_impl): New class.
941 (class fortran_lazy_array_repacker_impl): New class.
942 (class fortran_array_repacker_impl): New class.
943 (fortran_value_subarray): Complete rewrite.
944 (set_fortran_list): New static global.
945 (show_fortran_list): Likewise.
946 (_initialize_f_language): Register new commands.
947 (fortran_adjust_dynamic_array_base_address_hack): New function.
948 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
949 Declare.
950 * f-valprint.c: Include 'f-array-walker.h'.
951 (class fortran_array_printer_impl): New class.
952 (f77_print_array_1): Delete.
953 (f77_print_array): Delete.
954 (fortran_print_array): New.
955 (f_value_print_inner): Update to call fortran_print_array.
956 * gdbtypes.c: Include 'f-lang.h'.
957 (resolve_dynamic_type_internal): Call
958 fortran_adjust_dynamic_array_base_address_hack.
959
960 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * breakpoint.c (struct watch_options): New struct.
963 (watch_option_defs): New static global.
964 (make_watch_options_def_group): New function.
965 (watch_maybe_just_location): Convert option parsing.
966 (watch_command_completer): New function.
967 (_initialize_breakpoint): Build help text using options mechanism.
968
969 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
970
971 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
972 (watch_command_1): Update parameter types. Convert locals to
973 bool.
974 (watch_command_wrapper): Change parameter type.
975 (watch_maybe_just_location): Change locals to bool.
976 (rwatch_command_wrapper): Update parameter type.
977 (awatch_command_wrapper): Update parameter type.
978 * breakpoint.h (watch_command_wrapper): Change parameter type.
979 (rwatch_command_wrapper): Update parameter type.
980 (awatch_command_wrapper): Update parameter type.
981 * eval.c (fetch_subexp_value): Change parameter type.
982 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
983 'false' not '0'.
984 * value.h (fetch_subexp_value): Change parameter type in
985 declaration.
986
987 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
990 skip_spaces.
991
992 2020-11-18 Keith Seitz <keiths@redhat.com>
993
994 * linux-tdep.c (dump_note_entry_p): Return true instead of
995 checking `filename'.
996
997 2020-11-18 Tom de Vries <tdevries@suse.de>
998
999 * debuginfod-support.c (debuginfod_source_query)
1000 (debuginfod_debuginfo_query): Also do early exit if
1001 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1002
1003 2020-11-18 Tom de Vries <tdevries@suse.de>
1004
1005 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1006 warning.
1007
1008 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1011 callers. Move doc here.
1012 * gdbtypes.c (get_array_bounds): Return bool
1013
1014 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1017 assert.
1018 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1019 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1020 case to the default.
1021
1022 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * printcmd.c: Include 'safe-ctype.c'.
1025 (skip_over_slash_fmt): New function.
1026 (print_command_completer): Call skip_over_slash_fmt.
1027 (display_and_x_command_completer): New function.
1028 (_initialize_printcmd): Add command completion for 'x' and
1029 'display'.
1030
1031 2020-11-16 Pedro Alves <pedro@palves.net>
1032
1033 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1034 (get_prev_frame_always_1): ... to here.
1035 * inline-frame.c (inline_frame_this_id): Mention
1036 get_prev_frame_always_1 in comment.
1037
1038 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1039
1040 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1041 handling.
1042 (value_less): Add fixed-point handling.
1043
1044 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1045
1046 * eval.c (binop_promote): Add fixed-point type handling.
1047 * valarith.c (fixed_point_binop): New function.
1048 (scalar_binop): Add fixed-point type handling.
1049 (value_neg): Add fixed-point type handling.
1050 * valops.c (value_cast_to_fixed_point): New function.
1051 (value_cast): Add fixed-point type handling.
1052
1053 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1054
1055 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1056 range types.
1057 * c-typeprint.c (c_type_print_varspec_prefix)
1058 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1059 TYPE_CODE_FIXED_POINT handling.
1060 * p-typeprint.c (pascal_type_print_varspec_prefix)
1061 (pascal_type_print_varspec_suffix): Likewise.
1062 * typeprint.c (print_type_fixed_point): New function.
1063 * typeprint.h (print_type_fixed_point): Add declaration.
1064
1065 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1066
1067 * printcmd.c (print_scalar_formatted): Add fixed-point type
1068 handling when options->format is set.
1069
1070 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1071
1072 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1073 * dwarf2/read.c (get_dwarf2_rational_constant)
1074 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1075 (has_zero_over_zero_small_attribute): New functions.
1076 read_base_type, set_die_type): Add fixed-point type handling.
1077 * gdb-gdb.py.in: Add fixed-point type handling.
1078 * gdbtypes.c: #include "gmp-utils.h".
1079 (create_range_type, set_type_code): Add fixed-point type handling.
1080 (init_fixed_point_type): New function.
1081 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1082 (print_fixed_point_type_info): New function.
1083 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1084 handling.
1085 (fixed_point_type_storage): New typedef.
1086 (fixed_point_objfile_key): New static global.
1087 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1088 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1089 functions.
1090 * gdbtypes.h: #include "gmp-utils.h".
1091 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1092 (union type_specific) <fixed_point_info>: New field.
1093 (struct fixed_point_type_info): New struct.
1094 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1095 (init_fixed_point_type, is_fixed_point_type)
1096 (fixed_point_type_base_type, fixed_point_scaling_factor)
1097 (allocate_fixed_point_type_info): Add declarations.
1098 * valprint.c (generic_val_print_fixed_point): New function.
1099 (generic_value_print): Add fixed-point type handling.
1100 * value.c (value_as_address, unpack_long): Add fixed-point type
1101 handling.
1102
1103 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1104
1105 * utils.h (uinteger_pow): Add declaration.
1106 * utils.c (uinteger_pow): Moved here (without changes)...
1107 * valarith.c (uinteger_pow): ... from here.
1108
1109 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1110
1111 * gmp-utils.h, gmp-utils.c: New file.
1112 * unittests/gmp-utils-selftests.c: New file.
1113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1114 unittests/gmp-utils-selftests.c.
1115 (COMMON_SFILES) Add gmp-utils.c.
1116 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1117
1118 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1119
1120 * configure.ac: Generate an error if a usable GMP library
1121 could not be found.
1122 * configure: Regenerate.
1123
1124 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1125
1126 * configure.ac: Add support for --with-libgmp-prefix.
1127 * Makefile.in (LIBGMP): New variable.
1128 (CLIBS): Include $(LIBGMP).
1129 * configure, config.in: Regenerate
1130
1131 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 PR cli/26879
1134 * f-exp.y (COMPLETE): New token.
1135 (exp): Two new rules for tab-completion.
1136 (saw_name_at_eof): New static global.
1137 (last_was_structop): Likewise.
1138 (yylex): Set new variables, and return COMPLETE token at the end
1139 of the input stream in some cases.
1140
1141 2020-11-14 Tom Tromey <tom@tromey.com>
1142
1143 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1144
1145 2020-11-14 Tom Tromey <tom@tromey.com>
1146
1147 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1148
1149 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1150
1151 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1152
1153 2020-11-13 Tom Tromey <tom@tromey.com>
1154
1155 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1156 (convert_escape, parse_one_string): Constify.
1157
1158 2020-11-13 Keith Seitz <keiths@redhat.com>
1159
1160 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1161 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1162 outside of ELF segments" warning for debugin
1163
1164 2020-11-13 Keith Seitz <keiths@redhat.com>
1165
1166 PR gdb/23034
1167 * elfread.c (elf_symfile_segments): Output a BFD file name
1168 for the "Loadable section ... outside of ELF segments" warning.
1169
1170 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 PR gdb/26835
1173 * arm-tdep.c (class arm_instruction_reader): New.
1174 (target_arm_instruction_reader): New.
1175 (arm_analyze_prologue): Add instruction reader parameter and use
1176 it. Use arm_expand_immediate.
1177 (class target_arm_instruction_reader): Adjust.
1178 (arm_skip_prologue): Adjust.
1179 (arm_expand_immediate): New.
1180 (arm_scan_prologue): Adjust.
1181 (arm_analyze_prologue_test): New.
1182 (class test_arm_instruction_reader): New.
1183
1184 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * f-lang.c (fortran_argument_convert): Add declaration. Add
1187 header comment, taken from f-lang.h. Make static.
1188 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1189 (fortran_argument_convert): Delete declaration.
1190
1191 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * ada-exp.y (find_primitive_type): Make parameter const.
1194 * ada-lang.c (enum ada_primitive_types): Delete.
1195 (ada_language::language_arch_info): Update.
1196 * c-lang.c (enum c_primitive_types): Delete.
1197 (c_language_arch_info): Update.
1198 (enum cplus_primitive_types): Delete.
1199 (cplus_language::language_arch_info): Update.
1200 * d-lang.c (enum d_primitive_types): Delete.
1201 (d_language::language_arch_info): Update.
1202 * f-lang.c (enum f_primitive_types): Delete.
1203 (f_language::language_arch_info): Update.
1204 * go-lang.c (enum go_primitive_types): Delete.
1205 (go_language::language_arch_info): Update.
1206 * language.c (auto_or_unknown_language::language_arch_info):
1207 Update.
1208 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1209 (language_string_char_type): Add header comment, call function in
1210 language_arch_info.
1211 (language_bool_type): Likewise
1212 (language_arch_info::bool_type): Define.
1213 (language_lookup_primitive_type_1): Delete.
1214 (language_lookup_primitive_type): Rewrite as a templated function
1215 to call function in language_arch_info, then instantiate twice.
1216 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1217 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1218 (language_arch_info::lookup_primitive_type): Define twice with
1219 different signatures.
1220 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1221 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1222 member function in language_arch_info.
1223 * language.h (language_arch_info): Complete rewrite.
1224 (language_lookup_primitive_type): Make templated.
1225 * m2-lang.c (enum m2_primitive_types): Delete.
1226 (m2_language::language_arch_info): Update.
1227 * opencl-lang.c (OCL_P_TYPE): Delete.
1228 (enum opencl_primitive_types): Delete.
1229 (opencl_type_data): Delete.
1230 (builtin_opencl_type): Delete.
1231 (lookup_opencl_vector_type): Update.
1232 (opencl_language::language_arch_info): Update, lots of content
1233 moved from...
1234 (build_opencl_types): ...here. This function is now deleted.
1235 (_initialize_opencl_language): Delete.
1236 * p-lang.c (enum pascal_primitive_types): Delete.
1237 (pascal_language::language_arch_info): Update.
1238 * rust-lang.c (enum rust_primitive_types): Delete.
1239 (rust_language::language_arch_info): Update.
1240
1241 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1242
1243 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1244 dwarf2_queue_guard.
1245
1246 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1249 comment.
1250
1251 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1252
1253 * dwarf2/read.c (dwarf_read_debug_printf,
1254 dwarf_read_debug_printf_v): New macros, use throughout the file.
1255
1256 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1257
1258 PR tdep/27015
1259 * arc-linux-tdep.c (collect_register): Populate "eret" by
1260 "pc" value from the regcache when asked for "pc" value.
1261
1262 2020-11-12 Tom Tromey <tom@tromey.com>
1263
1264 PR rust/26799:
1265 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1266 exist.
1267
1268 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * features/Makefile (XMLTOC): Add rx.xml.
1271 (FEATURE_XMLFILES): Remove rx.xml.
1272 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1273 * features/rx.c: Regenerate.
1274 * features/rx.xml: Wrap in `target` tags, and reindent.
1275 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1276 structure.
1277 (maint_print_c_tdesc_opt_def): New typedef.
1278 (maint_print_c_tdesc_opt_defs): New static global.
1279 (make_maint_print_c_tdesc_options_def_group): New function.
1280 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1281 print single feature C file for target descriptions containing a
1282 single feature.
1283 (maint_print_c_tdesc_cmd_completer): New function.
1284 (_initialize_target_descriptions): Update call to register command
1285 completer, and include command line flag in help text.
1286
1287 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1290 numbers.
1291 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1292 enum values.
1293
1294 2020-11-10 Tom Tromey <tom@tromey.com>
1295
1296 * value.h (internalvar_name): Update.
1297 * value.c (internalvar_name): Make return type const.
1298
1299 2020-11-10 Tom Tromey <tom@tromey.com>
1300
1301 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1302 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1303 const.
1304
1305 2020-11-10 Tom Tromey <tom@tromey.com>
1306
1307 * objc-lang.h (value_nsstring): Update.
1308 * objc-lang.c (value_nsstring): Make "ptr" const.
1309
1310 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * expprint.c (print_subexp_funcall): Increment expression position
1313 after reading argument count.
1314 * f-lang.c (print_subexp_f): Skip over opcode before calling
1315 common function.
1316 (dump_subexp_body_f): Likewise.
1317
1318 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1319
1320 PR python/26832
1321 * configure: Regenerate.
1322 * configure.ac: Check for python modules ctypes instead of
1323 itertools.
1324
1325 2020-11-06 Pedro Alves <pedro@palves.net>
1326
1327 * macroexp.c (struct macro_buffer): Split in two classes. Add
1328 uses adjusted.
1329 (struct shared_macro_buffer): New, factored out from struct
1330 macro_buffer.
1331 (struct growable_macro_buffer): New, factored out from struct
1332 macro_buffer.
1333 (set_token, get_comment, get_identifier, get_pp_number)
1334 (get_character_constant, get_string_literal, get_punctuator)
1335 (get_next_token_for_substitution): Constify parameters.
1336 (substitute_args): Constify locals.
1337
1338 2020-11-05 Tom Tromey <tom@tromey.com>
1339
1340 * dwarf2/read.c (read_cutu_die_from_dwo)
1341 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1342 (build_type_psymtabs_1): Update.
1343 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1344 parameter.
1345 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1346 Don't read section. Add assert.
1347
1348 2020-11-04 Tom Tromey <tromey@adacore.com>
1349
1350 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1351
1352 2020-11-04 Tom Tromey <tromey@adacore.com>
1353
1354 * ada-typeprint.c (ada_print_type): Handle __T types.
1355
1356 2020-11-04 Tom Tromey <tromey@adacore.com>
1357
1358 * dwarf2/read.c (add_partial_symbol, process_die):
1359 Handle DW_TAG_array_type.
1360 (is_type_tag_for_partial): Add "lang" parameter.
1361 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1362
1363 2020-11-04 Tom Tromey <tromey@adacore.com>
1364
1365 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1366
1367 2020-11-04 Tom Tromey <tromey@adacore.com>
1368
1369 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1370 array.
1371
1372 2020-11-04 Tom Tromey <tromey@adacore.com>
1373
1374 * gdbtypes.c (update_static_array_size): Handle bit stride.
1375
1376 2020-11-04 Tom Tromey <tromey@adacore.com>
1377
1378 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1379
1380 2020-11-04 Tom Tromey <tromey@adacore.com>
1381
1382 * ada-lang.c (ada_is_any_packed_array_type): New function.
1383 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1384
1385 2020-11-04 Tom Tromey <tromey@adacore.com>
1386
1387 * dwarf2/read.c (recognize_bound_expression)
1388 (quirk_ada_thick_pointer): New functions.
1389 (read_array_type): Call quirk_ada_thick_pointer.
1390 (set_die_type): Add "skip_data_location" parameter.
1391 (quirk_ada_thick_pointer): New function.
1392 (process_structure_scope): Call quirk_ada_thick_pointer.
1393 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1394 (decode_packed_array_bitsize): Handle thick pointers without
1395 parallel types.
1396 (ada_is_gnat_encoded_packed_array_type): Rename from
1397 ada_is_packed_array_type.
1398 (ada_is_constrained_packed_array_type): Update.
1399 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1400 (ada_value_print_1): Use ada_get_decoded_value.
1401
1402 2020-11-04 Tom Tromey <tromey@adacore.com>
1403
1404 * ada-lang.c (recursively_update_array_bitsize): New function.
1405 (decode_constrained_packed_array_type): Call it.
1406
1407 2020-11-04 Tom Tromey <tromey@adacore.com>
1408
1409 * ada-lang.c (to_fixed_array_type): Error if
1410 decode_constrained_packed_array_type returns NULL.
1411
1412 2020-11-04 Tom Tromey <tromey@adacore.com>
1413
1414 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1415
1416 2020-11-02 Tom Tromey <tromey@adacore.com>
1417
1418 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1419 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1420 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1421 * amd64-ravenscar-thread.c: New file.
1422 * amd64-ravenscar-thread.h: New file.
1423 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1424 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1425
1426 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * main.c (execute_cmdargs): New function.
1429 (captured_main_1): Make use of execute_cmdargs.
1430
1431 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * NEWS: Mention changes to config file search path.
1434 * main.c
1435
1436 2020-11-02 Tom Tromey <tromey@adacore.com>
1437
1438 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1439 (python_GdbModuleDef): Move earlier. Now static.
1440 (do_start_initialization): Consolidate some IS_PY3K blocks.
1441
1442 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1443
1444 * aarch64-linux-tdep.c: Fix indentation.
1445 * aarch64-ravenscar-thread.c: Fix indentation.
1446 * aarch64-tdep.c: Fix indentation.
1447 * aarch64-tdep.h: Fix indentation.
1448 * ada-lang.c: Fix indentation.
1449 * ada-lang.h: Fix indentation.
1450 * ada-tasks.c: Fix indentation.
1451 * ada-typeprint.c: Fix indentation.
1452 * ada-valprint.c: Fix indentation.
1453 * ada-varobj.c: Fix indentation.
1454 * addrmap.c: Fix indentation.
1455 * addrmap.h: Fix indentation.
1456 * agent.c: Fix indentation.
1457 * aix-thread.c: Fix indentation.
1458 * alpha-bsd-nat.c: Fix indentation.
1459 * alpha-linux-tdep.c: Fix indentation.
1460 * alpha-mdebug-tdep.c: Fix indentation.
1461 * alpha-nbsd-tdep.c: Fix indentation.
1462 * alpha-obsd-tdep.c: Fix indentation.
1463 * alpha-tdep.c: Fix indentation.
1464 * amd64-bsd-nat.c: Fix indentation.
1465 * amd64-darwin-tdep.c: Fix indentation.
1466 * amd64-linux-nat.c: Fix indentation.
1467 * amd64-linux-tdep.c: Fix indentation.
1468 * amd64-nat.c: Fix indentation.
1469 * amd64-obsd-tdep.c: Fix indentation.
1470 * amd64-tdep.c: Fix indentation.
1471 * amd64-windows-tdep.c: Fix indentation.
1472 * annotate.c: Fix indentation.
1473 * arc-tdep.c: Fix indentation.
1474 * arch-utils.c: Fix indentation.
1475 * arch/arm-get-next-pcs.c: Fix indentation.
1476 * arch/arm.c: Fix indentation.
1477 * arm-linux-nat.c: Fix indentation.
1478 * arm-linux-tdep.c: Fix indentation.
1479 * arm-nbsd-tdep.c: Fix indentation.
1480 * arm-pikeos-tdep.c: Fix indentation.
1481 * arm-tdep.c: Fix indentation.
1482 * arm-tdep.h: Fix indentation.
1483 * arm-wince-tdep.c: Fix indentation.
1484 * auto-load.c: Fix indentation.
1485 * auxv.c: Fix indentation.
1486 * avr-tdep.c: Fix indentation.
1487 * ax-gdb.c: Fix indentation.
1488 * ax-general.c: Fix indentation.
1489 * bfin-linux-tdep.c: Fix indentation.
1490 * block.c: Fix indentation.
1491 * block.h: Fix indentation.
1492 * blockframe.c: Fix indentation.
1493 * bpf-tdep.c: Fix indentation.
1494 * break-catch-sig.c: Fix indentation.
1495 * break-catch-syscall.c: Fix indentation.
1496 * break-catch-throw.c: Fix indentation.
1497 * breakpoint.c: Fix indentation.
1498 * breakpoint.h: Fix indentation.
1499 * bsd-uthread.c: Fix indentation.
1500 * btrace.c: Fix indentation.
1501 * build-id.c: Fix indentation.
1502 * buildsym-legacy.h: Fix indentation.
1503 * buildsym.c: Fix indentation.
1504 * c-typeprint.c: Fix indentation.
1505 * c-valprint.c: Fix indentation.
1506 * c-varobj.c: Fix indentation.
1507 * charset.c: Fix indentation.
1508 * cli/cli-cmds.c: Fix indentation.
1509 * cli/cli-decode.c: Fix indentation.
1510 * cli/cli-decode.h: Fix indentation.
1511 * cli/cli-script.c: Fix indentation.
1512 * cli/cli-setshow.c: Fix indentation.
1513 * coff-pe-read.c: Fix indentation.
1514 * coffread.c: Fix indentation.
1515 * compile/compile-cplus-types.c: Fix indentation.
1516 * compile/compile-object-load.c: Fix indentation.
1517 * compile/compile-object-run.c: Fix indentation.
1518 * completer.c: Fix indentation.
1519 * corefile.c: Fix indentation.
1520 * corelow.c: Fix indentation.
1521 * cp-abi.h: Fix indentation.
1522 * cp-namespace.c: Fix indentation.
1523 * cp-support.c: Fix indentation.
1524 * cp-valprint.c: Fix indentation.
1525 * cris-linux-tdep.c: Fix indentation.
1526 * cris-tdep.c: Fix indentation.
1527 * darwin-nat-info.c: Fix indentation.
1528 * darwin-nat.c: Fix indentation.
1529 * darwin-nat.h: Fix indentation.
1530 * dbxread.c: Fix indentation.
1531 * dcache.c: Fix indentation.
1532 * disasm.c: Fix indentation.
1533 * dtrace-probe.c: Fix indentation.
1534 * dwarf2/abbrev.c: Fix indentation.
1535 * dwarf2/attribute.c: Fix indentation.
1536 * dwarf2/expr.c: Fix indentation.
1537 * dwarf2/frame.c: Fix indentation.
1538 * dwarf2/index-cache.c: Fix indentation.
1539 * dwarf2/index-write.c: Fix indentation.
1540 * dwarf2/line-header.c: Fix indentation.
1541 * dwarf2/loc.c: Fix indentation.
1542 * dwarf2/macro.c: Fix indentation.
1543 * dwarf2/read.c: Fix indentation.
1544 * dwarf2/read.h: Fix indentation.
1545 * elfread.c: Fix indentation.
1546 * eval.c: Fix indentation.
1547 * event-top.c: Fix indentation.
1548 * exec.c: Fix indentation.
1549 * exec.h: Fix indentation.
1550 * expprint.c: Fix indentation.
1551 * f-lang.c: Fix indentation.
1552 * f-typeprint.c: Fix indentation.
1553 * f-valprint.c: Fix indentation.
1554 * fbsd-nat.c: Fix indentation.
1555 * fbsd-tdep.c: Fix indentation.
1556 * findvar.c: Fix indentation.
1557 * fork-child.c: Fix indentation.
1558 * frame-unwind.c: Fix indentation.
1559 * frame-unwind.h: Fix indentation.
1560 * frame.c: Fix indentation.
1561 * frv-linux-tdep.c: Fix indentation.
1562 * frv-tdep.c: Fix indentation.
1563 * frv-tdep.h: Fix indentation.
1564 * ft32-tdep.c: Fix indentation.
1565 * gcore.c: Fix indentation.
1566 * gdb_bfd.c: Fix indentation.
1567 * gdbarch.sh: Fix indentation.
1568 * gdbarch.c: Re-generate
1569 * gdbarch.h: Re-generate.
1570 * gdbcore.h: Fix indentation.
1571 * gdbthread.h: Fix indentation.
1572 * gdbtypes.c: Fix indentation.
1573 * gdbtypes.h: Fix indentation.
1574 * glibc-tdep.c: Fix indentation.
1575 * gnu-nat.c: Fix indentation.
1576 * gnu-nat.h: Fix indentation.
1577 * gnu-v2-abi.c: Fix indentation.
1578 * gnu-v3-abi.c: Fix indentation.
1579 * go32-nat.c: Fix indentation.
1580 * guile/guile-internal.h: Fix indentation.
1581 * guile/scm-cmd.c: Fix indentation.
1582 * guile/scm-frame.c: Fix indentation.
1583 * guile/scm-iterator.c: Fix indentation.
1584 * guile/scm-math.c: Fix indentation.
1585 * guile/scm-ports.c: Fix indentation.
1586 * guile/scm-pretty-print.c: Fix indentation.
1587 * guile/scm-value.c: Fix indentation.
1588 * h8300-tdep.c: Fix indentation.
1589 * hppa-linux-nat.c: Fix indentation.
1590 * hppa-linux-tdep.c: Fix indentation.
1591 * hppa-nbsd-nat.c: Fix indentation.
1592 * hppa-nbsd-tdep.c: Fix indentation.
1593 * hppa-obsd-nat.c: Fix indentation.
1594 * hppa-tdep.c: Fix indentation.
1595 * hppa-tdep.h: Fix indentation.
1596 * i386-bsd-nat.c: Fix indentation.
1597 * i386-darwin-nat.c: Fix indentation.
1598 * i386-darwin-tdep.c: Fix indentation.
1599 * i386-dicos-tdep.c: Fix indentation.
1600 * i386-gnu-nat.c: Fix indentation.
1601 * i386-linux-nat.c: Fix indentation.
1602 * i386-linux-tdep.c: Fix indentation.
1603 * i386-nto-tdep.c: Fix indentation.
1604 * i386-obsd-tdep.c: Fix indentation.
1605 * i386-sol2-nat.c: Fix indentation.
1606 * i386-tdep.c: Fix indentation.
1607 * i386-tdep.h: Fix indentation.
1608 * i386-windows-tdep.c: Fix indentation.
1609 * i387-tdep.c: Fix indentation.
1610 * i387-tdep.h: Fix indentation.
1611 * ia64-libunwind-tdep.c: Fix indentation.
1612 * ia64-libunwind-tdep.h: Fix indentation.
1613 * ia64-linux-nat.c: Fix indentation.
1614 * ia64-linux-tdep.c: Fix indentation.
1615 * ia64-tdep.c: Fix indentation.
1616 * ia64-tdep.h: Fix indentation.
1617 * ia64-vms-tdep.c: Fix indentation.
1618 * infcall.c: Fix indentation.
1619 * infcmd.c: Fix indentation.
1620 * inferior.c: Fix indentation.
1621 * infrun.c: Fix indentation.
1622 * iq2000-tdep.c: Fix indentation.
1623 * language.c: Fix indentation.
1624 * linespec.c: Fix indentation.
1625 * linux-fork.c: Fix indentation.
1626 * linux-nat.c: Fix indentation.
1627 * linux-tdep.c: Fix indentation.
1628 * linux-thread-db.c: Fix indentation.
1629 * lm32-tdep.c: Fix indentation.
1630 * m2-lang.c: Fix indentation.
1631 * m2-typeprint.c: Fix indentation.
1632 * m2-valprint.c: Fix indentation.
1633 * m32c-tdep.c: Fix indentation.
1634 * m32r-linux-tdep.c: Fix indentation.
1635 * m32r-tdep.c: Fix indentation.
1636 * m68hc11-tdep.c: Fix indentation.
1637 * m68k-bsd-nat.c: Fix indentation.
1638 * m68k-linux-nat.c: Fix indentation.
1639 * m68k-linux-tdep.c: Fix indentation.
1640 * m68k-tdep.c: Fix indentation.
1641 * machoread.c: Fix indentation.
1642 * macrocmd.c: Fix indentation.
1643 * macroexp.c: Fix indentation.
1644 * macroscope.c: Fix indentation.
1645 * macrotab.c: Fix indentation.
1646 * macrotab.h: Fix indentation.
1647 * main.c: Fix indentation.
1648 * mdebugread.c: Fix indentation.
1649 * mep-tdep.c: Fix indentation.
1650 * mi/mi-cmd-catch.c: Fix indentation.
1651 * mi/mi-cmd-disas.c: Fix indentation.
1652 * mi/mi-cmd-env.c: Fix indentation.
1653 * mi/mi-cmd-stack.c: Fix indentation.
1654 * mi/mi-cmd-var.c: Fix indentation.
1655 * mi/mi-cmds.c: Fix indentation.
1656 * mi/mi-main.c: Fix indentation.
1657 * mi/mi-parse.c: Fix indentation.
1658 * microblaze-tdep.c: Fix indentation.
1659 * minidebug.c: Fix indentation.
1660 * minsyms.c: Fix indentation.
1661 * mips-linux-nat.c: Fix indentation.
1662 * mips-linux-tdep.c: Fix indentation.
1663 * mips-nbsd-tdep.c: Fix indentation.
1664 * mips-tdep.c: Fix indentation.
1665 * mn10300-linux-tdep.c: Fix indentation.
1666 * mn10300-tdep.c: Fix indentation.
1667 * moxie-tdep.c: Fix indentation.
1668 * msp430-tdep.c: Fix indentation.
1669 * namespace.h: Fix indentation.
1670 * nat/fork-inferior.c: Fix indentation.
1671 * nat/gdb_ptrace.h: Fix indentation.
1672 * nat/linux-namespaces.c: Fix indentation.
1673 * nat/linux-osdata.c: Fix indentation.
1674 * nat/netbsd-nat.c: Fix indentation.
1675 * nat/x86-dregs.c: Fix indentation.
1676 * nbsd-nat.c: Fix indentation.
1677 * nbsd-tdep.c: Fix indentation.
1678 * nios2-linux-tdep.c: Fix indentation.
1679 * nios2-tdep.c: Fix indentation.
1680 * nto-procfs.c: Fix indentation.
1681 * nto-tdep.c: Fix indentation.
1682 * objfiles.c: Fix indentation.
1683 * objfiles.h: Fix indentation.
1684 * opencl-lang.c: Fix indentation.
1685 * or1k-tdep.c: Fix indentation.
1686 * osabi.c: Fix indentation.
1687 * osabi.h: Fix indentation.
1688 * osdata.c: Fix indentation.
1689 * p-lang.c: Fix indentation.
1690 * p-typeprint.c: Fix indentation.
1691 * p-valprint.c: Fix indentation.
1692 * parse.c: Fix indentation.
1693 * ppc-linux-nat.c: Fix indentation.
1694 * ppc-linux-tdep.c: Fix indentation.
1695 * ppc-nbsd-nat.c: Fix indentation.
1696 * ppc-nbsd-tdep.c: Fix indentation.
1697 * ppc-obsd-nat.c: Fix indentation.
1698 * ppc-ravenscar-thread.c: Fix indentation.
1699 * ppc-sysv-tdep.c: Fix indentation.
1700 * ppc64-tdep.c: Fix indentation.
1701 * printcmd.c: Fix indentation.
1702 * proc-api.c: Fix indentation.
1703 * producer.c: Fix indentation.
1704 * producer.h: Fix indentation.
1705 * prologue-value.c: Fix indentation.
1706 * prologue-value.h: Fix indentation.
1707 * psymtab.c: Fix indentation.
1708 * python/py-arch.c: Fix indentation.
1709 * python/py-bpevent.c: Fix indentation.
1710 * python/py-event.c: Fix indentation.
1711 * python/py-event.h: Fix indentation.
1712 * python/py-finishbreakpoint.c: Fix indentation.
1713 * python/py-frame.c: Fix indentation.
1714 * python/py-framefilter.c: Fix indentation.
1715 * python/py-inferior.c: Fix indentation.
1716 * python/py-infthread.c: Fix indentation.
1717 * python/py-objfile.c: Fix indentation.
1718 * python/py-prettyprint.c: Fix indentation.
1719 * python/py-registers.c: Fix indentation.
1720 * python/py-signalevent.c: Fix indentation.
1721 * python/py-stopevent.c: Fix indentation.
1722 * python/py-stopevent.h: Fix indentation.
1723 * python/py-threadevent.c: Fix indentation.
1724 * python/py-tui.c: Fix indentation.
1725 * python/py-unwind.c: Fix indentation.
1726 * python/py-value.c: Fix indentation.
1727 * python/py-xmethods.c: Fix indentation.
1728 * python/python-internal.h: Fix indentation.
1729 * python/python.c: Fix indentation.
1730 * ravenscar-thread.c: Fix indentation.
1731 * record-btrace.c: Fix indentation.
1732 * record-full.c: Fix indentation.
1733 * record.c: Fix indentation.
1734 * reggroups.c: Fix indentation.
1735 * regset.h: Fix indentation.
1736 * remote-fileio.c: Fix indentation.
1737 * remote.c: Fix indentation.
1738 * reverse.c: Fix indentation.
1739 * riscv-linux-tdep.c: Fix indentation.
1740 * riscv-ravenscar-thread.c: Fix indentation.
1741 * riscv-tdep.c: Fix indentation.
1742 * rl78-tdep.c: Fix indentation.
1743 * rs6000-aix-tdep.c: Fix indentation.
1744 * rs6000-lynx178-tdep.c: Fix indentation.
1745 * rs6000-nat.c: Fix indentation.
1746 * rs6000-tdep.c: Fix indentation.
1747 * rust-lang.c: Fix indentation.
1748 * rx-tdep.c: Fix indentation.
1749 * s12z-tdep.c: Fix indentation.
1750 * s390-linux-tdep.c: Fix indentation.
1751 * score-tdep.c: Fix indentation.
1752 * ser-base.c: Fix indentation.
1753 * ser-mingw.c: Fix indentation.
1754 * ser-uds.c: Fix indentation.
1755 * ser-unix.c: Fix indentation.
1756 * serial.c: Fix indentation.
1757 * sh-linux-tdep.c: Fix indentation.
1758 * sh-nbsd-tdep.c: Fix indentation.
1759 * sh-tdep.c: Fix indentation.
1760 * skip.c: Fix indentation.
1761 * sol-thread.c: Fix indentation.
1762 * solib-aix.c: Fix indentation.
1763 * solib-darwin.c: Fix indentation.
1764 * solib-frv.c: Fix indentation.
1765 * solib-svr4.c: Fix indentation.
1766 * solib.c: Fix indentation.
1767 * source.c: Fix indentation.
1768 * sparc-linux-tdep.c: Fix indentation.
1769 * sparc-nbsd-tdep.c: Fix indentation.
1770 * sparc-obsd-tdep.c: Fix indentation.
1771 * sparc-ravenscar-thread.c: Fix indentation.
1772 * sparc-tdep.c: Fix indentation.
1773 * sparc64-linux-tdep.c: Fix indentation.
1774 * sparc64-nbsd-tdep.c: Fix indentation.
1775 * sparc64-obsd-tdep.c: Fix indentation.
1776 * sparc64-tdep.c: Fix indentation.
1777 * stabsread.c: Fix indentation.
1778 * stack.c: Fix indentation.
1779 * stap-probe.c: Fix indentation.
1780 * stubs/ia64vms-stub.c: Fix indentation.
1781 * stubs/m32r-stub.c: Fix indentation.
1782 * stubs/m68k-stub.c: Fix indentation.
1783 * stubs/sh-stub.c: Fix indentation.
1784 * stubs/sparc-stub.c: Fix indentation.
1785 * symfile-mem.c: Fix indentation.
1786 * symfile.c: Fix indentation.
1787 * symfile.h: Fix indentation.
1788 * symmisc.c: Fix indentation.
1789 * symtab.c: Fix indentation.
1790 * symtab.h: Fix indentation.
1791 * target-float.c: Fix indentation.
1792 * target.c: Fix indentation.
1793 * target.h: Fix indentation.
1794 * tic6x-tdep.c: Fix indentation.
1795 * tilegx-linux-tdep.c: Fix indentation.
1796 * tilegx-tdep.c: Fix indentation.
1797 * top.c: Fix indentation.
1798 * tracefile-tfile.c: Fix indentation.
1799 * tracepoint.c: Fix indentation.
1800 * tui/tui-disasm.c: Fix indentation.
1801 * tui/tui-io.c: Fix indentation.
1802 * tui/tui-regs.c: Fix indentation.
1803 * tui/tui-stack.c: Fix indentation.
1804 * tui/tui-win.c: Fix indentation.
1805 * tui/tui-winsource.c: Fix indentation.
1806 * tui/tui.c: Fix indentation.
1807 * typeprint.c: Fix indentation.
1808 * ui-out.h: Fix indentation.
1809 * unittests/copy_bitwise-selftests.c: Fix indentation.
1810 * unittests/memory-map-selftests.c: Fix indentation.
1811 * utils.c: Fix indentation.
1812 * v850-tdep.c: Fix indentation.
1813 * valarith.c: Fix indentation.
1814 * valops.c: Fix indentation.
1815 * valprint.c: Fix indentation.
1816 * valprint.h: Fix indentation.
1817 * value.c: Fix indentation.
1818 * value.h: Fix indentation.
1819 * varobj.c: Fix indentation.
1820 * vax-tdep.c: Fix indentation.
1821 * windows-nat.c: Fix indentation.
1822 * windows-tdep.c: Fix indentation.
1823 * xcoffread.c: Fix indentation.
1824 * xml-syscall.c: Fix indentation.
1825 * xml-tdesc.c: Fix indentation.
1826 * xstormy16-tdep.c: Fix indentation.
1827 * xtensa-config.c: Fix indentation.
1828 * xtensa-linux-nat.c: Fix indentation.
1829 * xtensa-linux-tdep.c: Fix indentation.
1830 * xtensa-tdep.c: Fix indentation.
1831
1832 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1833 Craig Blackmore <craig.blackmore@embecosm.com>
1834
1835 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1836 as an unsigned value.
1837
1838 2020-11-01 Tom Tromey <tom@tromey.com>
1839
1840 * dbxread.c (dbx_end_psymtab): Update.
1841 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1842 (build_type_psymtabs_reader): Update.
1843 * xcoffread.c (xcoff_end_psymtab): Update.
1844 * ctfread.c (scan_partial_symbols): Update.
1845 * psymtab.c (sort_pst_symbols): Remove.
1846 (partial_symtab::end): Rename from end_psymtab_common. Inline
1847 sort_pst_symbols.
1848 * psympriv.h (struct partial_symtab) <end>: New method.
1849 (end_psymtab_common): Don't declare.
1850
1851 2020-11-01 Tom Tromey <tom@tromey.com>
1852
1853 * symmisc.c (count_psyms): New function.
1854 (print_objfile_statistics): Use it.
1855 * psymtab.c (append_psymbol_to_list): Remove.
1856 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1857 * objfiles.h (struct objstats) <n_psyms>: Remove.
1858
1859 2020-11-01 Tom Tromey <tom@tromey.com>
1860
1861 * dbxread.c (dbx_end_psymtab): Update.
1862 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1863 (build_type_psymtabs_reader): Update.
1864 * xcoffread.c (xcoff_end_psymtab): Update.
1865 * ctfread.c (scan_partial_symbols): Update.
1866 * psympriv.h (end_psymtab_common): Update.
1867 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1868 (sort_pst_symbols): Likewise.
1869
1870 2020-11-01 Tom Tromey <tom@tromey.com>
1871
1872 * dbxread.c (dbx_symfile_read): Update.
1873 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1874 * xcoffread.c (xcoff_initial_scan): Update.
1875 * psympriv.h (init_psymbol_list): Don't declare.
1876 * psymtab.c (init_psymbol_list): Remove.
1877
1878 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1879
1880 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1881 gnat_encoded_fixed_type_info. Update all callers.
1882
1883 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1886 line too long.
1887
1888 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1889
1890 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1891 cast_from_fixed. Update all callers.
1892 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1893 Update all callers.
1894 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1895 Update all callers.
1896 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1897 ada_scaling_factor.
1898 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1899 to print_gnat_encoded_fixed_point_type.
1900 * ada-valprint.c: Likewise.
1901
1902 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1905 (debug_prefixed_printf): Add check of debug_displaced flag.
1906 * linux-nat.c (linux_nat_debug_printf): Add check of
1907 debug_linux_nat flag.
1908
1909 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * infrun.c (infrun_debug_printf_1): Remove.
1912 (displaced_debug_printf_1): Remove.
1913 (stop_all_threads): Use debug_prefixed_printf.
1914 * infrun.h (infrun_debug_printf_1): Remove.
1915 (infrun_debug_printf): Use debug_prefixed_printf.
1916 (displaced_debug_printf_1): Remove.
1917 (displaced_debug_printf): Use debug_prefixed_printf.
1918 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1919 (linux_nat_debug_printf): Use debug_prefixed_printf.
1920
1921 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * configure: Re-generate.
1924 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1925 AC_LANG_PROGRAM.
1926
1927 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * configure: Re-generate.
1930
1931 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * configure: Re-generate.
1934
1935 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1936
1937 * configure: Re-generate.
1938
1939 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * configure: Re-generate.
1942
1943 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * acinclude.m4: Modernize.
1946 * configure: Re-generate.
1947
1948 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1949
1950 * configure.ac: Modernize.
1951 * configure: Re-generate.
1952
1953 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1956 * configure: Re-generate.
1957 * configure.ac: Remove AM_PROG_CC_STDC.
1958
1959 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1962 AC_CANONICAL_SYSTEM.
1963 * configure: Re-generate.
1964
1965 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1966
1967 * infrun.h (displaced_debug_printf): New macro. Replace
1968 displaced debug prints throughout to use it.
1969 (displaced_debug_printf_1): New declaration.
1970 (displaced_step_dump_bytes): Return string, remove ui_file
1971 parameter, update all callers.
1972 * infrun.c (displaced_debug_printf_1): New function.
1973 (displaced_step_dump_bytes): Return string, remove ui_file
1974 parameter
1975
1976 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1979
1980 2020-10-30 Tom Tromey <tromey@adacore.com>
1981
1982 * Makefile.in (stamp-init): Depend on config.status.
1983
1984 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1985
1986 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1987
1988 2020-10-30 Pedro Alves <pedro@palves.net>
1989
1990 * thread.c (lookup_selected_frame): Move ...
1991 * frame.c (lookup_selected_frame): ... here.
1992
1993 2020-10-30 Pedro Alves <pedro@palves.net>
1994
1995 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1996 * frame.c
1997 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1998 Use save_selected_frame. Save language as well.
1999 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2000 Use restore_selected_frame, and restore language as well.
2001 (selected_frame_id, selected_frame_level): New.
2002 (selected_frame): Update comments.
2003 (save_selected_frame, restore_selected_frame): New.
2004 (get_selected_frame): Use lookup_selected_frame.
2005 (get_selected_frame_if_set): Delete.
2006 (select_frame): Record selected_frame_level and selected_frame_id.
2007 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2008 fields.
2009 (get_selected_frame): Make 'message' parameter optional.
2010 (get_selected_frame_if_set): Delete declaration.
2011 (select_frame): Update comments.
2012 (save_selected_frame, restore_selected_frame)
2013 (lookup_selected_frame): Declare.
2014 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2015 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2016 New field.
2017 (save_infcall_control_state): Use save_selected_frame.
2018 (restore_selected_frame): Delete.
2019 (restore_infcall_control_state): Use restore_selected_frame.
2020 * stack.c (select_frame_command_core, frame_command_core): Use
2021 get_selected_frame.
2022 * thread.c (restore_selected_frame): Rename to ...
2023 (lookup_selected_frame): ... this and make extern. Select the
2024 current frame if the frame level is -1.
2025 (scoped_restore_current_thread::restore): Also restore the
2026 language.
2027 (scoped_restore_current_thread::~scoped_restore_current_thread):
2028 Don't try/catch.
2029 (scoped_restore_current_thread::scoped_restore_current_thread):
2030 Save the language as well. Use save_selected_frame.
2031
2032 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2035 documentation.
2036 * gdbarch.h: Re-generate.
2037
2038 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2041 parameter.
2042 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2043 Likewise.
2044 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2045 Likewise.
2046 * arch-utils.c (default_displaced_step_hw_singlestep):
2047 Likewise.
2048 * arch-utils.h (default_displaced_step_hw_singlestep):
2049 Likewise.
2050 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2051 Likewise.
2052 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2053 Likewise.
2054 * gdbarch.c: Re-generate.
2055 * gdbarch.h: Re-generate.
2056 * infrun.c (resume_1): Adjust.
2057
2058 2020-10-29 Tom Tromey <tom@tromey.com>
2059
2060 * progspace.c (program_space::~program_space): Don't call
2061 exec_close.
2062
2063 2020-10-29 Tom Tromey <tom@tromey.com>
2064
2065 * exec.c (exec_target::close): Don't change current program
2066 space.
2067
2068 2020-10-29 Tom Tromey <tom@tromey.com>
2069
2070 * symfile.c (add_symbol_file_command): Update.
2071 * exec.c (program_space::add_target_sections): Rename.
2072 * symfile-mem.c (symbol_file_add_from_memory): Update.
2073 * progspace.h (struct program_space) <add_target_sections>:
2074 Declare new overload.
2075 * exec.h (add_target_sections_of_objfile): Don't declare.
2076
2077 2020-10-29 Tom Tromey <tom@tromey.com>
2078
2079 * solib.c (solib_map_sections): Update.
2080 * exec.c (program_space::add_target_sections): Now a method.
2081 (exec_file_attach): Update.
2082 * exec.h (add_target_sections): Don't declare.
2083 * progspace.h (struct program_space) <add_target_sections>:
2084 Declare.
2085
2086 2020-10-29 Tom Tromey <tom@tromey.com>
2087
2088 * progspace.h (struct program_space) <remove_target_sections>:
2089 Declare.
2090 * exec.c (program_space::remove_target_sections): Now a method.
2091 * exec.h (remove_target_sections): Don't declare.
2092
2093 2020-10-29 Tom Tromey <tom@tromey.com>
2094
2095 * inferior.c (delete_inferior): Update.
2096 * progspace.c (program_space::empty): Rename from
2097 program_space_empty_p. Return bool.
2098 * progspace.h (struct program_space) <empty>: New method.
2099 (program_space_empty_p): Don't declare.
2100
2101 2020-10-29 Tom Tromey <tom@tromey.com>
2102
2103 * progspace.c (program_space::~program_space): Don't call
2104 clear_program_space_solib_cache.
2105 (program_space::clear_solib_cache): Rename from
2106 clear_solib_cache.
2107 * solib.c (handle_solib_event): Update.
2108 * progspace.h (struct program_space) <clear_solib_cache>: New
2109 method.
2110 (clear_program_space_solib_cache): Don't declare.
2111
2112 2020-10-29 Tom Tromey <tom@tromey.com>
2113
2114 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2115 * target.c (info_target_command): Update.
2116 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2117 (symbol_file_clear, reread_symbols): Update.
2118 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2119 * stabsread.c (scan_file_globals): Update.
2120 * solib.c (update_solib_list): Update.
2121 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2122 (svr4_fetch_objfile_link_map, enable_break)
2123 (svr4_relocate_main_executable)
2124 (svr4_iterate_over_objfiles_in_search_order): Update.
2125 * solib-frv.c (lm_base, enable_break)
2126 (frv_relocate_main_executable): Update.
2127 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2128 (frv_fetch_objfile_link_map): Update.
2129 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2130 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2131 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2132 * remote.c (remote_target::get_offsets): Update.
2133 (remote_target::start_remote)
2134 (extended_remote_target::post_attach): Update.
2135 * objfiles.c (entry_point_address_query): Update.
2136 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2137 * minsyms.c (get_symbol_leading_char): Update.
2138 * frame.c (inside_main_func): Update.
2139 * progspace.h (symfile_objfile): Remove macro.
2140
2141 2020-10-29 Tom Tromey <tom@tromey.com>
2142
2143 * exec.c (exec_file_attach): Update.
2144 * progspace.c (program_space::exec_close): Update.
2145 * progspace.h (struct program_space) <ebfd>: Now a
2146 gdb_bfd_ref_ptr.
2147 <set_exec_bfd>: Change argument type.
2148 <exec_bfd>: Update.
2149
2150 2020-10-29 Tom Tromey <tom@tromey.com>
2151
2152 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2153 * symfile.c (reread_symbols): Update.
2154 * symfile-mem.c (add_symbol_file_from_memory_command)
2155 (add_vsyscall_page): Update.
2156 * source-cache.c (source_cache::get_plain_source_lines): Update.
2157 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2158 (svr4_current_sos_direct, svr4_exec_displacement)
2159 (svr4_relocate_main_executable): Update.
2160 (svr4_iterate_over_objfiles_in_search_order): Update.
2161 * solib-frv.c (enable_break2, enable_break): Update.
2162 * solib-dsbt.c (lm_base, enable_break): Update.
2163 * solib-darwin.c (find_program_interpreter)
2164 (darwin_solib_create_inferior_hook): Update.
2165 * sol-thread.c (rw_common, ps_pdmodel): Update.
2166 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2167 * remote.c (compare_sections_command)
2168 (remote_target::trace_set_readonly_regions): Update.
2169 * remote-sim.c (get_sim_inferior_data)
2170 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2171 (gdbsim_target_open, gdbsim_target::files_info): Update.
2172 * exec.h (exec_bfd): Remove macro.
2173 * progspace.c (initialize_progspace): Update.
2174 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2175 Update.
2176 * nto-procfs.c (nto_procfs_target::post_attach)
2177 (nto_procfs_target::create_inferior): Update.
2178 * maint.c (maintenance_info_sections): Update.
2179 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2180 Update.
2181 * infcmd.c (post_create_inferior): Update.
2182 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2183 (objfile_find_memory_regions): Update.
2184 * exec.c (validate_exec_file, exec_file_attach)
2185 (exec_read_partial_read_only, print_section_info): Update.
2186 * corelow.c (core_target_open): Update.
2187 * corefile.c (reopen_exec_file, validate_files): Update.
2188 * arm-tdep.c (gdb_print_insn_arm): Update.
2189 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2190 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2191 methods.
2192
2193 2020-10-29 Tom Tromey <tom@tromey.com>
2194
2195 * progspace.h (current_target_sections): Remove macro.
2196 * solib-svr4.c (scan_dyntag): Update.
2197 * solib-dsbt.c (scan_dyntag): Update.
2198 * exec.c (exec_target::close): Update.
2199 (add_target_sections, add_target_sections_of_objfile)
2200 (remove_target_sections, exec_target::get_section_table)
2201 (exec_target::files_info, set_section_command)
2202 (exec_set_section_address, exec_target::has_memory)
2203 (exec_target::has_memory): Update.
2204
2205 2020-10-29 Tom Tromey <tom@tromey.com>
2206
2207 * source-cache.c (source_cache::get_plain_source_lines): Use
2208 current_program_space.
2209 * corefile.c (reopen_exec_file): Use current_program_space.
2210 * exec.c (exec_file_attach): Use current_program_space.
2211 * exec.h (exec_bfd_mtime): Remove.
2212
2213 2020-10-29 Tom Tromey <tom@tromey.com>
2214
2215 * gcore.c (default_gcore_mach): Remove.
2216 (create_gcore_bfd): Update.
2217
2218 2020-10-29 Tom Tromey <tom@tromey.com>
2219
2220 * progspace.c (program_space::exec_close): New method, from
2221 exec_close in exec.c.
2222 * exec.c (exec_close): Move to progspace.c.
2223 (exec_target::close, exec_file_attach): Update.
2224 * progspace.h (struct program_space) <exec_close>: Declare
2225 method.
2226
2227 2020-10-29 Tom Tromey <tom@tromey.com>
2228
2229 * progspace.h (struct program_space) <exec_filename>: Rename from
2230 pspace_exec_filename. Now a unique_xmalloc_ptr.
2231 * inferior.c (print_selected_inferior): Update.
2232 (print_inferior): Update.
2233 * mi/mi-main.c (print_one_inferior): Update.
2234 * exec.h (exec_filename): Remove macro.
2235 * corefile.c (get_exec_file): Update.
2236 * exec.c (exec_close): Update.
2237 (exec_file_attach): Update.
2238 * progspace.c (clone_program_space): Update.
2239 (print_program_space): Update.
2240
2241 2020-10-29 Tom Tromey <tom@tromey.com>
2242
2243 * target-section.h (struct target_section): Add constructor.
2244 * exec.c (build_section_table, add_target_sections_of_objfile):
2245 Update.
2246 * corelow.c (core_target::build_file_mappings): Update.
2247
2248 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2249
2250 PR gdb/19318
2251 * inferior.c (detach_inferior_command): Restore the current thread.
2252 (kill_inferior_command): Ditto.
2253
2254 2020-10-28 Tom de Vries <tdevries@suse.de>
2255
2256 PR symtab/26772
2257 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2258 map, check it in the "best match" loop.
2259
2260 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * m32c-tdep.c: Remove unused includes.
2263
2264 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2265
2266 * xtensa-tdep.c: Remove includes.
2267
2268 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2269
2270 * breakpoint.c (struct condition_command_opts): New struct.
2271 (condition_command_option_defs): New static global.
2272 (make_condition_command_options_def_group): New function.
2273 (condition_completer): Update to consider the '-force' flag.
2274 (condition_command): Use gdb::option for the '-force' flag.
2275
2276 2020-10-27 Tom de Vries <tdevries@suse.de>
2277
2278 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2279 symbols in section check.
2280
2281 2020-10-27 Tom de Vries <tdevries@suse.de>
2282
2283 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2284
2285 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2286
2287 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2288 * breakpoint.c: Update the help text of the 'condition' and 'break'
2289 commands.
2290 (set_breakpoint_condition): Take a new bool parameter
2291 to control whether condition definition should be forced even when
2292 the condition expression is invalid in all of the current locations.
2293 (condition_command): Update the call to 'set_breakpoint_condition'.
2294 (find_condition_and_thread): Take the "-force-condition" flag into
2295 account.
2296 * linespec.c (linespec_keywords): Add "-force-condition" as an
2297 element.
2298 (FORCE_KEYWORD_INDEX): New #define.
2299 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2300 as a keyword.
2301 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2302 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2303 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2304 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2305
2306 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2307
2308 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2309 * breakpoint.c (set_breakpoint_location_condition): New function.
2310 (set_breakpoint_condition): Disable a breakpoint location if parsing
2311 the condition string gives an error.
2312 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2313 (build_target_condition_list): Ditto.
2314 (build_target_command_list): Ditto.
2315 (build_bpstat_chain): Ditto.
2316 (print_one_breakpoint_location): Ditto.
2317 (print_one_breakpoint): Ditto.
2318 (breakpoint_1): Ditto.
2319 (bp_location::bp_location): Ditto.
2320 (locations_are_equal): Ditto.
2321 (update_breakpoint_locations): Ditto.
2322 (enable_disable_bp_num_loc): Ditto.
2323 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2324 (find_condition_and_thread_for_sals): New static function.
2325 (create_breakpoint): Call find_condition_and_thread_for_sals.
2326 (location_to_sals): Call find_condition_and_thread_for_sals instead
2327 of find_condition_and_thread.
2328
2329 2020-10-26 Tom de Vries <tdevries@suse.de>
2330
2331 * dwarf2/read.c (process_full_comp_unit): Call
2332 dwarf2_find_base_address.
2333
2334 2020-10-26 Tom Tromey <tromey@adacore.com>
2335
2336 * gdbtypes.c (create_range_type): Revert previous patch. Add
2337 comment.
2338
2339 2020-10-26 Pedro Alves <pedro@palves.net>
2340
2341 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2342 (my_waitpid): Use gdb::handle_eintr.
2343
2344 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * acinclude.m4: Update ptrace.m4 path.
2347 * ptrace.m4: Moved to gdbsupport.
2348
2349 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2352 instead of target_gdbarch.
2353
2354 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * jit.c (jit_reader_load_command): Pass current inferior.
2357 (jit_inferior_init): Change parameter type to inferior, use it.
2358 (jit_inferior_created): Remove.
2359 (jit_inferior_created_hook): Pass inferior parameter down.
2360 (_initialize_jit): Use jit_inferior_created_hook instead of
2361 jit_inferior_created.
2362 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2363 * infrun.c (follow_exec): Pass inferior to
2364 jit_inferior_created_hook.
2365
2366 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2369 parameter and use it.
2370 (thread_db_inferior_created): Pass inferior argument.
2371
2372 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2373
2374 * aix-thread.c (aix_thread_inferior_created): Add inferior
2375 parameter.
2376 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2377 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2378 * jit.c (jit_inferior_created): Likewise.
2379 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2380 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2381 * observable.h (inferior_created): Likewise.
2382 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2383 * symfile-mem.c (add_vsyscall_page): Likewise.
2384 * infcmd.c (post_create_inferior): Pass inferior argument.
2385
2386 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2387
2388 GDB 10.1 released.
2389
2390 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2391
2392 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2393 to ada_check_typedef.
2394
2395 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2396
2397 * f-exp.y (f_parse): Rename to...
2398 (f_language::parser): ...this.
2399 * f-lang.c (f_get_encoding): Rename to...
2400 (f_language::get_encoding): ...this.
2401 (f_op_print_tab): Rename to...
2402 (f_language::op_print_tab): ...this.
2403 (exp_descriptor_f): Rename to...
2404 (f_language::exp_descriptor_tab): ...this.
2405 (class f_language): Moved to f-lang.h.
2406 (f_language::language_arch_info): New function, moved out of class
2407 declaration.
2408 (f_language::search_name_hash): Likewise.
2409 (f_language::lookup_symbol_nonlocal): Likewise.
2410 (f_language::get_symbol_name_matcher_inner): Likewise.
2411 * f-lang.h: Add 'valprint.h' include.
2412 (class f_language): Moved here from f-lang.c.
2413 * f-typeprint.c (f_type_print_args): Delete commented out
2414 declaration.
2415 (f_print_typedef): Rename to...
2416 (f_language::print_typedef): ...this.
2417 (f_print_type): Rename to...
2418 (f_language::print_type): ...this.
2419 (f_type_print_varspec_prefix): Delete declaration and rename to...
2420 (f_language::f_type_print_varspec_prefix): ...this.
2421 (f_type_print_varspec_suffix): Delete declaration and rename to...
2422 (f_language::f_type_print_varspec_suffix): ...this.
2423 (f_type_print_base): Delete declaration and rename to...
2424 (f_language::f_type_print_base): ...this.
2425 * f-valprint.c (f_value_print_inner): Rename to...
2426 (f_language::value_print_inner): ...this.
2427 * parse.c: Delete 'f-lang.h' include.
2428
2429 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * language.h (language_defn::print_type): Add variable names in
2432 declaration, and update header comment.
2433
2434 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * ada-lang.c (ada_language::demangle): Rename to...
2437 (ada_language::demangle_symbol): ...this.
2438 * c-lang.c (cplus_language::demangle): Rename to...
2439 (cplus_language::demangle_symbol): ...this.
2440 * d-lang.c (d_language::demangle): Rename to...
2441 (d_language::demangle_symbol): ...this.
2442 * f-lang.c (f_language::demangle): Rename to...
2443 (f_language::demangle_symbol): ...this.
2444 * go-lang.c (go_language::demangle): Rename to...
2445 (go_language::demangle_symbol): ...this.
2446 * language.c (language_demangle): Update call to demangle_symbol.
2447 (auto_or_unknown_language::demangle): Rename to...
2448 (auto_or_unknown_language::demangle_symbol): ...this.
2449 * language.h (language_defn::demangle): Rename to...
2450 (language_defn::demangle_symbol): ...this.
2451 * objc-lang.c (objc_language::demangle): Rename to...
2452 (objc_language::demangle_symbol): ...this.
2453 * rust-lang.c (rust_language::demangle): Rename to...
2454 (rust_language::demangle_symbol): ...this.
2455
2456 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2457
2458 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2459 (iterate_over_file_blocks): Replace use of macro with the macros
2460 definition.
2461
2462 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2465 * valprint.c (maybe_print_array_index): Replace use of macro with
2466 the macros definition.
2467
2468 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2469
2470 * ada-lang.c (ada_language::print_array_index): Call value_print
2471 directly.
2472 * language.c (language_defn::print_array_index): Likewise.
2473 * language.h (LA_VALUE_PRINT): Delete.
2474 * valprint.c (value_print): Call value_print on the
2475 current_language directly.
2476
2477 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * language.h (LA_PRINT_TYPEDEF): Delete.
2480 * typeprint.c (typedef_print): Call print_typedef directly on the
2481 current_language object.
2482
2483 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * m2-exp.y (m2_parse): Rename to...
2486 (m2_language::parser): ...this. Update function signature.
2487 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2488 (m2_op_print): Rename to...
2489 (m2_language::op_print_tab): ...this, and make const.
2490 (exp_descriptor_modula2): Rename to...
2491 (m2_language::exp_descriptor_modula2): ...this.
2492 (class m2_language): Move to m2-lang.h.
2493 (m2_language::language_arch_info): New function, moved out of
2494 class declaration.
2495 (m2_language::printchar): New function, body from m2_printchar.
2496 (m2_language::printstr): New function, moved out of class
2497 declaration.
2498 (m2_language::emitchar): Likewise.
2499 * m2-lang.h (m2_parse): Delete declaration.
2500 (m2_print_typedef): Delete declaration.
2501 (m2_value_print_inner): Delete declaration.
2502 (class m2_language): Class declaration moved from m2-lang.c,
2503 larger functions are left in m2-lang.c.
2504 * m2-typeprint.c (m2_print_typedef): Rename to...
2505 (m2_language::print_typedef): ...this, and update function
2506 signature.
2507 * m2-valprint.c (m2_value_print_inner): Rename to...
2508 (m2_language::value_print_inner): ...this, replace use of
2509 LA_PRINT_STRING with a direct call to printstr member function,
2510 and update recursive call.
2511
2512 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * language.c (default_is_string_type_p): Delete, implementation
2515 moved into auto_or_unknown_language::is_string_type_p.
2516 (unk_op_print_tab): Moved into
2517 auto_or_unknown_language::opcode_print_table.
2518 (unknown_language_arch_info): Delete, implementation moved into
2519 auto_or_unknown_language::language_arch_info.
2520 (class auto_or_unknown_language): New class, member functions
2521 copied from unknown_language class, with some updates.
2522 (class unknown_language): Most member functions moved into
2523 auto_or_unknown_language class. Inherit from
2524 auto_or_unknown_language class.
2525 (class auto_language): Inherit from auto_or_unknown_language.
2526 Delete most member functions.
2527
2528 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2529
2530 * stabsread.c (read_member_functions): Remove gdb_assert.
2531
2532 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2533
2534 * gdbtypes.c (init_complex_type): Check target type name.
2535
2536 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 * target-debug.h (target_debug_print_struct_target_ops_p):
2539 Remove.
2540 (target_debug_print_async_callback_ftype_p): Remove.
2541 (target_debug_print_struct_trace_state_variable_p): Remove.
2542 (target_debug_print_struct_traceframe_info_p): Remove.
2543 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2544 (target_debug_print_enum_btrace_format): Remove.
2545 (target_debug_print_enum_info_proc_what): Remove.
2546 (target_debug_print_thread_info_pp): Remove.
2547
2548 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * target.h (struct target_ops) <make_corefile_notes>:
2551 Change return type to unique pointer.
2552 * target.c (dummy_make_corefile_notes): Likewise.
2553 * exec.c (struct exec_target) <make_corefile_notes>:
2554 Likewise.
2555 (exec_target::make_corefile_notes): Likewise.
2556 * procfs.c (class procfs_target) <make_corefile_notes>:
2557 Likewise.
2558 (procfs_do_thread_registers): Adjust to unique pointer.
2559 (struct procfs_corefile_thread_data): Add constructor.
2560 <note_data>: Change type to unique pointer.
2561 (procfs_corefile_thread_callback): Adjust to unique pointer.
2562 (procfs_target::make_corefile_notes): Change return type to
2563 unique pointer.
2564 * target-delegates.c: Re-generate.
2565 * gcore.c (write_gcore_file_1): Adjust.
2566 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2567 New.
2568
2569 2020-10-22 Tom de Vries <tdevries@suse.de>
2570
2571 * block.c (find_block_in_blockvector): Make sure the returned block
2572 contains pc.
2573
2574 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 PR gdb/26693
2577 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2578 parameter.
2579 (load_cu): Pass existing CU.
2580 (process_imported_unit_die): Likewise.
2581 (follow_die_offset): Likewise.
2582
2583 2020-10-22 Luis Machado <luis.machado@linaro.org>
2584
2585 * corelow.c (core_target::xfer_partial): Also check for an empty
2586 m_core_unavailable_mappings vector.
2587
2588 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2591 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2592 * f-exp.y (arglist): Allow for a series of subranges.
2593 (subrange): Add cases for subranges with strides.
2594 * f-lang.c (value_f90_subarray): Catch use of array strides and
2595 throw an error.
2596 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2597
2598 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * expprint.c (print_subexp_standard): Change enum range_type to
2601 range_flag and rename variables to match.
2602 (dump_subexp_body_standard): Likewise.
2603 * expression.h (enum range_type): Rename to...
2604 (enum range_flag): ...this.
2605 (range_types): Rename to...
2606 (range_flags): ...this.
2607 * f-lang.c (value_f90_subarray): Change enum range_type to
2608 range_flag and rename variables to match.
2609 * parse.c (operator_length_standard): Likewise.
2610 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2611 range_type to range_flag.
2612 * rust-lang.c (rust_evaluate_funcall): Likewise.
2613 (rust_range): Likewise.
2614 (rust_compute_range): Likewise.
2615 (rust_subscript): Likewise.
2616
2617 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * expprint.c (print_subexp_standard): Update to reflect changes to
2620 enum range_type.
2621 (dump_subexp_body_standard): Likewise.
2622 * expression.h (enum range_type): Convert to a bit field enum, and
2623 make the enum unsigned.
2624 * f-exp.y (subrange): Update to reflect changes to enum
2625 range_type.
2626 * f-lang.c (value_f90_subarray): Likewise.
2627 * parse.c (operator_length_standard): Likewise.
2628 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2629 * rust-lang.c (rust_range): Likewise.
2630 (rust_compute_range): Likewise.
2631 (rust_subscript): Likewise.
2632
2633 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2636 (displaced_step_in_progress): Fix comment.
2637
2638 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2641 * gdbarch.c: Re-generate.
2642 * gdbarch.h: Re-generate.
2643 * gcore.c (write_gcore_file_1): Adjust.
2644 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2645 constructor.
2646 <note_data>: Change type to unique pointer.
2647 <abort_iteration>: Change type to bool.
2648 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2649 (fbsd_collect_thread_registers): Return void, adjust.
2650 (struct fbsd_corefile_thread_data): Add construtor.
2651 <note_data>: Change type to unique pointer.
2652 (fbsd_corefile_thread): Adjust.
2653 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2654 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2655 to unique pointer, adjust.
2656 (struct linux_collect_regset_section_cb_data): Add constructor.
2657 <note_data>: Change type to unique pointer.
2658 <abort_iteration>: Change type to bool.
2659 (linux_collect_thread_registers): Return void, adjust.
2660 (struct linux_corefile_thread_data): Add constructor.
2661 <note_data>: Change type to unique pointer.
2662 (linux_corefile_thread): Adjust.
2663 (linux_make_corefile_notes): Return unique pointer, adjust.
2664
2665 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2668 * gdbarch.c: Re-generate.
2669 * gdbarch.h: Re-generate.
2670 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2671 bool.
2672 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2673 Likewise.
2674 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2675 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2676 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2677 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2678
2679 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2680
2681 * gdbarch.sh: Make generated predicates return bool.
2682 * gdbarch.c: Re-generate.
2683 * gdbarch.h: Re-generate.
2684
2685 2020-10-20 Tom Tromey <tom@tromey.com>
2686
2687 * varobj-iter.h (struct varobj_item): Remove typedef.
2688
2689 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * infrun.c (currently_stepping): Change int to bool
2692 (maybe_software_singlestep): Likewise.
2693 (show_stop_on_solib_events): Likewise.
2694 (stepping_past_nonsteppable_watchpoint): Likewise.
2695 (displaced_step_in_progress_any_inferior): Likewise.
2696 (displaced_step_in_progress_thread): Likewise.
2697 (keep_going_stepped_thread): Likewise.
2698 (thread_still_needs_step_over): Likewise.
2699 (start_step_over): Likewise.
2700 (do_target_resume): Likewise.
2701 (resume_1): Likewise.
2702 (clear_proceed_status): Likewise.
2703 (thread_still_needs_step_over_bp): Likewise.
2704 (proceed): Likewise.
2705 (switch_back_to_stepped_thread): Likewise.
2706 (adjust_pc_after_break): Likewise.
2707 (stepped_in_from): Likewise.
2708 (handle_stop_requested): Likewise.
2709 (handle_syscall_event): Likewise.
2710 (handle_no_resumed): Likewise.
2711 (handle_inferior_event): Likewise.
2712 (finish_step_over): Likewise.
2713 (handle_signal_stop): Likewise.
2714 (process_event_stop_test): Likewise.
2715
2716 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * infrun.c (get_displaced_stepping_state): Fix comment.
2719
2720 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2721
2722 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2723
2724 2020-10-19 Tom Tromey <tromey@adacore.com>
2725
2726 PR tui/26719
2727 * tui/tui-winsource.h (struct tui_source_window_base)
2728 <refresh_window>: Rename from refresh_pad.
2729 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2730 Rename from refresh_pad.
2731 (tui_source_window_base::show_source_content)
2732 (tui_source_window_base::do_scroll_horizontal): Update.
2733
2734 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2735
2736 * thread.c (_initialize_thread): Fine-tune the help text of
2737 'info threads'.
2738
2739 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740
2741 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2742
2743 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2744
2745 * breakpoint.c (handle_jit_event): Add an argument, change how
2746 `jit_event_handler` is called.
2747
2748 2020-10-17 Tom Tromey <tom@tromey.com>
2749
2750 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2751 (scan_xcoff_symtab): Update.
2752 * psymtab.h (class psymtab_storage) <global_psymbols,
2753 static_psymbols, current_global_psymbols,
2754 current_static_psymbols>: Remove.
2755 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2756 (match_partial_symbol, lookup_partial_symbol): Update.
2757 (print_partial_symbols): Change parameters.
2758 (dump_psymtab, recursively_search_psymtabs)
2759 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2760 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2761 (concat): Remove.
2762 (end_psymtab_common): Simplify.
2763 (append_psymbol_to_list): Change parameters.
2764 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2765 (init_psymbol_list): Simplify.
2766 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2767 * psympriv.h (struct partial_symtab) <empty>: New method.
2768 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2769 Remove.
2770 <global_psymbols, static_psymbols>: New members.
2771 <add_psymbol>: New methods.
2772 (add_psymbol_to_list): Don't declare.
2773 (psymbol_placement): Move earlier.
2774 * mdebugread.c (parse_partial_symbols): Update.
2775 (handle_psymbol_enumerators): Change parameters.
2776 (mdebug_expand_psymtab): Update.
2777 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2778 (add_partial_symbol): Update.
2779 * dwarf2/index-write.c (write_psymbols): Change parameters.
2780 (write_one_signatured_type): Update.
2781 (recursively_count_psymbols): Update.
2782 (recursively_write_psymbols): Update.
2783 (class debug_names) <recursively_write_psymbols>: Update.
2784 <write_psymbols>: Change parameters.
2785 <write_one_signatured_type>: Update.
2786 * dbxread.c (read_dbx_symtab): Update.
2787 (dbx_end_psymtab): Use partial_symtab::empty.
2788 * ctfread.c (struct ctf_context) <pst>: New member.
2789 (create_partial_symtab): Set it.
2790 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2791 (scan_partial_symbols): Use the psymtab's context. Update.
2792
2793 2020-10-17 Tom Tromey <tom@tromey.com>
2794
2795 * valprint.c (generic_value_print): Remove comment.
2796 * m2-valprint.c (m2_value_print_inner): Remove comment.
2797 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2798 type.
2799
2800 2020-10-17 Tom de Vries <tdevries@suse.de>
2801
2802 PR symtab/26317
2803 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2804 symbol main.
2805
2806 2020-10-14 Tom de Vries <tdevries@suse.de>
2807
2808 PR gdb/26733
2809 * solib.c (solib_contains_address_p): Handle
2810 'solib->sections == nullptr'.
2811
2812 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 PR gdb/26642
2815 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2816 target can't do async.
2817 * target.c (target_wait): Assert that we don't pass
2818 TARGET_WNOHANG to a target that can't async.
2819
2820 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2821
2822 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2823 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2824 * alpha-bsd-nat.c: Adjust include.
2825 * alpha-bsd-tdep.h: Adjust comment.
2826 * alpha-nbsd-tdep.c: Rename to ...
2827 * alpha-netbsd-tdep.c: ... this, adjust include.
2828 * amd64-nbsd-nat.c: Rename to ...
2829 * amd64-netbsd-nat.c: ... this, adjust include.
2830 * amd64-nbsd-tdep.c: Rename to ...
2831 * amd64-netbsd-tdep.c: ... this, adjust include.
2832 * amd64-tdep.h: Adjust include.
2833 * arm-nbsd-nat.c: Rename to ...
2834 * arm-netbsd-nat.c: ... this, adjust include.
2835 * arm-nbsd-tdep.c: Rename to ...
2836 * arm-netbsd-tdep.c: ... this, adjust include.
2837 * arm-nbsd-tdep.h: Rename to ...
2838 * arm-netbsd-tdep.h: ... this, adjust include.
2839 * configure.nat: Adjust file lists.
2840 * configure.tgt: Likewise.
2841 * hppa-nbsd-nat.c: Rename to ...
2842 * hppa-netbsd-nat.c: ... this, adjust include.
2843 * hppa-nbsd-tdep.c: Rename to ...
2844 * hppa-netbsd-tdep.c: ... this, adjust include.
2845 * i386-nbsd-nat.c: Rename to ...
2846 * i386-netbsd-nat.c: ... this, adjust include.
2847 * i386-nbsd-tdep.c: Rename to ...
2848 * i386-netbsd-tdep.c: ... this, adjust include.
2849 * m68k-bsd-nat.c: Adjust include.
2850 * mips-nbsd-nat.c: Rename to ...
2851 * mips-netbsd-nat.c: ... this, adjust include.
2852 * mips-nbsd-tdep.c: Rename to ...
2853 * mips-netbsd-tdep.c: ... this, adjust include.
2854 * mips-nbsd-tdep.h: Rename to ...
2855 * mips-netbsd-tdep.h: ... this.
2856 * nbsd-nat.c: Rename to ...
2857 * netbsd-nat.c: ... this, adjust include.
2858 * nbsd-nat.h: Rename to ...
2859 * netbsd-nat.h: ... this, adjust include.
2860 * nbsd-tdep.c: Rename to ...
2861 * netbsd-tdep.c: ... this, adjust include.
2862 * nbsd-tdep.h: Rename to ...
2863 * netbsd-tdep.h: ... this.
2864 * ppc-nbsd-nat.c: Rename to ...
2865 * ppc-netbsd-nat.c: ... this, adjust include.
2866 * ppc-nbsd-tdep.c: Rename to ...
2867 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2868 * ppc-nbsd-tdep.h: Rename to ...
2869 * ppc-netbsd-tdep.h: ... this.
2870 * sh-nbsd-nat.c: Rename to ...
2871 * sh-netbsd-nat.c: ... this, adjust include.
2872 * sh-nbsd-tdep.c: Rename to ...
2873 * sh-netbsd-tdep.c: ... this, adjust include.
2874 * sparc-nbsd-nat.c: Rename to ...
2875 * sparc-netbsd-nat.c: ... this.
2876 * sparc-nbsd-tdep.c: Rename to ...
2877 * sparc-netbsd-tdep.c: ... this, adjust include.
2878 * sparc64-nbsd-nat.c: Rename to ...
2879 * sparc64-netbsd-nat.c: ... this.
2880 * sparc64-nbsd-tdep.c: Rename to ...
2881 * sparc64-netbsd-tdep.c: ... this, adjust include.
2882 * sparc64-tdep.h: Adjust comment.
2883 * vax-bsd-nat.c: Adjust include.
2884 * vax-nbsd-tdep.c: Rename to ...
2885 * vax-netbsd-tdep.c: ... this, adjust include.
2886
2887 2020-10-12 Tom Tromey <tom@tromey.com>
2888
2889 * target.h (struct target_ops) <get_section_table>: Update.
2890 (target_get_section_table): Update.
2891 * target.c (target_get_section_table, target_section_by_addr)
2892 (memory_xfer_partial_1): Update.
2893 * target-section.h (target_section_table): Now an alias.
2894 * target-delegates.c: Rebuild.
2895 * target-debug.h (target_debug_print_target_section_table_p):
2896 Rename from target_debug_print_struct_target_section_table_p.
2897 * symfile.c (build_section_addr_info_from_section_table): Update.
2898 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2899 * solib-svr4.c (scan_dyntag): Update.
2900 * solib-dsbt.c (scan_dyntag): Update.
2901 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2902 Update.
2903 * record-full.c (record_full_core_target::xfer_partial): Update.
2904 * progspace.h (struct program_space) <target_sections>: Update.
2905 * exec.h (print_section_info): Update.
2906 * exec.c (exec_target::close, build_section_table)
2907 (add_target_sections, add_target_sections_of_objfile)
2908 (remove_target_sections, exec_on_vfork)
2909 (section_table_available_memory)
2910 (section_table_xfer_memory_partial)
2911 (exec_target::get_section_table, exec_target::xfer_partial)
2912 (print_section_info, set_section_command)
2913 (exec_set_section_address, exec_target::has_memory): Update.
2914 * corelow.c (core_target::build_file_mappings)
2915 (core_target::xfer_partial, core_target::info_proc_mappings)
2916 (core_target::info_proc_mappings): Update.
2917 * bfd-target.c (class target_bfd): Update
2918
2919 2020-10-12 Tom Tromey <tom@tromey.com>
2920
2921 * progspace.c (program_space::~program_space): Don't call
2922 clear_section_table.
2923 * exec.h (clear_section_table): Don't declare.
2924 * exec.c (exec_target::close): Update.
2925 (clear_section_table): Remove.
2926
2927 2020-10-12 Tom Tromey <tom@tromey.com>
2928
2929 * exec.c (add_target_sections_of_objfile): Simplify.
2930
2931 2020-10-12 Tom Tromey <tom@tromey.com>
2932
2933 * solib.c (solib_map_sections): Update.
2934 * record-full.c (record_full_core_open_1): Update.
2935 * exec.h (build_section_table): Return a target_section_table.
2936 * exec.c (exec_file_attach): Update.
2937 (build_section_table): Return a target_section_table.
2938 * corelow.c (core_target::core_target): Update.
2939 * bfd-target.c (target_bfd::target_bfd): Update.
2940
2941 2020-10-12 Tom Tromey <tom@tromey.com>
2942
2943 * target.c (target_section_by_addr, memory_xfer_partial_1):
2944 Update.
2945 * target-section.h (struct target_section_table): Use
2946 std::vector.
2947 * symfile.h (build_section_addr_info_from_section_table): Take a
2948 target_section_table.
2949 * symfile.c (build_section_addr_info_from_section_table): Take a
2950 target_section_table.
2951 * solist.h (struct so_list) <sections>: Change type.
2952 <sections_end>: Remove.
2953 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2954 (solib_contains_address_p): Update.
2955 * solib-svr4.c (scan_dyntag): Update.
2956 * solib-dsbt.c (scan_dyntag): Update.
2957 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2958 Update.
2959 * record-full.c (record_full_core_start, record_full_core_end):
2960 Remove.
2961 (record_full_core_sections): New global.
2962 (record_full_core_open_1, record_full_core_target::xfer_partial):
2963 Update.
2964 * exec.h (build_section_table, section_table_xfer_memory_partial)
2965 (add_target_sections): Take a target_section_table.
2966 * exec.c (exec_file_attach, clear_section_table): Update.
2967 (resize_section_table): Remove.
2968 (build_section_table, add_target_sections): Take a
2969 target_section_table.
2970 (add_target_sections_of_objfile, remove_target_sections)
2971 (exec_on_vfork): Update.
2972 (section_table_available_memory): Take a target_section_table.
2973 (section_table_read_available_memory): Update.
2974 (section_table_xfer_memory_partial): Take a target_section_table.
2975 (print_section_info, set_section_command)
2976 (exec_set_section_address, exec_target::has_memory): Update.
2977 * corelow.c (class core_target) <m_core_section_table,
2978 m_core_file_mappings>: Remove braces.
2979 <~core_target>: Remove.
2980 (core_target::core_target): Update.
2981 (core_target::~core_target): Remove.
2982 (core_target::build_file_mappings)
2983 (core_target::xfer_memory_via_mappings)
2984 (core_target::xfer_partial, core_target::info_proc_mappings):
2985 Update.
2986 * bfd-target.c (target_bfd::xfer_partial): Update.
2987 (target_bfd::target_bfd): Update.
2988 (target_bfd::~target_bfd): Remove.
2989
2990 2020-10-12 Tom Tromey <tom@tromey.com>
2991
2992 * target.h (struct target_section, struct target_section_table):
2993 Move to target-section.h.
2994 * target-section.h: New file.
2995
2996 2020-10-12 Pedro Alves <pedro@palves.net>
2997
2998 PR exp/26602
2999 * valops.c (struct struct_field_searcher): New.
3000 (update_search_result): Rename to ...
3001 (struct_field_searcher::update_result): ... this. Simplify
3002 prototype. Record all found fields.
3003 (do_search_struct_field): Rename to ...
3004 (struct_field_searcher::search): ... this. Simplify prototype.
3005 Maintain stack of visited baseclass path. Call update_result for
3006 fields too. Keep searching fields in baseclasses instead of
3007 stopping at the first found field.
3008 (search_struct_field): Use struct_field_searcher. When looking
3009 for fields, report ambiguous access attempts.
3010
3011 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * frame.c (inside_main_func): Check full symbols as well as
3014 minimal symbols.
3015
3016 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3017
3018 * ada-lang.c (advance_wild_match): Rewrite the function's
3019 description. Change the type of target0, t0 and t1 to char.
3020
3021 2020-10-09 Tom Tromey <tromey@adacore.com>
3022
3023 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3024
3025 2020-10-09 Tom Tromey <tromey@adacore.com>
3026
3027 * ada-lang.h (ada_encode): Return std::string.
3028 * ada-lang.c (ada_encode_1): Return std::string.
3029 (ada_encode): Likewise.
3030 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3031 Update.
3032 * ada-exp.y (block_lookup, write_var_or_type): Update.
3033
3034 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3035
3036 PR exp/26714
3037 * printcmd.c (print_formatted): Handle void results as
3038 unformatted prints.
3039
3040 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * arch/aarch32.c (aarch32_create_target_description): Release the
3043 target_desc_up as late as possible.
3044 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3045 * arch/amd64.c (amd64_create_target_description): Likewise.
3046 * arch/arc.c (arc_create_target_description): Return a
3047 target_desc_up, don't release it.
3048 * arch/arc.h (arc_create_target_description): Update declaration.
3049 (arc_lookup_target_description): Move target_desc_up into the
3050 cache, and return a borrowed pointer.
3051 * arch/arm.c (arm_create_target_description): Release the
3052 target_desc_up as late as possible.
3053 * arch/i386.c (i386_create_target_description): Likewise.
3054 * arch/riscv.h (riscv_create_target_description): Update
3055 declaration to match definition.
3056 * arch/tic6x.c (tic6x_create_target_description): Release the
3057 target_desc_up as late as possible.
3058
3059 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3062 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3063
3064 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3065
3066 * source.c (directory_command): Notify observers that "directories"
3067 parameter has changed.
3068
3069 2020-10-08 Tom Tromey <tom@tromey.com>
3070
3071 * cli/cli-cmds.c (print_disassembly): Style function name and
3072 addresses. Add _() wrappers.
3073
3074 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3075
3076 * NEWS: Mention ARC support in GDBserver.
3077
3078 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3079
3080 * arch/aarch32.c (aarch32_create_target_description): Release
3081 unique_ptr returned from allocate_target_description.
3082 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3083 * arch/amd64.c (amd64_create_target_description): Likewise.
3084 * arch/arc.c (arc_create_target_description): Likewise.
3085 * arch/arm.c (arm_create_target_description): Likewise.
3086 * arch/i386.c (i386_create_target_description): Likewise.
3087 * arch/riscv.c (riscv_create_target_description): Update return
3088 type. Handle allocate_target_description returning a unique_ptr.
3089 (riscv_lookup_target_description): Update to handle unique_ptr.
3090 * arch/tic6x.c (tic6x_create_target_description): Release
3091 unique_ptr returned from allocate_target_description.
3092 * features/microblaze-with-stack-protect.c: Regenerate.
3093 * features/microblaze.c: Regenerate.
3094 * features/mips-dsp-linux.c: Regenerate.
3095 * features/mips-linux.c: Regenerate.
3096 * features/mips64-dsp-linux.c: Regenerate.
3097 * features/mips64-linux.c: Regenerate.
3098 * features/nds32.c: Regenerate.
3099 * features/nios2.c: Regenerate.
3100 * features/or1k.c: Regenerate.
3101 * features/rs6000/powerpc-32.c: Regenerate.
3102 * features/rs6000/powerpc-32l.c: Regenerate.
3103 * features/rs6000/powerpc-403.c: Regenerate.
3104 * features/rs6000/powerpc-403gc.c: Regenerate.
3105 * features/rs6000/powerpc-405.c: Regenerate.
3106 * features/rs6000/powerpc-505.c: Regenerate.
3107 * features/rs6000/powerpc-601.c: Regenerate.
3108 * features/rs6000/powerpc-602.c: Regenerate.
3109 * features/rs6000/powerpc-603.c: Regenerate.
3110 * features/rs6000/powerpc-604.c: Regenerate.
3111 * features/rs6000/powerpc-64.c: Regenerate.
3112 * features/rs6000/powerpc-64l.c: Regenerate.
3113 * features/rs6000/powerpc-7400.c: Regenerate.
3114 * features/rs6000/powerpc-750.c: Regenerate.
3115 * features/rs6000/powerpc-860.c: Regenerate.
3116 * features/rs6000/powerpc-altivec32.c: Regenerate.
3117 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3118 * features/rs6000/powerpc-altivec64.c: Regenerate.
3119 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3120 * features/rs6000/powerpc-e500.c: Regenerate.
3121 * features/rs6000/powerpc-e500l.c: Regenerate.
3122 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3123 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3124 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3125 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3126 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3127 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3128 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3129 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3130 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3131 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3132 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3133 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3134 * features/rs6000/powerpc-vsx32.c: Regenerate.
3135 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3136 * features/rs6000/powerpc-vsx64.c: Regenerate.
3137 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3138 * features/rs6000/rs6000.c: Regenerate.
3139 * features/rx.c: Regenerate.
3140 * features/s390-gs-linux64.c: Regenerate.
3141 * features/s390-linux32.c: Regenerate.
3142 * features/s390-linux32v1.c: Regenerate.
3143 * features/s390-linux32v2.c: Regenerate.
3144 * features/s390-linux64.c: Regenerate.
3145 * features/s390-linux64v1.c: Regenerate.
3146 * features/s390-linux64v2.c: Regenerate.
3147 * features/s390-te-linux64.c: Regenerate.
3148 * features/s390-tevx-linux64.c: Regenerate.
3149 * features/s390-vx-linux64.c: Regenerate.
3150 * features/s390x-gs-linux64.c: Regenerate.
3151 * features/s390x-linux64.c: Regenerate.
3152 * features/s390x-linux64v1.c: Regenerate.
3153 * features/s390x-linux64v2.c: Regenerate.
3154 * features/s390x-te-linux64.c: Regenerate.
3155 * features/s390x-tevx-linux64.c: Regenerate.
3156 * features/s390x-vx-linux64.c: Regenerate.
3157 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3158 from allocate_target_description.
3159 * target-descriptions.c (allocate_target_description): Update
3160 return type.
3161 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3162 allocate_target_description.
3163
3164 2020-10-07 Tom Tromey <tromey@adacore.com>
3165
3166 * unittests/search-memory-selftests.c: New file.
3167 * Makefile.in (SELFTESTS_SRCS): Add
3168 unittests/search-memory-selftests.c.
3169
3170 2020-10-07 Tom Tromey <tromey@adacore.com>
3171
3172 PR gdb/16930:
3173 * findcmd.c (_initialize_mem_search): Mention that the range is
3174 inclusive.
3175
3176 2020-10-07 Tom Tromey <tromey@adacore.com>
3177
3178 * target.h (simple_search_memory): Don't declare.
3179 * target.c (simple_search_memory): Move to gdbsupport.
3180 (default_search_memory): Update.
3181 * remote.c (remote_target::search_memory): Update.
3182
3183 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * Makefile.in (COMPILE): Add CXXFLAGS.
3186 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3187 (check-headers): Add CXXFLAGS.
3188
3189 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3190
3191 * arc-linux-tdep.h: New file.
3192 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3193 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3194 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3195 arc_linux_gregset, arc_linux_v2_regset,
3196 arc_linux_iterate_over_regset_sections,
3197 arc_linux_core_read_description): Implement.
3198 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3199 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3200 (arc_gdbarch_features_create): Add.
3201 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3202
3203 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3204
3205 * arch/arc.h: Rename "arc_gdbarch_features" to
3206 "arc_arch_features".
3207 * arc-tdep.h: Likewise.
3208 * arc-tdep.c: Likewise.
3209
3210 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3211
3212 * infcmd.c (attach_command): Remove the redundant call to
3213 `clear_proceed_status`.
3214
3215 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3216
3217 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3218
3219 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3220
3221 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3222 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3223 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3224
3225 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3228 (_initialize_break_catch_sig): Don't allocate array.
3229
3230 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * symtab.c (find_pc_line): Return unmapped addresses when the
3233 requested address is also unmapped.
3234
3235 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3238 tui/tui-out.h.
3239
3240 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3241
3242 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3243 type::is_vector instead of TYPE_VECTOR.
3244
3245 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * auto-load.c (auto_load_objfile_script_1): Don't use
3248 debugfile_holder as temporary variable when stripping drive
3249 letter.
3250
3251 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3252
3253 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3254 Add TYPE_CODE_COMPLEX.
3255 (amd64_windows_return_value): Fix types returned via XMM0.
3256
3257 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3258
3259 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3260 AArch64/ARM maintainers.
3261
3262 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * NEWS: Mention set/show debug event-loop.
3265
3266 2020-10-02 Tom Tromey <tromey@adacore.com>
3267
3268 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3269 REG_EXTENDED.
3270
3271 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3274 * procfs.c (procfs_inferior_created): Remove.
3275 (_initialize_procfs): Don't register procfs_inferior_created.
3276
3277 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * async-event.c (invoke_async_signal_handlers): Add debug
3280 print.
3281 (check_async_event_handlers): Likewise.
3282 * event-top.c (show_debug_event_loop): New function.
3283 (_initialize_event_top): Register "set debug event-loop"
3284 setting.
3285
3286 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3289 * debug.h: Remove.
3290 * infrun.c: Include gdbsupport/common-debug.h.
3291 * linux-nat.c: Likewise.
3292
3293 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * async-event.h (create_async_signal_handler): Add name
3296 parameter.
3297 (create_async_event_handler): Likewise.
3298 * async-event.c (struct async_signal_handler) <name>: New field.
3299 (struct async_event_handler) <name>: New field.
3300 (create_async_signal_handler): Assign name.
3301 (create_async_event_handler): Assign name.
3302 * event-top.c (async_init_signals): Pass name when creating
3303 handler.
3304 * infrun.c (_initialize_infrun): Likewise.
3305 * record-btrace.c (record_btrace_push_target): Likewise.
3306 * record-full.c (record_full_open): Likewise.
3307 * remote-notif.c (remote_notif_state_allocate): Likewise.
3308 * remote.c (remote_target::open_1): Likewise.
3309 * tui/tui-win.c (tui_initialize_win): Likewise.
3310
3311 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * async-event.c (initialize_async_signal_handlers): Pass name to
3314 add_file_handler
3315 * event-top.c (ui_register_input_event_handler): Likewise.
3316 * linux-nat.c (linux_nat_target::async): Likewise.
3317 * run-on-main-thread.c (_initialize_run_on_main_thread):
3318 Likewise
3319 * ser-base.c (reschedule): Likewise.
3320 (ser_base_async): Likewise.
3321 * tui/tui-io.c: Likewise.
3322 * top.h (struct ui) <num>: New field.
3323 * top.c (highest_ui_num): New variable.
3324 (ui::ui): Initialize num.
3325
3326 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * observable.h <inferior_created>: Remove parameters. Update all
3329 listeners.
3330 * inferior.h (post_create_inferior): Remove target parameter.
3331 Update all callers.
3332
3333 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3334
3335 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3336 and DW_MACRO_undef_strx.
3337 (dwarf_decode_macros): Likewise
3338 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3339 which is the value of DW_AT_str_offsets_base.
3340 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3341 str_offsets_base.
3342
3343 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3344
3345 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3346
3347 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3348
3349 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3350 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3351
3352 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3353
3354 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3355
3356 2020-09-30 Tom de Vries <tdevries@suse.de>
3357
3358 PR symtab/26683
3359 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3360
3361 2020-09-30 Tom Tromey <tromey@adacore.com>
3362
3363 * dwarf2/read.c (handle_variant): Use constant_value.
3364
3365 2020-09-29 Tom Tromey <tom@tromey.com>
3366
3367 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3368 (read_file_scope, dwarf2_get_pc_bounds)
3369 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3370 (read_structure_type, handle_struct_member_die)
3371 (read_enumeration_type, read_array_type, read_set_type)
3372 (read_tag_pointer_type, read_tag_reference_type)
3373 (read_subroutine_type, read_base_type, read_subrange_type)
3374 (read_full_die_1, partial_die_info::read)
3375 (partial_die_info::read, by, new_symbol)
3376 (dwarf2_const_value_data, dwarf2_const_value_attr)
3377 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3378 (prepare_one_comp_unit): Update.
3379 * dwarf2/attribute.h (DW_UNSND): Remove.
3380
3381 2020-09-29 Tom Tromey <tom@tromey.com>
3382
3383 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3384 (read_subroutine_type, partial_die_info::read)
3385 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3386 (dwarf2_add_member_fn): Update.
3387 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3388 * dwarf2/attribute.c (attribute::as_boolean): New method.
3389
3390 2020-09-29 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3393 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3394 method.
3395 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3396
3397 2020-09-29 Tom Tromey <tom@tromey.com>
3398
3399 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3400 the attribute's form.
3401
3402 2020-09-29 Tom Tromey <tom@tromey.com>
3403
3404 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3405 (dwarf2_add_member_fn): Update.
3406 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3407 * dwarf2/attribute.c (attribute::defaulted): New method, from
3408 is_valid_DW_AT_defaulted.
3409
3410 2020-09-29 Tom Tromey <tom@tromey.com>
3411
3412 * dwarf2/read.c (dw2_get_file_names_reader)
3413 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3414 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3415 (dwarf2_symbol_mark_computed): Use as_unsigned.
3416 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3417 method.
3418 <form_is_section_offset>: Update comment.
3419
3420 2020-09-29 Tom Tromey <tom@tromey.com>
3421
3422 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3423 dwarf2_default_access_attribute. Look up attribute.
3424 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3425 Update.
3426
3427 2020-09-29 Tom Tromey <tom@tromey.com>
3428
3429 * dwarf2/read.c (skip_one_die): Update.
3430 (read_full_die_1): Change how reprocessing is done.
3431 (partial_die_info::read): Update.
3432 (read_attribute_value): Remove need_reprocess parameter.
3433 (read_attribute): Likewise.
3434 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3435 New method.
3436
3437 2020-09-29 Tom Tromey <tom@tromey.com>
3438
3439 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3440 (dwarf2_const_value_attr, dump_die_shallow)
3441 (dwarf2_fetch_constant_bytes): Update.
3442 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3443 comment.
3444 <set_address>: New method.
3445 (DW_ADDR): Remove.
3446 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3447 (attribute::as_string, attribute::as_address): Add assert.
3448
3449 2020-09-29 Tom Tromey <tom@tromey.com>
3450
3451 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3452 (read_attribute_reprocess, read_attribute_value): Update.
3453 (read_attribute): Clear requires_reprocessing.
3454 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3455 form_requires_reprocessing>: New methods.
3456 <string_init>: Clear requires_reprocessing.
3457 <set_unsigned_reprocess>: New method.
3458 <name>: Shrink by one bit.
3459 <requires_reprocessing>: New member.
3460 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3461 method.
3462
3463 2020-09-29 Tom Tromey <tom@tromey.com>
3464
3465 * dwarf2/read.c (read_attribute_value): Update.
3466 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3467 set_unsigned>: New methods.
3468 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3469
3470 2020-09-29 Tom Tromey <tom@tromey.com>
3471
3472 * dwarf2/read.c (get_alignment, read_array_order)
3473 (read_attribute_value, dwarf2_const_value_attr)
3474 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3475 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3476 New methods.
3477 (DW_SND): Remove.
3478
3479 2020-09-29 Tom Tromey <tom@tromey.com>
3480
3481 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3482 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3483 Update.
3484 * dwarf2/attribute.h (struct attribute) <as_signature,
3485 set_signature>: New methods.
3486 (DW_SIGNATURE): Remove.
3487
3488 2020-09-29 Tom Tromey <tom@tromey.com>
3489
3490 * dwarf2/read.c (read_call_site_scope)
3491 (handle_data_member_location, dwarf2_add_member_fn)
3492 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3493 (partial_die_info::read, read_attribute_value)
3494 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3495 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3496 (dwarf2_symbol_mark_computed): Update.
3497 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3498 methods.
3499 (DW_BLOCK): Remove.
3500 * dwarf2/attribute.c (attribute::form_is_block): Add
3501 DW_FORM_data16.
3502
3503 2020-09-29 Tom Tromey <tom@tromey.com>
3504
3505 * dwarf2/read.c (read_cutu_die_from_dwo)
3506 (read_attribute_reprocess, read_attribute_value, read_attribute)
3507 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3508 (dwarf2_fetch_constant_bytes): Update.
3509 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3510 <set_string_noncanonical, set_string_canonical>: New methods.
3511 <string_is_canonical>: Update comment.
3512 <canonical_string_p>: Add assert.
3513 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3514 * dwarf2/attribute.c (attribute::form_is_string): New method.
3515 (attribute::string): Use it.
3516
3517 2020-09-29 Tom Tromey <tom@tromey.com>
3518
3519 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3520 (dump_die_shallow): Use canonical_string_p.
3521 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3522 method.
3523
3524 2020-09-29 Tom Tromey <tom@tromey.com>
3525
3526 * dwarf2/read.c (partial_die_info::read)
3527 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3528 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3529 attribute::as_string.
3530
3531 2020-09-29 Tom Tromey <tom@tromey.com>
3532
3533 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3534 DW_ADDR.
3535 (attribute::string): Don't use DW_STRING.
3536 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3537 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3538
3539 2020-09-29 Tom Tromey <tom@tromey.com>
3540
3541 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3542 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3543 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3544 * dwarf2/attribute.h (struct attribute): Rename methods.
3545 * dwarf2/attribute.c (attribute::as_address): Rename from
3546 value_as_address.
3547 (attribute::as_string): Rename from value_as_string.
3548
3549 2020-09-29 Tom Tromey <tom@tromey.com>
3550
3551 * dwarf2/read.c (partial_die_info::read) <case
3552 DW_AT_linkage_name>: Use value_as_string.
3553 (dwarf2_string_attr): Use value_as_string.
3554 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3555 method.
3556 * dwarf2/attribute.c (attribute::value_as_string): New method.
3557
3558 2020-09-29 Pedro Alves <pedro@palves.net>
3559
3560 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3561 defined before using '#pragma GCC diagnostic' instead of checking
3562 __clang__.
3563
3564 2020-09-28 Tom Tromey <tom@tromey.com>
3565
3566 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3567 (handle_signal_stop): Update.
3568 * procfs.c (procfs_target::insert_watchpoint): Update.
3569 * target.h (target_have_steppable_watchpoint): Now a function.
3570
3571 2020-09-28 Tom Tromey <tom@tromey.com>
3572
3573 * infrun.c (set_schedlock_func): Update.
3574 * target.h (target_can_lock_scheduler): Now a function.
3575
3576 2020-09-28 Tom Tromey <tom@tromey.com>
3577
3578 * inferior.h (class inferior) <has_execution>: Update.
3579 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3580 * valops.c (find_function_in_inferior)
3581 (value_allocate_space_in_inferior): Update.
3582 * top.c (kill_or_detach): Update.
3583 * target.c (target_preopen, set_target_permissions): Update.
3584 (target_has_execution_current): Remove.
3585 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3586 Update.
3587 * solib.c (update_solib_list, reload_shared_libraries): Update.
3588 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3589 * solib-dsbt.c (enable_break): Update.
3590 * score-tdep.c (score7_fetch_inst): Update.
3591 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3592 Update.
3593 * remote.c (remote_target::start_remote)
3594 (remote_target::remote_check_symbols, remote_target::open_1)
3595 (remote_target::remote_detach_1, remote_target::verify_memory)
3596 (remote_target::xfer_partial, remote_target::read_description)
3597 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3598 * record-full.c (record_full_open_1): Update.
3599 * record-btrace.c (record_btrace_target_open): Update.
3600 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3601 (value_nsstring): Update.
3602 * linux-thread-db.c (add_thread_db_info)
3603 (thread_db_find_new_threads_silently, check_thread_db_callback)
3604 (try_thread_db_load_1, record_thread): Update.
3605 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3606 Update.
3607 * linux-fork.c (checkpoint_command): Update.
3608 * infrun.c (set_non_stop, set_observer_mode)
3609 (check_multi_target_resumption, for_each_just_stopped_thread)
3610 (maybe_remove_breakpoints, normal_stop)
3611 (class infcall_suspend_state): Update.
3612 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3613 (info_program_command, attach_command): Update.
3614 * infcall.c (call_function_by_hand_dummy): Update.
3615 * inf-loop.c (inferior_event_handler): Update.
3616 * gcore.c (gcore_command, derive_heap_segment): Update.
3617 * exec.c (exec_file_command): Update.
3618 * eval.c (evaluate_subexp): Update.
3619 * compile/compile.c (compile_to_object): Update.
3620 * cli/cli-dump.c (restore_command): Update.
3621 * breakpoint.c (update_watchpoint)
3622 (update_inserted_breakpoint_locations)
3623 (insert_breakpoint_locations, get_bpstat_thread): Update.
3624 * target.h (target_has_execution): Remove macro.
3625 (target_has_execution_current): Don't declare.
3626 (target_has_execution): Rename from target_has_execution_1. Add
3627 argument default.
3628
3629 2020-09-28 Tom Tromey <tom@tromey.com>
3630
3631 * mi/mi-main.c (exec_reverse_continue)
3632 (mi_cmd_list_target_features): Update.
3633 * infrun.c (set_exec_direction_func): Update.
3634 * target.c (default_execution_direction): Update.
3635 * reverse.c (exec_reverse_once): Update.
3636 * target.h (target_can_execute_reverse): Now a function.
3637
3638 2020-09-28 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-regs.c (tui_get_register)
3641 (tui_data_window::show_registers): Update.
3642 * thread.c (scoped_restore_current_thread::restore)
3643 (scoped_restore_current_thread::scoped_restore_current_thread):
3644 Update.
3645 * regcache-dump.c (regcache_print): Update.
3646 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3647 Update.
3648 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3649 * mep-tdep.c (current_me_module, current_options): Update.
3650 * linux-thread-db.c (thread_db_load): Update.
3651 * infcmd.c (registers_info, info_vector_command)
3652 (info_float_command): Update.
3653 * ia64-tdep.c (ia64_frame_prev_register)
3654 (ia64_sigtramp_frame_prev_register): Update.
3655 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3656 * gcore.c (derive_stack_segment): Update.
3657 * frame.c (get_current_frame, has_stack_frames): Update.
3658 * findvar.c (language_defn::read_var_value): Update.
3659 * arm-tdep.c (arm_pc_is_thumb): Update.
3660 * target.c (target_has_registers): Rename from
3661 target_has_registers_1.
3662 * target.h (target_has_registers): Remove macro.
3663 (target_has_registers): Rename from target_has_registers_1.
3664
3665 2020-09-28 Tom Tromey <tom@tromey.com>
3666
3667 * windows-tdep.c (tlb_make_value): Update.
3668 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3669 * thread.c (scoped_restore_current_thread::restore)
3670 (scoped_restore_current_thread::scoped_restore_current_thread)
3671 (thread_command): Update.
3672 * stack.c (backtrace_command_1, frame_apply_level_command)
3673 (frame_apply_all_command, frame_apply_command): Update.
3674 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3675 Update.
3676 * gcore.c (derive_stack_segment): Update.
3677 * frame.c (get_current_frame, has_stack_frames): Update.
3678 * auxv.c (info_auxv_command): Update.
3679 * ada-tasks.c (ada_build_task_list): Update.
3680 * target.c (target_has_stack): Rename from target_has_stack_1.
3681 * target.h (target_has_stack): Remove macro.
3682 (target_has_stack): Rename from target_has_stack_1.
3683
3684 2020-09-28 Tom Tromey <tom@tromey.com>
3685
3686 * target.c (target_has_memory): Rename from target_has_memory_1.
3687 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3688 * thread.c (scoped_restore_current_thread::restore)
3689 (scoped_restore_current_thread::scoped_restore_current_thread):
3690 Update.
3691 * frame.c (get_current_frame, has_stack_frames): Update.
3692 * target.h (target_has_memory): Remove macro.
3693 (target_has_memory): Rename from target_has_memory_1.
3694
3695 2020-09-28 Tom Tromey <tom@tromey.com>
3696
3697 * target.c (target_has_all_memory_1): Remove.
3698 * target.h (target_has_all_memory): Remove define.
3699 (target_has_all_memory_1): Don't declare.
3700
3701 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3702
3703 * ser-base.c: Adjust comments formatting.
3704
3705 2020-09-27 Tom Tromey <tom@tromey.com>
3706
3707 PR tui/25342:
3708 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3709
3710 2020-09-27 Tom Tromey <tom@tromey.com>
3711
3712 PR tui/25342:
3713 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3714
3715 2020-09-27 Tom Tromey <tom@tromey.com>
3716
3717 * unittests/tui-selftests.c: Update.
3718 * tui/tui-winsource.h (struct tui_source_window_base)
3719 <extra_margin, show_line_number, refresh_pad>: New methods.
3720 <m_max_length, m_pad>: New members.
3721 (tui_copy_source_line): Update.
3722 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3723 first_col, line_width, ndigits parameters. Add length.
3724 (tui_source_window_base::show_source_line): Write to pad. Line
3725 number now 0-based.
3726 (tui_source_window_base::refresh_pad): New method.
3727 (tui_source_window_base::show_source_content): Write to pad. Call
3728 refresh_pad.
3729 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3730 not refill.
3731 (tui_source_window_base::update_exec_info): Call
3732 show_line_number.
3733 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3734 method.
3735 <m_digits>: New member.
3736 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3737 and m_max_length.
3738 (tui_source_window::show_line_number): New method.
3739 * tui/tui-io.h (tui_puts): Fix comment.
3740 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3741 m_max_length.
3742
3743 2020-09-27 Tom Tromey <tom@tromey.com>
3744
3745 * tui/tui-winsource.c
3746 (tui_source_window_base::set_is_exec_point_at): Don't call
3747 show_source_line.
3748
3749 2020-09-27 Tom Tromey <tom@tromey.com>
3750
3751 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3752 method.
3753 <erase>: Update.
3754 <cursor_x, cursor_y>: Remove.
3755 <m_inner_window>: New member.
3756 (tui_py_window::rerender): Create inner window.
3757 (tui_py_window::output): Write to inner window.
3758
3759 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3760
3761 PR python/26586
3762 * cli/cli-script.c (execute_control_commands): don't set
3763 instream to nullptr here as this breaks the from_tty argument
3764 to gdb.execute in Python.
3765 (execute_user_command): set instream to nullptr here instead.
3766
3767 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * infrun.h (infrun_debug_printf): Fix formatting.
3770 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3771
3772 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3773
3774 * compile/compile-object-load.h (struct munmap_list): Add
3775 explicitly-defined move constructor.
3776
3777 2020-09-24 Tom Tromey <tromey@adacore.com>
3778
3779 PR tui/26638:
3780 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3781 method.
3782 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3783 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3784 (tui_prev_win): Rewrite.
3785
3786 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3787
3788 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3789 in WOW64 processes as SIGINT.
3790 * nat/windows-nat.h: Make wow64_process a shared variable.
3791 * windows-nat.c: Remove static wow64_process variable.
3792
3793 2020-09-23 Tom Tromey <tom@tromey.com>
3794
3795 PR symtab/25470:
3796 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3797 offset and bit size.
3798 * printcmd.c (print_scalar_formatted): Handle zero-length
3799 integer.
3800 (print_scalar_formatted): Use bit_size_differs_p.
3801 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3802 constant.
3803 (union type_specific): <int_stuff>: New member.
3804 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3805 methods.
3806 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3807 TYPE_SPECIFIC_FIELD.
3808 (recursive_dump_type, copy_type_recursive): Update.
3809 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3810 DW_AT_data_bit_offset.
3811
3812 2020-09-23 Tom Tromey <tom@tromey.com>
3813
3814 * utils.h (class gdb_argv): Add move operators.
3815 <append>: New methods.
3816 * compile/compile.c (build_argc_argv): Remove.
3817 (compile_args_argc): Remove.
3818 (compile_args_argv): Change type.
3819 (set_compile_args): Simplify.
3820 (append_args): Remove.
3821 (filter_args): Remove argcp parameter.
3822 (get_args): Return gdb_argv. Simplify.
3823 (compile_to_object): Update.
3824
3825 2020-09-23 Tom Tromey <tom@tromey.com>
3826
3827 * compile/compile-object-run.c (do_module_cleanup)
3828 <~do_module_cleanup> :Remove.
3829 (do_module_cleanup): Update.
3830 * compile/compile-object-load.h (struct munmap_list): Add move
3831 assignment operator.
3832 <source_file>: Now a std::string.
3833 <munmap_list>: Rename. No longer a pointer.
3834 * compile/compile-object-load.c (struct setup_sections_data): Add
3835 constructor.
3836 <setup_one_section>: Declare.
3837 <munmap_list>: Move earlier.
3838 <m_bfd>: New member.
3839 <m_last_size, m_last_section_first, m_last_prot,
3840 m_last_max_alignment>: Rename, add initializers where needed.
3841 (setup_sections_data::setup_one_section): Rename from
3842 setup_sections. Update.
3843 (compile_object_load): Update. Don't use bfd_map_over_sections.
3844
3845 2020-09-23 Tom Tromey <tom@tromey.com>
3846
3847 * compile/compile-object-run.c (struct do_module_cleanup): Add
3848 parameters to constructor. Update destructor.
3849 <source_file, scope, scope_data, out_value_type, out_value_addr,
3850 munmap_list_head, objfile_name_string>: Remove.
3851 <module>: New member.
3852 (do_module_cleanup): Update.
3853 (compile_object_run): Update.
3854
3855 2020-09-23 Tom Tromey <tom@tromey.com>
3856
3857 * compile/compile.c (eval_compile_command): Update.
3858 * compile/compile-object-run.h (compile_object_run): Take a
3859 compile_module_up.
3860 * compile/compile-object-run.c (compile_object_run): Take a
3861 compile_module_up.
3862 * compile/compile-object-load.h (struct compile_module): Add
3863 constructor, destructor.
3864 (compile_module_up): New typedef.
3865 (compile_object_load): Return compile_object_up.
3866 * compile/compile-object-load.c (compile_object_load): Return
3867 compile_module_up.
3868
3869 2020-09-23 Tom Tromey <tom@tromey.com>
3870
3871 * compile/compile-object-run.c (struct do_module_cleanup): Add
3872 constructor, destructor.
3873 <objfile_name_string>: Don't use struct hack.
3874 (do_module_cleanup): Use delete.
3875 (compile_object_run): Use new.
3876
3877 2020-09-23 Tom Tromey <tom@tromey.com>
3878
3879 * compile/compile-cplus-types.c
3880 (compile_cplus_convert_struct_or_union): Use std::vector.
3881 (compile_cplus_convert_func): Likewise.
3882 * compile/compile-c-types.c (convert_func): Use std::vector.
3883
3884 2020-09-21 Tom Tromey <tromey@adacore.com>
3885
3886 * sparc-tdep.c (sparc32_skip_prologue): Use
3887 skip_prologue_using_sal.
3888
3889 2020-09-19 Tom Tromey <tom@tromey.com>
3890
3891 * symfile.c (add_section_size_callback): Remove.
3892 (load_one_section): Rename from load_section_callback. Change
3893 parameters.
3894 (generic_load): Use foreach.
3895
3896 2020-09-19 Tom Tromey <tom@tromey.com>
3897
3898 * exec.c (add_to_section_table): Remove.
3899 (build_section_table): Use foreach.
3900
3901 2020-09-19 Tom Tromey <tom@tromey.com>
3902
3903 * elfread.c (elf_locate_sections): Change parameters.
3904 (elf_symfile_read): Use foreach.
3905
3906 2020-09-19 Tom Tromey <tom@tromey.com>
3907
3908 * cli/cli-dump.c (struct callback_data): Remove.
3909 (restore_one_section): Rename from restore_section_callback.
3910 Change parameters.
3911 (restore_binary_file): Change parameters.
3912 (restore_command): Use foreach.
3913
3914 2020-09-19 Tom Tromey <tom@tromey.com>
3915
3916 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3917 (gcore_copy_callback): Likewise.
3918 (gcore_memory_sections): Use foreach.
3919
3920 2020-09-19 Tom Tromey <tom@tromey.com>
3921
3922 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3923 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3924 parameters.
3925 (generic_elf_osabi_sniffer): Use foreach.
3926 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3927 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3928
3929 2020-09-19 Tom Tromey <tom@tromey.com>
3930
3931 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3932 (dwarf2_get_dwz_file): Use foreach.
3933 (dwarf2_locate_dwo_sections): Change parameters.
3934 (open_and_init_dwo_file): Use foreach.
3935 (dwarf2_locate_common_dwp_sections): Change parameters.
3936 (open_and_init_dwp_file): Use foreach.
3937
3938 2020-09-19 Tom Tromey <tom@tromey.com>
3939
3940 * symfile.h: (find_lowest_section): Don't declare.
3941 * symfile.c (find_lowest_section): Now static. Change
3942 parameters.
3943 (struct place_section_arg): Remove.
3944 (place_section): Change parameters.
3945 (addr_info_make_relative): Use foreach.
3946 (symfile_dummy_outputs): Remove.
3947 (default_symfile_relocate): Use foreach.
3948
3949 2020-09-19 Tom Tromey <tom@tromey.com>
3950
3951 * objfiles.c (add_to_objfile_sections): Rename from
3952 add_to_objfile_sections_full.
3953 (add_to_objfile_sections): Remove.
3954 (build_objfile_section_table): Use foreach.
3955
3956 2020-09-19 Tom Tromey <tom@tromey.com>
3957
3958 * stap-probe.c (get_stap_base_address_1): Remove.
3959 (get_stap_base_address): Use foreach.
3960
3961 2020-09-19 Tom Tromey <tom@tromey.com>
3962
3963 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3964 parameters.
3965 (gdb_bfd_close_or_warn): Use foreach.
3966
3967 2020-09-19 Tom Tromey <tom@tromey.com>
3968
3969 * corelow.c (add_to_thread_list): Change parameters.
3970 (core_target_open): Use foreach.
3971
3972 2020-09-19 Tom Tromey <tom@tromey.com>
3973
3974 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3975 existing function.
3976
3977 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3980 for arrays.
3981
3982 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * eval.c: Remove 'f-lang.h' include.
3985 (value_f90_subarray): Moved to f-lang.c.
3986 (eval_call): Renamed to...
3987 (evaluate_subexp_do_call): ...this, is no longer static, header
3988 comment moved into header file.
3989 (evaluate_funcall): Update call to eval_call.
3990 (skip_undetermined_arglist): Moved to f-lang.c.
3991 (fortran_value_subarray): Likewise.
3992 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3993 moved to evaluate_subexp_f.
3994 (calc_f77_array_dims): Moved to f-lang.c
3995 * expprint.c (print_subexp_funcall): New function.
3996 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3997 moved to print_subexp_f, OP_FUNCALL uses new function.
3998 (dump_subexp_body_funcall): New function.
3999 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4000 moved to dump_subexp_f, OP_FUNCALL uses new function.
4001 * expression.h (evaluate_subexp_do_call): Declare.
4002 * f-lang.c (value_f90_subarray): Moved from eval.c.
4003 (skip_undetermined_arglist): Likewise.
4004 (calc_f77_array_dims): Likewise.
4005 (fortran_value_subarray): Likewise.
4006 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4007 (operator_length_f): Likewise.
4008 (print_subexp_f): Likewise.
4009 (dump_subexp_body_f): Likewise.
4010 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4011 declaration of this operation to here.
4012 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4013 support moved to operator_length_f.
4014 * parser-defs.h (dump_subexp_body_funcall): Declare.
4015 (print_subexp_funcall): Declare.
4016 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4017 fortran-operator.def.
4018
4019 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4020
4021 * eval.c (fortran_value_subarray): New function, content is taken
4022 from...
4023 (evaluate_subexp_standard): ...here, in two places. Now arrays
4024 and strings both call the new function.
4025 (calc_f77_array_dims): Add header comment, handle strings.
4026
4027 2020-09-18 Victor Collod <vcollod@nvidia.com>
4028
4029 PR gdb/26635
4030 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4031 (i386_analyze_prologue): Call i386_skip_endbr.
4032
4033 2020-09-18 Tom Tromey <tromey@adacore.com>
4034
4035 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4036 (windows_nat_target::wait): Update.
4037 * target/wait.h (enum target_wait_flag): New. Use
4038 DEF_ENUM_FLAGS_TYPE.
4039 * target/target.h (target_wait): Change type of options.
4040 * target.h (target_options_to_string, default_target_wait):
4041 Update.
4042 (struct target_ops) <wait>: Change type of options.
4043 * target.c (target_wait, default_target_wait, do_option): Change
4044 type of "options".
4045 (target_options_to_string): Likewise.
4046 * target-delegates.c: Rebuild.
4047 * target-debug.h (target_debug_print_target_wait_flags): Rename
4048 from target_debug_print_options.
4049 * sol-thread.c (class sol_thread_target) <wait>: Update.
4050 (sol_thread_target::wait): Update.
4051 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4052 (rs6000_nat_target::wait): Update.
4053 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4054 Update.
4055 (remote_target::wait_ns, remote_target::wait_as): Change type of
4056 "options".
4057 (remote_target::wait): Update.
4058 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4059 (gdbsim_target::wait): Update.
4060 * record-full.c (class record_full_base_target) <wait>: Update.
4061 (record_full_wait_1): Change type of "options".
4062 (record_full_base_target::wait): Update.
4063 * record-btrace.c (class record_btrace_target) <wait>: Update.
4064 (record_btrace_target::wait): Update.
4065 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4066 Update.
4067 (ravenscar_thread_target::wait): Update.
4068 * procfs.c (class procfs_target) <wait>: Update.
4069 (procfs_target::wait): Update.
4070 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4071 * obsd-nat.c (obsd_nat_target::wait): Update.
4072 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4073 (nto_procfs_target::wait): Update.
4074 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4075 * nbsd-nat.c (nbsd_wait): Change type of "options".
4076 (nbsd_nat_target::wait): Update.
4077 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4078 (thread_db_target::wait): Update.
4079 * linux-nat.h (class linux_nat_target) <wait>: Update.
4080 * linux-nat.c (linux_nat_target::wait): Update.
4081 (linux_nat_wait_1): Update.
4082 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4083 "options".
4084 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4085 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4086 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4087 (go32_nat_target::wait): Update.
4088 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4089 * gnu-nat.c (gnu_nat_target::wait): Update.
4090 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4091 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4092 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4093 * darwin-nat.c (darwin_nat_target::wait): Update.
4094 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4095 (bsd_uthread_target::wait): Update.
4096 * aix-thread.c (class aix_thread_target) <wait>: Update.
4097 (aix_thread_target::wait): Update.
4098
4099 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * compile/compile-object-run.c (create_copied_type_recursive): New
4102 function.
4103 (compile_object_run): Use new function.
4104
4105 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4106
4107 * NEWS: Mention x86_64 Cygwin core file support.
4108
4109 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4110
4111 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4112 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4113
4114 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4115
4116 * windows-tdep.h: Add prototypes.
4117 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4118 (i386_windows_core_pid_to_str): Move and rename ...
4119 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4120 (windows_core_pid_to_str): ... and here.
4121 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4122
4123 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4124 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4125 (amd64_windows_init_abi_common): ... and register.
4126
4127 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4128
4129 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4130 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4131
4132 2020-09-18 Pedro Alves <pedro@palves.net>
4133
4134 PR gdb/26631
4135 * thread.c (thread_find_command): Switch inferior before calling
4136 target methods.
4137
4138 2020-09-17 Tom Tromey <tromey@adacore.com>
4139
4140 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4141 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4142 (tdesc_arch_data_up): New typedef.
4143 (tdesc_use_registers, tdesc_data_alloc): Update.
4144 (tdesc_data_cleanup): Don't declare.
4145 * target-descriptions.c (tdesc_data_alloc): Return a
4146 tdesc_arch_data_up.
4147 (tdesc_arch_data_deleter::operator()): Rename from
4148 tdesc_data_cleanup. Change argument type.
4149 (tdesc_use_registers): Change early_data to an rvalue reference.
4150 (tdesc_use_registers): Don't use delete.
4151 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4152 * s390-tdep.c (s390_gdbarch_init): Update.
4153 * rx-tdep.c (rx_gdbarch_init): Update.
4154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4155 * riscv-tdep.c (riscv_gdbarch_init): Update.
4156 * or1k-tdep.c (or1k_gdbarch_init): Update.
4157 * nios2-tdep.c (nios2_gdbarch_init): Update.
4158 * nds32-tdep.c (nds32_gdbarch_init): Update.
4159 * mips-tdep.c (mips_gdbarch_init): Update.
4160 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4161 * m68k-tdep.c (m68k_gdbarch_init): Update.
4162 * i386-tdep.c (i386_gdbarch_init): Update.
4163 * arm-tdep.c (arm_gdbarch_init): Update.
4164 * arc-tdep.c (arc_tdesc_init): Update.
4165 (arc_gdbarch_init): Update.
4166 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4167
4168 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4169
4170 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4171 for WOW64 processes.
4172
4173 2020-09-17 Tom Tromey <tom@tromey.com>
4174
4175 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4176
4177 2020-09-17 Tom Tromey <tom@tromey.com>
4178
4179 * value.c (preserve_values): Update.
4180 * python/py-type.c (save_objfile_types): Update.
4181 * guile/scm-type.c (save_objfile_types): Update.
4182 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4183 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4184 * compile/compile-object-run.c (compile_object_run): Update.
4185
4186 2020-09-17 Tom Tromey <tom@tromey.com>
4187
4188 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4189 Remove.
4190 <m_table>: Now htab_up.
4191 * typeprint.c (typedef_hash_table::recursively_update)
4192 (typedef_hash_table::add_template_parameters)
4193 (typedef_hash_table::typedef_hash_table): Update.
4194 (typedef_hash_table::~typedef_hash_table): Remove.
4195 (typedef_hash_table::typedef_hash_table)
4196 (typedef_hash_table::find_global_typedef)
4197 (typedef_hash_table::find_typedef): Update.
4198
4199 2020-09-17 Tom Tromey <tom@tromey.com>
4200
4201 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4202
4203 2020-09-17 Tom Tromey <tom@tromey.com>
4204
4205 * linespec.c (class decode_compound_collector)
4206 <~decode_compound_collector>: Remove.
4207 <m_unique_syms>: Now htab_up.
4208 (decode_compound_collector::operator ()): Update.
4209 (class symtab_collector) <~symtab_collector>: Remove.
4210 <m_symtab_table>: Now htab_up.
4211 (symtab_collector::operator ()): Update.
4212
4213 2020-09-17 Tom Tromey <tom@tromey.com>
4214
4215 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4216 (filename_seen_cache::clear): Update.
4217 (~filename_seen_cache): Remove.
4218 (filename_seen_cache::seen): Update.
4219 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4220 htab_up.
4221 <~filename_seen_cache>: Remove.
4222 <traverse>: Update.
4223
4224 2020-09-17 Tom Tromey <tom@tromey.com>
4225
4226 * completer.c (completion_tracker::discard_completions)
4227 (completion_tracker::~completion_tracker)
4228 (completion_tracker::maybe_add_completion)
4229 (completion_tracker::remove_completion)
4230 (completion_tracker::recompute_lowest_common_denominator)
4231 (completion_tracker::build_completion_result): Update.
4232 * completer.h (class completion_tracker) <have_completions>:
4233 Update.
4234 <m_entries_hash>: Now htab_up.
4235
4236 2020-09-17 Tom Tromey <tom@tromey.com>
4237
4238 * breakpoint.c (ambiguous_names_p): Use htab_up.
4239
4240 2020-09-17 Tom Tromey <tom@tromey.com>
4241
4242 * auto-load.c (struct auto_load_pspace_info)
4243 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4244 <loaded_script_files, loaded_script_texts>: Change type to
4245 htab_up.
4246 (~auto_load_pspace_info) Remove.
4247 (init_loaded_scripts_info, maybe_add_script_file)
4248 (maybe_add_script_text, auto_load_info_scripts): Update.
4249
4250 2020-09-17 Tom Tromey <tromey@adacore.com>
4251
4252 * c-exp.y (name_obstack): Now static.
4253
4254 2020-09-17 Chungyi Chi <demonic@csie.io>
4255
4256 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4257
4258 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4261 (add_solib_catchpoint): Likewise.
4262 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4263 to bool.
4264 (add_solib_catchpoint): Change int parameter/variable to bool.
4265 (catch_load_or_unload): Likewise.
4266 (init_catchpoint): Likewise.
4267 (create_fork_vfork_event_catchpoint): Likewise.
4268 (catch_fork_command_1): Likewise.
4269 (catch_exec_command_1): Likewise.
4270
4271 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4274 Change instance_flags to m_instance_flags.
4275
4276 2020-09-16 Tom Tromey <tromey@adacore.com>
4277
4278 PR gdb/26598:
4279 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4280
4281 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4282
4283 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4284 PL_FLAG_EXEC.
4285 (fbsd_nat_target::insert_exec_catchpoint)
4286 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4287 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4288 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4289
4290 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4291
4292 * configure.ac: Remove check for kinfo_getvmmap().
4293 * configure, config.in: Regenerate.
4294 * fbsd-nat.c (fbsd_read_mapping): Remove
4295 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4296 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4297 kinfo_get_vmmap() are always present.
4298
4299 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4300
4301 * fbsd-nat.c: Always include support for
4302 TARGET_OBJECT_SIGNAL_INFO.
4303
4304 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4305
4306 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4307 sysctl and remove procfs fallback.
4308
4309 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4310
4311 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4312 * fbsd-nat.h: Likewise.
4313
4314 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4315
4316 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4317 argument.
4318
4319 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4320
4321 * ada-lang.c (ada_language_data): Delete.
4322 (ada_language): Remove references to ada_language_data.
4323 * c-lang.c (c_language_data): Delete.
4324 (c_language): Remove references to c_language_data.
4325 (cplus_language_data): Delete.
4326 (cplus_language): Remove references to cplus_language_data.
4327 (asm_language_data): Delete.
4328 (asm_language): Remove references to asm_language_data.
4329 (minimal_language_data): Delete.
4330 (minimal_language): Remove references to minimal_language_data.
4331 * d-lang.c (d_language_data): Delete.
4332 (d_language): Remove references to d_language_data.
4333 * f-lang.c (f_language_data): Delete.
4334 (f_language): Remove references to f_language_data.
4335 * go-lang.c (go_language_data): Delete.
4336 (go_language): Remove references to go_language_data.
4337 * language.c (unknown_language_data): Delete.
4338 (unknown_language): Remove references to unknown_language_data.
4339 (auto_language_data): Delete.
4340 (auto_language): Remove references to auto_language_data.
4341 * language.h (language_data): Delete struct.
4342 (language_defn): No longer inherit from language_data.
4343 * m2-lang.c (m2_language_data): Delete.
4344 (m2_language): Remove references to m2_language_data.
4345 * objc-lang.c (objc_language_data): Delete.
4346 (objc_language): Remove references to objc_language_data.
4347 * opencl-lang.c (opencl_language_data): Delete.
4348 (opencl_language): Remove references to opencl_language_data.
4349 * p-lang.c (pascal_language_data): Delete.
4350 (pascal_language): Remove references to pascal_language_data.
4351 * rust-lang.c (rust_language_data): Delete.
4352 (rust_language): Remove references to rust_language_data.
4353
4354 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4357 initializer.
4358 (ada_language::opcode_print_table): New member function.
4359 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4360 (c_language::opcode_print_table): New member function.
4361 (cplus_language_data): Remove la_op_print_tab initializer.
4362 (cplus_language::opcode_print_table): New member function.
4363 (asm_language_data): Remove la_op_print_tab initializer.
4364 (asm_language::opcode_print_table): New member function.
4365 (minimal_language_data): Remove la_op_print_tab initializer.
4366 (minimal_language::opcode_print_table): New member function.
4367 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4368 (d_language::opcode_print_table): New member function.
4369 * expprint.c (print_subexp_standard): Update call to
4370 opcode_print_table.
4371 (op_string): Likewise.
4372 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4373 (f_language::opcode_print_table): New member function.
4374 * go-lang.c (go_language_data): Remove la_op_print_tab
4375 initializer.
4376 (go_language::opcode_print_table): New member function.
4377 * language.c (unknown_language_data): Remove la_op_print_tab
4378 initializer.
4379 (unknown_language::opcode_print_table): New member function.
4380 (auto_language_data): Remove la_op_print_tab initializer.
4381 (auto_language::opcode_print_table): New member function.
4382 * language.h (language_data): Remove la_op_print_tab field.
4383 (language_defn::opcode_print_table): Declare new member function.
4384 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4385 initializer.
4386 (m2_language::opcode_print_table): New member function.
4387 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4388 initializer.
4389 (objc_language::opcode_print_table): New member function.
4390 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4391 initializer.
4392 (opencl_language::opcode_print_table): New member function.
4393 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4394 initializer.
4395 (pascal_language::opcode_print_table): New member function.
4396 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4397 initializer.
4398 (rust_language::opcode_print_table): New member function.
4399
4400 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4403 (ada_language::expression_ops): New member function.
4404 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4405 (c_language::expression_ops): New member function.
4406 (cplus_language_data): Remove la_exp_desc initializer.
4407 (cplus_language::expression_ops): New member function.
4408 (asm_language_data): Remove la_exp_desc initializer.
4409 (asm_language::expression_ops): New member function.
4410 (minimal_language_data): Remove la_exp_desc initializer.
4411 (minimal_language::expression_ops): New member function.
4412 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4413 (d_language::expression_ops): New member function.
4414 * eval.c (evaluate_subexp): Update call to expression_ops.
4415 * expprint.c (print_subexp): Likewise.
4416 (op_name): Likewise.
4417 (dump_subexp_body): Likewise.
4418 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4419 (f_language::expression_ops): New member function.
4420 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4421 (go_language::expression_ops): New member function.
4422 * language.c (language_defn::expression_ops): New function.
4423 (unknown_language_data): Remove la_exp_desc initializer.
4424 (auto_language_data): Likewise.
4425 * language.h (language_data): Remove la_exp_desc field.
4426 (language_defn::expression_ops): Declare new member function.
4427 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4428 (m2_language::expression_ops): New member function.
4429 * objc-lang.c (objc_language_data): Remove la_exp_desc
4430 initializer.
4431 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4432 initializer.
4433 (opencl_language::expression_ops): New member function.
4434 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4435 * parse.c (operator_length): Update call to expression_ops.
4436 (exp_iterate): Likewise.
4437 * rust-lang.c (rust_language_data): Remove la_exp_desc
4438 initializer.
4439 (ruse_language::expression_ops): New member function.
4440
4441 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4444 initializer.
4445 (ada_language::varobj_ops): New member function.
4446 * c-lang.c (c_language_data): Remove la_varobj_ops
4447 initializer.
4448 (cplus_language_data): Likewise.
4449 (cplus_language::varobj_ops): New member function.
4450 (asm_language_data): Remove la_varobj_ops initializer.
4451 (minimal_language_data): Likewise.
4452 * d-lang.c (d_language_data): Likewise.
4453 * f-lang.c (f_language_data): Likewise.
4454 * go-lang.c (go_language_data): Likewise.
4455 * language.c (language_defn::varobj_ops): New function.
4456 (unknown_language_data): Remove la_varobj_ops
4457 initializer.
4458 (auto_language_data): Likewise.
4459 * language.h (language_data): Remove la_varobj_ops field.
4460 (language_defn::varobj_ops): Declare new member function.
4461 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4462 * objc-lang.c (objc_language_data): Likewise.
4463 * opencl-lang.c (opencl_language_data): Likewise.
4464 * p-lang.c (pascal_language_data): Likewise.
4465 * rust-lang.c (rust_language_data): Likewise.
4466 * varobj.c (varobj_create): Update call to varobj_ops.
4467 * varobj.h (default_varobj_ops): Delete define.
4468
4469 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4470
4471 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4472 initializer.
4473 * c-lang.c (c_language_data): Likewise.
4474 (c_language::macro_expansion): New member function.
4475 (cplus_language_data): Likewise.
4476 (cplus_language::macro_expansion): New member function.
4477 (asm_language_data): Likewise.
4478 (asm_language::macro_expansion): New member function.
4479 (minimal_language_data): Likewise.
4480 (minimal_language::macro_expansion): New member function.
4481 * d-lang.c (d_language_data): Remove la_macro_expansion
4482 initializer.
4483 * f-lang.c (f_language_data): Likewise.
4484 * go-lang.c (go_language_data): Likewise.
4485 * language.c (unknown_language_data): Likewise.
4486 (auto_language_data): Likewise.
4487 * language.h (language_data): Remove la_macro_expansion field.
4488 (language_defn::macro_expansion): New member function.
4489 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4490 initializer.
4491 * objc-lang.c (objc_language_data): Likewise.
4492 (objc_language::macro_expansion): New member function.
4493 * opencl-lang.c (opencl_language_data): Likewise.
4494 (opencl_language::macro_expansion): New member function.
4495 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4496 initializer.
4497 * rust-lang.c (rust_language_data): Likewise.
4498 * symtab.c (default_collect_symbol_completion_matches_break_on):
4499 Update call to macro_expansion.
4500
4501 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (ada_language_data): Remove la_array_ordering
4504 initializer.
4505 * c-lang.c (c_language_data): Likewise.
4506 (cplus_language_data): Likewise.
4507 (asm_language_data): Likewise.
4508 (minimal_language_data): Likewise.
4509 * d-lang.c (d_language_data): Likewise.
4510 * dwarf2/read.c (read_array_order): Update for call to
4511 array_ordering.
4512 * f-lang.c (f_language_data): Remove la_array_ordering
4513 initializer.
4514 (f_language::array_ordering): New member function.
4515 * go-lang.c (go_language_data): Remove la_array_ordering
4516 initializer.
4517 * language.c (unknown_language_data): Likewise.
4518 (auto_language_data): Likewise.
4519 * language.h (language_data): Delete la_array_ordering field.
4520 (language_defn::array_ordering): New member function.
4521 * m2-lang.c (m2_language_data): Remove la_array_ordering
4522 initializer.
4523 * objc-lang.c (objc_language_data): Likewise.
4524 * opencl-lang.c (opencl_language_data): Likewise.
4525 * p-lang.c (pascal_language_data): Likewise.
4526 * rust-lang.c (rust_language_data): Likewise.
4527
4528 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4529
4530 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4531 initializer.
4532 * c-lang.c (c_language_data): Likewise.
4533 (cplus_language_data): Likewise.
4534 (asm_language_data): Likewise.
4535 (minimal_language_data): Likewise.
4536 * d-lang.c (d_language_data): Likewise.
4537 * f-lang.c (f_language_data): Likewise.
4538 (f_language::case_sensitivity): New member function.
4539 * go-lang.c (go_language_data): Remove la_case_sensitivity
4540 initializer.
4541 * language.c (enum case_mode): Moved here from language.h.
4542 (case_mode): Make static.
4543 (show_case_command): Update for case_sensitivity being a method.
4544 (set_case_command): Likewise.
4545 (set_range_case): Likewise.
4546 (unknown_language_data): Remove la_case_sensitivity initializer.
4547 (auto_language_data): Likewise.
4548 * language.h (case_mode): Delete, move enum declaration to
4549 language.c.
4550 (language_data): Delete la_case_sensitivity field.
4551 (language_defn::case_sensitivity): New member function.
4552 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4553 initializer.
4554 * objc-lang.c (objc_language_data): Likewise.
4555 * opencl-lang.c (opencl_language_data): Likewise.
4556 * p-lang.c (pascal_language_data): Likewise.
4557 * rust-lang.c (rust_language_data): Likewise.
4558
4559 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * ada-lang.c (ada_language_data): Remove la_range_check
4562 initializer.
4563 * c-lang.c (c_language_data): Likewise.
4564 (cplus_language_data): Likewise.
4565 (asm_language_data): Likewise.
4566 (minimal_language_data): Likewise.
4567 * d-lang.c (d_language_data): Likewise.
4568 * f-lang.c (f_language_data): Likewise.
4569 (f_language::range_checking_on_by_default): New member function.
4570 * go-lang.c (go_language_data): Remove la_range_check initializer.
4571 * language.c (enum range_mode): Moved here from language.h.
4572 (range_mode): Made static.
4573 (show_range_command): Update to use
4574 range_checking_on_by_default.
4575 (set_range_command): Likewise.
4576 (set_range_case): Likewise.
4577 (unknown_language_data): Remove la_range_check initializer.
4578 (auto_language_data): Likewise.
4579 * language.h (range_mode): Delete. Enum definition moved to
4580 language.c.
4581 (language_data): Remove la_range_check field.
4582 (language_defn::range_checking_on_by_default): New member
4583 function.
4584 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4585 (m2_language::range_checking_on_by_default): New member function.
4586 * objc-lang.c (objc_language_data): Remove la_range_check
4587 initializer.
4588 * opencl-lang.c (opencl_language_data): Likewise.
4589 * p-lang.c (pascal_language_data): Likewise.
4590 (pascal_language::range_checking_on_by_default): New member
4591 function.
4592 * rust-lang.c (rust_language_data): Remove la_range_check
4593 initializer.
4594 (rust_language::range_checking_on_by_default): New member
4595 function.
4596
4597 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * dwarf2/read.c (dwarf2_physname): Remove special case for
4600 language_go.
4601 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4602 member function.
4603
4604 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * ada-lang.c (ada_language_data): Remove
4607 la_store_sym_names_in_linkage_form_p initializer.
4608 (ada_language::store_sym_names_in_linkage_form_p): New member
4609 function.
4610 * c-lang.c (c_language_data): Remove
4611 la_store_sym_names_in_linkage_form_p initializer.
4612 (c_language::store_sym_names_in_linkage_form_p): New member
4613 function.
4614 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4615 initializer.
4616 (asm_language_data): Likewise.
4617 (asm_language::store_sym_names_in_linkage_form_p): New member
4618 function.
4619 (minimal_language_data): Remove
4620 la_store_sym_names_in_linkage_form_p initializer.
4621 (minimal_language::store_sym_names_in_linkage_form_p): New member
4622 function.
4623 * d-lang.c (d_language_data): Remove
4624 la_store_sym_names_in_linkage_form_p initializer.
4625 * dwarf2/read.c (dwarf2_physname): Update call to
4626 store_sym_names_in_linkage_form_p.
4627 * f-lang.c (f_language_data): Remove
4628 la_store_sym_names_in_linkage_form_p initializer.
4629 * go-lang.c (go_language_data): Remove
4630 la_store_sym_names_in_linkage_form_p initializer.
4631 * language.c (unknown_language_data): Remove
4632 la_store_sym_names_in_linkage_form_p initializer.
4633 (unknown_language::store_sym_names_in_linkage_form_p): New member
4634 function.
4635 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4636 initializer.
4637 (auto_language::store_sym_names_in_linkage_form_p): New member
4638 function.
4639 * language.h (language_data): Remove
4640 la_store_sym_names_in_linkage_form_p member variable.
4641 (language_defn::store_sym_names_in_linkage_form_p): New member
4642 function.
4643 * m2-lang.c (m2_language_data): Remove
4644 la_store_sym_names_in_linkage_form_p initializer.
4645 * objc-lang.c (objc_language_data): Likewise.
4646 * opencl-lang.c (opencl_language_data): Likewise.
4647 * p-lang.c (pascal_language_data): Likewise.
4648 * rust-lang.c (rust_language_data): Likewise.
4649
4650 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * ada-lang.c (ada_language_data): Remove string_lower_bound
4653 initializer.
4654 * c-lang.c (c_language_data): Likewise.
4655 (cplus_language_data): Likewise.
4656 (asm_language_data): Likewise.
4657 (minimal_language_data): Likewise.
4658 * d-lang.c (d_language_data): Likewise.
4659 * f-lang.c (f_language_data): Likewise.
4660 * go-lang.c (go_language_data): Likewise.
4661 * language.c (unknown_language_data): Likewise.
4662 (auto_language_data): Likewise.
4663 * language.h (language_data): Remove string_lower_bound field.
4664 (language_defn::string_lower_bound): New member function.
4665 * m2-lang.c (m2_language_data): Remove string_lower_bound
4666 initializer.
4667 (m2_language::string_lower_bound): New member function.
4668 * objc-lang.c (objc_language_data): Remove string_lower_bound
4669 initializer.
4670 * opencl-lang.c (opencl_language_data): Likewise.
4671 * p-lang.c (pascal_language_data): Likewise.
4672 * rust-lang.c (rust_language_data): Likewise.
4673 * valops.c (value_cstring): Update call to string_lower_bound.
4674 (value_string): Likewise.
4675 * value.c (allocate_repeated_value): Likewise.
4676
4677 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4678
4679 * valops.c (value_repeat): Fix incorrect argument name in comment.
4680
4681 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * ada-lang.c (ada_language_data): Remove c_style_arrays
4684 initializer.
4685 (ada_language::c_style_arrays_p): New member fuction.
4686 * c-lang.c (c_language_data): Remove c_style_arrays
4687 initializer.
4688 (cplus_language_data): Likewise.
4689 (asm_language_data): Likewise.
4690 (minimal_language_data): Likewise.
4691 * d-lang.c (d_language_data): Likewise.
4692 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4693 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4694 (f_language::c_style_arrays_p): New member function.
4695 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4696 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4697 * language.c (unknown_language_data): Remove c_style_arrays
4698 initializer.
4699 (auto_language_data): Likewise.
4700 * language.h (language_data): Remove c_style_arrays field.
4701 (language_defn::c_style_arrays_p): New member function.
4702 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4703 (m2_language::c_style_arrays_p): New member function.
4704 * objc-lang.c (objc_language_data): Remove c_style_arrays
4705 initializer.
4706 * opencl-lang.c (opencl_language_data): Likewise.
4707 * p-lang.c (pascal_language_data): Likewise.
4708 * rust-lang.c (rust_language_data): Likewise.
4709 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4710 and update local variable to a bool.
4711 * valops.c (value_cast): Update call to c_style_arrays_p.
4712 (value_array): Likewise.
4713 * value.c (coerce_array): Likewise.
4714
4715 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4716
4717 * ada-lang.c (ada_language_data): Remove la_language initializer.
4718 * c-lang.c (c_language_data): Likewise.
4719 (cplus_language_data): Likewise.
4720 (asm_language_data): Likewise.
4721 (minimal_language_data): Likewise.
4722 * d-lang.c (d_language_data): Likewise.
4723 * f-lang.c (f_language_data): Likewise.
4724 * go-lang.c (go_language_data): Likewise.
4725 * language.c (unknown_language_data): Likewise.
4726 (auto_language_data): Likewise.
4727 * language.h (language_data): Remove la_language field.
4728 (language_defn::language_defn): Initialise la_language field.
4729 (language_defn::la_language): New member variable.
4730 * m2-lang.c (m2_language_data): Remove la_language field.
4731 * objc-lang.c (objc_language_data): Likewise.
4732 * opencl-lang.c (opencl_language_data): Likewise.
4733 * p-lang.c (pascal_language_data): Likewise.
4734 * rust-lang.c (rust_language_data): Likewise.
4735
4736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4737
4738 * ada-lang.c (ada_extensions): Delete, moved into
4739 ada_language::filename_extensions.
4740 (ada_language_data): Remove la_filename_extensions initializer.
4741 (ada_language::filename_extensions): New member function.
4742 * c-lang.c (c_extensions): Delete, moved into
4743 c_language::filename_extensions.
4744 (c_language_data): Remove la_filename_extensions initializer.
4745 (c_language::filename_extensions): New member function.
4746 (cplus_extensions): Delete, moved into
4747 cplus_language::filename_extensions.
4748 (cplus_language_data): Remove la_filename_extensions initializer.
4749 (cplus_language::filename_extensions): New member function.
4750 (asm_extensions): Delete, moved into
4751 asm_language::filename_extensions.
4752 (asm_language_data): Remove la_filename_extensions initializer.
4753 (asm_language::filename_extensions): New member function.
4754 (minimal_language_data): Remove la_filename_extensions
4755 initializer.
4756 * d-lang.c (d_extensions): Delete, moved into
4757 d_language::filename_extensions.
4758 (d_language_data): Remove la_filename_extensions initializer.
4759 (d_language::filename_extensions): New member function.
4760 * f-lang.c (f_extensions): Delete, moved into
4761 f_language::filename_extensions.
4762 (f_language_data): Remove la_filename_extensions initializer.
4763 (f_language::filename_extensions): New member function.
4764 * go-lang.c (go_language_data): Remove la_filename_extensions
4765 initializer.
4766 * language.c (add_set_language_command): Update now that
4767 filename_extensions returns a vector.
4768 (unknown_language_data): Remove la_filename_extensions
4769 initializer.
4770 (auto_language_data): Likewise.
4771 * language.h (language_data): Remove la_filename_extensions field.
4772 (language_defn::filename_extensions): New member function.
4773 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4774 initializer.
4775 * objc-lang.c (objc_extensions): Delete, moved into
4776 objc_language::filename_extensions.
4777 (objc_language_data): Remove la_filename_extensions initializer.
4778 (objc_language::filename_extensions): New member function.
4779 * opencl-lang.c (opencl_language_data): Remove
4780 la_filename_extensions initializer.
4781 * p-lang.c (pascal_extensions): Delete, moved into
4782 pascal_language::filename_extensions.
4783 (pascal_language_data): Remove la_filename_extensions initializer.
4784 (pascal_language::filename_extensions): New member function.
4785 * rust-lang.c (rust_extensions): Delete, moved into
4786 rust_language::filename_extensions.
4787 (rust_language_data): Remove la_filename_extensions initializer.
4788 (rust_language::filename_extensions): New member function.
4789 * symfile.c (add_filename_language): Add new assert.
4790
4791 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4792
4793 * ada-lang.c (ada_language_data): Remove la_name and
4794 la_natural_name initializers.
4795 (ada_language::name): New member function.
4796 (ada_language::natural_name): New member function.
4797 * c-lang.c (c_language_data): Remove la_name and
4798 la_natural_name initializers.
4799 (c_language::name): New member function.
4800 (c_language::natural_name): New member function.
4801 (cplus_language_data): Remove la_name and
4802 la_natural_name initializers.
4803 (cplus_language::name): New member function.
4804 (cplus_language::natural_name): New member function.
4805 (asm_language_data): Remove la_name and
4806 la_natural_name initializers.
4807 (asm_language::name): New member function.
4808 (asm_language::natural_name): New member function.
4809 (minimal_language_data): Remove la_name and
4810 la_natural_name initializers.
4811 (minimal_language::name): New member function.
4812 (minimal_language::natural_name): New member function.
4813 * compile/compile.c (compile_to_object): Update call to
4814 lanugage_defn::name.
4815 * d-lang.c (d_language_data): Remove la_name and
4816 la_natural_name initializers.
4817 (d_language::name): New member function.
4818 (d_language::natural_name): New member function.
4819 * expprint.c (print_subexp_standard): Update call to
4820 language_defn::name.
4821 (dump_raw_expression): Likewise
4822 (dump_prefix_expression): Likewise.
4823 * f-lang.c (f_language_data): Remove la_name and
4824 la_natural_name initializers.
4825 (f_language::name): New member function.
4826 (f_language::natural_name): New member function.
4827 * go-lang.c (go_language_data): Remove la_name and
4828 la_natural_name initializers.
4829 (go_language::name): New member function.
4830 (go_language::natural_name): New member function.
4831 * language.c (show_language_command): Update call to
4832 language_defn::name.
4833 (set_language_command): Likewise.
4834 (language_enum): Likewise.
4835 (language_str): Likewise.
4836 (add_set_language_command): Likewise, use
4837 language_defn::natural_name in the doc string.
4838 (unknown_language_data): Remove la_name and
4839 la_natural_name initializers.
4840 (unknown_language::name): New member function.
4841 (unknown_language::natural_name): New member function.
4842 (auto_language_data): Remove la_name and
4843 la_natural_name initializers.
4844 (auto_language::name): New member function.
4845 (auto_language::natural_name): New member function.
4846 (language_lookup_primitive_type_as_symbol): Update call to
4847 language_defn::name.
4848 * language.h (language_data): Remove la_name and la_natural_name
4849 member variables.
4850 (language_defn::name): New member function.
4851 (language_defn::natural_name): New member function.
4852 * m2-lang.c (m2_language_data): Remove la_name and
4853 la_natural_name initializers.
4854 (m2_language::name): New member function.
4855 (m2_language::natural_name): New member function.
4856 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4857 language_defn::natural_name.
4858 * objc-lang.c (objc_language_data): Remove la_name and
4859 la_natural_name initializers.
4860 (objc_language::name): New member function.
4861 (objc_language::natural_name): New member function.
4862 * opencl-lang.c (opencl_language_data): Remove la_name and
4863 la_natural_name initializers.
4864 (opencl_language::name): New member function.
4865 (opencl_language::natural_name): New member function.
4866 * p-lang.c (pascal_language_data): Remove la_name and
4867 la_natural_name initializers.
4868 (pascal_language::name): New member function.
4869 (pascal_language::natural_name): New member function.
4870 * rust-lang.c (rust_language_data): Remove la_name and
4871 la_natural_name initializers.
4872 (rust_language::name): New member function.
4873 (rust_language::natural_name): New member function.
4874 * symtab.c (lookup_language_this): Update call to
4875 language_defn::name.
4876
4877 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * ada-lang.c (ada_language_data): Remove la_name_of_this
4880 initializer.
4881 * ax-gdb.c (gen_expr): Update call to name_of_this.
4882 * c-exp.y (classify_name): Likewise.
4883 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4884 (cplus_language_data): Likewise.
4885 (cplus_language::name_of_this): New member function.
4886 (asm_language_data): Remove la_name_of_this initializer.
4887 (minimal_language_data): Likewise.
4888 * d-lang.c (d_language_data): Likewise.
4889 (d_language::name_of_this): New member function.
4890 * expprint.c (print_subexp_standard): Update call to name_of_this.
4891 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4892 * go-lang.c (go_language_data): Likewise.
4893 * language.c (unknown_language_data): Likewise.
4894 (unknown_language::name_of_this): New member function.
4895 (auto_language_data): Remove la_name_of_this initializer.
4896 (auto_language::name_of_this): New member function.
4897 * language.h (language_data): Delete la_name_of_this member
4898 variable.
4899 (language_defn::name_of_this): New member function.
4900 * m2-lang.c (m2_language_data): Remove la_name_of_this
4901 initializer.
4902 * objc-lang.c (objc_language_data): Likewise.
4903 (objc_language::name_of_this): New member function.
4904 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4905 initializer.
4906 * p-lang.c (pascal_language_data): Likewise.
4907 (pascal_language::name_of_this): New member function.
4908 * rust-lang.c (rust_language_data): Remove la_name_of_this
4909 initializer.
4910 * symtab.c (lookup_language_this): Update call to name_of_this.
4911 (lookup_symbol_aux): Likewise.
4912 * valops.c (value_of_this): Likewise.
4913
4914 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4915
4916 * ada-lang.c (ada_language_data): Remove
4917 la_struct_too_deep_ellipsis initializer.
4918 (ada_language::struct_too_deep_ellipsis): New member function.
4919 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4920 initializer.
4921 (cplus_language_data): Likewise.
4922 (asm_language_data): Likewise.
4923 (minimal_language_data): Likewise.
4924 * cp-valprint.c (cp_print_value): Update call to
4925 struct_too_deep_ellipsis.
4926 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4927 initializer.
4928 * f-lang.c (f_language_data): Likewise.
4929 (f_language::struct_too_deep_ellipsis): New member function.
4930 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4931 initializer.
4932 * language.c (unknown_language_data): Likewise.
4933 (auto_language_data): Likewise.
4934 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4935 member variable.
4936 (language_defn::struct_too_deep_ellipsis): New member function.
4937 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4938 initializer.Q
4939 * objc-lang.c (objc_language_data): Likewise.
4940 * opencl-lang.c (opencl_language_data): Likewise.
4941 * p-lang.c (pascal_language_data): Likewise.
4942 * rust-lang.c (rust_language_data): Likewise.
4943 * valprint.c (val_print_check_max_depth): Update call to
4944 struct_too_deep_ellipsis.
4945
4946 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4947
4948 * MAINTAINERS (Write After Approval): Add myself.
4949
4950 2020-09-15 Tom Tromey <tom@tromey.com>
4951
4952 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4953 Remove.
4954
4955 2020-09-15 Tom Tromey <tom@tromey.com>
4956
4957 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4958 and TYPE_CODE_METHODPTR cases.
4959 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4960 (c_value_print_inner): Update.
4961 * valprint.c (generic_value_print_memberptr): New function, from
4962 c_value_print_memberptr.
4963 (generic_value_print): Use it. Call cplus_print_method_ptr.
4964
4965 2020-09-15 Tom Tromey <tromey@adacore.com>
4966
4967 * python/python-internal.h (PyInt_FromLong): Remove define.
4968 * python/py-value.c (convert_value_from_python): Use
4969 gdb_py_object_from_longest.
4970 * python/py-type.c (typy_get_code): Use
4971 gdb_py_object_from_longest.
4972 * python/py-symtab.c (salpy_get_line): Use
4973 gdb_py_object_from_longest.
4974 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4975 gdb_py_object_from_longest.
4976 * python/py-record.c (recpy_gap_reason_code): Use
4977 gdb_py_object_from_longest.
4978 * python/py-record-btrace.c (recpy_bt_insn_size)
4979 (recpy_bt_func_level, btpy_list_count): Use
4980 gdb_py_object_from_longest.
4981 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4982 gdb_py_object_from_longest. Fix error handling.
4983 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4984 gdb_py_object_from_longest.
4985 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4986 gdb_py_object_from_longest.
4987 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4988 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4989 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4990
4991 2020-09-15 Tom Tromey <tromey@adacore.com>
4992
4993 * python/python.c (gdbpy_parameter_value): Use
4994 gdb_py_object_from_ulongest.
4995
4996 2020-09-15 Tom Tromey <tromey@adacore.com>
4997
4998 * python/py-infevents.c (create_register_changed_event_object):
4999 Use gdb_py_object_from_longest.
5000 * python/py-exitedevent.c (create_exited_event_object): Use
5001 gdb_py_object_from_longest.
5002
5003 2020-09-15 Tom Tromey <tromey@adacore.com>
5004
5005 * python/python.c (gdbpy_parameter_value): Use
5006 gdb_py_object_from_longest.
5007 * python/py-type.c (convert_field, typy_range): Use
5008 gdb_py_object_from_longest.
5009 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5010 gdb_py_object_from_longest.
5011 * python/py-lazy-string.c (stpy_get_length): Use
5012 gdb_py_object_from_longest.
5013 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5014 gdb_py_object_from_longest.
5015 * python/py-infevents.c (create_memory_changed_event_object): Use
5016 gdb_py_object_from_longest.
5017 * python/py-inferior.c (infpy_get_num): Use
5018 gdb_py_object_from_longest.
5019 (infpy_get_pid): Likewise.
5020
5021 2020-09-15 Tom Tromey <tromey@adacore.com>
5022
5023 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5024 defines.
5025 * python/py-value.c (valpy_long): Use
5026 gdb_py_object_from_ulongest.
5027 * python/py-symtab.c (salpy_get_pc): Use
5028 gdb_py_object_from_ulongest.
5029 (salpy_get_last): Likewise.
5030 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5031 gdb_py_object_from_ulongest.
5032 * python/py-lazy-string.c (stpy_get_address): Use
5033 gdb_py_object_from_ulongest.
5034 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5035 * python/py-arch.c (archpy_disassemble): Use
5036 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5037 error handling.
5038
5039 2020-09-15 Tom Tromey <tromey@adacore.com>
5040
5041 * python/python-internal.h (gdb_py_long_from_longest): Remove
5042 defines.
5043 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5044 * python/py-type.c (convert_field, typy_get_sizeof): Use
5045 gdb_py_object_from_longest.
5046 * python/py-record-btrace.c (btpy_list_index): Use
5047 gdb_py_object_from_longest.
5048
5049 2020-09-15 Tom Tromey <tromey@adacore.com>
5050
5051 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5052 * python/py-record.c (recpy_element_number): Use
5053 gdb_py_object_from_longest.
5054 (recpy_gap_number): Likewise.
5055
5056 2020-09-15 Tom Tromey <tromey@adacore.com>
5057
5058 * top.c (ui::ui): Update.
5059 (highest_ui_num): Remove.
5060 * top.h (struct ui) <num>: Remove.
5061
5062 2020-09-15 Tom Tromey <tromey@adacore.com>
5063
5064 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5065 * ui-style.c (ansi_regex_text): Now array.
5066 * rust-exp.y (number_regex_text): Now array.
5067 * linespec.c (linespec_quote_characters): Now array.
5068 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5069 Now arrays.
5070
5071 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5072
5073 * debuginfod-support.c (debuginfod_client_deleter): New.
5074 (debuginfod_client_up): New.
5075 (debuginfod_init): Return debuginfod_client_up.
5076 (debuginfod_source_query): Adjust.
5077 (debuginfod_debuginfo_query): Adjust.
5078
5079 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * debuginfod-support.c (debuginfod_source_query): Use
5082 make_unique_xstrdup.
5083
5084 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5087 with `type::instance_flags`.
5088
5089 2020-09-14 Michael Mullin <masmullin@gmail.com>
5090
5091 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5092 Remove baton parameter.
5093
5094 2020-09-14 Pedro Alves <pedro@palves.net>
5095
5096 * Makefile.in (SELFTESTS_SRCS): Add
5097 unittests/enum-flags-selftests.c.
5098 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5099 btrace_function_flags instead of enum btrace_function_flag.
5100 * compile/compile-c-types.c (convert_qualified): Use
5101 enum_flags::raw.
5102 * compile/compile-cplus-symbols.c (convert_one_symbol)
5103 (convert_symbol_bmsym):
5104 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5105 (compile_cplus_convert_struct_or_union_methods)
5106 (compile_cplus_instance::convert_qualified_base):
5107 * go-exp.y (parse_string_or_char): Add cast to int.
5108 * unittests/enum-flags-selftests.c: New file.
5109 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5110 type to btrace_thread_flags from btrace_thread_flag.
5111 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5112 local's type to btrace_thread_flags from btrace_thread_flag. Add
5113 cast in DEBUG call.
5114
5115 2020-09-14 Pedro Alves <pedro@palves.net>
5116
5117 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5118 * gdbtypes.c (address_space_name_to_int): Rename to ...
5119 (address_space_name_to_type_instance_flags): ... this.
5120 (address_space_int_to_name): Rename to ...
5121 (address_space_type_instance_flags_to_name): ... this.
5122 * gdbtypes.h (address_space_name_to_int): Rename to ...
5123 (address_space_name_to_type_instance_flags): ... this.
5124 (address_space_int_to_name): Rename to ...
5125 (address_space_type_instance_flags_to_name): ... this.
5126 * type-stack.c (type_stack::insert): Adjust to rename.
5127 * type-stack.h (type_stack::insert): Likewise.
5128
5129 2020-09-14 Pedro Alves <pedro@palves.net>
5130 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * avr-tdep.c (avr_address_class_type_flags): Return
5133 type_instance_flags.
5134 (avr_address_class_type_flags_to_name): Take a
5135 type_instance_flags.
5136 (avr_address_class_name_to_type_flags): Return bool and take a
5137 type_instance_flags.
5138 * d-lang.c (build_d_types): Use type::set_instance_flags.
5139 * ft32-tdep.c (ft32_address_class_type_flags): Return
5140 type_instance_flags.
5141 (ft32_address_class_type_flags_to_name): Take a
5142 type_instance_flags.
5143 (ft32_address_class_name_to_type_flags): Return bool and take a
5144 type_instance_flags.
5145 (ft32_gdbarch_init): Use type::set_instance_flags.
5146 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5147 * gdbarch.h, gdbarch.c: Regenerate.
5148 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5149 (address_class_name_to_type_flags): Use type_instance_flags and
5150 bool.
5151 * gdbtypes.c (address_space_name_to_int)
5152 (address_space_int_to_name, make_qualified_type): Use
5153 type_instance_flags.
5154 (make_qualified_type): Use type_instance_flags and
5155 type::set_instance_flags.
5156 (make_type_with_address_space, make_cv_type, make_vector_type)
5157 (check_typedef): Use type_instance_flags.
5158 (recursive_dump_type): Cast type_instance_flags to unsigned for
5159 printing.
5160 (copy_type_recursive): Use type::set_instance_flags.
5161 (gdbtypes_post_init): Use type::set_instance_flags.
5162 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5163 <m_instance_flags>: ... this.
5164 <instance_flags, set_instance_flags>: New methods.
5165 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5166 (SET_TYPE_INSTANCE_FLAGS): New.
5167 (address_space_name_to_int, address_space_int_to_name)
5168 (make_type_with_address_space): Pass flags using
5169 type_instance_flags instead of int.
5170 * stabsread.c (cleanup_undefined_types_noname): Use
5171 type::set_instance_flags.
5172 * s390-tdep.c (s390_address_class_type_flags): Return
5173 type_instance_flags.
5174 (s390_address_class_type_flags_to_name): Take a
5175 type_instance_flags.
5176 (s390_address_class_name_to_type_flags): Return bool and take a
5177 type_instance_flags.
5178 * type-stack.c (type_stack::follow_types): Use
5179 type_instance_flags.
5180 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5181
5182 2020-09-14 Tom Tromey <tromey@adacore.com>
5183
5184 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5185 * x86-tdep.c (x86_is_thunk_register_name)
5186 (x86_in_indirect_branch_thunk): Update.
5187 * sparc64-tdep.c (sparc64_fpu_register_names)
5188 (sparc64_cp0_register_names, sparc64_register_names)
5189 (sparc64_pseudo_register_names): Now const.
5190 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5191 cp0_registers_num>: Now const.
5192 * sparc-tdep.c (sparc_core_register_names)
5193 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5194 (sparc32_pseudo_register_names): Now const.
5195 (validate_tdesc_registers): Update.
5196 * rust-lang.c (rust_extensions): Now const.
5197 * p-lang.c (p_extensions): Now const.
5198 * objc-lang.c (objc_extensions): Now const.
5199 * nto-tdep.c (nto_thread_state_str): Now const.
5200 * moxie-tdep.c (moxie_register_names): Now const.
5201 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5202 Now const.
5203 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5204 (mips_linux_reg_names): Now const.
5205 (mips_gdbarch_init): Update.
5206 * microblaze-tdep.c (microblaze_register_names): Now const.
5207 * m68k-tdep.c (m68k_register_names): Now const.
5208 * m32r-tdep.c (m32r_register_names): Now const.
5209 * ia64-tdep.c (ia64_register_names): Now const.
5210 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5211 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5212 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5213 ymm_avx512_register_names, pkeys_register_names>: Now const.
5214 * i386-tdep.c (i386_register_names, i386_zmm_names)
5215 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5216 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5217 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5218 * f-lang.c (f_extensions): Now const.
5219 * d-lang.c (d_extensions): Now const.
5220 * csky-tdep.c (csky_register_names): Now const.
5221 * charset.c (default_charset_names, charset_enum): Now const.
5222 (_initialize_charset): Update.
5223 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5224 const.
5225 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5226 (bsd_uthread_solib_loaded): Update.
5227 (bsd_uthread_state): Now const.
5228 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5229 (amd64_ymm_avx512_names, amd64_ymmh_names)
5230 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5231 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5232 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5233 (amd64_dword_names): Now const.
5234 * agent.c (can_use_agent_enum): Now const.
5235 * ada-tasks.c (task_states, long_task_states): Now const.
5236 * ada-lang.c (known_runtime_file_name_patterns)
5237 (known_auxiliary_function_name_patterns, attribute_names)
5238 (standard_exc, ada_extensions): Now const.
5239
5240 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5241
5242 * bcache.h (struct bcache) <bcache>: Remove constructor.
5243 <m_hash_function, m_compare_function>: Remove.
5244 <~bcache>: Make virtual.
5245 <compare>: Remove static method, introduce virtual method.
5246 <default_hash>: Remove.
5247 <hash>: New virtual method.
5248 * bcache.c (bcache::expand_hash_table): Update.
5249 (bcache::insert): Update.
5250 (bcache::hash): New.
5251 (bcache::compare): Update comment and parameter names.
5252 * gdbtypes.c (types_deeply_equal): Update.
5253 * psymtab.h (struct psymbol_bcache): New struct.
5254 (class psymtab_storage) <psymtab_storage>: Make default.
5255 <psymbol_cache>: Change type to psymbol_bcache.
5256 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5257 (psymbol_hash): Change to...
5258 (psymbol_bcache::hash): ... this.
5259 (psymbol_compare): Change to...
5260 (psymbol_bcache::compare): ... this.
5261
5262 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5263
5264 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5265 checking for initial lwp.
5266
5267 2020-09-14 Tom Tromey <tromey@adacore.com>
5268
5269 * m68k-tdep.c (m68k_extract_return_value): Use
5270 pointer_result_regnum.
5271 (m68k_store_return_value): Likewise.
5272 (m68k_reg_struct_return_p): Handle vectors and arrays.
5273 (m68k_return_value): Handle arrays.
5274 (m68k_svr4_return_value): Fix single-element aggregate handling.
5275 Handle long double. Adjust for embedded ABI.
5276 (m68k_svr4_init_abi): Set pointer_result_regnum.
5277 (m68k_embedded_init_abi): New function.
5278 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5279 (m68k_osabi_sniffer): New function.
5280 (_initialize_m68k_tdep): Register osabi sniffer.
5281 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5282 member.
5283
5284 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5285
5286 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5287 with gdb::unique_xmalloc_ptr<char>.
5288
5289 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 * xml-support.h (xml_fetch_another): Change type to be a
5292 function_view.
5293 (xml_process_xincludes): Remove baton parameter.
5294 (xml_fetch_content_from_file): Change baton parameter to
5295 dirname.
5296 * xml-support.c (struct xinclude_parsing_data)
5297 <xinclude_parsing_data>: Remove baton parameter.
5298 <fetcher_baton>: Remove.
5299 (xinclude_start_include): Adjust.
5300 (xml_process_xincludes): Adjust.
5301 (xml_fetch_content_from_file): Replace baton parameter with
5302 dirname.
5303 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5304 (xml_init_syscalls_info): Use a lambda.
5305 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5306 (file_read_description_xml): Use a lambda.
5307 (fetch_available_features_from_target): Change baton parameter
5308 to target_ops.
5309 (target_read_description_xml): Use a lambda.
5310 (target_fetch_description_xml): Use a lambda.
5311 (string_read_description_xml): Update.
5312
5313 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5316 uses with type::endianity_is_not_default.
5317
5318 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * gdbtypes.h (struct type) <endianity_is_not_default,
5321 set_endianity_is_not_default>: New methods.
5322 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5323 type::endianity_is_not_default, change all write call sites to
5324 use type::set_endianity_is_not_default.
5325
5326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5329 uses with type::is_fixed_instance.
5330
5331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * gdbtypes.h (struct type) <is_fixed_instance,
5334 set_is_fixed_instance>: New methods.
5335 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5336 write call sites to use type::set_is_fixed_instance.
5337
5338 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5339
5340 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5341 uses with type::is_gnu_ifunc.
5342
5343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5346 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5347 use type::set_is_gnu_ifunc.
5348
5349 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5352 uses with type::stub_is_supported.
5353
5354 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5357 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5358 use type::set_stub_is_supported.
5359
5360 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5361
5362 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5363 uses with type::is_vector.
5364
5365 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5368 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5369 use type::set_is_vector.
5370
5371 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5372
5373 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5374 uses with type::has_varargs.
5375
5376 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5379 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5380 use type::set_has_varargs.
5381
5382 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5385 uses with type::is_prototyped.
5386
5387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5390 New methods.
5391 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5392 call sites to use type::set_is_prototyped.
5393
5394 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5397 uses with type::target_is_stub.
5398
5399 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5402 New methods.
5403 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5404 sites to use type::set_target_is_stub.
5405
5406 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5407
5408 * gdbtypes.h (TYPE_STUB): Remove, replace all
5409 uses with type::is_stub.
5410
5411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5414 (TYPE_STUB): Use type::is_stub, change all write call sites to
5415 use type::set_is_stub.
5416
5417 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5420 type::has_no_signedness.
5421
5422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5423
5424 * gdbtypes.h (struct type) <has_no_signedness,
5425 set_has_no_signedness>: New methods.
5426 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5427 call sites to use type::set_has_no_signedness.
5428
5429 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5432 type::is_unsigned.
5433
5434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5437 methods.
5438 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5439 sites to use type::set_is_unsigned.
5440
5441 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5442 Adam Renquinha <arenquinha@cimeq.qc.ca>
5443
5444 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5445 pointer and stack frame offset when unwinding.
5446
5447 2020-09-13 Pedro Alves <pedro@palves.net>
5448
5449 * NEWS: Document "-break-insert --qualified".
5450 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5451
5452 2020-09-13 Pedro Alves <pedro@palves.net>
5453
5454 * linespec.c (classify_mtype, compare_msyms): Delete.
5455 (search_minsyms_for_name): Remove classification logic. Instead
5456 filter out trampoline symbols if we also found an external
5457 function of the same name.
5458
5459 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5460
5461 * NEWS: Create a new section for the next release branch.
5462 Rename the section of the current branch, now that it has
5463 been cut.
5464
5465 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5466
5467 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5468 * version.in: Bump version to 11.0.50.DATE-git.
5469
5470 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5471
5472 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5473
5474 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5475 Felix Willgerodt <Felix.Willgerodt@intel.com>
5476
5477 * gdbarch.sh: Added bfloat16 type.
5478 * gdbarch.c: Regenerated.
5479 * gdbarch.h: Regenerated.
5480 * gdbtypes.c (floatformats_bfloat16): New struct.
5481 (gdbtypes_post_init): Add builtin_bfloat16.
5482 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5483 (floatformats_bfloat16): New struct.
5484 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5485 (i386_ymm_type): Add field "v16_bfloat16"
5486 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5487 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5488 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5489 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5490 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5491 * features/i386/64bit-avx512.c: Regenerated.
5492 * features/i386/64bit-sse.xml: Add bfloat16 type.
5493 * features/i386/64bit-sse.c: Regenerated.
5494
5495 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5496
5497 * i386-tdep.c (i386_zmm_type): Fix field names.
5498 (i386_ymm_type): Fix field names.
5499
5500 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5501
5502 * breakpoint.c: Fix typo in the help message of the
5503 "set breakpoint condition-evaluation" command.
5504
5505 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5506
5507 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5508 * (nbsd_nat_target::pid_to_exec_file)
5509 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5510 (nbsd_nat_target::post_startup_inferior)
5511 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5512 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5513 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5514 * (nbsd_thread_lister): Remove.
5515
5516 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5517
5518 * fork-inferior.c (startup_inferior): Avoid double free.
5519
5520 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5521
5522 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5523 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5524
5525 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5526
5527 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5528 * netbsd-nat.c: Include <sys/ptrace.h>.
5529 * (netbsd_nat::enable_proc_events): Add.
5530
5531 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5532
5533 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5534 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5535 (netbsd_nat::for_each_thread): Add.
5536 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5537 "gdbsupport/common-debug.h".
5538 * (netbsd_nat::netbsd_thread_lister)
5539 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5540 (netbsd_nat::for_each_thread): Add.
5541
5542 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5543
5544 * netbsd-nat.h: Include <unistd.h>.
5545 * (netbsd_nat::pid_to_exec_file): Add.
5546 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5547 * (netbsd_nat::pid_to_exec_file) Add.
5548
5549 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5550
5551 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5552
5553 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5554
5555 * netbsd-nat.h: New file.
5556 * netbsd-nat.c: Likewise.
5557
5558 2020-09-09 Tom Tromey <tromey@adacore.com>
5559
5560 * ada-lang.c (remove_extra_symbols): Do not increment when
5561 removing an element
5562
5563 2020-09-08 Tom Tromey <tromey@adacore.com>
5564
5565 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5566
5567 2020-09-08 Tom Tromey <tromey@adacore.com>
5568
5569 PR win32/25302:
5570 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5571 (gdb_bfd_init_data): New function.
5572 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5573
5574 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5575
5576 * infrun.c (fetch_inferior_event): Use
5577 `switch_to_target_no_thread` to switch the target.
5578
5579 2020-09-06 Tom Tromey <tom@tromey.com>
5580
5581 * symfile.h (dwarf2_free_objfile): Don't declare.
5582
5583 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5584
5585 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5586 to match 16 byte real/complex type generated by Flang compiler.
5587
5588 2020-09-03 Tom de Vries <tdevries@suse.de>
5589
5590 PR breakpoint/26546
5591 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5592 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5593
5594 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5595
5596 * maint.c (index_digits): New function.
5597 (struct maint_print_section_data): Remove.
5598 (print_bfd_section_info): Remove print_data parameter, add arg
5599 and index_digits.
5600 (print_objfile_section_info): Likewise.
5601 (print_bfd_section_info_maybe_relocated): Likewise (plus
5602 objfile).
5603 (maintenance_info_sections): Adjust calls.
5604
5605 2020-09-02 Tom Tromey <tromey@adacore.com>
5606
5607 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5608 for null pointers.
5609 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5610
5611 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 * bcache.h (struct bcache) <insert>: Change type of `added` to
5614 pointer to bool.
5615 * bcache.c (bcache::insert): Likewise.
5616 * gdbtypes.c (check_types_worklist): Adjust.
5617 * psymtab.c (add_psymbol_to_bcache): Adjust.
5618
5619 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5620
5621 * corelow.c (unordered_set): Include.
5622 (class core_target): Add field 'm_core_unavailable_mappings'.
5623 (core_target::build_file_mappings): Print only one warning
5624 per inaccessible file. Add unavailable/broken mappings
5625 to m_core_unavailable_mappings.
5626 (core_target::xfer_partial): Call...
5627 (core_target::xfer_memory_via_mappings): New method.
5628
5629 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5630
5631 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5632 type to bool.
5633
5634 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * dwarf2/read.c (struct field_info): Fix indentation.
5637
5638 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5641 ordering in comment.
5642 * frame.c (frame_id_eq): Fix indentation.
5643
5644 2020-08-31 Scott Linder <scott@scottlinder.com>
5645 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5648 inline frame ids in outer frame.
5649
5650 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5653 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5654 (outer_frame_id): Use FID_STACK_OUTER instead of
5655 FID_STACK_INVALID.
5656 (frame_id_p): Don't check for outer_frame_id.
5657
5658 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5659
5660 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5661 regnum/frame in value. Call allocate_value_lazy.
5662 * frame.c (frame_unwind_register_value): Use
5663 val_print_not_saved.
5664
5665 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5668
5669 2020-08-29 Pedro Alves <pedro@palves.net>
5670
5671 * progspace.c (print_program_space): Use all_inferiors. Switch to
5672 the inferior before calling target_pid_to_str.
5673
5674 2020-08-28 Tom Tromey <tom@tromey.com>
5675
5676 * xcoffread.c (xcoff_end_psymtab): Update comment.
5677 * dbxread.c (dbx_end_psymtab): Update comment.
5678
5679 2020-08-28 Tom de Vries <tdevries@suse.de>
5680
5681 PR breakpoint/26544
5682 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5683 event_location.
5684 (create_breakpoint): Same.
5685 (base_breakpoint_decode_location): Same.
5686 (bkpt_create_sals_from_location): Same.
5687 (bkpt_decode_location): Same.
5688 (bkpt_probe_create_sals_from_location): Same.
5689 (bkpt_probe_decode_location): Same.
5690 (tracepoint_create_sals_from_location): Same.
5691 (tracepoint_decode_location): Same.
5692 (tracepoint_probe_decode_location): Same.
5693 (strace_marker_create_sals_from_location): Same.
5694 (strace_marker_decode_location): Same.
5695 (create_sals_from_location_default): Same.
5696 (decode_location_default): Same.
5697 * breakpoint.h (struct breakpoint_ops): Same.
5698 (create_breakpoint): Same.
5699 * linespec.h (decode_line_full): Same.
5700 * linespec.c (decode_line_full): Same. Throw error if
5701 result.size () == 0.
5702
5703 2020-08-27 Pedro Alves <pedro@palves.net>
5704
5705 PR gdb/26524
5706 * breakpoint.c (until_break_fsm) <location_breakpoint,
5707 caller_breakpoint>: Delete fields.
5708 <breakpoints>: New field.
5709 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5710 two individual breakpoints.
5711 (until_break_fsm::should_stop): Loop over breakpoints in the
5712 breakpoint vector.
5713 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5714 vector.
5715 (until_break_command): Handle location expanding into multiple
5716 sals.
5717
5718 2020-08-27 Pedro Alves <pedro@palves.net>
5719
5720 PR gdb/26523
5721 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5722 bp_until breakpoints user-specified locations. Update intro
5723 comment.
5724
5725 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5728 gdb_bfd_sections): New.
5729 * maint.c (print_bfd_section_info): Change param type to
5730 maint_print_section_data.
5731 (print_objfile_section_info): Likewise.
5732 (print_bfd_section_info_maybe_relocated): Likewise.
5733 (maintenance_info_sections): Use gdb_bfd_sections.
5734
5735 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5736
5737 * MAINTAINERS: Add ARC target and maintainer.
5738
5739 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5740
5741 * configure.tgt: ARC support for GNU/Linux.
5742 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5743 * arc-linux-tdep.c: New file.
5744 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5745 * arc-tdep.c (arc_write_pc): Use it.
5746
5747 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5748
5749 * arc-tdep.c (arc_check_for_hardware_loop): New.
5750 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5751
5752 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5753
5754 * arc-tdep.h: Include "gdbarch.h".
5755
5756 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5757
5758 * arch/arc.h
5759 (arc_gdbarch_features): New class to stir the selection of target XML.
5760 (arc_create_target_description): Use FEATURES to choose XML target.
5761 (arc_lookup_target_description): Use arc_create_target_description
5762 to create _new_ target descriptions or return the already created
5763 ones if the FEATURES is the same.
5764 * arch/arc.c: Implementation of prototypes described above.
5765 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5766 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5767 * arc-tdep.c (*_feature_name): Make feature names consistent.
5768 (arc_register_feature): A new struct to hold information about
5769 registers of a particular target/feature.
5770 (arc_check_tdesc_feature): Check if XML provides registers in
5771 compliance with ARC_REGISTER_FEATURE structs.
5772 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5773 (determine_*_reg_feature_set): Which feature name to look for.
5774 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5775 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5776 to expected ISA enums to be used in arc_gdbarch_features structs.
5777 * features/Makefile (FEATURE_XMLFILES): Add new files.
5778 * gdb/features/arc/v1-aux.c: New file.
5779 * gdb/features/arc/v1-aux.xml: Likewise.
5780 * gdb/features/arc/v1-core.c: Likewise.
5781 * gdb/features/arc/v1-core.xml: Likewise.
5782 * gdb/features/arc/v2-aux.c: Likewise.
5783 * gdb/features/arc/v2-aux.xml: Likewise.
5784 * gdb/features/arc/v2-core.c: Likewise.
5785 * gdb/features/arc/v2-core.xml: Likewise.
5786 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5787
5788 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5789 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 PR m2/26372
5792 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5793 an assert. Remove single element array indexing pattern as the
5794 MULTI_SUBSCRIPT support will handle this case too.
5795
5796 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5797
5798 * value.h (valprint_check_validity): Move declaration from
5799 here...
5800 * valprint.h (valprint_check_validity): ... to here.
5801
5802 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * debug.h: New file.
5805 * debug.c (debug_prefixed_vprintf): New function.
5806 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5807 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5808
5809 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * infrun.h (infrun_debug_printf_1): New function declaration.
5812 (infrun_debug_printf): New macro.
5813 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5814 throughout.
5815 (infrun_debug_printf): New function.
5816 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5817 (handle_jit_event): Likewise.
5818
5819 2020-08-21 Mark Wielaard <mark@klomp.org>
5820
5821 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5822
5823 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * frame.c (enum class frame_id_status): New.
5826 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5827 (fprintf_frame): Update.
5828 (compute_frame_id): Set frame id status to "computing" on entry.
5829 Set it back to "not_computed" on failure and to "computed" on
5830 success.
5831 (get_frame_id): Assert the frame id is not being computed.
5832 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5833 (create_new_frame): Likewise.
5834 (frame_cleanup_after_sniffer): Update assert.
5835
5836 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5837
5838 * regcache.c (pid_ptid_regcache_map): New type.
5839 (target_ptid_regcache_map): Remove.
5840 (target_pid_ptid_regcache_map): New type.
5841 (regcaches): Change type to target_pid_ptid_regcache_map.
5842 (get_thread_arch_aspace_regcache): Update.
5843 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5844 case.
5845 (regcaches_size): Update.
5846 (regcache_count): Update.
5847 (registers_changed_ptid_target_pid_test): New.
5848 (_initialize_regcache): Register new test.
5849
5850 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * regcache.c (regcache_count): New.
5853 (struct regcache_test_data): New.
5854 (regcache_test_data_up): New.
5855 (populate_regcaches_for_test): New.
5856 (regcaches_test): Remove.
5857 (get_thread_arch_aspace_regcache_test): New.
5858 (registers_changed_ptid_all_test): New.
5859 (registers_changed_ptid_target_test): New.
5860 (registers_changed_ptid_target_ptid_test): New.
5861 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5862 (_initialize_regcache): Register new tests.
5863
5864 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5867 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5868 gdbarch and aspace parameter. Use current inferior's aspace.
5869 Validate regcache's arch value.
5870 (regcaches_test): Update.
5871
5872 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * regcache.c (regcaches_test): Call registers_changed.
5875
5876 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5877
5878 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5879
5880 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5881
5882 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5883 to find the end of prologue for flang compiled binaries.
5884 * arm-tdep.c (arm_skip_prologue): Likewise.
5885 * i386-tdep.c (i386_skip_prologue): Likewise.
5886 * producer.c (producer_is_llvm): New function.
5887 (producer_parsing_tests): Added new tests for clang/flang.
5888 * producer.h (producer_is_llvm): New declaration.
5889
5890 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * linux-nat.c (linux_nat_debug_printf): New function.
5893 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5894
5895 2020-08-18 Aaron Merey <amerey@redhat.com>
5896
5897 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5898 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5899 (CLIBS): Add DEBUGINFOD_LIBS.
5900
5901 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5902
5903 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5904 'gdbarch_num_regs'.
5905
5906 2020-08-17 Tom Tromey <tromey@adacore.com>
5907
5908 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5909 ada_get_decoded_value returns NULL.
5910
5911 2020-08-17 Tom Tromey <tromey@adacore.com>
5912
5913 * python/py-inferior.c (infpy_search_memory): Use
5914 gdb_py_object_from_ulongest.
5915 * python/py-infevents.c (create_inferior_call_event_object)
5916 (create_memory_changed_event_object): Use
5917 gdb_py_object_from_ulongest.
5918 * python/py-linetable.c (ltpy_entry_get_pc): Use
5919 gdb_py_object_from_ulongest.
5920
5921 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * loc.c (class symbol_needs_eval_context): Fix indentation.
5924
5925 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5928 bool.
5929
5930 2020-08-17 Tom de Vries <tdevries@suse.de>
5931
5932 PR gdb/26393
5933 * gdbtypes.c (dump_dynamic_prop): New function.
5934 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5935
5936 2020-08-15 Tom de Vries <tdevries@suse.de>
5937
5938 PR backtrace/26390
5939 * stack.c (print_frame_args): Temporarily set the selected
5940 frame to FRAME while printing the frame's arguments.
5941
5942 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5943
5944 PR breakpoints/26385
5945 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5946 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5947
5948 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5949
5950 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5951 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5952 and >= to check return value instead of == -1 and != -1.
5953
5954 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5955
5956 * utils.h (class gdb_argv) <as_array_view>: New method.
5957 * utils.c (gdb_argv_as_array_view_test): New.
5958 (_initialize_utils): Register selftest.
5959 * maint.c (maintenance_selftest): Use the new method.
5960
5961 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5962
5963 * target.h (supports_dumpcore, dumpcore): New
5964 function declarations.
5965 * target.c (supports_dumpcore, dumpcore): New
5966 functions.
5967 * target-delegates.c: Rebuild.
5968 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5969 and target_dumpcore ().
5970
5971 2020-08-13 Aaron Merey <amerey@redhat.com>
5972
5973 * debuginfod-support.c: Replace global variables with user_data.
5974
5975 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * maint.c (maintenance_selftest): Split args and pass array_view
5978 to run_tests.
5979
5980 2020-08-12 Luis Machado <luis.machado@linaro.org>
5981
5982 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5983 type's length.
5984 Use %s and pulongest to print the length.
5985
5986 2020-08-12 Pedro Alves <palves@redhat.com>
5987
5988 * NEWS: Move "Multi-target debugging support" item to the
5989 "Changes since GDB 9" section.
5990
5991 2020-08-12 Pedro Alves <palves@redhat.com>
5992
5993 PR gdb/26336
5994 * progspace.c (program_space::remove_objfile): Invalidate the
5995 frame cache.
5996
5997 2020-08-11 Tom de Vries <tdevries@suse.de>
5998
5999 * MAINTAINERS: Mark ms1 as deleted.
6000
6001 2020-08-10 Luis Machado <luis.machado@linaro.org>
6002
6003 PR gdb/26310
6004
6005 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6006 act accordingly.
6007 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6008 movz/str/stur/stp skipping behavior.
6009
6010 2020-08-10 Luis Machado <luis.machado@linaro.org>
6011
6012 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6013 struct user_sve_header instead of struct sve_context.
6014
6015 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * read.h (dwarf2_fetch_die_loc_sect_off,
6018 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6019 `void *` parameter with function_view.
6020 * read.c (dwarf2_fetch_die_loc_sect_off,
6021 dwarf2_fetch_die_loc_cu_off): Likewise.
6022 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6023 (per_cu_dwarf_call): Adjust.
6024 (get_frame_address_in_block_wrapper): Remove.
6025 (indirect_synthetic_pointer): Adjust.
6026 (get_ax_pc): Remove.
6027 (dwarf2_compile_expr_to_ax): Adjust.
6028
6029 2020-08-08 Tom de Vries <tdevries@suse.de>
6030
6031 PR build/26344
6032 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6033 constructor.
6034 * regcache.c (get_thread_arch_aspace_regcache): Same.
6035
6036 2020-08-07 Tom Tromey <tromey@adacore.com>
6037
6038 * ravenscar-thread.c
6039 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6040 New method.
6041 (ravenscar_thread_target::wait): Check
6042 runtime_initialized.
6043 (ravenscar_thread_target::prepare_to_store)
6044 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6045 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6046 (ravenscar_thread_target::stopped_by_watchpoint)
6047 (ravenscar_thread_target::stopped_data_address)
6048 (ravenscar_thread_target::core_of_thread): Use
6049 scoped_restore_current_thread and
6050 set_base_thread_from_ravenscar_task.
6051
6052 2020-08-07 Tom Tromey <tromey@adacore.com>
6053
6054 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6055
6056 2020-08-07 Tom Tromey <tromey@adacore.com>
6057
6058 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6059 update_inferior_ptid before update_thread_list.
6060 (temporarily_change_regcache_ptid): New class.
6061 (ravenscar_thread_target::fetch_registers)
6062 (ravenscar_thread_target::store_registers)
6063 (ravenscar_thread_target::prepare_to_store): Use base thread when
6064 forwarding operation.
6065
6066 2020-08-07 Tom Tromey <tromey@adacore.com>
6067
6068 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6069 "is_pid" case.
6070
6071 2020-08-07 Tom Tromey <tromey@adacore.com>
6072
6073 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6074 New methods.
6075 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6076 first.
6077 (ravenscar_thread_target::add_thread): Rename from
6078 ravenscar_add_thread.
6079 (ravenscar_thread_target::update_thread_list): Use a lambda.
6080 (ravenscar_thread_target::xfer_partial): New method.
6081
6082 2020-08-07 Tom Tromey <tromey@adacore.com>
6083
6084 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6085 gdb::function_view.
6086 (iterate_over_live_ada_tasks): Change type of argument.
6087 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6088 of argument.
6089
6090 2020-08-07 Tom Tromey <tromey@adacore.com>
6091
6092 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6093 Remove.
6094 (ravenscar_thread_target::extra_thread_info): Remove.
6095 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6096 defer to target beneath for non-Ravenscar threads.
6097
6098 2020-08-07 Tom Tromey <tromey@adacore.com>
6099
6100 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6101 get_base_thread_from_ravenscar_task>: Now methods.
6102 <m_cpu_map>: New member.
6103 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6104 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6105 (ravenscar_thread_target::task_is_currently_active): Update.
6106 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6107 Now a method.
6108 (ravenscar_thread_target::add_active_thread): Put initial thread
6109 into the m_cpu_map.
6110
6111 2020-08-07 Tom Tromey <tromey@adacore.com>
6112
6113 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6114 event_ptid.
6115
6116 2020-08-07 Tom Tromey <tromey@adacore.com>
6117
6118 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6119 runtime_initialized.
6120
6121 2020-08-07 Tom Tromey <tromey@adacore.com>
6122
6123 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6124 add_active_thread.
6125 (ravenscar_thread_target::add_active_thread): Now public.
6126 (ravenscar_inferior_created): Call add_active_thread after pushing
6127 the target.
6128
6129 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * regcache.c (ptid_regcache_map): New type.
6132 (target_ptid_regcache_map): New type.
6133 (regcaches): Change type to target_ptid_regcache_map.
6134 (get_thread_arch_aspace_regcache): Update to regcaches' new
6135 type.
6136 (regcache_thread_ptid_changed): Likewise.
6137 (registers_changed_ptid): Likewise.
6138 (regcaches_size): Likewise.
6139 (regcaches_test): Update.
6140 (regcache_thread_ptid_changed): Update.
6141 * regcache.h (regcache_up): New type.
6142 * gdbsupport/ptid.h (hash_ptid): New struct.
6143
6144 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * observable.h (thread_ptid_changed): Add parameter
6147 `process_stratum_target *`.
6148 * infrun.c (infrun_thread_ptid_changed): Add parameter
6149 `process_stratum_target *` and use it.
6150 (selftests): New namespace.
6151 (infrun_thread_ptid_changed): New function.
6152 (_initialize_infrun): Register selftest.
6153 * regcache.c (regcache_thread_ptid_changed): Add parameter
6154 `process_stratum_target *` and use it.
6155 (regcache_thread_ptid_changed): New function.
6156 (_initialize_regcache): Register selftest.
6157 * thread.c (thread_change_ptid): Pass target to
6158 thread_ptid_changed observable.
6159
6160 2020-08-06 Caroline Tice <cmtice@google.com>
6161
6162 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6163 (struct dwp_sections): Update field comments. Add loclists and
6164 rnglists fields.
6165 (struct virtual_v2_dwo_sections): Rename struct to
6166 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6167 size & offset fields for loclists and rnglists.
6168 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6169 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6170 skipping dummy type units.
6171 (create_dwp_hash_table): Update the large comment above the function to
6172 discuss Version 5 DWP files as well, with references. Update all the
6173 version checks in the function to check for version 5 as well. Add new
6174 section at the end to create dwp hash table for version 5.
6175 (create_dwp_v2_section): Rename function to
6176 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6177 Add V5 to error message text.
6178 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6179 into calls to create_dwp_v2_or_v5_section.
6180 (create_dwo_unit_in_dwp_v5): New function.
6181 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6182 check for version2; add else clause to handle version 5.
6183 (open_and_init_dwo_file): Add code to check dwarf version & only call
6184 create_debug_types_hash_table (with sections.types) if version is not 5;
6185 else call create_debug_type_hash_table, with sections.info.
6186 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6187 version 5.
6188 (dwarf2_locate_v5_dwp_sections): New function.
6189 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6190 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6191
6192 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6193
6194 * regcache.h (class regcache): Remove friend
6195 registers_changed_ptid.
6196 <regcache_thread_ptid_changed>: Remove.
6197 <regcaches>: Remove.
6198 * regcache.c (regcache::regcaches): Rename to...
6199 (regcaches): ... this. Make static.
6200 (get_thread_arch_aspace_regcache): Update.
6201 (regcache::regcache_thread_ptid_changed): Rename to...
6202 (regcache_thread_ptid_changed): ... this. Update.
6203 (class regcache_access): Remove.
6204 (regcaches_test): Update.
6205 (_initialize_regcache): Update.
6206 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6207 <forward_list>.
6208
6209 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * regcache.h (class regcache) <current_regcache>: Rename to...
6212 <regcaches>: ... this. Move doc here.
6213 * regcache.c (regcache::current_regcache) Rename to...
6214 (regcache::regcaches): ... this. Move doc to header.
6215 (get_thread_arch_aspace_regcache): Update.
6216 (regcache::regcache_thread_ptid_changed): Update.
6217 (registers_changed_ptid): Update.
6218 (class regcache_access) <current_regcache_size>: Rename to...
6219 <regcaches_size>: ... this.
6220 (current_regcache_test): Rename to...
6221 (regcaches_test): ... this.
6222 (_initialize_regcache): Update.
6223
6224 2020-08-06 Victor Collod <vcollod@nvidia.com>
6225
6226 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6227
6228 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6229
6230 * corelow.c (core_target::build_file_mappings): Don't output
6231 null pathname in warning.
6232
6233 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6236 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6237 gdb.dwarf2/dw2-single-line-discriminators.exp,
6238 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6239
6240 2020-08-05 Tom Tromey <tromey@adacore.com>
6241
6242 PR rust/26197:
6243 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6244 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6245 Fix off-by-one and type size errors in ordinary case.
6246
6247 2020-08-05 Tom de Vries <tdevries@suse.de>
6248
6249 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6250 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6251
6252 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * frame.h (frame_id_p): Return bool.
6255 (frame_id_artificial_p): Return bool.
6256 (frame_id_eq): Return bool.
6257 (has_stack_frames): Return bool.
6258 (get_selected_frame): Fix typo in comment.
6259 (get_frame_pc_if_available): Return bool.
6260 (get_frame_address_in_block_if_available): Return bool.
6261 (get_frame_func_if_available): Return bool.
6262 (read_frame_register_unsigned): Return bool.
6263 (get_frame_register_bytes): Return bool.
6264 (safe_frame_unwind_memory): Return bool.
6265 (deprecated_frame_register_read): Return bool.
6266 (frame_unwinder_is): Return bool.
6267 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6268 bool.
6269 <this_id::p>: Likewise.
6270 <prev_p>: Likewise.
6271 (frame_stash_add): Return bool.
6272 (get_frame_id): Use bool.
6273 (frame_id_build_special) Use bool.
6274 (frame_id_build_unavailable_stack): Use bool.
6275 (frame_id_build): Use bool.
6276 (frame_id_p): Return bool, use true/false instead of 1/0.
6277 (frame_id_artificial_p): Likewise.
6278 (frame_id_eq): Likewise.
6279 (frame_id_inner): Likewise.
6280 (get_frame_func_if_available): Likewise.
6281 (read_frame_register_unsigned): Likewise.
6282 (deprecated_frame_register_read): Likewise.
6283 (get_frame_register_bytes): Likewise.
6284 (has_stack_frames): Likewise.
6285 (inside_main_func): Likewise.
6286 (inside_entry_func): Likewise.
6287 (get_frame_pc_if_available): Likewise.
6288 (get_frame_address_in_block_if_available): Likewise.
6289 (frame_unwinder_is): Likewise.
6290 (safe_frame_unwind_memory): Likewise.
6291 (frame_unwind_arch): Likewise.
6292
6293 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6296 type to cached_copy_status.
6297 (fprintf_frame): Adjust.
6298 (get_frame_func_if_available): Adjust.
6299 (frame_cleanup_after_sniffer): Adjust.
6300
6301 2020-08-04 Mark Wielaard <mark@klomp.org>
6302
6303 * MAINTAINERS (Write After Approval): Update email address.
6304
6305 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6306
6307 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6308 dynamic_prop::const_val.
6309
6310 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6313 dynamic_prop::kind.
6314
6315 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6318
6319 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6320
6321 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6322
6323 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6324 Jose E. Marchesi <jose.marchesi@oracle.com>
6325
6326 * configure.tgt: Add entry for bpf-*-*.
6327 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6328 (ALLDEPFILES): Add bpf-tdep.c.
6329 * bpf-tdep.c: New file.
6330 * MAINTAINERS: Add bpf target and maintainer.
6331 * NEWS: Mention the support for the new target.
6332
6333 2020-08-04 Tom de Vries <tdevries@suse.de>
6334
6335 PR symtab/23270
6336 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6337 Error.
6338
6339 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6340
6341 * syscalls/freebsd.xml: Regenerate.
6342
6343 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6344
6345 * syscalls/update-freebsd.sh: Fix usage and year range.
6346
6347 2020-08-03 Tom de Vries <tdevries@suse.de>
6348
6349 PR symtab/26333
6350 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6351 DW_LNE_lo_user/DW_LNE_hi_user range.
6352
6353 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 PR ada/26318
6356 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6357 kind.
6358
6359 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6360
6361 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6362
6363 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6364
6365 * breakpoint.c (set_breakpoint_condition): Update the condition
6366 expressions after checking that the input condition string parses
6367 successfully and does not contain junk at the end.
6368
6369 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6370
6371 * breakpoint.c (set_breakpoint_condition): Update the
6372 condition string after parsing the new condition successfully.
6373
6374 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6375
6376 * proc-api.c (_STRUCTURED_PROC): Don't define.
6377 * proc-events.c: Likewise.
6378 * proc-flags.c: Likewise.
6379 * proc-why.c: Likewise.
6380 * procfs.c: Likewise.
6381
6382 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6383 * configure, config.in: Regenerate.
6384
6385 2020-07-30 Tom de Vries <tdevries@suse.de>
6386
6387 PR build/26320
6388 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6389 m_red/m_green/m_blue in a union.
6390
6391 2020-07-29 Tom de Vries <tdevries@suse.de>
6392
6393 PR tdep/26280
6394 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6395
6396 2020-07-28 Tom Tromey <tromey@adacore.com>
6397
6398 PR symtab/26270:
6399 * symtab.h (find_pc_partial_function_sym): Declare.
6400 * cli/cli-cmds.c (disassemble_command): Use
6401 find_pc_partial_function_sym. Check asm_demangle.
6402 * blockframe.c (cache_pc_function_sym): New global.
6403 (cache_pc_function_name): Remove.
6404 (clear_pc_function_cache): Update.
6405 (find_pc_partial_function_sym): New function, from
6406 find_pc_partial_function.
6407 (find_pc_partial_function): Rewrite using
6408 find_pc_partial_function_sym.
6409
6410 2020-07-28 Tom Tromey <tromey@adacore.com>
6411
6412 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6413 help. Add usage.
6414
6415 2020-07-28 Tom Tromey <tromey@adacore.com>
6416
6417 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6418 <DW_OP_GNU_variable_value>: Cast to address type.
6419
6420 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6421
6422 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6423 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6424 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6425 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6426 (nbsd_get_siginfo_type): New.
6427 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6428 (_initialize_nbsd_tdep): New.
6429
6430 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6431
6432 PR binutils/26301
6433 * configure: Regenerated.
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 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 * python/py-frame.c: Remove 'user-regs.h' include.
6443 (frapy_read_register): Rewrite to make use of
6444 gdbpy_parse_register_id.
6445 * python/py-registers.c (gdbpy_parse_register_id): New function,
6446 moved here from python/py-unwind.c. Updated the return type, and
6447 also accepts register descriptor objects.
6448 * python/py-unwind.c: Remove 'user-regs.h' include.
6449 (pyuw_parse_register_id): Moved to python/py-registers.c.
6450 (unwind_infopy_add_saved_register): Update to use
6451 gdbpy_parse_register_id.
6452 (pending_framepy_read_register): Likewise.
6453 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6454
6455 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * python/py-registers.c: Add 'user-regs.h' include.
6458 (register_descriptor_iter_find): New function.
6459 (register_descriptor_iterator_object_methods): New static global
6460 methods array.
6461 (register_descriptor_iterator_object_type): Add pointer to methods
6462 array.
6463
6464 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6465
6466 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6467 for all architectures on FreeBSD 11.3 and later.
6468
6469 2020-07-27 Tom Tromey <tromey@adacore.com>
6470
6471 * gcore.h (load_corefile): Don't declare.
6472
6473 2020-07-27 Tom de Vries <tdevries@suse.de>
6474
6475 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6476 * config.in: Regenerate.
6477 * configure: Regenerate.
6478
6479 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6480
6481 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6482 ws2tcpip.h. When checking whether socklen_t type is defined, use
6483 ws2tcpip.h if it is available and sys/socket.h isn't.
6484 * configure: Regenerate.
6485 * config.in: Regenerate.
6486
6487 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 PR fortran/23051
6490 PR fortran/26139
6491 * valops.c (value_ind): Pass address to
6492 readjust_indirect_value_type.
6493 * value.c (readjust_indirect_value_type): Make parameter
6494 non-const, and add extra address parameter. Resolve original type
6495 before using it.
6496 * value.h (readjust_indirect_value_type): Update function
6497 signature and comment.
6498
6499 2020-07-25 Tom de Vries <tdevries@suse.de>
6500
6501 PR symtab/26243
6502 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6503 entries.
6504
6505 2020-07-24 Aaron Merey <amerey@redhat.com>
6506
6507 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6508 * configure: Rebuild.
6509
6510 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6511
6512 PR corefiles/26294
6513 * corelow.c (_initialize_corelow): Add period to help text
6514 for "maintenance print core-file-backed-mappings".
6515
6516 2020-07-23 Pedro Alves <pedro@palves.net>
6517
6518 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6519 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6520 meanwhile.
6521 * frame.c (frame_cache_generation, get_frame_cache_generation):
6522 New.
6523 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6524 (get_prev_frame_if_no_cycle): On exception, don't touch
6525 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6526 * frame.h (get_frame_cache_generation): Declare.
6527
6528 2020-07-23 Tom de Vries <tdevries@suse.de>
6529
6530 PR tui/26282
6531 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6532 New default constructor.
6533
6534 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6535
6536 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6537 exclude non-statement entries.
6538
6539 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6540
6541 * NEWS (New commands): Mention new command
6542 "maintenance print core-file-backed-mappings".
6543
6544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6545
6546 * corelow.c (gdbcmd.h): Include.
6547 (core_target::info_proc_mappings): New method.
6548 (get_current_core_target): New function.
6549 (maintenance_print_core_file_backed_mappings): New function.
6550 (_initialize_corelow): Add core-file-backed-mappings to
6551 "maint print" commands.
6552
6553 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6554
6555 * linux-tdep.c (dump_note_entry_p): New function.
6556 (linux_dump_mapping_p_ftype): New typedef.
6557 (linux_find_memory_regions_full): Add new parameter,
6558 should_dump_mapping_p.
6559 (linux_find_memory_regions): Adjust call to
6560 linux_find_memory_regions_full.
6561 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6562 call to linux_find_memory_regions_full.
6563
6564 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6565
6566 * corelow.c (solist.h, unordered_map): Include.
6567 (class core_target): Add field m_core_file_mappings and
6568 method build_file_mappings.
6569 (core_target::core_target): Call build_file_mappings.
6570 (core_target::~core_target): Free memory associated with
6571 m_core_file_mappings.
6572 (core_target::build_file_mappings): New method.
6573 (core_target::xfer_partial): Use m_core_file_mappings
6574 for memory transfers.
6575 * linux-tdep.c (linux_read_core_file_mappings): New
6576 function.
6577 (linux_core_info_proc_mappings): Rewrite to use
6578 linux_read_core_file_mappings.
6579 (linux_init_abi): Register linux_read_core_file_mappings.
6580
6581 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6582
6583 * arch-utils.c (default_read_core_file_mappings): New function.
6584 * arch-utils.c (default_read_core_file_mappings): Declare.
6585 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6586 * gdbarch.h, gdbarch.c: Regenerate.
6587
6588 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6589
6590 PR corefiles/25631
6591 * corelow.c (core_target:xfer_partial): Revise
6592 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6593 case after first checking the stratum beneath the core
6594 target.
6595 (has_all_memory): Return true.
6596 * target.c (raw_memory_xfer_partial): Revise comment
6597 regarding use of has_all_memory.
6598
6599 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6600
6601 * exec.h (section_table_xfer_memory): Revise declaration,
6602 replacing section name parameter with an optional callback
6603 predicate.
6604 * exec.c (section_table_xfer_memory): Likewise.
6605 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6606 of section_table_xfer_memory.
6607
6608 2020-07-22 Tom Tromey <tromey@adacore.com>
6609
6610 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6611 lookup_symbol_search_name.
6612
6613 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6616 redundant local variable.
6617 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6618 reference, not pointer, update code accordingly.
6619
6620 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6621 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6622
6623 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6624 * jit.c (jit_breakpoint_re_set_internal): Use the
6625 `skip_jit_symbol_lookup` field.
6626
6627 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6628 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6629
6630 * jit.c (jit_read_descriptor): Define the descriptor address once,
6631 use twice.
6632 (jit_breakpoint_deleted): Move the declaration of the loop variable
6633 `iter` into the loop header.
6634 (jit_breakpoint_re_set_internal): Move the declaration of the local
6635 variable `objf_data` to the first point of definition.
6636 (jit_event_handler): Move the declaration of local variables
6637 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6638 Rename `objf` to `jited`.
6639
6640 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6643 Remove.
6644 * jit.c (get_jiter_objfile_data): Update.
6645
6646 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6647 Simon Marchi <simon.marchi@polymtl.ca>
6648
6649 * jit.c (struct jit_program_space_data): Remove.
6650 (jit_program_space_key): Remove.
6651 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6652 stuff.
6653 (get_jit_program_space_data): Remove.
6654 (jit_breakpoint_deleted): Iterate on all of the program space's
6655 objfiles.
6656 (jit_inferior_init): Likewise.
6657 (jit_breakpoint_re_set_internal): Likewise. Also change return
6658 type to void.
6659 (jit_breakpoint_re_set): Pass current_program_space to
6660 jit_breakpoint_re_set_internal.
6661
6662 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6663
6664 * jit.h (struct jiter_objfile_data) <cached_code_address,
6665 jit_breakpoint>: Move to here from ...
6666 * jit.c (jit_program_space_data): ... here.
6667 (jiter_objfile_data::~jiter_objfile_data): Update.
6668 (jit_breakpoint_deleted): Update.
6669 (jit_breakpoint_re_set_internal): Update.
6670
6671 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6672
6673 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6674 checks.
6675 (jit_read_descriptor): Remove NULL check.
6676 (jit_event_handler): Add an assertion.
6677
6678 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * jit.h (struct jit_objfile_data): Split into...
6681 (struct jiter_objfile_data): ... this ...
6682 (struct jited_objfile_data): ... and this.
6683 * objfiles.h (struct objfile) <jit_data>: Remove.
6684 <jiter_data, jited_data>: New fields.
6685 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6686 (jiter_objfile_data::~jiter_objfile_data): ... this.
6687 (get_jit_objfile_data): Rename to ...
6688 (get_jiter_objfile_data): ... this.
6689 (add_objfile_entry): Update.
6690 (jit_read_descriptor): Use get_jiter_objfile_data.
6691 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6692 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6693 (jit_inferior_exit_hook): Use objfile's jited_data field.
6694
6695 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6696
6697 * jit.h: Forward-declare `struct minimal_symbol`.
6698 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6699 constructor, destructor, and an objfile* field.
6700 * jit.c (jit_objfile_data): Remove.
6701 (struct jit_objfile_data): Migrate from here to jit.h.
6702 (jit_objfile_data::~jit_objfile_data): New destructor
6703 implementation with code moved from free_objfile_data.
6704 (free_objfile_data): Delete.
6705 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6706 (jit_find_objf_with_entry_addr): Ditto.
6707 (jit_inferior_exit_hook): Ditto.
6708 (_initialize_jit): Remove the call to
6709 register_objfile_data_with_cleanup.
6710 * objfiles.h (struct objfile) <jit_data>: New field.
6711
6712 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6713
6714 * jit.h: Forward-declare `struct objfile`.
6715 (jit_event_handler): Add a second parameter, the JITer objfile.
6716 * jit.c (jit_read_descriptor): Change the signature to take the
6717 JITer objfile as an argument instead of the jit_program_space_data.
6718 (jit_inferior_init): Update the call to jit_read_descriptor.
6719 (jit_event_handler): Use the new JITer objfile argument when calling
6720 jit_read_descriptor.
6721 * breakpoint.c (handle_jit_event): Update the call to
6722 jit_event_handler to pass the JITer objfile.
6723
6724 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6725
6726 * gdbarch.c: Regenerate.
6727 * gdbarch.h: Regenerate.
6728 * gdbarch.sh (handle_segmentation_fault): Remove method.
6729 * infrun.c (handle_segmentation_fault): Remove.
6730 (print_signal_received_reason): Remove call to
6731 handle_segmentation_fault.
6732
6733 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6734
6735 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6736 Rename to sparc64_linux_report_signal_info and add siggnal
6737 argument.
6738 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6739 instead of sparc64_linux_handle_segmentation_fault.
6740
6741 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6742
6743 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6744 i386_linux_report_signal_info instead of
6745 i386_linux_handle_segmentation_fault.
6746 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6747 to i386_linux_report_signal_info and add siggnal argument.
6748 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6749 of i386_linux_handle_segmentation_fault.
6750 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6751 to i386_linux_report_signal_info and add siggnal argument.
6752
6753 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6754
6755 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6756 hook if present.
6757
6758 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6759
6760 * gdbarch.c: Regenerate.
6761 * gdbarch.h: Regenerate.
6762 * gdbarch.sh (report_signal_info): New method.
6763 * infrun.c (print_signal_received_reason): Invoke gdbarch
6764 report_signal_info hook if present.
6765
6766 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * python/py-registers.c : Add 'unordered_map' include.
6769 (gdbpy_new_reggroup): Renamed to...
6770 (gdbpy_get_reggroup): ...this. Update to only create register
6771 group descriptors when needed.
6772 (gdbpy_reggroup_iter_next): Update.
6773
6774 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * python/py-registers.c (gdbpy_register_object_data): New static
6777 global.
6778 (gdbpy_register_object_data_init): New function.
6779 (gdbpy_new_register_descriptor): Renamed to...
6780 (gdbpy_get_register_descriptor): ...this, and update to reuse
6781 existing register descriptors where possible.
6782 (gdbpy_register_descriptor_iter_next): Update.
6783 (gdbpy_initialize_registers): Register new gdbarch data.
6784
6785 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6786
6787 * linux-nat.c (stopped_pids): Make static.
6788
6789 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6790
6791 PR ada/26235
6792 * gdbtypes.c (ada_discrete_type_low_bound,
6793 ada_discrete_type_high_bound): Handle undefined bounds.
6794
6795 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6796
6797 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6798 declaration.
6799 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6800 function.
6801
6802 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6803
6804 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6805 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6806 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6807 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6808 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6809 method.
6810
6811 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6812
6813 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6814 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6815 which are deprecated in Guile 3.0.
6816 * configure.ac (try_guile_versions): Add "guile-3.0".
6817 * configure (try_guile_versions): Regenerate.
6818 * NEWS: Update entry.
6819
6820 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6821 Doug Evans <dje@google.com>
6822
6823 PR gdb/21104
6824 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6825 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6826 USING_GUILE_BEFORE_2_2.
6827 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6828 Change type to 'scm_t_port_type *'.
6829 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6830 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6831 parameter and honor it. Update callers.
6832 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6833 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6834 functions.
6835 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6836 USING_GUILE_BEFORE_2_2.
6837 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6838 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6839 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6840 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6841 and 'SCM_PORT_TYPE'.
6842 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6843 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6844 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6845 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6846 [!USING_GUILE_BEFORE_2_2]: New functions.
6847 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6848 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6849 'gdbscm_memory_port_read'.
6850 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6851 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6852 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6853 function.
6854 (ioscm_init_memory_port): Remove.
6855 (ioscm_init_memory_port_stream): New function
6856 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6857 function.
6858 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6859 Return scm_from_uint (0).
6860 (gdbscm_set_memory_port_read_buffer_size_x)
6861 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6862 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6863 Return scm_from_uint (0).
6864 (gdbscm_set_memory_port_write_buffer_size_x)
6865 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6866 * configure.ac (try_guile_versions): Add "guile-2.2".
6867 * configure: Regenerate.
6868 * NEWS: Add entry.
6869
6870 2020-07-18 Tom Tromey <tom@tromey.com>
6871
6872 * linux-nat.c (linux_multi_process): Remove.
6873 (linux_nat_target::supports_multi_process): Return true.
6874
6875 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6878 (riscv_lookup_target_description): Return pointer out of
6879 unique_ptr.
6880 * target-descriptions.c (allocate_target_description): Add
6881 comment.
6882 (target_desc_deleter::operator()): Likewise.
6883 * target-descriptions.h (struct target_desc_deleter): Moved to
6884 gdbsupport/tdesc.h.
6885 (target_desc_up): Likewise.
6886
6887 2020-07-17 Tom Tromey <tromey@adacore.com>
6888
6889 * linux-nat.c (linux_nat_target::supports_non_stop)
6890 (linux_nat_target::always_non_stop_p): Use "true".
6891 (linux_nat_target::supports_disable_randomization): Use "true" and
6892 "false".
6893
6894 2020-07-16 Caroline Tice <cmtice@google.com>
6895
6896 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6897 (RNGLIST_HEADER_SIZE64): New constant definition.
6898 (struct dwop_section_names): Add rnglists_dwo.
6899 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6900 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6901 (struct dwo_sections): Add rnglists field.
6902 (read_attribut_reprocess): Add tag parameter.
6903 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6904 (cu_debug_rnglists_section): New function (decl & definition).
6905 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6906 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6907 die whose range is being checked; get rnglist section from
6908 cu_debug_rnglists_section, to get from either objfile or dwo file as
6909 appropriate. Add cases for DW_RLE_base_addressx,
6910 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6911 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6912 test inside if-condition and updating complaint message.
6913 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6914 dwarf2_rnglists_process.
6915 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6916 dwarf2_ranges_process.
6917 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6918 need_ranges_base and update comment appropriately. Also pass die tag
6919 to dwarf2_ranges_read.
6920 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6921 need_ranges_base and update comment appropriately. Also pass die tag
6922 to dwarf2_ranges_process.
6923 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6924 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6925 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6926 need_ranges_base and update comment appropriately. Also pass die tag
6927 to read_attribute_reprocess and dwarf2_ranges_read.
6928 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6929 and update function comment appropriately.
6930 (read_loclist_index): Call read_loclists_rnglists_header instead of
6931 read_loclist_header.
6932 (read_rnglist_index): New function.
6933 (read_attribute_reprocess): Add tag parameter. Add code for
6934 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6935 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6936
6937 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6940 being resolved.
6941
6942 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * arch-utils.c (show_architecture): Update formatting of messages.
6945
6946 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6947
6948 * gdbtypes.h (struct type) <bounds>: Handle array and string
6949 types.
6950 * ada-lang.c (assign_aggregate): Use type::bounds on
6951 array/string type.
6952 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6953 * c-varobj.c (c_number_of_children): Likewise.
6954 (c_describe_child): Likewise.
6955 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6956 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6957 (f_type_print_base): Likewise.
6958 * f-valprint.c (f77_array_offset_tbl): Likewise.
6959 (f77_get_upperbound): Likewise.
6960 (f77_print_array_1): Likewise.
6961 * guile/scm-type.c (gdbscm_type_range): Likewise.
6962 * m2-typeprint.c (m2_array): Likewise.
6963 (m2_is_long_set_of_type): Likewise.
6964 * m2-valprint.c (get_long_set_bounds): Likewise.
6965 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6966 * python/py-type.c (typy_range): Likewise.
6967 * rust-lang.c (rust_internal_print_type): Likewise.
6968 * type-stack.c (type_stack::follow_types): Likewise.
6969 * valarith.c (value_subscripted_rvalue): Likewise.
6970 * valops.c (value_cast): Likewise.
6971
6972 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6975 callers to use the equivalent accessor methods.
6976
6977 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6980 (struct type) <bit_stride>: New method.
6981 (TYPE_BIT_STRIDE): Remove.
6982 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6983
6984 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6987 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6988 callers to use the equivalent accessor methods instead.
6989
6990 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6993 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6994 callers to use the equivalent accessor methods instead.
6995
6996 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6999 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7000 to use dynamic_prop::kind.
7001
7002 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7005 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7006 to get the bound property's kind and check against
7007 PROP_UNDEFINED.
7008
7009 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7010
7011 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7012 all callers to use type::range_bounds followed by
7013 dynamic_prop::{low,high}.
7014
7015 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7016
7017 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7018 const_val, set_const_val, baton, set_locexpr, set_loclist,
7019 set_addr_offset, variant_parts, set_variant_parts,
7020 original_type, set_original_type>: New methods.
7021 <kind>: Rename to...
7022 <m_kind>: ... this. Update all users to use the new methods
7023 instead.
7024 <data>: Rename to...
7025 <m_data>: ... this. Update all users to use the new methods
7026 instead.
7027
7028 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7029
7030 * gdbtypes.c (get_discrete_bounds): Return failure if
7031 the range type's bounds are not both defined and constant
7032 values.
7033 (get_array_bounds): Update comment. Remove undefined bound check.
7034
7035 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7036
7037 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7038 the type::bounds method directly.
7039
7040 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7041
7042 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7043 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7044 are used to set the range type's bounds to use set_bounds.
7045
7046 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7047
7048 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7049
7050 2020-07-10 Pedro Alves <pedro@palves.net>
7051
7052 * gdbthread.h (inferior_ref): Define.
7053 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7054 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7055 * thread.c
7056 (scoped_restore_current_thread::restore):
7057 Adjust to gdb::ref_ptr.
7058 (scoped_restore_current_thread::~scoped_restore_current_thread):
7059 Remove manual decref handling.
7060 (scoped_restore_current_thread::scoped_restore_current_thread):
7061 Adjust to use
7062 inferior_ref::new_reference/thread_info_ref::new_reference.
7063 Incref the thread before calling get_frame_id instead of after.
7064 Let TARGET_CLOSE_ERROR propagate.
7065
7066 2020-07-10 Pedro Alves <pedro@palves.net>
7067
7068 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7069 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7070 NOT_AVAILABLE_ERROR.
7071 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7072 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7073
7074 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7075 Pedro Alves <pedro@palves.net>
7076
7077 PR gdb/26199
7078 * infrun.c (threads_are_resumed_pending_p): Delete.
7079 (do_target_wait): Remove threads_are_executing and
7080 threads_are_resumed_pending_p checks from the inferior_matches
7081 lambda. Update comments.
7082
7083 2020-07-10 Pedro Alves <pedro@palves.net>
7084
7085 PR gdb/26199
7086 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7087 executing threads.
7088
7089 2020-07-10 Pedro Alves <pedro@palves.net>
7090
7091 PR gdb/26199
7092 * infrun.c (handle_no_resumed): Handle multiple targets.
7093
7094 2020-07-10 Pedro Alves <pedro@palves.net>
7095
7096 PR gdb/26199
7097 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7098 target_is_async_p.
7099
7100 2020-07-10 Pedro Alves <pedro@palves.net>
7101
7102 PR gdb/26199
7103 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7104 threads, not all threads.
7105
7106 2020-07-10 Pedro Alves <pedro@palves.net>
7107
7108 PR gdb/26199
7109 * remote.c (remote_target::open_1): Pass remote target pointer as
7110 data to create_async_event_handler.
7111 (remote_async_inferior_event_handler): Mark async event handler
7112 before returning if the remote target still has either pending
7113 events or unacknowledged notifications.
7114
7115 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7116
7117 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7118 declaration.
7119 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7120 function.
7121
7122 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7123
7124 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7125 inferior_ptid.
7126
7127 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7128
7129 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7130 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7131 AT_FREEBSD_PS_STRINGS.
7132
7133 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7134
7135 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7136 of debugfile path on Windows.
7137
7138 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7139
7140 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7141 argument to 'data'.
7142
7143 2020-07-08 Tom Tromey <tromey@adacore.com>
7144
7145 * ada-lang.c (ada_exception_message_1): Use read_memory.
7146
7147 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7148
7149 PR python/22748
7150 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7151 special handling for inline frames.
7152 * findvar.c (value_of_register_lazy): Skip inline frames when
7153 creating lazy register values.
7154 * frame.c (frame_id_computed_p): Delete definition.
7155 * frame.h (frame_id_computed_p): Delete declaration.
7156
7157 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * NEWS: Mention additions to Python API.
7160 * python/py-arch.c (archpy_register_groups): New function.
7161 (arch_object_methods): Add 'register_groups' method.
7162 * python/py-registers.c (reggroup_iterator_object): New struct.
7163 (reggroup_object): New struct.
7164 (gdbpy_new_reggroup): New function.
7165 (gdbpy_reggroup_to_string): New function.
7166 (gdbpy_reggroup_name): New function.
7167 (gdbpy_reggroup_iter): New function.
7168 (gdbpy_reggroup_iter_next): New function.
7169 (gdbpy_new_reggroup_iterator): New function
7170 (gdbpy_initialize_registers): Register new types.
7171 (reggroup_iterator_object_type): Define new Python type.
7172 (gdbpy_reggroup_getset): New static global.
7173 (reggroup_object_type): Define new Python type.
7174 * python/python-internal.h
7175
7176 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7177
7178 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7179 * python/py-arch.c (archpy_registers): New function.
7180 (arch_object_methods): Add 'registers' method.
7181 * python/py-registers.c: New file.
7182 * python/python-internal.h
7183 (gdbpy_new_register_descriptor_iterator): Declare.
7184 (gdbpy_initialize_registers): Declare.
7185 * python/python.c (do_start_initialization): Call
7186 gdbpy_initialize_registers.
7187 * NEWS: Mention additions to the Python API.
7188
7189 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7190
7191 * NEWS: Mention new Python API method.
7192 * python/py-unwind.c (pending_framepy_architecture): New function.
7193 (pending_frame_object_methods): Add architecture method.
7194
7195 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * gdbarch.c: Regenerate.
7198 * gdbarch.h: Regenerate.
7199 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7200 (gdbarch_data): Use internal_error for the case where
7201 deprecated_set_gdbarch_data was originally needed.
7202 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7203 and use passed in obstack.
7204 (libunwind_frame_set_descr): Should no longer get back NULL from
7205 gdbarch_data.
7206 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7207 type.
7208 * user-regs.c (user_regs_init): Update parameters, and use passed
7209 in obstack.
7210 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7211 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7212
7213 2020-07-06 Tom de Vries <tdevries@suse.de>
7214
7215 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7216 End-Of-Sequence in lte_is_less_than.
7217 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7218 "gdb: Don't reorder line table entries too much when sorting".
7219
7220 2020-07-06 Tom de Vries <tdevries@suse.de>
7221
7222 PR tui/26205
7223 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7224
7225 2020-07-05 Tom de Vries <tdevries@suse.de>
7226
7227 PR build/26187
7228 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7229 std::uncaught_exceptions instead of deprecated
7230 std::uncaught_exception.
7231
7232 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7233
7234 * macroexp.h (macro_stringify): Return
7235 gdb::unique_xmalloc_ptr<char>.
7236 * macroexp.c (macro_stringify): Likewise.
7237 * macrotab.c (fixup_definition): Update.
7238
7239 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7240
7241 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7242 (lex_one_token): Update.
7243 * macroexp.c (struct macro_buffer) <release>: Return
7244 gdb::unique_xmalloc_ptr<char>.
7245 (macro_stringify): Update.
7246 (macro_expand): Update.
7247 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7248 * macroexp.h (macro_expand_next): Likewise.
7249
7250 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7251
7252 * macroexp.h (macro_lookup_ftype): Remove.
7253 (macro_expand, macro_expand_once, macro_expand_next): Remove
7254 lookup function parameters, add scope parameter.
7255 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7256 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7257 * macroscope.h (standard_macro_lookup): Change parameter type
7258 to macro_scope.
7259 * macroscope.c (standard_macro_lookup): Likewise.
7260 * c-exp.y (lex_one_token): Update.
7261 * macrocmd.c (macro_expand_command): Likewise.
7262 (macro_expand_once_command): Likewise.
7263
7264 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7265
7266 * inf-loop.c (inferior_event_handler): Remove client_data param.
7267 * inf-loop.h (inferior_event_handler): Likewise.
7268 * infcmd.c (step_1): Adjust.
7269 * infrun.c (proceed): Adjust.
7270 (fetch_inferior_event): Remove client_data param.
7271 (infrun_async_inferior_event_handler): Adjust.
7272 * infrun.h (fetch_inferior_event): Remove `void *` param.
7273 * linux-nat.c (handle_target_event): Adjust.
7274 * record-btrace.c (record_btrace_handle_async_inferior_event):
7275 Adjust.
7276 * record-full.c (record_full_async_inferior_event_handler):
7277 Adjust.
7278 * remote.c (remote_async_inferior_event_handler): Adjust.
7279
7280 2020-07-01 Tom Tromey <tom@tromey.com>
7281
7282 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7283 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7284
7285 2020-07-01 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7288 tui_gen_win_info.
7289 (tui_win_info::make_window): Merge with
7290 tui_gen_win_info::make_window.
7291 (tui_win_info::make_visible): Move from tui_gen_win_info.
7292 * tui/tui-win.c (tui_win_info::max_width): Move from
7293 tui_gen_win_info.
7294 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7295 type.
7296 <window_factory>: Likewise.
7297 * tui/tui-layout.c (tui_win_info::resize): Move from
7298 tui_gen_win_info.
7299 (make_standard_window): Change return type.
7300 (get_locator_window, tui_get_window_by_name): Likewise.
7301 (tui_layout_window::apply): Remove a cast.
7302 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7303 (struct tui_win_info): Merge with tui_gen_win_info.
7304 (struct tui_gen_win_info): Remove.
7305
7306 2020-07-01 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-stack.h (struct tui_locator_window): Derive from
7309 tui_win_info.
7310 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7311 <can_box>: New method.
7312
7313 2020-07-01 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7316
7317 2020-07-01 Tom Tromey <tom@tromey.com>
7318
7319 * tui/tui-regs.c (tui_data_window::display_registers_from)
7320 (tui_data_window::display_registers_from)
7321 (tui_data_window::first_data_item_displayed)
7322 (tui_data_window::delete_data_content_windows): Update.
7323 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7324 Remove.
7325 (tui_data_window::check_register_values): Update.
7326 (tui_data_item_window::rerender): Add parameters. Update.
7327 (tui_data_item_window::refresh_window): Remove.
7328 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7329 virtual.
7330 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7331 tui_gen_win_info.
7332 <refresh_window, max_height, min_height>: Remove.
7333 <rerender>: Add parameters.
7334 <x, y, visible>: New members.
7335 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7336 <m_item_width>: New member.
7337
7338 2020-07-01 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-regs.c (tui_data_window::show_register_group)
7341 (tui_data_window::check_register_values): Update.
7342 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7343 from item_no.
7344
7345 2020-07-01 Tom Tromey <tom@tromey.com>
7346
7347 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7348 useless "if".
7349
7350 2020-07-01 Tom Tromey <tom@tromey.com>
7351
7352 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7353 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7354
7355 2020-07-01 Tom Tromey <tom@tromey.com>
7356
7357 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7358 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7359 (struct tui_line_or_address): Move from tui-data.h.
7360 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7361 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7362 (tui_cmd_window, tui_source_window_base, tui_source_window)
7363 (tui_disasm_window): Don't declare.
7364 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7365 to tui-winsource.h.
7366 (SINGLE_KEY): Move to tui-stack.c.
7367
7368 2020-07-01 Tom Tromey <tom@tromey.com>
7369
7370 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7371 std::string.
7372 * tui/tui-regs.c (class tab_expansion_file): New.
7373 (tab_expansion_file::write): New method.
7374 (tui_register_format): Change return type. Use
7375 tab_expansion_file.
7376 (tui_get_register, tui_data_window::display_registers_from)
7377 (tui_data_item_window::rerender): Update.
7378 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7379 * tui/tui-io.c (tui_expand_tabs): Remove.
7380
7381 2020-07-01 Tom Tromey <tom@tromey.com>
7382
7383 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7384
7385 2020-07-01 Fangrui Song <maskray@google.com>
7386
7387 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7388
7389 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7390
7391 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7392 forms for DW_AT_associated and DW_AT_allocated attributes,
7393 which is already checked in function attr_to_dynamic_prop.
7394
7395 2020-06-30 Tom Tromey <tromey@adacore.com>
7396
7397 * dwarf2/read.c (quirk_rust_enum): Correctly call
7398 alloc_rust_variant for default-less enum.
7399
7400 2020-06-30 Tom Tromey <tromey@adacore.com>
7401
7402 PR build/26183:
7403 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7404 gdb::to_string.
7405
7406 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7409 * gdbarch.h: Re-generate.
7410
7411 2020-06-28 Tom Tromey <tom@tromey.com>
7412
7413 * command.h (cmd_types): Remove.
7414 (cmd_type): Don't declare.
7415 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7416 typedef.
7417 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7418 * cli/cli-decode.c (cmd_type): Remove.
7419
7420 2020-06-27 Pedro Alves <palves@redhat.com>
7421
7422 * fork-child.c (prefork_hook): Adjust.
7423 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7424 Delete.
7425 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7426 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7427 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7428 Remove declarations.
7429 (struct inferior) <set_tty, tty>: New methods.
7430 (struct inferior) <terminal>: Rename to ...
7431 (struct inferior) <m_terminal>: ... this and make private.
7432 * main.c (captured_main_1): Adjust.
7433 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7434 (mi_cmd_inferior_tty_show): Adjust.
7435 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7436 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7437
7438 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7439
7440 * configure.ac: Add --enable-libctf: handle --disable-static
7441 properly.
7442 * acinclude.m4: sinclude ../config/enable.m4.
7443 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7444 (LIBCTF): Substitute in.
7445 (CTF_DEPS): New, likewise.
7446 (CLIBS): libctf needs symbols from libbfd: move earlier.
7447 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7448 flags.
7449 * ctfread.c: Surround in ENABLE_LIBCTF.
7450 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7451 * configure: Regenerate.
7452 * config.in: Likewise.
7453
7454 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7457
7458 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7459
7460 * inferior.h (struct inferior) <terminal>: Change type to
7461 gdb::unique_xmalloc_ptr<char>.
7462 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7463 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7464 field, adjust to unique pointer.
7465 (get_inferior_io_terminal): Adjust to unique pointer.
7466
7467 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7468
7469 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7470 registers, not just the known core set of registers.
7471
7472 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7473
7474 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7475 fflags, frm, and fcsr registers.
7476 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7477 restore groups.
7478 (riscv_tdesc_unknown_reg): New function.
7479 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7480 tdesc_use_registers.
7481 * riscv-tdep.h (struct gdbarch_tdep): Add
7482 unknown_csrs_first_regnum, unknown_csrs_count,
7483 duplicate_fflags_regnum, duplicate_frm_regnum, and
7484 duplicate_fcsr_regnum fields.
7485
7486 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7487
7488 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7489 callback, use the callback (when not null) to help number unknown
7490 registers.
7491 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7492 (tdesc_use_registers): Add extra parameter to declaration.
7493
7494 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7495
7496 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7497 in the file.
7498 (class riscv_pending_register_alias): Likewise.
7499 (riscv_register_feature::register_info): Change 'required_p' field
7500 to 'required', and change its type. Add 'check' member function.
7501 (riscv_register_feature::register_info::check): Define new member
7502 function.
7503 (riscv_xreg_feature): Change initialisation of 'required' field.
7504 (riscv_freg_feature): Likewise.
7505 (riscv_virtual_feature): Likewise.
7506 (riscv_csr_feature): Likewise.
7507 (riscv_check_tdesc_feature): Take extra parameter, the csr
7508 tdesc_feature, rewrite the function to use the new
7509 riscv_register_feature::register_info::check function.
7510 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7511
7512 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7513
7514 * features/Makefile: Remove all references to the deleted files
7515 below.
7516 * features/riscv/32bit-csr.c: Deleted.
7517 * features/riscv/32bit-csr.xml: Deleted.
7518 * features/riscv/64bit-csr.c: Deleted.
7519 * features/riscv/64bit-csr.xml: Deleted.
7520 * features/riscv/rebuild-csr-xml.sh: Deleted.
7521
7522 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7523
7524 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7525 whitespace error for declaration of names member variable.
7526 (struct riscv_register_feature): Add new prefer_first_name member
7527 variable, and fix whitespace error in declaration of registers.
7528 (riscv_xreg_feature): Initialize prefer_first_name field.
7529 (riscv_freg_feature): Likewise.
7530 (riscv_virtual_feature): Likewise.
7531 (riscv_csr_feature): Likewise.
7532 (riscv_register_name): Expand on comments. Remove register name
7533 modifications for CSR and virtual registers.
7534
7535 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7538 errors.
7539
7540 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7541
7542 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7543 riscv-opc.h.
7544 (class riscv_pending_register_alias): New class.
7545 (riscv_check_tdesc_feature): Take vector of pending aliases and
7546 populate it as appropriate.
7547 (riscv_setup_register_aliases): Delete.
7548 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7549 to riscv_check_tdesc_feature in all cases. Use the vector to
7550 create the register aliases.
7551
7552 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7553
7554 * sol2-tdep.c (sol2_static_transform_name): Remove.
7555 (sol2_init_abi): Don't register it.
7556 * gdbarch.sh (static_transform_name): Remove.
7557 * gdbarch.c, gdbarch.h: Regenerate.
7558
7559 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7560 gdbarch_static_transform_name.
7561 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7562 * stabsread.c (define_symbol) <'X'>: Remove.
7563 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7564 handling.
7565 <'V'>: Likewise.
7566 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7567 <'S'>: Remove call to gdbarch_static_transform_name.
7568
7569 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7570
7571 * procfs.c (procfs_pre_trace): New function.
7572 (procfs_target::create_inferior): Pass it to fork_inferior.
7573
7574 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575
7576 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7577 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7578 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7579 sol2-tdep.o, sparc-sol2-tdep.o.
7580 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7581 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7582 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7583 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7584
7585 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7586
7587 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7588 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7589 Call sol2_init_abi.
7590 Remove calls to set_gdbarch_skip_solib_resolver,
7591 set_gdbarch_core_pid_to_str.
7592 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7593 (i386_sol2_static_transform_name): Remove.
7594 (i386_sol2_init_abi): Call sol2_init_abi.
7595 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7596 set_gdbarch_static_transform_name,
7597 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7598 Use sol2_sigtramp_p.
7599 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7600 (sol2_sigtramp_p): New function.
7601 (sol2_static_transform_name): New function.
7602 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7603 (sol2_init_abi): New function.
7604 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7605 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7606 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7607 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7608 (sparc_sol2_static_transform_name): Remove.
7609 (sparc32_sol2_init_abi): Call sol2_init_abi.
7610 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7611 set_gdbarch_static_transform_name,
7612 set_gdbarch_skip_solib_resolver,
7613 set_gdbarch_core_pid_to_str.
7614 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7615 (sparc_sol2_static_transform_name): Remove
7616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7617 call sol2_sigtramp_p.
7618 (sparc64_sol2_init_abi): Call sol2_init_abi.
7619 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7620 set_gdbarch_static_transform_name,
7621 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7622
7623 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7624
7625 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7626 * exec.c (validate_exec_file): If from_tty, set both
7627 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7628 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7629 and from_tty, unconditionally ask a confirmation.
7630
7631 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * target-descriptions.c (tdesc_architecture_name): Protect against
7634 NULL pointer dereference.
7635 (maint_print_xml_tdesc_cmd): New function.
7636 (_initialize_target_descriptions): Register new 'maint print
7637 xml-tdesc' command and give it the filename completer.
7638 * NEWS: Mention new 'maint print xml-tdesc' command.
7639
7640 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 * target-descriptions.c (class tdesc_compatible_info): New class.
7643 (struct target_desc): Change type of compatible vector.
7644 (tdesc_compatible_p): Update for change in type of
7645 target_desc::compatible.
7646 (tdesc_compatible_info_list): New function.
7647 (tdesc_compatible_info_arch_name): New function.
7648 (tdesc_add_compatible): Update for change in type of
7649 target_desc::compatible.
7650 (print_c_tdesc::visit_pre): Likewise.
7651
7652 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7655 whitespace to underscore.
7656 (maint_print_c_tdesc_cmd): Use fake filename for target
7657 descriptions that came from the target.
7658 (_initialize_target_descriptions): Add filename command completion
7659 for 'maint print c-tdesc'.
7660
7661 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7664 lines.
7665
7666 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7669 lines.
7670 (dwarf2_find_location_expression): Likewise.
7671 (call_site_parameter_matches): Likewise.
7672 (dwarf2_compile_expr_to_ax): Likewise.
7673 (disassemble_dwarf_expression): Likewise.
7674 (loclist_describe_location): Likewise.
7675
7676 2020-06-23 Pedro Alves <palves@redhat.com>
7677
7678 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7679 progspace-and-thread.h. Include scoped-mock-context.h instead.
7680 (register_to_value_test): Use scoped_mock_context.
7681 * regcache.c: Include "scoped-mock-context.h".
7682 (cooked_read_test): Don't error out if a target is already pushed.
7683 Use scoped_mock_context. Adjust.
7684 * scoped-mock-context.h: New file.
7685
7686 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7687
7688 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7689 initializer.
7690 (ada_language::is_string_type_p): New member function.
7691 * c-lang.c (c_language_data): Delete la_is_string_type_p
7692 initializer.
7693 (cplus_language_data): Likewise.
7694 (asm_language_data): Likewise.
7695 (minimal_language_data): Likewise.
7696 * d-lang.c (d_language_data): Likewise.
7697 * f-lang.c (f_is_string_type_p): Delete function, implementation
7698 moved to f_language::is_string_type_p.
7699 (f_language_data): Delete la_is_string_type_p initializer.
7700 (f_language::is_string_type_p): New member function,
7701 implementation from f_is_string_type_p.
7702 * go-lang.c (go_is_string_type_p): Delete function, implementation
7703 moved to go_language::is_string_type_p.
7704 (go_language_data): Delete la_is_string_type_p initializer.
7705 (go_language::is_string_type_p): New member function,
7706 implementation from go_is_string_type_p.
7707 * language.c (language_defn::is_string_type_p): Define new member
7708 function.
7709 (default_is_string_type_p): Make static, add comment copied from
7710 header file.
7711 (unknown_language_data): Delete la_is_string_type_p initializer.
7712 (unknown_language::is_string_type_p): New member function.
7713 (auto_language_data): Delete la_is_string_type_p initializer.
7714 (auto_language::is_string_type_p): New member function.
7715 * language.h (language_data): Delete la_is_string_type_p field.
7716 (language_defn::is_string_type_p): Declare new function.
7717 (default_is_string_type_p): Delete desclaration, move comment to
7718 definition.
7719 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7720 moved to m2_language::is_string_type_p.
7721 (m2_language_data): Delete la_is_string_type_p initializer.
7722 (m2_language::is_string_type_p): New member function,
7723 implementation from m2_is_string_type_p.
7724 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7725 initializer.
7726 * opencl-lang.c (opencl_language_data): Likewise.
7727 * p-lang.c (pascal_is_string_type_p): Delete function,
7728 implementation moved to pascal_language::is_string_type_p.
7729 (pascal_language_data): Delete la_is_string_type_p initializer.
7730 (pascal_language::is_string_type_p): New member function,
7731 implementation from pascal_is_string_type_p.
7732 * rust-lang.c (rust_is_string_type_p): Delete function,
7733 implementation moved to rust_language::is_string_type_p.
7734 (rust_language_data): Delete la_is_string_type_p initializer.
7735 (rust_language::is_string_type_p): New member function,
7736 implementation from rust_is_string_type_p.
7737 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7738 is_string_type_p.
7739
7740 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7741
7742 * ada-lang.c (ada_language_data): Delete la_print_typedef
7743 initializer.
7744 (ada_language::print_typedef): New member function.
7745 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7746 (cplus_language_data): Likewise.
7747 (asm_language_data): Likewise.
7748 (minimal_language_data): Likewise.
7749 * d-lang.c (d_language_data): Likewise.
7750 * f-lang.c (f_language_data): Likewise.
7751 (f_language::print_typedef): New member function.
7752 * go-lang.c (go_language_data): Delete la_print_typedef
7753 initializer.
7754 * language.c (language_defn::print_typedef): Define member
7755 function.
7756 (unknown_language_data): Delete la_print_typedef initializer.
7757 (unknown_language::print_typedef): New member function.
7758 (auto_language_data): Delete la_print_typedef initializer.
7759 (auto_language::print_typedef): New member function.
7760 * language.h (language_data): Delete la_print_typedef field.
7761 (language_defn::print_typedef): Declare new member function.
7762 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7763 (default_print_typedef): Delete declaration.
7764 * m2-lang.c (m2_language_data): Delete la_print_typedef
7765 initializer.
7766 (m2_language::print_typedef): New member function.
7767 * objc-lang.c (objc_language_data): Delete la_print_typedef
7768 initializer.
7769 * opencl-lang.c (opencl_language_data): Likewise.
7770 * p-lang.c (pascal_language_data): Likewise.
7771 (pascal_language::print_typedef): New member function.
7772 * rust-lang.c (rust_print_typedef): Delete function,
7773 implementation moved to rust_language::print_typedef.
7774 (rust_language): Delete la_print_typedef initializer.
7775 (rust_language::print_typedef): New member function,
7776 implementation from rust_print_typedef.
7777 * typeprint.c (default_print_typedef): Delete.
7778
7779 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7782 (ada_language::printstr): New member function.
7783 * c-lang.c (c_language_data): Delete la_printstr initializer.
7784 (cplus_language_data): Likewise.
7785 (asm_language_data): Likewise.
7786 (minimal_language_data): Likewise.
7787 * d-lang.c (d_language_data): Likewise.
7788 * f-lang.c (f_printstr): Rename to f_language::printstr.
7789 (f_language_data): Delete la_printstr initializer.
7790 (f_language::printstr): New member function, implementation from
7791 f_printstr.
7792 * go-lang.c (go_language_data): Delete la_printstr initializer.
7793 * language.c (language_defn::printstr): Define new member
7794 function.
7795 (unk_lang_printstr): Delete.
7796 (unknown_language_data): Delete la_printstr initializer.
7797 (unknown_language::printstr): New member function.
7798 (auto_language_data): Delete la_printstr initializer.
7799 (auto_language::printstr): New member function.
7800 * language.h (language_data): Delete la_printstr field.
7801 (language_defn::printstr): Declare new member function.
7802 (LA_PRINT_STRING): Update call to printstr.
7803 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7804 (m2_language_data): Delete la_printstr initializer.
7805 (m2_language::printstr): New member function, implementation from
7806 m2_printstr.
7807 * objc-lang.c (objc_language_data): Delete la_printstr
7808 initializer.
7809 * opencl-lang.c (opencl_language_data): Likewise.
7810 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7811 (pascal_language_data): Delete la_printstr initializer.
7812 (pascal_language::printstr): New member function, implementation
7813 from pascal_printstr.
7814 * p-lang.h (pascal_printstr): Delete declaration.
7815 * rust-lang.c (rust_printstr): Update header comment.
7816 (rust_language_data): Delete la_printstr initializer.
7817 (rust_language::printstr): New member function.
7818
7819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7822 (ada_language::printchar): New member function.
7823 * c-lang.c (c_language_data): Delete la_printchar initializer.
7824 (cplus_language_data): Likewise.
7825 (asm_language_data): Likewise.
7826 (minimal_language_data): Likewise.
7827 * d-lang.c (d_language_data): Likewise.
7828 * f-lang.c (f_printchar): Rename to f_language::printchar.
7829 (f_language_data): Delete la_printchar initializer.
7830 (f_language::printchar): New member function, implementation from
7831 f_printchar.
7832 * go-lang.c (go_language_data): Delete la_printchar initializer.
7833 * language.c (unk_lang_printchar): Delete.
7834 (language_defn::printchar): Define new member function.
7835 (unknown_language_data): Delete la_printchar initializer.
7836 (unknown_language::printchar): New member function.
7837 (auto_language_data): Delete la_printchar initializer.
7838 (auto_language::printchar): New member function.
7839 * language.h (language_data): Delete la_printchar field.
7840 (language_defn::printchar): Declare new member function.
7841 (LA_PRINT_CHAR): Update call to printchar.
7842 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7843 (m2_language::printchar): New member function.
7844 * objc-lang.c (objc_language_data): Delete la_printchar
7845 initializer.
7846 * opencl-lang.c (opencl_language_data): Likewise.
7847 * p-lang.c (pascal_language_data): Delete la_printchar
7848 initializer.
7849 (pascal_language::printchar): New member function.
7850 * rust-lang.c (rust_printchar): Rename to
7851 rust_language::printchar.
7852 (rust_language_data): Delete la_printchar initializer.
7853 (rust_language::printchar): New member function, implementation
7854 from rust_printchar.
7855
7856 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7859 (ada_language_data): Delete la_emitchar initializer.
7860 (ada_language::emitchar): New member function, implementation from
7861 emit_char.
7862 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7863 (cplus_language_data): Likewise.
7864 (asm_language_data): Likewise.
7865 (minimal_language_data): Likewise.
7866 * d-lang.c (d_language_data): Likewise.
7867 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7868 (f_language_data): Delete la_emitchar initializer.
7869 (f_language::emitchar): New member function, implementation from
7870 f_emit_char.
7871 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7872 * language.c (unk_lang_emit_char): Delete.
7873 (language_defn::emitchar): New member function definition.
7874 (unknown_language_data): Delete la_emitchar initializer.
7875 (unknown_language::emitchar): New member function.
7876 (auto_language_data): Delete la_emitchar initializer.
7877 (auto_language::emitchar): New member function.
7878 * language.h (language_data): Delete la_emitchar field.
7879 (language_defn::emitchar): New member field declaration.
7880 (LA_EMIT_CHAR): Update call to emitchar.
7881 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7882 (m2_language_data): Delete la_emitchar initializer.
7883 (m2_language::emitchar): New member function, implementation from
7884 m2_emit_char.
7885 * objc-lang.c (objc_language_data): Delete la_emitchar
7886 initializer.
7887 * opencl-lang.c (opencl_language_data): Likewise.
7888 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7889 (pascal_language_data): Delete la_emitchar initializer.
7890 (pascal_language::emitchar): New member function, implementation
7891 from pascal_emit_char.
7892 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7893 (rust_language_data): Delete la_emitchar initializer.
7894 (rust_language::emitchar): New member function, implementation
7895 from rust_emitchar.
7896
7897 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7900 (ada_language_data): Delete la_post_parser initializer.
7901 (ada_language::post_parser): New member function.
7902 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7903 (cplus_language_data): Likewise.
7904 (asm_language_data): Likewise.
7905 (minimal_language_data): Likewise.
7906 * d-lang.c (d_language_data): Likewise.
7907 * f-lang.c (f_language_data): Likewise.
7908 * go-lang.c (go_language_data): Likewise.
7909 * language.c (unknown_language_data): Likewise.
7910 (auto_language_data): Likewise.
7911 * language.h (language_data): Delete la_post_parser field.
7912 (language_defn::post_parser): New member function.
7913 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7914 * objc-lang.c (objc_language_data): Likewise.
7915 * opencl-lang.c (opencl_language_data): Likewise.
7916 * p-lang.c (pascal_language_data): Likewise.
7917 * parse.c (parse_exp_in_context): Update call to post_parser.
7918 (null_post_parser): Delete definition.
7919 * parser-defs.h (null_post_parser): Delete declaration.
7920 * rust-lang.c (rust_language_data): Delete la_post_parser
7921 initializer.
7922
7923 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7924
7925 * ada-lang.c (parse): Rename to ada_language::parser.
7926 (ada_language_data): Delete la_parser initializer.
7927 (ada_language::parser): New member function, implementation from
7928 parse.
7929 * c-lang.c (c_language_data): Delete la_parser initializer.
7930 (cplus_language_data): Likewise.
7931 (asm_language_data): Likewise.
7932 (minimal_language_data): Likewise.
7933 * d-lang.c (d_language_data): Likewise.
7934 (d_language::parser): New member function.
7935 * f-lang.c (f_language_data): Delete la_parser initializer.
7936 (f_language::parser): New member function.
7937 * go-lang.c (go_language_data): Delete la_parser initializer.
7938 (go_language::parser): New member function.
7939 * language.c (unk_lang_parser): Delete.
7940 (language_defn::parser): Define new member function.
7941 (unknown_language_data): Delete la_parser initializer.
7942 (unknown_language::parser): New member function.
7943 (auto_language_data): Delete la_parser initializer.
7944 (auto_language::parser): New member function.
7945 * language.h (language_data): Delete la_parser field.
7946 (language_defn::parser): Declare new member function.
7947 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7948 (m2_language::parser): New member function.
7949 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7950 * opencl-lang.c (opencl_language_data): Likewise.
7951 * p-lang.c (pascal_language_data): Likewise.
7952 (pascal_language::parser): New member function.
7953 * parse.c (parse_exp_in_context): Update call to parser.
7954 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7955 (rust_language::parser): New member function.
7956
7957 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * top.c (print_gdb_configuration): Print --with-python-libdir
7960 configuration value.
7961
7962 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7963
7964 * NEWS: Mention change to the alias command.
7965
7966 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7967
7968 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7969 (alias_command_completer)
7970 (make_alias_options_def_group): New functions.
7971 (alias_opts, alias_option_defs): New struct and array.
7972 (alias_usage_error): Update usage.
7973 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7974 Use option framework.
7975 (_initialize_cli_cmds): Update alias command help.
7976 Update aliases command help.
7977 (show_user):
7978 Add NULL for new default_args lookup_cmd argument.
7979 (valid_command_p): Rename to validate_aliased_command.
7980 Add NULL for new default_args lookup_cmd argument. Verify that the
7981 aliased_command has no default args.
7982 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7983 (lookup_cmd_1, lookup_cmd): New argument default_args.
7984 (add_alias_cmd):
7985 Add NULL for new default_args lookup_cmd argument.
7986 (print_help_for_command): Show default args under the layout
7987 alias some_alias = some_aliased_cmd some_alias_default_arg.
7988 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7989 xfree default_args in destructor.
7990 * cli/cli-script.c (process_next_line, do_define_command):
7991 Add NULL for new default_args lookup_cmd argument.
7992 * command.h: Declare new default_args argument in lookup_cmd
7993 and lookup_cmd_1.
7994 * completer.c (complete_line_internal_1):
7995 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7996 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7997 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7998 Likewise.
7999 * infcmd.c (_initialize_infcmd): Likewise.
8000 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8001 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8002 * python/py-param.c (add_setshow_generic): Likewise.
8003 * remote.c (_initialize_remote): Likewise.
8004 * top.c (execute_command): Prepend default_args if command has some.
8005 (set_verbose):
8006 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8007 * tracepoint.c (validate_actionline, encode_actions_1):
8008 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8009
8010 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8011
8012 * jit.c (jit_read_descriptor): Use bool as the return type.
8013 (jit_breakpoint_re_set_internal): Use bool as the return type.
8014 Invert the return value logic; return true if the jit breakpoint
8015 has been successfully initialized.
8016 (jit_inferior_init): Update the call to
8017 jit_breakpoint_re_set_internal.
8018
8019 2020-06-22 Pedro Alves <palves@redhat.com>
8020
8021 PR gdb/25939
8022 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8023 Use the current inferior instead. Don't return
8024 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8025 wait again.
8026 * sol-thread.c (sol_thread_target::wait): Don't reference
8027 inferior_ptid.
8028 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8029 (sol_update_thread_list_callback): Use the current inferior's pid
8030 instead of inferior_ptid.
8031
8032 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8033
8034 * procfs.c: Cleanup many comments.
8035
8036 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8037 (AFTER_WATCHFLAG): Replace by value.
8038
8039 (MAIN_PROC_NAME_FORMAT): Inline ...
8040 (create_procinfo): ... here.
8041
8042 (procfs_debug_inferior): Remove SYS_exec handling.
8043 (syscall_is_exec): Likewise.
8044 (procfs_set_exec_trap): Likewise.
8045
8046 (syscall_is_lwp_exit): Inline in callers.
8047 (syscall_is_exit): Likewise.
8048 (syscall_is_exec): Likewise.
8049 (syscall_is_lwp_create): Likewise.
8050
8051 (invalidate_cache): Remove #if 0 code.
8052
8053 (make_signal_thread_runnable): Remove.
8054 (procfs_target::resume): Remove #if 0 code.
8055
8056 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8057
8058 PR gdb/25939
8059 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8060 call ...
8061 (procfs_target::create_inferior): ... here.
8062
8063 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8064
8065 * exec.c (validate_exec_file): Ensure the build-id is up to
8066 date by calling reopen_exec_file (that checks file timestamp
8067 to decide to re-read the file).
8068
8069 2020-06-18 Pedro Alves <palves@redhat.com>
8070
8071 PR gdb/25412
8072 * gdbthread.h (delete_thread, delete_thread_silent)
8073 (find_thread_ptid): Update comments.
8074 * thread.c (current_thread_): New global.
8075 (is_current_thread): Move higher, and reimplement.
8076 (inferior_thread): Reimplement.
8077 (set_thread_exited): Use bool. Add assertions.
8078 (add_thread_silent): Simplify thread-reuse handling by always
8079 calling delete_thread.
8080 (delete_thread): Remove intro comment.
8081 (find_thread_ptid): Skip exited threads.
8082 (switch_to_thread_no_regs): Write to current_thread_.
8083 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8084 INFERIOR_PTID. Clear current_thread_.
8085
8086 2020-06-18 Pedro Alves <palves@redhat.com>
8087
8088 * aix-thread.c (pd_update): Use switch_to_thread.
8089
8090 2020-06-18 Pedro Alves <palves@redhat.com>
8091
8092 * ravenscar-thread.c (ravenscar_thread_target): Update.
8093 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8094 (ravenscar_thread_target::add_active_thread): ... this. Don't
8095 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8096 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8097
8098 2020-06-18 Pedro Alves <palves@redhat.com>
8099
8100 * nat/windows-nat.c (current_windows_thread): Remove.
8101 * nat/windows-nat.h (current_windows_thread): Remove.
8102 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8103 Adjust.
8104 (display_selectors): Adjust to fetch the current
8105 windows_thread_info based on inferior_ptid.
8106 (fake_create_process): No longer write to current_windows_thread.
8107 (windows_nat_target::get_windows_debug_event):
8108 Don't set inferior_ptid or current_windows_thread.
8109 (windows_nat_target::wait): Adjust to not rely on
8110 current_windows_thread.
8111 (do_initial_windows_stuff): Now a method of windows_nat_target.
8112 Switch to the last_ptid thread.
8113 (windows_nat_target::attach): Adjust.
8114 (windows_nat_target::detach): Use switch_to_no_thread instead of
8115 writing to inferior_ptid directly.
8116 (windows_nat_target::create_inferior): Adjust.
8117
8118 2020-06-18 Pedro Alves <palves@redhat.com>
8119
8120 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8121
8122 2020-06-18 Pedro Alves <palves@redhat.com>
8123
8124 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8125 after creating it, instead of writing to inferior_ptid. Don't
8126 write to inferior_ptid.
8127
8128 2020-06-18 Pedro Alves <palves@redhat.com>
8129
8130 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8131
8132 2020-06-18 Pedro Alves <palves@redhat.com>
8133
8134 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8135 it, instead of writing to inferior_ptid.
8136
8137 2020-06-18 Pedro Alves <palves@redhat.com>
8138
8139 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8140 to inferior_ptid.
8141
8142 2020-06-18 Pedro Alves <palves@redhat.com>
8143
8144 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8145 instead of writing to inferior_ptid directly.
8146
8147 2020-06-18 Pedro Alves <palves@redhat.com>
8148
8149 * corelow.c (core_target::close): Use switch_to_no_thread instead
8150 of writing to inferior_ptid directly.
8151 (add_to_thread_list, core_target_open): Use switch_to_thread
8152 instead of writing to inferior_ptid directly.
8153
8154 2020-06-18 Pedro Alves <palves@redhat.com>
8155
8156 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8157 inferior_ptid.
8158 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8159 inferior_ptid.
8160 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8161 inferior_ptid directly.
8162 (darwin_nat_target::init_thread_list): Switch to thread, instead
8163 of writing to inferior_ptid.
8164 (darwin_nat_target::attach): Don't write to inferior_ptid.
8165 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8166
8167 2020-06-18 Pedro Alves <palves@redhat.com>
8168
8169 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8170 thread.
8171 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8172 Instead use switch_to_thread.
8173 (gnu_nat_target::detach): Use switch_to_no_thread
8174 instead of writing to inferior_ptid directly. Used passed-in
8175 inferior instead of looking up the inferior by pid.
8176
8177 2020-06-18 Pedro Alves <palves@redhat.com>
8178
8179 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8180 inferior_ptid.
8181
8182 2020-06-18 Pedro Alves <palves@redhat.com>
8183
8184 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8185 inferior_ptid.
8186 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8187 thread.
8188 (nto_procfs_target::detach): Avoid referencing
8189 inferior_ptid. Use switch_to_no_thread instead of writing to
8190 inferior_ptid directly.
8191 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8192 instead of writing to inferior_ptid directly.
8193 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8194 to thread.
8195
8196 2020-06-18 Pedro Alves <palves@redhat.com>
8197
8198 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8199 after creating it, instead of writing to inferior_ptid.
8200 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8201 to inferior_ptid directly.
8202 (gdbsim_target::wait): Don't write to inferior_ptid.
8203
8204 2020-06-18 Pedro Alves <palves@redhat.com>
8205
8206 * remote.c (remote_target::remote_notice_new_inferior): Use
8207 switch_to_thread instead of writing to inferior_ptid directly.
8208 (remote_target::add_current_inferior_and_thread): Use
8209 switch_to_no_thread instead of writing to inferior_ptid directly.
8210 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8211 and switch_to_thread instead of using set_current_inferior or
8212 writing to inferior_ptid directly.
8213
8214 2020-06-18 Pedro Alves <palves@redhat.com>
8215
8216 * tracectf.c (ctf_target_open): Switch to added thread instead of
8217 writing to inferior_ptid directly.
8218 (ctf_target::close): Use switch_to_no_thread instead of writing to
8219 inferior_ptid directly.
8220
8221 2020-06-18 Pedro Alves <palves@redhat.com>
8222
8223 * tracefile-tfile.c (tfile_target_open): Don't write to
8224 inferior_ptid directly, instead switch to added thread.
8225 (tfile_target::close): Use switch_to_no_thread instead of writing
8226 to inferior_ptid directly.
8227
8228 2020-06-18 Pedro Alves <palves@redhat.com>
8229
8230 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8231 (procfs_target::detach): Use switch_to_no_thread
8232 instead of writing to inferior_ptid directly.
8233 (do_attach): Change return type to void. Switch to the added
8234 thread.
8235 (procfs_target::create_inferior): Switch to the added thread.
8236 (procfs_do_thread_registers): Don't write to inferior_ptid.
8237
8238 2020-06-18 Pedro Alves <palves@redhat.com>
8239
8240 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8241 of writing to inferior_ptid.
8242 (scoped_restore_exited_inferior): Delete.
8243 (handle_vfork_child_exec_or_exit): Simplify using
8244 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8245 instead of writing to inferior_ptid.
8246 (THREAD_STOPPED_BY): Delete.
8247 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8248 (thread_stopped_by_hw_breakpoint): Delete.
8249 (save_waitstatus): Use
8250 scoped_restore_current_thread+switch_to_thread, and call
8251 target_stopped_by_watchpoint instead of
8252 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8253 instead of thread_stopped_by_sw_breakpoint, and
8254 target_stopped_by_hw_breakpoint instead of
8255 thread_stopped_by_hw_breakpoint.
8256 (handle_inferior_event)
8257 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8258 inferior_ptid directly, nor
8259 set_current_inferior/set_current_program_space. Use
8260 switch_to_thread / switch_to_inferior_no_thread instead.
8261
8262 2020-06-18 Pedro Alves <palves@redhat.com>
8263
8264 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8265 instead of writing to inferior_ptid.
8266
8267 2020-06-18 Pedro Alves <palves@redhat.com>
8268
8269 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8270 added thread.
8271 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8272 to the added thread.
8273 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8274 instead of writing to inferior_ptid.
8275
8276 2020-06-18 Pedro Alves <palves@redhat.com>
8277
8278 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8279 (register_to_value_test): Mock a program_space too. Heap-allocate
8280 the address space. Don't write to inferior_ptid. Use
8281 switch_to_thread instead.
8282
8283 2020-06-18 Pedro Alves <palves@redhat.com>
8284
8285 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8286 Delete.
8287 (find_signalled_thread()): New, factored out from
8288 linux_make_corefile_notes and adjusted to handle exited threads.
8289 (linux_make_corefile_notes): Adjust to use the new
8290 find_signalled_thread.
8291
8292 2020-06-18 Pedro Alves <palves@redhat.com>
8293
8294 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8295 of saving/restoring inferior_ptid.
8296
8297 2020-06-17 Tom Tromey <tom@tromey.com>
8298
8299 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8300 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8301 declare.
8302 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8303
8304 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8305
8306 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8307 of partial symtabs.
8308
8309 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8310
8311 * regformats/reg-arm.dat: Remove.
8312 * regformats/reg-bfin.dat: Remove.
8313 * regformats/reg-cris.dat: Remove.
8314 * regformats/reg-crisv32.dat: Remove.
8315 * regformats/reg-m32r.dat: Remove.
8316 * regformats/reg-tilegx.dat: Remove.
8317 * regformats/reg-tilegx32.dat: Remove.
8318
8319 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8320
8321 * features/Makefile (WHICH): Remove arm files.
8322 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8323 * regformats/arm/arm-with-neon.dat: Remove.
8324 * regformats/arm/arm-with-vfpv2.dat: Remove.
8325 * regformats/arm/arm-with-vfpv3.dat: Remove.
8326
8327 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8328
8329 * features/Makefile (XMLTOC): Remove rx.xml.
8330
8331 2020-06-17 Pedro Alves <palves@redhat.com>
8332
8333 * gdbthread.h (thread_control_state) <trap_expected> Update
8334 comments.
8335
8336 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8337
8338 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8339 ada_language::lookup_symbol_nonlocal.
8340 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8341 (ada_language::lookup_symbol_nonlocal): New member function,
8342 implementation from ada_lookup_symbol_nonlocal.
8343 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8344 initializer.
8345 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8346 initializer.
8347 (cplus_language::lookup_symbol_nonlocal): New member function.
8348 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8349 (minimal_language_data) Likewise.
8350 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8351 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8352 initializer.
8353 (d_language::lookup_symbol_nonlocal): New member function.
8354 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8355 initializer.
8356 (f_language::lookup_symbol_nonlocal): New member function.
8357 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8358 initializer.
8359 * language.c (unknown_language_data): Likewise.
8360 (auto_language_data): Likewise.
8361 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8362 field.
8363 (language_defn::lookup_symbol_nonlocal): New member function.
8364 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8365 initializer.
8366 * objc-lang.c (objc_language_data): Likewise.
8367 * opencl-lang.c (opencl_language_data): Likewise.
8368 * p-lang.c (pascal_language_data): Likewise.
8369 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8370 rust_language::lookup_symbol_nonlocal.
8371 (rust_language_data): Delete la_lookup_symbol_nonlocal
8372 initializer.
8373 (rust_language::lookup_symbol_nonlocal): New member function,
8374 implementation from rust_lookup_symbol_nonlocal.
8375 * symtab.c (lookup_symbol_aux): Update call to
8376 lookup_symbol_nonlocal.
8377 (basic_lookup_symbol_nonlocal): Rename to...
8378 (language_defn::lookup_symbol_nonlocal): ...this, and update
8379 header comment. Remove language_defn parameter, and replace with
8380 uses of `this'.
8381 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8382
8383 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8384
8385 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8386 initializer.
8387 (ada_language::value_print_inner): New member function.
8388 * c-lang.c (c_language_data): Delete la_value_print_inner
8389 initializer.
8390 (cplus_language_data): Likewise.
8391 (asm_language_data): Likewise.
8392 (minimal_language_data): Likewise.
8393 * d-lang.c (d_language_data): Likewise.
8394 (d_language::value_print_inner): New member function.
8395 * f-lang.c (f_language_data): Delete la_value_print_inner
8396 initializer.
8397 (f_language::value_print_inner): New member function.
8398 * f-lang.h (f_value_print_innner): Rename to...
8399 (f_value_print_inner): ...this (note spelling of 'inner').
8400 * f-valprint.c (f_value_print_innner): Rename to...
8401 (f_value_print_inner): ...this (note spelling of 'inner').
8402 * go-lang.c (go_language_data): Delete la_value_print_inner
8403 initializer.
8404 (go_language::value_print_inner): New member function.
8405 * language.c (language_defn::value_print_inner): Define new member
8406 function.
8407 (unk_lang_value_print_inner): Delete.
8408 (unknown_language_data): Delete la_value_print_inner initializer.
8409 (unknown_language::value_print_inner): New member function.
8410 (auto_language_data): Delete la_value_print_inner initializer.
8411 (auto_language::value_print_inner): New member function.
8412 * language.h (language_data): Delete la_value_print_inner field.
8413 (language_defn::value_print_inner): Delcare new member function.
8414 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8415 initializer.
8416 (m2_language::value_print_inner): New member function.
8417 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8418 initializer.
8419 * opencl-lang.c (opencl_language_data): Likewise.
8420 * p-lang.c (pascal_language_data): Likewise.
8421 (pascal_language::value_print_inner): New member function.
8422 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8423 initializer.
8424 (rust_language::value_print_inner): New member function.
8425 * valprint.c (do_val_print): Update call to value_print_inner.
8426
8427 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8428
8429 * ada-lang.c (ada_language_data): Delete la_value_print
8430 initializer.
8431 (ada_language::value_print): New member function.
8432 * c-lang.c (c_language_data): Delete la_value_print initializer.
8433 (cplus_language_data): Likewise.
8434 (asm_language_data): Likewise.
8435 (minimal_language_data): Likewise.
8436 * d-lang.c (d_language_data): Likewise.
8437 * f-lang.c (f_language_data): Likewise.
8438 * go-lang.c (go_language_data): Likewise.
8439 * language.c (unk_lang_value_print): Delete.
8440 (language_defn::value_print): Define new member function.
8441 (unknown_language_data): Delete la_value_print initializer.
8442 (unknown_language::value_print): New member function.
8443 (auto_language_data): Delete la_value_print initializer.
8444 (auto_language::value_print): New member function.
8445 * language.h (language_data): Delete la_value_print field.
8446 (language_defn::value_print): Declare new member function.
8447 (LA_VALUE_PRINT): Update call to value_print.
8448 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8449 * objc-lang.c (objc_language_data): Likewise.
8450 * opencl-lang.c (opencl_language_data): Likewise.
8451 * p-lang.c (pascal_language_data): Likewise.
8452 (pascal_language::value_print): New member function.
8453 * rust-lang.c (rust_language_data): Delete la_value_print
8454 initializer.
8455
8456 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * ada-lang.c (ada_watch_location_expression): Rename to
8459 ada_language::watch_location_expression.
8460 (ada_language_data): Delete la_watch_location_expression
8461 initializer.
8462 (ada_language::watch_location_expression): New member function,
8463 implementation from ada_watch_location_expression.
8464 * breakpoint.c (watch_command_1): Update call to
8465 watch_location_expression.
8466 * c-lang.c (c_watch_location_expression): Rename to
8467 language_defn::watch_location_expression.
8468 (c_language_data): Delete la_watch_location_expression
8469 initializer.
8470 (cplus_language_data): Likewise.
8471 (asm_language_data): Likewise.
8472 (minimal_language_data): Likewise.
8473 * c-lang.h (c_watch_location_expression): Delete declaration.
8474 * d-lang.c (d_language_data): Delete la_watch_location_expression
8475 initializer.
8476 * f-lang.c (f_language_data): Likewise.
8477 * go-lang.c (go_language_data): Likewise.
8478 * language.c (language_defn::watch_location_expression): Member
8479 function implementation from c_watch_location_expression.
8480 (unknown_language_data): Delete la_watch_location_expression
8481 initializer.
8482 (auto_language_data): Likewise.
8483 * language.h (language_data): Delete la_watch_location_expression
8484 field.
8485 (language_defn::watch_location_expression): Declare new member
8486 function.
8487 * m2-lang.c (m2_language_data): Delete
8488 la_watch_location_expression initializer.
8489 * objc-lang.c (objc_language_data): Likewise.
8490 * opencl-lang.c (opencl_language_data): Likewise.
8491 * p-lang.c (pascal_language_data): Likewise.
8492 * rust-lang.c (rust_watch_location_expression): Rename to
8493 rust_language::watch_location_expression.
8494 (rust_language_data): Delete la_watch_location_expression
8495 initializer.
8496 (rust_language::watch_location_expression): New member function,
8497 implementation from rust_watch_location_expression.
8498
8499 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8502 ada_language::collect_symbol_completion_matches.
8503 (ada_language_data): Delete la_collect_symbol_completion_matches
8504 initializer.
8505 (ada_language::collect_symbol_completion_matches): New member
8506 function, implementation from
8507 ada_collect_symbol_completion_matches.
8508 * c-lang.c (c_language_data): Delete
8509 la_collect_symbol_completion_matches initializer.
8510 (cplus_language_data): Likewise.
8511 (asm_language_data): Likewise.
8512 (minimal_language_data): Likewise.
8513 * d-lang.c (d_language_data): Likewise.
8514 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8515 f_language::collect_symbol_completion_matches.
8516 (f_language_data): Delete la_collect_symbol_completion_matches
8517 initializer.
8518 (f_language::collect_symbol_completion_matches) New member
8519 function, implementation from f_collect_symbol_completion_matches.
8520 * go-lang.c (go_language_data): Delete
8521 la_collect_symbol_completion_matches initializer.
8522 * language.c (unknown_language_data): Likewise.
8523 (auto_language_data): Likewise.
8524 * language.h (language_data): Delete
8525 la_collect_symbol_completion_matches field.
8526 (language_defn::collect_symbol_completion_matches): New member
8527 function.
8528 * m2-lang.c (m2_language_data): Delete
8529 la_collect_symbol_completion_matches initializer.
8530 * objc-lang.c (objc_language_data): Likewise.
8531 * opencl-lang.c (opencl_language_data): Likewise.
8532 * p-lang.c (pascal_language_data): Likewise.
8533 * rust-lang.c (rust_language_data): Likewise.
8534 * symtab.c (default_collect_symbol_completion_matches): Delete.
8535 (collect_symbol_completion_matches): Update call to
8536 collect_symbol_completion_matches.
8537 (collect_symbol_completion_matches_type): Likewise.
8538 * symtab.h (default_collect_symbol_completion_matches): Delete
8539 declaration.
8540
8541 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8542
8543 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8544 (ada_language_data): Delete la_word_break_characters initializer.
8545 (ada_language::word_break_characters): New member function.
8546 * c-lang.c (c_language_data): Delete la_word_break_characters
8547 initializer.
8548 (cplus_language_data): Likewise.
8549 (asm_language_data): Likewise.
8550 (minimal_language_data): Likewise.
8551 * completer.c: Update global comment.
8552 (advance_to_expression_complete_word_point): Update call to
8553 word_break_characters.
8554 (complete_files_symbols): Likewise.
8555 (complete_line_internal_1): Likewise.
8556 (default_completer_handle_brkchars): Likewise.
8557 (skip_quoted_chars): Likewise.
8558 * d-lang.c (d_language_data): Delete la_word_break_characters
8559 initializer.
8560 * f-lang.c (f_word_break_characters): Delete.
8561 (f_language_data): Delete la_word_break_characters initializer.
8562 (f_language::word_break_characters): New member function.
8563 * go-lang.c (go_language_data): Delete la_word_break_characters
8564 initializer.
8565 * language.c (unknown_language_data): Likewise.
8566 (auto_language_data): Likewise.
8567 * language.h (default_word_break_characters): Move declaration to
8568 earlier in the file.
8569 (language_data): Delete la_word_break_characters field.
8570 (language_defn::word_break_characters): New member function.
8571 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8572 initializer.
8573 * objc-lang.c (objc_language_data): Likewise.
8574 * opencl-lang.c (opencl_language_data): Likewise.
8575 * p-lang.c (pascal_language_data): Likewise.
8576 * rust-lang.c (rust_language_data): Likewise.
8577
8578 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8579
8580 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8581 (ada_language_data): Delete la_get_symbol_name_matcher
8582 initializer.
8583 (language_defn::get_symbol_name_matcher_inner): New member
8584 function.
8585 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8586 initializer.
8587 (cplus_language_data): Likewise.
8588 (cplus_language::get_symbol_name_matcher_inner): New member
8589 function.
8590 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8591 (minimal_language_data): Likewise.
8592 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8593 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8594 initializer.
8595 * dictionary.c (iter_match_first_hashed): Update call to
8596 get_symbol_name_matcher.
8597 (iter_match_next_hashed): Likewise.
8598 (iter_match_next_linear): Likewise.
8599 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8600 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8601 initializer.
8602 (f_language::get_symbol_name_matcher_inner): New member function.
8603 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8604 initializer.
8605 * language.c (default_symbol_name_matcher): Update header comment,
8606 make static.
8607 (language_defn::get_symbol_name_matcher): New definition.
8608 (language_defn::get_symbol_name_matcher_inner): Likewise.
8609 (get_symbol_name_matcher): Delete.
8610 (unknown_language_data): Delete la_get_symbol_name_matcher
8611 initializer.
8612 (auto_language_data): Likewise.
8613 * language.h (language_data): Delete la_get_symbol_name_matcher
8614 field.
8615 (language_defn::get_symbol_name_matcher): New member function.
8616 (language_defn::get_symbol_name_matcher_inner): Likewise.
8617 (default_symbol_name_matcher): Delete declaration.
8618 * linespec.c (find_methods): Update call to
8619 get_symbol_name_matcher.
8620 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8621 initializer.
8622 * minsyms.c (lookup_minimal_symbol): Update call to
8623 get_symbol_name_matcher.
8624 (iterate_over_minimal_symbols): Likewise.
8625 * objc-lang.c (objc_language_data): Delete
8626 la_get_symbol_name_matcher initializer.
8627 * opencl-lang.c (opencl_language_data): Likewise.
8628 * p-lang.c (pascal_language_data): Likewise.
8629 * psymtab.c (psymbol_name_matches): Update call to
8630 get_symbol_name_matcher.
8631 * rust-lang.c (rust_language_data): Delete
8632 la_get_symbol_name_matcher initializer.
8633 * symtab.c (symbol_matches_search_name): Update call to
8634 get_symbol_name_matcher.
8635 (compare_symbol_name): Likewise.
8636
8637 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8638
8639 * ada-lang.c (ada_language_data): Delete la_compute_program
8640 initializer.
8641 * c-lang.c (c_language_data): Likewise.
8642 (c_language::compute_program): New member function.
8643 (cplus_language_data): Delete la_compute_program initializer.
8644 (cplus_language::compute_program): New member function.
8645 (asm_language_data): Delete la_compute_program initializer.
8646 (minimal_language_data): Likewise.
8647 * c-lang.h (c_compute_program): Update comment.
8648 (cplus_compute_program): Likewise.
8649 * compile/compile-c-support.c (c_compute_program): Likewise.
8650 (cplus_compute_program): Likewise.
8651 * compile/compile.c (compile_to_object): Update call to
8652 la_compute_program.
8653 * d-lang.c (d_language_data): Delete la_compute_program
8654 initializer.
8655 * f-lang.c (f_language_data): Likewise.
8656 * go-lang.c (go_language_data): Likewise.
8657 * language.c (unknown_language_data): Likewise.
8658 (auto_language_data): Likewise.
8659 * language.h (language_data): Delete la_compute_program field.
8660 (language_defn::compute_program): New member function.
8661 * m2-lang.c (m2_language_data): Delete la_compute_program
8662 initializer.
8663 * objc-lang.c (objc_language_data): Likewise.
8664 * opencl-lang.c (opencl_language_data): Likewise.
8665 * p-lang.c (pascal_language_data): Likewise.
8666 * rust-lang.c (rust_language_data): Likewise.
8667
8668 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8669
8670 * ada-lang.c (ada_language_data) Delete
8671 la_class_name_from_physname initializer.
8672 * c-lang.c (c_language_data): Likewise.
8673 (cplus_language_data): Likewise.
8674 (cplus_language::class_name_from_physname): New member function.
8675 (asm_language_data): Delete la_class_name_from_physname
8676 initializer.
8677 (minimal_language_data): Likewise.
8678 * d-lang.c (d_language_data): Likewise.
8679 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8680 method on language_defn class.
8681 (guess_full_die_structure_name): Likewise.
8682 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8683 initializer.
8684 * go-lang.c (go_language_data): Likewise.
8685 * language.c (language_class_name_from_physname): Delete.
8686 (unk_lang_class_name): Delete.
8687 (unknown_language_data): Delete la_class_name_from_physname
8688 initializer.
8689 (auto_language_data): Likewise.
8690 * language.h (language_data): Delete la_class_name_from_physname
8691 field.
8692 (language_defn::class_name_from_physname): New function.
8693 (language_class_name_from_physname): Delete declaration.
8694 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8695 initializer.
8696 * objc-lang.c (objc_language_data): Likewise.
8697 * opencl-lang.c (opencl_language_data): Likewise.
8698 * p-lang.c (pascal_language_data): Likewise.
8699 * rust-lang.c (rust_language_data): Likewise.
8700
8701 2020-06-16 Tom Tromey <tom@tromey.com>
8702
8703 * tui/tui-data.h (STATUS_NAME): New macro.
8704 * tui/tui-layout.c (tui_remove_some_windows)
8705 (initialize_known_windows, tui_register_window)
8706 (tui_layout_split::remove_windows, initialize_layouts)
8707 (tui_new_layout_command): Don't use hard-coded window names.
8708
8709 2020-06-16 Tom Tromey <tom@tromey.com>
8710
8711 PR tui/25348:
8712 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8713 tui_initialize_readline. Only run once. Call rl_initialize.
8714 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8715 tui_initialize_readline.
8716 * tui/tui-io.c (tui_setup_io): Call
8717 tui_ensure_readline_initialized.
8718 * tui/tui-interp.c (tui_interp::init): Update.
8719
8720 2020-06-16 Tom Tromey <tom@tromey.com>
8721
8722 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8723 Also preserve the status window.
8724
8725 2020-06-16 Tom Tromey <tom@tromey.com>
8726
8727 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8728 where m_window==nullptr.
8729
8730 2020-06-15 Tom Tromey <tromey@adacore.com>
8731
8732 * windows-nat.c (windows_nat::handle_output_debug_string):
8733 Update.
8734 (windows_nat::handle_ms_vc_exception): Update.
8735 * target.h (target_read_string): Change API.
8736 * target.c (target_read_string): Change API.
8737 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8738 Update.
8739 * solib-frv.c (frv_current_sos): Update.
8740 * solib-dsbt.c (dsbt_current_sos): Update.
8741 * solib-darwin.c (darwin_current_sos): Update.
8742 * linux-thread-db.c (inferior_has_bug): Update.
8743 * expprint.c (print_subexp_standard): Update.
8744 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8745 (ada_exception_message_1): Update.
8746
8747 2020-06-15 Tom Tromey <tromey@adacore.com>
8748
8749 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8750
8751 2020-06-15 Tom Tromey <tromey@adacore.com>
8752
8753 * valprint.c (read_string): Update comment.
8754 * target.c (MIN): Remove.
8755 (target_read_string): Rewrite.
8756
8757 2020-06-15 Tom Tromey <tromey@adacore.com>
8758
8759 * corefile.c (read_memory_string): Remove.
8760 * ada-valprint.c (ada_value_print_ptr): Update.
8761 * ada-lang.h (ada_tag_name): Change return type.
8762 * ada-lang.c (type_from_tag): Update.
8763 (ada_tag_name_from_tsd): Change return type. Use
8764 target_read_string.
8765 (ada_tag_name): Likewise.
8766 * gdbcore.h (read_memory_string): Don't declare.
8767
8768 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8769
8770 * symtab.c (rbreak_command): Ignore Windows drive colon.
8771
8772 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * NEWS: Mention removed GDBserver host support.
8775
8776 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8777
8778 * features/riscv/rebuild-csr-xml.sh: Updated.
8779
8780 2020-06-11 Tom Tromey <tom@tromey.com>
8781
8782 PR gdb/18318:
8783 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8784
8785 2020-06-09 Jonny Grant <jg@jguk.org>
8786 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8787
8788 * main.c (captured_main_1): Don't print new line after help.
8789 (print_gdb_help): add mailing list and IRC channel information
8790 to --help. Add new lines between items in the footer. Remove
8791 quotes around bug url.
8792
8793 2020-06-11 Keith Seitz <keiths@redhat.com>
8794
8795 PR gdb/21356
8796 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8797 Resolve typedefs for type length calculations.
8798
8799 2020-06-10 Tom de Vries <tdevries@suse.de>
8800
8801 PR ada/24713
8802 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8803 (write_psymbols): Enable .gdb_index for ada.
8804 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8805 ada.
8806
8807 2020-06-10 Tom de Vries <tdevries@suse.de>
8808
8809 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8810 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8811 namei" instead of "const char *name" argument.
8812 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8813 dw2_symtab_iter_init.
8814
8815 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8818 to use type::field and field::type instead.
8819
8820 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8823 to use field::type instead.
8824
8825 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * gdbtypes.h (struct field) <type, set_type>: New methods.
8828 Rename `type` field to...
8829 <m_type>: ... this. Change references throughout to use type or
8830 set_type methods.
8831 (FIELD_TYPE): Use field::type. Change call sites that modify
8832 the field's type to use field::set_type instead.
8833
8834 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8835
8836 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8837 to use type::index_type instead.
8838
8839 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8840
8841 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8842 methods.
8843 (TYPE_INDEX_TYPE): Use type::index_type.
8844 * gdbtypes.c (create_array_type_with_stride): Likewise.
8845
8846 2020-06-07 Tom Tromey <tom@tromey.com>
8847
8848 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8849 parameter.
8850 (generic_value_print): Update.
8851
8852 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8853
8854 Revert commit 982a38f60b0.
8855 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8856
8857 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8860 avoid use after free.
8861
8862 2020-06-05 Tom de Vries <tdevries@suse.de>
8863
8864 * NEWS: Fix typos.
8865
8866 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8869 the per_bfd object.
8870 (dwarf2_read_debug_names): Likewise.
8871 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8872 object when re-using a per_bfd object with an index.
8873
8874 2020-06-03 Tom de Vries <tdevries@suse.de>
8875
8876 PR symtab/26046
8877 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8878 children for C++.
8879 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8880 DW_TAG_subprogram.
8881
8882 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * ada-lang.c (ada_language_data): Delete skip_trampoline
8885 initializer.
8886 * c-lang.c (c_language_data): Likewise.
8887 (cplus_language_data): Likewise.
8888 (cplus_language::skip_trampoline): New member function.
8889 (asm_language_data): Delete skip_trampoline initializer.
8890 (minimal_language_data): Likewise.
8891 * d-lang.c (d_language_data): Likewise.
8892 * f-lang.c (f_language_data): Likewise.
8893 * go-lang.c (go_language_data): Likewise.
8894 * language.c (unk_lang_trampoline): Delete function.
8895 (skip_language_trampoline): Update.
8896 (unknown_language_data): Delete skip_trampoline initializer.
8897 (auto_language_data): Likewise.
8898 * language.h (language_data): Delete skip_trampoline field.
8899 (language_defn::skip_trampoline): New function.
8900 * m2-lang.c (m2_language_data): Delete skip_trampoline
8901 initializer.
8902 * objc-lang.c (objc_skip_trampoline): Delete function, move
8903 implementation to objc_language::skip_trampoline.
8904 (objc_language_data): Delete skip_trampoline initializer.
8905 (objc_language::skip_trampoline): New member function with
8906 implementation from objc_skip_trampoline.
8907 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8908 initializer.
8909 * p-lang.c (pascal_language_data): Likewise.
8910 * rust-lang.c (rust_language_data): Likewise.
8911
8912 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8913
8914 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8915 (ada_language::demangle): New member function.
8916 * c-lang.c (c_language_data): Delete la_demangle initializer.
8917 (cplus_language_data): Delete la_demangle initializer.
8918 (cplus_language::demangle): New member function.
8919 (asm_language_data): Delete la_demangle initializer.
8920 (minimal_language_data): Delete la_demangle initializer.
8921 * d-lang.c (d_language_data): Delete la_demangle initializer.
8922 (d_language::demangle): New member function.
8923 * f-lang.c (f_language_data): Delete la_demangle initializer.
8924 (f_language::demangle): New member function.
8925 * go-lang.c (go_language_data): Delete la_demangle initializer.
8926 (go_language::demangle): New member function.
8927 * language.c (language_demangle): Update.
8928 (unk_lang_demangle): Delete.
8929 (unknown_language_data): Delete la_demangle initializer.
8930 (unknown_language::demangle): New member function.
8931 (auto_language_data): Delete la_demangle initializer.
8932 (auto_language::demangle): New member function.
8933 * language.h (language_data): Delete la_demangle field.
8934 (language_defn::demangle): New function.
8935 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8936 * objc-lang.c (objc_language_data): Delete la_demangle
8937 initializer.
8938 (objc_language::demangle): New member function.
8939 * opencl-lang.c (opencl_language_data): Delete la_demangle
8940 initializer.
8941 * p-lang.c (pascal_language_data): Likewise.
8942 * rust-lang.c (rust_language_data): Likewise.
8943 (rust_language::demangle): New member function.
8944
8945 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 * ada-lang.c (ada_language_data): Delete la_print_type
8948 initializer.
8949 (ada_language::print_type): New member function.
8950 * c-lang.c (c_language_data): Delete la_print_type initializer.
8951 (c_language::print_type): New member function.
8952 (cplus_language_data): Delete la_print_type initializer.
8953 (cplus_language::print_type): New member function.
8954 (asm_language_data): Delete la_print_type initializer.
8955 (asm_language::print_type): New member function.
8956 (minimal_language_data): Delete la_print_type initializer.
8957 (minimal_language::print_type): New member function.
8958 * d-lang.c (d_language_data): Delete la_print_type initializer.
8959 (d_language::print_type): New member function.
8960 * f-lang.c (f_language_data): Delete la_print_type initializer.
8961 (f_language::print_type): New member function.
8962 * go-lang.c (go_language_data): Delete la_print_type initializer.
8963 (go_language::print_type): New member function.
8964 * language.c (unk_lang_print_type): Delete.
8965 (unknown_language_data): Delete la_print_type initializer.
8966 (unknown_language::print_type): New member function.
8967 (auto_language_data): Delete la_print_type initializer.
8968 (auto_language::print_type): New member function.
8969 * language.h (language_data): Delete la_print_type field.
8970 (language_defn::print_type): New function.
8971 (LA_PRINT_TYPE): Update.
8972 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8973 (m2_language::print_type): New member function.
8974 * objc-lang.c (objc_language_data): Delete la_print_type
8975 initializer.
8976 (objc_language::print_type): New member function.
8977 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8978 to opencl_language::print_type.
8979 (opencl_language_data): Delete la_print_type initializer.
8980 (opencl_language::print_type): New member function, implementation
8981 from opencl_print_type.
8982 * p-lang.c (pascal_language_data): Delete la_print_type
8983 initializer.
8984 (pascal_language::print_type): New member function.
8985 * rust-lang.c (rust_print_type): Delete, implementation moved to
8986 rust_language::print_type.
8987 (rust_language_data): Delete la_print_type initializer.
8988 (rust_language::print_type): New member function, implementation
8989 from rust_print_type.
8990
8991 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8994 implementation moves to...
8995 (ada_language::sniff_from_mangled_name): ...here. Update return
8996 type.
8997 (ada_language_data): Delete la_sniff_from_mangled_name
8998 initializer.
8999 * c-lang.c (c_language_data): Likewise.
9000 (cplus_language_data): Likewise.
9001 (cplus_language::sniff_from_mangled_name): New member function,
9002 implementation taken from gdb_sniff_from_mangled_name.
9003 (asm_language_data): Delete la_sniff_from_mangled_name
9004 initializer.
9005 (minimal_language_data): Likewise.
9006 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9007 implementation moves to cplus_language::sniff_from_mangled_name.
9008 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9009 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9010 moves to...
9011 (d_language::sniff_from_mangled_name): ...here.
9012 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9013 * f-lang.c (f_language_data): Likewise.
9014 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9015 moves to...
9016 (go_language::sniff_from_mangled_name): ...here.
9017 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9018 * language.c (language_sniff_from_mangled_name): Delete.
9019 (unknown_language_data): Delete la_sniff_from_mangled_name
9020 initializer.
9021 (auto_language_data): Likewise.
9022 * language.h (language_data): Delete la_sniff_from_mangled_name
9023 field.
9024 (language_defn::sniff_from_mangled_name): New function.
9025 (language_sniff_from_mangled_name): Delete declaration.
9026 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9027 field.
9028 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9029 implementation moves to...
9030 (objc_language::sniff_from_mangled_name): ...here.
9031 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9032 * opencl-lang.c (opencl_language_data): Likewise.
9033 * p-lang.c (pascal_language_data): Likewise.
9034 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9035 implementation moves to...
9036 (rust_language::sniff_from_mangled_name): ...here.
9037 (rust_language_data): Delete la_sniff_from_mangled_name
9038 initializer.
9039 * symtab.c (symbol_find_demangled_name): Call
9040 sniff_from_mangled_name member function.
9041
9042 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9045 initializer.
9046 * c-lang.c (c_language_data): Likewise.
9047 (cplus_language_data): Likewise.
9048 (cplus_language::search_name_hash): New member function.
9049 (asm_language_data): Delete la_search_name_hash initializer.
9050 (minimal_language_data): Likewise.
9051 * d-lang.c (d_language_data): Likewise.
9052 * dictionary.c (default_search_name_hash): Rename to...
9053 (language_defn::search_name_hash): ...this.
9054 * f-lang.c (f_language_data): Likewise.
9055 (f_language::search_name_hash): New member function.
9056 * go-lang.c (go_language_data): Delete la_search_name_hash
9057 initializer.
9058 * language.c (unknown_language_data): Likewise.
9059 (auto_language_data): Likewise.
9060 * language.h (struct language_data): Delete la_search_name_hash
9061 field.
9062 (language_defn::search_name_hash): Declare new member function.
9063 (default_search_name_hash): Delete declaration.
9064 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9065 initializer.
9066 * objc-lang.c (objc_language_data): Likewise.
9067 * opencl-lang.c (opencl_language_data): Likewise.
9068 * p-lang.c (pascal_language_data): Likewise.
9069 * rust-lang.c (rust_language_data): Likewise.
9070 * symtab.c (search_name_hash): Update call.
9071
9072 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9073
9074 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9075 initializer.
9076 * c-lang.c (class compile_instance): Declare.
9077 (c_language_data): Delete la_get_compile_instance initializer.
9078 (c_language::get_compile_instance): New member function.
9079 (cplus_language_data): Delete la_get_compile_instance initializer.
9080 (cplus_language::get_compile_instance): New member function.
9081 (asm_language_data): Delete la_get_compile_instance initializer.
9082 (minimal_language_data): Likewise.
9083 * c-lang.h (c_get_compile_context): Update comment.
9084 (cplus_get_compile_context): Update comment.
9085 * compile/compile.c (compile_to_object): Update calls, don't rely
9086 on function pointer being NULL.
9087 * d-lang.c (d_language_data): Delete la_get_compile_instance
9088 initializer.
9089 * f-lang.c (f_language_data): Likewise.
9090 * go-lang.c (go_language_data): Likewise.
9091 * language.c (unknown_language_data): Likewise.
9092 (auto_language_data): Likewise.
9093 * language.h (language_data): Delete la_get_compile_instance field.
9094 (language_defn::get_compile_instance): New member function.
9095 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9096 initializer.
9097 * objc-lang.c (objc_language_data): Likewise.
9098 * opencl-lang.c (opencl_language_data): Likewise.
9099 * p-lang.c (pascal_language_data): Likewise.
9100 * rust-lang.c (rust_language_data): Likewise.
9101
9102 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * ada-lang.c (ada_add_all_symbols): Update comment.
9105 (ada_iterate_over_symbols): Delete, move implementation to...
9106 (ada_language::iterate_over_symbols): ...here, a new member
9107 function, rewrite to use range based for loop.
9108 (ada_language_data): Delete la_iterate_over_symbols initializer.
9109 * c-lang.c (c_language_data): Likewise.
9110 (cplus_language_data): Likewise.
9111 (asm_language_data): Likewise.
9112 (minimal_language_data): Likewise.
9113 * d-lang.c (d_language_data): Likewise.
9114 * f-lang.c (f_language_data): Likewise.
9115 * go-lang.c (go_language_data): Likewise.
9116 * language.c (unknown_language_data): Likewise.
9117 (auto_language_data): Likewise.
9118 * language.h (language_data): Delete la_iterate_over_symbols field.
9119 (language_defn::iterate_over_symbols): New member function.
9120 (LA_ITERATE_OVER_SYMBOLS): Update.
9121 * linespec.c (iterate_over_all_matching_symtabs): Update.
9122 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9123 initializer.
9124 * objc-lang.c (objc_language_data): Likewise.
9125 * opencl-lang.c (opencl_language_data): Likewise.
9126 * p-lang.c (pascal_language_data): Likewise.
9127 * rust-lang.c (rust_language_data): Likewise.
9128
9129 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9130
9131 * ada-lang.c (ada_language_data): Delete
9132 la_lookup_transparent_type initializer.
9133 * c-lang.c (c_language_data): Likewise.
9134 (cplus_language_data): Likewise.
9135 (cplus_language::lookup_transparent_type): New member function.
9136 (asm_language_data): Delete la_lookup_transparent_type
9137 initializer.
9138 (minimal_language_data): Likewise.
9139 * d-lang.c (d_language_data): Likewise.
9140 * f-lang.c (f_language_data): Likewise.
9141 * go-lang.c (go_language_data): Likewise.
9142 * language.c (unknown_language_data): Likewise.
9143 (auto_language_data): Likewise.
9144 * language.h (struct language_data): Delete
9145 la_lookup_transparent_type field.
9146 (language_defn::lookup_transparent_type): New member function.
9147 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9148 initializer.
9149 * objc-lang.c (objc_language_data): Likewise.
9150 * opencl-lang.c (opencl_language_data): Likewise.
9151 * p-lang.c (pascal_language_data): Likewise.
9152 * rust-lang.c (rust_language_data): Likewise.
9153 * symtab.c (symbol_matches_domain): Update call.
9154
9155 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9156
9157 * ada-lang.c (ada_language_arch_info): Delete function, move
9158 implementation to...
9159 (ada_language::language_arch_info): ...here, a new member
9160 function.
9161 (ada_language_data): Delete la_language_arch_info.
9162 * c-lang.c (c_language_data): Likewise.
9163 (c_language::language_arch_info): New member function.
9164 (cplus_language_arch_info): Delete function, move
9165 implementation to...
9166 (cplus_language::language_arch_info): ...here, a new member
9167 function.
9168 (cplus_language_data): Delete la_language_arch_info.
9169 (asm_language_data): Likewise.
9170 (asm_language::language_arch_info): New member function.
9171 (minimal_language_data): Delete la_language_arch_info.
9172 (minimal_language::language_arch_info): New member function.
9173 * d-lang.c (d_language_arch_info): Delete function, move
9174 implementation to...
9175 (d_language::language_arch_info): ...here, a new member
9176 function.
9177 (d_language_data): Delete la_language_arch_info.
9178 * f-lang.c (f_language_arch_info): Delete function, move
9179 implementation to...
9180 (f_language::language_arch_info): ...here, a new member
9181 function.
9182 (f_language_data): Delete la_language_arch_info.
9183 * go-lang.c (go_language_arch_info): Delete function, move
9184 implementation to...
9185 (go_language::language_arch_info): ...here, a new member
9186 function.
9187 (go_language_data): Delete la_language_arch_info.
9188 * language.c (unknown_language_data): Likewise.
9189 (unknown_language::language_arch_info): New member function.
9190 (auto_language_data): Delete la_language_arch_info.
9191 (auto_language::language_arch_info): New member function.
9192 (language_gdbarch_post_init): Update call to
9193 la_language_arch_info.
9194 * language.h (language_data): Delete la_language_arch_info
9195 function pointer.
9196 (language_defn::language_arch_info): New function.
9197 * m2-lang.c (m2_language_arch_info): Delete function, move
9198 implementation to...
9199 (m2_language::language_arch_info): ...here, a new member
9200 function.
9201 (m2_language_data): Delete la_language_arch_info.
9202 * objc-lang.c (objc_language_arch_info): Delete function, move
9203 implementation to...
9204 (objc_language::language_arch_info): ...here, a new member
9205 function.
9206 (objc_language_data): Delete la_language_arch_info.
9207 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9208 implementation to...
9209 (opencl_language::language_arch_info): ...here, a new member
9210 function.
9211 (opencl_language_data): Delete la_language_arch_info.
9212 * p-lang.c (pascal_language_arch_info): Delete function, move
9213 implementation to...
9214 (pascal_language::language_arch_info): ...here, a new member
9215 function.
9216 (pascal_language_data): Delete la_language_arch_info.
9217 * rust-lang.c (rust_language_arch_info): Delete function, move
9218 implementation to...
9219 (rust_language::language_arch_info): ...here, a new member
9220 function.
9221 (rust_language_data): Delete la_language_arch_info.
9222
9223 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9224
9225 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9226 initializer.
9227 * c-lang.c (c_language_data): Likewise.
9228 (cplus_language_data): Likewise.
9229 (cplus_language::pass_by_reference_info): New method.
9230 (asm_language_data): Delete la_pass_by_reference initializer.
9231 (minimal_language_data): Likewise.
9232 * cp-abi.c (cp_pass_by_reference): Remove use of
9233 default_pass_by_reference.
9234 * d-lang.c (d_language_data): Likewise.
9235 * f-lang.c (f_language_data): Likewise.
9236 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9237 default_pass_by_reference.
9238 * go-lang.c (go_language_data): Likewise.
9239 * language.c (language_pass_by_reference): Update.
9240 (default_pass_by_reference): Delete.
9241 (unknown_language_data): Delete la_pass_by_reference
9242 initializer.
9243 (auto_language_data): Likewise.
9244 * language.h (struct language_data): Delete la_pass_by_reference
9245 field.
9246 (language_defn::pass_by_reference_info): New member function.
9247 (default_pass_by_reference): Delete declaration.
9248 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9249 initializer.
9250 * objc-lang.c (objc_language_data): Likewise.
9251 * opencl-lang.c (opencl_language_data): Likewise.
9252 * p-lang.c (pascal_language_data): Likewise.
9253 * rust-lang.c (rust_language_data): Likewise.
9254
9255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 * ada-lang.c (ada_read_var_value): Delete function, move
9258 implementation to...
9259 (ada_language::read_var_value): ...here.
9260 (ada_language_data): Delete la_read_var_value initializer.
9261 * c-lang.c (c_language_data): Likewise.
9262 (cplus_language_data): Likewise.
9263 (minimal_language_data): Likewise.
9264 * d-lang.c (d_language_data): Likewise.
9265 * f-lang.c (f_language_data): Likewise.
9266 * findvar.c (default_read_var_value): Rename to...
9267 (language_defn::read_var_value): ...this.
9268 * findvar.c (read_var_value): Update header comment, and change to
9269 call member function instead of function pointer.
9270 * go-lang.c (go_language_data): Likewise.
9271 * language.c (unknown_language_data): Delete la_read_var_value
9272 initializer.
9273 (auto_language_data): Likewise.
9274 * language.h (struct language_data): Delete la_read_var_value
9275 field.
9276 (language_defn::read_var_value): New member function.
9277 (default_read_var_value): Delete declaration.
9278 * m2-lang.c (m2_language_data): Delete la_read_var_value
9279 initializer.
9280 * objc-lang.c (objc_language_data): Likewise.
9281 * opencl-lang.c (opencl_language_data): Likewise.
9282 * p-lang.c (pascal_language_data): Likewise.
9283 * rust-lang.c (rust_language_data): Likewise.
9284 * value.h (default_read_var_value): Delete declaration.
9285
9286 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9287
9288 * ada-lang.c (ada_print_array_index): Delete function, move
9289 implementation to...
9290 (ada_language::print_array_index): ...here.
9291 (ada_language_data): Delete la_print_array_index initializer.
9292 * c-lang.c (c_language_data): Likewise.
9293 (cplus_language_data): Likewise.
9294 (minimal_language_data): Likewise.
9295 * d-lang.c (d_language_data): Likewise.
9296 * f-lang.c (f_language_data): Likewise.
9297 * go-lang.c (go_language_data): Likewise.
9298 * language.c (default_print_array_index): Delete function, move
9299 implementation to...
9300 (language_defn::print_array_index): ...here.
9301 (unknown_language_data): Delete la_print_array_index initializer.
9302 (auto_language_data): Likewise.
9303 * language.h (struct language_data): Delete la_print_array_index
9304 field.
9305 (language_defn::print_array_index): New member function.
9306 (LA_PRINT_ARRAY_INDEX): Update.
9307 (default_print_array_index): Delete declaration.
9308 * m2-lang.c (m2_language_data): Delete la_print_array_index
9309 initializer.
9310 * objc-lang.c (objc_language_data): Likewise.
9311 * opencl-lang.c (opencl_language_data): Likewise.
9312 * p-lang.c (pascal_language_data): Likewise.
9313 * rust-lang.c (rust_language_data): Likewise.
9314
9315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9316
9317 * gdb/ada-lang.c (ada_language_defn): Convert to...
9318 (ada_language_data): ...this.
9319 (class ada_language): New class.
9320 (ada_language_defn): New static global.
9321 * gdb/c-lang.c (c_language_defn): Convert to...
9322 (c_language_data): ...this.
9323 (class c_language): New class.
9324 (c_language_defn): New static global.
9325 (cplus_language_defn): Convert to...
9326 (cplus_language_data): ...this.
9327 (class cplus_language): New class.
9328 (cplus_language_defn): New static global.
9329 (asm_language_defn): Convert to...
9330 (asm_language_data): ...this.
9331 (class asm_language): New class.
9332 (asm_language_defn): New static global.
9333 (minimal_language_defn): Convert to...
9334 (minimal_language_data): ...this.
9335 (class minimal_language): New class.
9336 (minimal_language_defn): New static global.
9337 * gdb/d-lang.c (d_language_defn): Convert to...
9338 (d_language_data): ...this.
9339 (class d_language): New class.
9340 (d_language_defn): New static global.
9341 * gdb/f-lang.c (f_language_defn): Convert to...
9342 (f_language_data): ...this.
9343 (class f_language): New class.
9344 (f_language_defn): New static global.
9345 * gdb/go-lang.c (go_language_defn): Convert to...
9346 (go_language_data): ...this.
9347 (class go_language): New class.
9348 (go_language_defn): New static global.
9349 * gdb/language.c (unknown_language_defn): Remove declaration.
9350 (current_language): Initialize to nullptr, real initialization is
9351 moved to _initialize_language.
9352 (languages): Delete global.
9353 (language_defn::languages): Define.
9354 (set_language_command): Use language_defn::languages.
9355 (set_language): Likewise.
9356 (range_error): Likewise.
9357 (language_enum): Likewise.
9358 (language_def): Likewise.
9359 (add_set_language_command): Use language_def::languages for the
9360 language list, and language_def to lookup language pointers.
9361 (skip_language_trampoline): Use language_defn::languages.
9362 (unknown_language_defn): Convert to...
9363 (unknown_language_data): ...this.
9364 (class unknown_language): New class.
9365 (unknown_language_defn): New static global.
9366 (auto_language_defn): Convert to...
9367 (auto_language_data): ...this.
9368 (class auto_language): New class.
9369 (auto_language_defn): New static global.
9370 (language_gdbarch_post_init): Use language_defn::languages.
9371 (_initialize_language): Initialize current_language.
9372 * gdb/language.h (struct language_defn): Rename to...
9373 (struct language_data): ...this.
9374 (struct language_defn): New.
9375 (auto_language_defn): Delete.
9376 (unknown_language_defn): Delete.
9377 (minimal_language_defn): Delete.
9378 (ada_language_defn): Delete.
9379 (asm_language_defn): Delete.
9380 (c_language_defn): Delete.
9381 (cplus_language_defn): Delete.
9382 (d_language_defn): Delete.
9383 (f_language_defn): Delete.
9384 (go_language_defn): Delete.
9385 (m2_language_defn): Delete.
9386 (objc_language_defn): Delete.
9387 (opencl_language_defn): Delete.
9388 (pascal_language_defn): Delete.
9389 (rust_language_defn): Delete.
9390 * gdb/m2-lang.c (m2_language_defn): Convert to...
9391 (m2_language_data): ...this.
9392 (class m2_language): New class.
9393 (m2_language_defn): New static global.
9394 * gdb/objc-lang.c (objc_language_defn): Convert to...
9395 (objc_language_data): ...this.
9396 (class objc_language): New class.
9397 (objc_language_defn): New static global.
9398 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9399 (opencl_language_data): ...this.
9400 (class opencl_language): New class.
9401 (opencl_language_defn): New static global.
9402 * gdb/p-lang.c (pascal_language_defn): Convert to...
9403 (pascal_language_data): ...this.
9404 (class pascal_language): New class.
9405 (pascal_language_defn): New static global.
9406 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9407 language pointer, update comment format.
9408 * gdb/rust-lang.c (rust_language_defn): Convert to...
9409 (rust_language_data): ...this.
9410 (class rust_language): New class.
9411 (rust_language_defn): New static global.
9412
9413 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9416 member variable.
9417 <m_stmt_at_address>: New member variable.
9418 (lnp_state_machine::record_line): Don't record some lines, update
9419 tracking of is_stmt at the same address.
9420 (lnp_state_machine::lnp_state_machine): Initialise new member
9421 variables.
9422
9423 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9424
9425 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9426 "-include gnu-nat-mig.h".
9427 * gnu-nat-mig.h: New file.
9428 * gnu-nat.c: Include "gnu-nat-mig.h".
9429 (exc_server, msg_reply_server, notify_server,
9430 process_reply_server): Remove declarations.
9431
9432 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9433
9434 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9435 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9436 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9437 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9438 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9439 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9440 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9441 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9442 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9443 to gnu_nat_target class.
9444 * gnu-nat.c: Likewise.
9445 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9446 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9447 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9448 object.
9449 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9450 instead of `gnu_target'.
9451
9452 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9453
9454 * i386-gnu-tdep.c: Include "gdbcore.h"
9455 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9456 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9457 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9458 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9459 i386_gnu_sigcontext_addr): New functions
9460 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9461 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9462 tdep.
9463
9464 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9465
9466 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9467 before fork_inferior call. Avoid calling it if target_is_pushed returns
9468 true.
9469
9470 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9471
9472 * gnu-nat.h (gnu_target): New variable declaration.
9473 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9474 gnu_target.
9475 * gnu-nat.c (gnu_target): New variable.
9476 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9477 add_thread_silent, and add_thread calls.
9478 (gnu_nat_target::create_inferior): Pass gnu_target to
9479 add_thread_silent, thread_change_ptid call.
9480 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9481 call.
9482
9483 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9484
9485 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9486 (gnu_nat_target::find_memory_regions): Remove unused
9487 `old_address' variable.
9488
9489 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9490
9491 * gnu-nat.c: Include "gdbarch.h".
9492
9493 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9494
9495 * reply_mig_hack.awk (Error return): Cast function through
9496 void *, to bypass compiler function call check.
9497
9498 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9499
9500 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9501 $(srcdir)/reply_mig_hack.awk.
9502
9503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9504
9505 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9506
9507 2020-05-30 Jonny Grant <jg@jguk.org>
9508
9509 * configure.ac (ACX_BUGURL): change bug URL to https.
9510
9511 2020-05-30 Pedro Alves <palves@redhat.com>
9512
9513 * cp-support.c (replace_typedefs_template): New.
9514 (replace_typedefs_qualified_name): Handle
9515 DEMANGLE_COMPONENT_TEMPLATE.
9516
9517 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9518
9519 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9520 dwarf2/index-cache.h, dwarf2/index-write.c,
9521 dwarf2/index-write.h, dwarf2/line-header.c,
9522 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9523 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9524 variables and fields from `dwarf2_per_objfile` to just
9525 `per_objfile` throughout.
9526
9527 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9528
9529 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9530 <push_dwarf_reg_entry_value>: Add comment.
9531
9532 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9533 Keith Seitz <keiths@redhat.com>
9534
9535 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9536 instead of PyEval_ReleaseLock.
9537 (class gdbpy_gil): Move to earlier in file.
9538 (finalize_python): Set gdb_python_initialized.
9539 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9540 when not initialized.
9541
9542 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9545 <push_dwarf_reg_entry_value>: Remove assert. Override
9546 per_objfile with caller_per_objfile.
9547
9548 2020-05-28 Tom de Vries <tdevries@suse.de>
9549
9550 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9551 PR gold/15646 workaround to symbol kind "type".
9552
9553 2020-05-27 Tom Tromey <tromey@adacore.com>
9554
9555 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9556
9557 2020-05-27 Tom Tromey <tromey@adacore.com>
9558
9559 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9560 Use htab_find_with_hash.
9561 <add_abbrev>: Remove "abbrev_number" parameter.
9562 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9563 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9564 (hash_abbrev): Add comment.
9565 (abbrev_table::lookup_abbrev): Move to header file.
9566 (abbrev_table::read): Update.
9567
9568 2020-05-27 Tom Tromey <tromey@adacore.com>
9569
9570 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9571 method.
9572 <canonical_name>: New member.
9573 <raw_name>: Rename from "name".
9574 (partial_die_info): Initialize canonical_name.
9575 (scan_partial_symbols): Check raw_name.
9576 (partial_die_parent_scope, partial_die_full_name)
9577 (add_partial_symbol, add_partial_subprogram)
9578 (add_partial_enumeration, load_partial_dies): Use "name" method.
9579 (partial_die_info::name): New method.
9580 (partial_die_info::read, guess_partial_die_structure_name)
9581 (partial_die_info::fixup): Update.
9582
9583 2020-05-27 Tom Tromey <tromey@adacore.com>
9584
9585 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9586 <get_ref_die_offset>: Inline.
9587 <get_ref_die_offset_complaint>: New method.
9588 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9589 (attribute::get_ref_die_offset_complaint): Rename from
9590 get_ref_die_offset. Just issue complaint.
9591
9592 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9593
9594 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9595
9596 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9597
9598 * exec.c (exec_file_attach): Use errno value of first openp failure.
9599
9600 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9601
9602 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9603 Don't close thread handle.
9604
9605 2020-05-27 Tom Tromey <tom@tromey.com>
9606 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9609 shared_ptr.
9610 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9611 member.
9612 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9613 dwarf2_per_bfd_objfile_data_key>: New globals.
9614 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9615 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9616 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9617 shared.
9618 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9619 short-circuit when sharing.
9620 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9621 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9622
9623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9626 to...
9627 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9628 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9629
9630 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9631
9632 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9633 build_name_components, find_name_components_bounds>:
9634 Add per_objfile parameter.
9635 (struct mapped_index) <symbol_name_at>: Likewise.
9636 (struct mapped_debug_names): Remove constructor.
9637 <dwarf2_per_objfile>: Remove field.
9638 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9639 (mapped_index_base::find_name_components_bounds,
9640 mapped_index_base::build_name_components,
9641 dw2_expand_symtabs_matching_symbol): Likewise.
9642 (class mock_mapped_index) <symbol_name_at>: Likewise.
9643 (check_match): Likewise.
9644 (check_find_bounds_finds): Likewise.
9645 (test_mapped_index_find_name_component_bounds): Update.
9646 (CHECK_MATCH): Update.
9647 (dw2_expand_symtabs_matching): Update.
9648 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9649 per_objfile parameter.
9650 <find_vec_in_debug_names>: Likewise.
9651 <m_per_objfile>: New field.
9652 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9653 parameter.
9654 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9655 (dw2_debug_names_iterator::next): Update.
9656 (dw2_debug_names_lookup_symbol): Update.
9657 (dw2_debug_names_expand_symtabs_for_function): Update.
9658 (dw2_debug_names_map_matching_symbols): Update.
9659 (dw2_debug_names_expand_symtabs_matching): Update.
9660 (dwarf2_read_debug_names): Update.
9661
9662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9665 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9666 move to dwarf2_per_objfile.
9667 <read_in_chain>: Remove.
9668 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9669 remove_all_cus, age_comp_units>: New methods.
9670 <m_dwarf2_cus>: New member.
9671 (struct dwarf2_per_cu_data) <cu>: Remove.
9672 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9673 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9674 moved to methods of dwarf2_per_objfile.
9675 (dwarf2_clear_marks): Remove.
9676 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9677 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9678 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9679 (dwarf2_per_objfile::remove_all_cus): New.
9680 (class free_cached_comp_units) <~free_cached_comp_units>:
9681 Update.
9682 (load_cu): Update.
9683 (dw2_do_instantiate_symtab): Adjust.
9684 (fill_in_sig_entry_from_dwo_entry): Adjust.
9685 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9686 (cutu_reader::cutu_reader): Likewise.
9687 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9688 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9689 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9690 and dwarf2_per_objfile::age_comp_units.
9691 (load_partial_comp_unit): Update.
9692 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9693 (process_queue): Likewise.
9694 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9695 backlink.
9696 (dwarf2_read_addr_index): Likewise.
9697 (follow_die_offset): Likewise.
9698 (dwarf2_fetch_die_loc_sect_off): Likewise.
9699 (dwarf2_fetch_constant_bytes): Likewise.
9700 (dwarf2_fetch_die_type_sect_off): Likewise.
9701 (follow_die_sig_1): Likewise.
9702 (load_full_type_unit): Likewise.
9703 (read_signatured_type): Likewise.
9704 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9705 (dwarf2_cu::~dwarf2_cu): Remove.
9706 (dwarf2_per_objfile::get_cu): New.
9707 (dwarf2_per_objfile::set_cu): New.
9708 (age_cached_comp_units): Rename to...
9709 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9710 to std::unordered_map.
9711 (free_one_cached_comp_unit): Rename to...
9712 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9713 to std::unordered_map.
9714 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9715 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9716 a dwarf2_per_objfile in data.
9717 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9718 (dwarf2_clear_marks): Remove.
9719
9720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9723 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9724 (init_tu_and_read_dwo_dies): Likewise.
9725 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9726 (cutu_reader::cutu_reader): Likewise.
9727 (load_partial_comp_unit): Likewise.
9728 (process_psymtab_comp_unit): Update.
9729 (build_type_psymtabs_1): Update.
9730 (process_skeletonless_type_unit): Update.
9731 (load_full_comp_unit): Update.
9732 (find_partial_die): Update.
9733 (dwarf2_read_addr_index): Update.
9734 (read_signatured_type): Update.
9735
9736 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9737
9738 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9739 m_header_read_in>: New fields.
9740 <get_header>: New method.
9741 * dwarf2/read.c (per_cu_header_read_in): Remove.
9742 (dwarf2_per_cu_data::get_header): New.
9743 (dwarf2_per_cu_data::addr_size): Update.
9744 (dwarf2_per_cu_data::offset_size): Update.
9745 (dwarf2_per_cu_data::ref_addr_size): Update.
9746
9747 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9748
9749 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9750 (dw2_do_instantiate_symtab): Update.
9751 (queue_and_load_all_dwo_tus): Change parameter from
9752 dwarf2_per_cu_data to dwarf2_cu.
9753 (dwarf2_fetch_die_loc_sect_off): Update.
9754 (dwarf2_fetch_constant_bytes): Update.
9755 (dwarf2_fetch_die_type_sect_off): Update.
9756
9757 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9758
9759 * dwarf2/read.c (process_full_comp_unit,
9760 process_full_type_unit): Remove per_cu, per_objfile paramters.
9761 Add dwarf2_cu parameter.
9762 (process_queue): Update.
9763
9764 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9765
9766 * dwarf2/read.c (create_cu_from_index_list): Replace
9767 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9768 (create_cus_from_index_list): Likewise.
9769 (create_cus_from_index): Likewise.
9770 (create_signatured_type_table_from_index): Likewise.
9771 (create_cus_from_debug_names_list): Likewise.
9772 (create_cus_from_debug_names): Likewise.
9773 (dwarf2_read_gdb_index): Update.
9774 (dwarf2_read_debug_names): Update.
9775
9776 2020-05-27 Tom Tromey <tom@tromey.com>
9777 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * dwarf2/read.h (struct dwarf2_per_objfile)
9780 <get_type_for_signatured_type, set_type_for_signatured_type>:
9781 New methods.
9782 <m_type_map>: New member.
9783 (struct signatured_type) <type>: Remove.
9784 * dwarf2/read.c
9785 (dwarf2_per_objfile::get_type_for_signatured_type,
9786 dwarf2_per_objfile::set_type_for_signatured_type): New.
9787 (get_signatured_type): Use new methods.
9788
9789 2020-05-27 Tom Tromey <tom@tromey.com>
9790 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9793 (struct dwarf2_per_objfile) <type_units>: New member.
9794 <get_type_unit_group_unshareable>: New method.
9795 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9796 num_symtabs, symtabs>: Remove; move to
9797 type_unit_group_unshareable.
9798 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9799 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9800 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9801
9802 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * dwarf2/read.h (struct dwarf2_per_cu_data):
9805 <dwarf2_per_objfile>: Remove.
9806 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9807 dwarf2_per_objfile.
9808 (create_signatured_type_table_from_index): Likewise.
9809 (create_signatured_type_table_from_debug_names): Likewise.
9810 (create_debug_type_hash_table): Likewise.
9811 (fill_in_sig_entry_from_dwo_entry): Likewise.
9812 (create_type_unit_group): Likewise.
9813 (read_comp_units_from_section): Likewise.
9814 (create_cus_hash_table): Likewise.
9815
9816 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9819 dwarf2_per_cu_data::dwarf2_per_objfile.
9820 (compute_compunit_symtab_includes): Likewise.
9821 (dwarf2_cu::start_symtab): Likewise.
9822
9823 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9824
9825 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9826 parameter.
9827 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9828 (read_namespace_alias): Update.
9829 (lookup_die_type): Update.
9830 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9831 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9832 Update.
9833 (disassemble_dwarf_expression): Update.
9834
9835 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9836
9837 * dwarf2/read.h (struct dwarf2_queue_item): Add
9838 dwarf2_per_objfile parameter, assign new parameter.
9839 <per_objfile>: New field.
9840 * dwarf2/read.c (free_one_cached_comp_unit): Add
9841 dwarf2_per_objfile parameter.
9842 (queue_comp_unit): Likewise.
9843 (dw2_do_instantiate_symtab): Update.
9844 (process_psymtab_comp_unit): Update.
9845 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9846 (process_imported_unit_die): Update.
9847 (queue_and_load_dwo_tu): Update.
9848 (follow_die_offset): Update.
9849 (follow_die_sig_1): Update.
9850
9851 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9854 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9855 (read_call_site_scope): Assign per_objfile.
9856 (dwarf2_per_cu_data::objfile): Remove.
9857 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9858 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9859 dwarf2_per_objfile parameter.
9860 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9861 dwarf2_per_objfile parameter.
9862 (dwarf_expr_reg_to_entry_parameter): Add output
9863 dwarf2_per_objfile parameter.
9864 (locexpr_get_frame_base): Update.
9865 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9866 <push_dwarf_reg_entry_value>: Update.
9867 <call_site_to_target_addr>: Update.
9868 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9869 parameter.
9870 (value_of_dwarf_reg_entry): Update.
9871 (rw_pieced_value): Update.
9872 (indirect_synthetic_pointer): Update.
9873 (dwarf2_evaluate_property): Update.
9874 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9875 parameter.
9876 (locexpr_read_variable): Update.
9877 (locexpr_get_symbol_read_needs): Update.
9878 (loclist_read_variable): Update.
9879
9880 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9881
9882 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9883 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9884 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9885 parameter.
9886 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9887 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9888 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9889 parameter.
9890 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9891 sect_variable_value): Add dwarf2_per_objfile parameter.
9892 (class dwarf_evaluate_loc_desc) <dwarf_call,
9893 dwarf_variable_value>: Update.
9894 (fetch_const_value_from_synthetic_pointer): Add
9895 dwarf2_per_objfile parameter.
9896 (fetch_const_value_from_synthetic_pointer): Update.
9897 (coerced_pieced_ref): Update.
9898 (class symbol_needs_eval_context) <dwarf_call,
9899 dwarf_variable_value>: Update.
9900 (dwarf2_compile_expr_to_ax): Update.
9901
9902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9905 parameter.
9906 (dwarf2_evaluate_loc_desc_full): Update.
9907
9908 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9909
9910 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9911 parameter.
9912 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9913 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9914 dwarf2_per_objfile parameter.
9915 (decode_debug_loc_dwo_addresses): Likewise.
9916 (dwarf2_find_location_expression): Update.
9917 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9918 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9919 parameter.
9920 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9921 parameter.
9922 (locexpr_describe_location_1): Likewise.
9923 (locexpr_describe_location): Update.
9924
9925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9928 Remove.
9929 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9930 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9931 (dwarf2_compile_property_to_c): Update.
9932 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9933 use text offset from objfile.
9934 (locexpr_tracepoint_var_ref): Update.
9935 (locexpr_generate_c_location): Update.
9936 (loclist_describe_location): Update.
9937 (loclist_tracepoint_var_ref): Update.
9938 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9939 dwarf2_per_objfile parameter.
9940 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9941 use text offset from objfile.
9942 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9943
9944 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9945
9946 * dwarf2/expr.h (struct dwarf_expr_context)
9947 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9948 <offset>: Remove.
9949 <per_objfile>: New member.
9950 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9951 dwarf2_per_objfile parameter. Don't set offset, set
9952 per_objfile.
9953 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9954 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9955 a dwarf2_per_objfile object instead of an offset.
9956 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9957 constructor.
9958 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9959 to dwarf2_expr_executor constructor. Don't set offset.
9960 (dwarf2_fetch_cfa_info): Update.
9961 (struct dwarf2_frame_cache) <text_offset>: Remove.
9962 <per_objfile>: New field.
9963 (dwarf2_frame_cache): Update.
9964 (dwarf2_frame_prev_register): Update.
9965 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9966 <dwarf_evaluate_loc_desc>: Add constructor.
9967 (dwarf2_evaluate_loc_desc_full): Update.
9968 (dwarf2_locexpr_baton_eval): Update.
9969 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9970 Add constructor.
9971 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9972
9973 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9974
9975 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9976 addr_sized_int_type>: Move to dwarf2_cu.
9977 <int_type>: Move to dwarf2_per_objfile.
9978 (struct dwarf2_per_objfile) <int_type>: Move here.
9979 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9980 addr_sized_int_type>: Move here.
9981 (read_func_scope): Update.
9982 (read_array_type): Update.
9983 (read_tag_string_type): Update.
9984 (attr_to_dynamic_prop): Update.
9985 (dwarf2_per_cu_data::int_type): Rename to...
9986 (dwarf2_per_objfile::int_type): ... this.
9987 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9988 (dwarf2_cu::addr_sized_int_type): ... this.
9989 (read_subrange_type): Update.
9990 (dwarf2_per_cu_data::addr_type): Rename to...
9991 (dwarf2_cu::addr_type): ... this.
9992 (set_die_type): Update.
9993
9994 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9997 data through per_cu->cu.
9998
9999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10000
10001 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10002 dwarf2_per_cu_data parameter fo dwarf2_cu.
10003 (lookup_dwo_type_unit): Likewise.
10004 (read_cutu_die_from_dwo): Likewise.
10005 (lookup_dwo_unit): Likewise.
10006 (open_and_init_dwo_file): Likewise.
10007 (lookup_dwo_cutu): Likewise.
10008 (lookup_dwo_comp_unit): Likewise.
10009 (lookup_dwo_type_unit): Likewise.
10010 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10011 (cutu_reader::cutu_reader): Update.
10012
10013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10016 parameter.
10017 (process_full_type_unit): Likewise.
10018 (process_queue): Update.
10019
10020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * dwarf2/read.c (recursively_compute_inclusions): Add
10023 dwarf2_per_objfile parameter.
10024 (compute_compunit_symtab_includes): Likewise.
10025 (process_cu_includes): Update.
10026
10027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10030 parameter.
10031 (create_type_unit_group): Update.
10032 (process_psymtab_comp_unit_reader): Update.
10033 (build_type_psymtabs_reader): Update.
10034
10035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10038 object through m_this_cu->cu.
10039
10040 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10043 the info parameter.
10044 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10045
10046 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10047
10048 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10049 per_objfile parameter.
10050 (load_full_type_unit): Add per_objfile parameter.
10051 (read_signatured_type): Likewise.
10052 (load_full_comp_unit): Likewise.
10053 (load_cu): Likewise.
10054 (dw2_do_instantiate_symtab): Likewise.
10055 (dw2_get_file_names): Likewise.
10056 (dw2_map_symtabs_matching_filename): Update.
10057 (dw_expand_symtabs_matching_file_matcher): Update.
10058 (dw2_map_symbol_filenames): Update.
10059 (process_psymtab_comp_unit): Add per_objfile parameter.
10060 (build_type_psymtabs_1): Update.
10061 (process_skeletonless_type_unit): Update.
10062 (dwarf2_build_psymtabs_hard): Update.
10063 (load_partial_comp_unit): Add per_objfile parameter.
10064 (scan_partial_symbols): Update.
10065 (load_full_comp_unit): Add per_objfile parameter.
10066 (process_imported_unit_die): Update.
10067 (create_cus_hash_table): Update.
10068 (find_partial_die): Update.
10069 (dwarf2_read_addr_index): Update.
10070 (follow_die_offset): Update.
10071 (dwarf2_fetch_die_loc_sect_off): Update.
10072 (dwarf2_fetch_constant_bytes): Update.
10073 (dwarf2_fetch_die_type_sect_off): Update.
10074 (follow_die_sig_1): Update.
10075 (load_full_type_unit): Add per_objfile parameter.
10076 (read_signatured_type): Likewise.
10077
10078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10079
10080 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10081 of objfile_name.
10082
10083 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10084
10085 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10086 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10087 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10088 field.
10089 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10090 (create_cus_from_index): Update.
10091 (dwarf2_read_gdb_index): Update.
10092 (create_cus_from_debug_names): Update.
10093 (dwarf2_read_debug_names): Update.
10094 (get_abbrev_section_for_cu): Update.
10095 (create_all_comp_units): Update.
10096 (read_attribute_value): Update.
10097 (get_debug_line_section): Update.
10098 * dwarf2/index-cache.c (index_cache::store): Update.
10099 * dwarf2/index-write.c (save_gdb_index_command): Update.
10100 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10101
10102 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10103
10104 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10105 member.
10106 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10107 dwarf2_per_cu_data::per_bfd.
10108 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10109 (create_type_unit_group): Likewise.
10110 (queue_comp_unit): Remove reference to
10111 per_cu->dwarf2_per_objfile.
10112 (maybe_queue_comp_unit): Likewise.
10113 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10114 (create_cus_hash_table): Assign new field.
10115
10116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * dwarf2/read.c: Replace
10119 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10120 dwarf2_cu->per_objfile throughout.
10121
10122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10123
10124 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10125 parameter, don't use per_cu->dwarf2_per_objfile.
10126 (dw2_instantiate_symtab): Likewise.
10127 (dw2_find_last_source_symtab): Update.
10128 (dw2_map_expand_apply): Update.
10129 (dw2_lookup_symbol): Update.
10130 (dw2_expand_symtabs_for_function): Update.
10131 (dw2_expand_all_symtabs): Update.
10132 (dw2_expand_symtabs_with_fullname): Update.
10133 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10134 don't use per_cu->dwarf2_per_objfile.
10135 (dw2_expand_marked_cus): Update.
10136 (dw2_find_pc_sect_compunit_symtab): Update.
10137 (dw2_debug_names_lookup_symbol): Update.
10138 (dw2_debug_names_expand_symtabs_for_function): Update.
10139 (dw2_debug_names_map_matching_symbols): Update.
10140 (dwarf2_psymtab::expand_psymtab): Update.
10141
10142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10143
10144 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10145 <per_objfile>: New member.
10146 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10147 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10148 call to dwarf2_cu.
10149 (cutu_reader::cutu_reader): Update.
10150 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10151
10152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10155 struct dwarf2_per_objfile.
10156 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10157 dwarf2_per_bfd.
10158 * dwarf2/read.c (set_die_type): Update.
10159 (get_die_type_at_offset): Update.
10160
10161 2020-05-27 Tom Tromey <tom@tromey.com>
10162 Simon Marchi <simon.marchi@efficios.com>
10163
10164 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10165 method.
10166 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10167 get_symtab, set_symtab>: New methods.
10168 <m_symtabs>: New field.
10169 (struct dwarf2_psymtab): Derive from partial_symtab.
10170 <readin_p, get_compunit_symtab>: Declare methods.
10171 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10172 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10173 New methods.
10174 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10175 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10176 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10177 (dw2_symtab_iter_next, dw2_print_stats)
10178 (dw2_expand_symtabs_with_fullname)
10179 (dw2_expand_symtabs_matching_one)
10180 (dw_expand_symtabs_matching_file_matcher)
10181 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10182 (dw2_debug_names_iterator::next)
10183 (dw2_debug_names_map_matching_symbols)
10184 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10185 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10186 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10187 New methods.
10188 (get_compunit_symtab, process_full_comp_unit)
10189 (process_full_type_unit): Update.
10190 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10191
10192 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10193
10194 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10195 then introduce a new dwarf2_per_objfile type.
10196 <read_line_string>: Move to the new dwarf2_per_objfile type.
10197 <objfile>: Likewise.
10198 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10199 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10200 dwarf2_per_objfile->per_bfd.
10201 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10202 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10203 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10204 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10205 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10206 (dwarf2_per_objfile::locate_sections): Rename to...
10207 (dwarf2_per_bfd::locate_sections): ... this.
10208 (dwarf2_per_objfile::get_cutu): Rename to...
10209 (dwarf2_per_bfd::get_cutu): ... this.
10210 (dwarf2_per_objfile::get_cu): Rename to...
10211 (dwarf2_per_bfd::get_cu): ... this.
10212 (dwarf2_per_objfile::get_tu): Rename to...
10213 (dwarf2_per_bfd::get_tu): ... this.
10214 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10215 (dwarf2_per_bfd::allocate_per_cu): ... this.
10216 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10217 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10218 (get_gdb_index_contents_ftype): Change parameter from
10219 dwarf2_per_objfile to dwarf2_per_bfd.
10220 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10221 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10222
10223 2020-05-27 Tom Tromey <tom@tromey.com>
10224 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10227 (allocate_piece_closure): Set "per_objfile" member.
10228 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10229 (locexpr_describe_location, loclist_describe_location): Use new
10230 member.
10231 * dwarf2/read.c (read_call_site_scope)
10232 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10233 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10234 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10235 handle_data_member_location): Set per_objfile member.
10236 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10237 member.
10238 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10239
10240 2020-05-27 Tom Tromey <tom@tromey.com>
10241
10242 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10243 allocate_signatured_type>: Declare new methods.
10244 <m_num_psymtabs>: New member.
10245 (struct dwarf2_per_cu_data) <index>: New member.
10246 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10247 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10248 (create_cu_from_index_list): Use allocate_per_cu.
10249 (create_signatured_type_table_from_index)
10250 (create_signatured_type_table_from_debug_names)
10251 (create_debug_type_hash_table, add_type_unit)
10252 (read_comp_units_from_section): Use allocate_signatured_type.
10253
10254 2020-05-27 Tom Tromey <tom@tromey.com>
10255
10256 * psymtab.c (partial_map_expand_apply)
10257 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10258 (psym_lookup_global_symbol_language)
10259 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10260 (psym_print_stats, psym_expand_symtabs_for_function)
10261 (psym_map_symbol_filenames, psym_map_matching_symbols)
10262 (psym_expand_symtabs_matching)
10263 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10264 (maintenance_check_psymtabs): Update.
10265 * psympriv.h (struct partial_symtab) <readin_p,
10266 get_compunit_symtab>: Add objfile parameter.
10267 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10268 Likewise.
10269 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10270 get_compunit_symtab>: Likewise.
10271 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10272
10273 2020-05-27 Tom Tromey <tom@tromey.com>
10274
10275 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10276 member.
10277 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10278 (create_cu_from_index_list)
10279 (create_signatured_type_table_from_index)
10280 (create_signatured_type_table_from_debug_names)
10281 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10282 (dwarf2_create_include_psymtab)
10283 (create_debug_type_hash_table, add_type_unit)
10284 (create_type_unit_group, read_comp_units_from_section)
10285 (dwarf2_compute_name, create_cus_hash_table)
10286 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10287 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10288 obstack.
10289 (dw2_get_real_path): Likewise. Change argument to
10290 dwarf2_per_objfile.
10291
10292 2020-05-27 Luis Machado <luis.machado@linaro.org>
10293
10294 PR tdep/26000
10295 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10296 for ldrd (immediate).
10297
10298 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10299
10300 * command.h: Add comment giving the name of class_tui.
10301 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10302 create the fake command for the help for class_tui.
10303
10304 2020-05-26 Tom Tromey <tromey@adacore.com>
10305
10306 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10307 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10308 (val_atr): New function.
10309 (value_val_atr): Use it.
10310 * ada-valprint.c (print_optional_low_bound): Change low bound
10311 handling for enums.
10312 (val_print_packed_array_elements): Don't call discrete_position.
10313 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10314 discrete_position for enum types.
10315 * language.c (default_print_array_index): Change type.
10316 * language.h (struct language_defn) <la_print_array_index>: Add
10317 index_type parameter, change type of index_value.
10318 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10319 (default_print_array_index): Update.
10320 * valprint.c (maybe_print_array_index): Don't call
10321 value_from_longest. Update.
10322 (value_print_array_elements): Don't call discrete_position.
10323
10324 2020-05-26 Tom Tromey <tromey@adacore.com>
10325
10326 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10327 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10328
10329 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10330
10331 PR gdb/13519
10332 * avr-tdep.c (avr_integer_to_address): Return data or code
10333 address accordingly to the second 'type' argument of the
10334 function.
10335
10336 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10337
10338 * infcmd.c, inferior.h: (construct_inferior_arguments):
10339 Moved function from here to gdbsupport/common-inferior.{h,cc}
10340
10341 2020-05-23 Tom Tromey <tom@tromey.com>
10342
10343 Revert commit eca1f90c:
10344 * NEWS: Remove entry for completion styling.
10345 * completer.c (_rl_completion_prefix_display_length): Move
10346 declaration later.
10347 (gdb_fnprint): Revert.
10348 (gdb_display_match_list_1): Likewise.
10349 * cli/cli-style.c (completion_prefix_style)
10350 (completion_difference_style, completion_suffix_style): Remove.
10351 (_initialize_cli_style): Revert.
10352 * cli/cli-style.h (completion_prefix_style)
10353 (completion_difference_style, completion_suffix_style): Don't
10354 declare.
10355
10356 2020-05-24 Pedro Alves <palves@redhat.com>
10357
10358 * symtab.c (completion_list_add_name): Return boolean indication
10359 of whether the symbol matched.
10360 (completion_list_add_symbol): Don't try to remove C++ aliases if
10361 the symbol didn't match in the first place.
10362 * symtab.h (completion_list_add_name): Return bool.
10363
10364 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10365
10366 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10367 type::field.
10368
10369 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10370
10371 GDB 9.2 released.
10372
10373 2020-05-23 Tom Tromey <tom@tromey.com>
10374
10375 * NEWS: Add entry for completion styling.
10376 * completer.c (_rl_completion_prefix_display_length): Move
10377 declaration earlier.
10378 (gdb_fnprint): Use completion_style.
10379 (gdb_display_match_list_1): Likewise.
10380 * cli/cli-style.c (completion_prefix_style)
10381 (completion_difference_style, completion_suffix_style): New
10382 globals.
10383 (_initialize_cli_style): Register new globals.
10384 * cli/cli-style.h (completion_prefix_style)
10385 (completion_difference_style, completion_suffix_style): Declare.
10386
10387 2020-05-23 Pedro Alves <palves@redhat.com>
10388
10389 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10390 (parse_escape): Use ISDIGIT instead of isdigit.
10391 (puts_debug): Use gdb_isprint instead of isprint.
10392 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10393 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10394 ISSPACE instead of isspace.
10395 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10396 instead of isspace.
10397 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10398 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10399 instead of isxdigit and ISDIGIT instead of isdigit.
10400
10401 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * gdbtypes.h (struct type) <field>: New method.
10404 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10405 or type::field.
10406
10407 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10408
10409 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10410 (TYPE_FIELDS): Use type::fields. Change all call sites that
10411 modify the propery to use type::set_fields instead.
10412
10413 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10416 type::num_fields instead.
10417
10418 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10421 methods.
10422 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10423 that modify the number of fields to use type::set_num_fields
10424 instead.
10425
10426 2020-05-22 Tom Tromey <tromey@adacore.com>
10427
10428 * compile/compile-object-load.h (munmap_list_free): Don't
10429 declare.
10430
10431 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 * annotate.c (annotate_source_line): Update return type, add call
10434 to update current symtab and line.
10435 * annotate.h (annotate_source_line): Update return type, and
10436 extend header comment.
10437 * source.c (info_line_command): Check annotation_level before
10438 calling annotate_source_line.
10439 * stack.c (print_frame_info): If calling annotate_source_line
10440 returns true, then don't print any other source line information.
10441
10442 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10443
10444 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10445
10446 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * coffread.c (patch_type): Remove NULL check before xfree.
10449 * corefile.c (set_gnutarget): Likewise.
10450 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10451 * exec.c (build_section_table): Likewise.
10452 * remote.c (remote_target::pass_signals): Likewise.
10453 * utils.c (n_spaces): Likewise.
10454 * cli/cli-script.c (document_command): Likewise.
10455 * i386-windows-tdep.c (core_process_module_section): Likewise.
10456 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10457
10458 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10459
10460 * symfile.c (reread_symbols): Clear objfile's section_offsets
10461 vector and section indices, re-compute them by calling
10462 sym_offsets.
10463
10464 2020-05-20 Tom Tromey <tromey@adacore.com>
10465
10466 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10467 (desc_one_bound, desc_index_type): Compute field name.
10468
10469 2020-05-20 Tom de Vries <tdevries@suse.de>
10470
10471 PR symtab/25833
10472 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10473
10474 2020-05-20 Alan Modra <amodra@gmail.com>
10475
10476 PR 25993
10477 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10478 bfd_set_filename.
10479 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10480 passed to bfd_set_filename.
10481 * symfile-mem.c (add_vsyscall_page): Likewise for string
10482 passed to symbol_file_add_from_memory.
10483 (symbol_file_add_from_memory): Make name param a const char* and
10484 don't strdup.
10485
10486 2020-05-20 Alan Modra <amodra@gmail.com>
10487
10488 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10489 rather than accessing bfd->filename directly.
10490 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10491 and use bfd_section_name.
10492 * dwarf2/frame.c (decode_frame_entry): Likewise.
10493 * exec.c (exec_set_section_address): Likewise.
10494 * solib-aix.c (solib_aix_bfd_open): Likewise.
10495 * stap-probe.c (get_stap_base_address): Likewise.
10496 * symfile.c (reread_symbols): Likewise.
10497
10498 2020-05-19 Tom Tromey <tromey@adacore.com>
10499
10500 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10501
10502 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10505
10506 2020-05-19 Pedro Alves <palves@redhat.com>
10507
10508 * NEWS (set exec-file-mismatch): Adjust entry.
10509 * exec.c: Include "build-id.h".
10510 (validate_exec_file): Try to match build IDs instead of filenames.
10511 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10512 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10513 and pass down 'warn_if_slow'.
10514 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10515 gdb_bfd_open_closure to pass it down.
10516 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10517
10518 2020-05-19 Pedro Alves <palves@redhat.com>
10519
10520 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10521 * target.c (target_fileio_open_1): Rename to target_fileio_open
10522 and make extern. Use bool.
10523 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10524 (target_fileio_read_alloc_1): Adjust.
10525 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10526 (target_fileio_open_warn_if_slow): Delete declaration.
10527
10528 2020-05-19 Pedro Alves <palves@redhat.com>
10529
10530 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10531 Adjust all callers.
10532
10533 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10534
10535 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10536 whether disp is negative.
10537
10538 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * symfile.h (struct symfile_segment_data)
10541 <~symfile_segment_data>: Remove.
10542 <segment_info>: Change to std::vector.
10543 * symfile.c (default_symfile_segments): Update.
10544 * elfread.c (elf_symfile_segments): Update.
10545
10546 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10549 <segments>: New.
10550 <segment_bases, segment_sizes>: Remove.
10551 * symfile.c (default_symfile_segments): Update.
10552 * elfread.c (elf_symfile_segments): Update.
10553 * remote.c (remote_target::get_offsets): Update.
10554 * solib-target.c (solib_target_relocate_section_addresses):
10555 Update.
10556
10557 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10558
10559 * symfile.h (struct symfile_segment_data): Initialize fields.
10560 <~symfile_segment_data>: Add.
10561 (symfile_segment_data_up): New.
10562 (struct sym_fns) <sym_segments>: Return a
10563 symfile_segment_data_up.
10564 (default_symfile_segments): Return a symfile_segment_data_up.
10565 (free_symfile_segment_data): Remove.
10566 (get_symfile_segment_data): Return a symfile_segment_data_up.
10567 * symfile.c (default_symfile_segments): Likewise.
10568 (get_symfile_segment_data): Likewise.
10569 (free_symfile_segment_data): Remove.
10570 (symfile_find_segment_sections): Update.
10571 * elfread.c (elf_symfile_segments): Return a
10572 symfile_segment_data_up.
10573 * remote.c (remote_target::get_offsets): Update.
10574 * solib-target.c (solib_target_relocate_section_addresses):
10575 Update.
10576 * symfile-debug.c (debug_sym_segments): Return a
10577 symfile_segment_data_up.
10578
10579 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10580
10581 PR build/25981
10582 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10583 Hardcode register numbers.
10584
10585 PR build/25981
10586 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10587 procfs_find_LDT_entry): Remove.
10588 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10589 procfs_find_LDT_entry): Remove.
10590 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10591 Remove.
10592
10593 2020-05-17 Pedro Alves <palves@redhat.com>
10594 Andrew Burgess <andrew.burgess@embecosm.com>
10595 Keno Fischer <keno@juliacomputing.com>
10596
10597 PR gdb/25741
10598 * breakpoint.c (build_target_condition_list): Update comments.
10599 (build_target_command_list): Update comments and skip matching
10600 locations.
10601 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10602 a separate function. Simplify "set breakpoint auto-hw off"
10603 handling.
10604 (insert_breakpoints): Update comment.
10605 (tracepoint_locations_match): New parameter. For breakpoints,
10606 compare location types too, if the caller wants to.
10607 (handle_automatic_hardware_breakpoints): New functions.
10608 (bp_location_is_less_than): Also sort by location type and
10609 hardware breakpoint length.
10610 (update_global_location_list): Handle "set breakpoint auto-hw on"
10611 here.
10612 (update_breakpoint_locations): Ask breakpoint_locations_match to
10613 ignore location types.
10614
10615 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10616
10617 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10618 type::name instead.
10619
10620 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10621
10622 * gdbtypes.h (struct type) <name, set_name>: New methods.
10623 (TYPE_CODE): Use type::name. Change all call sites used to set
10624 the name to use type::set_name instead.
10625
10626 2020-05-16 Tom Tromey <tom@tromey.com>
10627
10628 * top.c (quit_force): Update.
10629 * infrun.c (handle_no_resumed): Update.
10630 * top.h (all_uis): New function.
10631 (ALL_UIS): Remove.
10632
10633 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10634
10635 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10636
10637 2020-05-16 Pedro Alves <palves@redhat.com>
10638
10639 * ia64-linux-nat.c
10640 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10641 Declare method.
10642 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10643
10644 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10645
10646 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10647 (sparc64_adi_info): Likewise.
10648
10649 2020-05-15 Tom Tromey <tom@tromey.com>
10650
10651 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10652 block_objfile.
10653 (lookup_objfile_from_block): Remove.
10654 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10655 (lookup_global_symbol): Use block_objfile.
10656 * symtab.h (lookup_objfile_from_block): Don't declare.
10657 * printcmd.c (clear_dangling_display_expressions): Use
10658 block_objfile.
10659 * parse.c (operator_check_standard): Use block_objfile.
10660
10661 2020-05-15 Tom Tromey <tom@tromey.com>
10662
10663 * language.c (language_alloc_type_symbol): Set
10664 SYMBOL_SECTION.
10665 * symtab.c (initialize_objfile_symbol): Remove.
10666 (allocate_symbol): Remove.
10667 (allocate_template_symbol): Remove.
10668 * dwarf2/read.c (fixup_go_packaging): Use "new".
10669 (new_symbol): Use "new".
10670 (read_variable): Don't call initialize_objfile_symbol. Use
10671 "new".
10672 (read_func_scope): Use "new".
10673 * xcoffread.c (process_xcoff_symbol): Don't call
10674 initialize_objfile_symbol.
10675 (SYMBOL_DUP): Remove.
10676 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10677 "new".
10678 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10679 (allocate_template_symbol): Don't declare.
10680 (struct symbol): Add copy constructor. Change defaults.
10681 * jit.c (finalize_symtab): Use "new".
10682 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10683 Use "new".
10684 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10685 (common_block_end): Use "new".
10686 * mdebugread.c (parse_symbol): Use "new".
10687 (new_symbol): Likewise.
10688
10689 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10690
10691 * NEWS: Mention changes to help and apropos.
10692
10693 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10694
10695 * command.h (enum command_class): Improve comments, document
10696 that class_alias is for user-defined aliases, give the class
10697 name for each class, remove unused class_xdb.
10698 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10699 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10700 by a precise class.
10701 * infcmd.c (_initialize_infcmd): Likewise.
10702 * reverse.c (_initialize_reverse): Likewise.
10703 * stack.c (_initialize_stack): Likewise.
10704 * symfile.c (_initialize_symfile): Likewise.
10705 * tracepoint.c (_initialize_tracepoint): Likewise.
10706
10707 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10708
10709 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10710 when their aliased command is traversed.
10711 (help_cmd): Add fput_command_names_styled call to
10712 output command name and aliases when command has an alias.
10713
10714 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10715
10716 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10717 * cli/cli-decode.c (help_cmd_list): Declare as static,
10718 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10719 a command together with the command.
10720 (fput_command_name_styled, fput_command_names_styled): New functions.
10721 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10722 fput_command_name_styled.
10723 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10724 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10725
10726 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10727
10728 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10729 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10730 * command.h (cmd_show_list): Likewise.
10731 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10732 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10733
10734 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10735
10736 * unittests/command-def-selftests.c (traverse_command_structure):
10737 Verify all commands of a list have the same prefix command and
10738 that only the top cmdlist commands have a null prefix.
10739
10740 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10741
10742 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10743 as prefix, not one of its aliases.
10744 (set_cmd_prefix): Remove.
10745 (do_add_cmd): Centralize the setting of the prefix of a command, when
10746 command is defined after its full chain of prefix commands.
10747 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10748 (add_setshow_cmd_full): Likewise.
10749 (update_prefix_field_of_prefixed_commands): New function.
10750 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10751 update_prefix_field_of_prefixed_commands.
10752 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10753 addresses of remote_set_cmdlist and remote_show_cmdlist given
10754 as argument, not the address of an argument.
10755 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10756 * gdb/remote.c (_initialize_remote): Likewise.
10757
10758 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10759
10760 * cli/cli-cmds.c (alias_command): Check for an existing alias
10761 using lookup_cmd_composition, as valid_command_p is too strict
10762 and forbids aliases that are the prefix of an existing alias
10763 or command.
10764 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10765 command is properly recognised as a valid command.
10766
10767 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10768
10769 * unittests/help-doc-selftests.c: Rename to
10770 unittests/command-def-selftests.c
10771 * unittests/command-def-selftests.c (help_doc_tests): Update some
10772 comments.
10773 (command_structure_tests, traverse_command_structure): New namespace
10774 and function.
10775 (command_structure_invariants_tests): New function.
10776 (_initialize_command_def_selftests) Renamed from
10777 _initialize_help_doc_selftests, register command_structure_invariants
10778 selftest.
10779
10780 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10781
10782 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10783 an alias of 'show'.
10784
10785 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10786
10787 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10788 ada_is_fixed_point_type. Update all callers.
10789 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10790 all callers.
10791 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10792 Update all callers.
10793 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10794 print_fixed_point_type. Update all callers.
10795 * ada-valprint.c (ada_value_print_num): Replace call to
10796 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10797
10798 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10799
10800 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10801 processors.
10802 (cpu_supports_bts): Add CV_AMD case.
10803
10804 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10805 Simon Marchi <simon.marchi@efficios.com>
10806
10807 * infrun.c (stop_all_threads): Collect multiple wait events at
10808 each pass.
10809
10810 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10811
10812 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10813 type::code instead.
10814
10815 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * gdbtypes.h (struct type) <code, set_code>: New methods.
10818 (TYPE_CODE): Use type::code. Change all call sites used to set
10819 the code to use type::set_code instead.
10820
10821 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10822 Tom de Vries <tdevries@suse.de>
10823 Pedro Alves <palves@redhat.com>
10824
10825 PR threads/25478
10826 * infrun.c (stop_all_threads): Do NOT ignore
10827 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10828 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10829 received.
10830 (handle_no_resumed): Remove code handling a live inferior with no
10831 threads.
10832 * remote.c (has_single_non_exited_thread): New.
10833 (remote_target::update_thread_list): Do not delete a thread if is
10834 the last thread of the process.
10835 * thread.c (thread_select): Call delete_exited_threads instead of
10836 prune_threads.
10837
10838 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10839
10840 * infrun.c (stop_all_threads): Enable/disable thread events of all
10841 targets. Move a debug message denoting the end of the function
10842 into the SCOPED_EXIT block.
10843
10844 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10845
10846 * process-stratum-target.h: Include <set>.
10847 (all_non_exited_process_targets, switch_to_target_no_thread): New
10848 function declarations.
10849 * process-stratum-target.c (all_non_exited_process_targets)
10850 (switch_to_target_no_thread): New function implementations.
10851
10852 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10853
10854 * infrun.c (handle_inferior_event): Extract out a piece of code
10855 into...
10856 (mark_non_executing_threads): ...this new function.
10857
10858 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10859
10860 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10861 use.
10862
10863 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10864
10865 * regcache.c (regcache_read_pc_protected): New function
10866 implementation that returns 0 if the PC cannot read via
10867 'regcache_read_pc'.
10868 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10869 instead of 'regcache_read_pc'.
10870 (keep_going_pass_signal): Ditto.
10871
10872 2020-05-13 Tom Tromey <tromey@adacore.com>
10873
10874 * ada-lang.c (align_value): Remove.
10875 (ada_template_to_fixed_record_type_1): Use align_up.
10876
10877 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10878
10879 * async-event.c: Update the copyright year.
10880 * async-event.h: Update the copyright year.
10881
10882 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * objfiles.h (is_addr_in_objfile,
10885 shared_objfile_contains_address_p): Return bool.
10886 * objfile.c (is_addr_in_objfile,
10887 shared_objfile_contains_address_p): Return bool.
10888
10889 2020-05-11 Tom Tromey <tromey@adacore.com>
10890
10891 * cli/cli-cmds.c (info_command): Restore.
10892 (_initialize_cli_cmds): Use add_prefix_command for "info".
10893 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10894
10895 2020-05-11 Tom Tromey <tromey@adacore.com>
10896
10897 * ada-lang.c (ada_value_primitive_field): Now public.
10898 * ada-lang.h (ada_value_primitive_field): Declare.
10899 * ada-valprint.c (print_field_values): Use
10900 ada_value_primitive_field for wrapper fields.
10901
10902 2020-05-11 Tom de Vries <tdevries@suse.de>
10903
10904 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10905 MODULE_DOMAIN.
10906
10907 2020-05-11 Tom de Vries <tdevries@suse.de>
10908
10909 PR symtab/25941
10910 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10911 with length 0, if not gdb-produced.
10912 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10913
10914 2020-05-09 Tom de Vries <tdevries@suse.de>
10915
10916 PR gdb/25955
10917 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10918 calculation.
10919
10920 2020-05-09 Tom Tromey <tom@tromey.com>
10921
10922 * top.c (server_command): Now bool.
10923 * top.h (server_command): Now bool.
10924
10925 2020-05-08 Tom Tromey <tromey@adacore.com>
10926
10927 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10928 already being processed.
10929
10930 2020-05-08 Tom Tromey <tom@tromey.com>
10931
10932 * printcmd.c (struct display) <next>: Remove.
10933 <display>: New constructor.
10934 <exp_string>: Now a std::string.
10935 <enabled_p>: Now a bool.
10936 (display_number): Move definition earlier.
10937 (displays): Rename from display_chain. Now a std::vector.
10938 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10939 (display_command): Update.
10940 (do_one_display, disable_display)
10941 (enable_disable_display_command, do_enable_disable_display):
10942 Update.
10943 (free_display): Remove.
10944 (clear_displays): Rewrite.
10945 (delete_display): Update.
10946 (map_display_numbers): Use function_view. Remove "data"
10947 parameter. Update.
10948 (do_delete_display): Remove.
10949 (undisplay_command): Update.
10950 (do_one_display, do_displays, disable_display)
10951 (info_display_command): Update.
10952 (do_enable_disable_display): Remove.
10953 (enable_disable_display_command)
10954 (clear_dangling_display_expressions): Update.
10955
10956 2020-05-08 Tom Tromey <tom@tromey.com>
10957
10958 * symtab.c (set_symbol_cache_size)
10959 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10960 (maintenance_print_symbol_cache_statistics): Update.
10961 * symmisc.c (print_symbol_bcache_statistics)
10962 (print_objfile_statistics, maintenance_print_objfiles)
10963 (maintenance_info_symtabs, maintenance_check_symtabs)
10964 (maintenance_expand_symtabs, maintenance_info_line_tables):
10965 Update.
10966 * symfile-debug.c (set_debug_symfile): Update.
10967 * source.c (forget_cached_source_info): Update.
10968 * python/python.c (gdbpy_progspaces): Update.
10969 * psymtab.c (maintenance_info_psymtabs): Update.
10970 * probe.c (parse_probes): Update.
10971 * linespec.c (iterate_over_all_matching_symtabs)
10972 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10973 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10974 * exec.c (exec_target::close): Update.
10975 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10976 * breakpoint.c (print_one_breakpoint_location)
10977 (create_longjmp_master_breakpoint)
10978 (create_std_terminate_master_breakpoint): Update.
10979 * progspace.c (program_spaces): Now a std::vector.
10980 (maybe_new_address_space): Update.
10981 (add_program_space): Remove.
10982 (program_space::program_space): Update.
10983 (remove_program_space): Update.
10984 (number_of_program_spaces): Remove.
10985 (print_program_space, update_address_spaces): Update.
10986 * progspace.h (program_spaces): Change type.
10987 (ALL_PSPACES): Remove.
10988 (number_of_program_spaces): Don't declare.
10989 (struct program_space) <next>: Remove.
10990
10991 2020-05-08 Tom Tromey <tom@tromey.com>
10992
10993 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10994 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10995 (enable_break): Update.
10996 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10997 (frv_fdpic_find_canonical_descriptor): Update.
10998 (frv_fetch_objfile_link_map): Update.
10999 * progspace.c (program_space::free_all_objfiles): Update.
11000 (program_space::solibs): New method.
11001 * progspace.h (struct program_space) <solibs>: New method.
11002 * solist.h (master_so_list): Don't declare.
11003 (ALL_SO_LIBS): Remove.
11004 * solib.h (so_list_head): Remove.
11005 (update_solib_list): Update comment.
11006 * solib.c (master_so_list): Remove.
11007 (solib_used, update_solib_list, solib_add)
11008 (info_sharedlibrary_command, clear_solib)
11009 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11010
11011 2020-05-08 Tom Tromey <tom@tromey.com>
11012
11013 * extension.c (extension_languages): Now a std::array.
11014 (ALL_EXTENSION_LANGUAGES): Remove.
11015 (get_ext_lang_defn, get_ext_lang_of_file)
11016 (eval_ext_lang_from_control_command): Update.
11017 (finish_ext_lang_initialization)
11018 (auto_load_ext_lang_scripts_for_objfile)
11019 (ext_lang_type_printers::ext_lang_type_printers)
11020 (apply_ext_lang_type_printers)
11021 (ext_lang_type_printers::~ext_lang_type_printers)
11022 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11023 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11024 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11025 (get_matching_xmethod_workers, ext_lang_colorize)
11026 (ext_lang_before_prompt): Update.
11027 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11028
11029 2020-05-08 Tom Tromey <tom@tromey.com>
11030
11031 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11032 overload.
11033 <swap_string, m_string>: Remove.
11034 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11035 Update.
11036 * stabsread.c (define_symbol, read_type): Update.
11037 * linespec.c (find_linespec_symbols): Update.
11038 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11039 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11040 * dbxread.c (read_dbx_symtab): Update.
11041 * cp-support.h (cp_canonicalize_string_full)
11042 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11043 Return unique_xmalloc_ptr.
11044 * cp-support.c (inspect_type): Update.
11045 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11046 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11047 Likewise.
11048 * c-typeprint.c (print_name_maybe_canonical): Update.
11049 * break-catch-throw.c (check_status_exception_catchpoint):
11050 Update.
11051
11052 2020-05-08 Tom de Vries <tdevries@suse.de>
11053
11054 * infrun.c (follow_fork): Copy current_line and current_symtab to
11055 child thread.
11056
11057 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11058
11059 * async-event.c (struct async_signal_handler, struct
11060 async_event_handler): Reformat, remove typedef.
11061
11062 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11063
11064 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11065 access thistype->main_type->dyn_prop_list directly.
11066
11067 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11070 (remove_dyn_prop): Remove. Update all users to use
11071 type::remove_dyn_prop.
11072 * gdbtypes.c (remove_dyn_prop): Rename to...
11073 (type::remove_dyn_prop): ... this.
11074
11075 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11076
11077 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11078 (add_dyn_prop): Remove. Update all users to use
11079 type::add_dyn_prop.
11080 * gdbtypes.c (add_dyn_prop): Rename to...
11081 (type::add_dyn_prop): ... this.
11082
11083 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11084
11085 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11086 (get_dyn_prop): Remove. Update all users to use
11087 type::dyn_prop.
11088 * gdbtypes.c (get_dyn_prop): Rename to...
11089 (type::dyn_prop): ... this.
11090
11091 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11094
11095 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11096
11097 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11098 instruction, skip it if it's there.
11099
11100 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11103
11104 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11107 * gdbtypes.c (recursive_dump_type): Remove use of
11108 TYPE_INCOMPLETE.
11109
11110 2020-05-03 Tom Tromey <tom@tromey.com>
11111
11112 * breakpoint.c (catch_command, tcatch_command): Remove.
11113 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11116 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11117 Remove.
11118 (add_internal_problem_command): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 * mips-tdep.c (set_mipsfpu_command): Remove.
11121 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11122 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11123 (_initialize_index_cache): Use add_basic_prefix_cmd.
11124 * memattr.c (dummy_cmd): Remove.
11125 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11126 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11127 (_initialize_tui_win): Use add_basic_prefix_cmd,
11128 add_show_prefix_cmd.
11129 * cli/cli-logging.c (set_logging_command): Remove.
11130 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11131 add_show_prefix_cmd.
11132 (show_logging_command): Remove.
11133 * target.c (target_command): Remove.
11134 (add_target): Use add_basic_prefix_cmd.
11135
11136 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11137
11138 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11139
11140 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11141
11142 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11143 info_command.
11144
11145 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11146
11147 * nbsd-nat.c (nbsd_enable_proc_events)
11148 (nbsd_nat_target::post_startup_inferior): Add.
11149 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11150 (nbsd_nat_target::update_thread_list): Rewrite.
11151 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11152 "PTRACE_LWP_CREATE".
11153 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11154
11155 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11156
11157 * stack.c (_initialize_stack): Remove duplicated creation
11158 of "frame" command and "f" alias.
11159
11160 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11161
11162 PR gdb/18706
11163 * gdbtypes.c (check_typedef): Calculate size of array of
11164 stubbed type.
11165
11166 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11167
11168 PR gdb/15559
11169 * i386-tdep.c (i386_push_dummy_call): Call
11170 i386_thiscall_push_dummy_call.
11171 (i386_thiscall_push_dummy_call): New function.
11172 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11173 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11174 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11175
11176 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11177
11178 * gdbarch.sh (do_read): Add shellcheck disable directive for
11179 warning SC2162.
11180
11181 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11182
11183 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11184 "referenced but not assigned" warning.
11185
11186 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11187
11188 * gdbarch.sh: Remove code that sets fallbackdefault.
11189
11190 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11191
11192 * gdbarch.sh: Use shell operators && and || instead of
11193 -a and -o.
11194
11195 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11196
11197 * gdbarch.sh: Use $(...) instead of `...`.
11198
11199 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11200
11201 * gdbarch.sh: Use double quotes around variables.
11202
11203 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11204
11205 * gdbarch.sh: Use %s with printf, instead of variables in the
11206 format string.
11207
11208 2020-04-29 Tom Tromey <tromey@adacore.com>
11209
11210 PR ada/25875:
11211 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11212 type fields here.
11213 (read_enumeration_type): Call
11214 update_enumeration_type_from_children later. Update comments.
11215 (process_enumeration_scope): Don't create type fields.
11216
11217 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11218
11219 * nbsd-tdep.c: Include "xml-syscall.h".
11220 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11221
11222 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11223
11224 * nbsd-nat.c: Include "sys/wait.h".
11225 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11226 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11227 (nbsd_nat_target::remove_exec_catchpoint)
11228 (nbsd_nat_target::set_syscall_catchpoint): Add.
11229 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11230 (nbsd_nat_target::insert_exec_catchpoint)
11231 (nbsd_nat_target::remove_exec_catchpoint)
11232 (nbsd_nat_target::set_syscall_catchpoint): Add.
11233 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11234 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11235 `nbsd_get_syscall_number'.
11236
11237 2020-04-29 Tom Tromey <tom@tromey.com>
11238
11239 * stack.c (print_block_frame_labels): Remove.
11240
11241 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11242
11243 PR gdb/17320
11244 * ada-valprint.c (val_print_packed_array_elements): Move array
11245 end bracket to new line.
11246 (ada_val_print_string): Remove extra spaces before first array
11247 element.
11248 * c-valprint.c (c_value_print_array): Likewise.
11249 * m2-valprint.c (m2_print_array_contents): Likewise.
11250 (m2_value_print_inner): Likewise.
11251 * p-valprint.c (pascal_value_print_inner): Likewise.
11252 * valprint.c (generic_val_print_array): Likewise.
11253 (value_print_array_elements): Move first array element and array
11254 end bracket to new line.
11255
11256 2020-04-29 Tom de Vries <tdevries@suse.de>
11257
11258 PR symtab/25889
11259 * linespec.c (find_method): Fix ix calculation.
11260
11261 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11262
11263 * syscalls/update-netbsd.sh: New file.
11264 * syscalls/netbsd.xml: Regenerate.
11265 * data-directory/Makefile.in: Register `netbsd.xml' in
11266 `SYSCALLS_FILES'.
11267
11268 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11269
11270 * syscalls/update-freebsd.sh: Add double quotes.
11271
11272 2020-04-28 Tom Tromey <tom@tromey.com>
11273
11274 * NEWS: Update.
11275 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11276 (cmdpy_init): Allow class_tui.
11277
11278 2020-04-28 Mark Williams <mark@myosotissp.com>
11279
11280 PR gdb/24480
11281 * dwarf2read.c: Add missing assingments to list_in_scope when
11282 start_symtab was already called.
11283
11284 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11285
11286 PR gdb/25881
11287 * dwarf2/read.c (offset_map_type): Use
11288 gdb:hash_enum<sect_offset> as hash function.
11289
11290 2020-04-28 Tom de Vries <tdevries@suse.de>
11291
11292 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11293 with DW_AT_signature.
11294
11295 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * configure.ac: Remove check for fs_base/gs_base in
11298 user_regs_struct.
11299 * configure: Re-generate.
11300 * config.in: Re-generate.
11301 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11302 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11303 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11304
11305 2020-04-27 Luis Machado <luis.machado@linaro.org>
11306
11307 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11308 problematic inline frame unwinding situation.
11309 * frame.c (frame_id_computed_p): New function.
11310 * frame.h (frame_id_computed_p): New prototype.
11311
11312 2020-04-26 Tom Tromey <tom@tromey.com>
11313
11314 * command.h (enum command_class) <class_pseudo>: Remove.
11315
11316 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11317
11318 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11319 and whitespace.
11320
11321 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11322
11323 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11324 `PT_GET_PROCESS_STATE' block.
11325
11326 2020-04-24 Tom Tromey <tom@tromey.com>
11327
11328 * symtab.h (symbol_get_demangled_name): Don't declare.
11329 * symtab.c (symbol_get_demangled_name): Remove.
11330 (general_symbol_info::natural_name)
11331 (general_symbol_info::demangled_name): Update.
11332
11333 2020-04-24 Tom Tromey <tom@tromey.com>
11334
11335 PR rust/25025:
11336 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11337
11338 2020-04-24 Tom Tromey <tom@tromey.com>
11339
11340 PR symtab/12707:
11341 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11342 exists.
11343 (new_symbol): Likewise.
11344 * compile/compile-object-load.c (get_out_value_type): Use
11345 symbol_matches_search_name.
11346
11347 2020-04-24 Tom Tromey <tom@tromey.com>
11348
11349 * dwarf2/read.c (add_partial_symbol): Do not call
11350 compute_and_set_names.
11351
11352 2020-04-24 Tom Tromey <tom@tromey.com>
11353
11354 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11355 overload.
11356
11357 2020-04-24 Tom Tromey <tom@tromey.com>
11358
11359 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11360 (add_psymbol_to_list): New overload. Make old overload call new
11361 one.
11362 * psympriv.h (add_psymbol_to_list): New overload.
11363
11364 2020-04-24 Tom Tromey <tom@tromey.com>
11365
11366 * dwarf2/read.c (partial_die_info::read) <case
11367 DW_AT_linkage_name>: Use value_as_string.
11368 (dwarf2_string_attr): Use value_as_string.
11369 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11370 method.
11371 * dwarf2/attribute.c (attribute::value_as_string): New method.
11372
11373 2020-04-24 Tom Tromey <tom@tromey.com>
11374
11375 * symtab.c (general_symbol_info::natural_name)
11376 (general_symbol_info::demangled_name): Check for language_rust.
11377
11378 2020-04-24 Tom Tromey <tom@tromey.com>
11379
11380 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11381 (dwarf2_physname): ... from here.
11382 (partial_die_info::read): Add Rust "{" hack.
11383
11384 2020-04-24 Tom Tromey <tom@tromey.com>
11385
11386 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11387 method.
11388 (symbol_set_demangled_name): Don't declare.
11389 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11390 symbol_set_demangled_name.
11391 (general_symbol_info::set_language)
11392 (general_symbol_info::compute_and_set_names): Update.
11393 * minsyms.c (minimal_symbol_reader::install): Update.
11394 * dwarf2/read.c (new_symbol): Update.
11395
11396 2020-04-24 Tom Tromey <tromey@adacore.com>
11397
11398 PR python/23662:
11399 * python/py-type.c (convert_field): Handle
11400 FIELD_LOC_KIND_DWARF_BLOCK.
11401 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11402 (typy_get_dynamic): Nw function.
11403 (type_object_getset): Add "dynamic".
11404 * NEWS: Add entry.
11405
11406 2020-04-24 Tom Tromey <tromey@adacore.com>
11407
11408 * ada-typeprint.c (print_choices, print_variant_part)
11409 (print_record_field_types_dynamic): New functions.
11410 (print_record_field_types): Use print_record_field_types_dynamic.
11411
11412 2020-04-24 Tom Tromey <tromey@adacore.com>
11413
11414 * dwarf2/read.c (handle_data_member_location): New overload.
11415 (dwarf2_add_field): Use it.
11416 (decode_locdesc): Add "computed" parameter. Update comment.
11417 * gdbtypes.c (is_dynamic_type_internal): Also look for
11418 FIELD_LOC_KIND_DWARF_BLOCK.
11419 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11420 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11421 virtual base classes.
11422 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11423 FIELD_LOC_KIND_DWARF_BLOCK.
11424
11425 2020-04-24 Tom Tromey <tromey@adacore.com>
11426
11427 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11428 * gdbtypes.c (is_dynamic_type_internal): Check
11429 TYPE_HAS_DYNAMIC_LENGTH.
11430 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11431 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11432 New macros.
11433 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11434 constant.
11435
11436 2020-04-24 Tom Tromey <tromey@adacore.com>
11437
11438 * dwarf2/read.c (struct variant_field): Rewrite.
11439 (struct variant_part_builder): New.
11440 (struct nextfield): Remove "variant" field. Add "offset".
11441 (struct field_info): Add "current_variant_part" and
11442 "variant_parts".
11443 (alloc_discriminant_info): Remove.
11444 (alloc_rust_variant): New function.
11445 (quirk_rust_enum): Update.
11446 (dwarf2_add_field): Set "offset" member. Don't handle
11447 DW_TAG_variant_part.
11448 (offset_map_type): New typedef.
11449 (convert_variant_range, create_one_variant)
11450 (create_one_variant_part, create_variant_parts)
11451 (add_variant_property): New functions.
11452 (dwarf2_attach_fields_to_type): Call add_variant_property.
11453 (read_structure_type): Don't handle DW_TAG_variant_part.
11454 (handle_variant_part, handle_variant): New functions.
11455 (handle_struct_member_die): Use them.
11456 (process_structure_scope): Don't handle variant parts.
11457 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11458 (struct discriminant_info): Remove.
11459 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11460 (struct main_type) <flag_discriminated_union>: Remove.
11461 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11462 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11463 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11464 Update.
11465 * valops.c (value_union_variant): Remove.
11466 * value.h (value_union_variant): Don't declare.
11467
11468 2020-04-24 Tom Tromey <tromey@adacore.com>
11469
11470 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11471 (ada_value_primitive_packed_val): Update.
11472 * ada-valprint.c (ada_value_print_1): Update.
11473 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11474 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11475 just an address. Use evaluate_for_locexpr_baton.
11476 (dwarf2_evaluate_property): Update.
11477 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11478 array_view.
11479 * findvar.c (default_read_var_value): Update.
11480 * gdbtypes.c (compute_variant_fields_inner)
11481 (resolve_dynamic_type_internal): Update.
11482 (resolve_dynamic_type): Change type of valaddr parameter.
11483 * gdbtypes.h (resolve_dynamic_type): Update.
11484 * valarith.c (value_subscripted_rvalue): Update.
11485 * value.c (value_from_contents_and_address): Update.
11486
11487 2020-04-24 Tom Tromey <tromey@adacore.com>
11488
11489 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11490 "push_initial_value" parameter.
11491 (dwarf2_evaluate_property): Likewise.
11492 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11493
11494 2020-04-24 Tom Tromey <tromey@adacore.com>
11495
11496 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11497 (variant::matches, compute_variant_fields_recurse)
11498 (compute_variant_fields_inner, compute_variant_fields): New
11499 functions.
11500 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11501 Use resolved_type after type is made.
11502 (operator==): Add new cases.
11503 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11504 (struct discriminant_range, struct variant, struct variant_part):
11505 New.
11506 (union dynamic_prop_data) <variant_parts, original_type>: New
11507 members.
11508 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11509 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11510 constants.
11511 * value.c (unpack_bits_as_long): Now public.
11512 * value.h (unpack_bits_as_long): Declare.
11513
11514 2020-04-24 Tom Tromey <tromey@adacore.com>
11515
11516 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11517 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11518
11519 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11520
11521 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11522
11523 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11524
11525 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11526 (remove_fork_catchpoint, post_startup_inferior)
11527 (post_attach): Move...
11528 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11529 (remove_fork_catchpoint, post_startup_inferior)
11530 (post_attach): ...here.
11531 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11532 (remove_fork_catchpoint, post_startup_inferior)
11533 (post_attach): Move...
11534 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11535 (remove_fork_catchpoint, post_startup_inferior)
11536 (post_attach): ...here.
11537
11538 2020-04-24 Tom Tromey <tromey@adacore.com>
11539
11540 * nat/windows-nat.h (struct windows_thread_info)
11541 <pc_adjusted>: New member.
11542 * windows-nat.c (windows_fetch_one_register): Check
11543 pc_adjusted.
11544 (windows_nat_target::get_windows_debug_event)
11545 (windows_nat_target::wait): Set pc_adjusted.
11546
11547 2020-04-24 Tom de Vries <tdevries@suse.de>
11548
11549 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11550 Run gdb-add-index inside temp dir.
11551
11552 2020-04-23 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11555 in loop.
11556
11557 2020-04-23 Luis Machado <luis.machado@linaro.org>
11558
11559 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11560 get_frame_register instead of gdbarch_unwind_pc.
11561
11562 2020-04-23 Tom de Vries <tdevries@suse.de>
11563
11564 * symtab.c (lookup_global_symbol): Prefer def over decl.
11565
11566 2020-04-23 Tom de Vries <tdevries@suse.de>
11567
11568 PR symtab/25807
11569 * block.c (best_symbol, better_symbol): Promote to external.
11570 * block.h (best_symbol, better_symbol): Declare.
11571 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11572 decl.
11573
11574 2020-04-23 Tom Tromey <tromey@adacore.com>
11575
11576 PR ada/25837:
11577 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11578 "const char *", not a "const std::string &".
11579 <name_and_matcher::operator==>: Update.
11580 * unittests/lookup_name_info-selftests.c: Change type of
11581 "result".
11582
11583 2020-04-23 Tom Tromey <tom@tromey.com>
11584
11585 * inferior.h (iterate_over_inferiors): Don't declare.
11586 * inferior.c (iterate_over_inferiors): Remove.
11587 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11588 Remove.
11589 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11590 use iterate_over_inferiors.
11591 (darwin_resume_inferior_it)
11592 (struct resume_inferior_threads_param)
11593 (darwin_resume_inferior_threads_it): Remove.
11594 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11595
11596 2020-04-23 Tom de Vries <tdevries@suse.de>
11597
11598 * blockframe.c (find_pc_partial_function): Use
11599 find_pc_sect_compunit_symtab rather than
11600 objfile->sf->qf->find_pc_sect_compunit_symtab.
11601
11602 2020-04-22 Tom de Vries <tdevries@suse.de>
11603
11604 PR symtab/25764
11605 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11606 in psymtabs.
11607
11608 2020-04-22 Tom de Vries <tdevries@suse.de>
11609
11610 PR symtab/25801
11611 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11612 symtabs.
11613
11614 2020-04-22 Tom de Vries <tdevries@suse.de>
11615
11616 PR symtab/25700
11617 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11618 CU if already created.
11619
11620 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11621
11622 * infrun.c (displaced_step_fixup): Switch to the event_thread
11623 before calling displaced_step_restore, not after.
11624
11625 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11626
11627 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11628 its inferior is not recorded by us.
11629 (record_btrace_target_open): Replace call to
11630 all_non_exited_threads () with call to current_inferior
11631 ()->non_exited_threads ().
11632 (record_btrace_target::stop_recording): Likewise.
11633 (record_btrace_target::close): Likewise.
11634 (record_btrace_target::wait): Likewise.
11635 (record_btrace_target::record_stop_replaying): Likewise.
11636
11637 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11638
11639 * btrace.c (btrace_enable): Throw an error on double enables and
11640 when enabling recording fails.
11641 (btrace_disable): Throw an error if the thread is not recorded.
11642
11643 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11644
11645 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11646 request if we do not have a thread_info.
11647
11648 2020-04-21 Tom de Vries <tdevries@suse.de>
11649
11650 PR gdb/25471
11651 * thread.c
11652 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11653 exception in get_frame_id.
11654
11655 2020-04-20 Tom Tromey <tromey@adacore.com>
11656
11657 * python/python.c (struct gdbpy_event): Mark move constructor as
11658 noexcept.
11659 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11660 constructor as noexcept.
11661 * completer.h (struct completion_result): Mark move constructor as
11662 noexcept.
11663 * completer.c (completion_result::completion_result): Use
11664 initialization style. Don't call reset_match_list.
11665
11666 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11667
11668 * MAINTAINERS (Write After Approval): Add myself.
11669
11670 2020-04-18 Tom Tromey <tom@tromey.com>
11671
11672 * windows-tdep.c (init_w32_command_list)
11673 (w32_prefix_command_valid): Restore.
11674 (_initialize_windows_tdep): Call init_w32_command_list.
11675
11676 2020-04-18 Tom Tromey <tom@tromey.com>
11677
11678 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11679 * value.c (value_fn_field): Update.
11680 * valops.c (find_function_in_inferior)
11681 (value_allocate_space_in_inferior): Update.
11682 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11683 Update.
11684 * tui/tui-source.c (tui_source_window::set_contents): Update.
11685 * symtab.c (lookup_global_or_static_symbol)
11686 (find_function_start_sal_1, skip_prologue_sal)
11687 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11688 * symmisc.c (dump_msymbols, dump_symtab_1)
11689 (maintenance_print_one_line_table): Update.
11690 * symfile.c (init_entry_point_info, section_is_mapped)
11691 (list_overlays_command, simple_read_overlay_table)
11692 (simple_overlay_update_1): Update.
11693 * stap-probe.c (handle_stap_probe): Update.
11694 * stabsread.c (dbx_init_float_type, define_symbol)
11695 (read_one_struct_field, read_enum_type, read_range_type): Update.
11696 * source.c (info_line_command): Update.
11697 * python/python.c (gdbpy_source_objfile_script)
11698 (gdbpy_execute_objfile_script): Update.
11699 * python/py-type.c (save_objfile_types): Update.
11700 * python/py-objfile.c (py_free_objfile): Update.
11701 * python/py-inferior.c (python_new_objfile): Update.
11702 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11703 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11704 (maintenance_check_psymtabs): Update.
11705 * printcmd.c (info_address_command): Update.
11706 * objfiles.h (struct objfile) <arch>: New method, from
11707 get_objfile_arch.
11708 (get_objfile_arch): Don't declare.
11709 * objfiles.c (get_objfile_arch): Remove.
11710 (filter_overlapping_sections): Update.
11711 * minsyms.c (msymbol_is_function): Update.
11712 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11713 (output_nondebug_symbol): Update.
11714 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11715 (mdebug_expand_psymtab): Update.
11716 * machoread.c (macho_add_oso_symfile): Update.
11717 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11718 Update.
11719 * linux-fork.c (checkpoint_command): Update.
11720 * linespec.c (convert_linespec_to_sals): Update.
11721 * jit.c (finalize_symtab): Update.
11722 * infrun.c (insert_exception_resume_from_probe): Update.
11723 * ia64-tdep.c (ia64_find_unwind_table): Update.
11724 * hppa-tdep.c (internalize_unwinds): Update.
11725 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11726 Update.
11727 * gcore.c (call_target_sbrk): Update.
11728 * elfread.c (record_minimal_symbol, elf_symtab_read)
11729 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11730 (elf_gnu_ifunc_resolve_by_got): Update.
11731 * dwarf2/read.c (create_addrmap_from_index)
11732 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11733 (read_debug_names_from_section)
11734 (process_psymtab_comp_unit_reader, add_partial_symbol)
11735 (add_partial_subprogram, process_full_comp_unit)
11736 (read_file_scope, read_func_scope, read_lexical_block_scope)
11737 (read_call_site_scope, dwarf2_ranges_read)
11738 (dwarf2_record_block_ranges, dwarf2_add_field)
11739 (mark_common_block_symbol_computed, read_tag_pointer_type)
11740 (read_tag_string_type, dwarf2_init_float_type)
11741 (dwarf2_init_complex_target_type, read_base_type)
11742 (partial_die_info::read, partial_die_info::read)
11743 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11744 (dwarf2_fetch_die_loc_sect_off): Update.
11745 * dwarf2/loc.c (dwarf2_find_location_expression)
11746 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11747 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11748 (dwarf2_loc_desc_get_symbol_read_needs)
11749 (locexpr_describe_location_piece, locexpr_describe_location_1)
11750 (loclist_describe_location): Update.
11751 * dwarf2/index-write.c (write_debug_names): Update.
11752 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11753 * dtrace-probe.c (dtrace_process_dof): Update.
11754 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11755 (process_one_symbol): Update.
11756 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11757 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11758 (coff_read_enum_type): Update.
11759 * cli/cli-cmds.c (edit_command, list_command): Update.
11760 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11761 * breakpoint.c (create_overlay_event_breakpoint)
11762 (create_longjmp_master_breakpoint)
11763 (create_std_terminate_master_breakpoint)
11764 (create_exception_master_breakpoint, get_sal_arch): Update.
11765 * block.c (block_gdbarch): Update.
11766 * annotate.c (annotate_source_line): Update.
11767
11768 2020-04-17 Tom Tromey <tromey@adacore.com>
11769
11770 * auto-load.c (show_auto_load_cmd): Remove.
11771 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11772 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11773 (maintenance_print_arc_command): Remove.
11774 * tui/tui-win.c (tui_command): Remove.
11775 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11776 * tui/tui-layout.c (tui_layout_command): Remove.
11777 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11778 * python/python.c (user_set_python, user_show_python): Remove.
11779 (_initialize_python): Use add_basic_prefix_cmd,
11780 add_show_prefix_cmd.
11781 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11782 (install_gdb_commands): Use add_basic_prefix_cmd,
11783 add_show_prefix_cmd.
11784 (info_guile_command): Remove.
11785 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11786 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11787 add_show_prefix_cmd.
11788 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11789 Remove do_set and do_show parameters.
11790 * cli/cli-style.c (set_style, show_style): Remove.
11791 (_initialize_cli_style): Use add_basic_prefix_cmd,
11792 add_show_prefix_cmd.
11793 (cli_style_option::add_setshow_commands): Remove do_set and
11794 do_show parameters.
11795 (cli_style_option::add_setshow_commands): Use
11796 add_basic_prefix_cmd, add_show_prefix_cmd.
11797 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11798 (set_style_name): Remove.
11799 * cli/cli-dump.c (dump_command, append_command): Remove.
11800 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11801 (tekhex_dump_command, binary_dump_command)
11802 (binary_append_command): Remove.
11803 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11804 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11805 (init_w32_command_list): Remove; move into ...
11806 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11807 * valprint.c (set_print, show_print, set_print_raw)
11808 (show_print_raw): Remove.
11809 (_initialize_valprint): Use add_basic_prefix_cmd,
11810 add_show_prefix_cmd.
11811 * typeprint.c (set_print_type, show_print_type): Remove.
11812 (_initialize_typeprint): Use add_basic_prefix_cmd,
11813 add_show_prefix_cmd.
11814 * record.c (set_record_command, show_record_command): Remove.
11815 (_initialize_record): Use add_basic_prefix_cmd,
11816 add_show_prefix_cmd.
11817 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11818 add_show_prefix_cmd.
11819 (info_command, show_command, set_debug, show_debug): Remove.
11820 * top.h (set_history, show_history): Don't declare.
11821 * top.c (set_history, show_history): Remove.
11822 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11823 (unset_tdesc_cmd): Remove.
11824 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11825 add_show_prefix_cmd.
11826 * symtab.c (info_module_command): Remove.
11827 (_initialize_symtab): Use add_basic_prefix_cmd.
11828 * symfile.c (overlay_command): Remove.
11829 (_initialize_symfile): Use add_basic_prefix_cmd.
11830 * sparc64-tdep.c (info_adi_command): Remove.
11831 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11832 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11833 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11834 add_show_prefix_cmd.
11835 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11836 (_initialize_serial): Use add_basic_prefix_cmd,
11837 add_show_prefix_cmd.
11838 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11839 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11840 add_show_prefix_cmd.
11841 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11842 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11843 add_show_prefix_cmd.
11844 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11845 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11846 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11847 add_show_prefix_cmd.
11848 * remote.c (remote_command, set_remote_cmd): Remove.
11849 (_initialize_remote): Use add_basic_prefix_cmd.
11850 * record-full.c (set_record_full_command)
11851 (show_record_full_command): Remove.
11852 (_initialize_record_full): Use add_basic_prefix_cmd,
11853 add_show_prefix_cmd.
11854 * record-btrace.c (cmd_set_record_btrace)
11855 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11856 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11857 (cmd_show_record_btrace_pt): Remove.
11858 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11859 add_show_prefix_cmd.
11860 * ravenscar-thread.c (set_ravenscar_command)
11861 (show_ravenscar_command): Remove.
11862 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11863 add_show_prefix_cmd.
11864 * mips-tdep.c (show_mips_command, set_mips_command)
11865 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11866 add_show_prefix_cmd.
11867 * maint.c (maintenance_command, maintenance_info_command)
11868 (maintenance_check_command, maintenance_print_command)
11869 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11870 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11871 add_show_prefix_cmd.
11872 (show_per_command_cmd): Remove.
11873 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11874 Remove.
11875 (maintenance_show_test_settings_cmd): Remove.
11876 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11877 add_show_prefix_cmd.
11878 * maint-test-options.c (maintenance_test_options_command):
11879 Remove.
11880 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11881 * macrocmd.c (macro_command): Remove
11882 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11883 * language.c (set_check, show_check): Remove.
11884 (_initialize_language): Use add_basic_prefix_cmd,
11885 add_show_prefix_cmd.
11886 * infcmd.c (unset_command): Remove.
11887 (_initialize_infcmd): Use add_basic_prefix_cmd.
11888 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11889 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11890 add_show_prefix_cmd.
11891 * go32-nat.c (go32_info_dos_command): Remove.
11892 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11893 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11894 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11895 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11896 (_initialize_frame): Use add_basic_prefix_cmd,
11897 add_show_prefix_cmd.
11898 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11899 (_initialize_dcache): Use add_basic_prefix_cmd,
11900 add_show_prefix_cmd.
11901 * cp-support.c (maint_cplus_command): Remove.
11902 (_initialize_cp_support): Use add_basic_prefix_cmd.
11903 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11904 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11905 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11906 add_basic_prefix_cmd, add_show_prefix_cmd.
11907 * breakpoint.c (save_command): Remove.
11908 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11909 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11910 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11911 add_show_prefix_cmd.
11912 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11913 (set_ada_command, show_ada_command): Remove.
11914 (_initialize_ada_language): Use add_basic_prefix_cmd,
11915 add_show_prefix_cmd.
11916 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11917
11918 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11919
11920 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11921 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11922
11923 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11924
11925 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11926 warning messages.
11927
11928 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11929
11930 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11931 import table is not at beginning of .idata section.
11932
11933 2020-04-16 Pedro Alves <palves@redhat.com>
11934
11935 * inferior.c (delete_inferior): Use delete operator directly
11936 instead of delete_program_space.
11937 * progspace.c (add_program_space): New, factored out from
11938 program_space::program_space.
11939 (remove_program_space): New, factored out from
11940 delete_program_space.
11941 (program_space::program_space): Remove intro comment. Rewrite.
11942 (program_space::~program_space): Remove intro comment. Call
11943 remove_program_space.
11944 (delete_program_space): Delete.
11945 * progspace.h (program_space::program_space): Make explicit. Move
11946 intro comment here, adjusted.
11947 (program_space::~program_space): Move intro comment here,
11948 adjusted.
11949 (delete_program_space): Remove.
11950
11951 2020-04-16 Tom Tromey <tromey@adacore.com>
11952
11953 * windows-nat.c (windows_nat::handle_access_violation): New
11954 function.
11955 * nat/windows-nat.h (handle_access_violation): Declare.
11956 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11957 windows-nat.c. Call handle_access_violation.
11958
11959 2020-04-16 Tom de Vries <tdevries@suse.de>
11960
11961 PR symtab/25791
11962 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11963 CUs without psymtab.
11964
11965 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11966
11967 * python/python.c (do_start_initialization): Don't call
11968 PyEval_InitThreads for Python 3.9 and beyond.
11969
11970 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11971
11972 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11973 thread functions.
11974 (obsd_nat_target::wait): Likewise.
11975
11976 2020-04-15 Tom Tromey <tromey@adacore.com>
11977
11978 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11979 (DEBUG_EXCEPT): Use debug_printf.
11980
11981 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11982
11983 * completer.c (class completion_tracker::completion_hash_entry)
11984 <hash_name>: New member function.
11985 (completion_tracker::discard_completions): New callback to hash a
11986 completion_hash_entry, pass this to htab_create_alloc.
11987
11988 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11989
11990 * windows-nat.c (windows_make_so): Warn rather than stopping with
11991 an error if realpath() fails.
11992
11993 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11994
11995 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11996 (nbsd_nat_target::info_proc): Add do_status.
11997
11998 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11999 Tom de Vries <tdevries@suse.de>
12000
12001 PR symtab/25718
12002 * psympriv.h (struct partial_symtab::read_symtab)
12003 (struct partial_symtab::expand_psymtab)
12004 (struct partial_symtab::read_dependencies): Update comments.
12005 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12006 read_symtab for includer.
12007 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12008 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12009 (struct dwarf2_include_psymtab::m_readin): Remove.
12010 (struct dwarf2_include_psymtab::includer): New member function.
12011 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12012
12013 2020-04-14 Tom de Vries <tdevries@suse.de>
12014
12015 PR symtab/25720
12016 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12017 with NULL symbol_matcher and lookup_name.
12018 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12019 and lookup_name.
12020 * dwarf2/read.c (dw2_expand_symtabs_matching)
12021 (dw2_debug_names_expand_symtabs_matching): Same.
12022 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12023 Make lookup_name a pointer. Update comment.
12024 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12025 lookup_name being a pointer.
12026 * symfile.c (expand_symtabs_matching): Same.
12027 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12028 * linespec.c (iterate_over_all_matching_symtabs): Same.
12029
12030 2020-04-13 Tom Tromey <tom@tromey.com>
12031
12032 * run-on-main-thread.c: Update include.
12033 * unittests/main-thread-selftests.c: Update include.
12034 * tui/tui-win.c: Update include.
12035 * tui/tui-io.c: Update include.
12036 * tui/tui-interp.c: Update include.
12037 * tui/tui-hooks.c: Update include.
12038 * top.h: Update include.
12039 * top.c: Update include.
12040 * ser-base.c: Update include.
12041 * remote.c: Update include.
12042 * remote-notif.c: Update include.
12043 * remote-fileio.c: Update include.
12044 * record-full.c: Update include.
12045 * record-btrace.c: Update include.
12046 * python/python.c: Update include.
12047 * posix-hdep.c: Update include.
12048 * mingw-hdep.c: Update include.
12049 * mi/mi-main.c: Update include.
12050 * mi/mi-interp.c: Update include.
12051 * main.c: Update include.
12052 * linux-nat.c: Update include.
12053 * interps.c: Update include.
12054 * infrun.c: Update include.
12055 * inf-loop.c: Update include.
12056 * event-top.c: Update include.
12057 * event-loop.c: Move to ../gdbsupport/.
12058 * event-loop.h: Move to ../gdbsupport/.
12059 * async-event.h: Update include.
12060 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12061
12062 2020-04-13 Tom Tromey <tom@tromey.com>
12063
12064 * tui/tui-win.c: Include async-event.h.
12065 * remote.c: Include async-event.h.
12066 * remote-notif.c: Include async-event.h.
12067 * record-full.c: Include async-event.h.
12068 * record-btrace.c: Include async-event.h.
12069 * infrun.c: Include async-event.h.
12070 * event-top.c: Include async-event.h.
12071 * event-loop.h: Move some declarations to async-event.h.
12072 * event-loop.c: Don't include ser-event.h or top.h. Move some
12073 code to async-event.c.
12074 * async-event.h: New file.
12075 * async-event.c: New file.
12076 * Makefile.in (COMMON_SFILES): Add async-event.c.
12077 (HFILES_NO_SRCDIR): Add async-event.h.
12078
12079 2020-04-13 Tom Tromey <tom@tromey.com>
12080
12081 * utils.c (flush_streams): New function.
12082 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12083
12084 2020-04-13 Tom Tromey <tom@tromey.com>
12085
12086 * event-loop.c (handle_file_event): Use warning, not
12087 printf_unfiltered.
12088
12089 2020-04-13 Tom Tromey <tom@tromey.com>
12090
12091 * event-loop.c: Include <chrono>.
12092
12093 2020-04-13 Tom Tromey <tom@tromey.com>
12094
12095 * gdb_select.h: Move to ../gdbsupport/.
12096 * event-loop.c: Update include path.
12097 * top.c: Update include path.
12098 * ser-base.c: Update include path.
12099 * ui-file.c: Update include path.
12100 * ser-tcp.c: Update include path.
12101 * guile/scm-ports.c: Update include path.
12102 * posix-hdep.c: Update include path.
12103 * ser-unix.c: Update include path.
12104 * gdb_usleep.c: Update include path.
12105 * mingw-hdep.c: Update include path.
12106 * inflow.c: Update include path.
12107 * infrun.c: Update include path.
12108 * event-top.c: Update include path.
12109
12110 2020-04-13 Tom Tromey <tom@tromey.com>
12111
12112 * configure: Rebuild.
12113 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12114
12115 2020-04-13 Tom Tromey <tom@tromey.com>
12116
12117 * event-loop.h (start_event_loop): Don't declare.
12118 * event-loop.c (start_event_loop): Move...
12119 * main.c (start_event_loop): ...here. Now static.
12120
12121 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12122
12123 * MAINTAINERS: Update my email address.
12124
12125 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12126
12127 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12128 IP_ALL.
12129
12130 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12131
12132 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12133 (nbsd_nat_target::info_proc): Add do_cmdline.
12134
12135 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12136
12137 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12138 (nbsd_nat_target::info_proc): Add do_cwd.
12139
12140 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12141
12142 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12143
12144 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12145
12146 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12147 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12148 (nbsd_nat_target::info_proc): New functions.
12149 * nbsd-nat.c (kinfo_get_vmmap): New function.
12150 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12151 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12152 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12153 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12154 functions.
12155 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12156 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12157 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12158 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12159 (KINFO_VME_FLAG_GROWS_DOWN): New.
12160
12161 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12162
12163 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12164 bit shift.
12165
12166 2020-04-10 Tom Tromey <tromey@adacore.com>
12167
12168 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12169
12170 2020-04-10 Tom Tromey <tromey@adacore.com>
12171
12172 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12173 separate debug files.
12174
12175 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12176
12177 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12178 Move to...
12179 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12180 ... here.
12181 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12182 Check for STATUS_WX86_BREAKPOINT.
12183 (windows_nat_target::wait): Same.
12184
12185 2020-04-10 Tom de Vries <tdevries@suse.de>
12186
12187 PR cli/25808
12188 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12189
12190 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12191
12192 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12193 (Write After Approval): Remove Tom de Vries.
12194
12195 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12196
12197 revert partially:
12198 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12199
12200 * buildsym.c (record_line): Fix undefined behavior and preserve
12201 lines at eof.
12202
12203 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12204
12205 * auxv.h (svr4_auxv_parse): New.
12206 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12207 and generic_auxv_parse.
12208 (svr4_auxv_parse): Add.
12209 * obsd-tdep.c: Include "auxv.h".
12210 (obsd_auxv_parse): Remove.
12211 (obsd_init_abi): Remove comment.
12212 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12213 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12214 * nbsd-tdep.c: Include "auxv.h".
12215 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12216
12217 2020-04-08 Tom Tromey <tromey@adacore.com>
12218
12219 * nat/windows-nat.h (last_wait_event): Don't declare.
12220 (wait_for_debug_event): Update comment.
12221 * nat/windows-nat.c (last_wait_event): Now static.
12222
12223 2020-04-08 Tom Tromey <tromey@adacore.com>
12224
12225 * windows-nat.c (wait_for_debug_event): Move to
12226 nat/windows-nat.c.
12227 * nat/windows-nat.h (wait_for_debug_event): Declare.
12228 * nat/windows-nat.c (wait_for_debug_event): Move from
12229 windows-nat.c. No longer static.
12230
12231 2020-04-08 Tom Tromey <tromey@adacore.com>
12232
12233 * windows-nat.c (get_windows_debug_event): Use
12234 fetch_pending_stop.
12235 * nat/windows-nat.h (fetch_pending_stop): Declare.
12236 * nat/windows-nat.c (fetch_pending_stop): New function.
12237
12238 2020-04-08 Tom Tromey <tromey@adacore.com>
12239
12240 * windows-nat.c (windows_continue): Use matching_pending_stop and
12241 continue_last_debug_event.
12242 * nat/windows-nat.h (matching_pending_stop)
12243 (continue_last_debug_event): Declare.
12244 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12245 (matching_pending_stop, continue_last_debug_event): New
12246 functions.
12247
12248 2020-04-08 Tom Tromey <tromey@adacore.com>
12249
12250 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12251 (handle_exception_result): Move to nat/windows-nat.h.
12252 (DEBUG_EXCEPTION_SIMPLE): Remove.
12253 (windows_nat::handle_ms_vc_exception): New function.
12254 (handle_exception): Move to nat/windows-nat.c.
12255 (get_windows_debug_event): Update.
12256 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12257 nat/windows-nat.c.
12258 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12259 (handle_exception_result): Move from windows-nat.c.
12260 (handle_exception): Declare.
12261 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12262 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12263 windows-nat.c.
12264
12265 2020-04-08 Tom Tromey <tromey@adacore.com>
12266
12267 * windows-nat.c (exception_count, event_count): Remove.
12268 (handle_exception, get_windows_debug_event)
12269 (do_initial_windows_stuff): Update.
12270
12271 2020-04-08 Tom Tromey <tromey@adacore.com>
12272
12273 * windows-nat.c (windows_nat::handle_load_dll)
12274 (windows_nat::handle_unload_dll): Rename. No longer static.
12275 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12276 Declare.
12277
12278 2020-04-08 Tom Tromey <tromey@adacore.com>
12279
12280 * complaints.h (stop_whining): Declare at top-level.
12281 (complaint): Don't declare stop_whining.
12282
12283 2020-04-08 Tom Tromey <tromey@adacore.com>
12284
12285 * windows-nat.c (windows_nat::handle_output_debug_string):
12286 Rename. No longer static.
12287 * nat/windows-nat.h (handle_output_debug_string): Declare.
12288
12289 2020-04-08 Tom Tromey <tromey@adacore.com>
12290
12291 * windows-nat.c (current_process_handle, current_process_id)
12292 (main_thread_id, last_sig, current_event, last_wait_event)
12293 (current_windows_thread, desired_stop_thread_id, pending_stops)
12294 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12295 (display_selectors, fake_create_process)
12296 (get_windows_debug_event): Update.
12297 * nat/windows-nat.h (current_process_handle, current_process_id)
12298 (main_thread_id, last_sig, current_event, last_wait_event)
12299 (current_windows_thread, desired_stop_thread_id, pending_stops)
12300 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12301 * nat/windows-nat.c (current_process_handle, current_process_id)
12302 (main_thread_id, last_sig, current_event, last_wait_event)
12303 (current_windows_thread, desired_stop_thread_id, pending_stops)
12304 (siginfo_er): New globals. Move from windows-nat.c.
12305
12306 2020-04-08 Tom Tromey <tromey@adacore.com>
12307
12308 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12309 (handle_load_dll): Update.
12310 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12311
12312 2020-04-08 Tom Tromey <tromey@adacore.com>
12313
12314 * windows-nat.c (enum thread_disposition_type): Move to
12315 nat/windows-nat.h.
12316 (windows_nat::thread_rec): Rename from thread_rec. No longer
12317 static.
12318 (windows_add_thread, windows_nat_target::fetch_registers)
12319 (windows_nat_target::store_registers, handle_exception)
12320 (windows_nat_target::resume, get_windows_debug_event)
12321 (windows_nat_target::get_tib_address)
12322 (windows_nat_target::thread_name)
12323 (windows_nat_target::thread_alive): Update.
12324 * nat/windows-nat.h (enum thread_disposition_type): Move from
12325 windows-nat.c.
12326 (thread_rec): Declare.
12327
12328 2020-04-08 Tom Tromey <tromey@adacore.com>
12329
12330 * windows-nat.c: Add "using namespace".
12331 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12332 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12333
12334 2020-04-08 Tom Tromey <tromey@adacore.com>
12335
12336 * nat/windows-nat.h (struct windows_thread_info): Declare
12337 destructor.
12338 * nat/windows-nat.c (~windows_thread_info): New.
12339
12340 2020-04-08 Tom Tromey <tromey@adacore.com>
12341
12342 PR gdb/22992
12343 * windows-nat.c (current_event): Update comment.
12344 (last_wait_event, desired_stop_thread_id): New globals.
12345 (struct pending_stop): New.
12346 (pending_stops): New global.
12347 (windows_nat_target) <stopped_by_sw_breakpoint>
12348 <supports_stopped_by_sw_breakpoint>: New methods.
12349 (windows_fetch_one_register): Add assertions. Adjust PC.
12350 (windows_continue): Handle pending stops. Suspend other threads
12351 when stepping. Use last_wait_event
12352 (wait_for_debug_event): New function.
12353 (get_windows_debug_event): Use wait_for_debug_event. Handle
12354 pending stops. Queue spurious stops.
12355 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12356 (windows_nat_target::kill): Use wait_for_debug_event.
12357 * nat/windows-nat.h (struct windows_thread_info)
12358 <stopped_at_software_breakpoint>: New field.
12359 * nat/windows-nat.c (windows_thread_info::resume): Clear
12360 stopped_at_software_breakpoint.
12361
12362 2020-04-08 Tom Tromey <tromey@adacore.com>
12363
12364 * windows-nat.c (enum thread_disposition_type): New.
12365 (thread_rec): Replace "get_context" parameter with "disposition";
12366 change type.
12367 (windows_add_thread, windows_nat_target::fetch_registers)
12368 (windows_nat_target::store_registers, handle_exception)
12369 (windows_nat_target::resume, get_windows_debug_event)
12370 (windows_nat_target::get_tib_address)
12371 (windows_nat_target::thread_name)
12372 (windows_nat_target::thread_alive): Update.
12373
12374 2020-04-08 Tom Tromey <tromey@adacore.com>
12375
12376 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12377 (windows_continue): Use windows_continue::resume.
12378 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12379 resume>: Declare new methods.
12380 * nat/windows-nat.c: New file.
12381 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12382
12383 2020-04-08 Tom Tromey <tromey@adacore.com>
12384
12385 * windows-nat.c (windows_add_thread, windows_delete_thread)
12386 (windows_nat_target::fetch_registers)
12387 (windows_nat_target::store_registers, fake_create_process)
12388 (windows_nat_target::resume, windows_nat_target::resume)
12389 (get_windows_debug_event, windows_nat_target::wait)
12390 (windows_nat_target::pid_to_str)
12391 (windows_nat_target::get_tib_address)
12392 (windows_nat_target::get_ada_task_ptid)
12393 (windows_nat_target::thread_name)
12394 (windows_nat_target::thread_alive): Use lwp, not tid.
12395
12396 2020-04-08 Tom Tromey <tromey@adacore.com>
12397
12398 * windows-nat.c (handle_exception)
12399 (windows_nat_target::thread_name): Update.
12400 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12401 <name>: Now unique_xmalloc_ptr.
12402
12403 2020-04-08 Tom Tromey <tromey@adacore.com>
12404
12405 * windows-nat.c (thread_rec)
12406 (windows_nat_target::fetch_registers): Update.
12407 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12408 Update comment.
12409 <debug_registers_changed, reload_context>: Now bool.
12410
12411 2020-04-08 Tom Tromey <tromey@adacore.com>
12412
12413 * windows-nat.c (windows_add_thread): Use new.
12414 (windows_init_thread_list, windows_delete_thread): Use delete.
12415 (get_windows_debug_event): Update.
12416 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12417 destructor, and initializers.
12418
12419 2020-04-08 Tom Tromey <tromey@adacore.com>
12420
12421 * windows-nat.c (struct windows_thread_info): Remove.
12422 * nat/windows-nat.h: New file.
12423
12424 2020-04-08 Tom Tromey <tromey@adacore.com>
12425
12426 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12427 (thread_rec, windows_add_thread, windows_delete_thread)
12428 (windows_continue): Update.
12429
12430 2020-04-08 Tom Tromey <tromey@adacore.com>
12431
12432 * windows-nat.c (struct windows_thread_info): Remove typedef.
12433 (thread_head): Remove.
12434 (thread_list): New global.
12435 (thread_rec, windows_add_thread, windows_init_thread_list)
12436 (windows_delete_thread, windows_continue): Update.
12437
12438 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12439
12440 * windows-tdep.h (windows_init_abi): Add comment.
12441 (cygwin_init_abi): New declaration.
12442 * windows-tdep.c: Split signal enumeration in two, one for
12443 Windows and one for Cygwin.
12444 (windows_gdb_signal_to_target): Only deal with signal of the
12445 Windows OS ABI.
12446 (cygwin_gdb_signal_to_target): New function.
12447 (windows_init_abi): Rename to windows_init_abi_common, don't set
12448 gdb_signal_to_target gdbarch method. Add new new function with
12449 this name.
12450 (cygwin_init_abi): New function.
12451 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12452 comment. Don't call windows_init_abi.
12453 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12454 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12455 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12456 i386_windows_init_abi_common, don't call windows_init_abi. Add
12457 a new function of this name.
12458 (i386_cygwin_init_abi): New function.
12459 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12460 OS ABI Cygwin.
12461
12462 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12463
12464 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12465 parameter.c.
12466 (dwarf2_read_gdb_index): Update.
12467
12468 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12469
12470 * nbsd-tdep.c: Include "objfiles.h".
12471 (nbsd_skip_solib_resolver): New.
12472 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12473
12474 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12475
12476 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12477 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12478 with DW_LLE_base_addressx are being emitted in DWARFv5.
12479 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12480 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12481 unsigned integer.
12482
12483 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12484
12485 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12486 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12487 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12488 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12489 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12490 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12491 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12492
12493
12494 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12495
12496 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12497 (read_loclist_index): New function definition.
12498 (lookup_loclist_base): New function definition.
12499 (read_loclist_header): New function definition.
12500 (dwarf2_cu): Add loclist_base and loclist_header field.
12501 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12502 (read_full_die_1): Read the value of DW_AT_loclists_base.
12503 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12504 (read_attribute_value): Handle DW_FORM_loclistx.
12505 (skip_one_die): Handle DW_FORM_loclistx.
12506 (loclist_header): New structure declaration.
12507 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12508
12509 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12510
12511 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12512 constructor. Remove `addr` parameter from other constructor and
12513 add `per_cu` parameter.
12514 * dwarf2/read.c (create_partial_symtab): Update.
12515
12516 2020-04-07 Tom de Vries <tdevries@suse.de>
12517
12518 PR symtab/25796
12519 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12520 (partial_die_info::fixup): Inherit has_const_value.
12521
12522 2020-04-07 Tom de Vries <tdevries@suse.de>
12523
12524 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12525 symbols without address.
12526
12527 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12528
12529 * nbsd-nat.h (struct thread_info): Add forward declaration.
12530 (nbsd_nat_target::thread_alive): Add.
12531 (nbsd_nat_target::thread_name): Likewise.
12532 (nbsd_nat_target::update_thread_list): Likewise.
12533 (update_thread_list::post_attach): Likewise.
12534 (post_attach::pid_to_str): Likewise.
12535 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12536 (nbsd_thread_lister): Add.
12537 (nbsd_nat_target::thread_alive): Likewise.
12538 (nbsd_nat_target::thread_name): Likewise.
12539 (nbsd_add_threads): Likewise.
12540 (update_thread_list::post_attach): Likewise.
12541 (nbsd_nat_target::update_thread_list): Likewise.
12542 (post_attach::pid_to_str): Likewise.
12543
12544 2020-04-06 Tom Tromey <tromey@adacore.com>
12545
12546 * ada-valprint.c (print_variant_part): Extract the variant field.
12547 (print_field_values): Use the field as the outer value when
12548 recursing.
12549
12550 2020-04-06 Tom Tromey <tromey@adacore.com>
12551
12552 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12553 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12554 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12555 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12556 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12557
12558 2020-04-06 Tom Tromey <tromey@adacore.com>
12559
12560 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12561 TYPE_CODE_ERROR.
12562
12563 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12564
12565 * nbsd-tdep.c: Include "gdbarch.h".
12566 Define enum with NetBSD signal numbers.
12567 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12568 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12569 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12570 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12571 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12572 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12573 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12574 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12575 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12576 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12577 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12578 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12579
12580 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12581
12582 PR gdb/25325
12583 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12584
12585 2020-04-03 Tom Tromey <tromey@adacore.com>
12586
12587 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12588 Read constant block.
12589
12590 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12591
12592 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12593 (gdb_bfd_get_full_section_contents): New declaration.
12594 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12595 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12596 gdb_bfd_get_full_section_contents.
12597
12598 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12599
12600 * exec.c (build_section_table): Replace internal_error with
12601 gdb_assert.
12602 (section_table_xfer_memory_partial): Likewise.
12603 * mdebugread.c (parse_partial_symbols): Likewise.
12604 * psymtab.c (lookup_partial_symbol): Likewise.
12605 * utils.c (wrap_here): Likewise.
12606
12607 2020-04-02 Tom Tromey <tromey@adacore.com>
12608
12609 * f-lang.c (build_fortran_types): Use arch_type to initialize
12610 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12611
12612 2020-04-02 Tom Tromey <tromey@adacore.com>
12613
12614 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12615 of attributes.
12616
12617 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12618 Bernd Edlinger <bernd.edlinger@hotmail.de>
12619 Tom Tromey <tromey@adacore.com>
12620
12621 * buildsym.c (buildsym_compunit::record_line): Remove
12622 deduplication code.
12623
12624 2020-04-02 Tom de Vries <tdevries@suse.de>
12625
12626 PR ada/24671
12627 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12628
12629 2020-04-02 Tom de Vries <tdevries@suse.de>
12630
12631 * dwarf2/read.c (dwarf2_gdb_index_functions,
12632 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12633 NULL.
12634 * psymtab.c (psym_lookup_global_symbol_language): New function.
12635 (psym_functions): Init psym_lookup_global_symbol_language with
12636 psym_lookup_global_symbol_language.
12637 * symfile-debug.c (debug_sym_quick_functions): Init
12638 lookup_global_symbol_language with NULL.
12639 * symfile.c (set_initial_language): Remove fixme comment.
12640 * symfile.h (struct quick_symbol_functions): Add
12641 lookup_global_symbol_language.
12642 * symtab.c (find_quick_global_symbol_language): New function.
12643 (find_main_name): Use find_quick_global_symbol_language.
12644
12645 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12646
12647 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12648
12649 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12650
12651 * buildsym.c (record_line): Fix undefined behavior and preserve
12652 lines at eof.
12653
12654 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12655
12656 * buildsym.c (record_line): Fix the resizing condition.
12657
12658 2020-04-01 Tom Tromey <tom@tromey.com>
12659
12660 * value.h (value_literal_complex): Add comment.
12661 * valops.c (value_literal_complex): Refer to value.h.
12662
12663 2020-04-01 Tom Tromey <tom@tromey.com>
12664
12665 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12666 (scalar_type): New rule, from typebase.
12667 (typebase): Use scalar_type. Recognize complex types.
12668 (field_name): Handle FLOAT_KEYWORD.
12669 (ident_tokens): Add _Complex and __complex__.
12670
12671 2020-04-01 Tom Tromey <tom@tromey.com>
12672
12673 PR exp/25299:
12674 * valarith.c (promotion_type, complex_binop): New functions.
12675 (scalar_binop): Handle complex numbers. Use promotion_type.
12676 (value_pos, value_neg, value_complement): Handle complex numbers.
12677
12678 2020-04-01 Tom Tromey <tom@tromey.com>
12679
12680 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12681 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12682 (parse_number): Handle complex numbers.
12683
12684 2020-04-01 Tom Tromey <tom@tromey.com>
12685
12686 * c-valprint.c (c_decorations): Change complex suffix to "i".
12687
12688 2020-04-01 Tom Tromey <tom@tromey.com>
12689
12690 * valprint.c (generic_value_print_complex): Use accessors.
12691 * value.h (value_real_part, value_imaginary_part): Declare.
12692 * valops.c (value_real_part, value_imaginary_part): New
12693 functions.
12694 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12695
12696 2020-04-01 Tom Tromey <tom@tromey.com>
12697
12698 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12699 (read_range_type): Update.
12700 * mdebugread.c (basic_type): Update.
12701 * go-lang.c (build_go_types): Use init_complex_type.
12702 * gdbtypes.h (struct main_type) <complex_type>: New member.
12703 (init_complex_type): Update.
12704 (arch_complex_type): Don't declare.
12705 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12706 Make name if none given. Use alloc_type_copy. Look for cached
12707 complex type.
12708 (arch_complex_type): Remove.
12709 (gdbtypes_post_init): Use init_complex_type.
12710 * f-lang.c (build_fortran_types): Use init_complex_type.
12711 * dwarf2/read.c (read_base_type): Update.
12712 * d-lang.c (build_d_types): Use init_complex_type.
12713 * ctfread.c (read_base_type): Update.
12714
12715 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12716
12717 * infrun.c (stop_all_threads): Update assertion, plus when
12718 stopping threads, take into account that we might be trying
12719 to stop an all-stop target.
12720 (stop_waiting): Call 'stop_all_threads' if there exists a
12721 non-stop target.
12722
12723 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12724
12725 * target.h (exists_non_stop_target): New function declaration.
12726 * target.c (exists_non_stop_target): New function.
12727
12728 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12729
12730 PR gdb/24789
12731 * eval.c (is_integral_or_integral_reference): New function.
12732 (evaluate_subexp_standard): Allow integer references in
12733 pointer arithmetic.
12734
12735 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12736
12737 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12738 check for no ptid in the stop reply when the target is non-stop.
12739
12740 2020-04-01 Tom Tromey <tromey@adacore.com>
12741
12742 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12743 "name" parameter to rvalue reference. Initialize m_name_holder.
12744 <lookup_name_info>: New overloads.
12745 <name>: Return gdb::string_view.
12746 <c_str>: New method.
12747 <make_ignore_params>: Update.
12748 <search_name_hash>: Update.
12749 <language_lookup_name>: Return const char *.
12750 <m_name>: Change type.
12751 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12752 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12753 (lookup_name_info::match_any): Update.
12754 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12755 Update.
12756 * minsyms.c (linkage_name_str): Update.
12757 * language.c (default_symbol_name_matcher): Update.
12758 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12759 Update.
12760 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12761 (ada_lookup_name_info::ada_lookup_name_info): Update.
12762 (literal_symbol_name_matcher): Update.
12763
12764 2020-04-01 Tom Tromey <tromey@adacore.com>
12765
12766 * psymtab.c (psymtab_search_name): Remove function.
12767 (psym_lookup_symbol): Create search name and lookup name here.
12768 (lookup_partial_symbol): Remove "name" parameter; add
12769 lookup_name.
12770 (psym_expand_symtabs_for_function): Update.
12771
12772 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12773
12774 PR tui/25597:
12775 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12776
12777 2020-03-31 Tom Tromey <tromey@adacore.com>
12778
12779 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12780 memcpy.
12781
12782 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12783
12784 * features/riscv/32bit-csr.xml: Regenerated.
12785 * features/riscv/64bit-csr.xml: Regenerated.
12786
12787 2020-03-30 Tom Tromey <tromey@adacore.com>
12788
12789 * ada-valprint.c (print_variant_part): Update.
12790 * ada-lang.h (ada_which_variant_applies): Update.
12791 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12792 outer_valaddr parameters; replace with "outer" value parameter.
12793 (to_fixed_variant_branch_type): Update.
12794
12795 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12796
12797 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12798 <list>. Remove inclusion of observable.h.
12799 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12800 (struct arch_lwp_info): New struct.
12801 (class ppc_linux_dreg_interface): New class.
12802 (struct ppc_linux_process_info): New struct.
12803 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12804 <low_new_clone, low_forget_process, low_prepare_to_resume>
12805 <copy_thread_dreg_state, mark_thread_stale>
12806 <mark_debug_registers_changed, register_hw_breakpoint>
12807 <clear_hw_breakpoint, register_wp, clear_wp>
12808 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12809 <num_memory_accesses, get_trigger_type>
12810 <create_watchpoint_request, hwdebug_point_cmp>
12811 <init_arch_lwp_info, get_arch_lwp_info>
12812 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12813 methods.
12814 <struct ptid_hash>: New inner struct.
12815 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12816 members.
12817 (saved_dabr_value, hwdebug_info, max_slots_number)
12818 (struct hw_break_tuple, struct thread_points, ppc_threads)
12819 (have_ptrace_hwdebug_interface)
12820 (hwdebug_find_thread_points_by_tid)
12821 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12822 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12823 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12824 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12825 use m_dreg_interface.
12826 (hwdebug_point_cmp): Change to...
12827 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12828 reference arguments instead of pointers.
12829 (ppc_linux_nat_target::ranged_break_num_registers): Use
12830 m_dreg_interface.
12831 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12832 m_dreg_interface. Call register_hw_breakpoint.
12833 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12834 m_dreg_interface. Call clear_hw_breakpoint.
12835 (get_trigger_type): Change to...
12836 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12837 comment.
12838 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12839 use m_dreg_interface. Call register_hw_breakpoint.
12840 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12841 use m_dreg_interface. Call clear_hw_breakpoint.
12842 (can_use_watchpoint_cond_accel): Change to...
12843 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12844 method. Update comment, use m_dreg_interface and
12845 m_process_info.
12846 (calculate_dvc): Change to...
12847 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12848 m_dreg_interface.
12849 (num_memory_accesses): Change to...
12850 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12851 (check_condition): Change to...
12852 (ppc_linux_nat_target::check_condition): ...this method.
12853 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12854 comment, use m_dreg_interface.
12855 (create_watchpoint_request): Change to...
12856 (ppc_linux_nat_target::create_watchpoint_request): ...this
12857 method. Use m_dreg_interface.
12858 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12859 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12860 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12861 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12862 (ppc_linux_nat_target::low_forget_process)
12863 (ppc_linux_nat_target::low_new_fork)
12864 (ppc_linux_nat_target::low_new_clone)
12865 (ppc_linux_nat_target::low_delete_thread)
12866 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12867 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12868 only call mark_thread_stale.
12869 (ppc_linux_thread_exit): Remove.
12870 (ppc_linux_nat_target::stopped_data_address): Change to...
12871 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12872 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12873 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12874 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12875 comment. Call low_stopped_data_address.
12876 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12877 m_dreg_interface.
12878 (ppc_linux_nat_target::masked_watch_num_registers): Use
12879 m_dreg_interface.
12880 (ppc_linux_nat_target::copy_thread_dreg_state)
12881 (ppc_linux_nat_target::mark_thread_stale)
12882 (ppc_linux_nat_target::mark_debug_registers_changed)
12883 (ppc_linux_nat_target::register_hw_breakpoint)
12884 (ppc_linux_nat_target::clear_hw_breakpoint)
12885 (ppc_linux_nat_target::register_wp)
12886 (ppc_linux_nat_target::clear_wp)
12887 (ppc_linux_nat_target::init_arch_lwp_info)
12888 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12889 (_initialize_ppc_linux_nat): Remove observer callback.
12890
12891 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12892
12893 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12894 (ppc_linux_nat_target::auxv_parse)
12895 (ppc_linux_nat_target::read_description)
12896 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12897 Move up.
12898
12899 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12900
12901 * linux-nat.h (low_new_clone): New method.
12902 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12903
12904 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12905
12906 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12907 (dbx_expand_psymtab): ... this.
12908 (start_psymtab): Update.
12909 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12910 (mdebug_expand_psymtab): ... this.
12911 (parse_partial_symbols): Update.
12912 (new_psymtab): Update.
12913 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12914 (xcoff_expand_psymtab): ... this.
12915 (xcoff_start_psymtab): Update.
12916
12917 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12918
12919 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12920 <expand_dependencies>: ... this.
12921 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12922 (partial_symtab::expand_dependencies): ... this.
12923 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12924 Update.
12925 (dwarf2_psymtab::expand_psymtab): Update.
12926 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12927 * mdebugread.c (psymtab_to_symtab_1): Update.
12928 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12929
12930 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12931
12932 * psympriv.h (discard_psymtab): Remove.
12933 * dbxread.c (dbx_end_psymtab): Update.
12934 * xcoffread.c (xcoff_end_psymtab): Update.
12935
12936 2020-03-28 Tom Tromey <tom@tromey.com>
12937
12938 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12939 comment.
12940
12941 2020-03-28 Tom Tromey <tom@tromey.com>
12942
12943 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12944
12945 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12946
12947 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12948
12949 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12950
12951 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12952
12953 2020-03-26 Tom Tromey <tom@tromey.com>
12954
12955 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12956 (mark_common_block_symbol_computed, read_tag_string_type)
12957 (attr_to_dynamic_prop, read_subrange_type): Update.
12958 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12959 to be methods on struct attribute.
12960 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12961 (read_call_site_scope, partial_die_info::read)
12962 (partial_die_info::read, lookup_die_type, follow_die_ref):
12963 Update.
12964 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12965 from dwarf2_get_ref_die_offset.
12966 (attribute::constant_value): New method, from
12967 dwarf2_get_attr_constant_value.
12968 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12969 Declare method.
12970 <constant_value>: New method.
12971
12972 2020-03-26 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12975 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12976 (dwarf_type_encoding_name): Move to stringify.c.
12977 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12978 * dwarf2/stringify.c: New file.
12979 * dwarf2/stringify.h: New file.
12980
12981 2020-03-26 Tom Tromey <tom@tromey.com>
12982
12983 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12984 Rewrite.
12985
12986 2020-03-26 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12989 methods.
12990 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12991 (lookup_ranges_base): Likewise.
12992 (read_cutu_die_from_dwo, read_full_die_1): Update.
12993
12994 2020-03-26 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.c (read_import_statement, read_file_scope)
12997 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12998 (read_lexical_block_scope, read_call_site_scope)
12999 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13000 (handle_struct_member_die, process_structure_scope)
13001 (update_enumeration_type_from_children)
13002 (process_enumeration_scope, read_array_type, read_common_block)
13003 (read_namespace, read_module, read_subroutine_type): Update.
13004 (sibling_die): Remove.
13005
13006 2020-03-26 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13009 (build_type_psymtabs_reader, read_structure_type)
13010 (read_enumeration_type, read_full_die_1): Update.
13011 (dwarf2_attr_no_follow): Move to die.h.
13012 * dwarf2/die.h (struct die_info) <attr>: New method.
13013
13014 2020-03-26 Tom Tromey <tom@tromey.com>
13015
13016 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13017 <base_address>: Now an optional.
13018 (dwarf2_find_base_address, dwarf2_rnglists_process)
13019 (dwarf2_ranges_process, fill_in_loclist_baton)
13020 (dwarf2_symbol_mark_computed): Update.
13021
13022 2020-03-26 Tom Tromey <tom@tromey.com>
13023
13024 * dwarf2/read.c (struct die_info): Move to die.h.
13025 * dwarf2/die.h: New file.
13026
13027 2020-03-26 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13030 * dwarf2/read.c
13031 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13032 Move to line-header.c.
13033 (read_checked_initial_length_and_offset, read_formatted_entries):
13034 Likewise.
13035 (dwarf_decode_line_header): Split into two.
13036 * dwarf2/line-header.c
13037 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13038 Move from read.c.
13039 (read_checked_initial_length_and_offset, read_formatted_entries):
13040 Likewise.
13041 (dwarf_decode_line_header): New function, split from read.c.
13042
13043 2020-03-26 Tom Tromey <tom@tromey.com>
13044
13045 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13046 Declare method.
13047 * dwarf2/read.c (read_attribute_value): Update.
13048 (dwarf2_per_objfile::read_line_string): Rename from
13049 read_indirect_line_string.
13050 (read_formatted_entries): Update.
13051
13052 2020-03-26 Tom Tromey <tom@tromey.com>
13053
13054 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13055 variable.
13056
13057 2020-03-26 Tom Tromey <tom@tromey.com>
13058
13059 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13060 const.
13061 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13062 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13063 parameter const.
13064
13065 2020-03-26 Tom Tromey <tom@tromey.com>
13066
13067 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13068 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13069 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13070 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13071
13072 2020-03-26 Tom Tromey <tom@tromey.com>
13073
13074 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13075 file_names_size, file_full_name, file_file_name>: Use const.
13076 <file_name_at, file_names>: Add const overload.
13077 * dwarf2/line-header.c (line_header::file_file_name)
13078 (line_header::file_full_name): Update.
13079
13080 2020-03-26 Tom Tromey <tom@tromey.com>
13081
13082 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13083 (macro_start_file, consume_improper_spaces)
13084 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13085 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13086 (dwarf_decode_macros): Move to macro.c.
13087 * dwarf2/macro.c: New file.
13088 * dwarf2/macro.h: New file.
13089 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13090
13091 2020-03-26 Tom Tromey <tom@tromey.com>
13092
13093 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13094 method.
13095 * dwarf2/section.c: New method. From
13096 read_indirect_string_at_offset_from.
13097 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13098 (read_indirect_string_at_offset_from): Move to section.c.
13099 (read_indirect_string_at_offset): Rewrite.
13100 (read_indirect_line_string_at_offset): Remove.
13101 (read_indirect_string, read_indirect_line_string)
13102 (dwarf_decode_macro_bytes): Update.
13103
13104 2020-03-26 Tom Tromey <tom@tromey.com>
13105
13106 * dwarf2/section.h (struct dwarf2_section_info)
13107 <overload_complaint>: Declare.
13108 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13109 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13110 Rename from dwarf2_section_buffer_overflow_complaint.
13111 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13112 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13113
13114 2020-03-26 Tom Tromey <tom@tromey.com>
13115
13116 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13117 Declare.
13118 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13119 Move from read.c.
13120 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13121 to section.c.
13122
13123 2020-03-26 Tom Tromey <tom@tromey.com>
13124
13125 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13126
13127 2020-03-26 Tom Tromey <tom@tromey.com>
13128
13129 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13130 "builder".
13131 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13132 parameter.
13133 (dwarf_decode_macros): Update.
13134
13135 2020-03-26 Tom Tromey <tom@tromey.com>
13136
13137 * dwarf2/read.c (read_attribute_value): Update.
13138 (read_indirect_string_from_dwz): Move to dwz.c; change into
13139 method.
13140 (dwarf_decode_macro_bytes): Update.
13141 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13142 * dwarf2/dwz.c: New file.
13143 * Makefile.in (COMMON_SFILES): Add dwz.c.
13144
13145 2020-03-26 Tom Tromey <tom@tromey.com>
13146
13147 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13148 * dwarf2/read.c: Add include.
13149 * dwarf2/index-write.c: Add include.
13150 * dwarf2/index-cache.c: Add include.
13151 * dwarf2/dwz.h: New file.
13152
13153 2020-03-25 Tom Tromey <tom@tromey.com>
13154
13155 * compile/compile-object-load.c (get_out_value_type): Mention
13156 correct symbol name in error message.
13157
13158 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13159
13160 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13161
13162 2020-03-25 Tom de Vries <tdevries@suse.de>
13163
13164 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13165 * symmisc.c (dump_symtab_1): Print user and includes fields.
13166 (maintenance_info_symtabs): Same.
13167
13168 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13169
13170 PR gdb/25534
13171 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13172 (riscv_regcache_cooked_write): New function.
13173 (riscv_push_dummy_call): Use new function.
13174 (riscv_return_value): Likewise.
13175
13176 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13177
13178 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13179 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13180 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13181 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13182 * infrun.c (follow_fork): Likewise.
13183 (follow_fork_inferior): Likewise.
13184 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13185 * linux-nat.h (class linux_nat_target): Likewise.
13186 * remote.c (class remote_target) <follow_fork>: Likewise.
13187 (remote_target::follow_fork): Likewise.
13188 * target-delegates.c: Re-generate.
13189 * target.c (default_follow_fork): Likewise.
13190 (target_follow_fork): Likewise.
13191 * target.h (struct target_ops) <follow_fork>: Likewise.
13192 (target_follow_fork): Likewise.
13193
13194 2020-03-24 Tom de Vries <tdevries@suse.de>
13195
13196 * psymtab.c (maintenance_info_psymtabs): Print user field.
13197
13198 2020-03-20 Tom Tromey <tromey@adacore.com>
13199
13200 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13201 const.
13202 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13203 const.
13204
13205 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13206
13207 * ptrace.m4: Don't check for ptrace declaration.
13208 * config.in: Re-generate.
13209 * configure: Re-generate.
13210 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13211 not defined.
13212
13213 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13214
13215 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13216 `PTRACE_TYPE_RET'.
13217 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13218 * sparc-nat.c (gdb_ptrace): Likewise.
13219 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13220
13221 2020-03-20 Tom Tromey <tromey@adacore.com>
13222
13223 * c-exp.y (lex_one_token): Fix assert.
13224
13225 2020-03-20 Tom Tromey <tromey@adacore.com>
13226
13227 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13228 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13229 strncpy call.
13230
13231 2020-03-20 Tom Tromey <tromey@adacore.com>
13232
13233 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13234
13235 2020-03-20 Tom Tromey <tromey@adacore.com>
13236
13237 * ada-valprint.c (print_variant_part): Remove parameters; switch
13238 to value-based API.
13239 (print_field_values): Likewise.
13240 (ada_val_print_struct_union): Likewise.
13241 (ada_value_print_1): Update.
13242
13243 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13244
13245 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13246 nbsd_nat_target instead of inf_ptrace_target.
13247 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13248 nbsd_nat_target.
13249
13250 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13251
13252 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13253 it to the ptrace call.
13254 * (store_registers): Likewise.
13255
13256 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13257
13258 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13259 it to the ptrace call.
13260 * (store_registers): Likewise.
13261
13262 2020-03-19 Luis Machado <luis.machado@linaro.org>
13263
13264 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13265 valid, fetch vg value from ptrace.
13266
13267 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13268 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13269 * inf-ptrace.c: Likewise.
13270 * (gdb_ptrace): Add.
13271 * (inf_ptrace_target::resume): Update.
13272 * (inf_ptrace_target::xfer_partial): Likewise.
13273 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13274 * (inf_ptrace_peek_poke): Update.
13275
13276 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13277
13278 * x86-bsd-nat.c (gdb_ptrace): New.
13279 * (x86bsd_dr_set): Add new argument `ptid'.
13280 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13281 x86bsd_dr_set_addr): Update.
13282
13283 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13284
13285 * remote.c (remote_target::process_stop_reply): Handle events for
13286 all threads differently.
13287
13288 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 * completer.c (completion_tracker::remove_completion): Define new
13291 function.
13292 * completer.h (completion_tracker::remove_completion): Declare new
13293 function.
13294 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13295 when adding a C++ function symbol.
13296
13297 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13298
13299 * completer.c (completion_tracker::completion_hash_entry): Define
13300 new class.
13301 (advance_to_filename_complete_word_point): Call
13302 recompute_lowest_common_denominator.
13303 (completion_tracker::completion_tracker): Call discard_completions
13304 to setup the hash table.
13305 (completion_tracker::discard_completions): Allow for being called
13306 from the constructor, pass new equal function, and element deleter
13307 when constructing the hash table. Initialise new class member
13308 variables.
13309 (completion_tracker::maybe_add_completion): Remove use of
13310 m_entries_vec, and store more information into m_entries_hash.
13311 (completion_tracker::recompute_lcd_visitor): New function, most
13312 content taken from...
13313 (completion_tracker::recompute_lowest_common_denominator):
13314 ...here, this now just visits each item in the hash calling the
13315 above visitor.
13316 (completion_tracker::build_completion_result): Remove use of
13317 m_entries_vec, call recompute_lowest_common_denominator.
13318 * completer.h (completion_tracker::have_completions): Remove use
13319 of m_entries_vec.
13320 (completion_tracker::completion_hash_entry): Declare new class.
13321 (completion_tracker::recompute_lowest_common_denominator): Change
13322 function signature.
13323 (completion_tracker::recompute_lcd_visitor): Declare new function.
13324 (completion_tracker::m_entries_vec): Delete.
13325 (completion_tracker::m_entries_hash): Initialize to NULL.
13326 (completion_tracker::m_lowest_common_denominator_valid): New
13327 member variable.
13328 (completion_tracker::m_lowest_common_denominator_max_length): New
13329 member variable.
13330
13331 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13332
13333 * regformats/regdef.h: Put reg in gdb namespace.
13334
13335 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13336
13337 * i386-bsd-nat.c (gdb_ptrace): New.
13338 * (i386bsd_fetch_inferior_registers,
13339 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13340 * (i386bsd_fetch_inferior_registers,
13341 i386bsd_store_inferior_registers) Use gdb_ptrace.
13342
13343 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13344
13345 * amd64-bsd-nat.c (gdb_ptrace): New.
13346 * (amd64bsd_fetch_inferior_registers,
13347 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13348 * (amd64bsd_fetch_inferior_registers,
13349 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13350
13351 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13352
13353 * user-regs.c (user_reg::read): Rename to...
13354 (user_reg::xread): ...this.
13355 * (append_user_reg): Rename argument `read' to `xread'.
13356 * (user_reg_add_builtin): Likewise.
13357 * (user_reg_add): Likewise.
13358 * (value_of_user_reg): Likewise.
13359
13360 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13361
13362 * sparc-nat.c (gdb_ptrace): New.
13363 * sparc-nat.c (sparc_fetch_inferior_registers)
13364 (sparc_store_inferior_registers) Remove obsolete comment.
13365 * sparc-nat.c (sparc_fetch_inferior_registers)
13366 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13367 * sparc-nat.c (sparc_fetch_inferior_registers)
13368 (sparc_store_inferior_registers) Use gdb_ptrace.
13369
13370 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13371
13372 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13373 it to the ptrace call.
13374 * sh-nbsd-nat.c (store_registers): Likewise.
13375
13376 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13377
13378 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13379 nbsd_nat_target instead of inf_ptrace_target.
13380 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13381 nbsd_nat_target.
13382
13383 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13384
13385 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13386
13387 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13388
13389 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13390 <sys/sysctl.h>.
13391 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13392
13393 2020-03-17 Tom de Vries <tdevries@suse.de>
13394
13395 PR gdb/23710
13396 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13397 fields.
13398 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13399 fields.
13400 (process_imported_unit_die): Skip import of c++ CUs.
13401
13402 2020-03-16 Tom Tromey <tom@tromey.com>
13403
13404 * p-valprint.c (pascal_object_print_value): Initialize
13405 base_value.
13406
13407 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13408 Shahab Vahedi <shahab@synopsys.com>
13409
13410 * Makefile.in: Add arch/arc.o
13411 * configure.tgt: Likewise.
13412 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13413 (_initialize_arc_tdep): Don't initialize old target descriptions.
13414 (arc_read_description): New function to cache target descriptions.
13415 * arc-tdep.h (arc_read_description): Add proto type.
13416 * arch/arc.c: New file.
13417 * arch/arc.h: Likewise.
13418 * features/Makefile: Replace old target descriptions with new.
13419 * features/arc-arcompact.c: Remove.
13420 * features/arc-arcompact.xml: Likewise.
13421 * features/arc-v2.c: Likewise
13422 * features/arc-v2.xml: Likewise
13423 * features/arc/aux-arcompact.xml: New file.
13424 * features/arc/aux-v2.xml: Likewise.
13425 * features/arc/core-arcompact.xml: Likewise.
13426 * features/arc/core-v2.xml: Likewise.
13427 * features/arc/aux-arcompact.c: Generate.
13428 * features/arc/aux-v2.c: Likewise.
13429 * features/arc/core-arcompact.c: Likewise.
13430 * features/arc/core-v2.c: Likewise.
13431 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13432
13433 2020-03-16 Tom Tromey <tromey@adacore.com>
13434
13435 PR gdb/25663:
13436 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13437 putting value into bcache.
13438
13439 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13440
13441 PR gdb/21500
13442 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13443 to...
13444 (amd64_windows_init_abi_common): ... this. Don't set size of
13445 long type.
13446 (amd64_windows_init_abi): New function.
13447 (amd64_cygwin_init_abi): New function.
13448 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13449 the Cygwin OS ABI.
13450 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13451 comment.
13452
13453 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13454
13455 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13456 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13457 (pe_import_directory_entry): New struct type.
13458 (is_linked_with_cygwin_dll): New function.
13459 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13460 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13461 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13462
13463 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13464
13465 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13466 i386_cygwin_core_osabi_sniffer.
13467
13468 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13469
13470 * i386-cygwin-tdep.c: Rename to...
13471 * i386-windows-tdep.c: ... this.
13472 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13473 i386-windows-tdep.c.
13474 * configure.tgt: Likewise.
13475
13476 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13477
13478 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13479 * osabi.c (gdb_osabi_names): Add "Windows".
13480 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13481 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13482 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13483 i386_cygwin_osabi_sniffer.
13484 (_initialize_i386_cygwin_tdep): Register OS ABI
13485 GDB_OSABI_WINDOWS for i386.
13486 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13487 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13488 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13489 for x86-64.
13490 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13491 when the target matches '*-*-mingw*'.
13492
13493 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13494
13495 * defs.h (enum gdb_osabi): Move to...
13496 * osabi.h (enum gdb_osabi): ... here.
13497 * gdbarch.sh: Include osabi.h in gdbarch.h.
13498 * gdbarch.h: Re-generate.
13499
13500 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13501
13502 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13503 function.
13504 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13505
13506 2020-03-14 Tom Tromey <tom@tromey.com>
13507
13508 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13509 for C++.
13510 (c_type_print_modifier): Likewise. Add "language" parameter.
13511 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13512 (c_type_print_base_1): Update.
13513 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13514 constants.
13515 * type-stack.c (type_stack::insert): Handle tp_atomic and
13516 tp_restrict.
13517 (type_stack::follow_type_instance_flags): Likewise.
13518 (type_stack::follow_types): Likewise. Merge type-following code.
13519 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13520 (space_identifier, cv_with_space_id)
13521 (const_or_volatile_or_space_identifier_noopt)
13522 (const_or_volatile_or_space_identifier): Remove.
13523 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13524 rules.
13525 (ptr_operator, typebase): Update.
13526 (enum token_flag) <FLAG_C>: New constant.
13527 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13528 "_Atomic".
13529 (lex_one_token): Handle FLAG_C.
13530
13531 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13532
13533 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13534 it to the ptrace call.
13535 * m68k-bsd-nat.c (store_registers): Likewise.
13536
13537 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13538
13539 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13540 gdb_byte *.
13541 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13542 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13543 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13544
13545 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13546
13547 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13548 nbsd_nat_target instead of inf_ptrace_target.
13549 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13550 nbsd_nat_target.
13551
13552 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13553
13554 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13555 register_t.
13556
13557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13558
13559 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13560 it to the ptrace call.
13561 * alpha-bsd-nat.c (store_registers): Likewise.
13562
13563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13564
13565 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13566 includes.
13567 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13568 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13569 fill_fpregset): Likewise.
13570
13571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13572
13573 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13574 nbsd_nat_target instead of inf_ptrace_target.
13575 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13576 nbsd_nat_target.
13577
13578 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13579
13580 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13581 register_t.
13582
13583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13584
13585 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13586 it to the ptrace call.
13587 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13588 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13589 * arm-nbsd-nat.c (store_register): Likewise.
13590 * arm-nbsd-nat.c (store_regs): Likewise.
13591 * arm-nbsd-nat.c (store_fp_register): Likewise.
13592 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13593
13594 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13595
13596 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13597 nbsd_nat_target instead of inf_ptrace_target.
13598 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13599 nbsd_nat_target.
13600
13601 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13602
13603 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13604 it to the ptrace call.
13605 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13606
13607 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13608
13609 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13610 it to the ptrace call.
13611 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13612
13613 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13614
13615 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13616 gdb_byte *.
13617 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13618
13619 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13620
13621 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13622 instead of inf_ptrace_target.
13623 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13624 nbsd_nat_target.
13625
13626 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13627
13628 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13629 register_t.
13630
13631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13632
13633 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13639 register_t.
13640
13641 2020-03-13 Tom Tromey <tom@tromey.com>
13642
13643 * value.h (val_print): Don't declare.
13644 * valprint.h (val_print_array_elements)
13645 (val_print_scalar_formatted, generic_val_print): Don't declare.
13646 * valprint.c (generic_val_print_array): Take a struct value.
13647 (generic_val_print_ptr, generic_val_print_memberptr)
13648 (generic_val_print_bool, generic_val_print_int)
13649 (generic_val_print_char, generic_val_print_complex)
13650 (generic_val_print): Remove.
13651 (generic_value_print): Update.
13652 (do_val_print): Remove unused parameters. Don't call
13653 la_val_print.
13654 (val_print): Remove.
13655 (common_val_print): Update. Don't call value_check_printable.
13656 (val_print_scalar_formatted, val_print_array_elements): Remove.
13657 * rust-lang.c (rust_val_print): Remove.
13658 (rust_language_defn): Update.
13659 * p-valprint.c (pascal_val_print): Remove.
13660 (pascal_value_print_inner): Update.
13661 (pascal_object_print_val_fields, pascal_object_print_val):
13662 Remove.
13663 (pascal_object_print_static_field): Update.
13664 * p-lang.h (pascal_val_print): Don't declare.
13665 * p-lang.c (pascal_language_defn): Update.
13666 * opencl-lang.c (opencl_language_defn): Update.
13667 * objc-lang.c (objc_language_defn): Update.
13668 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13669 * m2-lang.h (m2_val_print): Don't declare.
13670 * m2-lang.c (m2_language_defn): Update.
13671 * language.h (struct language_defn) <la_val_print>: Remove.
13672 * language.c (unk_lang_value_print_inner): Rename. Change
13673 argument types.
13674 (unknown_language_defn, auto_language_defn): Update.
13675 * go-valprint.c (go_val_print): Remove.
13676 * go-lang.h (go_val_print): Don't declare.
13677 * go-lang.c (go_language_defn): Update.
13678 * f-valprint.c (f_val_print): Remove.
13679 * f-lang.h (f_value_print): Don't declare.
13680 * f-lang.c (f_language_defn): Update.
13681 * d-valprint.c (d_val_print): Remove.
13682 * d-lang.h (d_value_print): Don't declare.
13683 * d-lang.c (d_language_defn): Update.
13684 * cp-valprint.c (cp_print_value_fields)
13685 (cp_print_value_fields_rtti, cp_print_value): Remove.
13686 (cp_print_static_field): Update.
13687 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13688 (c_val_print_struct, c_val_print_union, c_val_print_int)
13689 (c_val_print_memberptr, c_val_print): Remove.
13690 * c-lang.h (c_val_print_array, cp_print_value_fields)
13691 (cp_print_value_fields_rtti): Don't declare.
13692 * c-lang.c (c_language_defn, cplus_language_defn)
13693 (asm_language_defn, minimal_language_defn): Update.
13694 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13695 (ada_val_print_enum): Take a struct value.
13696 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13697 (ada_val_print): Remove.
13698 (ada_value_print_1): Update.
13699 (printable_val_type): Remove.
13700 * ada-lang.h (ada_val_print): Don't declare.
13701 * ada-lang.c (ada_language_defn): Update.
13702
13703 2020-03-13 Tom Tromey <tom@tromey.com>
13704
13705 * valprint.c (do_val_print): Update.
13706 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13707 a struct value.
13708 (value_to_value_object_no_release): Declare.
13709 * python/py-value.c (value_to_value_object_no_release): New
13710 function.
13711 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13712 struct value.
13713 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13714 function.
13715 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13716 a struct value.
13717 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13718 Declare.
13719 (gdbscm_apply_val_pretty_printer): Take a struct value.
13720 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13721 value.
13722 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13723 value.
13724 * extension-priv.h (struct extension_language_ops)
13725 <apply_val_pretty_printer>: Take a struct value.
13726 * cp-valprint.c (cp_print_value): Create a struct value.
13727 (cp_print_value): Update.
13728
13729 2020-03-13 Tom Tromey <tom@tromey.com>
13730
13731 * ada-valprint.c (print_field_values): Call common_val_print.
13732
13733 2020-03-13 Tom Tromey <tom@tromey.com>
13734
13735 * ada-valprint.c (val_print_packed_array_elements): Remove
13736 bitoffset and val parameters. Call common_val_print.
13737 (ada_val_print_string): Remove offset, address, and original_value
13738 parameters.
13739 (ada_val_print_array): Update.
13740 (ada_value_print_array): New function.
13741 (ada_value_print_1): Call it.
13742
13743 2020-03-13 Tom Tromey <tom@tromey.com>
13744
13745 * ada-valprint.c (ada_value_print): Use common_val_print.
13746
13747 2020-03-13 Tom Tromey <tom@tromey.com>
13748
13749 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13750
13751 2020-03-13 Tom Tromey <tom@tromey.com>
13752
13753 * ada-valprint.c (ada_value_print_num): New function.
13754 (ada_value_print_1): Use it.
13755
13756 2020-03-13 Tom Tromey <tom@tromey.com>
13757
13758 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13759
13760 2020-03-13 Tom Tromey <tom@tromey.com>
13761
13762 * ada-valprint.c (ada_value_print_ptr): New function.
13763 (ada_value_print_1): Use it.
13764
13765 2020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13768 call common_val_print.
13769 (ada_val_print_1): Update.
13770 (ada_value_print_1): New function.
13771 (ada_value_print_inner): Rewrite.
13772
13773 2020-03-13 Tom Tromey <tom@tromey.com>
13774
13775 * cp-valprint.c (cp_print_value_fields): Update.
13776 (cp_print_value): New function.
13777
13778 2020-03-13 Tom Tromey <tom@tromey.com>
13779
13780 * m2-valprint.c (m2_value_print_inner): Use
13781 cp_print_value_fields.
13782 * cp-valprint.c (cp_print_value_fields): New function.
13783 * c-valprint.c (c_value_print_struct): New function.
13784 (c_value_print_inner): Use c_value_print_struct.
13785 * c-lang.h (cp_print_value_fields): Declare.
13786
13787 2020-03-13 Tom Tromey <tom@tromey.com>
13788
13789 * c-valprint.c (c_value_print_array): New function.
13790 (c_value_print_inner): Use it.
13791
13792 2020-03-13 Tom Tromey <tom@tromey.com>
13793
13794 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
13810
13811 2020-03-13 Tom Tromey <tom@tromey.com>
13812
13813 * valprint.c (generic_value_print_complex): New function.
13814 (generic_value_print): Use it.
13815
13816 2020-03-13 Tom Tromey <tom@tromey.com>
13817
13818 * valprint.c (generic_val_print_float): Don't call
13819 val_print_scalar_formatted.
13820 (generic_val_print, generic_value_print): Update.
13821
13822 2020-03-13 Tom Tromey <tom@tromey.com>
13823
13824 * valprint.c (generic_value_print_char): New function
13825 (generic_value_print): Use it.
13826
13827 2020-03-13 Tom Tromey <tom@tromey.com>
13828
13829 * valprint.c (generic_value_print_int): 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_bool): New function.
13835 (generic_value_print): Use it.
13836
13837 2020-03-13 Tom Tromey <tom@tromey.com>
13838
13839 * valprint.c (generic_val_print_func): Simplify.
13840 (generic_val_print, generic_value_print): Update.
13841
13842 2020-03-13 Tom Tromey <tom@tromey.com>
13843
13844 * valprint.c (generic_val_print_flags): Remove.
13845 (generic_val_print, generic_value_print): Update.
13846 (val_print_type_code_flags): Add original_value parameter.
13847
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * valprint.c (generic_val_print): Update.
13851 (generic_value_print): Update.
13852 * valprint.c (generic_val_print_enum): Don't call
13853 val_print_scalar_formatted.
13854
13855 2020-03-13 Tom Tromey <tom@tromey.com>
13856
13857 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13858 * valprint.c (generic_value_print_ptr): New function.
13859
13860 2020-03-13 Tom Tromey <tom@tromey.com>
13861
13862 * valprint.c (generic_value_print): Rewrite.
13863
13864 2020-03-13 Tom Tromey <tom@tromey.com>
13865
13866 * p-valprint.c (pascal_object_print_value_fields)
13867 (pascal_object_print_value): New functions.
13868
13869 2020-03-13 Tom Tromey <tom@tromey.com>
13870
13871 * p-valprint.c (pascal_value_print_inner): Rewrite.
13872
13873 2020-03-13 Tom Tromey <tom@tromey.com>
13874
13875 * f-valprint.c (f_value_print_innner): Rewrite.
13876
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13878
13879 * m2-valprint.c (m2_print_unbounded_array): New overload.
13880 (m2_print_unbounded_array): Update.
13881 (m2_print_array_contents): Take a struct value.
13882 (m2_value_print_inner): Rewrite.
13883
13884 2020-03-13 Tom Tromey <tom@tromey.com>
13885
13886 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13887 (d_value_print_inner): New function.
13888 * d-lang.h (d_value_print_inner): Declare.
13889 * d-lang.c (d_language_defn): Use d_value_print_inner.
13890
13891 2020-03-13 Tom Tromey <tom@tromey.com>
13892
13893 * go-valprint.c (go_value_print_inner): New function.
13894 * go-lang.h (go_value_print_inner): Declare.
13895 * go-lang.c (go_language_defn): Use go_value_print_inner.
13896
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13898
13899 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13900 API.
13901 (rust_val_print): Rewrite.
13902 (rust_value_print_inner): New function, from rust_val_print.
13903 (rust_language_defn): Use rust_value_print_inner.
13904
13905 2020-03-13 Tom Tromey <tom@tromey.com>
13906
13907 * ada-valprint.c (ada_value_print_inner): New function.
13908 * ada-lang.h (ada_value_print_inner): Declare.
13909 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13910
13911 2020-03-13 Tom Tromey <tom@tromey.com>
13912
13913 * f-valprint.c (f_value_print_innner): New function.
13914 * f-lang.h (f_value_print_innner): Declare.
13915 * f-lang.c (f_language_defn): Use f_value_print_innner.
13916
13917 2020-03-13 Tom Tromey <tom@tromey.com>
13918
13919 * p-valprint.c (pascal_value_print_inner): New function.
13920 * p-lang.h (pascal_value_print_inner): Declare.
13921 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13922
13923 2020-03-13 Tom Tromey <tom@tromey.com>
13924
13925 * m2-valprint.c (m2_value_print_inner): New function.
13926 * m2-lang.h (m2_value_print_inner): Declare.
13927 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13928
13929 2020-03-13 Tom Tromey <tom@tromey.com>
13930
13931 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13932 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13933 * c-valprint.c (c_value_print_inner): New function.
13934 * c-lang.h (c_value_print_inner): Declare.
13935 * c-lang.c (c_language_defn, cplus_language_defn)
13936 (asm_language_defn, minimal_language_defn): Use
13937 c_value_print_inner.
13938
13939 2020-03-13 Tom Tromey <tom@tromey.com>
13940
13941 * p-valprint.c (pascal_object_print_value_fields): Now static.
13942 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13943
13944 2020-03-13 Tom Tromey <tom@tromey.com>
13945
13946 * c-valprint.c (c_val_print_array): Simplify.
13947
13948 2020-03-13 Tom Tromey <tom@tromey.com>
13949
13950 * valprint.c (value_print_array_elements): New function.
13951 * valprint.h (value_print_array_elements): Declare.
13952
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13954
13955 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13956 * mips-tdep.c (mips_print_register): Use
13957 value_print_scalar_formatted.
13958
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13960
13961 * valprint.h (value_print_scalar_formatted): Declare.
13962 * valprint.c (value_print_scalar_formatted): New function.
13963
13964 2020-03-13 Tom Tromey <tom@tromey.com>
13965
13966 * valprint.h (generic_value_print): Declare.
13967 * valprint.c (generic_value_print): New function.
13968
13969 2020-03-13 Tom Tromey <tom@tromey.com>
13970
13971 * valprint.c (do_val_print): Call la_value_print_inner, if
13972 available.
13973 * rust-lang.c (rust_language_defn): Update.
13974 * p-lang.c (pascal_language_defn): Update.
13975 * opencl-lang.c (opencl_language_defn): Update.
13976 * objc-lang.c (objc_language_defn): Update.
13977 * m2-lang.c (m2_language_defn): Update.
13978 * language.h (struct language_defn) <la_value_print_inner>: New
13979 member.
13980 * language.c (unknown_language_defn, auto_language_defn): Update.
13981 * go-lang.c (go_language_defn): Update.
13982 * f-lang.c (f_language_defn): Update.
13983 * d-lang.c (d_language_defn): Update.
13984 * c-lang.c (c_language_defn, cplus_language_defn)
13985 (asm_language_defn, minimal_language_defn): Update.
13986 * ada-lang.c (ada_language_defn): Update.
13987
13988 2020-03-13 Tom Tromey <tom@tromey.com>
13989
13990 * c-valprint.c (c_value_print): Use common_val_print.
13991
13992 2020-03-13 Tom Tromey <tom@tromey.com>
13993
13994 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13995
13996 2020-03-13 Tom Tromey <tom@tromey.com>
13997
13998 * f-valprint.c (f77_print_array_1, f_val_print): Use
13999 common_val_print.
14000
14001 2020-03-13 Tom Tromey <tom@tromey.com>
14002
14003 * riscv-tdep.c (riscv_print_one_register_info): Use
14004 common_val_print.
14005
14006 2020-03-13 Tom Tromey <tom@tromey.com>
14007
14008 * mi/mi-main.c (output_register): Use common_val_print.
14009
14010 2020-03-13 Tom Tromey <tom@tromey.com>
14011
14012 * infcmd.c (default_print_one_register_info): Use
14013 common_val_print.
14014
14015 2020-03-13 Tom Tromey <tom@tromey.com>
14016
14017 * valprint.h (common_val_print_checked): Declare.
14018 * valprint.c (common_val_print_checked): New function.
14019 * stack.c (print_frame_arg): Use common_val_print_checked.
14020
14021 2020-03-13 Tom Tromey <tom@tromey.com>
14022
14023 * valprint.c (do_val_print): New function, from val_print.
14024 (val_print): Use do_val_print.
14025 (common_val_print): Use do_val_print.
14026
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14028
14029 * valprint.c (value_print): Use scoped_value_mark.
14030
14031 2020-03-13 Tom de Vries <tdevries@suse.de>
14032
14033 PR symtab/25646
14034 * psymtab.c (partial_symtab::partial_symtab): Don't set
14035 globals_offset and statics_offset. Push element onto
14036 current_global_psymbols and current_static_psymbols stacks.
14037 (concat): New function.
14038 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14039 element from current_global_psymbols and current_static_psymbols
14040 stacks. Concat popped elements to global_psymbols and
14041 static_symbols.
14042 (add_psymbol_to_list): Use current_global_psymbols and
14043 current_static_psymbols stacks.
14044 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14045 current_static_psymbols fields.
14046
14047 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14048
14049 * corelow.c (sniff_core_bfd): Remove.
14050 (class core_target) <m_core_vec>: Remove.
14051 (core_target::core_target): Update.
14052 (core_file_fns): Remove.
14053 (deprecated_add_core_fns): Remove.
14054 (default_core_sniffer): Remove.
14055 (sniff_core_bfd): Remove.
14056 (default_check_format): Remove.
14057 (gdb_check_format): Remove.
14058 (core_target_open): Update.
14059 (core_target::get_core_register_section): Update.
14060 (get_core_registers_cb): Update.
14061 (core_target::fetch_registers): Update.
14062 * gdbcore.h (struct core_fns): Remove.
14063 (deprecated_add_core_fns): Remove.
14064 (default_core_sniffer): Remove.
14065 (default_check_format): Remove.
14066
14067 2020-03-12 Tom Tromey <tom@tromey.com>
14068
14069 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14070 CORE_ADDR.
14071 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14072
14073 2020-03-12 Tom Tromey <tom@tromey.com>
14074
14075 * remote.c (remote_target::download_tracepoint)
14076 (remote_target::enable_tracepoint)
14077 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14078 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14079 sprintf_vma.
14080
14081 2020-03-12 Tom Tromey <tom@tromey.com>
14082
14083 * symfile-mem.c: Update CORE_ADDR size assert.
14084
14085 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14086
14087 * selftest.m4: Move to gdbsupport/.
14088 * acinclude.m4: Update path to selftest.m4.
14089
14090 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14091
14092 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14093 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14094 gdbarch-selfselftests.c and selftest-arch.c.
14095 (SUBDIR_UNITTESTS_OBS): Rename to...
14096 (SELFTESTS_OBS): ... this.
14097 (COMMON_SFILES): Remove disasm-selftests.c and
14098 gdbarch-selftests.c.
14099 * configure.ac: Don't add selftest-arch.{c,o} to
14100 CONFIG_{SRCS,OBS}.
14101 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14102 preprocessor conditions.
14103
14104 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14105
14106 * configure.ac: Don't source bfd/development.sh.
14107 * selftest.m4: Modify comment.
14108 * configure: Re-generate.
14109
14110 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14113 not "true" or "false".
14114 * configure: Re-generate.
14115
14116 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14117
14118 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14119 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14120 renamed to arm_nbsd_supply_gregset.
14121 (fetch_register): Update to call arm_nbsd_supply_gregset.
14122 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14123 (arm_netbsd_nat_target::fetch_registers): Update.
14124 (fetch_elfcore_registers): Removed.
14125 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14126 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14127 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14128 not require NetBSD system headers.
14129 (arm_nbsd_regset): New struct.
14130 (arm_nbsd_iterate_over_regset_sections): New function.
14131 (arm_netbsd_init_abi_common): Updated to call
14132 set_gdbarch_iterate_over_regset_sections.
14133 * arm-nbsd-tdep.h: New file.
14134
14135 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14136
14137 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14138 recursion.
14139
14140 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14141
14142 * configure: Re-generate.
14143
14144 2020-03-11 Tom Tromey <tromey@adacore.com>
14145
14146 * ada-typeprint.c (print_choices): Fix comment.
14147
14148 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14149
14150 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14151 previous item in the list, when the list has no items.
14152
14153 2020-03-11 Tom de Vries <tdevries@suse.de>
14154
14155 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14156 PROP_LOCLIST handling code.
14157
14158 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14159
14160 * buildsym-legacy.c (record_line): Pass extra parameter to
14161 record_line.
14162 * buildsym.c (buildsym_compunit::record_line): Take an extra
14163 parameter, reduce duplication in the line table, and record the
14164 is_stmt flag in the line table.
14165 * buildsym.h (buildsym_compunit::record_line): Add extra
14166 parameter.
14167 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14168 non-statement lines.
14169 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14170 this to the symtab builder.
14171 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14172 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14173 through to dwarf_record_line_1.
14174 * infrun.c (process_event_stop_test): When stepping, don't stop at
14175 a non-statement instruction, and only refresh the step info when
14176 we land in the middle of a line's range. Also add an extra
14177 comment.
14178 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14179 field.
14180 * record-btrace.c (btrace_find_line_range): Only record lines
14181 marked as is-statement.
14182 * stack.c (frame_show_address): Show the frame address if we are
14183 in a non-statement sal.
14184 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14185 (maintenance_print_one_line_table): Print a header for the is_stmt
14186 column, and include is_stmt information in the output.
14187 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14188 preference to non-statements.
14189 (find_pcs_for_symtab_line): Prefer is-statement entries.
14190 (find_line_common): Likewise.
14191 * symtab.h (struct linetable_entry): Add is_stmt field.
14192 (struct symtab_and_line): Likewise.
14193 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14194 arranging the line table.
14195
14196 2020-03-07 Tom de Vries <tdevries@suse.de>
14197
14198 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14199 DIE.
14200
14201 2020-03-07 Tom Tromey <tom@tromey.com>
14202
14203 * valops.c (value_literal_complex): Remove obsolete comment.
14204 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14205 comment.
14206
14207 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14208
14209 * infrun.h: Forward-declare thread_info.
14210 (set_step_info): Add thread_info parameter, add doc.
14211 * infrun.c (set_step_info): Add thread_info parameter, move doc
14212 to header.
14213 * infrun.c (process_event_stop_test): Pass thread to
14214 set_step_info call.
14215 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14216 set_step_info.
14217 (prepare_one_step): Add thread_info parameter, pass it to
14218 set_step_frame and prepare_one_step (recursive) call.
14219 (step_1): Pass thread to prepare_one_step call.
14220 (step_command_fsm::should_stop): Pass thread to
14221 prepare_one_step.
14222 (until_next_fsm): Pass thread to set_step_frame call.
14223 (finish_command): Pass thread to set_step_info call.
14224
14225 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14226
14227 * windows-tdep.c (windows_solib_create_inferior_hook):
14228 Check if inferior is running.
14229
14230 2020-03-06 Tom de Vries <tdevries@suse.de>
14231
14232 * NEWS: Fix "the the".
14233 * ctfread.c: Same.
14234
14235 2020-03-06 Tom de Vries <tdevries@suse.de>
14236
14237 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14238
14239 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14240
14241 * .dir-locals.el: Add a comment referencing the other copies of
14242 this file.
14243
14244 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14245
14246 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14247 psargs.
14248
14249 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14250
14251 * .gitattributes: New file.
14252
14253 2020-03-04 Tom Tromey <tom@tromey.com>
14254
14255 * symmisc.c (print_symbol_bcache_statistics)
14256 (print_objfile_statistics): Update.
14257 * symfile.c (allocate_symtab): Use intern.
14258 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14259 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14260 macro_cache>: Remove.
14261 <string_cache>: New member.
14262 (struct objfile) <intern>: New methods.
14263 * elfread.c (elf_symtab_read): Use intern.
14264 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14265 (dwarf2_compute_name, dwarf2_physname)
14266 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14267 names.
14268 (guess_partial_die_structure_name): Update.
14269 (partial_die_info::fixup): Intern name.
14270 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14271 name.
14272 (dwarf2_name): Intern name. Update.
14273 * buildsym.c (buildsym_compunit::get_macro_table): Use
14274 string_cache.
14275
14276 2020-03-04 Tom Tromey <tom@tromey.com>
14277
14278 * jit.c (bfd_open_from_target_memory): Make "target" const.
14279 * corefile.c (gnutarget): Now const.
14280 * gdbcore.h (gnutarget): Now const.
14281
14282 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14283
14284 * NEWS: Mention support for WOW64 processes.
14285 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14286 (amd64_windows_segment_register_p): Remove static.
14287 (_initialize_amd64_windows_nat): Update.
14288 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14289 * i386-windows-nat.c (context_offset): Update.
14290 (i386_mappings): Rename and remove static.
14291 (i386_windows_segment_register_p): Remove static.
14292 (_initialize_i386_windows_nat): Update.
14293 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14294 (STATUS_WX86_SINGLE_STEP): New macro.
14295 (EnumProcessModulesEx): New macro.
14296 (Wow64SuspendThread): New macro.
14297 (Wow64GetThreadContext): New macro.
14298 (Wow64SetThreadContext): New macro.
14299 (Wow64GetThreadSelectorEntry): New macro.
14300 (windows_set_context_register_offsets): Add static.
14301 (windows_set_segment_register_p): Likewise.
14302 (windows_add_thread): Adapt for WOW64 processes.
14303 (windows_fetch_one_register): Likewise.
14304 (windows_nat_target::fetch_registers): Likewise.
14305 (windows_store_one_register): Likewise.
14306 (display_selector): Likewise.
14307 (display_selectors): Likewise.
14308 (handle_exception): Likewise.
14309 (windows_continue): Likewise.
14310 (windows_nat_target::resume): Likewise.
14311 (windows_add_all_dlls): Likewise.
14312 (do_initial_windows_stuff): Likewise.
14313 (windows_nat_target::attach): Likewise.
14314 (windows_get_exec_module_filename): Likewise.
14315 (windows_nat_target::create_inferior): Likewise.
14316 (windows_xfer_siginfo): Likewise.
14317 (_initialize_loadable): Initialize Wow64SuspendThread,
14318 Wow64GetThreadContext, Wow64SetThreadContext,
14319 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14320 * windows-nat.h (windows_set_context_register_offsets):
14321 Remove declaration.
14322 (windows_set_segment_register_p): Likewise.
14323 (i386_windows_segment_register_p): Add declaration.
14324 (amd64_windows_segment_register_p): Likewise.
14325
14326 2020-03-04 Luis Machado <luis.machado@linaro.org>
14327
14328 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14329 in "info registers" for AArch64/ARM.
14330
14331 The change caused "info registers" to not print GPR's.
14332
14333 gdb/ChangeLog:
14334
14335 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14336
14337 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14338 when reg->group is empty and reggroup is not.
14339
14340 2020-03-03 Tom Tromey <tromey@adacore.com>
14341
14342 * dwarf2/frame.c (struct dwarf2_frame_cache)
14343 <checked_tailcall_bottom, entry_cfa_sp_offset,
14344 entry_cfa_sp_offset_p>: Remove members.
14345 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14346 (dwarf2_frame_prev_register): Don't call
14347 dwarf2_tailcall_sniffer_first.
14348 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14349 * frame-unwind.c (add_unwinder): New fuction.
14350 (frame_unwind_init): Use it. Add tailcall unwinder.
14351
14352 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14353 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14354
14355 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14356 value should be printed as true.
14357
14358 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14359
14360 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14361 (windows_init_abi): Set and use windows_so_ops.
14362
14363 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14364
14365 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14366 when verifying if dealing with a convenience variable.
14367
14368 2020-03-03 Luis Machado <luis.machado@linaro.org>
14369
14370 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14371
14372 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14373
14374 * infrun.c (gdbarch_supports_displaced_stepping): New.
14375 (use_displaced_stepping): Break up conditions in smaller pieces.
14376 Use gdbarch_supports_displaced_stepping.
14377 (displaced_step_prepare_throw): Use
14378 gdbarch_supports_displaced_stepping.
14379
14380 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14381
14382 * NEWS: Mention new behaviour of the history filename.
14383 * top.c (write_history_p): Add comment.
14384 (show_write_history_p): Add header comment, give a different
14385 message when history writing is on, but the history filename is
14386 empty.
14387 (history_filename): Add comment.
14388 (history_filename_empty): New function.
14389 (show_history_filename): Add header comment, give a different
14390 message when the filename is empty.
14391 (init_history): Compare history_filename against nullptr, and only
14392 read history if the filename is not empty.
14393 (set_history_filename): Add header comment, and only make
14394 non-empty filenames absolute.
14395 (init_main): Make the filename argument to 'set history filename'
14396 optional.
14397
14398 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14399
14400 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14401 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14402 (fetch_fp_register): Update.
14403 (fetch_fp_regs): Update.
14404 (store_fp_register): Update.
14405 (store_fp_regs): Update.
14406 (arm_netbsd_nat_target::read_description): New function.
14407 (fetch_elfcore_registers): Update.
14408
14409 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14410
14411 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14412 general_thread if the stop reply is missing a thread-id.
14413 (remote_target::process_stop_reply): Use the first non-exited
14414 thread if the target didn't pass a thread-id.
14415 * infrun.c (do_target_wait): Move call to
14416 switch_to_inferior_no_thread to ....
14417 (do_target_wait_1): ... here.
14418
14419 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14420
14421 * debuginfod-support.c: Include defs.h first.
14422
14423 2020-02-28 Tom de Vries <tdevries@suse.de>
14424
14425 * symfile.c (set_initial_language): Use default language for lookup.
14426
14427 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14428
14429 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14430 reader variable, pass `this` to read_cutu_die_from_dwo.
14431
14432 2020-02-27 Aaron Merey <amerey@redhat.com>
14433
14434 * source.c (open_source_file): Check for nullptr when computing
14435 srcpath.
14436
14437 2020-02-27 Tom Tromey <tromey@adacore.com>
14438
14439 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14440 member.
14441 (dwarf2_add_field): Don't update nfields.
14442 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14443
14444 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14445
14446 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14447 abs.
14448
14449 2020-02-26 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14452 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14453 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14454 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14455 per_cu_data.
14456
14457 2020-02-26 Tom Tromey <tom@tromey.com>
14458
14459 * dwarf2/index-write.c (psym_index_map): Change type.
14460 (add_address_entry_worker, write_one_signatured_type)
14461 (recursively_count_psymbols, recursively_write_psymbols)
14462 (class debug_names, psyms_seen_size, write_gdbindex)
14463 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14464
14465 2020-02-26 Aaron Merey <amerey@redhat.com>
14466
14467 * Makefile.in: Handle optional debuginfod support.
14468 * NEWS: Update.
14469 * README: Add --with-debuginfod summary.
14470 * config.in: Regenerate.
14471 * configure: Regenerate.
14472 * configure.ac: Handle optional debuginfod support.
14473 * debuginfod-support.c: debuginfod helper functions.
14474 * debuginfod-support.h: Ditto.
14475 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14476 summary.
14477 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14478 when a dwz file cannot be found.
14479 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14480 debuginfo file cannot be found.
14481 * source.c (open_source_file): Query debuginfod servers when a
14482 source file cannot be found.
14483 * top.c (print_gdb_configuration): Include
14484 --{with,without}-debuginfod in the output.
14485
14486 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14487
14488 * thread.c (thr_try_catch_cmd): Print thread name.
14489
14490 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14491
14492 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14493 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14494 dwarf2_fetch_die_type_sect_off): Move to...
14495 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14496 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14497 dwarf2_fetch_die_type_sect_off): ... here.
14498 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14499 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14500 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14501
14502 2020-02-26 Tom de Vries <tdevries@suse.de>
14503
14504 PR gdb/25603
14505 * symfile.c (set_initial_language): Exit-early if
14506 language_mode == language_mode_manual.
14507
14508 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14509
14510 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14511 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14512 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14513
14514 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14515
14516 * gdbtypes.c (create_array_type_with_stride): Handle negative
14517 array strides.
14518 * valarith.c (value_subscripted_rvalue): Likewise.
14519
14520 2020-02-25 Luis Machado <luis.machado@linaro.org>
14521
14522 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14523
14524 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14525
14526 * loc.h (dwarf2_get_die_type): Move to...
14527 * read.h (dwarf2_get_die_type): ... here.
14528 * read.c (dwarf2_get_die_type): Move doc to header.
14529
14530 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14531
14532 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14533 'gnulib/Makefile.in' to the list.
14534
14535 2020-02-24 Tom Tromey <tom@tromey.com>
14536
14537 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14538 Remove.
14539 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14540 XOBNEWVEC.
14541
14542 2020-02-24 Tom Tromey <tom@tromey.com>
14543
14544 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14545 New method.
14546 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14547 (dw2_do_instantiate_symtab, dw2_get_file_names)
14548 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14549
14550 2020-02-24 Tom Tromey <tom@tromey.com>
14551
14552 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14553 make_scoped_restore.
14554 (dwarf2_psymtab::read_symtab): Don't clear
14555 reading_partial_symbols.
14556
14557 2020-02-24 Tom de Vries <tdevries@suse.de>
14558
14559 PR gdb/25592
14560 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14561
14562 2020-02-24 Tom de Vries <tdevries@suse.de>
14563
14564 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14565 commands layout next/prev/regs.
14566
14567 2020-02-22 Tom Tromey <tom@tromey.com>
14568
14569 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14570 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14571
14572 2020-02-22 Tom Tromey <tom@tromey.com>
14573
14574 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14575
14576 2020-02-22 Tom Tromey <tom@tromey.com>
14577
14578 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14579 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14580 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14581 * tui/tui.c (_initialize_tui): Add usage text.
14582
14583 2020-02-22 Tom Tromey <tom@tromey.com>
14584
14585 * tui/tui-win.c (tui_set_focus_command)
14586 (tui_set_win_height_command): Use error_no_arg.
14587 (_initialize_tui_win): Update help text.
14588 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14589
14590 2020-02-22 Tom Tromey <tom@tromey.com>
14591
14592 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14593 * tui/tui-disasm.h (struct tui_disasm_window)
14594 <display_start_addr>: Declare.
14595 * tui/tui-source.h (struct tui_source_window)
14596 <display_start_addr>: Declare.
14597 * tui/tui-winsource.h (struct tui_source_window_base)
14598 <show_source_line, display_start_addr>: New methods.
14599 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14600 Rename and move to protected section.
14601 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14602 (tui_source_window_base::do_erase_source_content): Update.
14603 (tui_source_window_base::show_source_line): Now a method.
14604 (tui_source_window_base::show_source_content)
14605 (tui_source_window_base::tui_source_window_base)
14606 (tui_source_window_base::rerender)
14607 (tui_source_window_base::refill)
14608 (tui_source_window_base::do_scroll_horizontal)
14609 (tui_source_window_base::set_is_exec_point_at)
14610 (tui_source_window_base::update_breakpoint_info)
14611 (tui_source_window_base::update_exec_info): Update.
14612 * tui/tui-source.c (tui_source_window::set_contents)
14613 (tui_source_window::showing_source_p)
14614 (tui_source_window::do_scroll_vertical)
14615 (tui_source_window::location_matches_p)
14616 (tui_source_window::line_is_displayed): Update.
14617 (tui_source_window::display_start_addr): New method.
14618 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14619 (tui_disasm_window::do_scroll_vertical)
14620 (tui_disasm_window::location_matches_p): Update.
14621 (tui_disasm_window::display_start_addr): New method.
14622
14623 2020-02-22 Tom Tromey <tom@tromey.com>
14624
14625 * NEWS: Add entry for gdb.register_window_type.
14626 * tui/tui-layout.h (window_factory): New typedef.
14627 (tui_register_window): Declare.
14628 * tui/tui-layout.c (saved_tui_windows): New global.
14629 (tui_apply_current_layout): Use it.
14630 (tui_register_window): New function.
14631 * python/python.c (do_start_initialization): Call
14632 gdbpy_initialize_tui.
14633 (python_GdbMethods): Add "register_window_type" function.
14634 * python/python-internal.h (gdbpy_register_tui_window)
14635 (gdbpy_initialize_tui): Declare.
14636 * python/py-tui.c: New file.
14637 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14638
14639 2020-02-22 Tom Tromey <tom@tromey.com>
14640
14641 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14642
14643 2020-02-22 Tom Tromey <tom@tromey.com>
14644
14645 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14646 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14647 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14648 (tui_set_win_focus_to): Move from tui-win.c.
14649
14650 2020-02-22 Tom Tromey <tom@tromey.com>
14651
14652 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14653 functions.
14654 (known_window_types): New global.
14655 (tui_get_window_by_name): Reimplement.
14656 (initialize_known_windows): New function.
14657 (validate_window_name): Rewrite.
14658 (_initialize_tui_layout): Call initialize_known_windows.
14659
14660 2020-02-22 Tom Tromey <tom@tromey.com>
14661
14662 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14663 Remove constants.
14664 * tui/tui-winsource.h (struct tui_source_window_base)
14665 <tui_source_window_base>: Remove parameter.
14666 * tui/tui-winsource.c
14667 (tui_source_window_base::tui_source_window_base): Remove
14668 parameter.
14669 (tui_source_window_base::refill): Update.
14670 * tui/tui-stack.h (struct tui_locator_window)
14671 <tui_locator_window>: Update.
14672 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14673 Default the constructor.
14674 * tui/tui-regs.h (struct tui_data_item_window)
14675 <tui_data_item_window>: Default the constructor.
14676 (struct tui_data_window) <tui_data_window>: Likewise.
14677 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14678 Default the constructor.
14679 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14680 Default the constructor.
14681 <type>: Remove.
14682 (struct tui_win_info) <tui_win_info>: Default the constructor.
14683 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14684 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14685 Default the constructor.
14686
14687 2020-02-22 Tom Tromey <tom@tromey.com>
14688
14689 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14690 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14691 * tui/tui-win.c (tui_resize_all): Don't call
14692 tui_delete_invisible_windows.
14693 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14694 done.
14695 (tui_set_layout): Update.
14696 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14697 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14698 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14699
14700 2020-02-22 Tom Tromey <tom@tromey.com>
14701
14702 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14703 correctly.
14704
14705 2020-02-22 Tom Tromey <tom@tromey.com>
14706
14707 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14708
14709 2020-02-22 Tom Tromey <tom@tromey.com>
14710
14711 * tui/tui-winsource.h (struct tui_source_window_iterator)
14712 <inner_iterator>: New etytypedef.
14713 <tui_source_window_iterator>: Take "end" parameter.
14714 <tui_source_window_iterator>: Take iterator.
14715 <operator*, advance>: Update.
14716 <m_iter>: Change type.
14717 <m_end>: New field.
14718 (struct tui_source_windows) <begin, end>: Update.
14719 * tui/tui-layout.c (tui_windows): New global.
14720 (tui_apply_current_layout): Clear tui_windows.
14721 (tui_layout_window::apply): Update tui_windows.
14722 * tui/tui-data.h (tui_windows): Declare.
14723 (all_tui_windows): Now inline function.
14724 (class tui_window_iterator, struct all_tui_windows): Remove.
14725
14726 2020-02-22 Tom Tromey <tom@tromey.com>
14727
14728 PR tui/17850:
14729 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14730 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14731 "height" argument.
14732 (class tui_layout_window) <get_sizes>: Likewise.
14733 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14734 argument.
14735 <get_sizes>: Add "height" argument.
14736 <m_vertical>: New field.
14737 * tui/tui-layout.c (tui_layout_split::clone): Update.
14738 (tui_layout_split::get_sizes): Add "height" argument.
14739 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14740 (tui_new_layout_command): Parse "-horizontal".
14741 (_initialize_tui_layout): Update help string.
14742 (tui_layout_split::specification): Add "-horizontal" when needed.
14743 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14744 argument.
14745 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14746 New methods.
14747
14748 2020-02-22 Tom Tromey <tom@tromey.com>
14749
14750 * tui/tui-layout.h (enum tui_adjust_result): New.
14751 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14752 (class tui_layout_window) <adjust_size>: Return
14753 tui_adjust_result. Rewrite.
14754 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14755 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14756
14757 2020-02-22 Tom Tromey <tom@tromey.com>
14758
14759 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14760 parameter and return types.
14761 (class tui_layout_base) <specification>: Add "depth".
14762 (class tui_layout_window) <specification>: Add "depth".
14763 (class tui_layout_split) <specification>: Add "depth".
14764 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14765 and return types.
14766 (tui_new_layout_command): Parse sub-layouts.
14767 (_initialize_tui_layout): Update help string.
14768 (tui_layout_window::specification): Add "depth".
14769 (add_layout_command): Update.
14770
14771 2020-02-22 Tom Tromey <tom@tromey.com>
14772
14773 * NEWS: Add "tui new-layout" item.
14774 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14775 Add new-layout command to help text.
14776 (validate_window_name): New function.
14777 (tui_new_layout_command): New function.
14778 (_initialize_tui_layout): Register "new-layout".
14779 (tui_layout_window::specification): New method.
14780 (tui_layout_window::specification): New method.
14781 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14782 method.
14783 (class tui_layout_window) <specification>: New method.
14784 (class tui_layout_split) <specification>: New method.
14785
14786 2020-02-22 Tom Tromey <tom@tromey.com>
14787
14788 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14789 * tui/tui-win.c (window_name_completer): Update comment.
14790 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14791 Declare method.
14792 (class tui_layout_window) <replace_window>: Likewise.
14793 (class tui_layout_split) <replace_window>: Likewise.
14794 (tui_set_layout): Don't declare.
14795 (tui_set_initial_layout): Declare function.
14796 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14797 (asm_regs_layout): New globals.
14798 (tui_current_layout, show_layout): Remove.
14799 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14800 (find_layout, tui_apply_layout): New function.
14801 (layout_completer): Remove.
14802 (tui_next_layout): Reimplement.
14803 (tui_next_layout_command): New function.
14804 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14805 (tui_regs_layout): Reimplement.
14806 (tui_regs_layout_command): New function.
14807 (extract_display_start_addr): Rewrite.
14808 (next_layout, prev_layout): Remove.
14809 (tui_layout_window::replace_window): New method.
14810 (tui_layout_split::replace_window): New method.
14811 (destroy_layout): New function.
14812 (layout_list): New global.
14813 (add_layout_command): New function.
14814 (initialize_layouts): Update.
14815 (tui_layout_command): New function.
14816 (_initialize_tui_layout): Install "layout" commands.
14817 * tui/tui-data.h (enum tui_layout_type): Remove.
14818 (tui_current_layout): Don't declare.
14819
14820 2020-02-22 Tom Tromey <tom@tromey.com>
14821
14822 * tui/tui-regs.c (tui_reg_layout): Remove.
14823 (tui_reg_command): Use tui_regs_layout.
14824 * tui/tui-layout.h (tui_reg_command): Declare.
14825 * tui/tui-layout.c (tui_reg_command): New function.
14826
14827 2020-02-22 Tom Tromey <tom@tromey.com>
14828
14829 * tui/tui.c (tui_rl_delete_other_windows): Call
14830 tui_remove_some_windows.
14831 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14832 Declare method.
14833 (class tui_layout_window) <remove_windows>: New method.
14834 (class tui_layout_split) <remove_windows>: Declare.
14835 (tui_remove_some_windows): Declare.
14836 * tui/tui-layout.c (tui_remove_some_windows): New function.
14837 (tui_layout_split::remove_windows): New method.
14838
14839 2020-02-22 Tom Tromey <tom@tromey.com>
14840
14841 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14842 * tui/tui-layout.h (tui_next_layout): Declare.
14843 * tui/tui-layout.c (tui_next_layout): New function.
14844
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14846
14847 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14848 correct coordinates.
14849
14850 2020-02-22 Tom Tromey <tom@tromey.com>
14851
14852 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14853 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14854 DATA_WIN case.
14855
14856 2020-02-22 Tom Tromey <tom@tromey.com>
14857
14858 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14859 TUI_DISASM_WIN, not tui_win_list.
14860
14861 2020-02-22 Tom Tromey <tom@tromey.com>
14862
14863 * valprint.c (generic_val_print_enum_1)
14864 (val_print_type_code_flags): Style member names.
14865 * rust-lang.c (val_print_struct, rust_print_enum)
14866 (rust_print_struct_def, rust_internal_print_type): Style member
14867 names.
14868 * p-valprint.c (pascal_object_print_value_fields): Style member
14869 names. Only call fprintf_symbol_filtered for static members.
14870 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14871 * f-valprint.c (f_val_print): Style member names.
14872 * f-typeprint.c (f_type_print_base): Style member names.
14873 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14874 call fprintf_symbol_filtered for static members.
14875 (cp_print_class_member): Style member names.
14876 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14877 member names.
14878 * ada-valprint.c (ada_print_scalar): Style enum names.
14879 (ada_val_print_enum): Likewise.
14880 * ada-typeprint.c (print_enum_type): Style enum names.
14881
14882 2020-02-21 Tom Tromey <tom@tromey.com>
14883
14884 * psympriv.h (struct partial_symtab): Update comment.
14885
14886 2020-02-21 Tom Tromey <tromey@adacore.com>
14887
14888 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14889 type is CORE_ADDR.
14890
14891 2020-02-21 Tom de Vries <tdevries@suse.de>
14892
14893 PR gdb/25534
14894 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14895 if dependencies[i]->user != NULL.
14896
14897 2020-02-21 Ali Tamur <tamur@google.com>
14898
14899 * dwarf2/read.c (dwarf2_name): Add null check.
14900
14901 2020-02-20 Tom Tromey <tom@tromey.com>
14902
14903 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14904 ">=", in binary search.
14905 (dwarf2_find_containing_comp_unit): New overload.
14906 (run_test): New self-test.
14907 (_initialize_dwarf2_read): Register new test.
14908
14909 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14910
14911 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14912 * riscv-tdep.h: Likewise.
14913 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14914 rv32-only CSR.
14915 * features/riscv/64bit-csr.xml: Regenerated.
14916
14917 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14918 Tom Tromey <tom@tromey.com>
14919
14920 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14921 of 'fputc_unfiltered'.
14922 (putchar_unfiltered): Call 'fputc_unfiltered'.
14923 (fputc_unfiltered): Call 'fputs_unfiltered'.
14924
14925 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14926
14927 * config.in: Regenerate.
14928 * configure: Regenerate.
14929 * configure.ac: Add --with-python-libdir option.
14930 * main.c: Use WITH_PYTHON_LIBDIR.
14931
14932 2020-02-19 Tom Tromey <tom@tromey.com>
14933
14934 * symtab.c (general_symbol_info::compute_and_set_names): Use
14935 obstack_strndup. Simplify call to symbol_set_demangled_name.
14936
14937 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14938
14939 * dwarf2/read.c (allocate_signatured_type_table,
14940 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14941 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14942 Remove objfile parameter, update all callers.
14943
14944 2020-02-19 Doug Evans <dje@google.com>
14945
14946 PR rust/25535
14947 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14948 rust_enum_variant calculation.
14949
14950 2020-02-19 Tom Tromey <tromey@adacore.com>
14951
14952 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14953
14954 2020-02-19 Tom Tromey <tromey@adacore.com>
14955
14956 * ada-lang.c (cache_symbol): Use obstack_strdup.
14957
14958 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14959
14960 * configure: Regenerate.
14961
14962 2020-02-19 Tom Tromey <tromey@adacore.com>
14963
14964 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14965 NULL check.
14966
14967 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14968
14969 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14970
14971 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14972
14973 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14974 if GDBSERVER is not defined.
14975 (riscv_tdesc_cache): Likewise, also store const target_desc.
14976 (STATIC_IN_GDB): Define.
14977 (riscv_create_target_description): Update declaration with
14978 STATIC_IN_GDB.
14979 (riscv_lookup_target_description): New function, only define if
14980 GDBSERVER is not defined.
14981 * arch/riscv.h (riscv_create_target_description): Declare only
14982 when GDBSERVER is defined.
14983 (riscv_lookup_target_description): New declaration when GDBSERVER
14984 is not defined.
14985 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14986 (riscv_linux_read_features): ...this, and return
14987 riscv_gdbarch_features instead of target_desc.
14988 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14989 (riscv_linux_read_description): Rename to...
14990 (riscv_linux_read_features): ...this.
14991 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14992 Update to use riscv_gdbarch_features and
14993 riscv_lookup_target_description.
14994 * riscv-tdep.c (riscv_find_default_target_description): Use
14995 riscv_lookup_target_description instead of
14996 riscv_create_target_description.
14997
14998 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14999
15000 * valprint.c (generic_val_print_enum_1): When printing a flag
15001 enum with value 0 and there is no enumerator with value 0, print
15002 just "0" instead of "(unknown: 0x0)".
15003
15004 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15005
15006 * valprint.c (generic_val_print_enum_1): Print unknown part of
15007 flag enum in hex.
15008
15009 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15010
15011 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15012 flag enums to contain duplicate enumerators.
15013 * valprint.c (generic_val_print_enum_1): Update comment.
15014
15015 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15016
15017 * dwarf2/read.c: Include "count-one-bits.h".
15018 (update_enumeration_type_from_children): If an enumerator has
15019 multiple bits set, don't treat the enumeration as a "flag enum".
15020 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15021 of flag enums have 0 or 1 bit set.
15022
15023 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15024
15025 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15026 conversion.
15027 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15028 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15029 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15030 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15031 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15032
15033 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15034
15035 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15036
15037 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15038
15039 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15040 displaced_step_closure_up.
15041 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15042 (struct displaced_step_closure_up):
15043 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15044 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15045 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15046 Likewise.
15047 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15048 * gdbarch.c, gdbarch.h: Re-generate.
15049 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15050 displaced_step_closure_up.
15051 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15052 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15053 * infrun.h (displaced_step_closure_up): New type alias.
15054 (struct displaced_step_inferior_state) <step_closure>: Change
15055 type to displaced_step_closure_up.
15056 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15057 displaced_step_closure_up.
15058 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15059
15060 2020-02-14 Tom Tromey <tom@tromey.com>
15061
15062 * minidebug.c (gnu_debug_key): New global.
15063 (find_separate_debug_file_in_section): Use it.
15064
15065 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15066
15067 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15068 std::unique_ptr.
15069 * gdbarch.c: Re-generate.
15070 * gdbarch.h: Re-generate.
15071 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15072 change.
15073 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15074 type to std::unique_ptr.
15075 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15076 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15077 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15078 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15079 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15080 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15081 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15082 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15083 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15084
15085 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15086
15087 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15088 std::unique_ptr.
15089 (displaced_step_clear): Rename to...
15090 (displaced_step_reset): ... this. Just call displaced->reset ().
15091 (displaced_step_clear_cleanup): Rename to...
15092 (displaced_step_reset_cleanup): ... this.
15093 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15094 (displaced_step_fixup): Likewise.
15095 (resume_1): Likewise.
15096 (handle_inferior_event): Restore child's memory before calling
15097 displaced_step_fixup on the parent.
15098 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15099 to std::unique_ptr.
15100 <step_closure>: Change type to std::unique_ptr.
15101
15102 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15103
15104 * arm-tdep.c: Include count-one-bits.h.
15105 (cleanup_block_store_pc): Use count_one_bits.
15106 (cleanup_block_load_pc): Use count_one_bits.
15107 (arm_copy_block_xfer): Use count_one_bits.
15108 (thumb2_copy_block_xfer): Use count_one_bits.
15109 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15110 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15111 (thumb_get_next_pcs_raw): Use count_one_bits.
15112 (arm_get_next_pcs_raw): Use count_one_bits_l.
15113 * arch/arm.c (bitcount): Remove.
15114 * arch/arm.h (bitcount): Remove.
15115
15116 2020-02-14 Tom Tromey <tromey@adacore.com>
15117
15118 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15119 Update.
15120 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15121 * dwarf2/loc.c (call_site_find_chain_1): Return
15122 unique_xmalloc_ptr.
15123 (call_site_find_chain): Likewise.
15124
15125 2020-02-14 Richard Biener <rguenther@suse.de>
15126
15127 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15128 on expression with division operators.
15129
15130 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15131
15132 * MAINTAINERS (Write After Approval): Adding myself.
15133
15134 2020-02-12 Tom Tromey <tom@tromey.com>
15135
15136 * event-loop.c (event_data, gdb_event, event_handler_func):
15137 Remove.
15138
15139 2020-02-12 Tom Tromey <tom@tromey.com>
15140
15141 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15142 (dwarf2_frame_objfile_data): Add comment.
15143 (find_comp_unit, set_comp_unit): New functions.
15144 (dwarf2_frame_find_fde): Use find_comp_unit.
15145 (dwarf2_build_frame_info): Use set_comp_unit.
15146
15147 2020-02-12 Tom Tromey <tom@tromey.com>
15148
15149 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15150 (comp_unit): Don't initialize objfile.
15151 (execute_cfa_program): Add text_offset parameter.
15152 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15153 (dwarf2_frame_cache): Update.
15154 (dwarf2_build_frame_info): Don't set "objfile" member.
15155
15156 2020-02-12 Tom Tromey <tom@tromey.com>
15157
15158 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15159 (decode_frame_entry): Likewise.
15160 (dwarf2_build_frame_info): Update.
15161
15162 2020-02-12 Tom Tromey <tom@tromey.com>
15163
15164 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15165 (decode_frame_entry_1): Use the comp_unit obstack.
15166
15167 2020-02-12 Tom Tromey <tom@tromey.com>
15168
15169 * dwarf2/frame.c (struct comp_unit): Add initializers and
15170 constructor.
15171 (dwarf2_frame_objfile_data): Store a comp_unit.
15172 (dwarf2_frame_find_fde): Update.
15173 (dwarf2_build_frame_info): Use "new".
15174
15175 2020-02-12 Tom Tromey <tom@tromey.com>
15176
15177 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15178 (dwarf2_fde_table): Typedef for std::vector.
15179 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15180 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15181 (decode_frame_entry): Update.
15182 (dwarf2_build_frame_info): Use "new".
15183
15184 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15185
15186 * arm-tdep.c (arm_gdbarch_init): Update.
15187 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15188 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15189 have_neon, is_m>: Change to bool.
15190
15191 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15192
15193 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15194
15195 2020-02-12 Tom Tromey <tom@tromey.com>
15196
15197 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15198
15199 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15200
15201 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15202 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15203
15204 2020-02-11 Tom Tromey <tom@tromey.com>
15205
15206 * psymtab.h: Update comment.
15207
15208 2020-02-11 Tom Tromey <tom@tromey.com>
15209
15210 * gdb_obstack.h (struct auto_obstack): Use
15211 DISABLE_COPY_AND_ASSIGN.
15212
15213 2020-02-11 Tom Tromey <tom@tromey.com>
15214
15215 * dwarf2/frame.h (struct objfile): Don't forward declare.
15216
15217 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15218
15219 * cris-tdep.c (cris_supply_gregset): Change signature to match
15220 what struct regset expects.
15221 (cris_regset): New struct.
15222 (fetch_core_registers): Remove.
15223 (cris_iterate_over_regset_sections): New function.
15224 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15225 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15226
15227 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15228
15229 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15230 registers.
15231
15232 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15233
15234 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15235
15236 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15237
15238 * configure: Re-generate.
15239
15240 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15241
15242 * configure: Re-generate.
15243
15244 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15245
15246 * acinclude: Update warning.m4 path.
15247 * warning.m4: Move to gdbsupport.
15248
15249 2020-02-11 Tom Tromey <tromey@adacore.com>
15250
15251 * remote.c (remote_console_output): Update.
15252 * printcmd.c (printf_command): Update.
15253 * event-loop.c (gdb_wait_for_event): Update.
15254 * linux-nat.c (sigchld_handler): Update.
15255 * remote-sim.c (gdb_os_write_stdout): Update.
15256 (gdb_os_flush_stdout): Update.
15257 (gdb_os_flush_stderr): Update.
15258 (gdb_os_write_stderr): Update.
15259 * exceptions.c (print_exception): Update.
15260 * remote-fileio.c (remote_fileio_func_read): Update.
15261 (remote_fileio_func_write): Update.
15262 * tui/tui.c (tui_enable): Update.
15263 * tui/tui-interp.c (tui_interp::init): Update.
15264 * utils.c (init_page_info): Update.
15265 (putchar_unfiltered, fputc_unfiltered): Update.
15266 (gdb_flush): Update.
15267 (emit_style_escape): Update.
15268 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15269 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15270 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15271 (stderr_file::write): Update.
15272 (stderr_file::puts): Update.
15273 * ui-file.h (ui_file_isatty, ui_file_write)
15274 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15275 (ui_file_puts): Don't declare.
15276
15277 2020-02-10 Tom de Vries <tdevries@suse.de>
15278
15279 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15280 sentinel to char *.
15281
15282 2020-02-09 Tom de Vries <tdevries@suse.de>
15283
15284 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15285 filename if it matches "<artificial>".
15286
15287 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15288
15289 * windows-tdep.c (struct enum_value_name): New struct.
15290 (create_enum): New function.
15291 (windows_get_siginfo_type): Create and use enum types.
15292
15293 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15294
15295 * NEWS: Mention $_siginfo support for Windows.
15296 * windows-nat.c (handle_exception): Set siginfo_er.
15297 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15298 (windows_xfer_siginfo): New function.
15299 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15300 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15301 (init_windows_gdbarch_data): New function.
15302 (get_windows_gdbarch_data): New function.
15303 (windows_get_siginfo_type): New function.
15304 (windows_init_abi): Register windows_get_siginfo_type.
15305 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15306
15307 2020-02-08 Tom Tromey <tom@tromey.com>
15308
15309 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15310 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15311 <keep>: Declare method.
15312 <m_keep>: Remove member.
15313 <~cutu_reader>: Remove.
15314 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15315 (cutu_reader::cutu_reader): Update.
15316 (cutu_reader::keep): Rename from ~cutu_reader.
15317 (process_psymtab_comp_unit, build_type_psymtabs_1)
15318 (process_skeletonless_type_unit, load_partial_comp_unit)
15319 (load_full_comp_unit, dwarf2_read_addr_index)
15320 (read_signatured_type): Update.
15321
15322 2020-02-08 Tom Tromey <tom@tromey.com>
15323
15324 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15325 "want_partial_unit" parameter.
15326 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15327 Inline check for DW_TAG_partial_unit.
15328 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15329
15330 2020-02-08 Tom Tromey <tom@tromey.com>
15331
15332 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15333 read.c.
15334 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15335 read.c.
15336
15337 2020-02-08 Tom Tromey <tom@tromey.com>
15338
15339 * dwarf2/read.c (read_address): Move to comp-unit.c.
15340 (dwarf2_rnglists_process, dwarf2_ranges_process)
15341 (read_attribute_value, dwarf_decode_lines_1)
15342 (var_decode_location, decode_locdesc): Update.
15343 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15344 read.c. Remove "cu" parameter.
15345 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15346 method.
15347
15348 2020-02-08 Tom Tromey <tom@tromey.com>
15349
15350 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15351 (read_indirect_line_string): Update.
15352 * dwarf2/comp-unit.c (read_offset): Remove.
15353 (read_comp_unit_head): Update.
15354 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15355 method.
15356 (read_offset): Don't declare.
15357
15358 2020-02-08 Tom Tromey <tom@tromey.com>
15359
15360 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15361 * dwarf2/read.c (struct comp_unit_head): Move to
15362 dwarf2/comp-unit.h.
15363 (enum class rcuh_kind): Move to comp-unit.h.
15364 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15365 (read_comp_unit_head, error_check_comp_unit_head)
15366 (read_and_check_comp_unit_head): Move to comp-unit.c.
15367 (read_offset, dwarf_unit_type_name): Likewise.
15368 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15369 (cutu_reader::cutu_reader, read_call_site_scope)
15370 (find_partial_die, follow_die_offset): Update.
15371 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15372
15373 2020-02-08 Tom Tromey <tom@tromey.com>
15374
15375 * dwarf2/read.c (read_offset_1): Move to leb.c.
15376 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15377 (dwarf_decode_macro_bytes): Update.
15378 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15379 * dwarf2/leb.h (read_offset): Declare.
15380
15381 2020-02-08 Tom Tromey <tom@tromey.com>
15382
15383 * dwarf2/read.c (dwarf2_section_size): Remove.
15384 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15385 Update.
15386 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15387
15388 2020-02-08 Tom Tromey <tom@tromey.com>
15389
15390 * dwarf2/read.c (read_initial_length): Move to leb.c.
15391 * dwarf2/leb.h (read_initial_length): Declare.
15392 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15393 handle_nonstd parameter.
15394 * dwarf2/frame.c (read_initial_length): Remove.
15395 (decode_frame_entry_1): Update.
15396
15397 2020-02-08 Tom Tromey <tom@tromey.com>
15398
15399 * dwarf2/loc.c (dwarf2_find_location_expression)
15400 (dwarf_evaluate_loc_desc::get_tls_address)
15401 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15402 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15403 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15404 (dwarf2_compile_property_to_c)
15405 (dwarf2_loc_desc_get_symbol_read_needs)
15406 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15407 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15408 (loclist_describe_location, loclist_tracepoint_var_ref)
15409 (loclist_generate_c_location): Update.
15410 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15411 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15412 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15413 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15414 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15415 (dwarf2_per_cu_data::addr_size)
15416 (dwarf2_per_cu_data::ref_addr_size)
15417 (dwarf2_per_cu_data::text_offset)
15418 (dwarf2_per_cu_data::addr_type): Now methods.
15419 (per_cu_header_read_in): Make per_cu "const".
15420 (dwarf2_version): Remove.
15421 (dwarf2_per_cu_data::int_type): Now a method.
15422 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15423 (set_die_type, read_array_type, read_subrange_index_type)
15424 (read_tag_string_type, read_subrange_type): Update.
15425 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15426 offset_size, ref_addr_size, text_offset, addr_type, version,
15427 objfile, int_type, addr_sized_int_type>: Declare methods.
15428
15429 2020-02-08 Tom Tromey <tom@tromey.com>
15430
15431 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15432 Move earlier.
15433
15434 2020-02-08 Tom Tromey <tom@tromey.com>
15435
15436 * dwarf2/read.h (dwarf_line_debug): Declare.
15437 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15438 * dwarf2/read.c: Move line_header code to new files.
15439 (dwarf_line_debug): No longer static.
15440 * dwarf2/line-header.c: New file.
15441 * dwarf2/line-header.h: New file.
15442
15443 2020-02-08 Tom Tromey <tom@tromey.com>
15444
15445 * dwarf2/read.c (struct line_header) <file_full_name,
15446 file_file_name>: Return unique_xmalloc_ptr.
15447 (line_header::file_file_name): Update.
15448 (line_header::file_full_name): Update.
15449 (dw2_get_file_names_reader): Update.
15450 (macro_start_file): Update.
15451
15452 2020-02-08 Tom Tromey <tom@tromey.com>
15453
15454 * dwarf2/read.c (struct line_header) <file_full_name,
15455 file_file_name>: Declare methods.
15456 (dw2_get_file_names_reader): Update.
15457 (file_file_name): Now a method.
15458 (file_full_name): Likewise.
15459 (macro_start_file): Update.
15460
15461 2020-02-08 Tom Tromey <tom@tromey.com>
15462
15463 * dwarf2/read.c (dwarf_always_disassemble)
15464 (show_dwarf_always_disassemble): Move to loc.c.
15465 (_initialize_dwarf2_read): Move "always-disassemble" registration
15466 to loc.c.
15467 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15468 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15469 static.
15470 (show_dwarf_always_disassemble): Move from read.c.
15471 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15472
15473 2020-02-08 Tom Tromey <tom@tromey.com>
15474
15475 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15476 (create_quick_file_names_table): Return htab_up.
15477 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15478 Update.
15479 * dwarf2/read.h (struct dwarf2_per_objfile)
15480 <quick_file_names_table>: Now htab_up.
15481
15482 2020-02-08 Tom Tromey <tom@tromey.com>
15483
15484 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15485
15486 2020-02-08 Tom Tromey <tom@tromey.com>
15487
15488 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15489 Rewrite.
15490 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15491 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15492 (abbrev_table::abbrev_table): No longer inline.
15493 (ABBREV_HASH_SIZE): Remove.
15494 (abbrev_table::m_abbrevs): Now an htab_up.
15495
15496 2020-02-08 Tom Tromey <tom@tromey.com>
15497
15498 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15499 (cutu_reader): Update.
15500 (build_type_psymtabs_1): Update.
15501 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15502 (abbrev_table::alloc_abbrev): Update.
15503 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15504 (abbrev_table::read): New static method, renamed from
15505 abbrev_table_read_table.
15506 (abbrev_table::alloc_abbrev)
15507 (abbrev_table::add_abbrev): Now private.
15508 (abbrev_table::abbrev_table): Now private.
15509 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15510
15511 2020-02-08 Tom Tromey <tom@tromey.com>
15512
15513 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15514 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15515 htab_up.
15516
15517 2020-02-08 Tom Tromey <tom@tromey.com>
15518
15519 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15520 htab_up.
15521 (lookup_dwo_unit_in_dwp): Update.
15522 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15523 on obstack.
15524
15525 2020-02-08 Tom Tromey <tom@tromey.com>
15526
15527 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15528 obstack.
15529
15530 2020-02-08 Tom Tromey <tom@tromey.com>
15531
15532 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15533 line_header_hash.
15534 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15535 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15536 Change type to htab_up.
15537
15538 2020-02-08 Tom Tromey <tom@tromey.com>
15539
15540 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15541 htab_up. Don't allocate on obstack.
15542 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15543 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15544 Change type to htab_up.
15545
15546 2020-02-08 Tom Tromey <tom@tromey.com>
15547
15548 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15549 Change type to htab_up.
15550 * dwarf2/read.c (create_signatured_type_table_from_index)
15551 (create_signatured_type_table_from_debug_names)
15552 (create_all_type_units, add_type_unit)
15553 (lookup_dwo_signatured_type, lookup_signatured_type)
15554 (process_skeletonless_type_unit): Update.
15555 (create_debug_type_hash_table, create_debug_types_hash_table):
15556 Change type of types_htab.
15557 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15558 htab_up. Don't allocate on obstack.
15559 (create_cus_hash_table): Change type of cus_htab parameter.
15560 (struct dwo_file) <cus, tus>: Now htab_up.
15561 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15562 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15563 (queue_and_load_all_dwo_tus): Update.
15564 * dwarf2/index-write.c (write_gdbindex): Update.
15565 (write_debug_names): Update.
15566
15567 2020-02-08 Tom Tromey <tom@tromey.com>
15568
15569 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15570 dwarf2/read.c. Remove "next" member. Add constructor ntad
15571 destructor.
15572 (struct dwarf2_per_objfile) <queue>: New member.
15573 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15574 dwarf2/read.h.
15575 (dwarf2_queue, dwarf2_queue_tail): Remove.
15576 (class dwarf2_queue_guard): Add parameter to constructor. Use
15577 DISABLE_COPY_AND_ASSIGN.
15578 <m_per_objfile>: New member.
15579 <~dwarf2_queue_guard>: Rewrite.
15580 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15581 Update.
15582 (~dwarf2_queue_item): New.
15583
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15585
15586 * dwarf2/read.c (struct die_info) <has_children>: New member.
15587 (dw2_get_file_names_reader): Remove has_children.
15588 (dw2_get_file_names): Update.
15589 (read_cutu_die_from_dwo): Remove has_children.
15590 (cutu_reader::init_tu_and_read_dwo_dies)
15591 (cutu_reader::cutu_reader): Update.
15592 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15593 Remove has_children.
15594 (build_type_psymtabs_1, process_skeletonless_type_unit)
15595 (load_partial_comp_unit, load_full_comp_unit): Update.
15596 (create_dwo_cu_reader): Remove has_children.
15597 (create_cus_hash_table, read_die_and_children): Update.
15598 (read_full_die_1,read_full_die): Remove has_children.
15599 (read_signatured_type): Update.
15600 (class cutu_reader) <has_children>: Remove.
15601
15602 2020-02-08 Tom Tromey <tom@tromey.com>
15603
15604 * dwarf2/expr.c: Rename from dwarf2expr.c.
15605 * dwarf2/expr.h: Rename from dwarf2expr.h.
15606 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15607 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15608 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15609 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15610 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15611 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15612 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15613 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15614 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15615 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15616 * dwarf2/loc.c: Rename from dwarf2loc.c.
15617 * dwarf2/loc.h: Rename from dwarf2loc.h.
15618 * dwarf2/read.c: Rename from dwarf2read.c.
15619 * dwarf2/read.h: Rename from dwarf2read.h.
15620 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15621 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15622 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15623 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15624 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15625 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15626 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15627 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15628 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15629 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15630 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15631 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15632 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15633 Update.
15634 * Makefile.in (COMMON_SFILES): Update.
15635 (HFILES_NO_SRCDIR): Update.
15636
15637 2020-02-08 Tom Tromey <tom@tromey.com>
15638
15639 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15640 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15641
15642 2020-02-08 Tom Tromey <tom@tromey.com>
15643
15644 * dwarf2read.h (struct die_info): Don't declare.
15645
15646 2020-02-08 Tom Tromey <tom@tromey.com>
15647
15648 * dwarf2read.h (die_info_ptr): Remove typedef.
15649
15650 2020-02-08 Tom Tromey <tom@tromey.com>
15651
15652 * dwarf2read.c (read_call_site_scope)
15653 (handle_data_member_location, dwarf2_add_member_fn)
15654 (mark_common_block_symbol_computed, read_common_block)
15655 (attr_to_dynamic_prop, partial_die_info::read)
15656 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15657 (dwarf2_symbol_mark_computed, set_die_type): Update.
15658 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15659 method.
15660 (attr_form_is_block): Don't declare.
15661 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15662
15663 2020-02-08 Tom Tromey <tom@tromey.com>
15664
15665 * dwarf2read.c (dwarf2_find_base_address, )
15666 (read_call_site_scope, rust_containing_type)
15667 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15668 (handle_data_member_location, dwarf2_add_member_fn)
15669 (get_alignment, read_structure_type, process_structure_scope)
15670 (mark_common_block_symbol_computed, read_common_block)
15671 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15672 (partial_die_info::read, read_attribute_value, new_symbol)
15673 (lookup_die_type, dwarf2_get_ref_die_offset)
15674 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15675 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15676 (dwarf2_symbol_mark_computed): Update.
15677 * dwarf2/attribute.h (struct attribute) <value_as_address,
15678 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15679 methods.
15680 (value_as_address, attr_form_is_section_offset)
15681 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15682 * dwarf2/attribute.c (attribute::value_as_address)
15683 (attribute::form_is_section_offset, attribute::form_is_constant)
15684 (attribute::form_is_ref): Now methods.
15685
15686 2020-02-08 Tom Tromey <tom@tromey.com>
15687
15688 * dwarf2read.c (struct attribute, DW_STRING)
15689 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15690 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15691 (attr_form_is_block, attr_form_is_section_offset)
15692 (attr_form_is_constant, attr_form_is_ref): Move.
15693 * dwarf2/attribute.h: New file.
15694 * dwarf2/attribute.c: New file, from dwarf2read.c.
15695 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15696
15697 2020-02-08 Tom Tromey <tom@tromey.com>
15698
15699 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15700 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15701 Move.
15702 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15703 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15704 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15705 abbrev.c.
15706 * dwarf2/abbrev.h: New file.
15707 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15708 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15709
15710 2020-02-08 Tom Tromey <tom@tromey.com>
15711
15712 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15713 (dwarf2_section_size, dwarf2_get_section_info)
15714 (create_signatured_type_table_from_debug_names)
15715 (create_addrmap_from_aranges, read_debug_names_from_section)
15716 (get_gdb_index_contents_from_section, read_comp_unit_head)
15717 (error_check_comp_unit_head, read_abbrev_offset)
15718 (create_debug_type_hash_table, init_cu_die_reader)
15719 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15720 (read_comp_units_from_section, create_cus_hash_table)
15721 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15722 (create_dwp_v2_section, dwarf2_rnglists_process)
15723 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15724 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15725 (read_indirect_string_from_dwz, read_addr_index_1)
15726 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15727 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15728 (fill_in_loclist_baton): Update.
15729 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15730 get_containing_section, get_bfd_owner, get_bfd_section,
15731 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15732 (dwarf2_read_section, get_section_name, get_section_file_name)
15733 (get_containing_section, get_section_bfd_owner)
15734 (get_section_bfd_section, get_section_name, get_section_file_name)
15735 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15736 declare.
15737 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15738 (dwarf2_section_info::get_bfd_owner)
15739 (dwarf2_section_info::get_bfd_section)
15740 (dwarf2_section_info::get_name)
15741 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15742 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15743 (dwarf2_section_info::read): Now methods.
15744 * dwarf-index-write.c (class debug_names): Update.
15745
15746 2020-02-08 Tom Tromey <tom@tromey.com>
15747
15748 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15749 Move to dwarf2/section.h.
15750 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15751 (get_section_bfd_section, get_section_name)
15752 (get_section_file_name, get_section_id, get_section_flags)
15753 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15754 dwarf2/section.c.
15755 * dwarf2/section.h: New file.
15756 * dwarf2/section.c: New file, from dwarf2read.c.
15757 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15758
15759 2020-02-08 Tom Tromey <tom@tromey.com>
15760
15761 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15762 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15763 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15764 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15765 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15766 * dwarf2/leb.h: New file, from dwarf2read.c.
15767 * dwarf2/leb.c: New file, from dwarf2read.c.
15768 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15769 Remove.
15770 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15771 (COMMON_SFILES): Add dwarf2/leb.c.
15772
15773 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15774
15775 GDB 9.1 released.
15776
15777 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15778
15779 PR gdb/25190:
15780 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15781 * gdb/remote.c (remote_console_output): Update.
15782 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15783 (ui_file_puts): ...this.
15784 * gdb/ui-file.h (ui_file_puts): Add declaration.
15785 * gdb/utils.c (emit_style_escape): Update.
15786 (flush_wrap_buffer): Update.
15787 (fputs_maybe_filtered): Update.
15788 (fputs_unfiltered): Add function.
15789
15790 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15791
15792 * gdb/event-loop.c (gdb_wait_for_event): Update.
15793 * gdb/printcmd.c (printf_command): Update.
15794 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15795 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15796 (gdb_os_flush_stderr): Update.
15797 * gdb/remote.c (remote_console_output): Update.
15798 * gdb/ui-file.c (gdb_flush): Rename to...
15799 (ui_file_flush): ...this.
15800 (stderr_file::write): Update.
15801 (stderr_file::puts): Update.
15802 * gdb/ui-file.h (gdb_flush): Rename to...
15803 (ui_file_flush): ...this.
15804 * gdb/utils.c (gdb_flush): Add function.
15805 * gdb/utils.h (gdb_flush): Add declaration.
15806
15807 2020-02-07 Tom Tromey <tromey@adacore.com>
15808
15809 PR breakpoints/24915:
15810 * source.c (find_and_open_source): Do not check basenames_may_differ.
15811
15812 2020-02-07 Tom Tromey <tom@tromey.com>
15813
15814 * README: Update gdbserver documentation.
15815 * gdbserver: Move to top level.
15816 * configure.tgt (build_gdbserver): Remove.
15817 * configure.ac: Remove --enable-gdbserver.
15818 * configure: Rebuild.
15819 * Makefile.in (distclean): Don't mention gdbserver.
15820
15821 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15822
15823 * source-cache.c (source_cache::ensure): Surround
15824 get_plain_source_lines with a try/catch.
15825 (source_cache::get_line_charpos): Get rid of try/catch
15826 and only check for the return value of "ensure".
15827 * tui/tui-source.c (tui_source_window::set_contents):
15828 Simplify "nlines" calculation.
15829
15830 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15831
15832 * MAINTAINERS (Write After Approval): Add myself.
15833
15834 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15835
15836 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15837 function call.
15838
15839 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15840
15841 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15842
15843 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15844
15845 * nat/riscv-linux-tdesc.h: New file.
15846 * nat/riscv-linux-tdesc.c: New file, taking code from...
15847 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15848 ... here.
15849 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15850 NATDEPFILES.
15851
15852 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15853
15854 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15855 we don't set the fake simulator ptid to the null_ptid.
15856
15857 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15858
15859 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15860 * gdbthread.h (class thread_info) <resumed>: Likewise.
15861 * infrun.c (resume_1): Likewise.
15862 (proceed): Likewise.
15863 (infrun_thread_stop_requested): Likewise.
15864 (stop_all_threads): Likewise.
15865 (handle_inferior_event): Likewise.
15866 (restart_threads): Likewise.
15867 (finish_step_over): Likewise.
15868 (keep_going_stepped_thread): Likewise.
15869 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15870 (linux_handle_extended_wait): Likewise.
15871 * record-btrace.c (get_thread_current_frame_id): Likewise.
15872 * record-full.c (record_full_wait_1): Likewise.
15873 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15874 * target.c (target_resume): Likewise.
15875 * thread.c (set_running_thread): Likewise.
15876
15877 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15878
15879 * f-valprint.c (f77_print_array_1): Changed datatype of index
15880 variable to LONGEST from int to enable it to contain bound
15881 values correctly.
15882
15883 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15884
15885 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15886 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15887 offsets according to FLEN determined.
15888 (riscv_linux_nat_target::read_description): Determine FLEN
15889 dynamically.
15890 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15891 according to FLEN determined.
15892 (riscv_linux_nat_target::store_registers): Likewise.
15893
15894 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15895
15896 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15897 when reg->group is empty and reggroup is not.
15898
15899 2020-01-31 Tom Tromey <tromey@adacore.com>
15900
15901 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15902 Call beneath target's mourn_inferior after unpushing.
15903
15904 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15905
15906 PR tui/9765
15907 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15908 have enough lines to fill the screen, still return the lowest
15909 address we found.
15910
15911 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15912
15913 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15914 '-', '<', and '>' commands.
15915
15916 2020-01-29 Pedro Alves <palves@redhat.com>
15917 Sergio Durigan Junior <sergiodj@redhat.com>
15918
15919 * infcmd.c (construct_inferior_arguments): Assert that
15920 'argc' is greater than 0.
15921
15922 2020-01-29 Luis Machado <luis.machado@linaro.org>
15923
15924 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15925 (BRK_INSN_MASK): Define to 0xd4200000.
15926 (aarch64_program_breakpoint_here_p): New function.
15927 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15928 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15929 breakpoint.c.
15930 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15931 breakpoint.h
15932 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15933 call gdbarch_program_breakpoint_here_p.
15934 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15935 default_program_breakpoint_here_p, changed return type to bool and
15936 simplified.
15937 * breakpoint.h (program_breakpoint_here): Moved prototype to
15938 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15939 return type to bool.
15940 * gdbarch.c: Regenerate.
15941 * gdbarch.h: Regenerate.
15942 * gdbarch.sh (program_breakpoint_here_p): New method.
15943 * infrun.c (handle_signal_stop): Call
15944 gdbarch_program_breakpoint_here_p.
15945
15946 2020-01-26 Tom Tromey <tom@tromey.com>
15947
15948 * ctfread.c (struct ctf_fp_info): Reindent.
15949 (_initialize_ctfread): Remove.
15950
15951 2020-01-26 Tom Tromey <tom@tromey.com>
15952
15953 * psymtab.c (partial_map_expand_apply)
15954 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15955 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15956 (psym_print_stats, psym_expand_symtabs_for_function)
15957 (psym_map_symbol_filenames, psym_map_matching_symbols)
15958 (psym_expand_symtabs_matching)
15959 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15960 (maintenance_check_psymtabs): Use new methods.
15961 * psympriv.h (struct partial_symtab) <readin_p,
15962 get_compunit_symtab>: New methods.
15963 <readin, compunit_symtab>: Remove members.
15964 (struct standard_psymtab): New.
15965 (struct legacy_psymtab): Derive from standard_psymtab.
15966 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15967 standard_psymtab.
15968 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15969
15970 2020-01-26 Tom Tromey <tom@tromey.com>
15971
15972 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15973 read_dependencies. Add assert.
15974 * psymtab.c (partial_symtab::read_dependencies): New method.
15975 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15976 method.
15977 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15978 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15979 read_dependencies.
15980 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15981 Add assert.
15982
15983 2020-01-26 Tom Tromey <tom@tromey.com>
15984
15985 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15986 Call expand_psymtab.
15987 (xcoff_read_symtab): Call expand_psymtab.
15988 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15989 legacy_expand_psymtab.
15990 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15991 method.
15992 (struct legacy_psymtab) <expand_psymtab>: Implement.
15993 <legacy_expand_psymtab>: New member.
15994 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15995 (parse_partial_symbols): Set legacy_expand_psymtab.
15996 (psymtab_to_symtab_1): Change argument order. Call
15997 expand_psymtab.
15998 (new_psymtab): Set legacy_expand_psymtab.
15999 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16000 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16001 expand_psymtab.
16002 (dwarf2_psymtab::expand_psymtab): Rename from
16003 psymtab_to_symtab_1. Call expand_psymtab.
16004 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16005 (dbx_end_psymtab): Likewise.
16006 (dbx_psymtab_to_symtab_1): Change argument order. Call
16007 expand_psymtab.
16008 (dbx_read_symtab): Call expand_psymtab.
16009 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16010 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16011 (ctf_psymtab::read_symtab): Call expand_psymtab.
16012
16013 2020-01-26 Tom Tromey <tom@tromey.com>
16014
16015 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16016 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16017 messages.
16018 * mdebugread.c (mdebug_read_symtab): Remove prints.
16019 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16020 assert.
16021 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16022
16023 2020-01-26 Tom Tromey <tom@tromey.com>
16024
16025 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16026 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16027 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16028 legacy_symtab.
16029 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16030 * psymtab.c (psymtab_to_symtab): Call method.
16031 (dump_psymtab): Update.
16032 * psympriv.h (struct partial_symtab): Add virtual destructor.
16033 <read_symtab>: New method.
16034 (struct legacy_symtab): New.
16035 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16036 (struct pst_map) <pst>: Now a legacy_psymtab.
16037 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16038 (new_psymtab): Use legacy_psymtab.
16039 * dwarf2read.h (struct dwarf2_psymtab): New.
16040 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16041 * dwarf2read.c (dwarf2_create_include_psymtab)
16042 (dwarf2_build_include_psymtabs, create_type_unit_group)
16043 (create_partial_symtab, process_psymtab_comp_unit_reader)
16044 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16045 (set_partial_user): Use dwarf2_psymtab.
16046 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16047 (psymtab_to_symtab_1, process_full_comp_unit)
16048 (process_full_type_unit, dwarf2_ranges_read)
16049 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16050 (dwarf_decode_lines): Use dwarf2_psymtab.
16051 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16052 (add_address_entry_worker, write_one_signatured_type)
16053 (recursively_count_psymbols, recursively_write_psymbols)
16054 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16055 (write_debug_names): Likewise.
16056 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16057 <pst>: Now a legacy_psymtab.
16058 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16059 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16060 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16061 * ctfread.c (struct ctf_psymtab): New.
16062 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16063 ctf_psymtab.
16064 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16065 (create_partial_symtab): Return a ctf_psymtab.
16066 (scan_partial_symbols): Update.
16067
16068 2020-01-26 Tom Tromey <tom@tromey.com>
16069
16070 * xcoffread.c (xcoff_start_psymtab): Use new.
16071 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16072 renamed from start_psymtab_common.
16073 * psympriv.h (struct partial_symtab): Add new constructor.
16074 (start_psymtab_common): Don't declare.
16075 * mdebugread.c (parse_partial_symbols): Use new.
16076 * dwarf2read.c (create_partial_symtab): Use new.
16077 * dbxread.c (start_psymtab): Use new.
16078 * ctfread.c (create_partial_symtab): Use new.
16079
16080 2020-01-26 Tom Tromey <tom@tromey.com>
16081
16082 * xcoffread.c (xcoff_end_psymtab): Use new.
16083 * psymtab.c (start_psymtab_common): Use new.
16084 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16085 Update.
16086 * psympriv.h (struct partial_symtab): Add parameters to
16087 constructor. Don't inline.
16088 (allocate_psymtab): Don't declare.
16089 * mdebugread.c (new_psymtab): Use new.
16090 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16091 * dbxread.c (dbx_end_psymtab): Use new.
16092
16093 2020-01-26 Tom Tromey <tom@tromey.com>
16094
16095 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16096 allocate_psymtab. Update documentation.
16097 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16098 allocate_psymtab. Do not use new.
16099 (allocate_psymtab): Use new. Update.
16100
16101 2020-01-26 Tom Tromey <tom@tromey.com>
16102
16103 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16104 * psymtab.c (psym_print_stats): Update.
16105 * psympriv.h (struct partial_symtab) <readin,
16106 psymtabs_addrmap_supported, anonymous>: Now bool.
16107 * mdebugread.c (psymtab_to_symtab_1): Update.
16108 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16109 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16110 (process_full_comp_unit, process_full_type_unit): Update.
16111 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16112 * ctfread.c (psymtab_to_symtab): Update.
16113
16114 2020-01-26 Tom Tromey <tom@tromey.com>
16115
16116 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16117 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16118 * psymtab.c (psymtab_storage): Delete psymtabs.
16119 (psymtab_storage::allocate_psymtab): Use new.
16120 (psymtab_storage::discard_psymtab): Use delete.
16121 * psympriv.h (struct partial_symtab): Add constructor and
16122 initializers.
16123
16124 2020-01-26 Tom Tromey <tom@tromey.com>
16125
16126 * machoread.c: Do not include psympriv.h.
16127
16128 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16129
16130 * NEWS: Mention the new option and the set/show commands.
16131
16132 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16133
16134 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16135 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16136 (validate_exec_file): New variables, enums, functions.
16137 (exec_file_locate_attach, print_section_info): Style the filenames.
16138 (_initialize_exec): Install show_exec_file_mismatch_command and
16139 set_exec_file_mismatch_command.
16140 * gdbcore.h (validate_exec_file): Declare.
16141 * infcmd.c (attach_command): Call validate_exec_file.
16142 * remote.c ( remote_target::remote_add_inferior): Likewise.
16143
16144 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16145
16146 * frame.c (find_frame_sal): Move call to get_next_frame into more
16147 inner scope.
16148 * inline-frame.c (inilne_state) <inline_state>: Update argument
16149 types.
16150 (inilne_state) <skipped_symbol>: Rename to...
16151 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16152 (skip_inline_frames): Build vector of skipped symbols and use this
16153 to reate the inline_state.
16154 (inline_skipped_symbol): Add a comment and some assertions, fetch
16155 skipped symbol from the list.
16156
16157 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16158
16159 * buildsym.c (lte_is_less_than): Delete.
16160 (buildsym_compunit::end_symtab_with_blockvector): Create local
16161 lambda function to sort line table entries, and use
16162 std::stable_sort instead of std::sort.
16163 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16164 markers when looking for a previous line.
16165
16166 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16167
16168 * dwarf2read.c (lnp_state_machine::record_line): Include
16169 end_sequence parameter in debug print out. Record the line if we
16170 are at an end_sequence marker even if it's not the start of a
16171 statement.
16172 * symmisc.c (maintenance_print_one_line_table): Print end of
16173 sequence markers with 'END' not '0'.
16174
16175 2020-01-24 Pedro Alves <palves@redhat.com>
16176
16177 PR gdb/25410
16178 * thread.c (scoped_restore_current_thread::restore): Use
16179 switch_to_inferior_no_thread.
16180 * exec.c: Include "progspace-and-thread.h".
16181 (add_target_sections, remove_target_sections):
16182 scoped_restore_current_pspace_and_thread instead of
16183 scoped_restore_current_thread.
16184 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16185 and aspace to the inferior before calling clone_program_space.
16186 Remove stale comment.
16187
16188 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16189
16190 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16191 (arm_netbsd_nat_target::fetch_registers): ...this.
16192 (arm_nbsd_nat_target::store_registers): Rename to...
16193 (arm_netbsd_nat_target::store_registers): ...this.
16194
16195 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16196
16197 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16198 register_t.
16199
16200 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16201
16202 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16203 Update comment.
16204 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16205 Likewise.
16206 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16207 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16208 the correct replacement (iterate_over_regset_sections).
16209 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16210 Update comment.
16211
16212 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16213
16214 PR gdb/23718
16215 * gdb/python/python.c (execute_gdb_command): Call
16216 async_enable_stdin in catch block.
16217
16218 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16219
16220 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16221 SWITCH_THRU_ALL_UIS.
16222
16223 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16224
16225 PR tui/9765
16226 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16227 comment, add extra parameter, and update to store previous symbol
16228 when appropriate.
16229 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16230 add extra parameter.
16231 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16232 remove unneeded parameter, add try/catch around gdb_print_insn,
16233 rewrite to add items to asm_lines vector.
16234 (tui_find_backward_disassembly_start_address): New function.
16235 (tui_find_disassembly_address): Updated throughout.
16236 (tui_disasm_window::set_contents): Update for changes to
16237 tui_disassemble.
16238 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16239 number of lines to scroll.
16240
16241 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16242
16243 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16244 (SECT_OFF_DATA): Likewise.
16245 (SECT_OFF_RODATA): Likewise.
16246 (SECT_OFF_TEXT): Likewise.
16247 (SECT_OFF_BSS): Likewise.
16248 (struct objfile) <text_section_offset, data_section_offset>: New
16249 methods.
16250 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16251 objfile::text_section_offset.
16252 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16253 * coffread.c (coff_symtab_read): Likewise.
16254 (enter_linenos): Likewise.
16255 (process_coff_symbol): Likewise.
16256 * ctfread.c (get_objfile_text_range): Likewise.
16257 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16258 Use objfile::data_section_offset.
16259 * dwarf2-frame.c (execute_cfa_program): Use
16260 objfile::text_section_offset.
16261 (dwarf2_frame_find_fde): Likewise.
16262 * dwarf2read.c (create_addrmap_from_index): Likewise.
16263 (create_addrmap_from_aranges): Likewise.
16264 (dw2_find_pc_sect_compunit_symtab): Likewise.
16265 (process_psymtab_comp_unit_reader): Likewise.
16266 (add_partial_symbol): Likewise.
16267 (add_partial_subprogram): Likewise.
16268 (process_full_comp_unit): Likewise.
16269 (read_file_scope): Likewise.
16270 (read_func_scope): Likewise.
16271 (read_lexical_block_scope): Likewise.
16272 (read_call_site_scope): Likewise.
16273 (dwarf2_rnglists_process): Likewise.
16274 (dwarf2_ranges_process): Likewise.
16275 (dwarf2_ranges_read): Likewise.
16276 (dwarf_decode_lines_1): Likewise.
16277 (new_symbol): Likewise.
16278 (dwarf2_fetch_die_loc_sect_off): Likewise.
16279 (dwarf2_per_cu_text_offset): Likewise.
16280 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16281 * hppa-tdep.c (read_unwind_info): Likewise.
16282 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16283 * psympriv.h (struct partial_symtab): Likewise.
16284 * psymtab.c (find_pc_sect_psymtab): Likewise.
16285 * solib-svr4.c (enable_break): Likewise.
16286 * stap-probe.c (relocate_address): Use
16287 objfile::data_section_offset.
16288 * xcoffread.c (enter_line_range): Use
16289 objfile::text_section_offset.
16290 (read_xcoff_symtab): Likewise.
16291
16292 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16293
16294 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16295 declaration to narrower scopes.
16296
16297 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16298
16299 * darwin-nat.h (struct darwin_exception_msg, enum
16300 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16301 Move up.
16302 (class darwin_nat_target) <wait_1, check_new_threads,
16303 decode_exception_message, decode_message, stop_inferior,
16304 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16305 * darwin-nat.c (darwin_check_new_threads): Rename to...
16306 (darwin_nat_target::check_new_threads): ... this.
16307 (darwin_suspend_inferior_it): Remove.
16308 (darwin_decode_exception_message): Rename to...
16309 (darwin_nat_target::decode_exception_message): ... this.
16310 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16311 (darwin_decode_message): Rename to...
16312 (darwin_nat_target::decode_message): ... this.
16313 (cancel_breakpoint): Rename to...
16314 (darwin_nat_target::cancel_breakpoint): ... this.
16315 (darwin_wait): Rename to...
16316 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16317 instead of iterate_over_inferiors.
16318 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16319 (darwin_stop_inferior): Rename to...
16320 (darwin_nat_target::stop_inferior): ... this.
16321 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16322 (darwin_init_thread_list): Rename to...
16323 (darwin_nat_target::init_thread_list): ... this.
16324 (darwin_ptrace_him): Rename to...
16325 (darwin_nat_target::ptrace_him): ... this.
16326 (darwin_nat_target::create_inferior): Pass lambda function to
16327 fork_inferior.
16328 (darwin_nat_target::detach): Call stop_inferior instead of
16329 darwin_stop_inferior.
16330 * fork-inferior.h (fork_inferior): Change init_trace_fun
16331 parameter to gdb::function_view.
16332 * fork-inferior.c (fork_inferior): Likewise.
16333
16334 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16335
16336 * i386-cygwin-tdep.c (core_process_module_section): Update.
16337 * windows-nat.c (struct lm_info_windows): Add text_offset.
16338 (windows_xfer_shared_libraries): Update.
16339 * windows-tdep.c (windows_xfer_shared_library):
16340 Add text_offset_cached argument.
16341 * windows-tdep.h (windows_xfer_shared_library): Update.
16342
16343 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16344
16345 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16346
16347 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16348
16349 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16350 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16351 replace with range-based for.
16352 (gdbsim_interrupt_inferior): Remove.
16353 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16354 with a range-based for. Inline code from
16355 gdbsim_interrupt_inferior.
16356
16357 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16358
16359 * infrun.c (proceed): Fix indentation.
16360
16361 2020-01-21 Tom Tromey <tromey@adacore.com>
16362
16363 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16364 * python/python.c (python_extension_ops): Update.
16365 (gdbpy_colorize): New function.
16366 * python/lib/gdb/__init__.py (colorize): New function.
16367 * extension.h (ext_lang_colorize): Declare.
16368 * extension.c (ext_lang_colorize): New function.
16369 * extension-priv.h (struct extension_language_ops) <colorize>: New
16370 member.
16371 * cli/cli-style.c (_initialize_cli_style): Update help text.
16372
16373 2020-01-21 Luis Machado <luis.machado@linaro.org>
16374
16375 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16376 <cond>: Change type to bool.
16377 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16378 (aarch64_displaced_step_cb): Likewise.
16379 (aarch64_displaced_step_tb): Likewise.
16380
16381 2020-01-21 Luis Machado <luis.machado@linaro.org>
16382
16383 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16384 output.
16385
16386 2020-01-21 Luis Machado <luis.machado@linaro.org>
16387
16388 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16389 <pc_adjust>: Adjust the documentation.
16390 (aarch64_displaced_step_fixup): Check if PC really moved before
16391 adjusting it.
16392
16393 2020-01-19 Tom Tromey <tom@tromey.com>
16394
16395 * disasm.c (~gdb_disassembler): New destructor.
16396 (gdb_buffered_insn_length): Call disassemble_free_target.
16397 * disasm.h (class gdb_disassembler): Declare destructor. Use
16398 DISABLE_COPY_AND_ASSIGN.
16399
16400 2020-01-19 Tom Tromey <tom@tromey.com>
16401
16402 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16403 (die_reader_func_ftype): Remove.
16404 (cutu_reader): New class.
16405 (dw2_get_file_names_reader): Remove "data" parameter.
16406 (dw2_get_file_names): Use cutu_reader.
16407 (create_debug_type_hash_table): Update.
16408 (read_cutu_die_from_dwo): Update comment.
16409 (lookup_dwo_unit): Add dwo_name parameter.
16410 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16411 die_reader_func_ftype and data parameters.
16412 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16413 Remove die_reader_func_ftype and data parameters.
16414 (~cutu_reader): New; from init_cutu_and_read_dies.
16415 (cutu_reader::cutu_reader): Rename from
16416 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16417 and data parameters.
16418 (init_cutu_and_read_dies_simple): Remove.
16419 (struct process_psymtab_comp_unit_data): Remove.
16420 (process_psymtab_comp_unit_reader): Remove data parameter; add
16421 want_partial_unit and pretend_language parameters.
16422 (process_psymtab_comp_unit): Use cutu_reader.
16423 (build_type_psymtabs_reader): Remove data parameter.
16424 (build_type_psymtabs_1): Use cutu_reader.
16425 (process_skeletonless_type_unit): Likewise.
16426 (load_partial_comp_unit_reader): Remove.
16427 (load_partial_comp_unit): Use cutu_reader.
16428 (load_full_comp_unit_reader): Remove.
16429 (load_full_comp_unit): Use cutu_reader.
16430 (struct create_dwo_cu_data): Remove.
16431 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16432 dwo_unit parameters.
16433 (create_cus_hash_table): Use cutu_reader.
16434 (struct dwarf2_read_addr_index_data): Remove.
16435 (dwarf2_read_addr_index_reader): Remove.
16436 (dwarf2_read_addr_index): Use cutu_reader.
16437 (read_signatured_type_reader): Remove.
16438 (read_signatured_type): Use cutu_reader.
16439
16440 2020-01-19 Tom Tromey <tom@tromey.com>
16441
16442 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16443 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16444 (tui_wrefresh): Declare.
16445 * tui/tui-wingeneral.c (suppress_output): New global.
16446 (tui_suppress_output, ~tui_suppress_output): New constructor and
16447 destructor.
16448 (tui_wrefresh): New function.
16449 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16450 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16451 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16452 method.
16453 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16454 tui_wrefresh.
16455 (tui_data_window::no_refresh): New method.
16456 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16457 (tui_reg_command): Use tui_suppress_output
16458 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16459 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16460 method.
16461 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16462
16463 2020-01-19 Tom Tromey <tom@tromey.com>
16464
16465 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16466 Handle case where symtab is null.
16467
16468 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16469
16470 * linux-fork.c (one_fork_p): Simplify.
16471
16472 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16473
16474 * top.c (struct qt_args): Remove.
16475 (kill_or_detach): Change return type to void, replace `void *`
16476 parameter with a proper one.
16477 (print_inferior_quit_action): Likewise.
16478 (quit_confirm): Use range-based for loop to iterate over inferiors.
16479 (quit_force): Likewise.
16480
16481 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16482
16483 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16484 `void *` parameter with proper parameters.
16485 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16486 (print_one_inferior): Change return type to void, replace `void *`
16487 parameter with proper parameters.
16488 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16489 inferiors.
16490 (get_other_inferior): Remove.
16491 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16492 inferiors.
16493
16494 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16495
16496 * mi/mi-interp.c (report_initial_inferior): Remove.
16497 (mi_interp::init): Use range-based for to iterate over inferiors.
16498
16499 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16500
16501 * python/py-inferior.c (build_inferior_list): Remove.
16502 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16503
16504 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16505
16506 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16507 (btrace_stitch_trace): Likewise.
16508 * charset.c (intermediate_encoding): Likewise (vaild).
16509 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16510 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16511 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16512
16513 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16514
16515 * windows-tdep.c (windows_get_tlb_type):
16516 Add rtl_user_process_parameters type.
16517
16518 2020-01-16 Pedro Alves <palves@redhat.com>
16519 Norbert Lange <nolange79@gmail.com>
16520
16521 PR build/24805
16522 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16523 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16524 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16525 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16526 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16527 (ps_plog): Redeclare exported functions with default visibility.
16528
16529 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16530
16531 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16532 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16533
16534 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16535
16536 * infcmd.c (post_create_inferior): Use get_thread_regcache
16537 instead of get_current_regcache.
16538
16539 2020-01-14 Tom Tromey <tom@tromey.com>
16540
16541 PR symtab/12535:
16542 * python/python.c (gdbpy_decode_line): Treat empty string the same
16543 as no argument.
16544
16545 2020-01-14 Tom Tromey <tom@tromey.com>
16546
16547 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16548
16549 2020-01-14 Tom Tromey <tom@tromey.com>
16550
16551 * nat/linux-btrace.c: Don't include <config.h>.
16552 * nat/linux-ptrace.c: Don't include <config.h>.
16553 * nat/x86-linux-dregs.c: Don't include <config.h>.
16554
16555 2020-01-14 Tom Tromey <tom@tromey.com>
16556
16557 * configure: Rebuild.
16558 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16559
16560 2020-01-14 Tom Tromey <tom@tromey.com>
16561
16562 * nat/x86-linux-dregs.c: Include configh.h.
16563 * nat/linux-ptrace.c: Include configh.h.
16564 * nat/linux-btrace.c: Include configh.h.
16565 * defs.h: Include config.h, bfd.h.
16566 * configure.ac: Don't source common.host.
16567 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16568 * configure: Rebuild.
16569 * acinclude.m4: Update path.
16570 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16571 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16572 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16573 (CLIBS): Add LIBSUPPORT.
16574 (CDEPS): Likewise.
16575 (COMMON_SFILES): Remove gdbsupport files.
16576 (HFILES_NO_SRCDIR): Likewise.
16577 (stamp-version): Update path to create-version.sh.
16578 (ALLDEPFILES): Remove gdbsupport files.
16579
16580 2020-01-14 Tom Tromey <tom@tromey.com>
16581
16582 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16583 USE_WIN32API when needed.
16584 * configure.ac (USE_WIN32API): Don't define.
16585 (WIN32LIBS): Use WIN32APILIBS.
16586 * configure: Rebuild.
16587
16588 2020-01-14 Tom Tromey <tom@tromey.com>
16589
16590 * configure: Rebuild.
16591 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16592
16593 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16594
16595 * skip.c (skip_function_command): Make skip w/o arguments use the
16596 name of the inlined function if pc is inside any inlined function.
16597
16598 2020-01-14 Luis Machado <luis.machado@linaro.org>
16599
16600 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16601 * infrun.c (resume_1): Likewise.
16602 (handle_inferior_event): Remove stale comment.
16603 * linux-nat.c (linux_nat_target::resume): Update comments.
16604 (save_stop_reason): Likewise.
16605 (linux_nat_filter_event): Likewise.
16606 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16607
16608 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16609
16610 * elfread.c (record_minimal_symbol): Set section index to 0 for
16611 non-allocatable sections.
16612
16613
16614 2020-01-13 Ali Tamur <tamur@google.com>
16615
16616 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16617 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16618 to gdb::optional. Update comments.
16619 (dwo_file): Update comments.
16620 (read_attribute): Update API to take an additional out parameter,
16621 need_reprocess. This is used to mark attributes that need other
16622 attributes (e.g. str_offsets_base) for correct computation which may not
16623 have been read yet.
16624 (read_attribute_reprocess): New function declaration.
16625 (read_addr_index): Likewise.
16626 (read_dwo_str_index): Likewise.
16627 (read_stub_str_index): Likewise.
16628 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16629 (lookup_addr_base): New function definition.
16630 (lookup_ranges_base): Likewise.
16631 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16632 lookup_ranges_base.
16633 (init_cutu_and_read_dies): Update comments.
16634 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16635 unit. This is used to inherit parent's str_offsets_base and addr_base.
16636 Update comments.
16637 (init_cutu_and_read_dies_simple): Reflect API changes.
16638 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16639 (create_cus_hash_table): Change API to take parent compile unit.
16640 Reflect API changes.
16641 (open_and_init_dwo_file): Reflect API changes.
16642 (dwarf2_get_pc_bounds): Update comments.
16643 (dwarf2_record_block_ranges): Likewise.
16644 (read_full_die_1): Change implementation to reprocess attributes that
16645 need str_offsets_base and addr_base.
16646 (partial_die_info::read): Likewise.
16647 (read_attribute_reprocess): New function definition.
16648 (read_attribute_value): Change API to take an additional out parameter,
16649 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16650 when a non-dwo compile unit has index based attributes.
16651 (read_attribute): Reflect API changes.
16652 (read_addr_index_1): Reflect API changes. Update comments.
16653 (dwarf2_read_addr_index_data): Reflect API changes.
16654 (dwarf2_read_addr_index): Likewise.
16655 (read_str_index): Change API and implementation. This becomes a helper
16656 to be used by the new string index related methods. Update error
16657 message and comments.
16658 (read_dwo_str_index): New function definition.
16659 (read_stub_str_index): Likewise.
16660 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16661 * symfile.h (dwarf2_debug_sections): Likewise.
16662 * xcoffread.c (dwarf2_debug_sections): Likewise.
16663
16664 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16665
16666 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16667 core_reg_sect type to gdb_byte *.
16668 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16669 * cris-tdep.c (fetch_core_registers): Likewise.
16670 * corelow.c (core_target::get_core_register_section): Change
16671 type of `contents` to gdb::byte_vector.
16672
16673 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16674
16675 * tui/tui-wingeneral.c (box_win): Position the title in the center
16676 of the border.
16677
16678 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16679
16680 * corelow.c (core_target::get_core_register_section): Use
16681 std::vector instead of alloca.
16682
16683 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16684
16685 * warning.m4: Add -Wmissing-declarations to build_warnings.
16686 * configure: Re-generate.
16687
16688 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16689
16690 * python/python.c (init__gdb_module): Add declaration.
16691
16692 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16693
16694 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16695 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16696 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16697 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16698 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16699 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16700 * ada-exp.y (_initialize_ada_exp): Add declaration.
16701 * ada-lang.c (_initialize_ada_language): Add declaration.
16702 * ada-tasks.c (_initialize_tasks): Add declaration.
16703 * agent.c (_initialize_agent): Add declaration.
16704 * aix-thread.c (_initialize_aix_thread): Add declaration.
16705 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16706 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16707 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16708 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16709 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16710 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16711 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16712 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16713 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16714 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16715 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16716 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16717 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16718 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16719 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16720 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16721 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16722 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16723 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16724 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16725 * annotate.c (_initialize_annotate): Add declaration.
16726 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16727 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16728 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16729 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16730 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16731 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16732 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16733 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16734 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16735 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16736 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16737 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16738 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16739 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16740 * auto-load.c (_initialize_auto_load): Add declaration.
16741 * auxv.c (_initialize_auxv): Add declaration.
16742 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16743 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16744 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16745 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16746 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16747 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16748 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16749 * breakpoint.c (_initialize_breakpoint): Add declaration.
16750 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16751 * btrace.c (_initialize_btrace): Add declaration.
16752 * charset.c (_initialize_charset): Add declaration.
16753 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16754 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16755 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16756 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16757 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16758 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16759 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16760 * coffread.c (_initialize_coffread): Add declaration.
16761 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16762 * compile/compile.c (_initialize_compile): Add declaration.
16763 * complaints.c (_initialize_complaints): Add declaration.
16764 * completer.c (_initialize_completer): Add declaration.
16765 * copying.c (_initialize_copying): Add declaration.
16766 * corefile.c (_initialize_core): Add declaration.
16767 * corelow.c (_initialize_corelow): Add declaration.
16768 * cp-abi.c (_initialize_cp_abi): Add declaration.
16769 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16770 * cp-support.c (_initialize_cp_support): Add declaration.
16771 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16772 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16773 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16774 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16775 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16776 * ctfread.c (_initialize_ctfread): Add declaration.
16777 * d-lang.c (_initialize_d_language): Add declaration.
16778 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16779 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16780 * dbxread.c (_initialize_dbxread): Add declaration.
16781 * dcache.c (_initialize_dcache): Add declaration.
16782 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16783 * disasm.c (_initialize_disasm): Add declaration.
16784 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16785 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16786 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16787 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16788 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16789 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16790 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16791 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16792 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16793 * elfread.c (_initialize_elfread): Add declaration.
16794 * exec.c (_initialize_exec): Add declaration.
16795 * extension.c (_initialize_extension): Add declaration.
16796 * f-lang.c (_initialize_f_language): Add declaration.
16797 * f-valprint.c (_initialize_f_valprint): Add declaration.
16798 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16799 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16800 * filesystem.c (_initialize_filesystem): Add declaration.
16801 * findcmd.c (_initialize_mem_search): Add declaration.
16802 * findvar.c (_initialize_findvar): Add declaration.
16803 * fork-child.c (_initialize_fork_child): Add declaration.
16804 * frame-base.c (_initialize_frame_base): Add declaration.
16805 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16806 * frame.c (_initialize_frame): Add declaration.
16807 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16808 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16809 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16810 * gcore.c (_initialize_gcore): Add declaration.
16811 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16812 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16813 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16814 * gdbarch.c (_initialize_gdbarch): Add declaration.
16815 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16816 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16817 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16818 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16819 * go-lang.c (_initialize_go_language): Add declaration.
16820 * go32-nat.c (_initialize_go32_nat): Add declaration.
16821 * guile/guile.c (_initialize_guile): Add declaration.
16822 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16823 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16824 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16825 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16826 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16827 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16828 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16829 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16830 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16831 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16832 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16833 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16834 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16835 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16836 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16837 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16838 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16839 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16840 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16841 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16842 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16843 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16844 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16845 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16846 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16847 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16848 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16849 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16850 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16851 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16852 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16853 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16854 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16855 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16856 * infcall.c (_initialize_infcall): Add declaration.
16857 * infcmd.c (_initialize_infcmd): Add declaration.
16858 * inflow.c (_initialize_inflow): Add declaration.
16859 * infrun.c (_initialize_infrun): Add declaration.
16860 * interps.c (_initialize_interpreter): Add declaration.
16861 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16862 * jit.c (_initialize_jit): Add declaration.
16863 * language.c (_initialize_language): Add declaration.
16864 * linux-fork.c (_initialize_linux_fork): Add declaration.
16865 * linux-nat.c (_initialize_linux_nat): Add declaration.
16866 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16867 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16868 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16869 * m2-lang.c (_initialize_m2_language): Add declaration.
16870 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16871 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16872 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16873 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16874 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16875 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16876 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16877 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16878 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16879 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16880 * machoread.c (_initialize_machoread): Add declaration.
16881 * macrocmd.c (_initialize_macrocmd): Add declaration.
16882 * macroscope.c (_initialize_macroscope): Add declaration.
16883 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16884 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16885 * maint.c (_initialize_maint_cmds): Add declaration.
16886 * mdebugread.c (_initialize_mdebugread): Add declaration.
16887 * memattr.c (_initialize_mem): Add declaration.
16888 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16889 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16890 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16891 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16892 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16893 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16894 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16895 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16896 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16897 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16898 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16899 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16900 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16901 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16902 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16903 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16904 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16905 * mipsread.c (_initialize_mipsread): Add declaration.
16906 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16907 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16908 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16909 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16910 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16911 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16912 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16913 * nto-procfs.c (_initialize_procfs): Add declaration.
16914 * objc-lang.c (_initialize_objc_language): Add declaration.
16915 * observable.c (_initialize_observer): Add declaration.
16916 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16917 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16918 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16919 * osabi.c (_initialize_gdb_osabi): Add declaration.
16920 * osdata.c (_initialize_osdata): Add declaration.
16921 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16922 * parse.c (_initialize_parse): Add declaration.
16923 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16924 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16925 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16926 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16927 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16928 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16929 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16930 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16931 * printcmd.c (_initialize_printcmd): Add declaration.
16932 * probe.c (_initialize_probe): Add declaration.
16933 * proc-api.c (_initialize_proc_api): Add declaration.
16934 * proc-events.c (_initialize_proc_events): Add declaration.
16935 * proc-service.c (_initialize_proc_service): Add declaration.
16936 * procfs.c (_initialize_procfs): Add declaration.
16937 * producer.c (_initialize_producer): Add declaration.
16938 * psymtab.c (_initialize_psymtab): Add declaration.
16939 * python/python.c (_initialize_python): Add declaration.
16940 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16941 * record-btrace.c (_initialize_record_btrace): Add declaration.
16942 * record-full.c (_initialize_record_full): Add declaration.
16943 * record.c (_initialize_record): Add declaration.
16944 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16945 * regcache.c (_initialize_regcache): Add declaration.
16946 * reggroups.c (_initialize_reggroup): Add declaration.
16947 * remote-notif.c (_initialize_notif): Add declaration.
16948 * remote-sim.c (_initialize_remote_sim): Add declaration.
16949 * remote.c (_initialize_remote): Add declaration.
16950 * reverse.c (_initialize_reverse): Add declaration.
16951 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16952 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16953 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16954 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16955 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16956 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16957 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16958 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16959 Add declaration.
16960 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16961 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16962 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16963 * rust-exp.y (_initialize_rust_exp): Add declaration.
16964 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16965 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16966 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16967 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16968 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16969 * score-tdep.c (_initialize_score_tdep): Add declaration.
16970 * ser-go32.c (_initialize_ser_dos): Add declaration.
16971 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16972 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16973 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16974 * ser-uds.c (_initialize_ser_socket): Add declaration.
16975 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16976 * serial.c (_initialize_serial): Add declaration.
16977 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16978 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16979 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16980 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16981 * skip.c (_initialize_step_skip): Add declaration.
16982 * sol-thread.c (_initialize_sol_thread): Add declaration.
16983 * solib-aix.c (_initialize_solib_aix): Add declaration.
16984 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16985 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16986 * solib-frv.c (_initialize_frv_solib): Add declaration.
16987 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16988 * solib-target.c (_initialize_solib_target): Add declaration.
16989 * solib.c (_initialize_solib): Add declaration.
16990 * source-cache.c (_initialize_source_cache): Add declaration.
16991 * source.c (_initialize_source): Add declaration.
16992 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16993 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16994 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16995 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16996 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16997 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16998 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16999 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17000 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17001 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17002 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17003 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17004 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17005 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17006 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17007 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17008 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17009 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17010 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17011 * stabsread.c (_initialize_stabsread): Add declaration.
17012 * stack.c (_initialize_stack): Add declaration.
17013 * stap-probe.c (_initialize_stap_probe): Add declaration.
17014 * std-regs.c (_initialize_frame_reg): Add declaration.
17015 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17016 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17017 * symfile.c (_initialize_symfile): Add declaration.
17018 * symmisc.c (_initialize_symmisc): Add declaration.
17019 * symtab.c (_initialize_symtab): Add declaration.
17020 * target.c (_initialize_target): Add declaration.
17021 * target-connection.c (_initialize_target_connection): Add
17022 declaration.
17023 * target-dcache.c (_initialize_target_dcache): Add declaration.
17024 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17025 * thread.c (_initialize_thread): Add declaration.
17026 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17027 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17028 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17029 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17030 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17031 * tracectf.c (_initialize_ctf): Add declaration.
17032 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17033 * tracefile.c (_initialize_tracefile): Add declaration.
17034 * tracepoint.c (_initialize_tracepoint): Add declaration.
17035 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17036 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17037 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17038 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17039 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17040 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17041 * tui/tui.c (_initialize_tui): Add declaration.
17042 * typeprint.c (_initialize_typeprint): Add declaration.
17043 * ui-style.c (_initialize_ui_style): Add declaration.
17044 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17045 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17046 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17047 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17048 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17049 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17050 * unittests/filtered_iterator-selftests.c
17051 (_initialize_filtered_iterator_selftests): Add declaration.
17052 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17053 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17054 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17055 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17056 * unittests/main-thread-selftests.c
17057 (_initialize_main_thread_selftests): Add declaration.
17058 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17059 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17060 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17061 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17062 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17063 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17064 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17065 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17066 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17067 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17068 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17069 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17070 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17071 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17072 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17073 declaration.
17074 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17075 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17076 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17077 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17078 * user-regs.c (_initialize_user_regs): Add declaration.
17079 * utils.c (_initialize_utils): Add declaration.
17080 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17081 * valops.c (_initialize_valops): Add declaration.
17082 * valprint.c (_initialize_valprint): Add declaration.
17083 * value.c (_initialize_values): Add declaration.
17084 * varobj.c (_initialize_varobj): Add declaration.
17085 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17086 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17087 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17088 * windows-nat.c (_initialize_windows_nat): Add declaration.
17089 (_initialize_check_for_gdb_ini): Add declaration.
17090 (_initialize_loadable): Add declaration.
17091 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17092 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17093 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17094 * xcoffread.c (_initialize_xcoffread): Add declaration.
17095 * xml-support.c (_initialize_xml_support): Add declaration.
17096 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17097 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17098 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17099 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17100
17101 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17102
17103 * regformats/regdat.sh: Generate declaration for init function.
17104
17105 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17106
17107 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17108 up.
17109 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17110 close_one_inferior>: New methods.
17111 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17112 pass down target to find_inferior_pid.
17113 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17114 Pass down target to find_inferior_ptid.
17115 (gdbsim_target::create_inferior): Pass down target to
17116 add_thread_silent.
17117 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17118 target down to find_inferior_ptid and switch_to_thread.
17119 (gdbsim_target::close): Update to call close_one_inferior.
17120 (struct resume_data): Remove.
17121 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17122 directly, rather than through a void pointer.
17123 (gdbsim_target::resume): Update to call resume_one_inferior.
17124
17125 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17126
17127 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17128
17129 2020-01-12 Pedro Alves <palves@redhat.com>
17130
17131 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17132 directly for the current inferior instead of
17133 discard_all_inferiors.
17134 (discard_all_inferiors): Delete.
17135
17136 2020-01-11 Tom Tromey <tom@tromey.com>
17137
17138 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17139 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17140 deprecated_safe_get_selected_frame.
17141
17142 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17143
17144 * inferior.c (print_inferior): Switch inferior before printing it.
17145
17146 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17147 Pedro Alves <palves@redhat.com>
17148
17149 * progspace-and-thread.c (switch_to_program_space_and_thread):
17150 Assert there's an inferior for PSPACE. Use
17151 switch_to_inferior_no_thread to switch the inferior too.
17152 * progspace.c (program_space::~program_space): Call
17153 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17154 (program_space::free_all_objfiles): Don't call clear_symtab_users
17155 here.
17156 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17157
17158 2020-01-10 Pedro Alves <palves@redhat.com>
17159
17160 * NEWS: Mention multi-target debugging, "info connections", and
17161 "add-inferior -no-connection".
17162
17163 2020-01-10 Pedro Alves <palves@redhat.com>
17164
17165 * infrun.c: Include "target-connection.h".
17166 (check_multi_target_resumption): New.
17167 (proceed): Call it.
17168 * target-connection.c (make_target_connection_string): Make
17169 extern.
17170 * target-connection.h (make_target_connection_string): Declare.
17171
17172 2020-01-10 Pedro Alves <palves@redhat.com>
17173
17174 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17175 * inferior.c (uiout_field_connection): New function.
17176 (print_inferior): Add new "connection-id" column.
17177 (add_inferior_command): Show connection number/string of added
17178 inferior.
17179 * process-stratum-target.h
17180 (process_stratum_target::connection_string): New virtual method.
17181 (process_stratum_target::connection_number): New field.
17182 * remote.c (remote_target::connection_string): New override.
17183 * target-connection.c: New file.
17184 * target-connection.h: New file.
17185 * target.c (decref_target): Remove process_stratum targets from
17186 the connection list.
17187 (target_stack::push): Add process_stratum targets to the
17188 connection list.
17189
17190 2020-01-10 Pedro Alves <palves@redhat.com>
17191
17192 Revert:
17193 2016-04-12 Pedro Alves <palves@redhat.com>
17194 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17195 Remove references to name.
17196 * serial.h (struct serial) <name>: Delete.
17197
17198 2020-01-10 Pedro Alves <palves@redhat.com>
17199
17200 * gdbarch-selftests.c (register_to_value_test): Remove "target
17201 already pushed" check.
17202
17203 2020-01-10 Pedro Alves <palves@redhat.com>
17204 John Baldwin <jhb@FreeBSD.org>
17205
17206 * aarch64-linux-nat.c
17207 (aarch64_linux_nat_target::thread_architecture): Adjust.
17208 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17209 (task_command_1): Likewise.
17210 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17211 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17212 (aix_thread_target::store_registers)
17213 (aix_thread_target::thread_alive): Adjust.
17214 * amd64-fbsd-tdep.c: Include "inferior.h".
17215 (amd64fbsd_get_thread_local_address): Pass down target.
17216 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17217 thread's gdbarch instead of target_gdbarch.
17218 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17219 get_last_target_status.
17220 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17221 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17222 inferiors.
17223 (update_inserted_breakpoint_locations): Skip if inferiors with no
17224 execution.
17225 (update_global_location_list): When handling moribund locations,
17226 find representative inferior for location's pspace, and use thread
17227 count of its process_stratum target.
17228 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17229 * bsd-uthread.c (bsd_uthread_target::wait): Use
17230 as_process_stratum_target and adjust thread_change_ptid and
17231 add_thread calls.
17232 (bsd_uthread_target::update_thread_list): Use
17233 as_process_stratum_target and adjust find_thread_ptid,
17234 thread_change_ptid and add_thread calls.
17235 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17236 find_thread_ptid call.
17237 * corelow.c (add_to_thread_list): Adjust add_thread call.
17238 (core_target_open): Adjust add_thread_silent and thread_count
17239 calls.
17240 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17241 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17242 * event-top.c (async_disconnect): Pop targets from all inferiors.
17243 * exec.c (add_target_sections): Push exec target on all inferiors
17244 sharing the program space.
17245 (remove_target_sections): Remove the exec target from all
17246 inferiors sharing the program space.
17247 (exec_on_vfork): New.
17248 * exec.h (exec_on_vfork): Declare.
17249 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17250 Pass it down.
17251 (fbsd_nat_target::update_thread_list): Adjust.
17252 (fbsd_nat_target::resume): Adjust.
17253 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17254 down.
17255 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17256 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17257 get_thread_arch_regcache call.
17258 * fork-child.c (gdb_startup_inferior): Pass target down to
17259 startup_inferior and set_executing.
17260 * gdbthread.h (struct process_stratum_target): Forward declare.
17261 (add_thread, add_thread_silent, add_thread_with_info)
17262 (in_thread_list): Add process_stratum_target parameter.
17263 (find_thread_ptid(inferior*, ptid_t)): New overload.
17264 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17265 parameter.
17266 (all_threads()): Delete overload.
17267 (all_threads, all_non_exited_threads): Add process_stratum_target
17268 parameter.
17269 (all_threads_safe): Use brace initialization.
17270 (thread_count): Add process_stratum_target parameter.
17271 (set_resumed, set_running, set_stop_requested, set_executing)
17272 (threads_are_executing, finish_thread_state): Add
17273 process_stratum_target parameter.
17274 (switch_to_thread): Use is_current_thread.
17275 * i386-fbsd-tdep.c: Include "inferior.h".
17276 (i386fbsd_get_thread_local_address): Pass down target.
17277 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17278 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17279 have_inferiors check.
17280 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17281 (inf_ptrace_target::attach): Adjust.
17282 * infcall.c (run_inferior_call): Adjust.
17283 * infcmd.c (run_command_1): Pass target to
17284 scoped_finish_thread_state.
17285 (proceed_thread_callback): Skip inferiors with no execution.
17286 (continue_command): Rename 'all_threads' local to avoid hiding
17287 'all_threads' function. Adjust get_last_target_status call.
17288 (prepare_one_step): Adjust set_running call.
17289 (signal_command): Use user_visible_resume_target. Compare thread
17290 pointers instead of inferior_ptid.
17291 (info_program_command): Adjust to pass down target.
17292 (attach_command): Mark target's 'thread_executing' flag.
17293 (stop_current_target_threads_ns): New, factored out from ...
17294 (interrupt_target_1): ... this. Switch inferior before making
17295 target calls.
17296 * inferior-iter.h
17297 (struct all_inferiors_iterator, struct all_inferiors_range)
17298 (struct all_inferiors_safe_range)
17299 (struct all_non_exited_inferiors_range): Filter on
17300 process_stratum_target too. Remove explicit.
17301 * inferior.c (inferior::inferior): Push dummy target on target
17302 stack.
17303 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17304 Add process_stratum_target parameter, and pass it down.
17305 (have_live_inferiors): Adjust.
17306 (switch_to_inferior_and_push_target): New.
17307 (add_inferior_command, clone_inferior_command): Handle
17308 "-no-connection" parameter. Use
17309 switch_to_inferior_and_push_target.
17310 (_initialize_inferior): Mention "-no-connection" option in
17311 the help of "add-inferior" and "clone-inferior" commands.
17312 * inferior.h: Include "process-stratum-target.h".
17313 (interrupt_target_1): Use bool.
17314 (struct inferior) <push_target, unpush_target, target_is_pushed,
17315 find_target_beneath, top_target, process_target, target_at,
17316 m_stack>: New.
17317 (discard_all_inferiors): Delete.
17318 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17319 (all_inferiors, all_non_exited_inferiors): Add
17320 process_stratum_target parameter.
17321 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17322 (target_last_proc_target): New global.
17323 (follow_fork_inferior): Push target on new inferior. Pass target
17324 to add_thread_silent. Call exec_on_vfork. Handle target's
17325 reference count.
17326 (follow_fork): Adjust get_last_target_status call. Also consider
17327 target.
17328 (follow_exec): Push target on new inferior.
17329 (struct execution_control_state) <target>: New field.
17330 (user_visible_resume_target): New.
17331 (do_target_resume): Call target_async.
17332 (resume_1): Set target's threads_executing flag. Consider resume
17333 target.
17334 (commit_resume_all_targets): New.
17335 (proceed): Also consider resume target. Skip threads of inferiors
17336 with no execution. Commit resumtion in all targets.
17337 (start_remote): Pass current inferior to wait_for_inferior.
17338 (infrun_thread_stop_requested): Consider target as well. Pass
17339 thread_info pointer to clear_inline_frame_state instead of ptid.
17340 (infrun_thread_thread_exit): Consider target as well.
17341 (random_pending_event_thread): New inferior parameter. Use it.
17342 (do_target_wait): Rename to ...
17343 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17344 down.
17345 (threads_are_resumed_pending_p, do_target_wait): New.
17346 (prepare_for_detach): Adjust calls.
17347 (wait_for_inferior): New inferior parameter. Handle it. Use
17348 do_target_wait_1 instead of do_target_wait.
17349 (fetch_inferior_event): Adjust. Switch to representative
17350 inferior. Pass target down.
17351 (set_last_target_status): Add process_stratum_target parameter.
17352 Save target in global.
17353 (get_last_target_status): Add process_stratum_target parameter and
17354 handle it.
17355 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17356 (context_switch): Check inferior_ptid == null_ptid before calling
17357 inferior_thread().
17358 (get_inferior_stop_soon): Pass down target.
17359 (wait_one): Rename to ...
17360 (poll_one_curr_target): ... this.
17361 (struct wait_one_event): New.
17362 (wait_one): New.
17363 (stop_all_threads): Adjust.
17364 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17365 event's target.
17366 (switch_back_to_stepped_thread): Also consider target.
17367 (print_stop_event): Update.
17368 (normal_stop): Update. Also consider the resume target.
17369 * infrun.h (wait_for_inferior): Remove declaration.
17370 (user_visible_resume_target): New declaration.
17371 (get_last_target_status, set_last_target_status): New
17372 process_stratum_target parameter.
17373 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17374 process_stratum_target parameter, and use it.
17375 (clear_inline_frame_state (thread_info*)): New.
17376 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17377 process_stratum_target parameter.
17378 (clear_inline_frame_state (thread_info*)): Declare.
17379 * linux-fork.c (delete_checkpoint_command): Pass target down to
17380 find_thread_ptid.
17381 (checkpoint_command): Adjust.
17382 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17383 instead of just tweaking inferior_ptid.
17384 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17385 (exit_lwp): Pass target down to find_thread_ptid.
17386 (attach_proc_task_lwp_callback): Pass target down to
17387 add_thread/set_running/set_executing.
17388 (linux_nat_target::attach): Pass target down to
17389 thread_change_ptid.
17390 (get_detach_signal): Pass target down to find_thread_ptid.
17391 Consider last target status's target.
17392 (linux_resume_one_lwp_throw, resume_lwp)
17393 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17394 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17395 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17396 (linux_nat_target::async_wait_fd): New.
17397 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17398 target down.
17399 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17400 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17401 * linux-thread-db.c (struct thread_db_info::process_target): New
17402 field.
17403 (add_thread_db_info): Save target.
17404 (get_thread_db_info): New process_stratum_target parameter. Also
17405 match target.
17406 (delete_thread_db_info): New process_stratum_target parameter.
17407 Also match target.
17408 (thread_from_lwp): Adjust to pass down target.
17409 (thread_db_notice_clone): Pass down target.
17410 (check_thread_db_callback): Pass down target.
17411 (try_thread_db_load_1): Always push the thread_db target.
17412 (try_thread_db_load, record_thread): Pass target down.
17413 (thread_db_target::detach): Pass target down. Always unpush the
17414 thread_db target.
17415 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17416 target down. Always unpush the thread_db target.
17417 (find_new_threads_callback, thread_db_find_new_threads_2)
17418 (thread_db_target::update_thread_list): Pass target down.
17419 (thread_db_target::pid_to_str): Pass current inferior down.
17420 (thread_db_target::get_thread_local_address): Pass target down.
17421 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17422 target down.
17423 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17424 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17425 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17426 (procfs_init_inferior): Rename to ...
17427 (procfs_target::procfs_init_inferior): ... this and adjust.
17428 (procfs_target::create_inferior, procfs_notice_thread)
17429 (procfs_do_thread_registers): Adjust.
17430 * ppc-fbsd-tdep.c: Include "inferior.h".
17431 (ppcfbsd_get_thread_local_address): Pass down target.
17432 * proc-service.c (ps_xfer_memory): Switch current inferior and
17433 program space as well.
17434 (get_ps_regcache): Pass target down.
17435 * process-stratum-target.c
17436 (process_stratum_target::thread_address_space)
17437 (process_stratum_target::thread_architecture): Pass target down.
17438 * process-stratum-target.h
17439 (process_stratum_target::threads_executing): New field.
17440 (as_process_stratum_target): New.
17441 * ravenscar-thread.c
17442 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17443 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17444 down.
17445 * record-btrace.c (record_btrace_target::info_record): Adjust.
17446 (record_btrace_target::record_method)
17447 (record_btrace_target::record_is_replaying)
17448 (record_btrace_target::fetch_registers)
17449 (get_thread_current_frame_id, record_btrace_target::resume)
17450 (record_btrace_target::wait, record_btrace_target::stop): Pass
17451 target down.
17452 * record-full.c (record_full_wait_1): Switch to event thread.
17453 Pass target down.
17454 * regcache.c (regcache::regcache)
17455 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17456 process_stratum_target parameter and handle it.
17457 (current_thread_target): New global.
17458 (get_thread_regcache): Add process_stratum_target parameter and
17459 handle it. Switch inferior before calling target method.
17460 (get_thread_regcache): Pass target down.
17461 (get_thread_regcache_for_ptid): Pass target down.
17462 (registers_changed_ptid): Add process_stratum_target parameter and
17463 handle it.
17464 (registers_changed_thread, registers_changed): Pass target down.
17465 (test_get_thread_arch_aspace_regcache): New.
17466 (current_regcache_test): Define a couple local test_target_ops
17467 instances and use them for testing.
17468 (readwrite_regcache): Pass process_stratum_target parameter.
17469 (cooked_read_test, cooked_write_test): Pass mock_target down.
17470 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17471 (get_thread_arch_aspace_regcache): Add process_stratum_target
17472 parameter.
17473 (regcache::target): New method.
17474 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17475 (regcache::registers_changed_ptid): Add process_stratum_target
17476 parameter.
17477 (regcache::m_target): New field.
17478 (registers_changed_ptid): Add process_stratum_target parameter.
17479 * remote.c (remote_state::supports_vCont_probed): New field.
17480 (remote_target::async_wait_fd): New method.
17481 (remote_unpush_and_throw): Add remote_target parameter.
17482 (get_current_remote_target): Adjust.
17483 (remote_target::remote_add_inferior): Push target.
17484 (remote_target::remote_add_thread)
17485 (remote_target::remote_notice_new_inferior)
17486 (get_remote_thread_info): Pass target down.
17487 (remote_target::update_thread_list): Skip threads of inferiors
17488 bound to other targets. (remote_target::close): Don't discard
17489 inferiors. (remote_target::add_current_inferior_and_thread)
17490 (remote_target::process_initial_stop_replies)
17491 (remote_target::start_remote)
17492 (remote_target::remote_serial_quit_handler): Pass down target.
17493 (remote_target::remote_unpush_target): New remote_target
17494 parameter. Unpush the target from all inferiors.
17495 (remote_target::remote_unpush_and_throw): New remote_target
17496 parameter. Pass it down.
17497 (remote_target::open_1): Check whether the current inferior has
17498 execution instead of checking whether any inferior is live. Pass
17499 target down.
17500 (remote_target::remote_detach_1): Pass down target. Use
17501 remote_unpush_target.
17502 (extended_remote_target::attach): Pass down target.
17503 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17504 (remote_target::append_resumption): Pass down target.
17505 (remote_target::append_pending_thread_resumptions)
17506 (remote_target::remote_resume_with_hc, remote_target::resume)
17507 (remote_target::commit_resume): Pass down target.
17508 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17509 (remote_target::interrupt_query)
17510 (remote_target::remove_new_fork_children)
17511 (remote_target::check_pending_events_prevent_wildcard_vcont)
17512 (remote_target::remote_parse_stop_reply)
17513 (remote_target::process_stop_reply): Pass down target.
17514 (first_remote_resumed_thread): New remote_target parameter. Pass
17515 it down.
17516 (remote_target::wait_as): Pass down target.
17517 (unpush_and_perror): New remote_target parameter. Pass it down.
17518 (remote_target::readchar, remote_target::remote_serial_write)
17519 (remote_target::getpkt_or_notif_sane_1)
17520 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17521 down target.
17522 (remote_target::mourn_inferior): Pass down target. Use
17523 remote_unpush_target.
17524 (remote_target::core_of_thread)
17525 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17526 (remote_target::pid_to_exec_file)
17527 (remote_target::thread_handle_to_thread_info): Pass down target.
17528 (remote_target::async_wait_fd): New.
17529 * riscv-fbsd-tdep.c: Include "inferior.h".
17530 (riscv_fbsd_get_thread_local_address): Pass down target.
17531 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17532 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17533 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17534 Adjust.
17535 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17536 * solib-svr4.c (enable_break): Pass down target.
17537 * spu-multiarch.c (parse_spufs_run): Pass down target.
17538 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17539 * target-delegates.c: Regenerate.
17540 * target.c (g_target_stack): Delete.
17541 (current_top_target): Return the current inferior's top target.
17542 (target_has_execution_1): Refer to the passed-in inferior's top
17543 target.
17544 (target_supports_terminal_ours): Check whether the initial
17545 inferior was already created.
17546 (decref_target): New.
17547 (target_stack::push): Incref/decref the target.
17548 (push_target, push_target, unpush_target): Adjust.
17549 (target_stack::unpush): Defref target.
17550 (target_is_pushed): Return bool. Adjust to refer to the current
17551 inferior's target stack.
17552 (dispose_inferior): Delete, and inline parts ...
17553 (target_preopen): ... here. Only dispose of the current inferior.
17554 (target_detach): Hold strong target reference while detaching.
17555 Pass target down.
17556 (target_thread_name): Add assertion.
17557 (target_resume): Pass down target.
17558 (target_ops::beneath, find_target_at): Adjust to refer to the
17559 current inferior's target stack.
17560 (get_dummy_target): New.
17561 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17562 has a thread running.
17563 (initialize_targets): Rename to ...
17564 (_initialize_target): ... this.
17565 * target.h: Include "gdbsupport/refcounted-object.h".
17566 (struct target_ops): Inherit refcounted_object.
17567 (target_ops::shortname, target_ops::longname): Make const.
17568 (target_ops::async_wait_fd): New method.
17569 (decref_target): Declare.
17570 (struct target_ops_ref_policy): New.
17571 (target_ops_ref): New typedef.
17572 (get_dummy_target): Declare function.
17573 (target_is_pushed): Return bool.
17574 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17575 (all_matching_threads_iterator::all_matching_threads_iterator):
17576 Handle filter target.
17577 * thread-iter.h (struct all_matching_threads_iterator, struct
17578 all_matching_threads_range, class all_non_exited_threads_range):
17579 Filter by target too. Remove explicit.
17580 * thread.c (threads_executing): Delete.
17581 (inferior_thread): Pass down current inferior.
17582 (clear_thread_inferior_resources): Pass down thread pointer
17583 instead of ptid_t.
17584 (add_thread_silent, add_thread_with_info, add_thread): Add
17585 process_stratum_target parameter. Use it for thread and inferior
17586 searches.
17587 (is_current_thread): New.
17588 (thread_info::deletable): Use it.
17589 (find_thread_ptid, thread_count, in_thread_list)
17590 (thread_change_ptid, set_resumed, set_running): New
17591 process_stratum_target parameter. Pass it down.
17592 (set_executing): New process_stratum_target parameter. Pass it
17593 down. Adjust reference to 'threads_executing'.
17594 (threads_are_executing): New process_stratum_target parameter.
17595 Adjust reference to 'threads_executing'.
17596 (set_stop_requested, finish_thread_state): New
17597 process_stratum_target parameter. Pass it down.
17598 (switch_to_thread): Also match inferior.
17599 (switch_to_thread): New process_stratum_target parameter. Pass it
17600 down.
17601 (update_threads_executing): Reimplement.
17602 * top.c (quit_force): Pop targets from all inferior.
17603 (gdb_init): Don't call initialize_targets.
17604 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17605 Declare.
17606 (windows_add_thread, windows_delete_thread): Adjust.
17607 (get_windows_debug_event): Rename to ...
17608 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17609 * tracefile-tfile.c (tfile_target_open): Pass down target.
17610 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17611 Forward declare.
17612 (switch_to_thread): Add process_stratum_target parameter.
17613 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17614 parameter. Use it.
17615 (mi_on_resume): Pass target down.
17616 * nat/fork-inferior.c (startup_inferior): Add
17617 process_stratum_target parameter. Pass it down.
17618 * nat/fork-inferior.h (startup_inferior): Add
17619 process_stratum_target parameter.
17620 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17621
17622 2020-01-10 Pedro Alves <palves@redhat.com>
17623
17624 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17625 directly. Instead find the first thread in the thread list and
17626 use switch_to_thread.
17627
17628 2020-01-10 Pedro Alves <palves@redhat.com>
17629
17630 * remote.c (remote_target::remote_add_inferior): Don't bind a
17631 process to the current inferior if the current inferior is already
17632 bound to a process.
17633
17634 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17635 Pedro Alves <palves@redhat.com>
17636
17637 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17638 If no process is specified, return null_ptid instead of
17639 inferior_ptid.
17640 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17641 TARGET_WAITKIND_SIGNALLED with no pid.
17642
17643 2020-01-10 Pedro Alves <palves@redhat.com>
17644
17645 * remote.c (first_remote_resumed_thread): New.
17646 (remote_target::wait_as): Use it as default event_ptid instead of
17647 inferior_ptid.
17648
17649 2020-01-10 Pedro Alves <palves@redhat.com>
17650
17651 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17652
17653 2020-01-10 Pedro Alves <palves@redhat.com>
17654
17655 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17656 not -1.
17657
17658 2020-01-10 Pedro Alves <palves@redhat.com>
17659
17660 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17661 ptid to get_last_target_status.
17662 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17663 ptid to get_last_target_status.
17664 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17665 get_last_target_status.
17666 (info_program_command): Don't pass a target_waitstatus to
17667 get_last_target_status.
17668 * infrun.c (init_wait_for_inferior): Use
17669 nullify_last_target_wait_ptid.
17670 (get_last_target_status): Handle nullptr arguments.
17671 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17672 (print_stop_event): Don't pass a ptid to get_last_target_status.
17673 (normal_stop): Don't pass a ptid to get_last_target_status.
17674 * infrun.h (get_last_target_status, set_last_target_status): Move
17675 comments here and update.
17676 (nullify_last_target_wait_ptid): Declare.
17677 * linux-fork.c (fork_load_infrun_state): Remove local extern
17678 declaration of nullify_last_target_wait_ptid.
17679 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17680 to get_last_target_status.
17681
17682 2020-01-10 Pedro Alves <palves@redhat.com>
17683
17684 * gdbthread.h (scoped_restore_current_thread)
17685 <dont_restore, restore, m_dont_restore>: Declare.
17686 * thread.c (thread_alive): Add assertion. Return bool.
17687 (switch_to_thread_if_alive): New.
17688 (prune_threads): Switch inferior/thread.
17689 (print_thread_info_1): Switch thread before calling target methods.
17690 (scoped_restore_current_thread::restore): New, factored out from
17691 ...
17692 (scoped_restore_current_thread::~scoped_restore_current_thread):
17693 ... this.
17694 (scoped_restore_current_thread::scoped_restore_current_thread):
17695 Add assertion.
17696 (thread_apply_all_command, thread_select): Use
17697 switch_to_thread_if_alive.
17698 * infrun.c (proceed, restart_threads, handle_signal_stop)
17699 (switch_back_to_stepped_thread): Switch current thread before
17700 calling target methods.
17701
17702 2020-01-10 Pedro Alves <palves@redhat.com>
17703
17704 * inferior.c (switch_to_inferior_no_thread): New function,
17705 factored out from ...
17706 (inferior_command): ... here.
17707 * inferior.h (switch_to_inferior_no_thread): Declare.
17708 * mi/mi-main.c (run_one_inferior): Use
17709 switch_to_inferior_no_thread.
17710
17711 2020-01-10 Pedro Alves <palves@redhat.com>
17712
17713 * infcmd.c (kill_command): Remove dead code.
17714
17715 2020-01-10 Pedro Alves <palves@redhat.com>
17716
17717 * remote.c (remote_target::mourn_inferior): No longer check
17718 whether the target is running.
17719
17720 2020-01-10 Pedro Alves <palves@redhat.com>
17721
17722 * corelow.c (core_target::has_execution): Change parameter type to
17723 inferior pointer.
17724 * inferior.c (number_of_live_inferiors): Use
17725 inferior::has_execution instead of target_has_execution_1.
17726 * inferior.h (inferior::has_execution): New.
17727 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17728 inferior::has_execution instead of target_has_execution_1.
17729 * process-stratum-target.c
17730 (process_stratum_target::has_execution): Change parameter type to
17731 inferior pointer. Check the inferior's PID instead of
17732 inferior_ptid.
17733 * process-stratum-target.h
17734 (process_stratum_target::has_execution): Change parameter type to
17735 inferior pointer.
17736 * record-full.c (record_full_core_target::has_execution): Change
17737 parameter type to inferior pointer.
17738 * target.c (target_has_execution_1): Change parameter type to
17739 inferior pointer.
17740 (target_has_execution_current): Adjust.
17741 * target.h (target_ops::has_execution): Change parameter type to
17742 inferior pointer.
17743 (target_has_execution_1): Change parameter type to inferior
17744 pointer. Change return type to bool.
17745 * tracefile.h (tracefile_target::has_execution): Change parameter
17746 type to inferior pointer.
17747
17748 2020-01-10 Pedro Alves <palves@redhat.com>
17749
17750 * exceptions.c (print_flush): Remove current_top_target() check.
17751
17752 2020-01-10 Pedro Alves <palves@redhat.com>
17753
17754 * remote.c (show_remote_exec_file): Show the current inferior's
17755 exec-file instead of the command variable's value.
17756
17757 2020-01-10 Pedro Alves <palves@redhat.com>
17758
17759 * record-full.c (record_full_resume_ptid): New global.
17760 (record_full_target::resume): Set it.
17761 (record_full_wait_1): Use record_full_resume_ptid instead of
17762 inferior_ptid.
17763
17764 2020-01-10 Pedro Alves <palves@redhat.com>
17765
17766 * gdbthread.h (scoped_restore_current_thread)
17767 <dont_restore, restore, m_dont_restore>: Declare.
17768 * thread.c (thread_alive): Add assertion. Return bool.
17769 (switch_to_thread_if_alive): New.
17770 (prune_threads): Switch inferior/thread.
17771 (print_thread_info_1): Switch thread before calling target methods.
17772 (scoped_restore_current_thread::restore): New, factored out from
17773 ...
17774 (scoped_restore_current_thread::~scoped_restore_current_thread):
17775 ... this.
17776 (scoped_restore_current_thread::scoped_restore_current_thread):
17777 Add assertion.
17778 (thread_apply_all_command, thread_select): Use
17779 switch_to_thread_if_alive.
17780
17781 2020-01-10 George Barrett <bob@bob131.so>
17782
17783 * stap-probe.c (stap_modify_semaphore): Don't check for null
17784 semaphores.
17785 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17786 for null semaphores.
17787
17788 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17789
17790 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17791 all source windows, and maintain horizontal scroll status while
17792 doing so.
17793
17794 2020-01-09 Tom Tromey <tom@tromey.com>
17795
17796 PR tui/18932:
17797 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17798 update_source_window, not print_source_lines.
17799
17800 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17801
17802 * tui/tui.c (tui_enable): Register tui hooks after calling
17803 tui_display_main.
17804
17805 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17806
17807 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17808
17809 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17810
17811 * thread.c (print_thread_info_1): Fix indentation.
17812
17813 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17814
17815 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17816 unique_xmalloc_ptr outside the if to always free the demangled name.
17817
17818 2020-01-08 Tom Tromey <tromey@adacore.com>
17819
17820 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17821 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17822 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17823 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17824 Remove.
17825 (section_offsets): New typedef.
17826 * symtab.c (fixup_section, get_msymbol_address): Update.
17827 * symmisc.c (dump_msymbols): Update.
17828 * symfile.h (relative_addr_info_to_section_offsets)
17829 (symfile_map_offsets_to_segments): Update.
17830 * symfile.c (build_section_addr_info_from_objfile)
17831 (init_objfile_sect_indices): Update.
17832 (struct place_section_arg): Change type of "offsets".
17833 (place_section): Update.
17834 (relative_addr_info_to_section_offsets): Change type of
17835 "section_offsets". Remove "num_sections" parameter.
17836 (default_symfile_offsets, syms_from_objfile_1)
17837 (set_objfile_default_section_offset): Update.
17838 (reread_symbols): No need to preserve section offsets by hand.
17839 (symfile_map_offsets_to_segments): Change type of "offsets".
17840 * stap-probe.c (relocate_address): Update.
17841 * stabsread.h (process_one_symbol): Update.
17842 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17843 (solib_target_relocate_section_addresses): Update.
17844 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17845 Update.
17846 * solib-frv.c (frv_relocate_main_executable): Update.
17847 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17848 * solib-aix.c (solib_aix_get_section_offsets): Change return
17849 type.
17850 (solib_aix_solib_create_inferior_hook): Update.
17851 * remote.c (remote_target::get_offsets): Update.
17852 * psymtab.c (find_pc_sect_psymtab): Update.
17853 * psympriv.h (struct partial_symbol) <address, text_low,
17854 text_high>: Update.
17855 * objfiles.h (obj_section_offset): Update.
17856 (struct objfile) <section_offsets>: Change type.
17857 <num_sections>: Remove.
17858 (objfile_relocate): Update.
17859 * objfiles.c (entry_point_address_query): Update
17860 (relocate_one_symbol): Change type of "section_offsets".
17861 (objfile_relocate1, objfile_relocate1): Change type of
17862 "new_offsets".
17863 (objfile_rebase1): Update.
17864 * mipsread.c (mipscoff_symfile_read): Update.
17865 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17866 parameter.
17867 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17868 (parse_external, psymtab_to_symtab_1): Update.
17869 * machoread.c (macho_symfile_offsets): Update.
17870 * ia64-tdep.c (ia64_find_unwind_table): Update.
17871 * hppa-tdep.c (read_unwind_info): Update.
17872 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17873 * dwarf2read.c (create_addrmap_from_index)
17874 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17875 (process_psymtab_comp_unit_reader, add_partial_symbol)
17876 (add_partial_subprogram, process_full_comp_unit)
17877 (read_file_scope, read_func_scope, read_lexical_block_scope)
17878 (read_call_site_scope, dwarf2_rnglists_process)
17879 (dwarf2_ranges_process, dwarf2_ranges_read)
17880 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17881 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17882 Update.
17883 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17884 Update.
17885 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17886 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17887 (process_one_symbol): Change type of "section_offsets".
17888 * ctfread.c (get_objfile_text_range): Update.
17889 * coffread.c (coff_symtab_read, enter_linenos)
17890 (process_coff_symbol): Update.
17891 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17892 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17893
17894 2020-01-08 Tom Tromey <tromey@adacore.com>
17895
17896 * dwarf2read.c (parse_macro_definition): Use std::string.
17897 (parse_macro_definition): Likewise.
17898
17899 2020-01-08 Tom Tromey <tromey@adacore.com>
17900
17901 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17902 (ATTR_ALLOC_CHUNK): Remove.
17903
17904 2020-01-08 Tom Tromey <tromey@adacore.com>
17905
17906 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17907
17908 2020-01-08 Tom Tromey <tromey@adacore.com>
17909
17910 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17911 (dwarf2_compute_name, open_dwo_file): Likewise.
17912 (process_enumeration_scope): Use std::vector.
17913 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17914 (partial_die_info::fixup, dwarf2_start_subfile)
17915 (guess_full_die_structure_name, dwarf2_name): Likewise.
17916 (determine_prefix): Update.
17917 (guess_full_die_structure_name): Make return type const.
17918 (partial_die_full_name): Return unique_xmalloc_ptr.
17919 (DW_FIELD_ALLOC_CHUNK): Remove.
17920
17921 2020-01-07 Tom Tromey <tromey@adacore.com>
17922
17923 PR build/24937:
17924 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17925
17926 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17927
17928 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17929
17930 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17931
17932 * stack.c (print_frame_info): Move disassemble_next_line code
17933 inside source_print block.
17934
17935 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17936
17937 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17938 gdb/signals.h, as we are now using native signal symbols.
17939
17940 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17941
17942 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17943 overflow by an early check of content vs threshold.
17944 * tui/tui-source.c (tui_source_window::line_is_displayed):
17945 Likewise.
17946
17947 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17948
17949 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17950
17951 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17952
17953 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17954 export table if no section contains it's RVA.
17955
17956 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17957
17958 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17959
17960 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17961
17962 * source.c (print_source_lines_base): Set last_line_listed.
17963
17964 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17965
17966 * tui/tui-disasm.c: Remove trailing spaces.
17967
17968 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17969 Pedro Alves <palves@redhat.com>
17970
17971 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17972 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17973 (windows_gdb_signal_to_target): New function, uses the above
17974 enumeration to convert GDB internal signal codes to equivalent
17975 Windows codes.
17976 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17977 * windows-nat.c: Include "gdb_wait.h".
17978 (get_windows_debug_event): Extract the fatal exception from the
17979 exit status and convert to the equivalent Posix signal number.
17980 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17981 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17982 * gdbsupport/gdb_wait.c: New file, implements
17983 windows_status_to_termsig.
17984 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17985 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17986
17987 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17988
17989 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17990 show_layout.
17991
17992 2020-01-05 Luis Machado <luis.machado@linaro.org>
17993
17994 * aarch64-linux-nat.c
17995 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17996 and bfd_mach_aarch64.
17997
17998 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17999
18000 * ui-file.c (stdio_file::can_emit_style_escape)
18001 (tee_file::can_emit_style_escape): Ensure style is used also on
18002 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18003 to gdb_stdout.
18004 * main.c (set_gdb_data_directory): Use file style to output the
18005 warning that the given pathname is not a directory.
18006 * top.c (show_history_filename, gdb_safe_append_history)
18007 (show_gdb_datadir): Use file style.
18008
18009 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18010
18011 * solib-target.c (struct lm_info_target):
18012 Change offsets to be a unique_xmalloc_ptr.
18013 (solib_target_relocate_section_addresses): Update.
18014
18015 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18016
18017 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18018
18019 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18020
18021 * MAINTAINERS (Write After Approval): Add myself.
18022
18023 2020-01-02 Luis Machado <luis.machado@linaro.org>
18024
18025 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18026 Cell BE architecture.
18027 * target.h (struct target_ops) <thread_architecture>: Likewise.
18028
18029 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18030
18031 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18032
18033 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18034
18035 * MAINTAINERS (Write After Approval): Add myself.
18036
18037 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18038
18039 * gdbarch.sh: Update copyright year range of generated files.
18040
18041 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18042
18043 Update copyright year range in all GDB files.
18044
18045 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18046
18047 * copyright.py: Convert to Python 3.
18048
18049 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18050
18051 * copyright.py: Adapt after move of gnulib directory from gdb
18052 directory to toplevel directory.
18053
18054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18055
18056 * copyright.py (main): Exit if run from the wrong directory.
18057
18058 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18059
18060 * top.c (print_gdb_version): Change copyright year to 2020.
18061
18062 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18063
18064 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18065
18066 For older changes see ChangeLog-2019.
18067 \f
18068 Local Variables:
18069 mode: change-log
18070 left-margin: 8
18071 fill-column: 74
18072 version-control: never
18073 coding: utf-8
18074 End:
This page took 0.402418 seconds and 5 git commands to generate.