Fix off-by-one error in ada_fold_name
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-10 Kevin Buettner <kevinb@redhat.com>
2
3 * ada-lang.c (ada_fold_name): Fix off-by-one error.
4
5 2020-12-10 Luis Machado <luis.machado@linaro.org>
6
7 * breakpoint.c (should_be_inserted): Don't output newline.
8
9 2020-12-10 Luis Machado <luis.machado@linaro.org>
10
11 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
12 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
13 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
14 * arch/aarch64.h: ... here.
15 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
16 (aarch64_maybe_swab128): New function.
17 (aarch64_sve_regs_copy_to_reg_buf)
18 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
19 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
20 the data field.
21 (TF_REG_VALUE_BYTES): New enum value.
22 (trad_frame_value_bytes_p): New function.
23 (trad_frame_set_value_bytes): New function.
24 (trad_frame_set_reg_value_bytes): New function.
25 (trad_frame_get_prev_register): Handle register values saved as bytes.
26 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
27 (struct trad_frame_saved_reg) <data>: New field.
28 (trad_frame_set_value_bytes): New prototype.
29 (trad_frame_value_bytes_p): New prototype.
30
31 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
32
33 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
34 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
35 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
36
37 2020-12-09 Tom Tromey <tromey@adacore.com>
38
39 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
40
41 2020-12-09 Tom Tromey <tromey@adacore.com>
42
43 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
44 and "denominator" to gdb_mpz. Handle block forms.
45 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
46 "denominator" to gdb_mpz.
47 (finish_fixed_point_type): Update.
48 (has_zero_over_zero_small_attribute): Update.
49
50 2020-12-09 Tom Tromey <tromey@adacore.com>
51
52 * expprint.c (op_name): Update.
53 * expression.h (enum exp_opcode): Update.
54 * std-operator.def: Add more opcodes.
55 * ada-operator.def, fortran-operator.def: Remove, moving contents
56 into std-operator.def.
57
58 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
61 Return {} instead of false.
62 (get_discrete_bounds): Compute high bound only if low bound is
63 valid.
64
65 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
66
67 PR 26875, PR 26901
68 * gdbtypes.c (get_discrete_low_bound): Make non-static.
69 (get_discrete_high_bound): Make non-static.
70 * gdbtypes.h (get_discrete_low_bound): New declaration.
71 (get_discrete_high_bound): New declaration.
72 * valarith.c (value_subscript): Only fetch high bound if
73 necessary.
74
75 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
76
77 * gdbtypes.c (get_discrete_bounds): Implement with
78 get_discrete_low_bound and get_discrete_high_bound.
79 (get_discrete_low_bound): New.
80 (get_discrete_high_bound): New.
81
82 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
83
84 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
85 callers.
86 * gdbtypes.c (get_discrete_bounds): Return bool.
87
88 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
89
90 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
91 (ada_value_slice): Adjust.
92 (pos_atr): Adjust.
93 * gdbtypes.c (get_discrete_bounds): Adjust.
94 (discrete_position): Return optional.
95 * gdbtypes.h (discrete_position): Return optional.
96
97 2020-12-07 Tom Tromey <tromey@adacore.com>
98
99 * maint.c (_initialize_maint_cmds): Use expression command
100 completer for "maint print type".
101
102 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103
104 * completer.c (complete_explicit_location): Also add keywords
105 that start with '-' to the completion list.
106
107 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
108
109 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
110 keyword may be followed by any keyword.
111 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
112 'toklen' in the case for "-force-condition".
113
114 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
115
116 * main.c (catch_command_errors): Add a flag parameter; invoke
117 `bpstat_do_actions` if the flag is set.
118 (execute_cmdargs): Update a call to `catch_command_errors`.
119
120 2020-12-07 Tom de Vries <tdevries@suse.de>
121
122 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
123
124 2020-12-06 Tom Tromey <tom@tromey.com>
125
126 PR ada/26999
127 * ada-lang.c (replace_operator_with_call): Rewrite.
128
129 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
130
131 PR breakpoints/27009
132 * s390-tdep.h (op_bc): Correct BC opcode value.
133
134 2020-12-06 Joel Brobecker <brobecker@adacore.com>
135
136 * gmp-utils.h (gdb_mpz::safe_export): New private method.
137 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
138 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
139 (gdb_mpz::safe_export): New method.
140 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
141 Update function description.
142 (check_as_integer_raises_out_of_range_error): New function.
143 (gdb_mpz_as_integer_out_of_range): New function.
144 (_initialize_gmp_utils_selftests): Register
145 gdb_mpz_as_integer_out_of_range as a selftest.
146
147 2020-12-05 Joel Brobecker <brobecker@adacore.com>
148
149 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
150 TARGET_CHAR_BIT.
151 (gdb_mpz::write): Likewise.
152
153 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
154
155 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
156 number of displaced step buffers.
157
158 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
159
160 * displaced-stepping.h (struct displaced_step_buffer): Rename
161 to...
162 (struct displaced_step_buffers): ... this.
163 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
164 <struct displaced_step_buffer>: New inner class.
165 <m_buffers>: New.
166 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
167 to...
168 (displaced_step_buffers::prepare): ... this, adjust for multiple
169 buffers.
170 (displaced_step_buffer::finish): Rename to...
171 (displaced_step_buffers::finish): ... this, adjust for multiple
172 buffers.
173 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
174 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
175 adjust for multiple buffers.
176 (displaced_step_buffer::restore_in_ptid): Rename to...
177 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
178 multiple buffers.
179 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
180 for num_disp_step_buffers.
181 * linux-tdep.c (struct linux_gdbarch_data)
182 <num_disp_step_buffers>: New field.
183 (struct linux_info) <disp_step_buf>: Rename to...
184 <disp_step_bufs>: ... this, change type to
185 displaced_step_buffers.
186 (linux_displaced_step_prepare): Use
187 linux_gdbarch_data::num_disp_step_buffers to create that number
188 of buffers.
189 (linux_displaced_step_finish): Adjust.
190 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
191 (linux_displaced_step_restore_all_in_ptid): Adjust.
192 (linux_init_abi): Change supports_displaced_step parameter for
193 num_disp_step_buffers, save it in linux_gdbarch_data.
194 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
195 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
196 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
197 supports_displaced_step parameter for num_disp_step_buffers.
198 (amd64_linux_init_abi): Adjust.
199 (amd64_x32_linux_init_abi): Adjust.
200 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
201 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
202 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
203 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
204 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
205 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
206 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
207 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
208 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
209 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
210 * m68k-linux-tdep.c (m68k_linux_init_abi):
211 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
212 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
213 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
214 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
215 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
216 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
217 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
218 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
219 Change type to displaced_step_buffers.
220 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
221 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
222 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
223 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
224 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
225 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
226 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
227
228 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
229
230 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
231 obkstack.
232 (_initialize_linux_tdep): Register pre-init gdb data instead of
233 post-init.
234
235 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
236
237 * displaced-stepping.h (struct
238 displaced_step_copy_insn_closure): Adjust comments.
239 (struct displaced_step_inferior_state) <step_thread,
240 step_gdbarch, step_closure, step_original, step_copy,
241 step_saved_copy>: Remove fields.
242 (struct displaced_step_thread_state): New.
243 (struct displaced_step_buffer): New.
244 * displaced-stepping.c (displaced_step_buffer::prepare): New.
245 (write_memory_ptid): Move from infrun.c.
246 (displaced_step_instruction_executed_successfully): New,
247 factored out of displaced_step_finish.
248 (displaced_step_buffer::finish): New.
249 (displaced_step_buffer::copy_insn_closure_by_addr): New.
250 (displaced_step_buffer::restore_in_ptid): New.
251 * gdbarch.sh (displaced_step_location): Remove.
252 (displaced_step_prepare, displaced_step_finish,
253 displaced_step_copy_insn_closure_by_addr,
254 displaced_step_restore_all_in_ptid): New.
255 * gdbarch.c: Re-generate.
256 * gdbarch.h: Re-generate.
257 * gdbthread.h (class thread_info) <displaced_step_state>: New
258 field.
259 (thread_step_over_chain_remove): New declaration.
260 (thread_step_over_chain_next): New declaration.
261 (thread_step_over_chain_length): New declaration.
262 * thread.c (thread_step_over_chain_remove): Make non-static.
263 (thread_step_over_chain_next): New.
264 (global_thread_step_over_chain_next): Use
265 thread_step_over_chain_next.
266 (thread_step_over_chain_length): New.
267 (global_thread_step_over_chain_enqueue): Add debug print.
268 (global_thread_step_over_chain_remove): Add debug print.
269 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
270 Remove.
271 * infrun.c (get_displaced_stepping_state): New.
272 (displaced_step_in_progress_any_inferior): Remove.
273 (displaced_step_in_progress_thread): Adjust.
274 (displaced_step_in_progress): Adjust.
275 (displaced_step_in_progress_any_thread): New.
276 (get_displaced_step_copy_insn_closure_by_addr): Remove.
277 (gdbarch_supports_displaced_stepping): Use
278 gdbarch_displaced_step_prepare_p.
279 (displaced_step_reset): Change parameter from inferior to
280 thread.
281 (displaced_step_prepare_throw): Implement using
282 gdbarch_displaced_step_prepare.
283 (write_memory_ptid): Move to displaced-step.c.
284 (displaced_step_restore): Remove.
285 (displaced_step_finish): Implement using
286 gdbarch_displaced_step_finish.
287 (start_step_over): Allow starting more than one displaced step.
288 (prepare_for_detach): Handle possibly multiple threads doing
289 displaced steps.
290 (handle_inferior_event): Handle possibility that fork event
291 happens while another thread displaced steps.
292 * linux-tdep.h (linux_displaced_step_prepare): New.
293 (linux_displaced_step_finish): New.
294 (linux_displaced_step_copy_insn_closure_by_addr): New.
295 (linux_displaced_step_restore_all_in_ptid): New.
296 (linux_init_abi): Add supports_displaced_step parameter.
297 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
298 (linux_displaced_step_prepare): New.
299 (linux_displaced_step_finish): New.
300 (linux_displaced_step_copy_insn_closure_by_addr): New.
301 (linux_displaced_step_restore_all_in_ptid): New.
302 (linux_init_abi): Add supports_displaced_step parameter,
303 register displaced step methods if true.
304 (_initialize_linux_tdep): Register inferior_execd observer.
305 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
306 supports_displaced_step parameter, adjust call to
307 linux_init_abi. Remove call to
308 set_gdbarch_displaced_step_location.
309 (amd64_linux_init_abi): Adjust call to
310 amd64_linux_init_abi_common.
311 (amd64_x32_linux_init_abi): Likewise.
312 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
313 linux_init_abi. Remove call to
314 set_gdbarch_displaced_step_location.
315 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
316 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
317 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
318 linux_init_abi.
319 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
320 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
321 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
322 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
323 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
324 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
325 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
326 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
327 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
328 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
329 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
330 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
331 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
332 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
333 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
334 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
335 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
336 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
337 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
338 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
339 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
340 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
341 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
342 linux_init_abi. Remove call to
343 set_gdbarch_displaced_step_location.
344 * arm-tdep.c (arm_pc_is_thumb): Call
345 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
346 get_displaced_step_copy_insn_closure_by_addr.
347 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
348 clear gdbarch methods.
349 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
350 (get_ppc_per_inferior): New function.
351 (ppc_displaced_step_prepare): New function.
352 (ppc_displaced_step_finish): New function.
353 (ppc_displaced_step_restore_all_in_ptid): New function.
354 (rs6000_gdbarch_init): Register new gdbarch methods.
355 * s390-tdep.c (s390_gdbarch_init): Don't call
356 set_gdbarch_displaced_step_location, set new gdbarch methods.
357
358 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
359
360 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
361 * aarch64-tdep.h: Include displaced-stepping.h.
362 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
363 Move here.
364 (displaced_step_copy_insn_closure_up): Move here.
365 (struct buf_displaced_step_copy_insn_closure): Move here.
366 (struct displaced_step_inferior_state): Move here.
367 (debug_displaced): Move here.
368 (displaced_debug_printf_1): Move here.
369 (displaced_debug_printf): Move here.
370 * displaced-stepping.c: New file.
371 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
372 * gdbarch.h: Re-generate.
373 * inferior.h: Include displaced-stepping.h.
374 * infrun.h (debug_displaced): Move to displaced-stepping.h.
375 (displaced_debug_printf_1): Likewise.
376 (displaced_debug_printf): Likewise.
377 (struct displaced_step_copy_insn_closure): Likewise.
378 (displaced_step_copy_insn_closure_up): Likewise.
379 (struct buf_displaced_step_copy_insn_closure): Likewise.
380 (struct displaced_step_inferior_state): Likewise.
381 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
382 (displaced_debug_printf_1): Likewise.
383 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
384 Likewise.
385 (_initialize_infrun): Don't register "set/show debug displaced".
386
387 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
388
389 * linux-tdep.c (get_linux_inferior_data): Add inferior
390 parameter.
391 (linux_vsyscall_range): Pass current inferior.
392
393 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
394
395 * infrun.c (displaced_step_prepare_throw): Change return type to
396 displaced_step_prepare_status.
397 (displaced_step_prepare): Likewise.
398 (displaced_step_finish): Change return type to
399 displaced_step_finish_status.
400 (resume_1): Adjust.
401 (stop_all_threads): Adjust.
402 * displaced-stepping.h: New file.
403
404 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
405
406 * infrun.c (displaced_step_fixup): Rename to...
407 (displaced_step_finish): ... this, update all callers.
408
409 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
410
411 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
412 (get_displaced_step_copy_insn_closure_by_addr): ... this.
413 Update all users.
414 (displaced_step_closure): Rename to...
415 (displaced_step_copy_insn_closure): ... this. Update all users.
416 (displaced_step_closure_up): Rename to...
417 (displaced_step_copy_insn_closure_up). ... this. Update all
418 users.
419 (buf_displaced_step_closure): Rename to...
420 (buf_displaced_step_copy_insn_closure): ... this. Update all
421 users.
422 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
423 (get_displaced_step_copy_insn_closure_by_addr): ... this.
424 Update all users.
425 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
426 (aarch64_displaced_step_copy_insn_closure): ... this. Update
427 all users.
428 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
429 (amd64_displaced_step_copy_insn_closure): ... this. Update all
430 users.
431 * arm-tdep.h (arm_displaced_step_closure): Rename to...
432 (arm_displaced_step_copy_insn_closure): ... this. Update all
433 users.
434 * i386-tdep.h (i386_displaced_step_closure): Rename to...
435 (i386_displaced_step_copy_insn_closure): ... this. Update all
436 users.
437 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
438 (ppc_displaced_step_copy_insn_closure): ... this. Update all
439 users.
440 * s390-tdep.c (s390_displaced_step_closure): Rename to...
441 (s390_displaced_step_copy_insn_closure): ... this. Update all
442 users.
443 * gdbarch.h: Re-generate.
444 * gdbarch.c: Re-generate.
445
446 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
447
448 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
449 (global_thread_step_over_chain_enqueue): ... this. Update all
450 users.
451 (thread_step_over_chain_remove): Rename to...
452 (global_thread_step_over_chain_remove): ... this. Update all
453 users.
454 (thread_step_over_chain_next): Rename to...
455 (global_thread_step_over_chain_next): ... this. Update all
456 users.
457 * infrun.h (step_over_queue_head): Rename to...
458 (global_thread_step_over_chain_head): ... this. Update all
459 users.
460 * infrun.c (step_over_queue_head): Rename to...
461 (global_thread_step_over_chain_head): ... this. Update all
462 users.
463 * thread.c (step_over_chain_remove): Rename to...
464 (thread_step_over_chain_remove): ... this. Update all users.
465 (thread_step_over_chain_next): Rename to...
466 (global_thread_step_over_chain_next): ... this. Update all
467 users.
468 (thread_step_over_chain_enqueue): Rename to...
469 (global_thread_step_over_chain_enqueue): ... this. Update all
470 users.
471 (thread_step_over_chain_remove): Rename to...
472 (global_thread_step_over_chain_remove): ... this. Update all
473 users.
474
475 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * infrun.c (get_displaced_stepping_state): Remove, change
478 callers to access the field directly.
479
480 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * infrun.c (handle_inferior_event): Restore displaced step
483 buffer bytes in child process when handling fork, even if fork
484 happened in another thread than the displaced-stepping one.
485
486 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
487
488 * infrun.c (infrun_inferior_execd): New function.
489 (_initialize_infrun): Attach inferior_execd observer.
490
491 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
492
493 * observable.h (inferior_execd): Declare new observable.
494 * observable.c (inferior_execd): Declare new observable.
495 * infrun.c (follow_exec): Notify inferior_execd observer.
496 * jit.c (jit_inferior_created_hook): Make static.
497 (_initialize_jit): Register inferior_execd observer.
498 * jit.h (jit_inferior_created_hook): Remove declaration.
499 * solib.c (_initialize_solib): Register inferior_execd observer.
500
501 2020-12-04 Tom de Vries <tdevries@suse.de>
502
503 PR gdb/27003
504 * completer.c (completion_tracker::build_completion_result): Don't
505 access match_list[0][-1].
506
507 2020-12-04 Tom Tromey <tromey@adacore.com>
508
509 * linespec.c (struct linespec_token): Rename; remove typedef.
510 * guile/scm-block.c (struct block_smob): Remove typedef.
511 (struct block_syms_progress_smob): Likewise.
512 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
513 * guile/scm-symtab.c (symtab_smob): Remove typedef.
514 (struct sal_smob): Remove typedef.
515 * guile/scm-param.c (struct param_smob): Remove typedef.
516 * guile/scm-progspace.c (struct pspace_smob): Rename.
517 * guile/scm-objfile.c (struct objfile_smob): Rename.
518 * guile/scm-iterator.c (struct iterator_smob): Rename.
519 * guile/scm-frame.c (struct frame_smob): Rename.
520 * guile/scm-arch.c (struct arch_smob): Rename.
521 * guile/scm-type.c (struct field_smob): Remove typedef.
522 (struct type_smob): Rename.
523 * guile/scm-cmd.c (struct command_smob): Remove typedef.
524 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
525 * guile/scm-value.c (struct value_smob): Remove typedef.
526 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
527 * guile/guile-internal.h (struct scheme_variable)
528 (struct scheme_function, struct scheme_integer_constant)
529 (struct gdb_smob, struct chained_gdb_smob)
530 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
531 (objfile_smob, pspace_smob, type_smob): Remove typedef.
532 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
533 (struct pretty_printer_worker_smob): Remove typedef.
534 * guile/scm-exception.c (struct exception_smob): Remove typedef.
535 * python/py-block.c (struct block_object): Remove typedef.
536 (block_syms_iterator_object): Update.
537 (set_block): Update.
538 (block_syms_iterator_object): Remove typedef.
539 * python/py-inferior.c (struct membuf_object): Remove typedef.
540 * python/py-symtab.c (struct symtab_object): Remove typedef.
541 (set_symtab): Update.
542 (sal_object): Remove typedef.
543 (set_sal): Update.
544 * python/py-frame.c (frame_object): Remove typedef.
545 * python/py-record-btrace.c (struct btpy_list_object): Remove
546 typedef.
547 * python/py-arch.c (struct arch_object): Remove typedef.
548 * python/py-linetable.c (struct linetable_entry_object)
549 (linetable_object, struct ltpy_iterator_object): Remove typedef.
550 * python/py-events.h (eventregistry_object): Remove typedef.
551 (struct events_object): Remove typedef.
552 * python/python-internal.h (gdbpy_breakpoint_object): Remove
553 typedef.
554 (thread_object): Remove typedef.
555 * python/py-progspace.c (pspace_object): Remove typedef.
556 * python/py-value.c (struct value_object): Remove typedef.
557 * python/py-record.h (recpy_record_object): Remove typedef.
558 (struct recpy_element_object): Remove typedef.
559 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
560 * python/py-objfile.c (objfile_object): Remove typedef.
561 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
562 * python/py-type.c (type_object): Remove typedef.
563 (typy_iterator_object): Update.
564 (set_type): Update.
565 (field_object): Remove typedef.
566 (typy_iterator_object): Remove typedef.
567 * python/py-registers.c (register_descriptor_iterator_object):
568 Remove typedef.
569 (struct register_descriptor_object)
570 (struct reggroup_iterator_object, struct reggroup_object): Remove
571 typedef.
572 * python/py-record.c (recpy_gap_object): Remove typedef.
573 * python/py-symbol.c (symbol_object): Remove typedef.
574 (set_symbol): Update.
575 * python/py-event.h (event_object): Remove typedef.
576 * python/py-param.c (parmpy_object): Remove typedef.
577 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
578 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
579 (unwind_info_object, struct cached_frame_info): Likewise.
580
581 2020-12-04 Tom Tromey <tromey@adacore.com>
582
583 * value.c (value_internal_function_name): Make return type const.
584 * value.h (value_internal_function_name): Make return type const.
585
586 2020-12-04 Luis Machado <luis.machado@linaro.org>
587
588 * aarch64-tdep.c (submask, bit, bits): Remove.
589 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
590 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
591 (aarch64_decode_cb, aarch64_decode_tb)
592 (aarch64_decode_ldr_literal): Use sbits to extract a signed
593 immediate.
594 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
595
596 2020-12-04 Tom de Vries <tdevries@suse.de>
597
598 PR tdep/27007
599 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
600
601 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
602
603 PR gdb/26876
604 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
605 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
606
607 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * arch/riscv.c: Include 'rv32e-xregs.c'.
610 (riscv_create_target_description): Update to handle rv32e.
611 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
612 member variable.
613 <operator==>: Update to account for new field.
614 <hash>: Likewise.
615 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
616 * features/riscv/rv32e-xregs.c: Generated.
617 * features/riscv/rv32e-xregs.xml: New file.
618 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
619 file.
620 (riscv_debug_infcall): Likewise.
621 (riscv_debug_unwinder): Likewise.
622 (riscv_debug_gdbarch): Likewise.
623 (enum riscv_register_required_status): Delete.
624 (struct riscv_register_feature): Add constructor, delete default
625 constructor, copy, and assign constructors.
626 (struct riscv_register_feature::register_info) <required>: Delete.
627 <check>: Update comment and arguments.
628 (struct riscv_register_feature) <name>: Change to member function.
629 <prefer_first_name>: Delete.
630 <tdesc_feature>: New member function.
631 <registers>: Rename to...
632 <m_registers>: ...this.
633 <m_feature_name>: New member variable.
634 (riscv_register_feature::register_info::check): Update arguments.
635 (riscv_xreg_feature): Rewrite as class, create a single static
636 instance of the class.
637 (riscv_freg_feature): Likewise.
638 (riscv_virtual_feature): Likewise.
639 (riscv_csr_feature): Likewise.
640 (riscv_create_csr_aliases): Has become a member function inside
641 riscv_csr_feature class.
642 (riscv_abi_embedded): New function definition.
643 (riscv_register_name): Adjust to use new feature objects.
644 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
645 and adjust available argument registers.
646 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
647 (riscv_check_tdesc_feature): Delete.
648 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
649 (riscv_gdbarch_init): Delete target description checking code, and
650 instead call to the new feature objects to perform the checks.
651 Reorder handling of no abi information case, allows small code
652 simplification.
653 (_initialize_riscv_tdep): Remove call, this is now done in the
654 riscv_csr_feature constructor.
655 * riscv-tdep.h (riscv_abi_embedded): Declare.
656
657 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
660 DECLARE_CSR_ALIAS.
661
662 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * riscv-tdep.c (riscv_is_unknown_csr): New function,
665 implementation moved from riscv_register_reggroup_p.
666 (riscv_register_reggroup_p): Update group handling for unknown
667 CSRs.
668
669 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
670
671 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
672 (dwarf2_get_dwz_file): Convert 'filename' to a
673 std::string. Use dwz_search_other_debugdirs to search for DWZ
674 files in the debug-file-directories provided by the user as well.
675
676 2020-12-01 Tom Tromey <tom@tromey.com>
677
678 * parse.c (expr_builder::expr_builder): Initialize expout.
679 (expr_builder::release): Use expression::resize.
680 (expression::expression, expression::~expression)
681 (expression::resize): New methods.
682 (write_exp_elt): Use expression::resize.
683 (prefixify_expression): Update.
684 (increase_expout_size): Use expression::resize.
685 * expression.h (struct expression): Add constructor, destructor.
686 <resize>: New method.
687 (expression_up): Change type.
688
689 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
690 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
691 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
692 set region.
693
694 2020-11-30 Tom de Vries <tdevries@suse.de>
695
696 PR symtab/26905
697 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
698 is_reference parameter.
699 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
700
701 2020-11-30 Tom Tromey <tom@tromey.com>
702
703 * rust-lang.c (rust_op_name): Remove.
704 (exp_descriptor_rust): Update.
705 * parser-defs.h (op_name_standard): Don't declare.
706 (struct exp_descriptor) <op_name>: Remove.
707 * parse.c (exp_descriptor_standard): Update.
708 * opencl-lang.c (exp_descriptor_opencl): Update.
709 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
710 * f-lang.c (op_name_f): Remove.
711 (f_language::exp_descriptor_tab): Update.
712 * expression.h (op_name): Update.
713 * expprint.c (op_name): Rewrite.
714 (op_name_standard): Remove.
715 (dump_raw_expression, dump_subexp): Update.
716 * c-lang.c (exp_descriptor_c): Update.
717 * ax-gdb.c (gen_expr): Update.
718 * ada-lang.c (ada_op_name): Remove.
719 (ada_exp_descriptor): Update.
720
721 2020-11-30 Tom Tromey <tom@tromey.com>
722
723 * eval.c (init_array_element): Remove.
724 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
725
726 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
727
728 PR tui/26973
729 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
730 static locator win info.
731
732 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
733
734 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
735 program.
736
737 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
740 is always initialized.
741
742 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
743 * MAINTAINERS (Write After Approval): Add myself.
744
745 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
746
747 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
748 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
749
750 2020-11-25 Tom Tromey <tom@tromey.com>
751
752 * eval.c (evaluate_subexp_standard): Remove unnecessary
753 variables.
754
755 2020-11-25 Tom Tromey <tom@tromey.com>
756
757 * d-lang.c: Include parser-defs.h.
758 * rust-lang.c: Include parser-defs.h.
759 * c-lang.h: Do not include parser-defs.h.
760
761 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * regcache.h (struct cached_reg): Remove typedef.
764
765 2020-11-24 Joel Brobecker <brobecker@adacore.com>
766
767 * README: Fix the URL of the MPFR library.
768
769 2020-11-24 Joel Brobecker <brobecker@adacore.com>
770
771 * README: Document the --with-libgmp-prefix configure option.
772
773 2020-11-24 Joel Brobecker <brobecker@adacore.com>
774
775 * NEWS: Add entry documenting support for DWARF-based fixed
776 point types.
777
778 2020-11-24 Joel Brobecker <brobecker@adacore.com>
779
780 * NEWS: Document that building GDB now requires GMP.
781
782 2020-11-24 Joel Brobecker <brobecker@adacore.com>
783
784 * typeprint.c (print_type_scalar): Add handling of
785 TYPE_CODE_FIXED_POINT.
786
787 2020-11-24 Joel Brobecker <brobecker@adacore.com>
788
789 * valarith.c (fixed_point_binop): Replace the
790 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
791 users accordingly.
792
793 2020-11-24 Joel Brobecker <brobecker@adacore.com>
794
795 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
796 replacing fixed_point_scaling_factor. All callers updated
797 throughout this project.
798 (fixed_point_scaling_factor): Delete declaration.
799 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
800 fixed_point_scaling_factor. Adjust implementation accordingly.
801
802 2020-11-24 Joel Brobecker <brobecker@adacore.com>
803
804 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
805 replacing the fixed_point_type_base_type function. All callers
806 updated throughout this project.
807 (fixed_point_type_base_type): Remove declaration.
808 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
809 fixed_point_type_base_type. Adjust implementation accordingly.
810
811 2020-11-24 Joel Brobecker <brobecker@adacore.com>
812
813 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
814 New methods.
815 (INIT_FIXED_POINT_SPECIFIC): Adjust.
816 (TYPE_FIXED_POINT_INFO): Delete macro.
817 (allocate_fixed_point_type_info): Change return type to void.
818 * gdbtypes.c (copy_type_recursive): Replace the use of
819 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
820 (fixed_point_scaling_factor): Likewise.
821 (allocate_fixed_point_type_info): Change return type to void.
822 Adjust implementation accordingly.
823 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
824 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
825
826 2020-11-24 Joel Brobecker <brobecker@adacore.com>
827
828 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
829 into one single gdb::array_view parameter.
830 (gdb_mpz::write): Likewise.
831 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
832 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
833 into one single gdb::array_view parameter.
834 Adjust implementation accordingly.
835 (gdb_mpz::write): Likewise.
836 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
837 * unittests/gmp-utils-selftests.c: Adapt following changes above.
838 * valarith.c, valops.c, valprint.c, value.c: Likewise.
839
840 2020-11-24 Joel Brobecker <brobecker@adacore.com>
841
842 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
843 Change return type to std::string. Update all callers.
844 * gmp-utils.c (gmp_string_printf): Likewise.
845
846 2020-11-24 Joel Brobecker <brobecker@adacore.com>
847
848 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
849 instead of mpq_set_ui to initialize our GMP rational.
850
851 2020-11-23 Tom de Vries <tdevries@suse.de>
852
853 * debuginfod-support.c (debuginfod_source_query)
854 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
855
856 2020-11-21 Tom Tromey <tom@tromey.com>
857
858 * breakpoint.c (watchpoint_exp_is_const): Return bool.
859
860 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
863 Pass 2.0 to pow.
864 (gdb_mpz_write_all_from_small): Likewise.
865
866 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
869 of abs.
870
871 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
872
873 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
874 ctf_arc_open_by_name.
875
876 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
877
878 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
879 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
880
881 2020-11-20 Pedro Alves <pedro@palves.net>
882
883 * language.c (language_arch_info::lookup_primitive_type): Use
884 gdb::function_view instead of gdb::function.
885 (template language_lookup_primitive_type): Rename to ...
886 (language_lookup_primitive_type_1): ... this, and make static.
887 (language_lookup_primitive_type(const struct language_defn *,
888 struct gdbarch *, const char *): Make non-template.
889 (language_lookup_primitive_type(const struct language_defn *,
890 struct gdbarch *, std::function<bool (struct type *)>): Make
891 non-template and use gdb::function_view.
892 * language.h (language_arch_info::lookup_primitive_type): Use
893 gdb::function_view instead of std::function.
894 (language_lookup_primitive_type): No longer template.
895 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
896 lambda instead of a std::function.
897
898 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
899
900 PR tdep/26916
901 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
902 and STOCFH.
903
904 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
905
906 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
907
908 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
909
910 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
911 in `loop_cb` parameter.
912 * gdbarch.c: Re-generate.
913 * gdbarch.h: Re-generate.
914 * arch-utils.c (default_read_core_file_mappings): Remove `other`
915 parameter.
916 * arch-utils.h (default_read_core_file_mappings): Likewise.
917 * corelow.c (core_target::build_file_mappings): Likewise.
918 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
919 (linux_core_info_proc_mappings): Likewise.
920
921 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
922
923 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
924 * NEWS: Mention new options.
925 * f-array-walker.h: New file.
926 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
927 (repack_array_slices): New static global.
928 (show_repack_array_slices): New function.
929 (fortran_array_slicing_debug): New static global.
930 (show_fortran_array_slicing_debug): New function.
931 (value_f90_subarray): Delete.
932 (skip_undetermined_arglist): Delete.
933 (class fortran_array_repacker_base_impl): New class.
934 (class fortran_lazy_array_repacker_impl): New class.
935 (class fortran_array_repacker_impl): New class.
936 (fortran_value_subarray): Complete rewrite.
937 (set_fortran_list): New static global.
938 (show_fortran_list): Likewise.
939 (_initialize_f_language): Register new commands.
940 (fortran_adjust_dynamic_array_base_address_hack): New function.
941 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
942 Declare.
943 * f-valprint.c: Include 'f-array-walker.h'.
944 (class fortran_array_printer_impl): New class.
945 (f77_print_array_1): Delete.
946 (f77_print_array): Delete.
947 (fortran_print_array): New.
948 (f_value_print_inner): Update to call fortran_print_array.
949 * gdbtypes.c: Include 'f-lang.h'.
950 (resolve_dynamic_type_internal): Call
951 fortran_adjust_dynamic_array_base_address_hack.
952
953 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
954
955 * breakpoint.c (struct watch_options): New struct.
956 (watch_option_defs): New static global.
957 (make_watch_options_def_group): New function.
958 (watch_maybe_just_location): Convert option parsing.
959 (watch_command_completer): New function.
960 (_initialize_breakpoint): Build help text using options mechanism.
961
962 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
963
964 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
965 (watch_command_1): Update parameter types. Convert locals to
966 bool.
967 (watch_command_wrapper): Change parameter type.
968 (watch_maybe_just_location): Change locals to bool.
969 (rwatch_command_wrapper): Update parameter type.
970 (awatch_command_wrapper): Update parameter type.
971 * breakpoint.h (watch_command_wrapper): Change parameter type.
972 (rwatch_command_wrapper): Update parameter type.
973 (awatch_command_wrapper): Update parameter type.
974 * eval.c (fetch_subexp_value): Change parameter type.
975 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
976 'false' not '0'.
977 * value.h (fetch_subexp_value): Change parameter type in
978 declaration.
979
980 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
983 skip_spaces.
984
985 2020-11-18 Keith Seitz <keiths@redhat.com>
986
987 * linux-tdep.c (dump_note_entry_p): Return true instead of
988 checking `filename'.
989
990 2020-11-18 Tom de Vries <tdevries@suse.de>
991
992 * debuginfod-support.c (debuginfod_source_query)
993 (debuginfod_debuginfo_query): Also do early exit if
994 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
995
996 2020-11-18 Tom de Vries <tdevries@suse.de>
997
998 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
999 warning.
1000
1001 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1004 callers. Move doc here.
1005 * gdbtypes.c (get_array_bounds): Return bool
1006
1007 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1010 assert.
1011 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1012 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1013 case to the default.
1014
1015 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * printcmd.c: Include 'safe-ctype.c'.
1018 (skip_over_slash_fmt): New function.
1019 (print_command_completer): Call skip_over_slash_fmt.
1020 (display_and_x_command_completer): New function.
1021 (_initialize_printcmd): Add command completion for 'x' and
1022 'display'.
1023
1024 2020-11-16 Pedro Alves <pedro@palves.net>
1025
1026 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1027 (get_prev_frame_always_1): ... to here.
1028 * inline-frame.c (inline_frame_this_id): Mention
1029 get_prev_frame_always_1 in comment.
1030
1031 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1032
1033 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1034 handling.
1035 (value_less): Add fixed-point handling.
1036
1037 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1038
1039 * eval.c (binop_promote): Add fixed-point type handling.
1040 * valarith.c (fixed_point_binop): New function.
1041 (scalar_binop): Add fixed-point type handling.
1042 (value_neg): Add fixed-point type handling.
1043 * valops.c (value_cast_to_fixed_point): New function.
1044 (value_cast): Add fixed-point type handling.
1045
1046 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1047
1048 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1049 range types.
1050 * c-typeprint.c (c_type_print_varspec_prefix)
1051 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1052 TYPE_CODE_FIXED_POINT handling.
1053 * p-typeprint.c (pascal_type_print_varspec_prefix)
1054 (pascal_type_print_varspec_suffix): Likewise.
1055 * typeprint.c (print_type_fixed_point): New function.
1056 * typeprint.h (print_type_fixed_point): Add declaration.
1057
1058 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1059
1060 * printcmd.c (print_scalar_formatted): Add fixed-point type
1061 handling when options->format is set.
1062
1063 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1064
1065 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1066 * dwarf2/read.c (get_dwarf2_rational_constant)
1067 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1068 (has_zero_over_zero_small_attribute): New functions.
1069 read_base_type, set_die_type): Add fixed-point type handling.
1070 * gdb-gdb.py.in: Add fixed-point type handling.
1071 * gdbtypes.c: #include "gmp-utils.h".
1072 (create_range_type, set_type_code): Add fixed-point type handling.
1073 (init_fixed_point_type): New function.
1074 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1075 (print_fixed_point_type_info): New function.
1076 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1077 handling.
1078 (fixed_point_type_storage): New typedef.
1079 (fixed_point_objfile_key): New static global.
1080 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1081 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1082 functions.
1083 * gdbtypes.h: #include "gmp-utils.h".
1084 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1085 (union type_specific) <fixed_point_info>: New field.
1086 (struct fixed_point_type_info): New struct.
1087 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1088 (init_fixed_point_type, is_fixed_point_type)
1089 (fixed_point_type_base_type, fixed_point_scaling_factor)
1090 (allocate_fixed_point_type_info): Add declarations.
1091 * valprint.c (generic_val_print_fixed_point): New function.
1092 (generic_value_print): Add fixed-point type handling.
1093 * value.c (value_as_address, unpack_long): Add fixed-point type
1094 handling.
1095
1096 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1097
1098 * utils.h (uinteger_pow): Add declaration.
1099 * utils.c (uinteger_pow): Moved here (without changes)...
1100 * valarith.c (uinteger_pow): ... from here.
1101
1102 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1103
1104 * gmp-utils.h, gmp-utils.c: New file.
1105 * unittests/gmp-utils-selftests.c: New file.
1106 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1107 unittests/gmp-utils-selftests.c.
1108 (COMMON_SFILES) Add gmp-utils.c.
1109 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1110
1111 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1112
1113 * configure.ac: Generate an error if a usable GMP library
1114 could not be found.
1115 * configure: Regenerate.
1116
1117 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1118
1119 * configure.ac: Add support for --with-libgmp-prefix.
1120 * Makefile.in (LIBGMP): New variable.
1121 (CLIBS): Include $(LIBGMP).
1122 * configure, config.in: Regenerate
1123
1124 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 PR cli/26879
1127 * f-exp.y (COMPLETE): New token.
1128 (exp): Two new rules for tab-completion.
1129 (saw_name_at_eof): New static global.
1130 (last_was_structop): Likewise.
1131 (yylex): Set new variables, and return COMPLETE token at the end
1132 of the input stream in some cases.
1133
1134 2020-11-14 Tom Tromey <tom@tromey.com>
1135
1136 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1137
1138 2020-11-14 Tom Tromey <tom@tromey.com>
1139
1140 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1141
1142 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1143
1144 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1145
1146 2020-11-13 Tom Tromey <tom@tromey.com>
1147
1148 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1149 (convert_escape, parse_one_string): Constify.
1150
1151 2020-11-13 Keith Seitz <keiths@redhat.com>
1152
1153 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1154 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1155 outside of ELF segments" warning for debugin
1156
1157 2020-11-13 Keith Seitz <keiths@redhat.com>
1158
1159 PR gdb/23034
1160 * elfread.c (elf_symfile_segments): Output a BFD file name
1161 for the "Loadable section ... outside of ELF segments" warning.
1162
1163 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 PR gdb/26835
1166 * arm-tdep.c (class arm_instruction_reader): New.
1167 (target_arm_instruction_reader): New.
1168 (arm_analyze_prologue): Add instruction reader parameter and use
1169 it. Use arm_expand_immediate.
1170 (class target_arm_instruction_reader): Adjust.
1171 (arm_skip_prologue): Adjust.
1172 (arm_expand_immediate): New.
1173 (arm_scan_prologue): Adjust.
1174 (arm_analyze_prologue_test): New.
1175 (class test_arm_instruction_reader): New.
1176
1177 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * f-lang.c (fortran_argument_convert): Add declaration. Add
1180 header comment, taken from f-lang.h. Make static.
1181 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1182 (fortran_argument_convert): Delete declaration.
1183
1184 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * ada-exp.y (find_primitive_type): Make parameter const.
1187 * ada-lang.c (enum ada_primitive_types): Delete.
1188 (ada_language::language_arch_info): Update.
1189 * c-lang.c (enum c_primitive_types): Delete.
1190 (c_language_arch_info): Update.
1191 (enum cplus_primitive_types): Delete.
1192 (cplus_language::language_arch_info): Update.
1193 * d-lang.c (enum d_primitive_types): Delete.
1194 (d_language::language_arch_info): Update.
1195 * f-lang.c (enum f_primitive_types): Delete.
1196 (f_language::language_arch_info): Update.
1197 * go-lang.c (enum go_primitive_types): Delete.
1198 (go_language::language_arch_info): Update.
1199 * language.c (auto_or_unknown_language::language_arch_info):
1200 Update.
1201 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1202 (language_string_char_type): Add header comment, call function in
1203 language_arch_info.
1204 (language_bool_type): Likewise
1205 (language_arch_info::bool_type): Define.
1206 (language_lookup_primitive_type_1): Delete.
1207 (language_lookup_primitive_type): Rewrite as a templated function
1208 to call function in language_arch_info, then instantiate twice.
1209 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1210 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1211 (language_arch_info::lookup_primitive_type): Define twice with
1212 different signatures.
1213 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1214 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1215 member function in language_arch_info.
1216 * language.h (language_arch_info): Complete rewrite.
1217 (language_lookup_primitive_type): Make templated.
1218 * m2-lang.c (enum m2_primitive_types): Delete.
1219 (m2_language::language_arch_info): Update.
1220 * opencl-lang.c (OCL_P_TYPE): Delete.
1221 (enum opencl_primitive_types): Delete.
1222 (opencl_type_data): Delete.
1223 (builtin_opencl_type): Delete.
1224 (lookup_opencl_vector_type): Update.
1225 (opencl_language::language_arch_info): Update, lots of content
1226 moved from...
1227 (build_opencl_types): ...here. This function is now deleted.
1228 (_initialize_opencl_language): Delete.
1229 * p-lang.c (enum pascal_primitive_types): Delete.
1230 (pascal_language::language_arch_info): Update.
1231 * rust-lang.c (enum rust_primitive_types): Delete.
1232 (rust_language::language_arch_info): Update.
1233
1234 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1237 dwarf2_queue_guard.
1238
1239 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1242 comment.
1243
1244 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * dwarf2/read.c (dwarf_read_debug_printf,
1247 dwarf_read_debug_printf_v): New macros, use throughout the file.
1248
1249 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1250
1251 PR tdep/27015
1252 * arc-linux-tdep.c (collect_register): Populate "eret" by
1253 "pc" value from the regcache when asked for "pc" value.
1254
1255 2020-11-12 Tom Tromey <tom@tromey.com>
1256
1257 PR rust/26799:
1258 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1259 exist.
1260
1261 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * features/Makefile (XMLTOC): Add rx.xml.
1264 (FEATURE_XMLFILES): Remove rx.xml.
1265 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1266 * features/rx.c: Regenerate.
1267 * features/rx.xml: Wrap in `target` tags, and reindent.
1268 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1269 structure.
1270 (maint_print_c_tdesc_opt_def): New typedef.
1271 (maint_print_c_tdesc_opt_defs): New static global.
1272 (make_maint_print_c_tdesc_options_def_group): New function.
1273 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1274 print single feature C file for target descriptions containing a
1275 single feature.
1276 (maint_print_c_tdesc_cmd_completer): New function.
1277 (_initialize_target_descriptions): Update call to register command
1278 completer, and include command line flag in help text.
1279
1280 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1283 numbers.
1284 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1285 enum values.
1286
1287 2020-11-10 Tom Tromey <tom@tromey.com>
1288
1289 * value.h (internalvar_name): Update.
1290 * value.c (internalvar_name): Make return type const.
1291
1292 2020-11-10 Tom Tromey <tom@tromey.com>
1293
1294 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1295 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1296 const.
1297
1298 2020-11-10 Tom Tromey <tom@tromey.com>
1299
1300 * objc-lang.h (value_nsstring): Update.
1301 * objc-lang.c (value_nsstring): Make "ptr" const.
1302
1303 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * expprint.c (print_subexp_funcall): Increment expression position
1306 after reading argument count.
1307 * f-lang.c (print_subexp_f): Skip over opcode before calling
1308 common function.
1309 (dump_subexp_body_f): Likewise.
1310
1311 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1312
1313 PR python/26832
1314 * configure: Regenerate.
1315 * configure.ac: Check for python modules ctypes instead of
1316 itertools.
1317
1318 2020-11-06 Pedro Alves <pedro@palves.net>
1319
1320 * macroexp.c (struct macro_buffer): Split in two classes. Add
1321 uses adjusted.
1322 (struct shared_macro_buffer): New, factored out from struct
1323 macro_buffer.
1324 (struct growable_macro_buffer): New, factored out from struct
1325 macro_buffer.
1326 (set_token, get_comment, get_identifier, get_pp_number)
1327 (get_character_constant, get_string_literal, get_punctuator)
1328 (get_next_token_for_substitution): Constify parameters.
1329 (substitute_args): Constify locals.
1330
1331 2020-11-05 Tom Tromey <tom@tromey.com>
1332
1333 * dwarf2/read.c (read_cutu_die_from_dwo)
1334 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1335 (build_type_psymtabs_1): Update.
1336 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1337 parameter.
1338 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1339 Don't read section. Add assert.
1340
1341 2020-11-04 Tom Tromey <tromey@adacore.com>
1342
1343 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1344
1345 2020-11-04 Tom Tromey <tromey@adacore.com>
1346
1347 * ada-typeprint.c (ada_print_type): Handle __T types.
1348
1349 2020-11-04 Tom Tromey <tromey@adacore.com>
1350
1351 * dwarf2/read.c (add_partial_symbol, process_die):
1352 Handle DW_TAG_array_type.
1353 (is_type_tag_for_partial): Add "lang" parameter.
1354 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1355
1356 2020-11-04 Tom Tromey <tromey@adacore.com>
1357
1358 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1359
1360 2020-11-04 Tom Tromey <tromey@adacore.com>
1361
1362 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1363 array.
1364
1365 2020-11-04 Tom Tromey <tromey@adacore.com>
1366
1367 * gdbtypes.c (update_static_array_size): Handle bit stride.
1368
1369 2020-11-04 Tom Tromey <tromey@adacore.com>
1370
1371 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1372
1373 2020-11-04 Tom Tromey <tromey@adacore.com>
1374
1375 * ada-lang.c (ada_is_any_packed_array_type): New function.
1376 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1377
1378 2020-11-04 Tom Tromey <tromey@adacore.com>
1379
1380 * dwarf2/read.c (recognize_bound_expression)
1381 (quirk_ada_thick_pointer): New functions.
1382 (read_array_type): Call quirk_ada_thick_pointer.
1383 (set_die_type): Add "skip_data_location" parameter.
1384 (quirk_ada_thick_pointer): New function.
1385 (process_structure_scope): Call quirk_ada_thick_pointer.
1386 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1387 (decode_packed_array_bitsize): Handle thick pointers without
1388 parallel types.
1389 (ada_is_gnat_encoded_packed_array_type): Rename from
1390 ada_is_packed_array_type.
1391 (ada_is_constrained_packed_array_type): Update.
1392 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1393 (ada_value_print_1): Use ada_get_decoded_value.
1394
1395 2020-11-04 Tom Tromey <tromey@adacore.com>
1396
1397 * ada-lang.c (recursively_update_array_bitsize): New function.
1398 (decode_constrained_packed_array_type): Call it.
1399
1400 2020-11-04 Tom Tromey <tromey@adacore.com>
1401
1402 * ada-lang.c (to_fixed_array_type): Error if
1403 decode_constrained_packed_array_type returns NULL.
1404
1405 2020-11-04 Tom Tromey <tromey@adacore.com>
1406
1407 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1408
1409 2020-11-02 Tom Tromey <tromey@adacore.com>
1410
1411 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1412 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1413 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1414 * amd64-ravenscar-thread.c: New file.
1415 * amd64-ravenscar-thread.h: New file.
1416 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1417 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1418
1419 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * main.c (execute_cmdargs): New function.
1422 (captured_main_1): Make use of execute_cmdargs.
1423
1424 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * NEWS: Mention changes to config file search path.
1427 * main.c
1428
1429 2020-11-02 Tom Tromey <tromey@adacore.com>
1430
1431 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1432 (python_GdbModuleDef): Move earlier. Now static.
1433 (do_start_initialization): Consolidate some IS_PY3K blocks.
1434
1435 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1436
1437 * aarch64-linux-tdep.c: Fix indentation.
1438 * aarch64-ravenscar-thread.c: Fix indentation.
1439 * aarch64-tdep.c: Fix indentation.
1440 * aarch64-tdep.h: Fix indentation.
1441 * ada-lang.c: Fix indentation.
1442 * ada-lang.h: Fix indentation.
1443 * ada-tasks.c: Fix indentation.
1444 * ada-typeprint.c: Fix indentation.
1445 * ada-valprint.c: Fix indentation.
1446 * ada-varobj.c: Fix indentation.
1447 * addrmap.c: Fix indentation.
1448 * addrmap.h: Fix indentation.
1449 * agent.c: Fix indentation.
1450 * aix-thread.c: Fix indentation.
1451 * alpha-bsd-nat.c: Fix indentation.
1452 * alpha-linux-tdep.c: Fix indentation.
1453 * alpha-mdebug-tdep.c: Fix indentation.
1454 * alpha-nbsd-tdep.c: Fix indentation.
1455 * alpha-obsd-tdep.c: Fix indentation.
1456 * alpha-tdep.c: Fix indentation.
1457 * amd64-bsd-nat.c: Fix indentation.
1458 * amd64-darwin-tdep.c: Fix indentation.
1459 * amd64-linux-nat.c: Fix indentation.
1460 * amd64-linux-tdep.c: Fix indentation.
1461 * amd64-nat.c: Fix indentation.
1462 * amd64-obsd-tdep.c: Fix indentation.
1463 * amd64-tdep.c: Fix indentation.
1464 * amd64-windows-tdep.c: Fix indentation.
1465 * annotate.c: Fix indentation.
1466 * arc-tdep.c: Fix indentation.
1467 * arch-utils.c: Fix indentation.
1468 * arch/arm-get-next-pcs.c: Fix indentation.
1469 * arch/arm.c: Fix indentation.
1470 * arm-linux-nat.c: Fix indentation.
1471 * arm-linux-tdep.c: Fix indentation.
1472 * arm-nbsd-tdep.c: Fix indentation.
1473 * arm-pikeos-tdep.c: Fix indentation.
1474 * arm-tdep.c: Fix indentation.
1475 * arm-tdep.h: Fix indentation.
1476 * arm-wince-tdep.c: Fix indentation.
1477 * auto-load.c: Fix indentation.
1478 * auxv.c: Fix indentation.
1479 * avr-tdep.c: Fix indentation.
1480 * ax-gdb.c: Fix indentation.
1481 * ax-general.c: Fix indentation.
1482 * bfin-linux-tdep.c: Fix indentation.
1483 * block.c: Fix indentation.
1484 * block.h: Fix indentation.
1485 * blockframe.c: Fix indentation.
1486 * bpf-tdep.c: Fix indentation.
1487 * break-catch-sig.c: Fix indentation.
1488 * break-catch-syscall.c: Fix indentation.
1489 * break-catch-throw.c: Fix indentation.
1490 * breakpoint.c: Fix indentation.
1491 * breakpoint.h: Fix indentation.
1492 * bsd-uthread.c: Fix indentation.
1493 * btrace.c: Fix indentation.
1494 * build-id.c: Fix indentation.
1495 * buildsym-legacy.h: Fix indentation.
1496 * buildsym.c: Fix indentation.
1497 * c-typeprint.c: Fix indentation.
1498 * c-valprint.c: Fix indentation.
1499 * c-varobj.c: Fix indentation.
1500 * charset.c: Fix indentation.
1501 * cli/cli-cmds.c: Fix indentation.
1502 * cli/cli-decode.c: Fix indentation.
1503 * cli/cli-decode.h: Fix indentation.
1504 * cli/cli-script.c: Fix indentation.
1505 * cli/cli-setshow.c: Fix indentation.
1506 * coff-pe-read.c: Fix indentation.
1507 * coffread.c: Fix indentation.
1508 * compile/compile-cplus-types.c: Fix indentation.
1509 * compile/compile-object-load.c: Fix indentation.
1510 * compile/compile-object-run.c: Fix indentation.
1511 * completer.c: Fix indentation.
1512 * corefile.c: Fix indentation.
1513 * corelow.c: Fix indentation.
1514 * cp-abi.h: Fix indentation.
1515 * cp-namespace.c: Fix indentation.
1516 * cp-support.c: Fix indentation.
1517 * cp-valprint.c: Fix indentation.
1518 * cris-linux-tdep.c: Fix indentation.
1519 * cris-tdep.c: Fix indentation.
1520 * darwin-nat-info.c: Fix indentation.
1521 * darwin-nat.c: Fix indentation.
1522 * darwin-nat.h: Fix indentation.
1523 * dbxread.c: Fix indentation.
1524 * dcache.c: Fix indentation.
1525 * disasm.c: Fix indentation.
1526 * dtrace-probe.c: Fix indentation.
1527 * dwarf2/abbrev.c: Fix indentation.
1528 * dwarf2/attribute.c: Fix indentation.
1529 * dwarf2/expr.c: Fix indentation.
1530 * dwarf2/frame.c: Fix indentation.
1531 * dwarf2/index-cache.c: Fix indentation.
1532 * dwarf2/index-write.c: Fix indentation.
1533 * dwarf2/line-header.c: Fix indentation.
1534 * dwarf2/loc.c: Fix indentation.
1535 * dwarf2/macro.c: Fix indentation.
1536 * dwarf2/read.c: Fix indentation.
1537 * dwarf2/read.h: Fix indentation.
1538 * elfread.c: Fix indentation.
1539 * eval.c: Fix indentation.
1540 * event-top.c: Fix indentation.
1541 * exec.c: Fix indentation.
1542 * exec.h: Fix indentation.
1543 * expprint.c: Fix indentation.
1544 * f-lang.c: Fix indentation.
1545 * f-typeprint.c: Fix indentation.
1546 * f-valprint.c: Fix indentation.
1547 * fbsd-nat.c: Fix indentation.
1548 * fbsd-tdep.c: Fix indentation.
1549 * findvar.c: Fix indentation.
1550 * fork-child.c: Fix indentation.
1551 * frame-unwind.c: Fix indentation.
1552 * frame-unwind.h: Fix indentation.
1553 * frame.c: Fix indentation.
1554 * frv-linux-tdep.c: Fix indentation.
1555 * frv-tdep.c: Fix indentation.
1556 * frv-tdep.h: Fix indentation.
1557 * ft32-tdep.c: Fix indentation.
1558 * gcore.c: Fix indentation.
1559 * gdb_bfd.c: Fix indentation.
1560 * gdbarch.sh: Fix indentation.
1561 * gdbarch.c: Re-generate
1562 * gdbarch.h: Re-generate.
1563 * gdbcore.h: Fix indentation.
1564 * gdbthread.h: Fix indentation.
1565 * gdbtypes.c: Fix indentation.
1566 * gdbtypes.h: Fix indentation.
1567 * glibc-tdep.c: Fix indentation.
1568 * gnu-nat.c: Fix indentation.
1569 * gnu-nat.h: Fix indentation.
1570 * gnu-v2-abi.c: Fix indentation.
1571 * gnu-v3-abi.c: Fix indentation.
1572 * go32-nat.c: Fix indentation.
1573 * guile/guile-internal.h: Fix indentation.
1574 * guile/scm-cmd.c: Fix indentation.
1575 * guile/scm-frame.c: Fix indentation.
1576 * guile/scm-iterator.c: Fix indentation.
1577 * guile/scm-math.c: Fix indentation.
1578 * guile/scm-ports.c: Fix indentation.
1579 * guile/scm-pretty-print.c: Fix indentation.
1580 * guile/scm-value.c: Fix indentation.
1581 * h8300-tdep.c: Fix indentation.
1582 * hppa-linux-nat.c: Fix indentation.
1583 * hppa-linux-tdep.c: Fix indentation.
1584 * hppa-nbsd-nat.c: Fix indentation.
1585 * hppa-nbsd-tdep.c: Fix indentation.
1586 * hppa-obsd-nat.c: Fix indentation.
1587 * hppa-tdep.c: Fix indentation.
1588 * hppa-tdep.h: Fix indentation.
1589 * i386-bsd-nat.c: Fix indentation.
1590 * i386-darwin-nat.c: Fix indentation.
1591 * i386-darwin-tdep.c: Fix indentation.
1592 * i386-dicos-tdep.c: Fix indentation.
1593 * i386-gnu-nat.c: Fix indentation.
1594 * i386-linux-nat.c: Fix indentation.
1595 * i386-linux-tdep.c: Fix indentation.
1596 * i386-nto-tdep.c: Fix indentation.
1597 * i386-obsd-tdep.c: Fix indentation.
1598 * i386-sol2-nat.c: Fix indentation.
1599 * i386-tdep.c: Fix indentation.
1600 * i386-tdep.h: Fix indentation.
1601 * i386-windows-tdep.c: Fix indentation.
1602 * i387-tdep.c: Fix indentation.
1603 * i387-tdep.h: Fix indentation.
1604 * ia64-libunwind-tdep.c: Fix indentation.
1605 * ia64-libunwind-tdep.h: Fix indentation.
1606 * ia64-linux-nat.c: Fix indentation.
1607 * ia64-linux-tdep.c: Fix indentation.
1608 * ia64-tdep.c: Fix indentation.
1609 * ia64-tdep.h: Fix indentation.
1610 * ia64-vms-tdep.c: Fix indentation.
1611 * infcall.c: Fix indentation.
1612 * infcmd.c: Fix indentation.
1613 * inferior.c: Fix indentation.
1614 * infrun.c: Fix indentation.
1615 * iq2000-tdep.c: Fix indentation.
1616 * language.c: Fix indentation.
1617 * linespec.c: Fix indentation.
1618 * linux-fork.c: Fix indentation.
1619 * linux-nat.c: Fix indentation.
1620 * linux-tdep.c: Fix indentation.
1621 * linux-thread-db.c: Fix indentation.
1622 * lm32-tdep.c: Fix indentation.
1623 * m2-lang.c: Fix indentation.
1624 * m2-typeprint.c: Fix indentation.
1625 * m2-valprint.c: Fix indentation.
1626 * m32c-tdep.c: Fix indentation.
1627 * m32r-linux-tdep.c: Fix indentation.
1628 * m32r-tdep.c: Fix indentation.
1629 * m68hc11-tdep.c: Fix indentation.
1630 * m68k-bsd-nat.c: Fix indentation.
1631 * m68k-linux-nat.c: Fix indentation.
1632 * m68k-linux-tdep.c: Fix indentation.
1633 * m68k-tdep.c: Fix indentation.
1634 * machoread.c: Fix indentation.
1635 * macrocmd.c: Fix indentation.
1636 * macroexp.c: Fix indentation.
1637 * macroscope.c: Fix indentation.
1638 * macrotab.c: Fix indentation.
1639 * macrotab.h: Fix indentation.
1640 * main.c: Fix indentation.
1641 * mdebugread.c: Fix indentation.
1642 * mep-tdep.c: Fix indentation.
1643 * mi/mi-cmd-catch.c: Fix indentation.
1644 * mi/mi-cmd-disas.c: Fix indentation.
1645 * mi/mi-cmd-env.c: Fix indentation.
1646 * mi/mi-cmd-stack.c: Fix indentation.
1647 * mi/mi-cmd-var.c: Fix indentation.
1648 * mi/mi-cmds.c: Fix indentation.
1649 * mi/mi-main.c: Fix indentation.
1650 * mi/mi-parse.c: Fix indentation.
1651 * microblaze-tdep.c: Fix indentation.
1652 * minidebug.c: Fix indentation.
1653 * minsyms.c: Fix indentation.
1654 * mips-linux-nat.c: Fix indentation.
1655 * mips-linux-tdep.c: Fix indentation.
1656 * mips-nbsd-tdep.c: Fix indentation.
1657 * mips-tdep.c: Fix indentation.
1658 * mn10300-linux-tdep.c: Fix indentation.
1659 * mn10300-tdep.c: Fix indentation.
1660 * moxie-tdep.c: Fix indentation.
1661 * msp430-tdep.c: Fix indentation.
1662 * namespace.h: Fix indentation.
1663 * nat/fork-inferior.c: Fix indentation.
1664 * nat/gdb_ptrace.h: Fix indentation.
1665 * nat/linux-namespaces.c: Fix indentation.
1666 * nat/linux-osdata.c: Fix indentation.
1667 * nat/netbsd-nat.c: Fix indentation.
1668 * nat/x86-dregs.c: Fix indentation.
1669 * nbsd-nat.c: Fix indentation.
1670 * nbsd-tdep.c: Fix indentation.
1671 * nios2-linux-tdep.c: Fix indentation.
1672 * nios2-tdep.c: Fix indentation.
1673 * nto-procfs.c: Fix indentation.
1674 * nto-tdep.c: Fix indentation.
1675 * objfiles.c: Fix indentation.
1676 * objfiles.h: Fix indentation.
1677 * opencl-lang.c: Fix indentation.
1678 * or1k-tdep.c: Fix indentation.
1679 * osabi.c: Fix indentation.
1680 * osabi.h: Fix indentation.
1681 * osdata.c: Fix indentation.
1682 * p-lang.c: Fix indentation.
1683 * p-typeprint.c: Fix indentation.
1684 * p-valprint.c: Fix indentation.
1685 * parse.c: Fix indentation.
1686 * ppc-linux-nat.c: Fix indentation.
1687 * ppc-linux-tdep.c: Fix indentation.
1688 * ppc-nbsd-nat.c: Fix indentation.
1689 * ppc-nbsd-tdep.c: Fix indentation.
1690 * ppc-obsd-nat.c: Fix indentation.
1691 * ppc-ravenscar-thread.c: Fix indentation.
1692 * ppc-sysv-tdep.c: Fix indentation.
1693 * ppc64-tdep.c: Fix indentation.
1694 * printcmd.c: Fix indentation.
1695 * proc-api.c: Fix indentation.
1696 * producer.c: Fix indentation.
1697 * producer.h: Fix indentation.
1698 * prologue-value.c: Fix indentation.
1699 * prologue-value.h: Fix indentation.
1700 * psymtab.c: Fix indentation.
1701 * python/py-arch.c: Fix indentation.
1702 * python/py-bpevent.c: Fix indentation.
1703 * python/py-event.c: Fix indentation.
1704 * python/py-event.h: Fix indentation.
1705 * python/py-finishbreakpoint.c: Fix indentation.
1706 * python/py-frame.c: Fix indentation.
1707 * python/py-framefilter.c: Fix indentation.
1708 * python/py-inferior.c: Fix indentation.
1709 * python/py-infthread.c: Fix indentation.
1710 * python/py-objfile.c: Fix indentation.
1711 * python/py-prettyprint.c: Fix indentation.
1712 * python/py-registers.c: Fix indentation.
1713 * python/py-signalevent.c: Fix indentation.
1714 * python/py-stopevent.c: Fix indentation.
1715 * python/py-stopevent.h: Fix indentation.
1716 * python/py-threadevent.c: Fix indentation.
1717 * python/py-tui.c: Fix indentation.
1718 * python/py-unwind.c: Fix indentation.
1719 * python/py-value.c: Fix indentation.
1720 * python/py-xmethods.c: Fix indentation.
1721 * python/python-internal.h: Fix indentation.
1722 * python/python.c: Fix indentation.
1723 * ravenscar-thread.c: Fix indentation.
1724 * record-btrace.c: Fix indentation.
1725 * record-full.c: Fix indentation.
1726 * record.c: Fix indentation.
1727 * reggroups.c: Fix indentation.
1728 * regset.h: Fix indentation.
1729 * remote-fileio.c: Fix indentation.
1730 * remote.c: Fix indentation.
1731 * reverse.c: Fix indentation.
1732 * riscv-linux-tdep.c: Fix indentation.
1733 * riscv-ravenscar-thread.c: Fix indentation.
1734 * riscv-tdep.c: Fix indentation.
1735 * rl78-tdep.c: Fix indentation.
1736 * rs6000-aix-tdep.c: Fix indentation.
1737 * rs6000-lynx178-tdep.c: Fix indentation.
1738 * rs6000-nat.c: Fix indentation.
1739 * rs6000-tdep.c: Fix indentation.
1740 * rust-lang.c: Fix indentation.
1741 * rx-tdep.c: Fix indentation.
1742 * s12z-tdep.c: Fix indentation.
1743 * s390-linux-tdep.c: Fix indentation.
1744 * score-tdep.c: Fix indentation.
1745 * ser-base.c: Fix indentation.
1746 * ser-mingw.c: Fix indentation.
1747 * ser-uds.c: Fix indentation.
1748 * ser-unix.c: Fix indentation.
1749 * serial.c: Fix indentation.
1750 * sh-linux-tdep.c: Fix indentation.
1751 * sh-nbsd-tdep.c: Fix indentation.
1752 * sh-tdep.c: Fix indentation.
1753 * skip.c: Fix indentation.
1754 * sol-thread.c: Fix indentation.
1755 * solib-aix.c: Fix indentation.
1756 * solib-darwin.c: Fix indentation.
1757 * solib-frv.c: Fix indentation.
1758 * solib-svr4.c: Fix indentation.
1759 * solib.c: Fix indentation.
1760 * source.c: Fix indentation.
1761 * sparc-linux-tdep.c: Fix indentation.
1762 * sparc-nbsd-tdep.c: Fix indentation.
1763 * sparc-obsd-tdep.c: Fix indentation.
1764 * sparc-ravenscar-thread.c: Fix indentation.
1765 * sparc-tdep.c: Fix indentation.
1766 * sparc64-linux-tdep.c: Fix indentation.
1767 * sparc64-nbsd-tdep.c: Fix indentation.
1768 * sparc64-obsd-tdep.c: Fix indentation.
1769 * sparc64-tdep.c: Fix indentation.
1770 * stabsread.c: Fix indentation.
1771 * stack.c: Fix indentation.
1772 * stap-probe.c: Fix indentation.
1773 * stubs/ia64vms-stub.c: Fix indentation.
1774 * stubs/m32r-stub.c: Fix indentation.
1775 * stubs/m68k-stub.c: Fix indentation.
1776 * stubs/sh-stub.c: Fix indentation.
1777 * stubs/sparc-stub.c: Fix indentation.
1778 * symfile-mem.c: Fix indentation.
1779 * symfile.c: Fix indentation.
1780 * symfile.h: Fix indentation.
1781 * symmisc.c: Fix indentation.
1782 * symtab.c: Fix indentation.
1783 * symtab.h: Fix indentation.
1784 * target-float.c: Fix indentation.
1785 * target.c: Fix indentation.
1786 * target.h: Fix indentation.
1787 * tic6x-tdep.c: Fix indentation.
1788 * tilegx-linux-tdep.c: Fix indentation.
1789 * tilegx-tdep.c: Fix indentation.
1790 * top.c: Fix indentation.
1791 * tracefile-tfile.c: Fix indentation.
1792 * tracepoint.c: Fix indentation.
1793 * tui/tui-disasm.c: Fix indentation.
1794 * tui/tui-io.c: Fix indentation.
1795 * tui/tui-regs.c: Fix indentation.
1796 * tui/tui-stack.c: Fix indentation.
1797 * tui/tui-win.c: Fix indentation.
1798 * tui/tui-winsource.c: Fix indentation.
1799 * tui/tui.c: Fix indentation.
1800 * typeprint.c: Fix indentation.
1801 * ui-out.h: Fix indentation.
1802 * unittests/copy_bitwise-selftests.c: Fix indentation.
1803 * unittests/memory-map-selftests.c: Fix indentation.
1804 * utils.c: Fix indentation.
1805 * v850-tdep.c: Fix indentation.
1806 * valarith.c: Fix indentation.
1807 * valops.c: Fix indentation.
1808 * valprint.c: Fix indentation.
1809 * valprint.h: Fix indentation.
1810 * value.c: Fix indentation.
1811 * value.h: Fix indentation.
1812 * varobj.c: Fix indentation.
1813 * vax-tdep.c: Fix indentation.
1814 * windows-nat.c: Fix indentation.
1815 * windows-tdep.c: Fix indentation.
1816 * xcoffread.c: Fix indentation.
1817 * xml-syscall.c: Fix indentation.
1818 * xml-tdesc.c: Fix indentation.
1819 * xstormy16-tdep.c: Fix indentation.
1820 * xtensa-config.c: Fix indentation.
1821 * xtensa-linux-nat.c: Fix indentation.
1822 * xtensa-linux-tdep.c: Fix indentation.
1823 * xtensa-tdep.c: Fix indentation.
1824
1825 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1826 Craig Blackmore <craig.blackmore@embecosm.com>
1827
1828 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1829 as an unsigned value.
1830
1831 2020-11-01 Tom Tromey <tom@tromey.com>
1832
1833 * dbxread.c (dbx_end_psymtab): Update.
1834 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1835 (build_type_psymtabs_reader): Update.
1836 * xcoffread.c (xcoff_end_psymtab): Update.
1837 * ctfread.c (scan_partial_symbols): Update.
1838 * psymtab.c (sort_pst_symbols): Remove.
1839 (partial_symtab::end): Rename from end_psymtab_common. Inline
1840 sort_pst_symbols.
1841 * psympriv.h (struct partial_symtab) <end>: New method.
1842 (end_psymtab_common): Don't declare.
1843
1844 2020-11-01 Tom Tromey <tom@tromey.com>
1845
1846 * symmisc.c (count_psyms): New function.
1847 (print_objfile_statistics): Use it.
1848 * psymtab.c (append_psymbol_to_list): Remove.
1849 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1850 * objfiles.h (struct objstats) <n_psyms>: Remove.
1851
1852 2020-11-01 Tom Tromey <tom@tromey.com>
1853
1854 * dbxread.c (dbx_end_psymtab): Update.
1855 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1856 (build_type_psymtabs_reader): Update.
1857 * xcoffread.c (xcoff_end_psymtab): Update.
1858 * ctfread.c (scan_partial_symbols): Update.
1859 * psympriv.h (end_psymtab_common): Update.
1860 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1861 (sort_pst_symbols): Likewise.
1862
1863 2020-11-01 Tom Tromey <tom@tromey.com>
1864
1865 * dbxread.c (dbx_symfile_read): Update.
1866 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1867 * xcoffread.c (xcoff_initial_scan): Update.
1868 * psympriv.h (init_psymbol_list): Don't declare.
1869 * psymtab.c (init_psymbol_list): Remove.
1870
1871 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1872
1873 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1874 gnat_encoded_fixed_type_info. Update all callers.
1875
1876 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1877
1878 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1879 line too long.
1880
1881 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1882
1883 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1884 cast_from_fixed. Update all callers.
1885 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1886 Update all callers.
1887 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1888 Update all callers.
1889 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1890 ada_scaling_factor.
1891 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1892 to print_gnat_encoded_fixed_point_type.
1893 * ada-valprint.c: Likewise.
1894
1895 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1898 (debug_prefixed_printf): Add check of debug_displaced flag.
1899 * linux-nat.c (linux_nat_debug_printf): Add check of
1900 debug_linux_nat flag.
1901
1902 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * infrun.c (infrun_debug_printf_1): Remove.
1905 (displaced_debug_printf_1): Remove.
1906 (stop_all_threads): Use debug_prefixed_printf.
1907 * infrun.h (infrun_debug_printf_1): Remove.
1908 (infrun_debug_printf): Use debug_prefixed_printf.
1909 (displaced_debug_printf_1): Remove.
1910 (displaced_debug_printf): Use debug_prefixed_printf.
1911 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1912 (linux_nat_debug_printf): Use debug_prefixed_printf.
1913
1914 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1915
1916 * configure: Re-generate.
1917 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1918 AC_LANG_PROGRAM.
1919
1920 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * configure: Re-generate.
1923
1924 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * configure: Re-generate.
1927
1928 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * configure: Re-generate.
1931
1932 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * configure: Re-generate.
1935
1936 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * acinclude.m4: Modernize.
1939 * configure: Re-generate.
1940
1941 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1942
1943 * configure.ac: Modernize.
1944 * configure: Re-generate.
1945
1946 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1947
1948 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1949 * configure: Re-generate.
1950 * configure.ac: Remove AM_PROG_CC_STDC.
1951
1952 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1953
1954 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1955 AC_CANONICAL_SYSTEM.
1956 * configure: Re-generate.
1957
1958 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * infrun.h (displaced_debug_printf): New macro. Replace
1961 displaced debug prints throughout to use it.
1962 (displaced_debug_printf_1): New declaration.
1963 (displaced_step_dump_bytes): Return string, remove ui_file
1964 parameter, update all callers.
1965 * infrun.c (displaced_debug_printf_1): New function.
1966 (displaced_step_dump_bytes): Return string, remove ui_file
1967 parameter
1968
1969 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1970
1971 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1972
1973 2020-10-30 Tom Tromey <tromey@adacore.com>
1974
1975 * Makefile.in (stamp-init): Depend on config.status.
1976
1977 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978
1979 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1980
1981 2020-10-30 Pedro Alves <pedro@palves.net>
1982
1983 * thread.c (lookup_selected_frame): Move ...
1984 * frame.c (lookup_selected_frame): ... here.
1985
1986 2020-10-30 Pedro Alves <pedro@palves.net>
1987
1988 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1989 * frame.c
1990 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1991 Use save_selected_frame. Save language as well.
1992 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1993 Use restore_selected_frame, and restore language as well.
1994 (selected_frame_id, selected_frame_level): New.
1995 (selected_frame): Update comments.
1996 (save_selected_frame, restore_selected_frame): New.
1997 (get_selected_frame): Use lookup_selected_frame.
1998 (get_selected_frame_if_set): Delete.
1999 (select_frame): Record selected_frame_level and selected_frame_id.
2000 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2001 fields.
2002 (get_selected_frame): Make 'message' parameter optional.
2003 (get_selected_frame_if_set): Delete declaration.
2004 (select_frame): Update comments.
2005 (save_selected_frame, restore_selected_frame)
2006 (lookup_selected_frame): Declare.
2007 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2008 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2009 New field.
2010 (save_infcall_control_state): Use save_selected_frame.
2011 (restore_selected_frame): Delete.
2012 (restore_infcall_control_state): Use restore_selected_frame.
2013 * stack.c (select_frame_command_core, frame_command_core): Use
2014 get_selected_frame.
2015 * thread.c (restore_selected_frame): Rename to ...
2016 (lookup_selected_frame): ... this and make extern. Select the
2017 current frame if the frame level is -1.
2018 (scoped_restore_current_thread::restore): Also restore the
2019 language.
2020 (scoped_restore_current_thread::~scoped_restore_current_thread):
2021 Don't try/catch.
2022 (scoped_restore_current_thread::scoped_restore_current_thread):
2023 Save the language as well. Use save_selected_frame.
2024
2025 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2028 documentation.
2029 * gdbarch.h: Re-generate.
2030
2031 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2034 parameter.
2035 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2036 Likewise.
2037 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2038 Likewise.
2039 * arch-utils.c (default_displaced_step_hw_singlestep):
2040 Likewise.
2041 * arch-utils.h (default_displaced_step_hw_singlestep):
2042 Likewise.
2043 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2044 Likewise.
2045 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2046 Likewise.
2047 * gdbarch.c: Re-generate.
2048 * gdbarch.h: Re-generate.
2049 * infrun.c (resume_1): Adjust.
2050
2051 2020-10-29 Tom Tromey <tom@tromey.com>
2052
2053 * progspace.c (program_space::~program_space): Don't call
2054 exec_close.
2055
2056 2020-10-29 Tom Tromey <tom@tromey.com>
2057
2058 * exec.c (exec_target::close): Don't change current program
2059 space.
2060
2061 2020-10-29 Tom Tromey <tom@tromey.com>
2062
2063 * symfile.c (add_symbol_file_command): Update.
2064 * exec.c (program_space::add_target_sections): Rename.
2065 * symfile-mem.c (symbol_file_add_from_memory): Update.
2066 * progspace.h (struct program_space) <add_target_sections>:
2067 Declare new overload.
2068 * exec.h (add_target_sections_of_objfile): Don't declare.
2069
2070 2020-10-29 Tom Tromey <tom@tromey.com>
2071
2072 * solib.c (solib_map_sections): Update.
2073 * exec.c (program_space::add_target_sections): Now a method.
2074 (exec_file_attach): Update.
2075 * exec.h (add_target_sections): Don't declare.
2076 * progspace.h (struct program_space) <add_target_sections>:
2077 Declare.
2078
2079 2020-10-29 Tom Tromey <tom@tromey.com>
2080
2081 * progspace.h (struct program_space) <remove_target_sections>:
2082 Declare.
2083 * exec.c (program_space::remove_target_sections): Now a method.
2084 * exec.h (remove_target_sections): Don't declare.
2085
2086 2020-10-29 Tom Tromey <tom@tromey.com>
2087
2088 * inferior.c (delete_inferior): Update.
2089 * progspace.c (program_space::empty): Rename from
2090 program_space_empty_p. Return bool.
2091 * progspace.h (struct program_space) <empty>: New method.
2092 (program_space_empty_p): Don't declare.
2093
2094 2020-10-29 Tom Tromey <tom@tromey.com>
2095
2096 * progspace.c (program_space::~program_space): Don't call
2097 clear_program_space_solib_cache.
2098 (program_space::clear_solib_cache): Rename from
2099 clear_solib_cache.
2100 * solib.c (handle_solib_event): Update.
2101 * progspace.h (struct program_space) <clear_solib_cache>: New
2102 method.
2103 (clear_program_space_solib_cache): Don't declare.
2104
2105 2020-10-29 Tom Tromey <tom@tromey.com>
2106
2107 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2108 * target.c (info_target_command): Update.
2109 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2110 (symbol_file_clear, reread_symbols): Update.
2111 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2112 * stabsread.c (scan_file_globals): Update.
2113 * solib.c (update_solib_list): Update.
2114 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2115 (svr4_fetch_objfile_link_map, enable_break)
2116 (svr4_relocate_main_executable)
2117 (svr4_iterate_over_objfiles_in_search_order): Update.
2118 * solib-frv.c (lm_base, enable_break)
2119 (frv_relocate_main_executable): Update.
2120 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2121 (frv_fetch_objfile_link_map): Update.
2122 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2123 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2124 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2125 * remote.c (remote_target::get_offsets): Update.
2126 (remote_target::start_remote)
2127 (extended_remote_target::post_attach): Update.
2128 * objfiles.c (entry_point_address_query): Update.
2129 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2130 * minsyms.c (get_symbol_leading_char): Update.
2131 * frame.c (inside_main_func): Update.
2132 * progspace.h (symfile_objfile): Remove macro.
2133
2134 2020-10-29 Tom Tromey <tom@tromey.com>
2135
2136 * exec.c (exec_file_attach): Update.
2137 * progspace.c (program_space::exec_close): Update.
2138 * progspace.h (struct program_space) <ebfd>: Now a
2139 gdb_bfd_ref_ptr.
2140 <set_exec_bfd>: Change argument type.
2141 <exec_bfd>: Update.
2142
2143 2020-10-29 Tom Tromey <tom@tromey.com>
2144
2145 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2146 * symfile.c (reread_symbols): Update.
2147 * symfile-mem.c (add_symbol_file_from_memory_command)
2148 (add_vsyscall_page): Update.
2149 * source-cache.c (source_cache::get_plain_source_lines): Update.
2150 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2151 (svr4_current_sos_direct, svr4_exec_displacement)
2152 (svr4_relocate_main_executable): Update.
2153 (svr4_iterate_over_objfiles_in_search_order): Update.
2154 * solib-frv.c (enable_break2, enable_break): Update.
2155 * solib-dsbt.c (lm_base, enable_break): Update.
2156 * solib-darwin.c (find_program_interpreter)
2157 (darwin_solib_create_inferior_hook): Update.
2158 * sol-thread.c (rw_common, ps_pdmodel): Update.
2159 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2160 * remote.c (compare_sections_command)
2161 (remote_target::trace_set_readonly_regions): Update.
2162 * remote-sim.c (get_sim_inferior_data)
2163 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2164 (gdbsim_target_open, gdbsim_target::files_info): Update.
2165 * exec.h (exec_bfd): Remove macro.
2166 * progspace.c (initialize_progspace): Update.
2167 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2168 Update.
2169 * nto-procfs.c (nto_procfs_target::post_attach)
2170 (nto_procfs_target::create_inferior): Update.
2171 * maint.c (maintenance_info_sections): Update.
2172 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2173 Update.
2174 * infcmd.c (post_create_inferior): Update.
2175 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2176 (objfile_find_memory_regions): Update.
2177 * exec.c (validate_exec_file, exec_file_attach)
2178 (exec_read_partial_read_only, print_section_info): Update.
2179 * corelow.c (core_target_open): Update.
2180 * corefile.c (reopen_exec_file, validate_files): Update.
2181 * arm-tdep.c (gdb_print_insn_arm): Update.
2182 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2183 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2184 methods.
2185
2186 2020-10-29 Tom Tromey <tom@tromey.com>
2187
2188 * progspace.h (current_target_sections): Remove macro.
2189 * solib-svr4.c (scan_dyntag): Update.
2190 * solib-dsbt.c (scan_dyntag): Update.
2191 * exec.c (exec_target::close): Update.
2192 (add_target_sections, add_target_sections_of_objfile)
2193 (remove_target_sections, exec_target::get_section_table)
2194 (exec_target::files_info, set_section_command)
2195 (exec_set_section_address, exec_target::has_memory)
2196 (exec_target::has_memory): Update.
2197
2198 2020-10-29 Tom Tromey <tom@tromey.com>
2199
2200 * source-cache.c (source_cache::get_plain_source_lines): Use
2201 current_program_space.
2202 * corefile.c (reopen_exec_file): Use current_program_space.
2203 * exec.c (exec_file_attach): Use current_program_space.
2204 * exec.h (exec_bfd_mtime): Remove.
2205
2206 2020-10-29 Tom Tromey <tom@tromey.com>
2207
2208 * gcore.c (default_gcore_mach): Remove.
2209 (create_gcore_bfd): Update.
2210
2211 2020-10-29 Tom Tromey <tom@tromey.com>
2212
2213 * progspace.c (program_space::exec_close): New method, from
2214 exec_close in exec.c.
2215 * exec.c (exec_close): Move to progspace.c.
2216 (exec_target::close, exec_file_attach): Update.
2217 * progspace.h (struct program_space) <exec_close>: Declare
2218 method.
2219
2220 2020-10-29 Tom Tromey <tom@tromey.com>
2221
2222 * progspace.h (struct program_space) <exec_filename>: Rename from
2223 pspace_exec_filename. Now a unique_xmalloc_ptr.
2224 * inferior.c (print_selected_inferior): Update.
2225 (print_inferior): Update.
2226 * mi/mi-main.c (print_one_inferior): Update.
2227 * exec.h (exec_filename): Remove macro.
2228 * corefile.c (get_exec_file): Update.
2229 * exec.c (exec_close): Update.
2230 (exec_file_attach): Update.
2231 * progspace.c (clone_program_space): Update.
2232 (print_program_space): Update.
2233
2234 2020-10-29 Tom Tromey <tom@tromey.com>
2235
2236 * target-section.h (struct target_section): Add constructor.
2237 * exec.c (build_section_table, add_target_sections_of_objfile):
2238 Update.
2239 * corelow.c (core_target::build_file_mappings): Update.
2240
2241 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242
2243 PR gdb/19318
2244 * inferior.c (detach_inferior_command): Restore the current thread.
2245 (kill_inferior_command): Ditto.
2246
2247 2020-10-28 Tom de Vries <tdevries@suse.de>
2248
2249 PR symtab/26772
2250 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2251 map, check it in the "best match" loop.
2252
2253 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2254
2255 * m32c-tdep.c: Remove unused includes.
2256
2257 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2258
2259 * xtensa-tdep.c: Remove includes.
2260
2261 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2262
2263 * breakpoint.c (struct condition_command_opts): New struct.
2264 (condition_command_option_defs): New static global.
2265 (make_condition_command_options_def_group): New function.
2266 (condition_completer): Update to consider the '-force' flag.
2267 (condition_command): Use gdb::option for the '-force' flag.
2268
2269 2020-10-27 Tom de Vries <tdevries@suse.de>
2270
2271 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2272 symbols in section check.
2273
2274 2020-10-27 Tom de Vries <tdevries@suse.de>
2275
2276 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2277
2278 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2279
2280 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2281 * breakpoint.c: Update the help text of the 'condition' and 'break'
2282 commands.
2283 (set_breakpoint_condition): Take a new bool parameter
2284 to control whether condition definition should be forced even when
2285 the condition expression is invalid in all of the current locations.
2286 (condition_command): Update the call to 'set_breakpoint_condition'.
2287 (find_condition_and_thread): Take the "-force-condition" flag into
2288 account.
2289 * linespec.c (linespec_keywords): Add "-force-condition" as an
2290 element.
2291 (FORCE_KEYWORD_INDEX): New #define.
2292 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2293 as a keyword.
2294 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2295 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2296 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2297 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2298
2299 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2300
2301 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2302 * breakpoint.c (set_breakpoint_location_condition): New function.
2303 (set_breakpoint_condition): Disable a breakpoint location if parsing
2304 the condition string gives an error.
2305 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2306 (build_target_condition_list): Ditto.
2307 (build_target_command_list): Ditto.
2308 (build_bpstat_chain): Ditto.
2309 (print_one_breakpoint_location): Ditto.
2310 (print_one_breakpoint): Ditto.
2311 (breakpoint_1): Ditto.
2312 (bp_location::bp_location): Ditto.
2313 (locations_are_equal): Ditto.
2314 (update_breakpoint_locations): Ditto.
2315 (enable_disable_bp_num_loc): Ditto.
2316 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2317 (find_condition_and_thread_for_sals): New static function.
2318 (create_breakpoint): Call find_condition_and_thread_for_sals.
2319 (location_to_sals): Call find_condition_and_thread_for_sals instead
2320 of find_condition_and_thread.
2321
2322 2020-10-26 Tom de Vries <tdevries@suse.de>
2323
2324 * dwarf2/read.c (process_full_comp_unit): Call
2325 dwarf2_find_base_address.
2326
2327 2020-10-26 Tom Tromey <tromey@adacore.com>
2328
2329 * gdbtypes.c (create_range_type): Revert previous patch. Add
2330 comment.
2331
2332 2020-10-26 Pedro Alves <pedro@palves.net>
2333
2334 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2335 (my_waitpid): Use gdb::handle_eintr.
2336
2337 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2338
2339 * acinclude.m4: Update ptrace.m4 path.
2340 * ptrace.m4: Moved to gdbsupport.
2341
2342 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2343
2344 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2345 instead of target_gdbarch.
2346
2347 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * jit.c (jit_reader_load_command): Pass current inferior.
2350 (jit_inferior_init): Change parameter type to inferior, use it.
2351 (jit_inferior_created): Remove.
2352 (jit_inferior_created_hook): Pass inferior parameter down.
2353 (_initialize_jit): Use jit_inferior_created_hook instead of
2354 jit_inferior_created.
2355 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2356 * infrun.c (follow_exec): Pass inferior to
2357 jit_inferior_created_hook.
2358
2359 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2362 parameter and use it.
2363 (thread_db_inferior_created): Pass inferior argument.
2364
2365 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * aix-thread.c (aix_thread_inferior_created): Add inferior
2368 parameter.
2369 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2370 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2371 * jit.c (jit_inferior_created): Likewise.
2372 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2373 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2374 * observable.h (inferior_created): Likewise.
2375 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2376 * symfile-mem.c (add_vsyscall_page): Likewise.
2377 * infcmd.c (post_create_inferior): Pass inferior argument.
2378
2379 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2380
2381 GDB 10.1 released.
2382
2383 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2384
2385 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2386 to ada_check_typedef.
2387
2388 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2389
2390 * f-exp.y (f_parse): Rename to...
2391 (f_language::parser): ...this.
2392 * f-lang.c (f_get_encoding): Rename to...
2393 (f_language::get_encoding): ...this.
2394 (f_op_print_tab): Rename to...
2395 (f_language::op_print_tab): ...this.
2396 (exp_descriptor_f): Rename to...
2397 (f_language::exp_descriptor_tab): ...this.
2398 (class f_language): Moved to f-lang.h.
2399 (f_language::language_arch_info): New function, moved out of class
2400 declaration.
2401 (f_language::search_name_hash): Likewise.
2402 (f_language::lookup_symbol_nonlocal): Likewise.
2403 (f_language::get_symbol_name_matcher_inner): Likewise.
2404 * f-lang.h: Add 'valprint.h' include.
2405 (class f_language): Moved here from f-lang.c.
2406 * f-typeprint.c (f_type_print_args): Delete commented out
2407 declaration.
2408 (f_print_typedef): Rename to...
2409 (f_language::print_typedef): ...this.
2410 (f_print_type): Rename to...
2411 (f_language::print_type): ...this.
2412 (f_type_print_varspec_prefix): Delete declaration and rename to...
2413 (f_language::f_type_print_varspec_prefix): ...this.
2414 (f_type_print_varspec_suffix): Delete declaration and rename to...
2415 (f_language::f_type_print_varspec_suffix): ...this.
2416 (f_type_print_base): Delete declaration and rename to...
2417 (f_language::f_type_print_base): ...this.
2418 * f-valprint.c (f_value_print_inner): Rename to...
2419 (f_language::value_print_inner): ...this.
2420 * parse.c: Delete 'f-lang.h' include.
2421
2422 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * language.h (language_defn::print_type): Add variable names in
2425 declaration, and update header comment.
2426
2427 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * ada-lang.c (ada_language::demangle): Rename to...
2430 (ada_language::demangle_symbol): ...this.
2431 * c-lang.c (cplus_language::demangle): Rename to...
2432 (cplus_language::demangle_symbol): ...this.
2433 * d-lang.c (d_language::demangle): Rename to...
2434 (d_language::demangle_symbol): ...this.
2435 * f-lang.c (f_language::demangle): Rename to...
2436 (f_language::demangle_symbol): ...this.
2437 * go-lang.c (go_language::demangle): Rename to...
2438 (go_language::demangle_symbol): ...this.
2439 * language.c (language_demangle): Update call to demangle_symbol.
2440 (auto_or_unknown_language::demangle): Rename to...
2441 (auto_or_unknown_language::demangle_symbol): ...this.
2442 * language.h (language_defn::demangle): Rename to...
2443 (language_defn::demangle_symbol): ...this.
2444 * objc-lang.c (objc_language::demangle): Rename to...
2445 (objc_language::demangle_symbol): ...this.
2446 * rust-lang.c (rust_language::demangle): Rename to...
2447 (rust_language::demangle_symbol): ...this.
2448
2449 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2452 (iterate_over_file_blocks): Replace use of macro with the macros
2453 definition.
2454
2455 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2456
2457 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2458 * valprint.c (maybe_print_array_index): Replace use of macro with
2459 the macros definition.
2460
2461 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * ada-lang.c (ada_language::print_array_index): Call value_print
2464 directly.
2465 * language.c (language_defn::print_array_index): Likewise.
2466 * language.h (LA_VALUE_PRINT): Delete.
2467 * valprint.c (value_print): Call value_print on the
2468 current_language directly.
2469
2470 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * language.h (LA_PRINT_TYPEDEF): Delete.
2473 * typeprint.c (typedef_print): Call print_typedef directly on the
2474 current_language object.
2475
2476 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2477
2478 * m2-exp.y (m2_parse): Rename to...
2479 (m2_language::parser): ...this. Update function signature.
2480 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2481 (m2_op_print): Rename to...
2482 (m2_language::op_print_tab): ...this, and make const.
2483 (exp_descriptor_modula2): Rename to...
2484 (m2_language::exp_descriptor_modula2): ...this.
2485 (class m2_language): Move to m2-lang.h.
2486 (m2_language::language_arch_info): New function, moved out of
2487 class declaration.
2488 (m2_language::printchar): New function, body from m2_printchar.
2489 (m2_language::printstr): New function, moved out of class
2490 declaration.
2491 (m2_language::emitchar): Likewise.
2492 * m2-lang.h (m2_parse): Delete declaration.
2493 (m2_print_typedef): Delete declaration.
2494 (m2_value_print_inner): Delete declaration.
2495 (class m2_language): Class declaration moved from m2-lang.c,
2496 larger functions are left in m2-lang.c.
2497 * m2-typeprint.c (m2_print_typedef): Rename to...
2498 (m2_language::print_typedef): ...this, and update function
2499 signature.
2500 * m2-valprint.c (m2_value_print_inner): Rename to...
2501 (m2_language::value_print_inner): ...this, replace use of
2502 LA_PRINT_STRING with a direct call to printstr member function,
2503 and update recursive call.
2504
2505 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * language.c (default_is_string_type_p): Delete, implementation
2508 moved into auto_or_unknown_language::is_string_type_p.
2509 (unk_op_print_tab): Moved into
2510 auto_or_unknown_language::opcode_print_table.
2511 (unknown_language_arch_info): Delete, implementation moved into
2512 auto_or_unknown_language::language_arch_info.
2513 (class auto_or_unknown_language): New class, member functions
2514 copied from unknown_language class, with some updates.
2515 (class unknown_language): Most member functions moved into
2516 auto_or_unknown_language class. Inherit from
2517 auto_or_unknown_language class.
2518 (class auto_language): Inherit from auto_or_unknown_language.
2519 Delete most member functions.
2520
2521 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2522
2523 * stabsread.c (read_member_functions): Remove gdb_assert.
2524
2525 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2526
2527 * gdbtypes.c (init_complex_type): Check target type name.
2528
2529 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * target-debug.h (target_debug_print_struct_target_ops_p):
2532 Remove.
2533 (target_debug_print_async_callback_ftype_p): Remove.
2534 (target_debug_print_struct_trace_state_variable_p): Remove.
2535 (target_debug_print_struct_traceframe_info_p): Remove.
2536 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2537 (target_debug_print_enum_btrace_format): Remove.
2538 (target_debug_print_enum_info_proc_what): Remove.
2539 (target_debug_print_thread_info_pp): Remove.
2540
2541 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * target.h (struct target_ops) <make_corefile_notes>:
2544 Change return type to unique pointer.
2545 * target.c (dummy_make_corefile_notes): Likewise.
2546 * exec.c (struct exec_target) <make_corefile_notes>:
2547 Likewise.
2548 (exec_target::make_corefile_notes): Likewise.
2549 * procfs.c (class procfs_target) <make_corefile_notes>:
2550 Likewise.
2551 (procfs_do_thread_registers): Adjust to unique pointer.
2552 (struct procfs_corefile_thread_data): Add constructor.
2553 <note_data>: Change type to unique pointer.
2554 (procfs_corefile_thread_callback): Adjust to unique pointer.
2555 (procfs_target::make_corefile_notes): Change return type to
2556 unique pointer.
2557 * target-delegates.c: Re-generate.
2558 * gcore.c (write_gcore_file_1): Adjust.
2559 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2560 New.
2561
2562 2020-10-22 Tom de Vries <tdevries@suse.de>
2563
2564 * block.c (find_block_in_blockvector): Make sure the returned block
2565 contains pc.
2566
2567 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 PR gdb/26693
2570 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2571 parameter.
2572 (load_cu): Pass existing CU.
2573 (process_imported_unit_die): Likewise.
2574 (follow_die_offset): Likewise.
2575
2576 2020-10-22 Luis Machado <luis.machado@linaro.org>
2577
2578 * corelow.c (core_target::xfer_partial): Also check for an empty
2579 m_core_unavailable_mappings vector.
2580
2581 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2584 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2585 * f-exp.y (arglist): Allow for a series of subranges.
2586 (subrange): Add cases for subranges with strides.
2587 * f-lang.c (value_f90_subarray): Catch use of array strides and
2588 throw an error.
2589 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2590
2591 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2592
2593 * expprint.c (print_subexp_standard): Change enum range_type to
2594 range_flag and rename variables to match.
2595 (dump_subexp_body_standard): Likewise.
2596 * expression.h (enum range_type): Rename to...
2597 (enum range_flag): ...this.
2598 (range_types): Rename to...
2599 (range_flags): ...this.
2600 * f-lang.c (value_f90_subarray): Change enum range_type to
2601 range_flag and rename variables to match.
2602 * parse.c (operator_length_standard): Likewise.
2603 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2604 range_type to range_flag.
2605 * rust-lang.c (rust_evaluate_funcall): Likewise.
2606 (rust_range): Likewise.
2607 (rust_compute_range): Likewise.
2608 (rust_subscript): Likewise.
2609
2610 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * expprint.c (print_subexp_standard): Update to reflect changes to
2613 enum range_type.
2614 (dump_subexp_body_standard): Likewise.
2615 * expression.h (enum range_type): Convert to a bit field enum, and
2616 make the enum unsigned.
2617 * f-exp.y (subrange): Update to reflect changes to enum
2618 range_type.
2619 * f-lang.c (value_f90_subarray): Likewise.
2620 * parse.c (operator_length_standard): Likewise.
2621 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2622 * rust-lang.c (rust_range): Likewise.
2623 (rust_compute_range): Likewise.
2624 (rust_subscript): Likewise.
2625
2626 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2627
2628 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2629 (displaced_step_in_progress): Fix comment.
2630
2631 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2632
2633 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2634 * gdbarch.c: Re-generate.
2635 * gdbarch.h: Re-generate.
2636 * gcore.c (write_gcore_file_1): Adjust.
2637 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2638 constructor.
2639 <note_data>: Change type to unique pointer.
2640 <abort_iteration>: Change type to bool.
2641 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2642 (fbsd_collect_thread_registers): Return void, adjust.
2643 (struct fbsd_corefile_thread_data): Add construtor.
2644 <note_data>: Change type to unique pointer.
2645 (fbsd_corefile_thread): Adjust.
2646 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2647 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2648 to unique pointer, adjust.
2649 (struct linux_collect_regset_section_cb_data): Add constructor.
2650 <note_data>: Change type to unique pointer.
2651 <abort_iteration>: Change type to bool.
2652 (linux_collect_thread_registers): Return void, adjust.
2653 (struct linux_corefile_thread_data): Add constructor.
2654 <note_data>: Change type to unique pointer.
2655 (linux_corefile_thread): Adjust.
2656 (linux_make_corefile_notes): Return unique pointer, adjust.
2657
2658 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2661 * gdbarch.c: Re-generate.
2662 * gdbarch.h: Re-generate.
2663 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2664 bool.
2665 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2666 Likewise.
2667 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2668 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2669 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2670 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2671
2672 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 * gdbarch.sh: Make generated predicates return bool.
2675 * gdbarch.c: Re-generate.
2676 * gdbarch.h: Re-generate.
2677
2678 2020-10-20 Tom Tromey <tom@tromey.com>
2679
2680 * varobj-iter.h (struct varobj_item): Remove typedef.
2681
2682 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * infrun.c (currently_stepping): Change int to bool
2685 (maybe_software_singlestep): Likewise.
2686 (show_stop_on_solib_events): Likewise.
2687 (stepping_past_nonsteppable_watchpoint): Likewise.
2688 (displaced_step_in_progress_any_inferior): Likewise.
2689 (displaced_step_in_progress_thread): Likewise.
2690 (keep_going_stepped_thread): Likewise.
2691 (thread_still_needs_step_over): Likewise.
2692 (start_step_over): Likewise.
2693 (do_target_resume): Likewise.
2694 (resume_1): Likewise.
2695 (clear_proceed_status): Likewise.
2696 (thread_still_needs_step_over_bp): Likewise.
2697 (proceed): Likewise.
2698 (switch_back_to_stepped_thread): Likewise.
2699 (adjust_pc_after_break): Likewise.
2700 (stepped_in_from): Likewise.
2701 (handle_stop_requested): Likewise.
2702 (handle_syscall_event): Likewise.
2703 (handle_no_resumed): Likewise.
2704 (handle_inferior_event): Likewise.
2705 (finish_step_over): Likewise.
2706 (handle_signal_stop): Likewise.
2707 (process_event_stop_test): Likewise.
2708
2709 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * infrun.c (get_displaced_stepping_state): Fix comment.
2712
2713 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2714
2715 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2716
2717 2020-10-19 Tom Tromey <tromey@adacore.com>
2718
2719 PR tui/26719
2720 * tui/tui-winsource.h (struct tui_source_window_base)
2721 <refresh_window>: Rename from refresh_pad.
2722 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2723 Rename from refresh_pad.
2724 (tui_source_window_base::show_source_content)
2725 (tui_source_window_base::do_scroll_horizontal): Update.
2726
2727 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2728
2729 * thread.c (_initialize_thread): Fine-tune the help text of
2730 'info threads'.
2731
2732 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2733
2734 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2735
2736 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2737
2738 * breakpoint.c (handle_jit_event): Add an argument, change how
2739 `jit_event_handler` is called.
2740
2741 2020-10-17 Tom Tromey <tom@tromey.com>
2742
2743 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2744 (scan_xcoff_symtab): Update.
2745 * psymtab.h (class psymtab_storage) <global_psymbols,
2746 static_psymbols, current_global_psymbols,
2747 current_static_psymbols>: Remove.
2748 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2749 (match_partial_symbol, lookup_partial_symbol): Update.
2750 (print_partial_symbols): Change parameters.
2751 (dump_psymtab, recursively_search_psymtabs)
2752 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2753 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2754 (concat): Remove.
2755 (end_psymtab_common): Simplify.
2756 (append_psymbol_to_list): Change parameters.
2757 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2758 (init_psymbol_list): Simplify.
2759 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2760 * psympriv.h (struct partial_symtab) <empty>: New method.
2761 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2762 Remove.
2763 <global_psymbols, static_psymbols>: New members.
2764 <add_psymbol>: New methods.
2765 (add_psymbol_to_list): Don't declare.
2766 (psymbol_placement): Move earlier.
2767 * mdebugread.c (parse_partial_symbols): Update.
2768 (handle_psymbol_enumerators): Change parameters.
2769 (mdebug_expand_psymtab): Update.
2770 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2771 (add_partial_symbol): Update.
2772 * dwarf2/index-write.c (write_psymbols): Change parameters.
2773 (write_one_signatured_type): Update.
2774 (recursively_count_psymbols): Update.
2775 (recursively_write_psymbols): Update.
2776 (class debug_names) <recursively_write_psymbols>: Update.
2777 <write_psymbols>: Change parameters.
2778 <write_one_signatured_type>: Update.
2779 * dbxread.c (read_dbx_symtab): Update.
2780 (dbx_end_psymtab): Use partial_symtab::empty.
2781 * ctfread.c (struct ctf_context) <pst>: New member.
2782 (create_partial_symtab): Set it.
2783 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2784 (scan_partial_symbols): Use the psymtab's context. Update.
2785
2786 2020-10-17 Tom Tromey <tom@tromey.com>
2787
2788 * valprint.c (generic_value_print): Remove comment.
2789 * m2-valprint.c (m2_value_print_inner): Remove comment.
2790 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2791 type.
2792
2793 2020-10-17 Tom de Vries <tdevries@suse.de>
2794
2795 PR symtab/26317
2796 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2797 symbol main.
2798
2799 2020-10-14 Tom de Vries <tdevries@suse.de>
2800
2801 PR gdb/26733
2802 * solib.c (solib_contains_address_p): Handle
2803 'solib->sections == nullptr'.
2804
2805 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 PR gdb/26642
2808 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2809 target can't do async.
2810 * target.c (target_wait): Assert that we don't pass
2811 TARGET_WNOHANG to a target that can't async.
2812
2813 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2814
2815 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2816 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2817 * alpha-bsd-nat.c: Adjust include.
2818 * alpha-bsd-tdep.h: Adjust comment.
2819 * alpha-nbsd-tdep.c: Rename to ...
2820 * alpha-netbsd-tdep.c: ... this, adjust include.
2821 * amd64-nbsd-nat.c: Rename to ...
2822 * amd64-netbsd-nat.c: ... this, adjust include.
2823 * amd64-nbsd-tdep.c: Rename to ...
2824 * amd64-netbsd-tdep.c: ... this, adjust include.
2825 * amd64-tdep.h: Adjust include.
2826 * arm-nbsd-nat.c: Rename to ...
2827 * arm-netbsd-nat.c: ... this, adjust include.
2828 * arm-nbsd-tdep.c: Rename to ...
2829 * arm-netbsd-tdep.c: ... this, adjust include.
2830 * arm-nbsd-tdep.h: Rename to ...
2831 * arm-netbsd-tdep.h: ... this, adjust include.
2832 * configure.nat: Adjust file lists.
2833 * configure.tgt: Likewise.
2834 * hppa-nbsd-nat.c: Rename to ...
2835 * hppa-netbsd-nat.c: ... this, adjust include.
2836 * hppa-nbsd-tdep.c: Rename to ...
2837 * hppa-netbsd-tdep.c: ... this, adjust include.
2838 * i386-nbsd-nat.c: Rename to ...
2839 * i386-netbsd-nat.c: ... this, adjust include.
2840 * i386-nbsd-tdep.c: Rename to ...
2841 * i386-netbsd-tdep.c: ... this, adjust include.
2842 * m68k-bsd-nat.c: Adjust include.
2843 * mips-nbsd-nat.c: Rename to ...
2844 * mips-netbsd-nat.c: ... this, adjust include.
2845 * mips-nbsd-tdep.c: Rename to ...
2846 * mips-netbsd-tdep.c: ... this, adjust include.
2847 * mips-nbsd-tdep.h: Rename to ...
2848 * mips-netbsd-tdep.h: ... this.
2849 * nbsd-nat.c: Rename to ...
2850 * netbsd-nat.c: ... this, adjust include.
2851 * nbsd-nat.h: Rename to ...
2852 * netbsd-nat.h: ... this, adjust include.
2853 * nbsd-tdep.c: Rename to ...
2854 * netbsd-tdep.c: ... this, adjust include.
2855 * nbsd-tdep.h: Rename to ...
2856 * netbsd-tdep.h: ... this.
2857 * ppc-nbsd-nat.c: Rename to ...
2858 * ppc-netbsd-nat.c: ... this, adjust include.
2859 * ppc-nbsd-tdep.c: Rename to ...
2860 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2861 * ppc-nbsd-tdep.h: Rename to ...
2862 * ppc-netbsd-tdep.h: ... this.
2863 * sh-nbsd-nat.c: Rename to ...
2864 * sh-netbsd-nat.c: ... this, adjust include.
2865 * sh-nbsd-tdep.c: Rename to ...
2866 * sh-netbsd-tdep.c: ... this, adjust include.
2867 * sparc-nbsd-nat.c: Rename to ...
2868 * sparc-netbsd-nat.c: ... this.
2869 * sparc-nbsd-tdep.c: Rename to ...
2870 * sparc-netbsd-tdep.c: ... this, adjust include.
2871 * sparc64-nbsd-nat.c: Rename to ...
2872 * sparc64-netbsd-nat.c: ... this.
2873 * sparc64-nbsd-tdep.c: Rename to ...
2874 * sparc64-netbsd-tdep.c: ... this, adjust include.
2875 * sparc64-tdep.h: Adjust comment.
2876 * vax-bsd-nat.c: Adjust include.
2877 * vax-nbsd-tdep.c: Rename to ...
2878 * vax-netbsd-tdep.c: ... this, adjust include.
2879
2880 2020-10-12 Tom Tromey <tom@tromey.com>
2881
2882 * target.h (struct target_ops) <get_section_table>: Update.
2883 (target_get_section_table): Update.
2884 * target.c (target_get_section_table, target_section_by_addr)
2885 (memory_xfer_partial_1): Update.
2886 * target-section.h (target_section_table): Now an alias.
2887 * target-delegates.c: Rebuild.
2888 * target-debug.h (target_debug_print_target_section_table_p):
2889 Rename from target_debug_print_struct_target_section_table_p.
2890 * symfile.c (build_section_addr_info_from_section_table): Update.
2891 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2892 * solib-svr4.c (scan_dyntag): Update.
2893 * solib-dsbt.c (scan_dyntag): Update.
2894 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2895 Update.
2896 * record-full.c (record_full_core_target::xfer_partial): Update.
2897 * progspace.h (struct program_space) <target_sections>: Update.
2898 * exec.h (print_section_info): Update.
2899 * exec.c (exec_target::close, build_section_table)
2900 (add_target_sections, add_target_sections_of_objfile)
2901 (remove_target_sections, exec_on_vfork)
2902 (section_table_available_memory)
2903 (section_table_xfer_memory_partial)
2904 (exec_target::get_section_table, exec_target::xfer_partial)
2905 (print_section_info, set_section_command)
2906 (exec_set_section_address, exec_target::has_memory): Update.
2907 * corelow.c (core_target::build_file_mappings)
2908 (core_target::xfer_partial, core_target::info_proc_mappings)
2909 (core_target::info_proc_mappings): Update.
2910 * bfd-target.c (class target_bfd): Update
2911
2912 2020-10-12 Tom Tromey <tom@tromey.com>
2913
2914 * progspace.c (program_space::~program_space): Don't call
2915 clear_section_table.
2916 * exec.h (clear_section_table): Don't declare.
2917 * exec.c (exec_target::close): Update.
2918 (clear_section_table): Remove.
2919
2920 2020-10-12 Tom Tromey <tom@tromey.com>
2921
2922 * exec.c (add_target_sections_of_objfile): Simplify.
2923
2924 2020-10-12 Tom Tromey <tom@tromey.com>
2925
2926 * solib.c (solib_map_sections): Update.
2927 * record-full.c (record_full_core_open_1): Update.
2928 * exec.h (build_section_table): Return a target_section_table.
2929 * exec.c (exec_file_attach): Update.
2930 (build_section_table): Return a target_section_table.
2931 * corelow.c (core_target::core_target): Update.
2932 * bfd-target.c (target_bfd::target_bfd): Update.
2933
2934 2020-10-12 Tom Tromey <tom@tromey.com>
2935
2936 * target.c (target_section_by_addr, memory_xfer_partial_1):
2937 Update.
2938 * target-section.h (struct target_section_table): Use
2939 std::vector.
2940 * symfile.h (build_section_addr_info_from_section_table): Take a
2941 target_section_table.
2942 * symfile.c (build_section_addr_info_from_section_table): Take a
2943 target_section_table.
2944 * solist.h (struct so_list) <sections>: Change type.
2945 <sections_end>: Remove.
2946 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2947 (solib_contains_address_p): Update.
2948 * solib-svr4.c (scan_dyntag): Update.
2949 * solib-dsbt.c (scan_dyntag): Update.
2950 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2951 Update.
2952 * record-full.c (record_full_core_start, record_full_core_end):
2953 Remove.
2954 (record_full_core_sections): New global.
2955 (record_full_core_open_1, record_full_core_target::xfer_partial):
2956 Update.
2957 * exec.h (build_section_table, section_table_xfer_memory_partial)
2958 (add_target_sections): Take a target_section_table.
2959 * exec.c (exec_file_attach, clear_section_table): Update.
2960 (resize_section_table): Remove.
2961 (build_section_table, add_target_sections): Take a
2962 target_section_table.
2963 (add_target_sections_of_objfile, remove_target_sections)
2964 (exec_on_vfork): Update.
2965 (section_table_available_memory): Take a target_section_table.
2966 (section_table_read_available_memory): Update.
2967 (section_table_xfer_memory_partial): Take a target_section_table.
2968 (print_section_info, set_section_command)
2969 (exec_set_section_address, exec_target::has_memory): Update.
2970 * corelow.c (class core_target) <m_core_section_table,
2971 m_core_file_mappings>: Remove braces.
2972 <~core_target>: Remove.
2973 (core_target::core_target): Update.
2974 (core_target::~core_target): Remove.
2975 (core_target::build_file_mappings)
2976 (core_target::xfer_memory_via_mappings)
2977 (core_target::xfer_partial, core_target::info_proc_mappings):
2978 Update.
2979 * bfd-target.c (target_bfd::xfer_partial): Update.
2980 (target_bfd::target_bfd): Update.
2981 (target_bfd::~target_bfd): Remove.
2982
2983 2020-10-12 Tom Tromey <tom@tromey.com>
2984
2985 * target.h (struct target_section, struct target_section_table):
2986 Move to target-section.h.
2987 * target-section.h: New file.
2988
2989 2020-10-12 Pedro Alves <pedro@palves.net>
2990
2991 PR exp/26602
2992 * valops.c (struct struct_field_searcher): New.
2993 (update_search_result): Rename to ...
2994 (struct_field_searcher::update_result): ... this. Simplify
2995 prototype. Record all found fields.
2996 (do_search_struct_field): Rename to ...
2997 (struct_field_searcher::search): ... this. Simplify prototype.
2998 Maintain stack of visited baseclass path. Call update_result for
2999 fields too. Keep searching fields in baseclasses instead of
3000 stopping at the first found field.
3001 (search_struct_field): Use struct_field_searcher. When looking
3002 for fields, report ambiguous access attempts.
3003
3004 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * frame.c (inside_main_func): Check full symbols as well as
3007 minimal symbols.
3008
3009 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3010
3011 * ada-lang.c (advance_wild_match): Rewrite the function's
3012 description. Change the type of target0, t0 and t1 to char.
3013
3014 2020-10-09 Tom Tromey <tromey@adacore.com>
3015
3016 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3017
3018 2020-10-09 Tom Tromey <tromey@adacore.com>
3019
3020 * ada-lang.h (ada_encode): Return std::string.
3021 * ada-lang.c (ada_encode_1): Return std::string.
3022 (ada_encode): Likewise.
3023 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3024 Update.
3025 * ada-exp.y (block_lookup, write_var_or_type): Update.
3026
3027 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3028
3029 PR exp/26714
3030 * printcmd.c (print_formatted): Handle void results as
3031 unformatted prints.
3032
3033 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * arch/aarch32.c (aarch32_create_target_description): Release the
3036 target_desc_up as late as possible.
3037 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3038 * arch/amd64.c (amd64_create_target_description): Likewise.
3039 * arch/arc.c (arc_create_target_description): Return a
3040 target_desc_up, don't release it.
3041 * arch/arc.h (arc_create_target_description): Update declaration.
3042 (arc_lookup_target_description): Move target_desc_up into the
3043 cache, and return a borrowed pointer.
3044 * arch/arm.c (arm_create_target_description): Release the
3045 target_desc_up as late as possible.
3046 * arch/i386.c (i386_create_target_description): Likewise.
3047 * arch/riscv.h (riscv_create_target_description): Update
3048 declaration to match definition.
3049 * arch/tic6x.c (tic6x_create_target_description): Release the
3050 target_desc_up as late as possible.
3051
3052 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3053
3054 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3055 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3056
3057 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3058
3059 * source.c (directory_command): Notify observers that "directories"
3060 parameter has changed.
3061
3062 2020-10-08 Tom Tromey <tom@tromey.com>
3063
3064 * cli/cli-cmds.c (print_disassembly): Style function name and
3065 addresses. Add _() wrappers.
3066
3067 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3068
3069 * NEWS: Mention ARC support in GDBserver.
3070
3071 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * arch/aarch32.c (aarch32_create_target_description): Release
3074 unique_ptr returned from allocate_target_description.
3075 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3076 * arch/amd64.c (amd64_create_target_description): Likewise.
3077 * arch/arc.c (arc_create_target_description): Likewise.
3078 * arch/arm.c (arm_create_target_description): Likewise.
3079 * arch/i386.c (i386_create_target_description): Likewise.
3080 * arch/riscv.c (riscv_create_target_description): Update return
3081 type. Handle allocate_target_description returning a unique_ptr.
3082 (riscv_lookup_target_description): Update to handle unique_ptr.
3083 * arch/tic6x.c (tic6x_create_target_description): Release
3084 unique_ptr returned from allocate_target_description.
3085 * features/microblaze-with-stack-protect.c: Regenerate.
3086 * features/microblaze.c: Regenerate.
3087 * features/mips-dsp-linux.c: Regenerate.
3088 * features/mips-linux.c: Regenerate.
3089 * features/mips64-dsp-linux.c: Regenerate.
3090 * features/mips64-linux.c: Regenerate.
3091 * features/nds32.c: Regenerate.
3092 * features/nios2.c: Regenerate.
3093 * features/or1k.c: Regenerate.
3094 * features/rs6000/powerpc-32.c: Regenerate.
3095 * features/rs6000/powerpc-32l.c: Regenerate.
3096 * features/rs6000/powerpc-403.c: Regenerate.
3097 * features/rs6000/powerpc-403gc.c: Regenerate.
3098 * features/rs6000/powerpc-405.c: Regenerate.
3099 * features/rs6000/powerpc-505.c: Regenerate.
3100 * features/rs6000/powerpc-601.c: Regenerate.
3101 * features/rs6000/powerpc-602.c: Regenerate.
3102 * features/rs6000/powerpc-603.c: Regenerate.
3103 * features/rs6000/powerpc-604.c: Regenerate.
3104 * features/rs6000/powerpc-64.c: Regenerate.
3105 * features/rs6000/powerpc-64l.c: Regenerate.
3106 * features/rs6000/powerpc-7400.c: Regenerate.
3107 * features/rs6000/powerpc-750.c: Regenerate.
3108 * features/rs6000/powerpc-860.c: Regenerate.
3109 * features/rs6000/powerpc-altivec32.c: Regenerate.
3110 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3111 * features/rs6000/powerpc-altivec64.c: Regenerate.
3112 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3113 * features/rs6000/powerpc-e500.c: Regenerate.
3114 * features/rs6000/powerpc-e500l.c: Regenerate.
3115 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3116 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3117 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3118 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3119 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3120 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3121 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3122 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3123 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3124 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3125 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3126 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3127 * features/rs6000/powerpc-vsx32.c: Regenerate.
3128 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3129 * features/rs6000/powerpc-vsx64.c: Regenerate.
3130 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3131 * features/rs6000/rs6000.c: Regenerate.
3132 * features/rx.c: Regenerate.
3133 * features/s390-gs-linux64.c: Regenerate.
3134 * features/s390-linux32.c: Regenerate.
3135 * features/s390-linux32v1.c: Regenerate.
3136 * features/s390-linux32v2.c: Regenerate.
3137 * features/s390-linux64.c: Regenerate.
3138 * features/s390-linux64v1.c: Regenerate.
3139 * features/s390-linux64v2.c: Regenerate.
3140 * features/s390-te-linux64.c: Regenerate.
3141 * features/s390-tevx-linux64.c: Regenerate.
3142 * features/s390-vx-linux64.c: Regenerate.
3143 * features/s390x-gs-linux64.c: Regenerate.
3144 * features/s390x-linux64.c: Regenerate.
3145 * features/s390x-linux64v1.c: Regenerate.
3146 * features/s390x-linux64v2.c: Regenerate.
3147 * features/s390x-te-linux64.c: Regenerate.
3148 * features/s390x-tevx-linux64.c: Regenerate.
3149 * features/s390x-vx-linux64.c: Regenerate.
3150 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3151 from allocate_target_description.
3152 * target-descriptions.c (allocate_target_description): Update
3153 return type.
3154 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3155 allocate_target_description.
3156
3157 2020-10-07 Tom Tromey <tromey@adacore.com>
3158
3159 * unittests/search-memory-selftests.c: New file.
3160 * Makefile.in (SELFTESTS_SRCS): Add
3161 unittests/search-memory-selftests.c.
3162
3163 2020-10-07 Tom Tromey <tromey@adacore.com>
3164
3165 PR gdb/16930:
3166 * findcmd.c (_initialize_mem_search): Mention that the range is
3167 inclusive.
3168
3169 2020-10-07 Tom Tromey <tromey@adacore.com>
3170
3171 * target.h (simple_search_memory): Don't declare.
3172 * target.c (simple_search_memory): Move to gdbsupport.
3173 (default_search_memory): Update.
3174 * remote.c (remote_target::search_memory): Update.
3175
3176 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3177
3178 * Makefile.in (COMPILE): Add CXXFLAGS.
3179 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3180 (check-headers): Add CXXFLAGS.
3181
3182 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3183
3184 * arc-linux-tdep.h: New file.
3185 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3186 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3187 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3188 arc_linux_gregset, arc_linux_v2_regset,
3189 arc_linux_iterate_over_regset_sections,
3190 arc_linux_core_read_description): Implement.
3191 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3192 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3193 (arc_gdbarch_features_create): Add.
3194 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3195
3196 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3197
3198 * arch/arc.h: Rename "arc_gdbarch_features" to
3199 "arc_arch_features".
3200 * arc-tdep.h: Likewise.
3201 * arc-tdep.c: Likewise.
3202
3203 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3204
3205 * infcmd.c (attach_command): Remove the redundant call to
3206 `clear_proceed_status`.
3207
3208 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3209
3210 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3211
3212 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3213
3214 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3215 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3216 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3217
3218 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3221 (_initialize_break_catch_sig): Don't allocate array.
3222
3223 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * symtab.c (find_pc_line): Return unmapped addresses when the
3226 requested address is also unmapped.
3227
3228 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3231 tui/tui-out.h.
3232
3233 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3236 type::is_vector instead of TYPE_VECTOR.
3237
3238 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * auto-load.c (auto_load_objfile_script_1): Don't use
3241 debugfile_holder as temporary variable when stripping drive
3242 letter.
3243
3244 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3245
3246 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3247 Add TYPE_CODE_COMPLEX.
3248 (amd64_windows_return_value): Fix types returned via XMM0.
3249
3250 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3251
3252 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3253 AArch64/ARM maintainers.
3254
3255 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3256
3257 * NEWS: Mention set/show debug event-loop.
3258
3259 2020-10-02 Tom Tromey <tromey@adacore.com>
3260
3261 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3262 REG_EXTENDED.
3263
3264 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3267 * procfs.c (procfs_inferior_created): Remove.
3268 (_initialize_procfs): Don't register procfs_inferior_created.
3269
3270 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3271
3272 * async-event.c (invoke_async_signal_handlers): Add debug
3273 print.
3274 (check_async_event_handlers): Likewise.
3275 * event-top.c (show_debug_event_loop): New function.
3276 (_initialize_event_top): Register "set debug event-loop"
3277 setting.
3278
3279 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3282 * debug.h: Remove.
3283 * infrun.c: Include gdbsupport/common-debug.h.
3284 * linux-nat.c: Likewise.
3285
3286 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * async-event.h (create_async_signal_handler): Add name
3289 parameter.
3290 (create_async_event_handler): Likewise.
3291 * async-event.c (struct async_signal_handler) <name>: New field.
3292 (struct async_event_handler) <name>: New field.
3293 (create_async_signal_handler): Assign name.
3294 (create_async_event_handler): Assign name.
3295 * event-top.c (async_init_signals): Pass name when creating
3296 handler.
3297 * infrun.c (_initialize_infrun): Likewise.
3298 * record-btrace.c (record_btrace_push_target): Likewise.
3299 * record-full.c (record_full_open): Likewise.
3300 * remote-notif.c (remote_notif_state_allocate): Likewise.
3301 * remote.c (remote_target::open_1): Likewise.
3302 * tui/tui-win.c (tui_initialize_win): Likewise.
3303
3304 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * async-event.c (initialize_async_signal_handlers): Pass name to
3307 add_file_handler
3308 * event-top.c (ui_register_input_event_handler): Likewise.
3309 * linux-nat.c (linux_nat_target::async): Likewise.
3310 * run-on-main-thread.c (_initialize_run_on_main_thread):
3311 Likewise
3312 * ser-base.c (reschedule): Likewise.
3313 (ser_base_async): Likewise.
3314 * tui/tui-io.c: Likewise.
3315 * top.h (struct ui) <num>: New field.
3316 * top.c (highest_ui_num): New variable.
3317 (ui::ui): Initialize num.
3318
3319 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * observable.h <inferior_created>: Remove parameters. Update all
3322 listeners.
3323 * inferior.h (post_create_inferior): Remove target parameter.
3324 Update all callers.
3325
3326 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3327
3328 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3329 and DW_MACRO_undef_strx.
3330 (dwarf_decode_macros): Likewise
3331 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3332 which is the value of DW_AT_str_offsets_base.
3333 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3334 str_offsets_base.
3335
3336 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3337
3338 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3339
3340 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3341
3342 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3343 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3344
3345 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3346
3347 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3348
3349 2020-09-30 Tom de Vries <tdevries@suse.de>
3350
3351 PR symtab/26683
3352 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3353
3354 2020-09-30 Tom Tromey <tromey@adacore.com>
3355
3356 * dwarf2/read.c (handle_variant): Use constant_value.
3357
3358 2020-09-29 Tom Tromey <tom@tromey.com>
3359
3360 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3361 (read_file_scope, dwarf2_get_pc_bounds)
3362 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3363 (read_structure_type, handle_struct_member_die)
3364 (read_enumeration_type, read_array_type, read_set_type)
3365 (read_tag_pointer_type, read_tag_reference_type)
3366 (read_subroutine_type, read_base_type, read_subrange_type)
3367 (read_full_die_1, partial_die_info::read)
3368 (partial_die_info::read, by, new_symbol)
3369 (dwarf2_const_value_data, dwarf2_const_value_attr)
3370 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3371 (prepare_one_comp_unit): Update.
3372 * dwarf2/attribute.h (DW_UNSND): Remove.
3373
3374 2020-09-29 Tom Tromey <tom@tromey.com>
3375
3376 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3377 (read_subroutine_type, partial_die_info::read)
3378 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3379 (dwarf2_add_member_fn): Update.
3380 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3381 * dwarf2/attribute.c (attribute::as_boolean): New method.
3382
3383 2020-09-29 Tom Tromey <tom@tromey.com>
3384
3385 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3386 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3387 method.
3388 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3389
3390 2020-09-29 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3393 the attribute's form.
3394
3395 2020-09-29 Tom Tromey <tom@tromey.com>
3396
3397 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3398 (dwarf2_add_member_fn): Update.
3399 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3400 * dwarf2/attribute.c (attribute::defaulted): New method, from
3401 is_valid_DW_AT_defaulted.
3402
3403 2020-09-29 Tom Tromey <tom@tromey.com>
3404
3405 * dwarf2/read.c (dw2_get_file_names_reader)
3406 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3407 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3408 (dwarf2_symbol_mark_computed): Use as_unsigned.
3409 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3410 method.
3411 <form_is_section_offset>: Update comment.
3412
3413 2020-09-29 Tom Tromey <tom@tromey.com>
3414
3415 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3416 dwarf2_default_access_attribute. Look up attribute.
3417 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3418 Update.
3419
3420 2020-09-29 Tom Tromey <tom@tromey.com>
3421
3422 * dwarf2/read.c (skip_one_die): Update.
3423 (read_full_die_1): Change how reprocessing is done.
3424 (partial_die_info::read): Update.
3425 (read_attribute_value): Remove need_reprocess parameter.
3426 (read_attribute): Likewise.
3427 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3428 New method.
3429
3430 2020-09-29 Tom Tromey <tom@tromey.com>
3431
3432 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3433 (dwarf2_const_value_attr, dump_die_shallow)
3434 (dwarf2_fetch_constant_bytes): Update.
3435 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3436 comment.
3437 <set_address>: New method.
3438 (DW_ADDR): Remove.
3439 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3440 (attribute::as_string, attribute::as_address): Add assert.
3441
3442 2020-09-29 Tom Tromey <tom@tromey.com>
3443
3444 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3445 (read_attribute_reprocess, read_attribute_value): Update.
3446 (read_attribute): Clear requires_reprocessing.
3447 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3448 form_requires_reprocessing>: New methods.
3449 <string_init>: Clear requires_reprocessing.
3450 <set_unsigned_reprocess>: New method.
3451 <name>: Shrink by one bit.
3452 <requires_reprocessing>: New member.
3453 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3454 method.
3455
3456 2020-09-29 Tom Tromey <tom@tromey.com>
3457
3458 * dwarf2/read.c (read_attribute_value): Update.
3459 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3460 set_unsigned>: New methods.
3461 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3462
3463 2020-09-29 Tom Tromey <tom@tromey.com>
3464
3465 * dwarf2/read.c (get_alignment, read_array_order)
3466 (read_attribute_value, dwarf2_const_value_attr)
3467 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3468 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3469 New methods.
3470 (DW_SND): Remove.
3471
3472 2020-09-29 Tom Tromey <tom@tromey.com>
3473
3474 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3475 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3476 Update.
3477 * dwarf2/attribute.h (struct attribute) <as_signature,
3478 set_signature>: New methods.
3479 (DW_SIGNATURE): Remove.
3480
3481 2020-09-29 Tom Tromey <tom@tromey.com>
3482
3483 * dwarf2/read.c (read_call_site_scope)
3484 (handle_data_member_location, dwarf2_add_member_fn)
3485 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3486 (partial_die_info::read, read_attribute_value)
3487 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3488 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3489 (dwarf2_symbol_mark_computed): Update.
3490 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3491 methods.
3492 (DW_BLOCK): Remove.
3493 * dwarf2/attribute.c (attribute::form_is_block): Add
3494 DW_FORM_data16.
3495
3496 2020-09-29 Tom Tromey <tom@tromey.com>
3497
3498 * dwarf2/read.c (read_cutu_die_from_dwo)
3499 (read_attribute_reprocess, read_attribute_value, read_attribute)
3500 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3501 (dwarf2_fetch_constant_bytes): Update.
3502 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3503 <set_string_noncanonical, set_string_canonical>: New methods.
3504 <string_is_canonical>: Update comment.
3505 <canonical_string_p>: Add assert.
3506 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3507 * dwarf2/attribute.c (attribute::form_is_string): New method.
3508 (attribute::string): Use it.
3509
3510 2020-09-29 Tom Tromey <tom@tromey.com>
3511
3512 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3513 (dump_die_shallow): Use canonical_string_p.
3514 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3515 method.
3516
3517 2020-09-29 Tom Tromey <tom@tromey.com>
3518
3519 * dwarf2/read.c (partial_die_info::read)
3520 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3521 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3522 attribute::as_string.
3523
3524 2020-09-29 Tom Tromey <tom@tromey.com>
3525
3526 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3527 DW_ADDR.
3528 (attribute::string): Don't use DW_STRING.
3529 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3530 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3531
3532 2020-09-29 Tom Tromey <tom@tromey.com>
3533
3534 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3535 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3536 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3537 * dwarf2/attribute.h (struct attribute): Rename methods.
3538 * dwarf2/attribute.c (attribute::as_address): Rename from
3539 value_as_address.
3540 (attribute::as_string): Rename from value_as_string.
3541
3542 2020-09-29 Tom Tromey <tom@tromey.com>
3543
3544 * dwarf2/read.c (partial_die_info::read) <case
3545 DW_AT_linkage_name>: Use value_as_string.
3546 (dwarf2_string_attr): Use value_as_string.
3547 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3548 method.
3549 * dwarf2/attribute.c (attribute::value_as_string): New method.
3550
3551 2020-09-29 Pedro Alves <pedro@palves.net>
3552
3553 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3554 defined before using '#pragma GCC diagnostic' instead of checking
3555 __clang__.
3556
3557 2020-09-28 Tom Tromey <tom@tromey.com>
3558
3559 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3560 (handle_signal_stop): Update.
3561 * procfs.c (procfs_target::insert_watchpoint): Update.
3562 * target.h (target_have_steppable_watchpoint): Now a function.
3563
3564 2020-09-28 Tom Tromey <tom@tromey.com>
3565
3566 * infrun.c (set_schedlock_func): Update.
3567 * target.h (target_can_lock_scheduler): Now a function.
3568
3569 2020-09-28 Tom Tromey <tom@tromey.com>
3570
3571 * inferior.h (class inferior) <has_execution>: Update.
3572 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3573 * valops.c (find_function_in_inferior)
3574 (value_allocate_space_in_inferior): Update.
3575 * top.c (kill_or_detach): Update.
3576 * target.c (target_preopen, set_target_permissions): Update.
3577 (target_has_execution_current): Remove.
3578 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3579 Update.
3580 * solib.c (update_solib_list, reload_shared_libraries): Update.
3581 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3582 * solib-dsbt.c (enable_break): Update.
3583 * score-tdep.c (score7_fetch_inst): Update.
3584 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3585 Update.
3586 * remote.c (remote_target::start_remote)
3587 (remote_target::remote_check_symbols, remote_target::open_1)
3588 (remote_target::remote_detach_1, remote_target::verify_memory)
3589 (remote_target::xfer_partial, remote_target::read_description)
3590 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3591 * record-full.c (record_full_open_1): Update.
3592 * record-btrace.c (record_btrace_target_open): Update.
3593 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3594 (value_nsstring): Update.
3595 * linux-thread-db.c (add_thread_db_info)
3596 (thread_db_find_new_threads_silently, check_thread_db_callback)
3597 (try_thread_db_load_1, record_thread): Update.
3598 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3599 Update.
3600 * linux-fork.c (checkpoint_command): Update.
3601 * infrun.c (set_non_stop, set_observer_mode)
3602 (check_multi_target_resumption, for_each_just_stopped_thread)
3603 (maybe_remove_breakpoints, normal_stop)
3604 (class infcall_suspend_state): Update.
3605 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3606 (info_program_command, attach_command): Update.
3607 * infcall.c (call_function_by_hand_dummy): Update.
3608 * inf-loop.c (inferior_event_handler): Update.
3609 * gcore.c (gcore_command, derive_heap_segment): Update.
3610 * exec.c (exec_file_command): Update.
3611 * eval.c (evaluate_subexp): Update.
3612 * compile/compile.c (compile_to_object): Update.
3613 * cli/cli-dump.c (restore_command): Update.
3614 * breakpoint.c (update_watchpoint)
3615 (update_inserted_breakpoint_locations)
3616 (insert_breakpoint_locations, get_bpstat_thread): Update.
3617 * target.h (target_has_execution): Remove macro.
3618 (target_has_execution_current): Don't declare.
3619 (target_has_execution): Rename from target_has_execution_1. Add
3620 argument default.
3621
3622 2020-09-28 Tom Tromey <tom@tromey.com>
3623
3624 * mi/mi-main.c (exec_reverse_continue)
3625 (mi_cmd_list_target_features): Update.
3626 * infrun.c (set_exec_direction_func): Update.
3627 * target.c (default_execution_direction): Update.
3628 * reverse.c (exec_reverse_once): Update.
3629 * target.h (target_can_execute_reverse): Now a function.
3630
3631 2020-09-28 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-regs.c (tui_get_register)
3634 (tui_data_window::show_registers): Update.
3635 * thread.c (scoped_restore_current_thread::restore)
3636 (scoped_restore_current_thread::scoped_restore_current_thread):
3637 Update.
3638 * regcache-dump.c (regcache_print): Update.
3639 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3640 Update.
3641 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3642 * mep-tdep.c (current_me_module, current_options): Update.
3643 * linux-thread-db.c (thread_db_load): Update.
3644 * infcmd.c (registers_info, info_vector_command)
3645 (info_float_command): Update.
3646 * ia64-tdep.c (ia64_frame_prev_register)
3647 (ia64_sigtramp_frame_prev_register): Update.
3648 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3649 * gcore.c (derive_stack_segment): Update.
3650 * frame.c (get_current_frame, has_stack_frames): Update.
3651 * findvar.c (language_defn::read_var_value): Update.
3652 * arm-tdep.c (arm_pc_is_thumb): Update.
3653 * target.c (target_has_registers): Rename from
3654 target_has_registers_1.
3655 * target.h (target_has_registers): Remove macro.
3656 (target_has_registers): Rename from target_has_registers_1.
3657
3658 2020-09-28 Tom Tromey <tom@tromey.com>
3659
3660 * windows-tdep.c (tlb_make_value): Update.
3661 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3662 * thread.c (scoped_restore_current_thread::restore)
3663 (scoped_restore_current_thread::scoped_restore_current_thread)
3664 (thread_command): Update.
3665 * stack.c (backtrace_command_1, frame_apply_level_command)
3666 (frame_apply_all_command, frame_apply_command): Update.
3667 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3668 Update.
3669 * gcore.c (derive_stack_segment): Update.
3670 * frame.c (get_current_frame, has_stack_frames): Update.
3671 * auxv.c (info_auxv_command): Update.
3672 * ada-tasks.c (ada_build_task_list): Update.
3673 * target.c (target_has_stack): Rename from target_has_stack_1.
3674 * target.h (target_has_stack): Remove macro.
3675 (target_has_stack): Rename from target_has_stack_1.
3676
3677 2020-09-28 Tom Tromey <tom@tromey.com>
3678
3679 * target.c (target_has_memory): Rename from target_has_memory_1.
3680 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3681 * thread.c (scoped_restore_current_thread::restore)
3682 (scoped_restore_current_thread::scoped_restore_current_thread):
3683 Update.
3684 * frame.c (get_current_frame, has_stack_frames): Update.
3685 * target.h (target_has_memory): Remove macro.
3686 (target_has_memory): Rename from target_has_memory_1.
3687
3688 2020-09-28 Tom Tromey <tom@tromey.com>
3689
3690 * target.c (target_has_all_memory_1): Remove.
3691 * target.h (target_has_all_memory): Remove define.
3692 (target_has_all_memory_1): Don't declare.
3693
3694 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * ser-base.c: Adjust comments formatting.
3697
3698 2020-09-27 Tom Tromey <tom@tromey.com>
3699
3700 PR tui/25342:
3701 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3702
3703 2020-09-27 Tom Tromey <tom@tromey.com>
3704
3705 PR tui/25342:
3706 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3707
3708 2020-09-27 Tom Tromey <tom@tromey.com>
3709
3710 * unittests/tui-selftests.c: Update.
3711 * tui/tui-winsource.h (struct tui_source_window_base)
3712 <extra_margin, show_line_number, refresh_pad>: New methods.
3713 <m_max_length, m_pad>: New members.
3714 (tui_copy_source_line): Update.
3715 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3716 first_col, line_width, ndigits parameters. Add length.
3717 (tui_source_window_base::show_source_line): Write to pad. Line
3718 number now 0-based.
3719 (tui_source_window_base::refresh_pad): New method.
3720 (tui_source_window_base::show_source_content): Write to pad. Call
3721 refresh_pad.
3722 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3723 not refill.
3724 (tui_source_window_base::update_exec_info): Call
3725 show_line_number.
3726 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3727 method.
3728 <m_digits>: New member.
3729 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3730 and m_max_length.
3731 (tui_source_window::show_line_number): New method.
3732 * tui/tui-io.h (tui_puts): Fix comment.
3733 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3734 m_max_length.
3735
3736 2020-09-27 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-winsource.c
3739 (tui_source_window_base::set_is_exec_point_at): Don't call
3740 show_source_line.
3741
3742 2020-09-27 Tom Tromey <tom@tromey.com>
3743
3744 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3745 method.
3746 <erase>: Update.
3747 <cursor_x, cursor_y>: Remove.
3748 <m_inner_window>: New member.
3749 (tui_py_window::rerender): Create inner window.
3750 (tui_py_window::output): Write to inner window.
3751
3752 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3753
3754 PR python/26586
3755 * cli/cli-script.c (execute_control_commands): don't set
3756 instream to nullptr here as this breaks the from_tty argument
3757 to gdb.execute in Python.
3758 (execute_user_command): set instream to nullptr here instead.
3759
3760 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * infrun.h (infrun_debug_printf): Fix formatting.
3763 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3764
3765 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3766
3767 * compile/compile-object-load.h (struct munmap_list): Add
3768 explicitly-defined move constructor.
3769
3770 2020-09-24 Tom Tromey <tromey@adacore.com>
3771
3772 PR tui/26638:
3773 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3774 method.
3775 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3776 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3777 (tui_prev_win): Rewrite.
3778
3779 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3780
3781 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3782 in WOW64 processes as SIGINT.
3783 * nat/windows-nat.h: Make wow64_process a shared variable.
3784 * windows-nat.c: Remove static wow64_process variable.
3785
3786 2020-09-23 Tom Tromey <tom@tromey.com>
3787
3788 PR symtab/25470:
3789 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3790 offset and bit size.
3791 * printcmd.c (print_scalar_formatted): Handle zero-length
3792 integer.
3793 (print_scalar_formatted): Use bit_size_differs_p.
3794 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3795 constant.
3796 (union type_specific): <int_stuff>: New member.
3797 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3798 methods.
3799 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3800 TYPE_SPECIFIC_FIELD.
3801 (recursive_dump_type, copy_type_recursive): Update.
3802 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3803 DW_AT_data_bit_offset.
3804
3805 2020-09-23 Tom Tromey <tom@tromey.com>
3806
3807 * utils.h (class gdb_argv): Add move operators.
3808 <append>: New methods.
3809 * compile/compile.c (build_argc_argv): Remove.
3810 (compile_args_argc): Remove.
3811 (compile_args_argv): Change type.
3812 (set_compile_args): Simplify.
3813 (append_args): Remove.
3814 (filter_args): Remove argcp parameter.
3815 (get_args): Return gdb_argv. Simplify.
3816 (compile_to_object): Update.
3817
3818 2020-09-23 Tom Tromey <tom@tromey.com>
3819
3820 * compile/compile-object-run.c (do_module_cleanup)
3821 <~do_module_cleanup> :Remove.
3822 (do_module_cleanup): Update.
3823 * compile/compile-object-load.h (struct munmap_list): Add move
3824 assignment operator.
3825 <source_file>: Now a std::string.
3826 <munmap_list>: Rename. No longer a pointer.
3827 * compile/compile-object-load.c (struct setup_sections_data): Add
3828 constructor.
3829 <setup_one_section>: Declare.
3830 <munmap_list>: Move earlier.
3831 <m_bfd>: New member.
3832 <m_last_size, m_last_section_first, m_last_prot,
3833 m_last_max_alignment>: Rename, add initializers where needed.
3834 (setup_sections_data::setup_one_section): Rename from
3835 setup_sections. Update.
3836 (compile_object_load): Update. Don't use bfd_map_over_sections.
3837
3838 2020-09-23 Tom Tromey <tom@tromey.com>
3839
3840 * compile/compile-object-run.c (struct do_module_cleanup): Add
3841 parameters to constructor. Update destructor.
3842 <source_file, scope, scope_data, out_value_type, out_value_addr,
3843 munmap_list_head, objfile_name_string>: Remove.
3844 <module>: New member.
3845 (do_module_cleanup): Update.
3846 (compile_object_run): Update.
3847
3848 2020-09-23 Tom Tromey <tom@tromey.com>
3849
3850 * compile/compile.c (eval_compile_command): Update.
3851 * compile/compile-object-run.h (compile_object_run): Take a
3852 compile_module_up.
3853 * compile/compile-object-run.c (compile_object_run): Take a
3854 compile_module_up.
3855 * compile/compile-object-load.h (struct compile_module): Add
3856 constructor, destructor.
3857 (compile_module_up): New typedef.
3858 (compile_object_load): Return compile_object_up.
3859 * compile/compile-object-load.c (compile_object_load): Return
3860 compile_module_up.
3861
3862 2020-09-23 Tom Tromey <tom@tromey.com>
3863
3864 * compile/compile-object-run.c (struct do_module_cleanup): Add
3865 constructor, destructor.
3866 <objfile_name_string>: Don't use struct hack.
3867 (do_module_cleanup): Use delete.
3868 (compile_object_run): Use new.
3869
3870 2020-09-23 Tom Tromey <tom@tromey.com>
3871
3872 * compile/compile-cplus-types.c
3873 (compile_cplus_convert_struct_or_union): Use std::vector.
3874 (compile_cplus_convert_func): Likewise.
3875 * compile/compile-c-types.c (convert_func): Use std::vector.
3876
3877 2020-09-21 Tom Tromey <tromey@adacore.com>
3878
3879 * sparc-tdep.c (sparc32_skip_prologue): Use
3880 skip_prologue_using_sal.
3881
3882 2020-09-19 Tom Tromey <tom@tromey.com>
3883
3884 * symfile.c (add_section_size_callback): Remove.
3885 (load_one_section): Rename from load_section_callback. Change
3886 parameters.
3887 (generic_load): Use foreach.
3888
3889 2020-09-19 Tom Tromey <tom@tromey.com>
3890
3891 * exec.c (add_to_section_table): Remove.
3892 (build_section_table): Use foreach.
3893
3894 2020-09-19 Tom Tromey <tom@tromey.com>
3895
3896 * elfread.c (elf_locate_sections): Change parameters.
3897 (elf_symfile_read): Use foreach.
3898
3899 2020-09-19 Tom Tromey <tom@tromey.com>
3900
3901 * cli/cli-dump.c (struct callback_data): Remove.
3902 (restore_one_section): Rename from restore_section_callback.
3903 Change parameters.
3904 (restore_binary_file): Change parameters.
3905 (restore_command): Use foreach.
3906
3907 2020-09-19 Tom Tromey <tom@tromey.com>
3908
3909 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3910 (gcore_copy_callback): Likewise.
3911 (gcore_memory_sections): Use foreach.
3912
3913 2020-09-19 Tom Tromey <tom@tromey.com>
3914
3915 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3916 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3917 parameters.
3918 (generic_elf_osabi_sniffer): Use foreach.
3919 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3920 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3921
3922 2020-09-19 Tom Tromey <tom@tromey.com>
3923
3924 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3925 (dwarf2_get_dwz_file): Use foreach.
3926 (dwarf2_locate_dwo_sections): Change parameters.
3927 (open_and_init_dwo_file): Use foreach.
3928 (dwarf2_locate_common_dwp_sections): Change parameters.
3929 (open_and_init_dwp_file): Use foreach.
3930
3931 2020-09-19 Tom Tromey <tom@tromey.com>
3932
3933 * symfile.h: (find_lowest_section): Don't declare.
3934 * symfile.c (find_lowest_section): Now static. Change
3935 parameters.
3936 (struct place_section_arg): Remove.
3937 (place_section): Change parameters.
3938 (addr_info_make_relative): Use foreach.
3939 (symfile_dummy_outputs): Remove.
3940 (default_symfile_relocate): Use foreach.
3941
3942 2020-09-19 Tom Tromey <tom@tromey.com>
3943
3944 * objfiles.c (add_to_objfile_sections): Rename from
3945 add_to_objfile_sections_full.
3946 (add_to_objfile_sections): Remove.
3947 (build_objfile_section_table): Use foreach.
3948
3949 2020-09-19 Tom Tromey <tom@tromey.com>
3950
3951 * stap-probe.c (get_stap_base_address_1): Remove.
3952 (get_stap_base_address): Use foreach.
3953
3954 2020-09-19 Tom Tromey <tom@tromey.com>
3955
3956 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3957 parameters.
3958 (gdb_bfd_close_or_warn): Use foreach.
3959
3960 2020-09-19 Tom Tromey <tom@tromey.com>
3961
3962 * corelow.c (add_to_thread_list): Change parameters.
3963 (core_target_open): Use foreach.
3964
3965 2020-09-19 Tom Tromey <tom@tromey.com>
3966
3967 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3968 existing function.
3969
3970 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3971
3972 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3973 for arrays.
3974
3975 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 * eval.c: Remove 'f-lang.h' include.
3978 (value_f90_subarray): Moved to f-lang.c.
3979 (eval_call): Renamed to...
3980 (evaluate_subexp_do_call): ...this, is no longer static, header
3981 comment moved into header file.
3982 (evaluate_funcall): Update call to eval_call.
3983 (skip_undetermined_arglist): Moved to f-lang.c.
3984 (fortran_value_subarray): Likewise.
3985 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3986 moved to evaluate_subexp_f.
3987 (calc_f77_array_dims): Moved to f-lang.c
3988 * expprint.c (print_subexp_funcall): New function.
3989 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3990 moved to print_subexp_f, OP_FUNCALL uses new function.
3991 (dump_subexp_body_funcall): New function.
3992 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3993 moved to dump_subexp_f, OP_FUNCALL uses new function.
3994 * expression.h (evaluate_subexp_do_call): Declare.
3995 * f-lang.c (value_f90_subarray): Moved from eval.c.
3996 (skip_undetermined_arglist): Likewise.
3997 (calc_f77_array_dims): Likewise.
3998 (fortran_value_subarray): Likewise.
3999 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4000 (operator_length_f): Likewise.
4001 (print_subexp_f): Likewise.
4002 (dump_subexp_body_f): Likewise.
4003 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4004 declaration of this operation to here.
4005 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4006 support moved to operator_length_f.
4007 * parser-defs.h (dump_subexp_body_funcall): Declare.
4008 (print_subexp_funcall): Declare.
4009 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4010 fortran-operator.def.
4011
4012 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * eval.c (fortran_value_subarray): New function, content is taken
4015 from...
4016 (evaluate_subexp_standard): ...here, in two places. Now arrays
4017 and strings both call the new function.
4018 (calc_f77_array_dims): Add header comment, handle strings.
4019
4020 2020-09-18 Victor Collod <vcollod@nvidia.com>
4021
4022 PR gdb/26635
4023 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4024 (i386_analyze_prologue): Call i386_skip_endbr.
4025
4026 2020-09-18 Tom Tromey <tromey@adacore.com>
4027
4028 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4029 (windows_nat_target::wait): Update.
4030 * target/wait.h (enum target_wait_flag): New. Use
4031 DEF_ENUM_FLAGS_TYPE.
4032 * target/target.h (target_wait): Change type of options.
4033 * target.h (target_options_to_string, default_target_wait):
4034 Update.
4035 (struct target_ops) <wait>: Change type of options.
4036 * target.c (target_wait, default_target_wait, do_option): Change
4037 type of "options".
4038 (target_options_to_string): Likewise.
4039 * target-delegates.c: Rebuild.
4040 * target-debug.h (target_debug_print_target_wait_flags): Rename
4041 from target_debug_print_options.
4042 * sol-thread.c (class sol_thread_target) <wait>: Update.
4043 (sol_thread_target::wait): Update.
4044 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4045 (rs6000_nat_target::wait): Update.
4046 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4047 Update.
4048 (remote_target::wait_ns, remote_target::wait_as): Change type of
4049 "options".
4050 (remote_target::wait): Update.
4051 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4052 (gdbsim_target::wait): Update.
4053 * record-full.c (class record_full_base_target) <wait>: Update.
4054 (record_full_wait_1): Change type of "options".
4055 (record_full_base_target::wait): Update.
4056 * record-btrace.c (class record_btrace_target) <wait>: Update.
4057 (record_btrace_target::wait): Update.
4058 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4059 Update.
4060 (ravenscar_thread_target::wait): Update.
4061 * procfs.c (class procfs_target) <wait>: Update.
4062 (procfs_target::wait): Update.
4063 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4064 * obsd-nat.c (obsd_nat_target::wait): Update.
4065 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4066 (nto_procfs_target::wait): Update.
4067 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4068 * nbsd-nat.c (nbsd_wait): Change type of "options".
4069 (nbsd_nat_target::wait): Update.
4070 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4071 (thread_db_target::wait): Update.
4072 * linux-nat.h (class linux_nat_target) <wait>: Update.
4073 * linux-nat.c (linux_nat_target::wait): Update.
4074 (linux_nat_wait_1): Update.
4075 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4076 "options".
4077 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4078 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4079 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4080 (go32_nat_target::wait): Update.
4081 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4082 * gnu-nat.c (gnu_nat_target::wait): Update.
4083 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4084 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4085 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4086 * darwin-nat.c (darwin_nat_target::wait): Update.
4087 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4088 (bsd_uthread_target::wait): Update.
4089 * aix-thread.c (class aix_thread_target) <wait>: Update.
4090 (aix_thread_target::wait): Update.
4091
4092 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * compile/compile-object-run.c (create_copied_type_recursive): New
4095 function.
4096 (compile_object_run): Use new function.
4097
4098 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4099
4100 * NEWS: Mention x86_64 Cygwin core file support.
4101
4102 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4103
4104 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4105 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4106
4107 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4108
4109 * windows-tdep.h: Add prototypes.
4110 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4111 (i386_windows_core_pid_to_str): Move and rename ...
4112 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4113 (windows_core_pid_to_str): ... and here.
4114 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4115
4116 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4117 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4118 (amd64_windows_init_abi_common): ... and register.
4119
4120 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4121
4122 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4123 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4124
4125 2020-09-18 Pedro Alves <pedro@palves.net>
4126
4127 PR gdb/26631
4128 * thread.c (thread_find_command): Switch inferior before calling
4129 target methods.
4130
4131 2020-09-17 Tom Tromey <tromey@adacore.com>
4132
4133 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4134 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4135 (tdesc_arch_data_up): New typedef.
4136 (tdesc_use_registers, tdesc_data_alloc): Update.
4137 (tdesc_data_cleanup): Don't declare.
4138 * target-descriptions.c (tdesc_data_alloc): Return a
4139 tdesc_arch_data_up.
4140 (tdesc_arch_data_deleter::operator()): Rename from
4141 tdesc_data_cleanup. Change argument type.
4142 (tdesc_use_registers): Change early_data to an rvalue reference.
4143 (tdesc_use_registers): Don't use delete.
4144 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4145 * s390-tdep.c (s390_gdbarch_init): Update.
4146 * rx-tdep.c (rx_gdbarch_init): Update.
4147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4148 * riscv-tdep.c (riscv_gdbarch_init): Update.
4149 * or1k-tdep.c (or1k_gdbarch_init): Update.
4150 * nios2-tdep.c (nios2_gdbarch_init): Update.
4151 * nds32-tdep.c (nds32_gdbarch_init): Update.
4152 * mips-tdep.c (mips_gdbarch_init): Update.
4153 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4154 * m68k-tdep.c (m68k_gdbarch_init): Update.
4155 * i386-tdep.c (i386_gdbarch_init): Update.
4156 * arm-tdep.c (arm_gdbarch_init): Update.
4157 * arc-tdep.c (arc_tdesc_init): Update.
4158 (arc_gdbarch_init): Update.
4159 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4160
4161 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4162
4163 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4164 for WOW64 processes.
4165
4166 2020-09-17 Tom Tromey <tom@tromey.com>
4167
4168 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4169
4170 2020-09-17 Tom Tromey <tom@tromey.com>
4171
4172 * value.c (preserve_values): Update.
4173 * python/py-type.c (save_objfile_types): Update.
4174 * guile/scm-type.c (save_objfile_types): Update.
4175 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4176 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4177 * compile/compile-object-run.c (compile_object_run): Update.
4178
4179 2020-09-17 Tom Tromey <tom@tromey.com>
4180
4181 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4182 Remove.
4183 <m_table>: Now htab_up.
4184 * typeprint.c (typedef_hash_table::recursively_update)
4185 (typedef_hash_table::add_template_parameters)
4186 (typedef_hash_table::typedef_hash_table): Update.
4187 (typedef_hash_table::~typedef_hash_table): Remove.
4188 (typedef_hash_table::typedef_hash_table)
4189 (typedef_hash_table::find_global_typedef)
4190 (typedef_hash_table::find_typedef): Update.
4191
4192 2020-09-17 Tom Tromey <tom@tromey.com>
4193
4194 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4195
4196 2020-09-17 Tom Tromey <tom@tromey.com>
4197
4198 * linespec.c (class decode_compound_collector)
4199 <~decode_compound_collector>: Remove.
4200 <m_unique_syms>: Now htab_up.
4201 (decode_compound_collector::operator ()): Update.
4202 (class symtab_collector) <~symtab_collector>: Remove.
4203 <m_symtab_table>: Now htab_up.
4204 (symtab_collector::operator ()): Update.
4205
4206 2020-09-17 Tom Tromey <tom@tromey.com>
4207
4208 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4209 (filename_seen_cache::clear): Update.
4210 (~filename_seen_cache): Remove.
4211 (filename_seen_cache::seen): Update.
4212 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4213 htab_up.
4214 <~filename_seen_cache>: Remove.
4215 <traverse>: Update.
4216
4217 2020-09-17 Tom Tromey <tom@tromey.com>
4218
4219 * completer.c (completion_tracker::discard_completions)
4220 (completion_tracker::~completion_tracker)
4221 (completion_tracker::maybe_add_completion)
4222 (completion_tracker::remove_completion)
4223 (completion_tracker::recompute_lowest_common_denominator)
4224 (completion_tracker::build_completion_result): Update.
4225 * completer.h (class completion_tracker) <have_completions>:
4226 Update.
4227 <m_entries_hash>: Now htab_up.
4228
4229 2020-09-17 Tom Tromey <tom@tromey.com>
4230
4231 * breakpoint.c (ambiguous_names_p): Use htab_up.
4232
4233 2020-09-17 Tom Tromey <tom@tromey.com>
4234
4235 * auto-load.c (struct auto_load_pspace_info)
4236 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4237 <loaded_script_files, loaded_script_texts>: Change type to
4238 htab_up.
4239 (~auto_load_pspace_info) Remove.
4240 (init_loaded_scripts_info, maybe_add_script_file)
4241 (maybe_add_script_text, auto_load_info_scripts): Update.
4242
4243 2020-09-17 Tom Tromey <tromey@adacore.com>
4244
4245 * c-exp.y (name_obstack): Now static.
4246
4247 2020-09-17 Chungyi Chi <demonic@csie.io>
4248
4249 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4250
4251 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4254 (add_solib_catchpoint): Likewise.
4255 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4256 to bool.
4257 (add_solib_catchpoint): Change int parameter/variable to bool.
4258 (catch_load_or_unload): Likewise.
4259 (init_catchpoint): Likewise.
4260 (create_fork_vfork_event_catchpoint): Likewise.
4261 (catch_fork_command_1): Likewise.
4262 (catch_exec_command_1): Likewise.
4263
4264 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4267 Change instance_flags to m_instance_flags.
4268
4269 2020-09-16 Tom Tromey <tromey@adacore.com>
4270
4271 PR gdb/26598:
4272 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4273
4274 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4275
4276 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4277 PL_FLAG_EXEC.
4278 (fbsd_nat_target::insert_exec_catchpoint)
4279 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4280 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4281 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4282
4283 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4284
4285 * configure.ac: Remove check for kinfo_getvmmap().
4286 * configure, config.in: Regenerate.
4287 * fbsd-nat.c (fbsd_read_mapping): Remove
4288 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4289 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4290 kinfo_get_vmmap() are always present.
4291
4292 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4293
4294 * fbsd-nat.c: Always include support for
4295 TARGET_OBJECT_SIGNAL_INFO.
4296
4297 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4298
4299 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4300 sysctl and remove procfs fallback.
4301
4302 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4303
4304 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4305 * fbsd-nat.h: Likewise.
4306
4307 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4308
4309 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4310 argument.
4311
4312 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4313
4314 * ada-lang.c (ada_language_data): Delete.
4315 (ada_language): Remove references to ada_language_data.
4316 * c-lang.c (c_language_data): Delete.
4317 (c_language): Remove references to c_language_data.
4318 (cplus_language_data): Delete.
4319 (cplus_language): Remove references to cplus_language_data.
4320 (asm_language_data): Delete.
4321 (asm_language): Remove references to asm_language_data.
4322 (minimal_language_data): Delete.
4323 (minimal_language): Remove references to minimal_language_data.
4324 * d-lang.c (d_language_data): Delete.
4325 (d_language): Remove references to d_language_data.
4326 * f-lang.c (f_language_data): Delete.
4327 (f_language): Remove references to f_language_data.
4328 * go-lang.c (go_language_data): Delete.
4329 (go_language): Remove references to go_language_data.
4330 * language.c (unknown_language_data): Delete.
4331 (unknown_language): Remove references to unknown_language_data.
4332 (auto_language_data): Delete.
4333 (auto_language): Remove references to auto_language_data.
4334 * language.h (language_data): Delete struct.
4335 (language_defn): No longer inherit from language_data.
4336 * m2-lang.c (m2_language_data): Delete.
4337 (m2_language): Remove references to m2_language_data.
4338 * objc-lang.c (objc_language_data): Delete.
4339 (objc_language): Remove references to objc_language_data.
4340 * opencl-lang.c (opencl_language_data): Delete.
4341 (opencl_language): Remove references to opencl_language_data.
4342 * p-lang.c (pascal_language_data): Delete.
4343 (pascal_language): Remove references to pascal_language_data.
4344 * rust-lang.c (rust_language_data): Delete.
4345 (rust_language): Remove references to rust_language_data.
4346
4347 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4348
4349 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4350 initializer.
4351 (ada_language::opcode_print_table): New member function.
4352 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4353 (c_language::opcode_print_table): New member function.
4354 (cplus_language_data): Remove la_op_print_tab initializer.
4355 (cplus_language::opcode_print_table): New member function.
4356 (asm_language_data): Remove la_op_print_tab initializer.
4357 (asm_language::opcode_print_table): New member function.
4358 (minimal_language_data): Remove la_op_print_tab initializer.
4359 (minimal_language::opcode_print_table): New member function.
4360 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4361 (d_language::opcode_print_table): New member function.
4362 * expprint.c (print_subexp_standard): Update call to
4363 opcode_print_table.
4364 (op_string): Likewise.
4365 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4366 (f_language::opcode_print_table): New member function.
4367 * go-lang.c (go_language_data): Remove la_op_print_tab
4368 initializer.
4369 (go_language::opcode_print_table): New member function.
4370 * language.c (unknown_language_data): Remove la_op_print_tab
4371 initializer.
4372 (unknown_language::opcode_print_table): New member function.
4373 (auto_language_data): Remove la_op_print_tab initializer.
4374 (auto_language::opcode_print_table): New member function.
4375 * language.h (language_data): Remove la_op_print_tab field.
4376 (language_defn::opcode_print_table): Declare new member function.
4377 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4378 initializer.
4379 (m2_language::opcode_print_table): New member function.
4380 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4381 initializer.
4382 (objc_language::opcode_print_table): New member function.
4383 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4384 initializer.
4385 (opencl_language::opcode_print_table): New member function.
4386 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4387 initializer.
4388 (pascal_language::opcode_print_table): New member function.
4389 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4390 initializer.
4391 (rust_language::opcode_print_table): New member function.
4392
4393 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4396 (ada_language::expression_ops): New member function.
4397 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4398 (c_language::expression_ops): New member function.
4399 (cplus_language_data): Remove la_exp_desc initializer.
4400 (cplus_language::expression_ops): New member function.
4401 (asm_language_data): Remove la_exp_desc initializer.
4402 (asm_language::expression_ops): New member function.
4403 (minimal_language_data): Remove la_exp_desc initializer.
4404 (minimal_language::expression_ops): New member function.
4405 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4406 (d_language::expression_ops): New member function.
4407 * eval.c (evaluate_subexp): Update call to expression_ops.
4408 * expprint.c (print_subexp): Likewise.
4409 (op_name): Likewise.
4410 (dump_subexp_body): Likewise.
4411 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4412 (f_language::expression_ops): New member function.
4413 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4414 (go_language::expression_ops): New member function.
4415 * language.c (language_defn::expression_ops): New function.
4416 (unknown_language_data): Remove la_exp_desc initializer.
4417 (auto_language_data): Likewise.
4418 * language.h (language_data): Remove la_exp_desc field.
4419 (language_defn::expression_ops): Declare new member function.
4420 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4421 (m2_language::expression_ops): New member function.
4422 * objc-lang.c (objc_language_data): Remove la_exp_desc
4423 initializer.
4424 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4425 initializer.
4426 (opencl_language::expression_ops): New member function.
4427 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4428 * parse.c (operator_length): Update call to expression_ops.
4429 (exp_iterate): Likewise.
4430 * rust-lang.c (rust_language_data): Remove la_exp_desc
4431 initializer.
4432 (ruse_language::expression_ops): New member function.
4433
4434 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4437 initializer.
4438 (ada_language::varobj_ops): New member function.
4439 * c-lang.c (c_language_data): Remove la_varobj_ops
4440 initializer.
4441 (cplus_language_data): Likewise.
4442 (cplus_language::varobj_ops): New member function.
4443 (asm_language_data): Remove la_varobj_ops initializer.
4444 (minimal_language_data): Likewise.
4445 * d-lang.c (d_language_data): Likewise.
4446 * f-lang.c (f_language_data): Likewise.
4447 * go-lang.c (go_language_data): Likewise.
4448 * language.c (language_defn::varobj_ops): New function.
4449 (unknown_language_data): Remove la_varobj_ops
4450 initializer.
4451 (auto_language_data): Likewise.
4452 * language.h (language_data): Remove la_varobj_ops field.
4453 (language_defn::varobj_ops): Declare new member function.
4454 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4455 * objc-lang.c (objc_language_data): Likewise.
4456 * opencl-lang.c (opencl_language_data): Likewise.
4457 * p-lang.c (pascal_language_data): Likewise.
4458 * rust-lang.c (rust_language_data): Likewise.
4459 * varobj.c (varobj_create): Update call to varobj_ops.
4460 * varobj.h (default_varobj_ops): Delete define.
4461
4462 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4465 initializer.
4466 * c-lang.c (c_language_data): Likewise.
4467 (c_language::macro_expansion): New member function.
4468 (cplus_language_data): Likewise.
4469 (cplus_language::macro_expansion): New member function.
4470 (asm_language_data): Likewise.
4471 (asm_language::macro_expansion): New member function.
4472 (minimal_language_data): Likewise.
4473 (minimal_language::macro_expansion): New member function.
4474 * d-lang.c (d_language_data): Remove la_macro_expansion
4475 initializer.
4476 * f-lang.c (f_language_data): Likewise.
4477 * go-lang.c (go_language_data): Likewise.
4478 * language.c (unknown_language_data): Likewise.
4479 (auto_language_data): Likewise.
4480 * language.h (language_data): Remove la_macro_expansion field.
4481 (language_defn::macro_expansion): New member function.
4482 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4483 initializer.
4484 * objc-lang.c (objc_language_data): Likewise.
4485 (objc_language::macro_expansion): New member function.
4486 * opencl-lang.c (opencl_language_data): Likewise.
4487 (opencl_language::macro_expansion): New member function.
4488 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4489 initializer.
4490 * rust-lang.c (rust_language_data): Likewise.
4491 * symtab.c (default_collect_symbol_completion_matches_break_on):
4492 Update call to macro_expansion.
4493
4494 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4495
4496 * ada-lang.c (ada_language_data): Remove la_array_ordering
4497 initializer.
4498 * c-lang.c (c_language_data): Likewise.
4499 (cplus_language_data): Likewise.
4500 (asm_language_data): Likewise.
4501 (minimal_language_data): Likewise.
4502 * d-lang.c (d_language_data): Likewise.
4503 * dwarf2/read.c (read_array_order): Update for call to
4504 array_ordering.
4505 * f-lang.c (f_language_data): Remove la_array_ordering
4506 initializer.
4507 (f_language::array_ordering): New member function.
4508 * go-lang.c (go_language_data): Remove la_array_ordering
4509 initializer.
4510 * language.c (unknown_language_data): Likewise.
4511 (auto_language_data): Likewise.
4512 * language.h (language_data): Delete la_array_ordering field.
4513 (language_defn::array_ordering): New member function.
4514 * m2-lang.c (m2_language_data): Remove la_array_ordering
4515 initializer.
4516 * objc-lang.c (objc_language_data): Likewise.
4517 * opencl-lang.c (opencl_language_data): Likewise.
4518 * p-lang.c (pascal_language_data): Likewise.
4519 * rust-lang.c (rust_language_data): Likewise.
4520
4521 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4522
4523 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4524 initializer.
4525 * c-lang.c (c_language_data): Likewise.
4526 (cplus_language_data): Likewise.
4527 (asm_language_data): Likewise.
4528 (minimal_language_data): Likewise.
4529 * d-lang.c (d_language_data): Likewise.
4530 * f-lang.c (f_language_data): Likewise.
4531 (f_language::case_sensitivity): New member function.
4532 * go-lang.c (go_language_data): Remove la_case_sensitivity
4533 initializer.
4534 * language.c (enum case_mode): Moved here from language.h.
4535 (case_mode): Make static.
4536 (show_case_command): Update for case_sensitivity being a method.
4537 (set_case_command): Likewise.
4538 (set_range_case): Likewise.
4539 (unknown_language_data): Remove la_case_sensitivity initializer.
4540 (auto_language_data): Likewise.
4541 * language.h (case_mode): Delete, move enum declaration to
4542 language.c.
4543 (language_data): Delete la_case_sensitivity field.
4544 (language_defn::case_sensitivity): New member function.
4545 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4546 initializer.
4547 * objc-lang.c (objc_language_data): Likewise.
4548 * opencl-lang.c (opencl_language_data): Likewise.
4549 * p-lang.c (pascal_language_data): Likewise.
4550 * rust-lang.c (rust_language_data): Likewise.
4551
4552 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * ada-lang.c (ada_language_data): Remove la_range_check
4555 initializer.
4556 * c-lang.c (c_language_data): Likewise.
4557 (cplus_language_data): Likewise.
4558 (asm_language_data): Likewise.
4559 (minimal_language_data): Likewise.
4560 * d-lang.c (d_language_data): Likewise.
4561 * f-lang.c (f_language_data): Likewise.
4562 (f_language::range_checking_on_by_default): New member function.
4563 * go-lang.c (go_language_data): Remove la_range_check initializer.
4564 * language.c (enum range_mode): Moved here from language.h.
4565 (range_mode): Made static.
4566 (show_range_command): Update to use
4567 range_checking_on_by_default.
4568 (set_range_command): Likewise.
4569 (set_range_case): Likewise.
4570 (unknown_language_data): Remove la_range_check initializer.
4571 (auto_language_data): Likewise.
4572 * language.h (range_mode): Delete. Enum definition moved to
4573 language.c.
4574 (language_data): Remove la_range_check field.
4575 (language_defn::range_checking_on_by_default): New member
4576 function.
4577 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4578 (m2_language::range_checking_on_by_default): New member function.
4579 * objc-lang.c (objc_language_data): Remove la_range_check
4580 initializer.
4581 * opencl-lang.c (opencl_language_data): Likewise.
4582 * p-lang.c (pascal_language_data): Likewise.
4583 (pascal_language::range_checking_on_by_default): New member
4584 function.
4585 * rust-lang.c (rust_language_data): Remove la_range_check
4586 initializer.
4587 (rust_language::range_checking_on_by_default): New member
4588 function.
4589
4590 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4591
4592 * dwarf2/read.c (dwarf2_physname): Remove special case for
4593 language_go.
4594 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4595 member function.
4596
4597 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * ada-lang.c (ada_language_data): Remove
4600 la_store_sym_names_in_linkage_form_p initializer.
4601 (ada_language::store_sym_names_in_linkage_form_p): New member
4602 function.
4603 * c-lang.c (c_language_data): Remove
4604 la_store_sym_names_in_linkage_form_p initializer.
4605 (c_language::store_sym_names_in_linkage_form_p): New member
4606 function.
4607 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4608 initializer.
4609 (asm_language_data): Likewise.
4610 (asm_language::store_sym_names_in_linkage_form_p): New member
4611 function.
4612 (minimal_language_data): Remove
4613 la_store_sym_names_in_linkage_form_p initializer.
4614 (minimal_language::store_sym_names_in_linkage_form_p): New member
4615 function.
4616 * d-lang.c (d_language_data): Remove
4617 la_store_sym_names_in_linkage_form_p initializer.
4618 * dwarf2/read.c (dwarf2_physname): Update call to
4619 store_sym_names_in_linkage_form_p.
4620 * f-lang.c (f_language_data): Remove
4621 la_store_sym_names_in_linkage_form_p initializer.
4622 * go-lang.c (go_language_data): Remove
4623 la_store_sym_names_in_linkage_form_p initializer.
4624 * language.c (unknown_language_data): Remove
4625 la_store_sym_names_in_linkage_form_p initializer.
4626 (unknown_language::store_sym_names_in_linkage_form_p): New member
4627 function.
4628 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4629 initializer.
4630 (auto_language::store_sym_names_in_linkage_form_p): New member
4631 function.
4632 * language.h (language_data): Remove
4633 la_store_sym_names_in_linkage_form_p member variable.
4634 (language_defn::store_sym_names_in_linkage_form_p): New member
4635 function.
4636 * m2-lang.c (m2_language_data): Remove
4637 la_store_sym_names_in_linkage_form_p initializer.
4638 * objc-lang.c (objc_language_data): Likewise.
4639 * opencl-lang.c (opencl_language_data): Likewise.
4640 * p-lang.c (pascal_language_data): Likewise.
4641 * rust-lang.c (rust_language_data): Likewise.
4642
4643 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4644
4645 * ada-lang.c (ada_language_data): Remove string_lower_bound
4646 initializer.
4647 * c-lang.c (c_language_data): Likewise.
4648 (cplus_language_data): Likewise.
4649 (asm_language_data): Likewise.
4650 (minimal_language_data): Likewise.
4651 * d-lang.c (d_language_data): Likewise.
4652 * f-lang.c (f_language_data): Likewise.
4653 * go-lang.c (go_language_data): Likewise.
4654 * language.c (unknown_language_data): Likewise.
4655 (auto_language_data): Likewise.
4656 * language.h (language_data): Remove string_lower_bound field.
4657 (language_defn::string_lower_bound): New member function.
4658 * m2-lang.c (m2_language_data): Remove string_lower_bound
4659 initializer.
4660 (m2_language::string_lower_bound): New member function.
4661 * objc-lang.c (objc_language_data): Remove string_lower_bound
4662 initializer.
4663 * opencl-lang.c (opencl_language_data): Likewise.
4664 * p-lang.c (pascal_language_data): Likewise.
4665 * rust-lang.c (rust_language_data): Likewise.
4666 * valops.c (value_cstring): Update call to string_lower_bound.
4667 (value_string): Likewise.
4668 * value.c (allocate_repeated_value): Likewise.
4669
4670 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4671
4672 * valops.c (value_repeat): Fix incorrect argument name in comment.
4673
4674 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4675
4676 * ada-lang.c (ada_language_data): Remove c_style_arrays
4677 initializer.
4678 (ada_language::c_style_arrays_p): New member fuction.
4679 * c-lang.c (c_language_data): Remove c_style_arrays
4680 initializer.
4681 (cplus_language_data): Likewise.
4682 (asm_language_data): Likewise.
4683 (minimal_language_data): Likewise.
4684 * d-lang.c (d_language_data): Likewise.
4685 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4686 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4687 (f_language::c_style_arrays_p): New member function.
4688 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4689 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4690 * language.c (unknown_language_data): Remove c_style_arrays
4691 initializer.
4692 (auto_language_data): Likewise.
4693 * language.h (language_data): Remove c_style_arrays field.
4694 (language_defn::c_style_arrays_p): New member function.
4695 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4696 (m2_language::c_style_arrays_p): New member function.
4697 * objc-lang.c (objc_language_data): Remove c_style_arrays
4698 initializer.
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 * p-lang.c (pascal_language_data): Likewise.
4701 * rust-lang.c (rust_language_data): Likewise.
4702 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4703 and update local variable to a bool.
4704 * valops.c (value_cast): Update call to c_style_arrays_p.
4705 (value_array): Likewise.
4706 * value.c (coerce_array): Likewise.
4707
4708 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4709
4710 * ada-lang.c (ada_language_data): Remove la_language initializer.
4711 * c-lang.c (c_language_data): Likewise.
4712 (cplus_language_data): Likewise.
4713 (asm_language_data): Likewise.
4714 (minimal_language_data): Likewise.
4715 * d-lang.c (d_language_data): Likewise.
4716 * f-lang.c (f_language_data): Likewise.
4717 * go-lang.c (go_language_data): Likewise.
4718 * language.c (unknown_language_data): Likewise.
4719 (auto_language_data): Likewise.
4720 * language.h (language_data): Remove la_language field.
4721 (language_defn::language_defn): Initialise la_language field.
4722 (language_defn::la_language): New member variable.
4723 * m2-lang.c (m2_language_data): Remove la_language field.
4724 * objc-lang.c (objc_language_data): Likewise.
4725 * opencl-lang.c (opencl_language_data): Likewise.
4726 * p-lang.c (pascal_language_data): Likewise.
4727 * rust-lang.c (rust_language_data): Likewise.
4728
4729 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4730
4731 * ada-lang.c (ada_extensions): Delete, moved into
4732 ada_language::filename_extensions.
4733 (ada_language_data): Remove la_filename_extensions initializer.
4734 (ada_language::filename_extensions): New member function.
4735 * c-lang.c (c_extensions): Delete, moved into
4736 c_language::filename_extensions.
4737 (c_language_data): Remove la_filename_extensions initializer.
4738 (c_language::filename_extensions): New member function.
4739 (cplus_extensions): Delete, moved into
4740 cplus_language::filename_extensions.
4741 (cplus_language_data): Remove la_filename_extensions initializer.
4742 (cplus_language::filename_extensions): New member function.
4743 (asm_extensions): Delete, moved into
4744 asm_language::filename_extensions.
4745 (asm_language_data): Remove la_filename_extensions initializer.
4746 (asm_language::filename_extensions): New member function.
4747 (minimal_language_data): Remove la_filename_extensions
4748 initializer.
4749 * d-lang.c (d_extensions): Delete, moved into
4750 d_language::filename_extensions.
4751 (d_language_data): Remove la_filename_extensions initializer.
4752 (d_language::filename_extensions): New member function.
4753 * f-lang.c (f_extensions): Delete, moved into
4754 f_language::filename_extensions.
4755 (f_language_data): Remove la_filename_extensions initializer.
4756 (f_language::filename_extensions): New member function.
4757 * go-lang.c (go_language_data): Remove la_filename_extensions
4758 initializer.
4759 * language.c (add_set_language_command): Update now that
4760 filename_extensions returns a vector.
4761 (unknown_language_data): Remove la_filename_extensions
4762 initializer.
4763 (auto_language_data): Likewise.
4764 * language.h (language_data): Remove la_filename_extensions field.
4765 (language_defn::filename_extensions): New member function.
4766 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4767 initializer.
4768 * objc-lang.c (objc_extensions): Delete, moved into
4769 objc_language::filename_extensions.
4770 (objc_language_data): Remove la_filename_extensions initializer.
4771 (objc_language::filename_extensions): New member function.
4772 * opencl-lang.c (opencl_language_data): Remove
4773 la_filename_extensions initializer.
4774 * p-lang.c (pascal_extensions): Delete, moved into
4775 pascal_language::filename_extensions.
4776 (pascal_language_data): Remove la_filename_extensions initializer.
4777 (pascal_language::filename_extensions): New member function.
4778 * rust-lang.c (rust_extensions): Delete, moved into
4779 rust_language::filename_extensions.
4780 (rust_language_data): Remove la_filename_extensions initializer.
4781 (rust_language::filename_extensions): New member function.
4782 * symfile.c (add_filename_language): Add new assert.
4783
4784 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * ada-lang.c (ada_language_data): Remove la_name and
4787 la_natural_name initializers.
4788 (ada_language::name): New member function.
4789 (ada_language::natural_name): New member function.
4790 * c-lang.c (c_language_data): Remove la_name and
4791 la_natural_name initializers.
4792 (c_language::name): New member function.
4793 (c_language::natural_name): New member function.
4794 (cplus_language_data): Remove la_name and
4795 la_natural_name initializers.
4796 (cplus_language::name): New member function.
4797 (cplus_language::natural_name): New member function.
4798 (asm_language_data): Remove la_name and
4799 la_natural_name initializers.
4800 (asm_language::name): New member function.
4801 (asm_language::natural_name): New member function.
4802 (minimal_language_data): Remove la_name and
4803 la_natural_name initializers.
4804 (minimal_language::name): New member function.
4805 (minimal_language::natural_name): New member function.
4806 * compile/compile.c (compile_to_object): Update call to
4807 lanugage_defn::name.
4808 * d-lang.c (d_language_data): Remove la_name and
4809 la_natural_name initializers.
4810 (d_language::name): New member function.
4811 (d_language::natural_name): New member function.
4812 * expprint.c (print_subexp_standard): Update call to
4813 language_defn::name.
4814 (dump_raw_expression): Likewise
4815 (dump_prefix_expression): Likewise.
4816 * f-lang.c (f_language_data): Remove la_name and
4817 la_natural_name initializers.
4818 (f_language::name): New member function.
4819 (f_language::natural_name): New member function.
4820 * go-lang.c (go_language_data): Remove la_name and
4821 la_natural_name initializers.
4822 (go_language::name): New member function.
4823 (go_language::natural_name): New member function.
4824 * language.c (show_language_command): Update call to
4825 language_defn::name.
4826 (set_language_command): Likewise.
4827 (language_enum): Likewise.
4828 (language_str): Likewise.
4829 (add_set_language_command): Likewise, use
4830 language_defn::natural_name in the doc string.
4831 (unknown_language_data): Remove la_name and
4832 la_natural_name initializers.
4833 (unknown_language::name): New member function.
4834 (unknown_language::natural_name): New member function.
4835 (auto_language_data): Remove la_name and
4836 la_natural_name initializers.
4837 (auto_language::name): New member function.
4838 (auto_language::natural_name): New member function.
4839 (language_lookup_primitive_type_as_symbol): Update call to
4840 language_defn::name.
4841 * language.h (language_data): Remove la_name and la_natural_name
4842 member variables.
4843 (language_defn::name): New member function.
4844 (language_defn::natural_name): New member function.
4845 * m2-lang.c (m2_language_data): Remove la_name and
4846 la_natural_name initializers.
4847 (m2_language::name): New member function.
4848 (m2_language::natural_name): New member function.
4849 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4850 language_defn::natural_name.
4851 * objc-lang.c (objc_language_data): Remove la_name and
4852 la_natural_name initializers.
4853 (objc_language::name): New member function.
4854 (objc_language::natural_name): New member function.
4855 * opencl-lang.c (opencl_language_data): Remove la_name and
4856 la_natural_name initializers.
4857 (opencl_language::name): New member function.
4858 (opencl_language::natural_name): New member function.
4859 * p-lang.c (pascal_language_data): Remove la_name and
4860 la_natural_name initializers.
4861 (pascal_language::name): New member function.
4862 (pascal_language::natural_name): New member function.
4863 * rust-lang.c (rust_language_data): Remove la_name and
4864 la_natural_name initializers.
4865 (rust_language::name): New member function.
4866 (rust_language::natural_name): New member function.
4867 * symtab.c (lookup_language_this): Update call to
4868 language_defn::name.
4869
4870 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4871
4872 * ada-lang.c (ada_language_data): Remove la_name_of_this
4873 initializer.
4874 * ax-gdb.c (gen_expr): Update call to name_of_this.
4875 * c-exp.y (classify_name): Likewise.
4876 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4877 (cplus_language_data): Likewise.
4878 (cplus_language::name_of_this): New member function.
4879 (asm_language_data): Remove la_name_of_this initializer.
4880 (minimal_language_data): Likewise.
4881 * d-lang.c (d_language_data): Likewise.
4882 (d_language::name_of_this): New member function.
4883 * expprint.c (print_subexp_standard): Update call to name_of_this.
4884 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4885 * go-lang.c (go_language_data): Likewise.
4886 * language.c (unknown_language_data): Likewise.
4887 (unknown_language::name_of_this): New member function.
4888 (auto_language_data): Remove la_name_of_this initializer.
4889 (auto_language::name_of_this): New member function.
4890 * language.h (language_data): Delete la_name_of_this member
4891 variable.
4892 (language_defn::name_of_this): New member function.
4893 * m2-lang.c (m2_language_data): Remove la_name_of_this
4894 initializer.
4895 * objc-lang.c (objc_language_data): Likewise.
4896 (objc_language::name_of_this): New member function.
4897 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4898 initializer.
4899 * p-lang.c (pascal_language_data): Likewise.
4900 (pascal_language::name_of_this): New member function.
4901 * rust-lang.c (rust_language_data): Remove la_name_of_this
4902 initializer.
4903 * symtab.c (lookup_language_this): Update call to name_of_this.
4904 (lookup_symbol_aux): Likewise.
4905 * valops.c (value_of_this): Likewise.
4906
4907 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * ada-lang.c (ada_language_data): Remove
4910 la_struct_too_deep_ellipsis initializer.
4911 (ada_language::struct_too_deep_ellipsis): New member function.
4912 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4913 initializer.
4914 (cplus_language_data): Likewise.
4915 (asm_language_data): Likewise.
4916 (minimal_language_data): Likewise.
4917 * cp-valprint.c (cp_print_value): Update call to
4918 struct_too_deep_ellipsis.
4919 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4920 initializer.
4921 * f-lang.c (f_language_data): Likewise.
4922 (f_language::struct_too_deep_ellipsis): New member function.
4923 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4924 initializer.
4925 * language.c (unknown_language_data): Likewise.
4926 (auto_language_data): Likewise.
4927 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4928 member variable.
4929 (language_defn::struct_too_deep_ellipsis): New member function.
4930 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4931 initializer.Q
4932 * objc-lang.c (objc_language_data): Likewise.
4933 * opencl-lang.c (opencl_language_data): Likewise.
4934 * p-lang.c (pascal_language_data): Likewise.
4935 * rust-lang.c (rust_language_data): Likewise.
4936 * valprint.c (val_print_check_max_depth): Update call to
4937 struct_too_deep_ellipsis.
4938
4939 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4940
4941 * MAINTAINERS (Write After Approval): Add myself.
4942
4943 2020-09-15 Tom Tromey <tom@tromey.com>
4944
4945 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4946 Remove.
4947
4948 2020-09-15 Tom Tromey <tom@tromey.com>
4949
4950 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4951 and TYPE_CODE_METHODPTR cases.
4952 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4953 (c_value_print_inner): Update.
4954 * valprint.c (generic_value_print_memberptr): New function, from
4955 c_value_print_memberptr.
4956 (generic_value_print): Use it. Call cplus_print_method_ptr.
4957
4958 2020-09-15 Tom Tromey <tromey@adacore.com>
4959
4960 * python/python-internal.h (PyInt_FromLong): Remove define.
4961 * python/py-value.c (convert_value_from_python): Use
4962 gdb_py_object_from_longest.
4963 * python/py-type.c (typy_get_code): Use
4964 gdb_py_object_from_longest.
4965 * python/py-symtab.c (salpy_get_line): Use
4966 gdb_py_object_from_longest.
4967 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4968 gdb_py_object_from_longest.
4969 * python/py-record.c (recpy_gap_reason_code): Use
4970 gdb_py_object_from_longest.
4971 * python/py-record-btrace.c (recpy_bt_insn_size)
4972 (recpy_bt_func_level, btpy_list_count): Use
4973 gdb_py_object_from_longest.
4974 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4975 gdb_py_object_from_longest. Fix error handling.
4976 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4977 gdb_py_object_from_longest.
4978 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4979 gdb_py_object_from_longest.
4980 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4981 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4982 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4983
4984 2020-09-15 Tom Tromey <tromey@adacore.com>
4985
4986 * python/python.c (gdbpy_parameter_value): Use
4987 gdb_py_object_from_ulongest.
4988
4989 2020-09-15 Tom Tromey <tromey@adacore.com>
4990
4991 * python/py-infevents.c (create_register_changed_event_object):
4992 Use gdb_py_object_from_longest.
4993 * python/py-exitedevent.c (create_exited_event_object): Use
4994 gdb_py_object_from_longest.
4995
4996 2020-09-15 Tom Tromey <tromey@adacore.com>
4997
4998 * python/python.c (gdbpy_parameter_value): Use
4999 gdb_py_object_from_longest.
5000 * python/py-type.c (convert_field, typy_range): Use
5001 gdb_py_object_from_longest.
5002 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5003 gdb_py_object_from_longest.
5004 * python/py-lazy-string.c (stpy_get_length): Use
5005 gdb_py_object_from_longest.
5006 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5007 gdb_py_object_from_longest.
5008 * python/py-infevents.c (create_memory_changed_event_object): Use
5009 gdb_py_object_from_longest.
5010 * python/py-inferior.c (infpy_get_num): Use
5011 gdb_py_object_from_longest.
5012 (infpy_get_pid): Likewise.
5013
5014 2020-09-15 Tom Tromey <tromey@adacore.com>
5015
5016 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5017 defines.
5018 * python/py-value.c (valpy_long): Use
5019 gdb_py_object_from_ulongest.
5020 * python/py-symtab.c (salpy_get_pc): Use
5021 gdb_py_object_from_ulongest.
5022 (salpy_get_last): Likewise.
5023 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5024 gdb_py_object_from_ulongest.
5025 * python/py-lazy-string.c (stpy_get_address): Use
5026 gdb_py_object_from_ulongest.
5027 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5028 * python/py-arch.c (archpy_disassemble): Use
5029 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5030 error handling.
5031
5032 2020-09-15 Tom Tromey <tromey@adacore.com>
5033
5034 * python/python-internal.h (gdb_py_long_from_longest): Remove
5035 defines.
5036 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5037 * python/py-type.c (convert_field, typy_get_sizeof): Use
5038 gdb_py_object_from_longest.
5039 * python/py-record-btrace.c (btpy_list_index): Use
5040 gdb_py_object_from_longest.
5041
5042 2020-09-15 Tom Tromey <tromey@adacore.com>
5043
5044 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5045 * python/py-record.c (recpy_element_number): Use
5046 gdb_py_object_from_longest.
5047 (recpy_gap_number): Likewise.
5048
5049 2020-09-15 Tom Tromey <tromey@adacore.com>
5050
5051 * top.c (ui::ui): Update.
5052 (highest_ui_num): Remove.
5053 * top.h (struct ui) <num>: Remove.
5054
5055 2020-09-15 Tom Tromey <tromey@adacore.com>
5056
5057 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5058 * ui-style.c (ansi_regex_text): Now array.
5059 * rust-exp.y (number_regex_text): Now array.
5060 * linespec.c (linespec_quote_characters): Now array.
5061 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5062 Now arrays.
5063
5064 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * debuginfod-support.c (debuginfod_client_deleter): New.
5067 (debuginfod_client_up): New.
5068 (debuginfod_init): Return debuginfod_client_up.
5069 (debuginfod_source_query): Adjust.
5070 (debuginfod_debuginfo_query): Adjust.
5071
5072 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5073
5074 * debuginfod-support.c (debuginfod_source_query): Use
5075 make_unique_xstrdup.
5076
5077 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5080 with `type::instance_flags`.
5081
5082 2020-09-14 Michael Mullin <masmullin@gmail.com>
5083
5084 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5085 Remove baton parameter.
5086
5087 2020-09-14 Pedro Alves <pedro@palves.net>
5088
5089 * Makefile.in (SELFTESTS_SRCS): Add
5090 unittests/enum-flags-selftests.c.
5091 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5092 btrace_function_flags instead of enum btrace_function_flag.
5093 * compile/compile-c-types.c (convert_qualified): Use
5094 enum_flags::raw.
5095 * compile/compile-cplus-symbols.c (convert_one_symbol)
5096 (convert_symbol_bmsym):
5097 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5098 (compile_cplus_convert_struct_or_union_methods)
5099 (compile_cplus_instance::convert_qualified_base):
5100 * go-exp.y (parse_string_or_char): Add cast to int.
5101 * unittests/enum-flags-selftests.c: New file.
5102 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5103 type to btrace_thread_flags from btrace_thread_flag.
5104 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5105 local's type to btrace_thread_flags from btrace_thread_flag. Add
5106 cast in DEBUG call.
5107
5108 2020-09-14 Pedro Alves <pedro@palves.net>
5109
5110 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5111 * gdbtypes.c (address_space_name_to_int): Rename to ...
5112 (address_space_name_to_type_instance_flags): ... this.
5113 (address_space_int_to_name): Rename to ...
5114 (address_space_type_instance_flags_to_name): ... this.
5115 * gdbtypes.h (address_space_name_to_int): Rename to ...
5116 (address_space_name_to_type_instance_flags): ... this.
5117 (address_space_int_to_name): Rename to ...
5118 (address_space_type_instance_flags_to_name): ... this.
5119 * type-stack.c (type_stack::insert): Adjust to rename.
5120 * type-stack.h (type_stack::insert): Likewise.
5121
5122 2020-09-14 Pedro Alves <pedro@palves.net>
5123 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * avr-tdep.c (avr_address_class_type_flags): Return
5126 type_instance_flags.
5127 (avr_address_class_type_flags_to_name): Take a
5128 type_instance_flags.
5129 (avr_address_class_name_to_type_flags): Return bool and take a
5130 type_instance_flags.
5131 * d-lang.c (build_d_types): Use type::set_instance_flags.
5132 * ft32-tdep.c (ft32_address_class_type_flags): Return
5133 type_instance_flags.
5134 (ft32_address_class_type_flags_to_name): Take a
5135 type_instance_flags.
5136 (ft32_address_class_name_to_type_flags): Return bool and take a
5137 type_instance_flags.
5138 (ft32_gdbarch_init): Use type::set_instance_flags.
5139 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5140 * gdbarch.h, gdbarch.c: Regenerate.
5141 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5142 (address_class_name_to_type_flags): Use type_instance_flags and
5143 bool.
5144 * gdbtypes.c (address_space_name_to_int)
5145 (address_space_int_to_name, make_qualified_type): Use
5146 type_instance_flags.
5147 (make_qualified_type): Use type_instance_flags and
5148 type::set_instance_flags.
5149 (make_type_with_address_space, make_cv_type, make_vector_type)
5150 (check_typedef): Use type_instance_flags.
5151 (recursive_dump_type): Cast type_instance_flags to unsigned for
5152 printing.
5153 (copy_type_recursive): Use type::set_instance_flags.
5154 (gdbtypes_post_init): Use type::set_instance_flags.
5155 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5156 <m_instance_flags>: ... this.
5157 <instance_flags, set_instance_flags>: New methods.
5158 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5159 (SET_TYPE_INSTANCE_FLAGS): New.
5160 (address_space_name_to_int, address_space_int_to_name)
5161 (make_type_with_address_space): Pass flags using
5162 type_instance_flags instead of int.
5163 * stabsread.c (cleanup_undefined_types_noname): Use
5164 type::set_instance_flags.
5165 * s390-tdep.c (s390_address_class_type_flags): Return
5166 type_instance_flags.
5167 (s390_address_class_type_flags_to_name): Take a
5168 type_instance_flags.
5169 (s390_address_class_name_to_type_flags): Return bool and take a
5170 type_instance_flags.
5171 * type-stack.c (type_stack::follow_types): Use
5172 type_instance_flags.
5173 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5174
5175 2020-09-14 Tom Tromey <tromey@adacore.com>
5176
5177 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5178 * x86-tdep.c (x86_is_thunk_register_name)
5179 (x86_in_indirect_branch_thunk): Update.
5180 * sparc64-tdep.c (sparc64_fpu_register_names)
5181 (sparc64_cp0_register_names, sparc64_register_names)
5182 (sparc64_pseudo_register_names): Now const.
5183 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5184 cp0_registers_num>: Now const.
5185 * sparc-tdep.c (sparc_core_register_names)
5186 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5187 (sparc32_pseudo_register_names): Now const.
5188 (validate_tdesc_registers): Update.
5189 * rust-lang.c (rust_extensions): Now const.
5190 * p-lang.c (p_extensions): Now const.
5191 * objc-lang.c (objc_extensions): Now const.
5192 * nto-tdep.c (nto_thread_state_str): Now const.
5193 * moxie-tdep.c (moxie_register_names): Now const.
5194 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5195 Now const.
5196 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5197 (mips_linux_reg_names): Now const.
5198 (mips_gdbarch_init): Update.
5199 * microblaze-tdep.c (microblaze_register_names): Now const.
5200 * m68k-tdep.c (m68k_register_names): Now const.
5201 * m32r-tdep.c (m32r_register_names): Now const.
5202 * ia64-tdep.c (ia64_register_names): Now const.
5203 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5204 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5205 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5206 ymm_avx512_register_names, pkeys_register_names>: Now const.
5207 * i386-tdep.c (i386_register_names, i386_zmm_names)
5208 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5209 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5210 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5211 * f-lang.c (f_extensions): Now const.
5212 * d-lang.c (d_extensions): Now const.
5213 * csky-tdep.c (csky_register_names): Now const.
5214 * charset.c (default_charset_names, charset_enum): Now const.
5215 (_initialize_charset): Update.
5216 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5217 const.
5218 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5219 (bsd_uthread_solib_loaded): Update.
5220 (bsd_uthread_state): Now const.
5221 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5222 (amd64_ymm_avx512_names, amd64_ymmh_names)
5223 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5224 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5225 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5226 (amd64_dword_names): Now const.
5227 * agent.c (can_use_agent_enum): Now const.
5228 * ada-tasks.c (task_states, long_task_states): Now const.
5229 * ada-lang.c (known_runtime_file_name_patterns)
5230 (known_auxiliary_function_name_patterns, attribute_names)
5231 (standard_exc, ada_extensions): Now const.
5232
5233 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5234
5235 * bcache.h (struct bcache) <bcache>: Remove constructor.
5236 <m_hash_function, m_compare_function>: Remove.
5237 <~bcache>: Make virtual.
5238 <compare>: Remove static method, introduce virtual method.
5239 <default_hash>: Remove.
5240 <hash>: New virtual method.
5241 * bcache.c (bcache::expand_hash_table): Update.
5242 (bcache::insert): Update.
5243 (bcache::hash): New.
5244 (bcache::compare): Update comment and parameter names.
5245 * gdbtypes.c (types_deeply_equal): Update.
5246 * psymtab.h (struct psymbol_bcache): New struct.
5247 (class psymtab_storage) <psymtab_storage>: Make default.
5248 <psymbol_cache>: Change type to psymbol_bcache.
5249 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5250 (psymbol_hash): Change to...
5251 (psymbol_bcache::hash): ... this.
5252 (psymbol_compare): Change to...
5253 (psymbol_bcache::compare): ... this.
5254
5255 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5256
5257 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5258 checking for initial lwp.
5259
5260 2020-09-14 Tom Tromey <tromey@adacore.com>
5261
5262 * m68k-tdep.c (m68k_extract_return_value): Use
5263 pointer_result_regnum.
5264 (m68k_store_return_value): Likewise.
5265 (m68k_reg_struct_return_p): Handle vectors and arrays.
5266 (m68k_return_value): Handle arrays.
5267 (m68k_svr4_return_value): Fix single-element aggregate handling.
5268 Handle long double. Adjust for embedded ABI.
5269 (m68k_svr4_init_abi): Set pointer_result_regnum.
5270 (m68k_embedded_init_abi): New function.
5271 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5272 (m68k_osabi_sniffer): New function.
5273 (_initialize_m68k_tdep): Register osabi sniffer.
5274 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5275 member.
5276
5277 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5280 with gdb::unique_xmalloc_ptr<char>.
5281
5282 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * xml-support.h (xml_fetch_another): Change type to be a
5285 function_view.
5286 (xml_process_xincludes): Remove baton parameter.
5287 (xml_fetch_content_from_file): Change baton parameter to
5288 dirname.
5289 * xml-support.c (struct xinclude_parsing_data)
5290 <xinclude_parsing_data>: Remove baton parameter.
5291 <fetcher_baton>: Remove.
5292 (xinclude_start_include): Adjust.
5293 (xml_process_xincludes): Adjust.
5294 (xml_fetch_content_from_file): Replace baton parameter with
5295 dirname.
5296 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5297 (xml_init_syscalls_info): Use a lambda.
5298 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5299 (file_read_description_xml): Use a lambda.
5300 (fetch_available_features_from_target): Change baton parameter
5301 to target_ops.
5302 (target_read_description_xml): Use a lambda.
5303 (target_fetch_description_xml): Use a lambda.
5304 (string_read_description_xml): Update.
5305
5306 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5309 uses with type::endianity_is_not_default.
5310
5311 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (struct type) <endianity_is_not_default,
5314 set_endianity_is_not_default>: New methods.
5315 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5316 type::endianity_is_not_default, change all write call sites to
5317 use type::set_endianity_is_not_default.
5318
5319 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5322 uses with type::is_fixed_instance.
5323
5324 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5325
5326 * gdbtypes.h (struct type) <is_fixed_instance,
5327 set_is_fixed_instance>: New methods.
5328 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5329 write call sites to use type::set_is_fixed_instance.
5330
5331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5334 uses with type::is_gnu_ifunc.
5335
5336 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5339 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5340 use type::set_is_gnu_ifunc.
5341
5342 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5345 uses with type::stub_is_supported.
5346
5347 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5350 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5351 use type::set_stub_is_supported.
5352
5353 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5356 uses with type::is_vector.
5357
5358 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5361 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5362 use type::set_is_vector.
5363
5364 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5367 uses with type::has_varargs.
5368
5369 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5370
5371 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5372 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5373 use type::set_has_varargs.
5374
5375 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5378 uses with type::is_prototyped.
5379
5380 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5381
5382 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5383 New methods.
5384 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5385 call sites to use type::set_is_prototyped.
5386
5387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5390 uses with type::target_is_stub.
5391
5392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5395 New methods.
5396 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5397 sites to use type::set_target_is_stub.
5398
5399 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (TYPE_STUB): Remove, replace all
5402 uses with type::is_stub.
5403
5404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5407 (TYPE_STUB): Use type::is_stub, change all write call sites to
5408 use type::set_is_stub.
5409
5410 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5413 type::has_no_signedness.
5414
5415 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5416
5417 * gdbtypes.h (struct type) <has_no_signedness,
5418 set_has_no_signedness>: New methods.
5419 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5420 call sites to use type::set_has_no_signedness.
5421
5422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5423
5424 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5425 type::is_unsigned.
5426
5427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5430 methods.
5431 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5432 sites to use type::set_is_unsigned.
5433
5434 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5435 Adam Renquinha <arenquinha@cimeq.qc.ca>
5436
5437 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5438 pointer and stack frame offset when unwinding.
5439
5440 2020-09-13 Pedro Alves <pedro@palves.net>
5441
5442 * NEWS: Document "-break-insert --qualified".
5443 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5444
5445 2020-09-13 Pedro Alves <pedro@palves.net>
5446
5447 * linespec.c (classify_mtype, compare_msyms): Delete.
5448 (search_minsyms_for_name): Remove classification logic. Instead
5449 filter out trampoline symbols if we also found an external
5450 function of the same name.
5451
5452 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5453
5454 * NEWS: Create a new section for the next release branch.
5455 Rename the section of the current branch, now that it has
5456 been cut.
5457
5458 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5459
5460 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5461 * version.in: Bump version to 11.0.50.DATE-git.
5462
5463 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5464
5465 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5466
5467 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5468 Felix Willgerodt <Felix.Willgerodt@intel.com>
5469
5470 * gdbarch.sh: Added bfloat16 type.
5471 * gdbarch.c: Regenerated.
5472 * gdbarch.h: Regenerated.
5473 * gdbtypes.c (floatformats_bfloat16): New struct.
5474 (gdbtypes_post_init): Add builtin_bfloat16.
5475 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5476 (floatformats_bfloat16): New struct.
5477 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5478 (i386_ymm_type): Add field "v16_bfloat16"
5479 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5480 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5481 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5482 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5483 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5484 * features/i386/64bit-avx512.c: Regenerated.
5485 * features/i386/64bit-sse.xml: Add bfloat16 type.
5486 * features/i386/64bit-sse.c: Regenerated.
5487
5488 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5489
5490 * i386-tdep.c (i386_zmm_type): Fix field names.
5491 (i386_ymm_type): Fix field names.
5492
5493 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5494
5495 * breakpoint.c: Fix typo in the help message of the
5496 "set breakpoint condition-evaluation" command.
5497
5498 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5499
5500 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5501 * (nbsd_nat_target::pid_to_exec_file)
5502 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5503 (nbsd_nat_target::post_startup_inferior)
5504 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5505 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5506 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5507 * (nbsd_thread_lister): Remove.
5508
5509 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5510
5511 * fork-inferior.c (startup_inferior): Avoid double free.
5512
5513 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5514
5515 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5516 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5517
5518 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5519
5520 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5521 * netbsd-nat.c: Include <sys/ptrace.h>.
5522 * (netbsd_nat::enable_proc_events): Add.
5523
5524 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5525
5526 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5527 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5528 (netbsd_nat::for_each_thread): Add.
5529 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5530 "gdbsupport/common-debug.h".
5531 * (netbsd_nat::netbsd_thread_lister)
5532 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5533 (netbsd_nat::for_each_thread): Add.
5534
5535 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5536
5537 * netbsd-nat.h: Include <unistd.h>.
5538 * (netbsd_nat::pid_to_exec_file): Add.
5539 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5540 * (netbsd_nat::pid_to_exec_file) Add.
5541
5542 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5543
5544 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5545
5546 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5547
5548 * netbsd-nat.h: New file.
5549 * netbsd-nat.c: Likewise.
5550
5551 2020-09-09 Tom Tromey <tromey@adacore.com>
5552
5553 * ada-lang.c (remove_extra_symbols): Do not increment when
5554 removing an element
5555
5556 2020-09-08 Tom Tromey <tromey@adacore.com>
5557
5558 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5559
5560 2020-09-08 Tom Tromey <tromey@adacore.com>
5561
5562 PR win32/25302:
5563 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5564 (gdb_bfd_init_data): New function.
5565 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5566
5567 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5568
5569 * infrun.c (fetch_inferior_event): Use
5570 `switch_to_target_no_thread` to switch the target.
5571
5572 2020-09-06 Tom Tromey <tom@tromey.com>
5573
5574 * symfile.h (dwarf2_free_objfile): Don't declare.
5575
5576 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5577
5578 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5579 to match 16 byte real/complex type generated by Flang compiler.
5580
5581 2020-09-03 Tom de Vries <tdevries@suse.de>
5582
5583 PR breakpoint/26546
5584 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5585 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5586
5587 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5588
5589 * maint.c (index_digits): New function.
5590 (struct maint_print_section_data): Remove.
5591 (print_bfd_section_info): Remove print_data parameter, add arg
5592 and index_digits.
5593 (print_objfile_section_info): Likewise.
5594 (print_bfd_section_info_maybe_relocated): Likewise (plus
5595 objfile).
5596 (maintenance_info_sections): Adjust calls.
5597
5598 2020-09-02 Tom Tromey <tromey@adacore.com>
5599
5600 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5601 for null pointers.
5602 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5603
5604 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5605
5606 * bcache.h (struct bcache) <insert>: Change type of `added` to
5607 pointer to bool.
5608 * bcache.c (bcache::insert): Likewise.
5609 * gdbtypes.c (check_types_worklist): Adjust.
5610 * psymtab.c (add_psymbol_to_bcache): Adjust.
5611
5612 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5613
5614 * corelow.c (unordered_set): Include.
5615 (class core_target): Add field 'm_core_unavailable_mappings'.
5616 (core_target::build_file_mappings): Print only one warning
5617 per inaccessible file. Add unavailable/broken mappings
5618 to m_core_unavailable_mappings.
5619 (core_target::xfer_partial): Call...
5620 (core_target::xfer_memory_via_mappings): New method.
5621
5622 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5625 type to bool.
5626
5627 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5628
5629 * dwarf2/read.c (struct field_info): Fix indentation.
5630
5631 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5634 ordering in comment.
5635 * frame.c (frame_id_eq): Fix indentation.
5636
5637 2020-08-31 Scott Linder <scott@scottlinder.com>
5638 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5641 inline frame ids in outer frame.
5642
5643 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5646 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5647 (outer_frame_id): Use FID_STACK_OUTER instead of
5648 FID_STACK_INVALID.
5649 (frame_id_p): Don't check for outer_frame_id.
5650
5651 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5654 regnum/frame in value. Call allocate_value_lazy.
5655 * frame.c (frame_unwind_register_value): Use
5656 val_print_not_saved.
5657
5658 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5659
5660 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5661
5662 2020-08-29 Pedro Alves <pedro@palves.net>
5663
5664 * progspace.c (print_program_space): Use all_inferiors. Switch to
5665 the inferior before calling target_pid_to_str.
5666
5667 2020-08-28 Tom Tromey <tom@tromey.com>
5668
5669 * xcoffread.c (xcoff_end_psymtab): Update comment.
5670 * dbxread.c (dbx_end_psymtab): Update comment.
5671
5672 2020-08-28 Tom de Vries <tdevries@suse.de>
5673
5674 PR breakpoint/26544
5675 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5676 event_location.
5677 (create_breakpoint): Same.
5678 (base_breakpoint_decode_location): Same.
5679 (bkpt_create_sals_from_location): Same.
5680 (bkpt_decode_location): Same.
5681 (bkpt_probe_create_sals_from_location): Same.
5682 (bkpt_probe_decode_location): Same.
5683 (tracepoint_create_sals_from_location): Same.
5684 (tracepoint_decode_location): Same.
5685 (tracepoint_probe_decode_location): Same.
5686 (strace_marker_create_sals_from_location): Same.
5687 (strace_marker_decode_location): Same.
5688 (create_sals_from_location_default): Same.
5689 (decode_location_default): Same.
5690 * breakpoint.h (struct breakpoint_ops): Same.
5691 (create_breakpoint): Same.
5692 * linespec.h (decode_line_full): Same.
5693 * linespec.c (decode_line_full): Same. Throw error if
5694 result.size () == 0.
5695
5696 2020-08-27 Pedro Alves <pedro@palves.net>
5697
5698 PR gdb/26524
5699 * breakpoint.c (until_break_fsm) <location_breakpoint,
5700 caller_breakpoint>: Delete fields.
5701 <breakpoints>: New field.
5702 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5703 two individual breakpoints.
5704 (until_break_fsm::should_stop): Loop over breakpoints in the
5705 breakpoint vector.
5706 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5707 vector.
5708 (until_break_command): Handle location expanding into multiple
5709 sals.
5710
5711 2020-08-27 Pedro Alves <pedro@palves.net>
5712
5713 PR gdb/26523
5714 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5715 bp_until breakpoints user-specified locations. Update intro
5716 comment.
5717
5718 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5721 gdb_bfd_sections): New.
5722 * maint.c (print_bfd_section_info): Change param type to
5723 maint_print_section_data.
5724 (print_objfile_section_info): Likewise.
5725 (print_bfd_section_info_maybe_relocated): Likewise.
5726 (maintenance_info_sections): Use gdb_bfd_sections.
5727
5728 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5729
5730 * MAINTAINERS: Add ARC target and maintainer.
5731
5732 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5733
5734 * configure.tgt: ARC support for GNU/Linux.
5735 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5736 * arc-linux-tdep.c: New file.
5737 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5738 * arc-tdep.c (arc_write_pc): Use it.
5739
5740 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5741
5742 * arc-tdep.c (arc_check_for_hardware_loop): New.
5743 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5744
5745 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5746
5747 * arc-tdep.h: Include "gdbarch.h".
5748
5749 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5750
5751 * arch/arc.h
5752 (arc_gdbarch_features): New class to stir the selection of target XML.
5753 (arc_create_target_description): Use FEATURES to choose XML target.
5754 (arc_lookup_target_description): Use arc_create_target_description
5755 to create _new_ target descriptions or return the already created
5756 ones if the FEATURES is the same.
5757 * arch/arc.c: Implementation of prototypes described above.
5758 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5759 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5760 * arc-tdep.c (*_feature_name): Make feature names consistent.
5761 (arc_register_feature): A new struct to hold information about
5762 registers of a particular target/feature.
5763 (arc_check_tdesc_feature): Check if XML provides registers in
5764 compliance with ARC_REGISTER_FEATURE structs.
5765 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5766 (determine_*_reg_feature_set): Which feature name to look for.
5767 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5768 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5769 to expected ISA enums to be used in arc_gdbarch_features structs.
5770 * features/Makefile (FEATURE_XMLFILES): Add new files.
5771 * gdb/features/arc/v1-aux.c: New file.
5772 * gdb/features/arc/v1-aux.xml: Likewise.
5773 * gdb/features/arc/v1-core.c: Likewise.
5774 * gdb/features/arc/v1-core.xml: Likewise.
5775 * gdb/features/arc/v2-aux.c: Likewise.
5776 * gdb/features/arc/v2-aux.xml: Likewise.
5777 * gdb/features/arc/v2-core.c: Likewise.
5778 * gdb/features/arc/v2-core.xml: Likewise.
5779 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5780
5781 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5782 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 PR m2/26372
5785 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5786 an assert. Remove single element array indexing pattern as the
5787 MULTI_SUBSCRIPT support will handle this case too.
5788
5789 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * value.h (valprint_check_validity): Move declaration from
5792 here...
5793 * valprint.h (valprint_check_validity): ... to here.
5794
5795 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * debug.h: New file.
5798 * debug.c (debug_prefixed_vprintf): New function.
5799 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5800 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5801
5802 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * infrun.h (infrun_debug_printf_1): New function declaration.
5805 (infrun_debug_printf): New macro.
5806 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5807 throughout.
5808 (infrun_debug_printf): New function.
5809 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5810 (handle_jit_event): Likewise.
5811
5812 2020-08-21 Mark Wielaard <mark@klomp.org>
5813
5814 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5815
5816 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5817
5818 * frame.c (enum class frame_id_status): New.
5819 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5820 (fprintf_frame): Update.
5821 (compute_frame_id): Set frame id status to "computing" on entry.
5822 Set it back to "not_computed" on failure and to "computed" on
5823 success.
5824 (get_frame_id): Assert the frame id is not being computed.
5825 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5826 (create_new_frame): Likewise.
5827 (frame_cleanup_after_sniffer): Update assert.
5828
5829 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * regcache.c (pid_ptid_regcache_map): New type.
5832 (target_ptid_regcache_map): Remove.
5833 (target_pid_ptid_regcache_map): New type.
5834 (regcaches): Change type to target_pid_ptid_regcache_map.
5835 (get_thread_arch_aspace_regcache): Update.
5836 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5837 case.
5838 (regcaches_size): Update.
5839 (regcache_count): Update.
5840 (registers_changed_ptid_target_pid_test): New.
5841 (_initialize_regcache): Register new test.
5842
5843 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5844
5845 * regcache.c (regcache_count): New.
5846 (struct regcache_test_data): New.
5847 (regcache_test_data_up): New.
5848 (populate_regcaches_for_test): New.
5849 (regcaches_test): Remove.
5850 (get_thread_arch_aspace_regcache_test): New.
5851 (registers_changed_ptid_all_test): New.
5852 (registers_changed_ptid_target_test): New.
5853 (registers_changed_ptid_target_ptid_test): New.
5854 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5855 (_initialize_regcache): Register new tests.
5856
5857 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5860 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5861 gdbarch and aspace parameter. Use current inferior's aspace.
5862 Validate regcache's arch value.
5863 (regcaches_test): Update.
5864
5865 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5866
5867 * regcache.c (regcaches_test): Call registers_changed.
5868
5869 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5870
5871 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5872
5873 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5874
5875 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5876 to find the end of prologue for flang compiled binaries.
5877 * arm-tdep.c (arm_skip_prologue): Likewise.
5878 * i386-tdep.c (i386_skip_prologue): Likewise.
5879 * producer.c (producer_is_llvm): New function.
5880 (producer_parsing_tests): Added new tests for clang/flang.
5881 * producer.h (producer_is_llvm): New declaration.
5882
5883 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5884
5885 * linux-nat.c (linux_nat_debug_printf): New function.
5886 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5887
5888 2020-08-18 Aaron Merey <amerey@redhat.com>
5889
5890 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5891 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5892 (CLIBS): Add DEBUGINFOD_LIBS.
5893
5894 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5895
5896 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5897 'gdbarch_num_regs'.
5898
5899 2020-08-17 Tom Tromey <tromey@adacore.com>
5900
5901 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5902 ada_get_decoded_value returns NULL.
5903
5904 2020-08-17 Tom Tromey <tromey@adacore.com>
5905
5906 * python/py-inferior.c (infpy_search_memory): Use
5907 gdb_py_object_from_ulongest.
5908 * python/py-infevents.c (create_inferior_call_event_object)
5909 (create_memory_changed_event_object): Use
5910 gdb_py_object_from_ulongest.
5911 * python/py-linetable.c (ltpy_entry_get_pc): Use
5912 gdb_py_object_from_ulongest.
5913
5914 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5915
5916 * loc.c (class symbol_needs_eval_context): Fix indentation.
5917
5918 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5919
5920 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5921 bool.
5922
5923 2020-08-17 Tom de Vries <tdevries@suse.de>
5924
5925 PR gdb/26393
5926 * gdbtypes.c (dump_dynamic_prop): New function.
5927 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5928
5929 2020-08-15 Tom de Vries <tdevries@suse.de>
5930
5931 PR backtrace/26390
5932 * stack.c (print_frame_args): Temporarily set the selected
5933 frame to FRAME while printing the frame's arguments.
5934
5935 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5936
5937 PR breakpoints/26385
5938 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5939 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5940
5941 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5942
5943 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5944 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5945 and >= to check return value instead of == -1 and != -1.
5946
5947 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * utils.h (class gdb_argv) <as_array_view>: New method.
5950 * utils.c (gdb_argv_as_array_view_test): New.
5951 (_initialize_utils): Register selftest.
5952 * maint.c (maintenance_selftest): Use the new method.
5953
5954 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5955
5956 * target.h (supports_dumpcore, dumpcore): New
5957 function declarations.
5958 * target.c (supports_dumpcore, dumpcore): New
5959 functions.
5960 * target-delegates.c: Rebuild.
5961 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5962 and target_dumpcore ().
5963
5964 2020-08-13 Aaron Merey <amerey@redhat.com>
5965
5966 * debuginfod-support.c: Replace global variables with user_data.
5967
5968 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5969
5970 * maint.c (maintenance_selftest): Split args and pass array_view
5971 to run_tests.
5972
5973 2020-08-12 Luis Machado <luis.machado@linaro.org>
5974
5975 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5976 type's length.
5977 Use %s and pulongest to print the length.
5978
5979 2020-08-12 Pedro Alves <palves@redhat.com>
5980
5981 * NEWS: Move "Multi-target debugging support" item to the
5982 "Changes since GDB 9" section.
5983
5984 2020-08-12 Pedro Alves <palves@redhat.com>
5985
5986 PR gdb/26336
5987 * progspace.c (program_space::remove_objfile): Invalidate the
5988 frame cache.
5989
5990 2020-08-11 Tom de Vries <tdevries@suse.de>
5991
5992 * MAINTAINERS: Mark ms1 as deleted.
5993
5994 2020-08-10 Luis Machado <luis.machado@linaro.org>
5995
5996 PR gdb/26310
5997
5998 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5999 act accordingly.
6000 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6001 movz/str/stur/stp skipping behavior.
6002
6003 2020-08-10 Luis Machado <luis.machado@linaro.org>
6004
6005 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6006 struct user_sve_header instead of struct sve_context.
6007
6008 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * read.h (dwarf2_fetch_die_loc_sect_off,
6011 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6012 `void *` parameter with function_view.
6013 * read.c (dwarf2_fetch_die_loc_sect_off,
6014 dwarf2_fetch_die_loc_cu_off): Likewise.
6015 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6016 (per_cu_dwarf_call): Adjust.
6017 (get_frame_address_in_block_wrapper): Remove.
6018 (indirect_synthetic_pointer): Adjust.
6019 (get_ax_pc): Remove.
6020 (dwarf2_compile_expr_to_ax): Adjust.
6021
6022 2020-08-08 Tom de Vries <tdevries@suse.de>
6023
6024 PR build/26344
6025 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6026 constructor.
6027 * regcache.c (get_thread_arch_aspace_regcache): Same.
6028
6029 2020-08-07 Tom Tromey <tromey@adacore.com>
6030
6031 * ravenscar-thread.c
6032 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6033 New method.
6034 (ravenscar_thread_target::wait): Check
6035 runtime_initialized.
6036 (ravenscar_thread_target::prepare_to_store)
6037 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6038 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6039 (ravenscar_thread_target::stopped_by_watchpoint)
6040 (ravenscar_thread_target::stopped_data_address)
6041 (ravenscar_thread_target::core_of_thread): Use
6042 scoped_restore_current_thread and
6043 set_base_thread_from_ravenscar_task.
6044
6045 2020-08-07 Tom Tromey <tromey@adacore.com>
6046
6047 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6048
6049 2020-08-07 Tom Tromey <tromey@adacore.com>
6050
6051 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6052 update_inferior_ptid before update_thread_list.
6053 (temporarily_change_regcache_ptid): New class.
6054 (ravenscar_thread_target::fetch_registers)
6055 (ravenscar_thread_target::store_registers)
6056 (ravenscar_thread_target::prepare_to_store): Use base thread when
6057 forwarding operation.
6058
6059 2020-08-07 Tom Tromey <tromey@adacore.com>
6060
6061 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6062 "is_pid" case.
6063
6064 2020-08-07 Tom Tromey <tromey@adacore.com>
6065
6066 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6067 New methods.
6068 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6069 first.
6070 (ravenscar_thread_target::add_thread): Rename from
6071 ravenscar_add_thread.
6072 (ravenscar_thread_target::update_thread_list): Use a lambda.
6073 (ravenscar_thread_target::xfer_partial): New method.
6074
6075 2020-08-07 Tom Tromey <tromey@adacore.com>
6076
6077 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6078 gdb::function_view.
6079 (iterate_over_live_ada_tasks): Change type of argument.
6080 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6081 of argument.
6082
6083 2020-08-07 Tom Tromey <tromey@adacore.com>
6084
6085 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6086 Remove.
6087 (ravenscar_thread_target::extra_thread_info): Remove.
6088 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6089 defer to target beneath for non-Ravenscar threads.
6090
6091 2020-08-07 Tom Tromey <tromey@adacore.com>
6092
6093 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6094 get_base_thread_from_ravenscar_task>: Now methods.
6095 <m_cpu_map>: New member.
6096 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6097 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6098 (ravenscar_thread_target::task_is_currently_active): Update.
6099 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6100 Now a method.
6101 (ravenscar_thread_target::add_active_thread): Put initial thread
6102 into the m_cpu_map.
6103
6104 2020-08-07 Tom Tromey <tromey@adacore.com>
6105
6106 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6107 event_ptid.
6108
6109 2020-08-07 Tom Tromey <tromey@adacore.com>
6110
6111 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6112 runtime_initialized.
6113
6114 2020-08-07 Tom Tromey <tromey@adacore.com>
6115
6116 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6117 add_active_thread.
6118 (ravenscar_thread_target::add_active_thread): Now public.
6119 (ravenscar_inferior_created): Call add_active_thread after pushing
6120 the target.
6121
6122 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * regcache.c (ptid_regcache_map): New type.
6125 (target_ptid_regcache_map): New type.
6126 (regcaches): Change type to target_ptid_regcache_map.
6127 (get_thread_arch_aspace_regcache): Update to regcaches' new
6128 type.
6129 (regcache_thread_ptid_changed): Likewise.
6130 (registers_changed_ptid): Likewise.
6131 (regcaches_size): Likewise.
6132 (regcaches_test): Update.
6133 (regcache_thread_ptid_changed): Update.
6134 * regcache.h (regcache_up): New type.
6135 * gdbsupport/ptid.h (hash_ptid): New struct.
6136
6137 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * observable.h (thread_ptid_changed): Add parameter
6140 `process_stratum_target *`.
6141 * infrun.c (infrun_thread_ptid_changed): Add parameter
6142 `process_stratum_target *` and use it.
6143 (selftests): New namespace.
6144 (infrun_thread_ptid_changed): New function.
6145 (_initialize_infrun): Register selftest.
6146 * regcache.c (regcache_thread_ptid_changed): Add parameter
6147 `process_stratum_target *` and use it.
6148 (regcache_thread_ptid_changed): New function.
6149 (_initialize_regcache): Register selftest.
6150 * thread.c (thread_change_ptid): Pass target to
6151 thread_ptid_changed observable.
6152
6153 2020-08-06 Caroline Tice <cmtice@google.com>
6154
6155 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6156 (struct dwp_sections): Update field comments. Add loclists and
6157 rnglists fields.
6158 (struct virtual_v2_dwo_sections): Rename struct to
6159 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6160 size & offset fields for loclists and rnglists.
6161 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6162 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6163 skipping dummy type units.
6164 (create_dwp_hash_table): Update the large comment above the function to
6165 discuss Version 5 DWP files as well, with references. Update all the
6166 version checks in the function to check for version 5 as well. Add new
6167 section at the end to create dwp hash table for version 5.
6168 (create_dwp_v2_section): Rename function to
6169 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6170 Add V5 to error message text.
6171 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6172 into calls to create_dwp_v2_or_v5_section.
6173 (create_dwo_unit_in_dwp_v5): New function.
6174 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6175 check for version2; add else clause to handle version 5.
6176 (open_and_init_dwo_file): Add code to check dwarf version & only call
6177 create_debug_types_hash_table (with sections.types) if version is not 5;
6178 else call create_debug_type_hash_table, with sections.info.
6179 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6180 version 5.
6181 (dwarf2_locate_v5_dwp_sections): New function.
6182 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6183 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6184
6185 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6186
6187 * regcache.h (class regcache): Remove friend
6188 registers_changed_ptid.
6189 <regcache_thread_ptid_changed>: Remove.
6190 <regcaches>: Remove.
6191 * regcache.c (regcache::regcaches): Rename to...
6192 (regcaches): ... this. Make static.
6193 (get_thread_arch_aspace_regcache): Update.
6194 (regcache::regcache_thread_ptid_changed): Rename to...
6195 (regcache_thread_ptid_changed): ... this. Update.
6196 (class regcache_access): Remove.
6197 (regcaches_test): Update.
6198 (_initialize_regcache): Update.
6199 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6200 <forward_list>.
6201
6202 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * regcache.h (class regcache) <current_regcache>: Rename to...
6205 <regcaches>: ... this. Move doc here.
6206 * regcache.c (regcache::current_regcache) Rename to...
6207 (regcache::regcaches): ... this. Move doc to header.
6208 (get_thread_arch_aspace_regcache): Update.
6209 (regcache::regcache_thread_ptid_changed): Update.
6210 (registers_changed_ptid): Update.
6211 (class regcache_access) <current_regcache_size>: Rename to...
6212 <regcaches_size>: ... this.
6213 (current_regcache_test): Rename to...
6214 (regcaches_test): ... this.
6215 (_initialize_regcache): Update.
6216
6217 2020-08-06 Victor Collod <vcollod@nvidia.com>
6218
6219 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6220
6221 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6222
6223 * corelow.c (core_target::build_file_mappings): Don't output
6224 null pathname in warning.
6225
6226 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6229 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6230 gdb.dwarf2/dw2-single-line-discriminators.exp,
6231 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6232
6233 2020-08-05 Tom Tromey <tromey@adacore.com>
6234
6235 PR rust/26197:
6236 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6237 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6238 Fix off-by-one and type size errors in ordinary case.
6239
6240 2020-08-05 Tom de Vries <tdevries@suse.de>
6241
6242 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6243 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6244
6245 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * frame.h (frame_id_p): Return bool.
6248 (frame_id_artificial_p): Return bool.
6249 (frame_id_eq): Return bool.
6250 (has_stack_frames): Return bool.
6251 (get_selected_frame): Fix typo in comment.
6252 (get_frame_pc_if_available): Return bool.
6253 (get_frame_address_in_block_if_available): Return bool.
6254 (get_frame_func_if_available): Return bool.
6255 (read_frame_register_unsigned): Return bool.
6256 (get_frame_register_bytes): Return bool.
6257 (safe_frame_unwind_memory): Return bool.
6258 (deprecated_frame_register_read): Return bool.
6259 (frame_unwinder_is): Return bool.
6260 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6261 bool.
6262 <this_id::p>: Likewise.
6263 <prev_p>: Likewise.
6264 (frame_stash_add): Return bool.
6265 (get_frame_id): Use bool.
6266 (frame_id_build_special) Use bool.
6267 (frame_id_build_unavailable_stack): Use bool.
6268 (frame_id_build): Use bool.
6269 (frame_id_p): Return bool, use true/false instead of 1/0.
6270 (frame_id_artificial_p): Likewise.
6271 (frame_id_eq): Likewise.
6272 (frame_id_inner): Likewise.
6273 (get_frame_func_if_available): Likewise.
6274 (read_frame_register_unsigned): Likewise.
6275 (deprecated_frame_register_read): Likewise.
6276 (get_frame_register_bytes): Likewise.
6277 (has_stack_frames): Likewise.
6278 (inside_main_func): Likewise.
6279 (inside_entry_func): Likewise.
6280 (get_frame_pc_if_available): Likewise.
6281 (get_frame_address_in_block_if_available): Likewise.
6282 (frame_unwinder_is): Likewise.
6283 (safe_frame_unwind_memory): Likewise.
6284 (frame_unwind_arch): Likewise.
6285
6286 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6289 type to cached_copy_status.
6290 (fprintf_frame): Adjust.
6291 (get_frame_func_if_available): Adjust.
6292 (frame_cleanup_after_sniffer): Adjust.
6293
6294 2020-08-04 Mark Wielaard <mark@klomp.org>
6295
6296 * MAINTAINERS (Write After Approval): Update email address.
6297
6298 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6301 dynamic_prop::const_val.
6302
6303 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6306 dynamic_prop::kind.
6307
6308 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6309
6310 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6311
6312 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6313
6314 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6315
6316 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6317 Jose E. Marchesi <jose.marchesi@oracle.com>
6318
6319 * configure.tgt: Add entry for bpf-*-*.
6320 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6321 (ALLDEPFILES): Add bpf-tdep.c.
6322 * bpf-tdep.c: New file.
6323 * MAINTAINERS: Add bpf target and maintainer.
6324 * NEWS: Mention the support for the new target.
6325
6326 2020-08-04 Tom de Vries <tdevries@suse.de>
6327
6328 PR symtab/23270
6329 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6330 Error.
6331
6332 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6333
6334 * syscalls/freebsd.xml: Regenerate.
6335
6336 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6337
6338 * syscalls/update-freebsd.sh: Fix usage and year range.
6339
6340 2020-08-03 Tom de Vries <tdevries@suse.de>
6341
6342 PR symtab/26333
6343 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6344 DW_LNE_lo_user/DW_LNE_hi_user range.
6345
6346 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 PR ada/26318
6349 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6350 kind.
6351
6352 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6353
6354 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6355
6356 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6357
6358 * breakpoint.c (set_breakpoint_condition): Update the condition
6359 expressions after checking that the input condition string parses
6360 successfully and does not contain junk at the end.
6361
6362 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6363
6364 * breakpoint.c (set_breakpoint_condition): Update the
6365 condition string after parsing the new condition successfully.
6366
6367 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6368
6369 * proc-api.c (_STRUCTURED_PROC): Don't define.
6370 * proc-events.c: Likewise.
6371 * proc-flags.c: Likewise.
6372 * proc-why.c: Likewise.
6373 * procfs.c: Likewise.
6374
6375 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6376 * configure, config.in: Regenerate.
6377
6378 2020-07-30 Tom de Vries <tdevries@suse.de>
6379
6380 PR build/26320
6381 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6382 m_red/m_green/m_blue in a union.
6383
6384 2020-07-29 Tom de Vries <tdevries@suse.de>
6385
6386 PR tdep/26280
6387 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6388
6389 2020-07-28 Tom Tromey <tromey@adacore.com>
6390
6391 PR symtab/26270:
6392 * symtab.h (find_pc_partial_function_sym): Declare.
6393 * cli/cli-cmds.c (disassemble_command): Use
6394 find_pc_partial_function_sym. Check asm_demangle.
6395 * blockframe.c (cache_pc_function_sym): New global.
6396 (cache_pc_function_name): Remove.
6397 (clear_pc_function_cache): Update.
6398 (find_pc_partial_function_sym): New function, from
6399 find_pc_partial_function.
6400 (find_pc_partial_function): Rewrite using
6401 find_pc_partial_function_sym.
6402
6403 2020-07-28 Tom Tromey <tromey@adacore.com>
6404
6405 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6406 help. Add usage.
6407
6408 2020-07-28 Tom Tromey <tromey@adacore.com>
6409
6410 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6411 <DW_OP_GNU_variable_value>: Cast to address type.
6412
6413 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6414
6415 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6416 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6417 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6418 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6419 (nbsd_get_siginfo_type): New.
6420 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6421 (_initialize_nbsd_tdep): New.
6422
6423 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6424
6425 PR binutils/26301
6426 * configure: Regenerated.
6427
6428 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6429
6430 PR binutils/26301
6431 * configure: Regenerated.
6432
6433 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6434
6435 * python/py-frame.c: Remove 'user-regs.h' include.
6436 (frapy_read_register): Rewrite to make use of
6437 gdbpy_parse_register_id.
6438 * python/py-registers.c (gdbpy_parse_register_id): New function,
6439 moved here from python/py-unwind.c. Updated the return type, and
6440 also accepts register descriptor objects.
6441 * python/py-unwind.c: Remove 'user-regs.h' include.
6442 (pyuw_parse_register_id): Moved to python/py-registers.c.
6443 (unwind_infopy_add_saved_register): Update to use
6444 gdbpy_parse_register_id.
6445 (pending_framepy_read_register): Likewise.
6446 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6447
6448 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6449
6450 * python/py-registers.c: Add 'user-regs.h' include.
6451 (register_descriptor_iter_find): New function.
6452 (register_descriptor_iterator_object_methods): New static global
6453 methods array.
6454 (register_descriptor_iterator_object_type): Add pointer to methods
6455 array.
6456
6457 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6458
6459 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6460 for all architectures on FreeBSD 11.3 and later.
6461
6462 2020-07-27 Tom Tromey <tromey@adacore.com>
6463
6464 * gcore.h (load_corefile): Don't declare.
6465
6466 2020-07-27 Tom de Vries <tdevries@suse.de>
6467
6468 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6469 * config.in: Regenerate.
6470 * configure: Regenerate.
6471
6472 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6473
6474 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6475 ws2tcpip.h. When checking whether socklen_t type is defined, use
6476 ws2tcpip.h if it is available and sys/socket.h isn't.
6477 * configure: Regenerate.
6478 * config.in: Regenerate.
6479
6480 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6481
6482 PR fortran/23051
6483 PR fortran/26139
6484 * valops.c (value_ind): Pass address to
6485 readjust_indirect_value_type.
6486 * value.c (readjust_indirect_value_type): Make parameter
6487 non-const, and add extra address parameter. Resolve original type
6488 before using it.
6489 * value.h (readjust_indirect_value_type): Update function
6490 signature and comment.
6491
6492 2020-07-25 Tom de Vries <tdevries@suse.de>
6493
6494 PR symtab/26243
6495 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6496 entries.
6497
6498 2020-07-24 Aaron Merey <amerey@redhat.com>
6499
6500 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6501 * configure: Rebuild.
6502
6503 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6504
6505 PR corefiles/26294
6506 * corelow.c (_initialize_corelow): Add period to help text
6507 for "maintenance print core-file-backed-mappings".
6508
6509 2020-07-23 Pedro Alves <pedro@palves.net>
6510
6511 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6512 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6513 meanwhile.
6514 * frame.c (frame_cache_generation, get_frame_cache_generation):
6515 New.
6516 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6517 (get_prev_frame_if_no_cycle): On exception, don't touch
6518 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6519 * frame.h (get_frame_cache_generation): Declare.
6520
6521 2020-07-23 Tom de Vries <tdevries@suse.de>
6522
6523 PR tui/26282
6524 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6525 New default constructor.
6526
6527 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6528
6529 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6530 exclude non-statement entries.
6531
6532 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6533
6534 * NEWS (New commands): Mention new command
6535 "maintenance print core-file-backed-mappings".
6536
6537 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6538
6539 * corelow.c (gdbcmd.h): Include.
6540 (core_target::info_proc_mappings): New method.
6541 (get_current_core_target): New function.
6542 (maintenance_print_core_file_backed_mappings): New function.
6543 (_initialize_corelow): Add core-file-backed-mappings to
6544 "maint print" commands.
6545
6546 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6547
6548 * linux-tdep.c (dump_note_entry_p): New function.
6549 (linux_dump_mapping_p_ftype): New typedef.
6550 (linux_find_memory_regions_full): Add new parameter,
6551 should_dump_mapping_p.
6552 (linux_find_memory_regions): Adjust call to
6553 linux_find_memory_regions_full.
6554 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6555 call to linux_find_memory_regions_full.
6556
6557 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6558
6559 * corelow.c (solist.h, unordered_map): Include.
6560 (class core_target): Add field m_core_file_mappings and
6561 method build_file_mappings.
6562 (core_target::core_target): Call build_file_mappings.
6563 (core_target::~core_target): Free memory associated with
6564 m_core_file_mappings.
6565 (core_target::build_file_mappings): New method.
6566 (core_target::xfer_partial): Use m_core_file_mappings
6567 for memory transfers.
6568 * linux-tdep.c (linux_read_core_file_mappings): New
6569 function.
6570 (linux_core_info_proc_mappings): Rewrite to use
6571 linux_read_core_file_mappings.
6572 (linux_init_abi): Register linux_read_core_file_mappings.
6573
6574 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6575
6576 * arch-utils.c (default_read_core_file_mappings): New function.
6577 * arch-utils.c (default_read_core_file_mappings): Declare.
6578 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6579 * gdbarch.h, gdbarch.c: Regenerate.
6580
6581 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6582
6583 PR corefiles/25631
6584 * corelow.c (core_target:xfer_partial): Revise
6585 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6586 case after first checking the stratum beneath the core
6587 target.
6588 (has_all_memory): Return true.
6589 * target.c (raw_memory_xfer_partial): Revise comment
6590 regarding use of has_all_memory.
6591
6592 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6593
6594 * exec.h (section_table_xfer_memory): Revise declaration,
6595 replacing section name parameter with an optional callback
6596 predicate.
6597 * exec.c (section_table_xfer_memory): Likewise.
6598 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6599 of section_table_xfer_memory.
6600
6601 2020-07-22 Tom Tromey <tromey@adacore.com>
6602
6603 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6604 lookup_symbol_search_name.
6605
6606 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6609 redundant local variable.
6610 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6611 reference, not pointer, update code accordingly.
6612
6613 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6614 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6615
6616 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6617 * jit.c (jit_breakpoint_re_set_internal): Use the
6618 `skip_jit_symbol_lookup` field.
6619
6620 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6621 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6622
6623 * jit.c (jit_read_descriptor): Define the descriptor address once,
6624 use twice.
6625 (jit_breakpoint_deleted): Move the declaration of the loop variable
6626 `iter` into the loop header.
6627 (jit_breakpoint_re_set_internal): Move the declaration of the local
6628 variable `objf_data` to the first point of definition.
6629 (jit_event_handler): Move the declaration of local variables
6630 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6631 Rename `objf` to `jited`.
6632
6633 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6636 Remove.
6637 * jit.c (get_jiter_objfile_data): Update.
6638
6639 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6640 Simon Marchi <simon.marchi@polymtl.ca>
6641
6642 * jit.c (struct jit_program_space_data): Remove.
6643 (jit_program_space_key): Remove.
6644 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6645 stuff.
6646 (get_jit_program_space_data): Remove.
6647 (jit_breakpoint_deleted): Iterate on all of the program space's
6648 objfiles.
6649 (jit_inferior_init): Likewise.
6650 (jit_breakpoint_re_set_internal): Likewise. Also change return
6651 type to void.
6652 (jit_breakpoint_re_set): Pass current_program_space to
6653 jit_breakpoint_re_set_internal.
6654
6655 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6656
6657 * jit.h (struct jiter_objfile_data) <cached_code_address,
6658 jit_breakpoint>: Move to here from ...
6659 * jit.c (jit_program_space_data): ... here.
6660 (jiter_objfile_data::~jiter_objfile_data): Update.
6661 (jit_breakpoint_deleted): Update.
6662 (jit_breakpoint_re_set_internal): Update.
6663
6664 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6665
6666 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6667 checks.
6668 (jit_read_descriptor): Remove NULL check.
6669 (jit_event_handler): Add an assertion.
6670
6671 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6672
6673 * jit.h (struct jit_objfile_data): Split into...
6674 (struct jiter_objfile_data): ... this ...
6675 (struct jited_objfile_data): ... and this.
6676 * objfiles.h (struct objfile) <jit_data>: Remove.
6677 <jiter_data, jited_data>: New fields.
6678 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6679 (jiter_objfile_data::~jiter_objfile_data): ... this.
6680 (get_jit_objfile_data): Rename to ...
6681 (get_jiter_objfile_data): ... this.
6682 (add_objfile_entry): Update.
6683 (jit_read_descriptor): Use get_jiter_objfile_data.
6684 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6685 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6686 (jit_inferior_exit_hook): Use objfile's jited_data field.
6687
6688 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6689
6690 * jit.h: Forward-declare `struct minimal_symbol`.
6691 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6692 constructor, destructor, and an objfile* field.
6693 * jit.c (jit_objfile_data): Remove.
6694 (struct jit_objfile_data): Migrate from here to jit.h.
6695 (jit_objfile_data::~jit_objfile_data): New destructor
6696 implementation with code moved from free_objfile_data.
6697 (free_objfile_data): Delete.
6698 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6699 (jit_find_objf_with_entry_addr): Ditto.
6700 (jit_inferior_exit_hook): Ditto.
6701 (_initialize_jit): Remove the call to
6702 register_objfile_data_with_cleanup.
6703 * objfiles.h (struct objfile) <jit_data>: New field.
6704
6705 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6706
6707 * jit.h: Forward-declare `struct objfile`.
6708 (jit_event_handler): Add a second parameter, the JITer objfile.
6709 * jit.c (jit_read_descriptor): Change the signature to take the
6710 JITer objfile as an argument instead of the jit_program_space_data.
6711 (jit_inferior_init): Update the call to jit_read_descriptor.
6712 (jit_event_handler): Use the new JITer objfile argument when calling
6713 jit_read_descriptor.
6714 * breakpoint.c (handle_jit_event): Update the call to
6715 jit_event_handler to pass the JITer objfile.
6716
6717 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6718
6719 * gdbarch.c: Regenerate.
6720 * gdbarch.h: Regenerate.
6721 * gdbarch.sh (handle_segmentation_fault): Remove method.
6722 * infrun.c (handle_segmentation_fault): Remove.
6723 (print_signal_received_reason): Remove call to
6724 handle_segmentation_fault.
6725
6726 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6727
6728 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6729 Rename to sparc64_linux_report_signal_info and add siggnal
6730 argument.
6731 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6732 instead of sparc64_linux_handle_segmentation_fault.
6733
6734 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6735
6736 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6737 i386_linux_report_signal_info instead of
6738 i386_linux_handle_segmentation_fault.
6739 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6740 to i386_linux_report_signal_info and add siggnal argument.
6741 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6742 of i386_linux_handle_segmentation_fault.
6743 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6744 to i386_linux_report_signal_info and add siggnal argument.
6745
6746 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6747
6748 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6749 hook if present.
6750
6751 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6752
6753 * gdbarch.c: Regenerate.
6754 * gdbarch.h: Regenerate.
6755 * gdbarch.sh (report_signal_info): New method.
6756 * infrun.c (print_signal_received_reason): Invoke gdbarch
6757 report_signal_info hook if present.
6758
6759 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * python/py-registers.c : Add 'unordered_map' include.
6762 (gdbpy_new_reggroup): Renamed to...
6763 (gdbpy_get_reggroup): ...this. Update to only create register
6764 group descriptors when needed.
6765 (gdbpy_reggroup_iter_next): Update.
6766
6767 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * python/py-registers.c (gdbpy_register_object_data): New static
6770 global.
6771 (gdbpy_register_object_data_init): New function.
6772 (gdbpy_new_register_descriptor): Renamed to...
6773 (gdbpy_get_register_descriptor): ...this, and update to reuse
6774 existing register descriptors where possible.
6775 (gdbpy_register_descriptor_iter_next): Update.
6776 (gdbpy_initialize_registers): Register new gdbarch data.
6777
6778 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * linux-nat.c (stopped_pids): Make static.
6781
6782 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6783
6784 PR ada/26235
6785 * gdbtypes.c (ada_discrete_type_low_bound,
6786 ada_discrete_type_high_bound): Handle undefined bounds.
6787
6788 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6789
6790 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6791 declaration.
6792 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6793 function.
6794
6795 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6796
6797 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6798 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6799 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6800 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6801 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6802 method.
6803
6804 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6805
6806 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6807 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6808 which are deprecated in Guile 3.0.
6809 * configure.ac (try_guile_versions): Add "guile-3.0".
6810 * configure (try_guile_versions): Regenerate.
6811 * NEWS: Update entry.
6812
6813 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6814 Doug Evans <dje@google.com>
6815
6816 PR gdb/21104
6817 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6818 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6819 USING_GUILE_BEFORE_2_2.
6820 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6821 Change type to 'scm_t_port_type *'.
6822 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6823 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6824 parameter and honor it. Update callers.
6825 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6826 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6827 functions.
6828 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6829 USING_GUILE_BEFORE_2_2.
6830 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6831 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6832 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6833 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6834 and 'SCM_PORT_TYPE'.
6835 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6836 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6837 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6838 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6839 [!USING_GUILE_BEFORE_2_2]: New functions.
6840 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6841 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6842 'gdbscm_memory_port_read'.
6843 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6844 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6845 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6846 function.
6847 (ioscm_init_memory_port): Remove.
6848 (ioscm_init_memory_port_stream): New function
6849 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6850 function.
6851 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6852 Return scm_from_uint (0).
6853 (gdbscm_set_memory_port_read_buffer_size_x)
6854 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6855 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6856 Return scm_from_uint (0).
6857 (gdbscm_set_memory_port_write_buffer_size_x)
6858 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6859 * configure.ac (try_guile_versions): Add "guile-2.2".
6860 * configure: Regenerate.
6861 * NEWS: Add entry.
6862
6863 2020-07-18 Tom Tromey <tom@tromey.com>
6864
6865 * linux-nat.c (linux_multi_process): Remove.
6866 (linux_nat_target::supports_multi_process): Return true.
6867
6868 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6871 (riscv_lookup_target_description): Return pointer out of
6872 unique_ptr.
6873 * target-descriptions.c (allocate_target_description): Add
6874 comment.
6875 (target_desc_deleter::operator()): Likewise.
6876 * target-descriptions.h (struct target_desc_deleter): Moved to
6877 gdbsupport/tdesc.h.
6878 (target_desc_up): Likewise.
6879
6880 2020-07-17 Tom Tromey <tromey@adacore.com>
6881
6882 * linux-nat.c (linux_nat_target::supports_non_stop)
6883 (linux_nat_target::always_non_stop_p): Use "true".
6884 (linux_nat_target::supports_disable_randomization): Use "true" and
6885 "false".
6886
6887 2020-07-16 Caroline Tice <cmtice@google.com>
6888
6889 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6890 (RNGLIST_HEADER_SIZE64): New constant definition.
6891 (struct dwop_section_names): Add rnglists_dwo.
6892 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6893 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6894 (struct dwo_sections): Add rnglists field.
6895 (read_attribut_reprocess): Add tag parameter.
6896 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6897 (cu_debug_rnglists_section): New function (decl & definition).
6898 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6899 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6900 die whose range is being checked; get rnglist section from
6901 cu_debug_rnglists_section, to get from either objfile or dwo file as
6902 appropriate. Add cases for DW_RLE_base_addressx,
6903 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6904 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6905 test inside if-condition and updating complaint message.
6906 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6907 dwarf2_rnglists_process.
6908 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6909 dwarf2_ranges_process.
6910 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6911 need_ranges_base and update comment appropriately. Also pass die tag
6912 to dwarf2_ranges_read.
6913 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6914 need_ranges_base and update comment appropriately. Also pass die tag
6915 to dwarf2_ranges_process.
6916 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6917 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6918 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6919 need_ranges_base and update comment appropriately. Also pass die tag
6920 to read_attribute_reprocess and dwarf2_ranges_read.
6921 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6922 and update function comment appropriately.
6923 (read_loclist_index): Call read_loclists_rnglists_header instead of
6924 read_loclist_header.
6925 (read_rnglist_index): New function.
6926 (read_attribute_reprocess): Add tag parameter. Add code for
6927 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6928 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6929
6930 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6933 being resolved.
6934
6935 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6936
6937 * arch-utils.c (show_architecture): Update formatting of messages.
6938
6939 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * gdbtypes.h (struct type) <bounds>: Handle array and string
6942 types.
6943 * ada-lang.c (assign_aggregate): Use type::bounds on
6944 array/string type.
6945 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6946 * c-varobj.c (c_number_of_children): Likewise.
6947 (c_describe_child): Likewise.
6948 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6949 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6950 (f_type_print_base): Likewise.
6951 * f-valprint.c (f77_array_offset_tbl): Likewise.
6952 (f77_get_upperbound): Likewise.
6953 (f77_print_array_1): Likewise.
6954 * guile/scm-type.c (gdbscm_type_range): Likewise.
6955 * m2-typeprint.c (m2_array): Likewise.
6956 (m2_is_long_set_of_type): Likewise.
6957 * m2-valprint.c (get_long_set_bounds): Likewise.
6958 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6959 * python/py-type.c (typy_range): Likewise.
6960 * rust-lang.c (rust_internal_print_type): Likewise.
6961 * type-stack.c (type_stack::follow_types): Likewise.
6962 * valarith.c (value_subscripted_rvalue): Likewise.
6963 * valops.c (value_cast): Likewise.
6964
6965 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6968 callers to use the equivalent accessor methods.
6969
6970 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6971
6972 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6973 (struct type) <bit_stride>: New method.
6974 (TYPE_BIT_STRIDE): Remove.
6975 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6976
6977 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6980 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6981 callers to use the equivalent accessor methods instead.
6982
6983 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6986 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6987 callers to use the equivalent accessor methods instead.
6988
6989 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6992 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6993 to use dynamic_prop::kind.
6994
6995 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6998 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6999 to get the bound property's kind and check against
7000 PROP_UNDEFINED.
7001
7002 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7005 all callers to use type::range_bounds followed by
7006 dynamic_prop::{low,high}.
7007
7008 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7009
7010 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7011 const_val, set_const_val, baton, set_locexpr, set_loclist,
7012 set_addr_offset, variant_parts, set_variant_parts,
7013 original_type, set_original_type>: New methods.
7014 <kind>: Rename to...
7015 <m_kind>: ... this. Update all users to use the new methods
7016 instead.
7017 <data>: Rename to...
7018 <m_data>: ... this. Update all users to use the new methods
7019 instead.
7020
7021 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7022
7023 * gdbtypes.c (get_discrete_bounds): Return failure if
7024 the range type's bounds are not both defined and constant
7025 values.
7026 (get_array_bounds): Update comment. Remove undefined bound check.
7027
7028 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7029
7030 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7031 the type::bounds method directly.
7032
7033 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7036 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7037 are used to set the range type's bounds to use set_bounds.
7038
7039 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7040
7041 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7042
7043 2020-07-10 Pedro Alves <pedro@palves.net>
7044
7045 * gdbthread.h (inferior_ref): Define.
7046 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7047 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7048 * thread.c
7049 (scoped_restore_current_thread::restore):
7050 Adjust to gdb::ref_ptr.
7051 (scoped_restore_current_thread::~scoped_restore_current_thread):
7052 Remove manual decref handling.
7053 (scoped_restore_current_thread::scoped_restore_current_thread):
7054 Adjust to use
7055 inferior_ref::new_reference/thread_info_ref::new_reference.
7056 Incref the thread before calling get_frame_id instead of after.
7057 Let TARGET_CLOSE_ERROR propagate.
7058
7059 2020-07-10 Pedro Alves <pedro@palves.net>
7060
7061 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7062 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7063 NOT_AVAILABLE_ERROR.
7064 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7065 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7066
7067 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7068 Pedro Alves <pedro@palves.net>
7069
7070 PR gdb/26199
7071 * infrun.c (threads_are_resumed_pending_p): Delete.
7072 (do_target_wait): Remove threads_are_executing and
7073 threads_are_resumed_pending_p checks from the inferior_matches
7074 lambda. Update comments.
7075
7076 2020-07-10 Pedro Alves <pedro@palves.net>
7077
7078 PR gdb/26199
7079 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7080 executing threads.
7081
7082 2020-07-10 Pedro Alves <pedro@palves.net>
7083
7084 PR gdb/26199
7085 * infrun.c (handle_no_resumed): Handle multiple targets.
7086
7087 2020-07-10 Pedro Alves <pedro@palves.net>
7088
7089 PR gdb/26199
7090 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7091 target_is_async_p.
7092
7093 2020-07-10 Pedro Alves <pedro@palves.net>
7094
7095 PR gdb/26199
7096 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7097 threads, not all threads.
7098
7099 2020-07-10 Pedro Alves <pedro@palves.net>
7100
7101 PR gdb/26199
7102 * remote.c (remote_target::open_1): Pass remote target pointer as
7103 data to create_async_event_handler.
7104 (remote_async_inferior_event_handler): Mark async event handler
7105 before returning if the remote target still has either pending
7106 events or unacknowledged notifications.
7107
7108 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7109
7110 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7111 declaration.
7112 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7113 function.
7114
7115 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7116
7117 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7118 inferior_ptid.
7119
7120 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7121
7122 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7123 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7124 AT_FREEBSD_PS_STRINGS.
7125
7126 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7127
7128 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7129 of debugfile path on Windows.
7130
7131 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7132
7133 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7134 argument to 'data'.
7135
7136 2020-07-08 Tom Tromey <tromey@adacore.com>
7137
7138 * ada-lang.c (ada_exception_message_1): Use read_memory.
7139
7140 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7141
7142 PR python/22748
7143 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7144 special handling for inline frames.
7145 * findvar.c (value_of_register_lazy): Skip inline frames when
7146 creating lazy register values.
7147 * frame.c (frame_id_computed_p): Delete definition.
7148 * frame.h (frame_id_computed_p): Delete declaration.
7149
7150 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * NEWS: Mention additions to Python API.
7153 * python/py-arch.c (archpy_register_groups): New function.
7154 (arch_object_methods): Add 'register_groups' method.
7155 * python/py-registers.c (reggroup_iterator_object): New struct.
7156 (reggroup_object): New struct.
7157 (gdbpy_new_reggroup): New function.
7158 (gdbpy_reggroup_to_string): New function.
7159 (gdbpy_reggroup_name): New function.
7160 (gdbpy_reggroup_iter): New function.
7161 (gdbpy_reggroup_iter_next): New function.
7162 (gdbpy_new_reggroup_iterator): New function
7163 (gdbpy_initialize_registers): Register new types.
7164 (reggroup_iterator_object_type): Define new Python type.
7165 (gdbpy_reggroup_getset): New static global.
7166 (reggroup_object_type): Define new Python type.
7167 * python/python-internal.h
7168
7169 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7170
7171 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7172 * python/py-arch.c (archpy_registers): New function.
7173 (arch_object_methods): Add 'registers' method.
7174 * python/py-registers.c: New file.
7175 * python/python-internal.h
7176 (gdbpy_new_register_descriptor_iterator): Declare.
7177 (gdbpy_initialize_registers): Declare.
7178 * python/python.c (do_start_initialization): Call
7179 gdbpy_initialize_registers.
7180 * NEWS: Mention additions to the Python API.
7181
7182 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * NEWS: Mention new Python API method.
7185 * python/py-unwind.c (pending_framepy_architecture): New function.
7186 (pending_frame_object_methods): Add architecture method.
7187
7188 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7189
7190 * gdbarch.c: Regenerate.
7191 * gdbarch.h: Regenerate.
7192 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7193 (gdbarch_data): Use internal_error for the case where
7194 deprecated_set_gdbarch_data was originally needed.
7195 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7196 and use passed in obstack.
7197 (libunwind_frame_set_descr): Should no longer get back NULL from
7198 gdbarch_data.
7199 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7200 type.
7201 * user-regs.c (user_regs_init): Update parameters, and use passed
7202 in obstack.
7203 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7204 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7205
7206 2020-07-06 Tom de Vries <tdevries@suse.de>
7207
7208 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7209 End-Of-Sequence in lte_is_less_than.
7210 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7211 "gdb: Don't reorder line table entries too much when sorting".
7212
7213 2020-07-06 Tom de Vries <tdevries@suse.de>
7214
7215 PR tui/26205
7216 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7217
7218 2020-07-05 Tom de Vries <tdevries@suse.de>
7219
7220 PR build/26187
7221 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7222 std::uncaught_exceptions instead of deprecated
7223 std::uncaught_exception.
7224
7225 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7226
7227 * macroexp.h (macro_stringify): Return
7228 gdb::unique_xmalloc_ptr<char>.
7229 * macroexp.c (macro_stringify): Likewise.
7230 * macrotab.c (fixup_definition): Update.
7231
7232 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7233
7234 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7235 (lex_one_token): Update.
7236 * macroexp.c (struct macro_buffer) <release>: Return
7237 gdb::unique_xmalloc_ptr<char>.
7238 (macro_stringify): Update.
7239 (macro_expand): Update.
7240 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7241 * macroexp.h (macro_expand_next): Likewise.
7242
7243 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7244
7245 * macroexp.h (macro_lookup_ftype): Remove.
7246 (macro_expand, macro_expand_once, macro_expand_next): Remove
7247 lookup function parameters, add scope parameter.
7248 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7249 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7250 * macroscope.h (standard_macro_lookup): Change parameter type
7251 to macro_scope.
7252 * macroscope.c (standard_macro_lookup): Likewise.
7253 * c-exp.y (lex_one_token): Update.
7254 * macrocmd.c (macro_expand_command): Likewise.
7255 (macro_expand_once_command): Likewise.
7256
7257 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7258
7259 * inf-loop.c (inferior_event_handler): Remove client_data param.
7260 * inf-loop.h (inferior_event_handler): Likewise.
7261 * infcmd.c (step_1): Adjust.
7262 * infrun.c (proceed): Adjust.
7263 (fetch_inferior_event): Remove client_data param.
7264 (infrun_async_inferior_event_handler): Adjust.
7265 * infrun.h (fetch_inferior_event): Remove `void *` param.
7266 * linux-nat.c (handle_target_event): Adjust.
7267 * record-btrace.c (record_btrace_handle_async_inferior_event):
7268 Adjust.
7269 * record-full.c (record_full_async_inferior_event_handler):
7270 Adjust.
7271 * remote.c (remote_async_inferior_event_handler): Adjust.
7272
7273 2020-07-01 Tom Tromey <tom@tromey.com>
7274
7275 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7276 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7277
7278 2020-07-01 Tom Tromey <tom@tromey.com>
7279
7280 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7281 tui_gen_win_info.
7282 (tui_win_info::make_window): Merge with
7283 tui_gen_win_info::make_window.
7284 (tui_win_info::make_visible): Move from tui_gen_win_info.
7285 * tui/tui-win.c (tui_win_info::max_width): Move from
7286 tui_gen_win_info.
7287 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7288 type.
7289 <window_factory>: Likewise.
7290 * tui/tui-layout.c (tui_win_info::resize): Move from
7291 tui_gen_win_info.
7292 (make_standard_window): Change return type.
7293 (get_locator_window, tui_get_window_by_name): Likewise.
7294 (tui_layout_window::apply): Remove a cast.
7295 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7296 (struct tui_win_info): Merge with tui_gen_win_info.
7297 (struct tui_gen_win_info): Remove.
7298
7299 2020-07-01 Tom Tromey <tom@tromey.com>
7300
7301 * tui/tui-stack.h (struct tui_locator_window): Derive from
7302 tui_win_info.
7303 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7304 <can_box>: New method.
7305
7306 2020-07-01 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7309
7310 2020-07-01 Tom Tromey <tom@tromey.com>
7311
7312 * tui/tui-regs.c (tui_data_window::display_registers_from)
7313 (tui_data_window::display_registers_from)
7314 (tui_data_window::first_data_item_displayed)
7315 (tui_data_window::delete_data_content_windows): Update.
7316 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7317 Remove.
7318 (tui_data_window::check_register_values): Update.
7319 (tui_data_item_window::rerender): Add parameters. Update.
7320 (tui_data_item_window::refresh_window): Remove.
7321 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7322 virtual.
7323 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7324 tui_gen_win_info.
7325 <refresh_window, max_height, min_height>: Remove.
7326 <rerender>: Add parameters.
7327 <x, y, visible>: New members.
7328 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7329 <m_item_width>: New member.
7330
7331 2020-07-01 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-regs.c (tui_data_window::show_register_group)
7334 (tui_data_window::check_register_values): Update.
7335 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7336 from item_no.
7337
7338 2020-07-01 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7341 useless "if".
7342
7343 2020-07-01 Tom Tromey <tom@tromey.com>
7344
7345 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7346 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7347
7348 2020-07-01 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7351 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7352 (struct tui_line_or_address): Move from tui-data.h.
7353 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7354 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7355 (tui_cmd_window, tui_source_window_base, tui_source_window)
7356 (tui_disasm_window): Don't declare.
7357 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7358 to tui-winsource.h.
7359 (SINGLE_KEY): Move to tui-stack.c.
7360
7361 2020-07-01 Tom Tromey <tom@tromey.com>
7362
7363 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7364 std::string.
7365 * tui/tui-regs.c (class tab_expansion_file): New.
7366 (tab_expansion_file::write): New method.
7367 (tui_register_format): Change return type. Use
7368 tab_expansion_file.
7369 (tui_get_register, tui_data_window::display_registers_from)
7370 (tui_data_item_window::rerender): Update.
7371 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7372 * tui/tui-io.c (tui_expand_tabs): Remove.
7373
7374 2020-07-01 Tom Tromey <tom@tromey.com>
7375
7376 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7377
7378 2020-07-01 Fangrui Song <maskray@google.com>
7379
7380 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7381
7382 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7383
7384 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7385 forms for DW_AT_associated and DW_AT_allocated attributes,
7386 which is already checked in function attr_to_dynamic_prop.
7387
7388 2020-06-30 Tom Tromey <tromey@adacore.com>
7389
7390 * dwarf2/read.c (quirk_rust_enum): Correctly call
7391 alloc_rust_variant for default-less enum.
7392
7393 2020-06-30 Tom Tromey <tromey@adacore.com>
7394
7395 PR build/26183:
7396 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7397 gdb::to_string.
7398
7399 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7400
7401 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7402 * gdbarch.h: Re-generate.
7403
7404 2020-06-28 Tom Tromey <tom@tromey.com>
7405
7406 * command.h (cmd_types): Remove.
7407 (cmd_type): Don't declare.
7408 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7409 typedef.
7410 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7411 * cli/cli-decode.c (cmd_type): Remove.
7412
7413 2020-06-27 Pedro Alves <palves@redhat.com>
7414
7415 * fork-child.c (prefork_hook): Adjust.
7416 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7417 Delete.
7418 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7419 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7420 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7421 Remove declarations.
7422 (struct inferior) <set_tty, tty>: New methods.
7423 (struct inferior) <terminal>: Rename to ...
7424 (struct inferior) <m_terminal>: ... this and make private.
7425 * main.c (captured_main_1): Adjust.
7426 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7427 (mi_cmd_inferior_tty_show): Adjust.
7428 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7429 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7430
7431 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7432
7433 * configure.ac: Add --enable-libctf: handle --disable-static
7434 properly.
7435 * acinclude.m4: sinclude ../config/enable.m4.
7436 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7437 (LIBCTF): Substitute in.
7438 (CTF_DEPS): New, likewise.
7439 (CLIBS): libctf needs symbols from libbfd: move earlier.
7440 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7441 flags.
7442 * ctfread.c: Surround in ENABLE_LIBCTF.
7443 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7444 * configure: Regenerate.
7445 * config.in: Likewise.
7446
7447 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7448
7449 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7450
7451 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * inferior.h (struct inferior) <terminal>: Change type to
7454 gdb::unique_xmalloc_ptr<char>.
7455 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7456 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7457 field, adjust to unique pointer.
7458 (get_inferior_io_terminal): Adjust to unique pointer.
7459
7460 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7461
7462 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7463 registers, not just the known core set of registers.
7464
7465 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7466
7467 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7468 fflags, frm, and fcsr registers.
7469 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7470 restore groups.
7471 (riscv_tdesc_unknown_reg): New function.
7472 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7473 tdesc_use_registers.
7474 * riscv-tdep.h (struct gdbarch_tdep): Add
7475 unknown_csrs_first_regnum, unknown_csrs_count,
7476 duplicate_fflags_regnum, duplicate_frm_regnum, and
7477 duplicate_fcsr_regnum fields.
7478
7479 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7480
7481 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7482 callback, use the callback (when not null) to help number unknown
7483 registers.
7484 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7485 (tdesc_use_registers): Add extra parameter to declaration.
7486
7487 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7490 in the file.
7491 (class riscv_pending_register_alias): Likewise.
7492 (riscv_register_feature::register_info): Change 'required_p' field
7493 to 'required', and change its type. Add 'check' member function.
7494 (riscv_register_feature::register_info::check): Define new member
7495 function.
7496 (riscv_xreg_feature): Change initialisation of 'required' field.
7497 (riscv_freg_feature): Likewise.
7498 (riscv_virtual_feature): Likewise.
7499 (riscv_csr_feature): Likewise.
7500 (riscv_check_tdesc_feature): Take extra parameter, the csr
7501 tdesc_feature, rewrite the function to use the new
7502 riscv_register_feature::register_info::check function.
7503 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7504
7505 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7506
7507 * features/Makefile: Remove all references to the deleted files
7508 below.
7509 * features/riscv/32bit-csr.c: Deleted.
7510 * features/riscv/32bit-csr.xml: Deleted.
7511 * features/riscv/64bit-csr.c: Deleted.
7512 * features/riscv/64bit-csr.xml: Deleted.
7513 * features/riscv/rebuild-csr-xml.sh: Deleted.
7514
7515 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7516
7517 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7518 whitespace error for declaration of names member variable.
7519 (struct riscv_register_feature): Add new prefer_first_name member
7520 variable, and fix whitespace error in declaration of registers.
7521 (riscv_xreg_feature): Initialize prefer_first_name field.
7522 (riscv_freg_feature): Likewise.
7523 (riscv_virtual_feature): Likewise.
7524 (riscv_csr_feature): Likewise.
7525 (riscv_register_name): Expand on comments. Remove register name
7526 modifications for CSR and virtual registers.
7527
7528 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7531 errors.
7532
7533 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7534
7535 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7536 riscv-opc.h.
7537 (class riscv_pending_register_alias): New class.
7538 (riscv_check_tdesc_feature): Take vector of pending aliases and
7539 populate it as appropriate.
7540 (riscv_setup_register_aliases): Delete.
7541 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7542 to riscv_check_tdesc_feature in all cases. Use the vector to
7543 create the register aliases.
7544
7545 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7546
7547 * sol2-tdep.c (sol2_static_transform_name): Remove.
7548 (sol2_init_abi): Don't register it.
7549 * gdbarch.sh (static_transform_name): Remove.
7550 * gdbarch.c, gdbarch.h: Regenerate.
7551
7552 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7553 gdbarch_static_transform_name.
7554 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7555 * stabsread.c (define_symbol) <'X'>: Remove.
7556 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7557 handling.
7558 <'V'>: Likewise.
7559 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7560 <'S'>: Remove call to gdbarch_static_transform_name.
7561
7562 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7563
7564 * procfs.c (procfs_pre_trace): New function.
7565 (procfs_target::create_inferior): Pass it to fork_inferior.
7566
7567 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7568
7569 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7570 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7571 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7572 sol2-tdep.o, sparc-sol2-tdep.o.
7573 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7574 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7575 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7576 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7577
7578 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7579
7580 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7581 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7582 Call sol2_init_abi.
7583 Remove calls to set_gdbarch_skip_solib_resolver,
7584 set_gdbarch_core_pid_to_str.
7585 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7586 (i386_sol2_static_transform_name): Remove.
7587 (i386_sol2_init_abi): Call sol2_init_abi.
7588 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7589 set_gdbarch_static_transform_name,
7590 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7591 Use sol2_sigtramp_p.
7592 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7593 (sol2_sigtramp_p): New function.
7594 (sol2_static_transform_name): New function.
7595 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7596 (sol2_init_abi): New function.
7597 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7598 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7599 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7600 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7601 (sparc_sol2_static_transform_name): Remove.
7602 (sparc32_sol2_init_abi): Call sol2_init_abi.
7603 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7604 set_gdbarch_static_transform_name,
7605 set_gdbarch_skip_solib_resolver,
7606 set_gdbarch_core_pid_to_str.
7607 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7608 (sparc_sol2_static_transform_name): Remove
7609 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7610 call sol2_sigtramp_p.
7611 (sparc64_sol2_init_abi): Call sol2_init_abi.
7612 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7613 set_gdbarch_static_transform_name,
7614 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7615
7616 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7617
7618 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7619 * exec.c (validate_exec_file): If from_tty, set both
7620 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7621 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7622 and from_tty, unconditionally ask a confirmation.
7623
7624 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7625
7626 * target-descriptions.c (tdesc_architecture_name): Protect against
7627 NULL pointer dereference.
7628 (maint_print_xml_tdesc_cmd): New function.
7629 (_initialize_target_descriptions): Register new 'maint print
7630 xml-tdesc' command and give it the filename completer.
7631 * NEWS: Mention new 'maint print xml-tdesc' command.
7632
7633 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7634
7635 * target-descriptions.c (class tdesc_compatible_info): New class.
7636 (struct target_desc): Change type of compatible vector.
7637 (tdesc_compatible_p): Update for change in type of
7638 target_desc::compatible.
7639 (tdesc_compatible_info_list): New function.
7640 (tdesc_compatible_info_arch_name): New function.
7641 (tdesc_add_compatible): Update for change in type of
7642 target_desc::compatible.
7643 (print_c_tdesc::visit_pre): Likewise.
7644
7645 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7646
7647 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7648 whitespace to underscore.
7649 (maint_print_c_tdesc_cmd): Use fake filename for target
7650 descriptions that came from the target.
7651 (_initialize_target_descriptions): Add filename command completion
7652 for 'maint print c-tdesc'.
7653
7654 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7657 lines.
7658
7659 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7660
7661 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7662 lines.
7663 (dwarf2_find_location_expression): Likewise.
7664 (call_site_parameter_matches): Likewise.
7665 (dwarf2_compile_expr_to_ax): Likewise.
7666 (disassemble_dwarf_expression): Likewise.
7667 (loclist_describe_location): Likewise.
7668
7669 2020-06-23 Pedro Alves <palves@redhat.com>
7670
7671 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7672 progspace-and-thread.h. Include scoped-mock-context.h instead.
7673 (register_to_value_test): Use scoped_mock_context.
7674 * regcache.c: Include "scoped-mock-context.h".
7675 (cooked_read_test): Don't error out if a target is already pushed.
7676 Use scoped_mock_context. Adjust.
7677 * scoped-mock-context.h: New file.
7678
7679 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7682 initializer.
7683 (ada_language::is_string_type_p): New member function.
7684 * c-lang.c (c_language_data): Delete la_is_string_type_p
7685 initializer.
7686 (cplus_language_data): Likewise.
7687 (asm_language_data): Likewise.
7688 (minimal_language_data): Likewise.
7689 * d-lang.c (d_language_data): Likewise.
7690 * f-lang.c (f_is_string_type_p): Delete function, implementation
7691 moved to f_language::is_string_type_p.
7692 (f_language_data): Delete la_is_string_type_p initializer.
7693 (f_language::is_string_type_p): New member function,
7694 implementation from f_is_string_type_p.
7695 * go-lang.c (go_is_string_type_p): Delete function, implementation
7696 moved to go_language::is_string_type_p.
7697 (go_language_data): Delete la_is_string_type_p initializer.
7698 (go_language::is_string_type_p): New member function,
7699 implementation from go_is_string_type_p.
7700 * language.c (language_defn::is_string_type_p): Define new member
7701 function.
7702 (default_is_string_type_p): Make static, add comment copied from
7703 header file.
7704 (unknown_language_data): Delete la_is_string_type_p initializer.
7705 (unknown_language::is_string_type_p): New member function.
7706 (auto_language_data): Delete la_is_string_type_p initializer.
7707 (auto_language::is_string_type_p): New member function.
7708 * language.h (language_data): Delete la_is_string_type_p field.
7709 (language_defn::is_string_type_p): Declare new function.
7710 (default_is_string_type_p): Delete desclaration, move comment to
7711 definition.
7712 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7713 moved to m2_language::is_string_type_p.
7714 (m2_language_data): Delete la_is_string_type_p initializer.
7715 (m2_language::is_string_type_p): New member function,
7716 implementation from m2_is_string_type_p.
7717 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7718 initializer.
7719 * opencl-lang.c (opencl_language_data): Likewise.
7720 * p-lang.c (pascal_is_string_type_p): Delete function,
7721 implementation moved to pascal_language::is_string_type_p.
7722 (pascal_language_data): Delete la_is_string_type_p initializer.
7723 (pascal_language::is_string_type_p): New member function,
7724 implementation from pascal_is_string_type_p.
7725 * rust-lang.c (rust_is_string_type_p): Delete function,
7726 implementation moved to rust_language::is_string_type_p.
7727 (rust_language_data): Delete la_is_string_type_p initializer.
7728 (rust_language::is_string_type_p): New member function,
7729 implementation from rust_is_string_type_p.
7730 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7731 is_string_type_p.
7732
7733 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7734
7735 * ada-lang.c (ada_language_data): Delete la_print_typedef
7736 initializer.
7737 (ada_language::print_typedef): New member function.
7738 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7739 (cplus_language_data): Likewise.
7740 (asm_language_data): Likewise.
7741 (minimal_language_data): Likewise.
7742 * d-lang.c (d_language_data): Likewise.
7743 * f-lang.c (f_language_data): Likewise.
7744 (f_language::print_typedef): New member function.
7745 * go-lang.c (go_language_data): Delete la_print_typedef
7746 initializer.
7747 * language.c (language_defn::print_typedef): Define member
7748 function.
7749 (unknown_language_data): Delete la_print_typedef initializer.
7750 (unknown_language::print_typedef): New member function.
7751 (auto_language_data): Delete la_print_typedef initializer.
7752 (auto_language::print_typedef): New member function.
7753 * language.h (language_data): Delete la_print_typedef field.
7754 (language_defn::print_typedef): Declare new member function.
7755 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7756 (default_print_typedef): Delete declaration.
7757 * m2-lang.c (m2_language_data): Delete la_print_typedef
7758 initializer.
7759 (m2_language::print_typedef): New member function.
7760 * objc-lang.c (objc_language_data): Delete la_print_typedef
7761 initializer.
7762 * opencl-lang.c (opencl_language_data): Likewise.
7763 * p-lang.c (pascal_language_data): Likewise.
7764 (pascal_language::print_typedef): New member function.
7765 * rust-lang.c (rust_print_typedef): Delete function,
7766 implementation moved to rust_language::print_typedef.
7767 (rust_language): Delete la_print_typedef initializer.
7768 (rust_language::print_typedef): New member function,
7769 implementation from rust_print_typedef.
7770 * typeprint.c (default_print_typedef): Delete.
7771
7772 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7773
7774 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7775 (ada_language::printstr): New member function.
7776 * c-lang.c (c_language_data): Delete la_printstr initializer.
7777 (cplus_language_data): Likewise.
7778 (asm_language_data): Likewise.
7779 (minimal_language_data): Likewise.
7780 * d-lang.c (d_language_data): Likewise.
7781 * f-lang.c (f_printstr): Rename to f_language::printstr.
7782 (f_language_data): Delete la_printstr initializer.
7783 (f_language::printstr): New member function, implementation from
7784 f_printstr.
7785 * go-lang.c (go_language_data): Delete la_printstr initializer.
7786 * language.c (language_defn::printstr): Define new member
7787 function.
7788 (unk_lang_printstr): Delete.
7789 (unknown_language_data): Delete la_printstr initializer.
7790 (unknown_language::printstr): New member function.
7791 (auto_language_data): Delete la_printstr initializer.
7792 (auto_language::printstr): New member function.
7793 * language.h (language_data): Delete la_printstr field.
7794 (language_defn::printstr): Declare new member function.
7795 (LA_PRINT_STRING): Update call to printstr.
7796 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7797 (m2_language_data): Delete la_printstr initializer.
7798 (m2_language::printstr): New member function, implementation from
7799 m2_printstr.
7800 * objc-lang.c (objc_language_data): Delete la_printstr
7801 initializer.
7802 * opencl-lang.c (opencl_language_data): Likewise.
7803 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7804 (pascal_language_data): Delete la_printstr initializer.
7805 (pascal_language::printstr): New member function, implementation
7806 from pascal_printstr.
7807 * p-lang.h (pascal_printstr): Delete declaration.
7808 * rust-lang.c (rust_printstr): Update header comment.
7809 (rust_language_data): Delete la_printstr initializer.
7810 (rust_language::printstr): New member function.
7811
7812 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7813
7814 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7815 (ada_language::printchar): New member function.
7816 * c-lang.c (c_language_data): Delete la_printchar initializer.
7817 (cplus_language_data): Likewise.
7818 (asm_language_data): Likewise.
7819 (minimal_language_data): Likewise.
7820 * d-lang.c (d_language_data): Likewise.
7821 * f-lang.c (f_printchar): Rename to f_language::printchar.
7822 (f_language_data): Delete la_printchar initializer.
7823 (f_language::printchar): New member function, implementation from
7824 f_printchar.
7825 * go-lang.c (go_language_data): Delete la_printchar initializer.
7826 * language.c (unk_lang_printchar): Delete.
7827 (language_defn::printchar): Define new member function.
7828 (unknown_language_data): Delete la_printchar initializer.
7829 (unknown_language::printchar): New member function.
7830 (auto_language_data): Delete la_printchar initializer.
7831 (auto_language::printchar): New member function.
7832 * language.h (language_data): Delete la_printchar field.
7833 (language_defn::printchar): Declare new member function.
7834 (LA_PRINT_CHAR): Update call to printchar.
7835 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7836 (m2_language::printchar): New member function.
7837 * objc-lang.c (objc_language_data): Delete la_printchar
7838 initializer.
7839 * opencl-lang.c (opencl_language_data): Likewise.
7840 * p-lang.c (pascal_language_data): Delete la_printchar
7841 initializer.
7842 (pascal_language::printchar): New member function.
7843 * rust-lang.c (rust_printchar): Rename to
7844 rust_language::printchar.
7845 (rust_language_data): Delete la_printchar initializer.
7846 (rust_language::printchar): New member function, implementation
7847 from rust_printchar.
7848
7849 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7852 (ada_language_data): Delete la_emitchar initializer.
7853 (ada_language::emitchar): New member function, implementation from
7854 emit_char.
7855 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7856 (cplus_language_data): Likewise.
7857 (asm_language_data): Likewise.
7858 (minimal_language_data): Likewise.
7859 * d-lang.c (d_language_data): Likewise.
7860 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7861 (f_language_data): Delete la_emitchar initializer.
7862 (f_language::emitchar): New member function, implementation from
7863 f_emit_char.
7864 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7865 * language.c (unk_lang_emit_char): Delete.
7866 (language_defn::emitchar): New member function definition.
7867 (unknown_language_data): Delete la_emitchar initializer.
7868 (unknown_language::emitchar): New member function.
7869 (auto_language_data): Delete la_emitchar initializer.
7870 (auto_language::emitchar): New member function.
7871 * language.h (language_data): Delete la_emitchar field.
7872 (language_defn::emitchar): New member field declaration.
7873 (LA_EMIT_CHAR): Update call to emitchar.
7874 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7875 (m2_language_data): Delete la_emitchar initializer.
7876 (m2_language::emitchar): New member function, implementation from
7877 m2_emit_char.
7878 * objc-lang.c (objc_language_data): Delete la_emitchar
7879 initializer.
7880 * opencl-lang.c (opencl_language_data): Likewise.
7881 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7882 (pascal_language_data): Delete la_emitchar initializer.
7883 (pascal_language::emitchar): New member function, implementation
7884 from pascal_emit_char.
7885 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7886 (rust_language_data): Delete la_emitchar initializer.
7887 (rust_language::emitchar): New member function, implementation
7888 from rust_emitchar.
7889
7890 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7893 (ada_language_data): Delete la_post_parser initializer.
7894 (ada_language::post_parser): New member function.
7895 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7896 (cplus_language_data): Likewise.
7897 (asm_language_data): Likewise.
7898 (minimal_language_data): Likewise.
7899 * d-lang.c (d_language_data): Likewise.
7900 * f-lang.c (f_language_data): Likewise.
7901 * go-lang.c (go_language_data): Likewise.
7902 * language.c (unknown_language_data): Likewise.
7903 (auto_language_data): Likewise.
7904 * language.h (language_data): Delete la_post_parser field.
7905 (language_defn::post_parser): New member function.
7906 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7907 * objc-lang.c (objc_language_data): Likewise.
7908 * opencl-lang.c (opencl_language_data): Likewise.
7909 * p-lang.c (pascal_language_data): Likewise.
7910 * parse.c (parse_exp_in_context): Update call to post_parser.
7911 (null_post_parser): Delete definition.
7912 * parser-defs.h (null_post_parser): Delete declaration.
7913 * rust-lang.c (rust_language_data): Delete la_post_parser
7914 initializer.
7915
7916 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * ada-lang.c (parse): Rename to ada_language::parser.
7919 (ada_language_data): Delete la_parser initializer.
7920 (ada_language::parser): New member function, implementation from
7921 parse.
7922 * c-lang.c (c_language_data): Delete la_parser initializer.
7923 (cplus_language_data): Likewise.
7924 (asm_language_data): Likewise.
7925 (minimal_language_data): Likewise.
7926 * d-lang.c (d_language_data): Likewise.
7927 (d_language::parser): New member function.
7928 * f-lang.c (f_language_data): Delete la_parser initializer.
7929 (f_language::parser): New member function.
7930 * go-lang.c (go_language_data): Delete la_parser initializer.
7931 (go_language::parser): New member function.
7932 * language.c (unk_lang_parser): Delete.
7933 (language_defn::parser): Define new member function.
7934 (unknown_language_data): Delete la_parser initializer.
7935 (unknown_language::parser): New member function.
7936 (auto_language_data): Delete la_parser initializer.
7937 (auto_language::parser): New member function.
7938 * language.h (language_data): Delete la_parser field.
7939 (language_defn::parser): Declare new member function.
7940 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7941 (m2_language::parser): New member function.
7942 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7943 * opencl-lang.c (opencl_language_data): Likewise.
7944 * p-lang.c (pascal_language_data): Likewise.
7945 (pascal_language::parser): New member function.
7946 * parse.c (parse_exp_in_context): Update call to parser.
7947 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7948 (rust_language::parser): New member function.
7949
7950 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7951
7952 * top.c (print_gdb_configuration): Print --with-python-libdir
7953 configuration value.
7954
7955 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7956
7957 * NEWS: Mention change to the alias command.
7958
7959 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7960
7961 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7962 (alias_command_completer)
7963 (make_alias_options_def_group): New functions.
7964 (alias_opts, alias_option_defs): New struct and array.
7965 (alias_usage_error): Update usage.
7966 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7967 Use option framework.
7968 (_initialize_cli_cmds): Update alias command help.
7969 Update aliases command help.
7970 (show_user):
7971 Add NULL for new default_args lookup_cmd argument.
7972 (valid_command_p): Rename to validate_aliased_command.
7973 Add NULL for new default_args lookup_cmd argument. Verify that the
7974 aliased_command has no default args.
7975 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7976 (lookup_cmd_1, lookup_cmd): New argument default_args.
7977 (add_alias_cmd):
7978 Add NULL for new default_args lookup_cmd argument.
7979 (print_help_for_command): Show default args under the layout
7980 alias some_alias = some_aliased_cmd some_alias_default_arg.
7981 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7982 xfree default_args in destructor.
7983 * cli/cli-script.c (process_next_line, do_define_command):
7984 Add NULL for new default_args lookup_cmd argument.
7985 * command.h: Declare new default_args argument in lookup_cmd
7986 and lookup_cmd_1.
7987 * completer.c (complete_line_internal_1):
7988 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7989 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7990 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7991 Likewise.
7992 * infcmd.c (_initialize_infcmd): Likewise.
7993 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7994 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7995 * python/py-param.c (add_setshow_generic): Likewise.
7996 * remote.c (_initialize_remote): Likewise.
7997 * top.c (execute_command): Prepend default_args if command has some.
7998 (set_verbose):
7999 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8000 * tracepoint.c (validate_actionline, encode_actions_1):
8001 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8002
8003 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8004
8005 * jit.c (jit_read_descriptor): Use bool as the return type.
8006 (jit_breakpoint_re_set_internal): Use bool as the return type.
8007 Invert the return value logic; return true if the jit breakpoint
8008 has been successfully initialized.
8009 (jit_inferior_init): Update the call to
8010 jit_breakpoint_re_set_internal.
8011
8012 2020-06-22 Pedro Alves <palves@redhat.com>
8013
8014 PR gdb/25939
8015 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8016 Use the current inferior instead. Don't return
8017 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8018 wait again.
8019 * sol-thread.c (sol_thread_target::wait): Don't reference
8020 inferior_ptid.
8021 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8022 (sol_update_thread_list_callback): Use the current inferior's pid
8023 instead of inferior_ptid.
8024
8025 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8026
8027 * procfs.c: Cleanup many comments.
8028
8029 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8030 (AFTER_WATCHFLAG): Replace by value.
8031
8032 (MAIN_PROC_NAME_FORMAT): Inline ...
8033 (create_procinfo): ... here.
8034
8035 (procfs_debug_inferior): Remove SYS_exec handling.
8036 (syscall_is_exec): Likewise.
8037 (procfs_set_exec_trap): Likewise.
8038
8039 (syscall_is_lwp_exit): Inline in callers.
8040 (syscall_is_exit): Likewise.
8041 (syscall_is_exec): Likewise.
8042 (syscall_is_lwp_create): Likewise.
8043
8044 (invalidate_cache): Remove #if 0 code.
8045
8046 (make_signal_thread_runnable): Remove.
8047 (procfs_target::resume): Remove #if 0 code.
8048
8049 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8050
8051 PR gdb/25939
8052 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8053 call ...
8054 (procfs_target::create_inferior): ... here.
8055
8056 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8057
8058 * exec.c (validate_exec_file): Ensure the build-id is up to
8059 date by calling reopen_exec_file (that checks file timestamp
8060 to decide to re-read the file).
8061
8062 2020-06-18 Pedro Alves <palves@redhat.com>
8063
8064 PR gdb/25412
8065 * gdbthread.h (delete_thread, delete_thread_silent)
8066 (find_thread_ptid): Update comments.
8067 * thread.c (current_thread_): New global.
8068 (is_current_thread): Move higher, and reimplement.
8069 (inferior_thread): Reimplement.
8070 (set_thread_exited): Use bool. Add assertions.
8071 (add_thread_silent): Simplify thread-reuse handling by always
8072 calling delete_thread.
8073 (delete_thread): Remove intro comment.
8074 (find_thread_ptid): Skip exited threads.
8075 (switch_to_thread_no_regs): Write to current_thread_.
8076 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8077 INFERIOR_PTID. Clear current_thread_.
8078
8079 2020-06-18 Pedro Alves <palves@redhat.com>
8080
8081 * aix-thread.c (pd_update): Use switch_to_thread.
8082
8083 2020-06-18 Pedro Alves <palves@redhat.com>
8084
8085 * ravenscar-thread.c (ravenscar_thread_target): Update.
8086 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8087 (ravenscar_thread_target::add_active_thread): ... this. Don't
8088 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8089 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8090
8091 2020-06-18 Pedro Alves <palves@redhat.com>
8092
8093 * nat/windows-nat.c (current_windows_thread): Remove.
8094 * nat/windows-nat.h (current_windows_thread): Remove.
8095 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8096 Adjust.
8097 (display_selectors): Adjust to fetch the current
8098 windows_thread_info based on inferior_ptid.
8099 (fake_create_process): No longer write to current_windows_thread.
8100 (windows_nat_target::get_windows_debug_event):
8101 Don't set inferior_ptid or current_windows_thread.
8102 (windows_nat_target::wait): Adjust to not rely on
8103 current_windows_thread.
8104 (do_initial_windows_stuff): Now a method of windows_nat_target.
8105 Switch to the last_ptid thread.
8106 (windows_nat_target::attach): Adjust.
8107 (windows_nat_target::detach): Use switch_to_no_thread instead of
8108 writing to inferior_ptid directly.
8109 (windows_nat_target::create_inferior): Adjust.
8110
8111 2020-06-18 Pedro Alves <palves@redhat.com>
8112
8113 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8114
8115 2020-06-18 Pedro Alves <palves@redhat.com>
8116
8117 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8118 after creating it, instead of writing to inferior_ptid. Don't
8119 write to inferior_ptid.
8120
8121 2020-06-18 Pedro Alves <palves@redhat.com>
8122
8123 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8124
8125 2020-06-18 Pedro Alves <palves@redhat.com>
8126
8127 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8128 it, instead of writing to inferior_ptid.
8129
8130 2020-06-18 Pedro Alves <palves@redhat.com>
8131
8132 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8133 to inferior_ptid.
8134
8135 2020-06-18 Pedro Alves <palves@redhat.com>
8136
8137 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8138 instead of writing to inferior_ptid directly.
8139
8140 2020-06-18 Pedro Alves <palves@redhat.com>
8141
8142 * corelow.c (core_target::close): Use switch_to_no_thread instead
8143 of writing to inferior_ptid directly.
8144 (add_to_thread_list, core_target_open): Use switch_to_thread
8145 instead of writing to inferior_ptid directly.
8146
8147 2020-06-18 Pedro Alves <palves@redhat.com>
8148
8149 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8150 inferior_ptid.
8151 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8152 inferior_ptid.
8153 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8154 inferior_ptid directly.
8155 (darwin_nat_target::init_thread_list): Switch to thread, instead
8156 of writing to inferior_ptid.
8157 (darwin_nat_target::attach): Don't write to inferior_ptid.
8158 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8159
8160 2020-06-18 Pedro Alves <palves@redhat.com>
8161
8162 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8163 thread.
8164 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8165 Instead use switch_to_thread.
8166 (gnu_nat_target::detach): Use switch_to_no_thread
8167 instead of writing to inferior_ptid directly. Used passed-in
8168 inferior instead of looking up the inferior by pid.
8169
8170 2020-06-18 Pedro Alves <palves@redhat.com>
8171
8172 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8173 inferior_ptid.
8174
8175 2020-06-18 Pedro Alves <palves@redhat.com>
8176
8177 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8178 inferior_ptid.
8179 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8180 thread.
8181 (nto_procfs_target::detach): Avoid referencing
8182 inferior_ptid. Use switch_to_no_thread instead of writing to
8183 inferior_ptid directly.
8184 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8185 instead of writing to inferior_ptid directly.
8186 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8187 to thread.
8188
8189 2020-06-18 Pedro Alves <palves@redhat.com>
8190
8191 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8192 after creating it, instead of writing to inferior_ptid.
8193 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8194 to inferior_ptid directly.
8195 (gdbsim_target::wait): Don't write to inferior_ptid.
8196
8197 2020-06-18 Pedro Alves <palves@redhat.com>
8198
8199 * remote.c (remote_target::remote_notice_new_inferior): Use
8200 switch_to_thread instead of writing to inferior_ptid directly.
8201 (remote_target::add_current_inferior_and_thread): Use
8202 switch_to_no_thread instead of writing to inferior_ptid directly.
8203 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8204 and switch_to_thread instead of using set_current_inferior or
8205 writing to inferior_ptid directly.
8206
8207 2020-06-18 Pedro Alves <palves@redhat.com>
8208
8209 * tracectf.c (ctf_target_open): Switch to added thread instead of
8210 writing to inferior_ptid directly.
8211 (ctf_target::close): Use switch_to_no_thread instead of writing to
8212 inferior_ptid directly.
8213
8214 2020-06-18 Pedro Alves <palves@redhat.com>
8215
8216 * tracefile-tfile.c (tfile_target_open): Don't write to
8217 inferior_ptid directly, instead switch to added thread.
8218 (tfile_target::close): Use switch_to_no_thread instead of writing
8219 to inferior_ptid directly.
8220
8221 2020-06-18 Pedro Alves <palves@redhat.com>
8222
8223 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8224 (procfs_target::detach): Use switch_to_no_thread
8225 instead of writing to inferior_ptid directly.
8226 (do_attach): Change return type to void. Switch to the added
8227 thread.
8228 (procfs_target::create_inferior): Switch to the added thread.
8229 (procfs_do_thread_registers): Don't write to inferior_ptid.
8230
8231 2020-06-18 Pedro Alves <palves@redhat.com>
8232
8233 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8234 of writing to inferior_ptid.
8235 (scoped_restore_exited_inferior): Delete.
8236 (handle_vfork_child_exec_or_exit): Simplify using
8237 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8238 instead of writing to inferior_ptid.
8239 (THREAD_STOPPED_BY): Delete.
8240 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8241 (thread_stopped_by_hw_breakpoint): Delete.
8242 (save_waitstatus): Use
8243 scoped_restore_current_thread+switch_to_thread, and call
8244 target_stopped_by_watchpoint instead of
8245 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8246 instead of thread_stopped_by_sw_breakpoint, and
8247 target_stopped_by_hw_breakpoint instead of
8248 thread_stopped_by_hw_breakpoint.
8249 (handle_inferior_event)
8250 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8251 inferior_ptid directly, nor
8252 set_current_inferior/set_current_program_space. Use
8253 switch_to_thread / switch_to_inferior_no_thread instead.
8254
8255 2020-06-18 Pedro Alves <palves@redhat.com>
8256
8257 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8258 instead of writing to inferior_ptid.
8259
8260 2020-06-18 Pedro Alves <palves@redhat.com>
8261
8262 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8263 added thread.
8264 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8265 to the added thread.
8266 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8267 instead of writing to inferior_ptid.
8268
8269 2020-06-18 Pedro Alves <palves@redhat.com>
8270
8271 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8272 (register_to_value_test): Mock a program_space too. Heap-allocate
8273 the address space. Don't write to inferior_ptid. Use
8274 switch_to_thread instead.
8275
8276 2020-06-18 Pedro Alves <palves@redhat.com>
8277
8278 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8279 Delete.
8280 (find_signalled_thread()): New, factored out from
8281 linux_make_corefile_notes and adjusted to handle exited threads.
8282 (linux_make_corefile_notes): Adjust to use the new
8283 find_signalled_thread.
8284
8285 2020-06-18 Pedro Alves <palves@redhat.com>
8286
8287 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8288 of saving/restoring inferior_ptid.
8289
8290 2020-06-17 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8293 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8294 declare.
8295 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8296
8297 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8298
8299 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8300 of partial symtabs.
8301
8302 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8303
8304 * regformats/reg-arm.dat: Remove.
8305 * regformats/reg-bfin.dat: Remove.
8306 * regformats/reg-cris.dat: Remove.
8307 * regformats/reg-crisv32.dat: Remove.
8308 * regformats/reg-m32r.dat: Remove.
8309 * regformats/reg-tilegx.dat: Remove.
8310 * regformats/reg-tilegx32.dat: Remove.
8311
8312 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8313
8314 * features/Makefile (WHICH): Remove arm files.
8315 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8316 * regformats/arm/arm-with-neon.dat: Remove.
8317 * regformats/arm/arm-with-vfpv2.dat: Remove.
8318 * regformats/arm/arm-with-vfpv3.dat: Remove.
8319
8320 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8321
8322 * features/Makefile (XMLTOC): Remove rx.xml.
8323
8324 2020-06-17 Pedro Alves <palves@redhat.com>
8325
8326 * gdbthread.h (thread_control_state) <trap_expected> Update
8327 comments.
8328
8329 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8332 ada_language::lookup_symbol_nonlocal.
8333 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8334 (ada_language::lookup_symbol_nonlocal): New member function,
8335 implementation from ada_lookup_symbol_nonlocal.
8336 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8337 initializer.
8338 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8339 initializer.
8340 (cplus_language::lookup_symbol_nonlocal): New member function.
8341 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8342 (minimal_language_data) Likewise.
8343 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8344 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8345 initializer.
8346 (d_language::lookup_symbol_nonlocal): New member function.
8347 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8348 initializer.
8349 (f_language::lookup_symbol_nonlocal): New member function.
8350 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8351 initializer.
8352 * language.c (unknown_language_data): Likewise.
8353 (auto_language_data): Likewise.
8354 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8355 field.
8356 (language_defn::lookup_symbol_nonlocal): New member function.
8357 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8358 initializer.
8359 * objc-lang.c (objc_language_data): Likewise.
8360 * opencl-lang.c (opencl_language_data): Likewise.
8361 * p-lang.c (pascal_language_data): Likewise.
8362 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8363 rust_language::lookup_symbol_nonlocal.
8364 (rust_language_data): Delete la_lookup_symbol_nonlocal
8365 initializer.
8366 (rust_language::lookup_symbol_nonlocal): New member function,
8367 implementation from rust_lookup_symbol_nonlocal.
8368 * symtab.c (lookup_symbol_aux): Update call to
8369 lookup_symbol_nonlocal.
8370 (basic_lookup_symbol_nonlocal): Rename to...
8371 (language_defn::lookup_symbol_nonlocal): ...this, and update
8372 header comment. Remove language_defn parameter, and replace with
8373 uses of `this'.
8374 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8375
8376 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8377
8378 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8379 initializer.
8380 (ada_language::value_print_inner): New member function.
8381 * c-lang.c (c_language_data): Delete la_value_print_inner
8382 initializer.
8383 (cplus_language_data): Likewise.
8384 (asm_language_data): Likewise.
8385 (minimal_language_data): Likewise.
8386 * d-lang.c (d_language_data): Likewise.
8387 (d_language::value_print_inner): New member function.
8388 * f-lang.c (f_language_data): Delete la_value_print_inner
8389 initializer.
8390 (f_language::value_print_inner): New member function.
8391 * f-lang.h (f_value_print_innner): Rename to...
8392 (f_value_print_inner): ...this (note spelling of 'inner').
8393 * f-valprint.c (f_value_print_innner): Rename to...
8394 (f_value_print_inner): ...this (note spelling of 'inner').
8395 * go-lang.c (go_language_data): Delete la_value_print_inner
8396 initializer.
8397 (go_language::value_print_inner): New member function.
8398 * language.c (language_defn::value_print_inner): Define new member
8399 function.
8400 (unk_lang_value_print_inner): Delete.
8401 (unknown_language_data): Delete la_value_print_inner initializer.
8402 (unknown_language::value_print_inner): New member function.
8403 (auto_language_data): Delete la_value_print_inner initializer.
8404 (auto_language::value_print_inner): New member function.
8405 * language.h (language_data): Delete la_value_print_inner field.
8406 (language_defn::value_print_inner): Delcare new member function.
8407 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8408 initializer.
8409 (m2_language::value_print_inner): New member function.
8410 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8411 initializer.
8412 * opencl-lang.c (opencl_language_data): Likewise.
8413 * p-lang.c (pascal_language_data): Likewise.
8414 (pascal_language::value_print_inner): New member function.
8415 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8416 initializer.
8417 (rust_language::value_print_inner): New member function.
8418 * valprint.c (do_val_print): Update call to value_print_inner.
8419
8420 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8421
8422 * ada-lang.c (ada_language_data): Delete la_value_print
8423 initializer.
8424 (ada_language::value_print): New member function.
8425 * c-lang.c (c_language_data): Delete la_value_print initializer.
8426 (cplus_language_data): Likewise.
8427 (asm_language_data): Likewise.
8428 (minimal_language_data): Likewise.
8429 * d-lang.c (d_language_data): Likewise.
8430 * f-lang.c (f_language_data): Likewise.
8431 * go-lang.c (go_language_data): Likewise.
8432 * language.c (unk_lang_value_print): Delete.
8433 (language_defn::value_print): Define new member function.
8434 (unknown_language_data): Delete la_value_print initializer.
8435 (unknown_language::value_print): New member function.
8436 (auto_language_data): Delete la_value_print initializer.
8437 (auto_language::value_print): New member function.
8438 * language.h (language_data): Delete la_value_print field.
8439 (language_defn::value_print): Declare new member function.
8440 (LA_VALUE_PRINT): Update call to value_print.
8441 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8442 * objc-lang.c (objc_language_data): Likewise.
8443 * opencl-lang.c (opencl_language_data): Likewise.
8444 * p-lang.c (pascal_language_data): Likewise.
8445 (pascal_language::value_print): New member function.
8446 * rust-lang.c (rust_language_data): Delete la_value_print
8447 initializer.
8448
8449 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8450
8451 * ada-lang.c (ada_watch_location_expression): Rename to
8452 ada_language::watch_location_expression.
8453 (ada_language_data): Delete la_watch_location_expression
8454 initializer.
8455 (ada_language::watch_location_expression): New member function,
8456 implementation from ada_watch_location_expression.
8457 * breakpoint.c (watch_command_1): Update call to
8458 watch_location_expression.
8459 * c-lang.c (c_watch_location_expression): Rename to
8460 language_defn::watch_location_expression.
8461 (c_language_data): Delete la_watch_location_expression
8462 initializer.
8463 (cplus_language_data): Likewise.
8464 (asm_language_data): Likewise.
8465 (minimal_language_data): Likewise.
8466 * c-lang.h (c_watch_location_expression): Delete declaration.
8467 * d-lang.c (d_language_data): Delete la_watch_location_expression
8468 initializer.
8469 * f-lang.c (f_language_data): Likewise.
8470 * go-lang.c (go_language_data): Likewise.
8471 * language.c (language_defn::watch_location_expression): Member
8472 function implementation from c_watch_location_expression.
8473 (unknown_language_data): Delete la_watch_location_expression
8474 initializer.
8475 (auto_language_data): Likewise.
8476 * language.h (language_data): Delete la_watch_location_expression
8477 field.
8478 (language_defn::watch_location_expression): Declare new member
8479 function.
8480 * m2-lang.c (m2_language_data): Delete
8481 la_watch_location_expression initializer.
8482 * objc-lang.c (objc_language_data): Likewise.
8483 * opencl-lang.c (opencl_language_data): Likewise.
8484 * p-lang.c (pascal_language_data): Likewise.
8485 * rust-lang.c (rust_watch_location_expression): Rename to
8486 rust_language::watch_location_expression.
8487 (rust_language_data): Delete la_watch_location_expression
8488 initializer.
8489 (rust_language::watch_location_expression): New member function,
8490 implementation from rust_watch_location_expression.
8491
8492 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8493
8494 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8495 ada_language::collect_symbol_completion_matches.
8496 (ada_language_data): Delete la_collect_symbol_completion_matches
8497 initializer.
8498 (ada_language::collect_symbol_completion_matches): New member
8499 function, implementation from
8500 ada_collect_symbol_completion_matches.
8501 * c-lang.c (c_language_data): Delete
8502 la_collect_symbol_completion_matches initializer.
8503 (cplus_language_data): Likewise.
8504 (asm_language_data): Likewise.
8505 (minimal_language_data): Likewise.
8506 * d-lang.c (d_language_data): Likewise.
8507 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8508 f_language::collect_symbol_completion_matches.
8509 (f_language_data): Delete la_collect_symbol_completion_matches
8510 initializer.
8511 (f_language::collect_symbol_completion_matches) New member
8512 function, implementation from f_collect_symbol_completion_matches.
8513 * go-lang.c (go_language_data): Delete
8514 la_collect_symbol_completion_matches initializer.
8515 * language.c (unknown_language_data): Likewise.
8516 (auto_language_data): Likewise.
8517 * language.h (language_data): Delete
8518 la_collect_symbol_completion_matches field.
8519 (language_defn::collect_symbol_completion_matches): New member
8520 function.
8521 * m2-lang.c (m2_language_data): Delete
8522 la_collect_symbol_completion_matches initializer.
8523 * objc-lang.c (objc_language_data): Likewise.
8524 * opencl-lang.c (opencl_language_data): Likewise.
8525 * p-lang.c (pascal_language_data): Likewise.
8526 * rust-lang.c (rust_language_data): Likewise.
8527 * symtab.c (default_collect_symbol_completion_matches): Delete.
8528 (collect_symbol_completion_matches): Update call to
8529 collect_symbol_completion_matches.
8530 (collect_symbol_completion_matches_type): Likewise.
8531 * symtab.h (default_collect_symbol_completion_matches): Delete
8532 declaration.
8533
8534 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8535
8536 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8537 (ada_language_data): Delete la_word_break_characters initializer.
8538 (ada_language::word_break_characters): New member function.
8539 * c-lang.c (c_language_data): Delete la_word_break_characters
8540 initializer.
8541 (cplus_language_data): Likewise.
8542 (asm_language_data): Likewise.
8543 (minimal_language_data): Likewise.
8544 * completer.c: Update global comment.
8545 (advance_to_expression_complete_word_point): Update call to
8546 word_break_characters.
8547 (complete_files_symbols): Likewise.
8548 (complete_line_internal_1): Likewise.
8549 (default_completer_handle_brkchars): Likewise.
8550 (skip_quoted_chars): Likewise.
8551 * d-lang.c (d_language_data): Delete la_word_break_characters
8552 initializer.
8553 * f-lang.c (f_word_break_characters): Delete.
8554 (f_language_data): Delete la_word_break_characters initializer.
8555 (f_language::word_break_characters): New member function.
8556 * go-lang.c (go_language_data): Delete la_word_break_characters
8557 initializer.
8558 * language.c (unknown_language_data): Likewise.
8559 (auto_language_data): Likewise.
8560 * language.h (default_word_break_characters): Move declaration to
8561 earlier in the file.
8562 (language_data): Delete la_word_break_characters field.
8563 (language_defn::word_break_characters): New member function.
8564 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8565 initializer.
8566 * objc-lang.c (objc_language_data): Likewise.
8567 * opencl-lang.c (opencl_language_data): Likewise.
8568 * p-lang.c (pascal_language_data): Likewise.
8569 * rust-lang.c (rust_language_data): Likewise.
8570
8571 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8574 (ada_language_data): Delete la_get_symbol_name_matcher
8575 initializer.
8576 (language_defn::get_symbol_name_matcher_inner): New member
8577 function.
8578 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8579 initializer.
8580 (cplus_language_data): Likewise.
8581 (cplus_language::get_symbol_name_matcher_inner): New member
8582 function.
8583 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8584 (minimal_language_data): Likewise.
8585 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8586 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8587 initializer.
8588 * dictionary.c (iter_match_first_hashed): Update call to
8589 get_symbol_name_matcher.
8590 (iter_match_next_hashed): Likewise.
8591 (iter_match_next_linear): Likewise.
8592 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8593 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8594 initializer.
8595 (f_language::get_symbol_name_matcher_inner): New member function.
8596 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8597 initializer.
8598 * language.c (default_symbol_name_matcher): Update header comment,
8599 make static.
8600 (language_defn::get_symbol_name_matcher): New definition.
8601 (language_defn::get_symbol_name_matcher_inner): Likewise.
8602 (get_symbol_name_matcher): Delete.
8603 (unknown_language_data): Delete la_get_symbol_name_matcher
8604 initializer.
8605 (auto_language_data): Likewise.
8606 * language.h (language_data): Delete la_get_symbol_name_matcher
8607 field.
8608 (language_defn::get_symbol_name_matcher): New member function.
8609 (language_defn::get_symbol_name_matcher_inner): Likewise.
8610 (default_symbol_name_matcher): Delete declaration.
8611 * linespec.c (find_methods): Update call to
8612 get_symbol_name_matcher.
8613 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8614 initializer.
8615 * minsyms.c (lookup_minimal_symbol): Update call to
8616 get_symbol_name_matcher.
8617 (iterate_over_minimal_symbols): Likewise.
8618 * objc-lang.c (objc_language_data): Delete
8619 la_get_symbol_name_matcher initializer.
8620 * opencl-lang.c (opencl_language_data): Likewise.
8621 * p-lang.c (pascal_language_data): Likewise.
8622 * psymtab.c (psymbol_name_matches): Update call to
8623 get_symbol_name_matcher.
8624 * rust-lang.c (rust_language_data): Delete
8625 la_get_symbol_name_matcher initializer.
8626 * symtab.c (symbol_matches_search_name): Update call to
8627 get_symbol_name_matcher.
8628 (compare_symbol_name): Likewise.
8629
8630 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8631
8632 * ada-lang.c (ada_language_data): Delete la_compute_program
8633 initializer.
8634 * c-lang.c (c_language_data): Likewise.
8635 (c_language::compute_program): New member function.
8636 (cplus_language_data): Delete la_compute_program initializer.
8637 (cplus_language::compute_program): New member function.
8638 (asm_language_data): Delete la_compute_program initializer.
8639 (minimal_language_data): Likewise.
8640 * c-lang.h (c_compute_program): Update comment.
8641 (cplus_compute_program): Likewise.
8642 * compile/compile-c-support.c (c_compute_program): Likewise.
8643 (cplus_compute_program): Likewise.
8644 * compile/compile.c (compile_to_object): Update call to
8645 la_compute_program.
8646 * d-lang.c (d_language_data): Delete la_compute_program
8647 initializer.
8648 * f-lang.c (f_language_data): Likewise.
8649 * go-lang.c (go_language_data): Likewise.
8650 * language.c (unknown_language_data): Likewise.
8651 (auto_language_data): Likewise.
8652 * language.h (language_data): Delete la_compute_program field.
8653 (language_defn::compute_program): New member function.
8654 * m2-lang.c (m2_language_data): Delete la_compute_program
8655 initializer.
8656 * objc-lang.c (objc_language_data): Likewise.
8657 * opencl-lang.c (opencl_language_data): Likewise.
8658 * p-lang.c (pascal_language_data): Likewise.
8659 * rust-lang.c (rust_language_data): Likewise.
8660
8661 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * ada-lang.c (ada_language_data) Delete
8664 la_class_name_from_physname initializer.
8665 * c-lang.c (c_language_data): Likewise.
8666 (cplus_language_data): Likewise.
8667 (cplus_language::class_name_from_physname): New member function.
8668 (asm_language_data): Delete la_class_name_from_physname
8669 initializer.
8670 (minimal_language_data): Likewise.
8671 * d-lang.c (d_language_data): Likewise.
8672 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8673 method on language_defn class.
8674 (guess_full_die_structure_name): Likewise.
8675 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8676 initializer.
8677 * go-lang.c (go_language_data): Likewise.
8678 * language.c (language_class_name_from_physname): Delete.
8679 (unk_lang_class_name): Delete.
8680 (unknown_language_data): Delete la_class_name_from_physname
8681 initializer.
8682 (auto_language_data): Likewise.
8683 * language.h (language_data): Delete la_class_name_from_physname
8684 field.
8685 (language_defn::class_name_from_physname): New function.
8686 (language_class_name_from_physname): Delete declaration.
8687 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8688 initializer.
8689 * objc-lang.c (objc_language_data): Likewise.
8690 * opencl-lang.c (opencl_language_data): Likewise.
8691 * p-lang.c (pascal_language_data): Likewise.
8692 * rust-lang.c (rust_language_data): Likewise.
8693
8694 2020-06-16 Tom Tromey <tom@tromey.com>
8695
8696 * tui/tui-data.h (STATUS_NAME): New macro.
8697 * tui/tui-layout.c (tui_remove_some_windows)
8698 (initialize_known_windows, tui_register_window)
8699 (tui_layout_split::remove_windows, initialize_layouts)
8700 (tui_new_layout_command): Don't use hard-coded window names.
8701
8702 2020-06-16 Tom Tromey <tom@tromey.com>
8703
8704 PR tui/25348:
8705 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8706 tui_initialize_readline. Only run once. Call rl_initialize.
8707 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8708 tui_initialize_readline.
8709 * tui/tui-io.c (tui_setup_io): Call
8710 tui_ensure_readline_initialized.
8711 * tui/tui-interp.c (tui_interp::init): Update.
8712
8713 2020-06-16 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8716 Also preserve the status window.
8717
8718 2020-06-16 Tom Tromey <tom@tromey.com>
8719
8720 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8721 where m_window==nullptr.
8722
8723 2020-06-15 Tom Tromey <tromey@adacore.com>
8724
8725 * windows-nat.c (windows_nat::handle_output_debug_string):
8726 Update.
8727 (windows_nat::handle_ms_vc_exception): Update.
8728 * target.h (target_read_string): Change API.
8729 * target.c (target_read_string): Change API.
8730 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8731 Update.
8732 * solib-frv.c (frv_current_sos): Update.
8733 * solib-dsbt.c (dsbt_current_sos): Update.
8734 * solib-darwin.c (darwin_current_sos): Update.
8735 * linux-thread-db.c (inferior_has_bug): Update.
8736 * expprint.c (print_subexp_standard): Update.
8737 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8738 (ada_exception_message_1): Update.
8739
8740 2020-06-15 Tom Tromey <tromey@adacore.com>
8741
8742 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8743
8744 2020-06-15 Tom Tromey <tromey@adacore.com>
8745
8746 * valprint.c (read_string): Update comment.
8747 * target.c (MIN): Remove.
8748 (target_read_string): Rewrite.
8749
8750 2020-06-15 Tom Tromey <tromey@adacore.com>
8751
8752 * corefile.c (read_memory_string): Remove.
8753 * ada-valprint.c (ada_value_print_ptr): Update.
8754 * ada-lang.h (ada_tag_name): Change return type.
8755 * ada-lang.c (type_from_tag): Update.
8756 (ada_tag_name_from_tsd): Change return type. Use
8757 target_read_string.
8758 (ada_tag_name): Likewise.
8759 * gdbcore.h (read_memory_string): Don't declare.
8760
8761 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8762
8763 * symtab.c (rbreak_command): Ignore Windows drive colon.
8764
8765 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * NEWS: Mention removed GDBserver host support.
8768
8769 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8770
8771 * features/riscv/rebuild-csr-xml.sh: Updated.
8772
8773 2020-06-11 Tom Tromey <tom@tromey.com>
8774
8775 PR gdb/18318:
8776 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8777
8778 2020-06-09 Jonny Grant <jg@jguk.org>
8779 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * main.c (captured_main_1): Don't print new line after help.
8782 (print_gdb_help): add mailing list and IRC channel information
8783 to --help. Add new lines between items in the footer. Remove
8784 quotes around bug url.
8785
8786 2020-06-11 Keith Seitz <keiths@redhat.com>
8787
8788 PR gdb/21356
8789 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8790 Resolve typedefs for type length calculations.
8791
8792 2020-06-10 Tom de Vries <tdevries@suse.de>
8793
8794 PR ada/24713
8795 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8796 (write_psymbols): Enable .gdb_index for ada.
8797 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8798 ada.
8799
8800 2020-06-10 Tom de Vries <tdevries@suse.de>
8801
8802 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8803 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8804 namei" instead of "const char *name" argument.
8805 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8806 dw2_symtab_iter_init.
8807
8808 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8809
8810 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8811 to use type::field and field::type instead.
8812
8813 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8816 to use field::type instead.
8817
8818 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * gdbtypes.h (struct field) <type, set_type>: New methods.
8821 Rename `type` field to...
8822 <m_type>: ... this. Change references throughout to use type or
8823 set_type methods.
8824 (FIELD_TYPE): Use field::type. Change call sites that modify
8825 the field's type to use field::set_type instead.
8826
8827 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8830 to use type::index_type instead.
8831
8832 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8833
8834 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8835 methods.
8836 (TYPE_INDEX_TYPE): Use type::index_type.
8837 * gdbtypes.c (create_array_type_with_stride): Likewise.
8838
8839 2020-06-07 Tom Tromey <tom@tromey.com>
8840
8841 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8842 parameter.
8843 (generic_value_print): Update.
8844
8845 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8846
8847 Revert commit 982a38f60b0.
8848 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8849
8850 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8853 avoid use after free.
8854
8855 2020-06-05 Tom de Vries <tdevries@suse.de>
8856
8857 * NEWS: Fix typos.
8858
8859 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8860
8861 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8862 the per_bfd object.
8863 (dwarf2_read_debug_names): Likewise.
8864 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8865 object when re-using a per_bfd object with an index.
8866
8867 2020-06-03 Tom de Vries <tdevries@suse.de>
8868
8869 PR symtab/26046
8870 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8871 children for C++.
8872 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8873 DW_TAG_subprogram.
8874
8875 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8876
8877 * ada-lang.c (ada_language_data): Delete skip_trampoline
8878 initializer.
8879 * c-lang.c (c_language_data): Likewise.
8880 (cplus_language_data): Likewise.
8881 (cplus_language::skip_trampoline): New member function.
8882 (asm_language_data): Delete skip_trampoline initializer.
8883 (minimal_language_data): Likewise.
8884 * d-lang.c (d_language_data): Likewise.
8885 * f-lang.c (f_language_data): Likewise.
8886 * go-lang.c (go_language_data): Likewise.
8887 * language.c (unk_lang_trampoline): Delete function.
8888 (skip_language_trampoline): Update.
8889 (unknown_language_data): Delete skip_trampoline initializer.
8890 (auto_language_data): Likewise.
8891 * language.h (language_data): Delete skip_trampoline field.
8892 (language_defn::skip_trampoline): New function.
8893 * m2-lang.c (m2_language_data): Delete skip_trampoline
8894 initializer.
8895 * objc-lang.c (objc_skip_trampoline): Delete function, move
8896 implementation to objc_language::skip_trampoline.
8897 (objc_language_data): Delete skip_trampoline initializer.
8898 (objc_language::skip_trampoline): New member function with
8899 implementation from objc_skip_trampoline.
8900 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8901 initializer.
8902 * p-lang.c (pascal_language_data): Likewise.
8903 * rust-lang.c (rust_language_data): Likewise.
8904
8905 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8906
8907 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8908 (ada_language::demangle): New member function.
8909 * c-lang.c (c_language_data): Delete la_demangle initializer.
8910 (cplus_language_data): Delete la_demangle initializer.
8911 (cplus_language::demangle): New member function.
8912 (asm_language_data): Delete la_demangle initializer.
8913 (minimal_language_data): Delete la_demangle initializer.
8914 * d-lang.c (d_language_data): Delete la_demangle initializer.
8915 (d_language::demangle): New member function.
8916 * f-lang.c (f_language_data): Delete la_demangle initializer.
8917 (f_language::demangle): New member function.
8918 * go-lang.c (go_language_data): Delete la_demangle initializer.
8919 (go_language::demangle): New member function.
8920 * language.c (language_demangle): Update.
8921 (unk_lang_demangle): Delete.
8922 (unknown_language_data): Delete la_demangle initializer.
8923 (unknown_language::demangle): New member function.
8924 (auto_language_data): Delete la_demangle initializer.
8925 (auto_language::demangle): New member function.
8926 * language.h (language_data): Delete la_demangle field.
8927 (language_defn::demangle): New function.
8928 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8929 * objc-lang.c (objc_language_data): Delete la_demangle
8930 initializer.
8931 (objc_language::demangle): New member function.
8932 * opencl-lang.c (opencl_language_data): Delete la_demangle
8933 initializer.
8934 * p-lang.c (pascal_language_data): Likewise.
8935 * rust-lang.c (rust_language_data): Likewise.
8936 (rust_language::demangle): New member function.
8937
8938 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * ada-lang.c (ada_language_data): Delete la_print_type
8941 initializer.
8942 (ada_language::print_type): New member function.
8943 * c-lang.c (c_language_data): Delete la_print_type initializer.
8944 (c_language::print_type): New member function.
8945 (cplus_language_data): Delete la_print_type initializer.
8946 (cplus_language::print_type): New member function.
8947 (asm_language_data): Delete la_print_type initializer.
8948 (asm_language::print_type): New member function.
8949 (minimal_language_data): Delete la_print_type initializer.
8950 (minimal_language::print_type): New member function.
8951 * d-lang.c (d_language_data): Delete la_print_type initializer.
8952 (d_language::print_type): New member function.
8953 * f-lang.c (f_language_data): Delete la_print_type initializer.
8954 (f_language::print_type): New member function.
8955 * go-lang.c (go_language_data): Delete la_print_type initializer.
8956 (go_language::print_type): New member function.
8957 * language.c (unk_lang_print_type): Delete.
8958 (unknown_language_data): Delete la_print_type initializer.
8959 (unknown_language::print_type): New member function.
8960 (auto_language_data): Delete la_print_type initializer.
8961 (auto_language::print_type): New member function.
8962 * language.h (language_data): Delete la_print_type field.
8963 (language_defn::print_type): New function.
8964 (LA_PRINT_TYPE): Update.
8965 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8966 (m2_language::print_type): New member function.
8967 * objc-lang.c (objc_language_data): Delete la_print_type
8968 initializer.
8969 (objc_language::print_type): New member function.
8970 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8971 to opencl_language::print_type.
8972 (opencl_language_data): Delete la_print_type initializer.
8973 (opencl_language::print_type): New member function, implementation
8974 from opencl_print_type.
8975 * p-lang.c (pascal_language_data): Delete la_print_type
8976 initializer.
8977 (pascal_language::print_type): New member function.
8978 * rust-lang.c (rust_print_type): Delete, implementation moved to
8979 rust_language::print_type.
8980 (rust_language_data): Delete la_print_type initializer.
8981 (rust_language::print_type): New member function, implementation
8982 from rust_print_type.
8983
8984 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8987 implementation moves to...
8988 (ada_language::sniff_from_mangled_name): ...here. Update return
8989 type.
8990 (ada_language_data): Delete la_sniff_from_mangled_name
8991 initializer.
8992 * c-lang.c (c_language_data): Likewise.
8993 (cplus_language_data): Likewise.
8994 (cplus_language::sniff_from_mangled_name): New member function,
8995 implementation taken from gdb_sniff_from_mangled_name.
8996 (asm_language_data): Delete la_sniff_from_mangled_name
8997 initializer.
8998 (minimal_language_data): Likewise.
8999 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9000 implementation moves to cplus_language::sniff_from_mangled_name.
9001 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9002 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9003 moves to...
9004 (d_language::sniff_from_mangled_name): ...here.
9005 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9006 * f-lang.c (f_language_data): Likewise.
9007 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9008 moves to...
9009 (go_language::sniff_from_mangled_name): ...here.
9010 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9011 * language.c (language_sniff_from_mangled_name): Delete.
9012 (unknown_language_data): Delete la_sniff_from_mangled_name
9013 initializer.
9014 (auto_language_data): Likewise.
9015 * language.h (language_data): Delete la_sniff_from_mangled_name
9016 field.
9017 (language_defn::sniff_from_mangled_name): New function.
9018 (language_sniff_from_mangled_name): Delete declaration.
9019 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9020 field.
9021 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9022 implementation moves to...
9023 (objc_language::sniff_from_mangled_name): ...here.
9024 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9025 * opencl-lang.c (opencl_language_data): Likewise.
9026 * p-lang.c (pascal_language_data): Likewise.
9027 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9028 implementation moves to...
9029 (rust_language::sniff_from_mangled_name): ...here.
9030 (rust_language_data): Delete la_sniff_from_mangled_name
9031 initializer.
9032 * symtab.c (symbol_find_demangled_name): Call
9033 sniff_from_mangled_name member function.
9034
9035 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9038 initializer.
9039 * c-lang.c (c_language_data): Likewise.
9040 (cplus_language_data): Likewise.
9041 (cplus_language::search_name_hash): New member function.
9042 (asm_language_data): Delete la_search_name_hash initializer.
9043 (minimal_language_data): Likewise.
9044 * d-lang.c (d_language_data): Likewise.
9045 * dictionary.c (default_search_name_hash): Rename to...
9046 (language_defn::search_name_hash): ...this.
9047 * f-lang.c (f_language_data): Likewise.
9048 (f_language::search_name_hash): New member function.
9049 * go-lang.c (go_language_data): Delete la_search_name_hash
9050 initializer.
9051 * language.c (unknown_language_data): Likewise.
9052 (auto_language_data): Likewise.
9053 * language.h (struct language_data): Delete la_search_name_hash
9054 field.
9055 (language_defn::search_name_hash): Declare new member function.
9056 (default_search_name_hash): Delete declaration.
9057 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9058 initializer.
9059 * objc-lang.c (objc_language_data): Likewise.
9060 * opencl-lang.c (opencl_language_data): Likewise.
9061 * p-lang.c (pascal_language_data): Likewise.
9062 * rust-lang.c (rust_language_data): Likewise.
9063 * symtab.c (search_name_hash): Update call.
9064
9065 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9068 initializer.
9069 * c-lang.c (class compile_instance): Declare.
9070 (c_language_data): Delete la_get_compile_instance initializer.
9071 (c_language::get_compile_instance): New member function.
9072 (cplus_language_data): Delete la_get_compile_instance initializer.
9073 (cplus_language::get_compile_instance): New member function.
9074 (asm_language_data): Delete la_get_compile_instance initializer.
9075 (minimal_language_data): Likewise.
9076 * c-lang.h (c_get_compile_context): Update comment.
9077 (cplus_get_compile_context): Update comment.
9078 * compile/compile.c (compile_to_object): Update calls, don't rely
9079 on function pointer being NULL.
9080 * d-lang.c (d_language_data): Delete la_get_compile_instance
9081 initializer.
9082 * f-lang.c (f_language_data): Likewise.
9083 * go-lang.c (go_language_data): Likewise.
9084 * language.c (unknown_language_data): Likewise.
9085 (auto_language_data): Likewise.
9086 * language.h (language_data): Delete la_get_compile_instance field.
9087 (language_defn::get_compile_instance): New member function.
9088 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9089 initializer.
9090 * objc-lang.c (objc_language_data): Likewise.
9091 * opencl-lang.c (opencl_language_data): Likewise.
9092 * p-lang.c (pascal_language_data): Likewise.
9093 * rust-lang.c (rust_language_data): Likewise.
9094
9095 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * ada-lang.c (ada_add_all_symbols): Update comment.
9098 (ada_iterate_over_symbols): Delete, move implementation to...
9099 (ada_language::iterate_over_symbols): ...here, a new member
9100 function, rewrite to use range based for loop.
9101 (ada_language_data): Delete la_iterate_over_symbols initializer.
9102 * c-lang.c (c_language_data): Likewise.
9103 (cplus_language_data): Likewise.
9104 (asm_language_data): Likewise.
9105 (minimal_language_data): Likewise.
9106 * d-lang.c (d_language_data): Likewise.
9107 * f-lang.c (f_language_data): Likewise.
9108 * go-lang.c (go_language_data): Likewise.
9109 * language.c (unknown_language_data): Likewise.
9110 (auto_language_data): Likewise.
9111 * language.h (language_data): Delete la_iterate_over_symbols field.
9112 (language_defn::iterate_over_symbols): New member function.
9113 (LA_ITERATE_OVER_SYMBOLS): Update.
9114 * linespec.c (iterate_over_all_matching_symtabs): Update.
9115 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9116 initializer.
9117 * objc-lang.c (objc_language_data): Likewise.
9118 * opencl-lang.c (opencl_language_data): Likewise.
9119 * p-lang.c (pascal_language_data): Likewise.
9120 * rust-lang.c (rust_language_data): Likewise.
9121
9122 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9123
9124 * ada-lang.c (ada_language_data): Delete
9125 la_lookup_transparent_type initializer.
9126 * c-lang.c (c_language_data): Likewise.
9127 (cplus_language_data): Likewise.
9128 (cplus_language::lookup_transparent_type): New member function.
9129 (asm_language_data): Delete la_lookup_transparent_type
9130 initializer.
9131 (minimal_language_data): Likewise.
9132 * d-lang.c (d_language_data): Likewise.
9133 * f-lang.c (f_language_data): Likewise.
9134 * go-lang.c (go_language_data): Likewise.
9135 * language.c (unknown_language_data): Likewise.
9136 (auto_language_data): Likewise.
9137 * language.h (struct language_data): Delete
9138 la_lookup_transparent_type field.
9139 (language_defn::lookup_transparent_type): New member function.
9140 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9141 initializer.
9142 * objc-lang.c (objc_language_data): Likewise.
9143 * opencl-lang.c (opencl_language_data): Likewise.
9144 * p-lang.c (pascal_language_data): Likewise.
9145 * rust-lang.c (rust_language_data): Likewise.
9146 * symtab.c (symbol_matches_domain): Update call.
9147
9148 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * ada-lang.c (ada_language_arch_info): Delete function, move
9151 implementation to...
9152 (ada_language::language_arch_info): ...here, a new member
9153 function.
9154 (ada_language_data): Delete la_language_arch_info.
9155 * c-lang.c (c_language_data): Likewise.
9156 (c_language::language_arch_info): New member function.
9157 (cplus_language_arch_info): Delete function, move
9158 implementation to...
9159 (cplus_language::language_arch_info): ...here, a new member
9160 function.
9161 (cplus_language_data): Delete la_language_arch_info.
9162 (asm_language_data): Likewise.
9163 (asm_language::language_arch_info): New member function.
9164 (minimal_language_data): Delete la_language_arch_info.
9165 (minimal_language::language_arch_info): New member function.
9166 * d-lang.c (d_language_arch_info): Delete function, move
9167 implementation to...
9168 (d_language::language_arch_info): ...here, a new member
9169 function.
9170 (d_language_data): Delete la_language_arch_info.
9171 * f-lang.c (f_language_arch_info): Delete function, move
9172 implementation to...
9173 (f_language::language_arch_info): ...here, a new member
9174 function.
9175 (f_language_data): Delete la_language_arch_info.
9176 * go-lang.c (go_language_arch_info): Delete function, move
9177 implementation to...
9178 (go_language::language_arch_info): ...here, a new member
9179 function.
9180 (go_language_data): Delete la_language_arch_info.
9181 * language.c (unknown_language_data): Likewise.
9182 (unknown_language::language_arch_info): New member function.
9183 (auto_language_data): Delete la_language_arch_info.
9184 (auto_language::language_arch_info): New member function.
9185 (language_gdbarch_post_init): Update call to
9186 la_language_arch_info.
9187 * language.h (language_data): Delete la_language_arch_info
9188 function pointer.
9189 (language_defn::language_arch_info): New function.
9190 * m2-lang.c (m2_language_arch_info): Delete function, move
9191 implementation to...
9192 (m2_language::language_arch_info): ...here, a new member
9193 function.
9194 (m2_language_data): Delete la_language_arch_info.
9195 * objc-lang.c (objc_language_arch_info): Delete function, move
9196 implementation to...
9197 (objc_language::language_arch_info): ...here, a new member
9198 function.
9199 (objc_language_data): Delete la_language_arch_info.
9200 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9201 implementation to...
9202 (opencl_language::language_arch_info): ...here, a new member
9203 function.
9204 (opencl_language_data): Delete la_language_arch_info.
9205 * p-lang.c (pascal_language_arch_info): Delete function, move
9206 implementation to...
9207 (pascal_language::language_arch_info): ...here, a new member
9208 function.
9209 (pascal_language_data): Delete la_language_arch_info.
9210 * rust-lang.c (rust_language_arch_info): Delete function, move
9211 implementation to...
9212 (rust_language::language_arch_info): ...here, a new member
9213 function.
9214 (rust_language_data): Delete la_language_arch_info.
9215
9216 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9219 initializer.
9220 * c-lang.c (c_language_data): Likewise.
9221 (cplus_language_data): Likewise.
9222 (cplus_language::pass_by_reference_info): New method.
9223 (asm_language_data): Delete la_pass_by_reference initializer.
9224 (minimal_language_data): Likewise.
9225 * cp-abi.c (cp_pass_by_reference): Remove use of
9226 default_pass_by_reference.
9227 * d-lang.c (d_language_data): Likewise.
9228 * f-lang.c (f_language_data): Likewise.
9229 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9230 default_pass_by_reference.
9231 * go-lang.c (go_language_data): Likewise.
9232 * language.c (language_pass_by_reference): Update.
9233 (default_pass_by_reference): Delete.
9234 (unknown_language_data): Delete la_pass_by_reference
9235 initializer.
9236 (auto_language_data): Likewise.
9237 * language.h (struct language_data): Delete la_pass_by_reference
9238 field.
9239 (language_defn::pass_by_reference_info): New member function.
9240 (default_pass_by_reference): Delete declaration.
9241 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9242 initializer.
9243 * objc-lang.c (objc_language_data): Likewise.
9244 * opencl-lang.c (opencl_language_data): Likewise.
9245 * p-lang.c (pascal_language_data): Likewise.
9246 * rust-lang.c (rust_language_data): Likewise.
9247
9248 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9249
9250 * ada-lang.c (ada_read_var_value): Delete function, move
9251 implementation to...
9252 (ada_language::read_var_value): ...here.
9253 (ada_language_data): Delete la_read_var_value initializer.
9254 * c-lang.c (c_language_data): Likewise.
9255 (cplus_language_data): Likewise.
9256 (minimal_language_data): Likewise.
9257 * d-lang.c (d_language_data): Likewise.
9258 * f-lang.c (f_language_data): Likewise.
9259 * findvar.c (default_read_var_value): Rename to...
9260 (language_defn::read_var_value): ...this.
9261 * findvar.c (read_var_value): Update header comment, and change to
9262 call member function instead of function pointer.
9263 * go-lang.c (go_language_data): Likewise.
9264 * language.c (unknown_language_data): Delete la_read_var_value
9265 initializer.
9266 (auto_language_data): Likewise.
9267 * language.h (struct language_data): Delete la_read_var_value
9268 field.
9269 (language_defn::read_var_value): New member function.
9270 (default_read_var_value): Delete declaration.
9271 * m2-lang.c (m2_language_data): Delete la_read_var_value
9272 initializer.
9273 * objc-lang.c (objc_language_data): Likewise.
9274 * opencl-lang.c (opencl_language_data): Likewise.
9275 * p-lang.c (pascal_language_data): Likewise.
9276 * rust-lang.c (rust_language_data): Likewise.
9277 * value.h (default_read_var_value): Delete declaration.
9278
9279 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9280
9281 * ada-lang.c (ada_print_array_index): Delete function, move
9282 implementation to...
9283 (ada_language::print_array_index): ...here.
9284 (ada_language_data): Delete la_print_array_index initializer.
9285 * c-lang.c (c_language_data): Likewise.
9286 (cplus_language_data): Likewise.
9287 (minimal_language_data): Likewise.
9288 * d-lang.c (d_language_data): Likewise.
9289 * f-lang.c (f_language_data): Likewise.
9290 * go-lang.c (go_language_data): Likewise.
9291 * language.c (default_print_array_index): Delete function, move
9292 implementation to...
9293 (language_defn::print_array_index): ...here.
9294 (unknown_language_data): Delete la_print_array_index initializer.
9295 (auto_language_data): Likewise.
9296 * language.h (struct language_data): Delete la_print_array_index
9297 field.
9298 (language_defn::print_array_index): New member function.
9299 (LA_PRINT_ARRAY_INDEX): Update.
9300 (default_print_array_index): Delete declaration.
9301 * m2-lang.c (m2_language_data): Delete la_print_array_index
9302 initializer.
9303 * objc-lang.c (objc_language_data): Likewise.
9304 * opencl-lang.c (opencl_language_data): Likewise.
9305 * p-lang.c (pascal_language_data): Likewise.
9306 * rust-lang.c (rust_language_data): Likewise.
9307
9308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * gdb/ada-lang.c (ada_language_defn): Convert to...
9311 (ada_language_data): ...this.
9312 (class ada_language): New class.
9313 (ada_language_defn): New static global.
9314 * gdb/c-lang.c (c_language_defn): Convert to...
9315 (c_language_data): ...this.
9316 (class c_language): New class.
9317 (c_language_defn): New static global.
9318 (cplus_language_defn): Convert to...
9319 (cplus_language_data): ...this.
9320 (class cplus_language): New class.
9321 (cplus_language_defn): New static global.
9322 (asm_language_defn): Convert to...
9323 (asm_language_data): ...this.
9324 (class asm_language): New class.
9325 (asm_language_defn): New static global.
9326 (minimal_language_defn): Convert to...
9327 (minimal_language_data): ...this.
9328 (class minimal_language): New class.
9329 (minimal_language_defn): New static global.
9330 * gdb/d-lang.c (d_language_defn): Convert to...
9331 (d_language_data): ...this.
9332 (class d_language): New class.
9333 (d_language_defn): New static global.
9334 * gdb/f-lang.c (f_language_defn): Convert to...
9335 (f_language_data): ...this.
9336 (class f_language): New class.
9337 (f_language_defn): New static global.
9338 * gdb/go-lang.c (go_language_defn): Convert to...
9339 (go_language_data): ...this.
9340 (class go_language): New class.
9341 (go_language_defn): New static global.
9342 * gdb/language.c (unknown_language_defn): Remove declaration.
9343 (current_language): Initialize to nullptr, real initialization is
9344 moved to _initialize_language.
9345 (languages): Delete global.
9346 (language_defn::languages): Define.
9347 (set_language_command): Use language_defn::languages.
9348 (set_language): Likewise.
9349 (range_error): Likewise.
9350 (language_enum): Likewise.
9351 (language_def): Likewise.
9352 (add_set_language_command): Use language_def::languages for the
9353 language list, and language_def to lookup language pointers.
9354 (skip_language_trampoline): Use language_defn::languages.
9355 (unknown_language_defn): Convert to...
9356 (unknown_language_data): ...this.
9357 (class unknown_language): New class.
9358 (unknown_language_defn): New static global.
9359 (auto_language_defn): Convert to...
9360 (auto_language_data): ...this.
9361 (class auto_language): New class.
9362 (auto_language_defn): New static global.
9363 (language_gdbarch_post_init): Use language_defn::languages.
9364 (_initialize_language): Initialize current_language.
9365 * gdb/language.h (struct language_defn): Rename to...
9366 (struct language_data): ...this.
9367 (struct language_defn): New.
9368 (auto_language_defn): Delete.
9369 (unknown_language_defn): Delete.
9370 (minimal_language_defn): Delete.
9371 (ada_language_defn): Delete.
9372 (asm_language_defn): Delete.
9373 (c_language_defn): Delete.
9374 (cplus_language_defn): Delete.
9375 (d_language_defn): Delete.
9376 (f_language_defn): Delete.
9377 (go_language_defn): Delete.
9378 (m2_language_defn): Delete.
9379 (objc_language_defn): Delete.
9380 (opencl_language_defn): Delete.
9381 (pascal_language_defn): Delete.
9382 (rust_language_defn): Delete.
9383 * gdb/m2-lang.c (m2_language_defn): Convert to...
9384 (m2_language_data): ...this.
9385 (class m2_language): New class.
9386 (m2_language_defn): New static global.
9387 * gdb/objc-lang.c (objc_language_defn): Convert to...
9388 (objc_language_data): ...this.
9389 (class objc_language): New class.
9390 (objc_language_defn): New static global.
9391 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9392 (opencl_language_data): ...this.
9393 (class opencl_language): New class.
9394 (opencl_language_defn): New static global.
9395 * gdb/p-lang.c (pascal_language_defn): Convert to...
9396 (pascal_language_data): ...this.
9397 (class pascal_language): New class.
9398 (pascal_language_defn): New static global.
9399 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9400 language pointer, update comment format.
9401 * gdb/rust-lang.c (rust_language_defn): Convert to...
9402 (rust_language_data): ...this.
9403 (class rust_language): New class.
9404 (rust_language_defn): New static global.
9405
9406 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9407
9408 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9409 member variable.
9410 <m_stmt_at_address>: New member variable.
9411 (lnp_state_machine::record_line): Don't record some lines, update
9412 tracking of is_stmt at the same address.
9413 (lnp_state_machine::lnp_state_machine): Initialise new member
9414 variables.
9415
9416 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9417
9418 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9419 "-include gnu-nat-mig.h".
9420 * gnu-nat-mig.h: New file.
9421 * gnu-nat.c: Include "gnu-nat-mig.h".
9422 (exc_server, msg_reply_server, notify_server,
9423 process_reply_server): Remove declarations.
9424
9425 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9426
9427 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9428 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9429 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9430 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9431 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9432 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9433 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9434 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9435 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9436 to gnu_nat_target class.
9437 * gnu-nat.c: Likewise.
9438 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9439 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9440 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9441 object.
9442 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9443 instead of `gnu_target'.
9444
9445 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9446
9447 * i386-gnu-tdep.c: Include "gdbcore.h"
9448 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9449 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9450 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9451 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9452 i386_gnu_sigcontext_addr): New functions
9453 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9454 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9455 tdep.
9456
9457 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9458
9459 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9460 before fork_inferior call. Avoid calling it if target_is_pushed returns
9461 true.
9462
9463 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9464
9465 * gnu-nat.h (gnu_target): New variable declaration.
9466 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9467 gnu_target.
9468 * gnu-nat.c (gnu_target): New variable.
9469 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9470 add_thread_silent, and add_thread calls.
9471 (gnu_nat_target::create_inferior): Pass gnu_target to
9472 add_thread_silent, thread_change_ptid call.
9473 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9474 call.
9475
9476 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9477
9478 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9479 (gnu_nat_target::find_memory_regions): Remove unused
9480 `old_address' variable.
9481
9482 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9483
9484 * gnu-nat.c: Include "gdbarch.h".
9485
9486 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9487
9488 * reply_mig_hack.awk (Error return): Cast function through
9489 void *, to bypass compiler function call check.
9490
9491 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9492
9493 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9494 $(srcdir)/reply_mig_hack.awk.
9495
9496 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9497
9498 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9499
9500 2020-05-30 Jonny Grant <jg@jguk.org>
9501
9502 * configure.ac (ACX_BUGURL): change bug URL to https.
9503
9504 2020-05-30 Pedro Alves <palves@redhat.com>
9505
9506 * cp-support.c (replace_typedefs_template): New.
9507 (replace_typedefs_qualified_name): Handle
9508 DEMANGLE_COMPONENT_TEMPLATE.
9509
9510 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9513 dwarf2/index-cache.h, dwarf2/index-write.c,
9514 dwarf2/index-write.h, dwarf2/line-header.c,
9515 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9516 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9517 variables and fields from `dwarf2_per_objfile` to just
9518 `per_objfile` throughout.
9519
9520 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9521
9522 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9523 <push_dwarf_reg_entry_value>: Add comment.
9524
9525 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9526 Keith Seitz <keiths@redhat.com>
9527
9528 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9529 instead of PyEval_ReleaseLock.
9530 (class gdbpy_gil): Move to earlier in file.
9531 (finalize_python): Set gdb_python_initialized.
9532 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9533 when not initialized.
9534
9535 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9538 <push_dwarf_reg_entry_value>: Remove assert. Override
9539 per_objfile with caller_per_objfile.
9540
9541 2020-05-28 Tom de Vries <tdevries@suse.de>
9542
9543 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9544 PR gold/15646 workaround to symbol kind "type".
9545
9546 2020-05-27 Tom Tromey <tromey@adacore.com>
9547
9548 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9549
9550 2020-05-27 Tom Tromey <tromey@adacore.com>
9551
9552 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9553 Use htab_find_with_hash.
9554 <add_abbrev>: Remove "abbrev_number" parameter.
9555 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9556 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9557 (hash_abbrev): Add comment.
9558 (abbrev_table::lookup_abbrev): Move to header file.
9559 (abbrev_table::read): Update.
9560
9561 2020-05-27 Tom Tromey <tromey@adacore.com>
9562
9563 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9564 method.
9565 <canonical_name>: New member.
9566 <raw_name>: Rename from "name".
9567 (partial_die_info): Initialize canonical_name.
9568 (scan_partial_symbols): Check raw_name.
9569 (partial_die_parent_scope, partial_die_full_name)
9570 (add_partial_symbol, add_partial_subprogram)
9571 (add_partial_enumeration, load_partial_dies): Use "name" method.
9572 (partial_die_info::name): New method.
9573 (partial_die_info::read, guess_partial_die_structure_name)
9574 (partial_die_info::fixup): Update.
9575
9576 2020-05-27 Tom Tromey <tromey@adacore.com>
9577
9578 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9579 <get_ref_die_offset>: Inline.
9580 <get_ref_die_offset_complaint>: New method.
9581 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9582 (attribute::get_ref_die_offset_complaint): Rename from
9583 get_ref_die_offset. Just issue complaint.
9584
9585 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9586
9587 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9588
9589 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9590
9591 * exec.c (exec_file_attach): Use errno value of first openp failure.
9592
9593 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9594
9595 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9596 Don't close thread handle.
9597
9598 2020-05-27 Tom Tromey <tom@tromey.com>
9599 Simon Marchi <simon.marchi@efficios.com>
9600
9601 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9602 shared_ptr.
9603 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9604 member.
9605 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9606 dwarf2_per_bfd_objfile_data_key>: New globals.
9607 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9608 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9609 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9610 shared.
9611 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9612 short-circuit when sharing.
9613 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9614 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9615
9616 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9617
9618 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9619 to...
9620 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9621 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9622
9623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9626 build_name_components, find_name_components_bounds>:
9627 Add per_objfile parameter.
9628 (struct mapped_index) <symbol_name_at>: Likewise.
9629 (struct mapped_debug_names): Remove constructor.
9630 <dwarf2_per_objfile>: Remove field.
9631 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9632 (mapped_index_base::find_name_components_bounds,
9633 mapped_index_base::build_name_components,
9634 dw2_expand_symtabs_matching_symbol): Likewise.
9635 (class mock_mapped_index) <symbol_name_at>: Likewise.
9636 (check_match): Likewise.
9637 (check_find_bounds_finds): Likewise.
9638 (test_mapped_index_find_name_component_bounds): Update.
9639 (CHECK_MATCH): Update.
9640 (dw2_expand_symtabs_matching): Update.
9641 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9642 per_objfile parameter.
9643 <find_vec_in_debug_names>: Likewise.
9644 <m_per_objfile>: New field.
9645 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9646 parameter.
9647 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9648 (dw2_debug_names_iterator::next): Update.
9649 (dw2_debug_names_lookup_symbol): Update.
9650 (dw2_debug_names_expand_symtabs_for_function): Update.
9651 (dw2_debug_names_map_matching_symbols): Update.
9652 (dw2_debug_names_expand_symtabs_matching): Update.
9653 (dwarf2_read_debug_names): Update.
9654
9655 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9656
9657 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9658 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9659 move to dwarf2_per_objfile.
9660 <read_in_chain>: Remove.
9661 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9662 remove_all_cus, age_comp_units>: New methods.
9663 <m_dwarf2_cus>: New member.
9664 (struct dwarf2_per_cu_data) <cu>: Remove.
9665 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9666 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9667 moved to methods of dwarf2_per_objfile.
9668 (dwarf2_clear_marks): Remove.
9669 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9670 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9671 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9672 (dwarf2_per_objfile::remove_all_cus): New.
9673 (class free_cached_comp_units) <~free_cached_comp_units>:
9674 Update.
9675 (load_cu): Update.
9676 (dw2_do_instantiate_symtab): Adjust.
9677 (fill_in_sig_entry_from_dwo_entry): Adjust.
9678 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9679 (cutu_reader::cutu_reader): Likewise.
9680 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9681 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9682 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9683 and dwarf2_per_objfile::age_comp_units.
9684 (load_partial_comp_unit): Update.
9685 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9686 (process_queue): Likewise.
9687 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9688 backlink.
9689 (dwarf2_read_addr_index): Likewise.
9690 (follow_die_offset): Likewise.
9691 (dwarf2_fetch_die_loc_sect_off): Likewise.
9692 (dwarf2_fetch_constant_bytes): Likewise.
9693 (dwarf2_fetch_die_type_sect_off): Likewise.
9694 (follow_die_sig_1): Likewise.
9695 (load_full_type_unit): Likewise.
9696 (read_signatured_type): Likewise.
9697 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9698 (dwarf2_cu::~dwarf2_cu): Remove.
9699 (dwarf2_per_objfile::get_cu): New.
9700 (dwarf2_per_objfile::set_cu): New.
9701 (age_cached_comp_units): Rename to...
9702 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9703 to std::unordered_map.
9704 (free_one_cached_comp_unit): Rename to...
9705 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9706 to std::unordered_map.
9707 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9708 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9709 a dwarf2_per_objfile in data.
9710 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9711 (dwarf2_clear_marks): Remove.
9712
9713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9714
9715 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9716 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9717 (init_tu_and_read_dwo_dies): Likewise.
9718 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9719 (cutu_reader::cutu_reader): Likewise.
9720 (load_partial_comp_unit): Likewise.
9721 (process_psymtab_comp_unit): Update.
9722 (build_type_psymtabs_1): Update.
9723 (process_skeletonless_type_unit): Update.
9724 (load_full_comp_unit): Update.
9725 (find_partial_die): Update.
9726 (dwarf2_read_addr_index): Update.
9727 (read_signatured_type): Update.
9728
9729 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9730
9731 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9732 m_header_read_in>: New fields.
9733 <get_header>: New method.
9734 * dwarf2/read.c (per_cu_header_read_in): Remove.
9735 (dwarf2_per_cu_data::get_header): New.
9736 (dwarf2_per_cu_data::addr_size): Update.
9737 (dwarf2_per_cu_data::offset_size): Update.
9738 (dwarf2_per_cu_data::ref_addr_size): Update.
9739
9740 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9741
9742 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9743 (dw2_do_instantiate_symtab): Update.
9744 (queue_and_load_all_dwo_tus): Change parameter from
9745 dwarf2_per_cu_data to dwarf2_cu.
9746 (dwarf2_fetch_die_loc_sect_off): Update.
9747 (dwarf2_fetch_constant_bytes): Update.
9748 (dwarf2_fetch_die_type_sect_off): Update.
9749
9750 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9751
9752 * dwarf2/read.c (process_full_comp_unit,
9753 process_full_type_unit): Remove per_cu, per_objfile paramters.
9754 Add dwarf2_cu parameter.
9755 (process_queue): Update.
9756
9757 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9758
9759 * dwarf2/read.c (create_cu_from_index_list): Replace
9760 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9761 (create_cus_from_index_list): Likewise.
9762 (create_cus_from_index): Likewise.
9763 (create_signatured_type_table_from_index): Likewise.
9764 (create_cus_from_debug_names_list): Likewise.
9765 (create_cus_from_debug_names): Likewise.
9766 (dwarf2_read_gdb_index): Update.
9767 (dwarf2_read_debug_names): Update.
9768
9769 2020-05-27 Tom Tromey <tom@tromey.com>
9770 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * dwarf2/read.h (struct dwarf2_per_objfile)
9773 <get_type_for_signatured_type, set_type_for_signatured_type>:
9774 New methods.
9775 <m_type_map>: New member.
9776 (struct signatured_type) <type>: Remove.
9777 * dwarf2/read.c
9778 (dwarf2_per_objfile::get_type_for_signatured_type,
9779 dwarf2_per_objfile::set_type_for_signatured_type): New.
9780 (get_signatured_type): Use new methods.
9781
9782 2020-05-27 Tom Tromey <tom@tromey.com>
9783 Simon Marchi <simon.marchi@efficios.com>
9784
9785 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9786 (struct dwarf2_per_objfile) <type_units>: New member.
9787 <get_type_unit_group_unshareable>: New method.
9788 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9789 num_symtabs, symtabs>: Remove; move to
9790 type_unit_group_unshareable.
9791 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9792 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9793 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9794
9795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * dwarf2/read.h (struct dwarf2_per_cu_data):
9798 <dwarf2_per_objfile>: Remove.
9799 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9800 dwarf2_per_objfile.
9801 (create_signatured_type_table_from_index): Likewise.
9802 (create_signatured_type_table_from_debug_names): Likewise.
9803 (create_debug_type_hash_table): Likewise.
9804 (fill_in_sig_entry_from_dwo_entry): Likewise.
9805 (create_type_unit_group): Likewise.
9806 (read_comp_units_from_section): Likewise.
9807 (create_cus_hash_table): Likewise.
9808
9809 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9812 dwarf2_per_cu_data::dwarf2_per_objfile.
9813 (compute_compunit_symtab_includes): Likewise.
9814 (dwarf2_cu::start_symtab): Likewise.
9815
9816 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9817
9818 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9819 parameter.
9820 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9821 (read_namespace_alias): Update.
9822 (lookup_die_type): Update.
9823 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9824 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9825 Update.
9826 (disassemble_dwarf_expression): Update.
9827
9828 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * dwarf2/read.h (struct dwarf2_queue_item): Add
9831 dwarf2_per_objfile parameter, assign new parameter.
9832 <per_objfile>: New field.
9833 * dwarf2/read.c (free_one_cached_comp_unit): Add
9834 dwarf2_per_objfile parameter.
9835 (queue_comp_unit): Likewise.
9836 (dw2_do_instantiate_symtab): Update.
9837 (process_psymtab_comp_unit): Update.
9838 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9839 (process_imported_unit_die): Update.
9840 (queue_and_load_dwo_tu): Update.
9841 (follow_die_offset): Update.
9842 (follow_die_sig_1): Update.
9843
9844 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9847 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9848 (read_call_site_scope): Assign per_objfile.
9849 (dwarf2_per_cu_data::objfile): Remove.
9850 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9851 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9852 dwarf2_per_objfile parameter.
9853 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9854 dwarf2_per_objfile parameter.
9855 (dwarf_expr_reg_to_entry_parameter): Add output
9856 dwarf2_per_objfile parameter.
9857 (locexpr_get_frame_base): Update.
9858 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9859 <push_dwarf_reg_entry_value>: Update.
9860 <call_site_to_target_addr>: Update.
9861 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9862 parameter.
9863 (value_of_dwarf_reg_entry): Update.
9864 (rw_pieced_value): Update.
9865 (indirect_synthetic_pointer): Update.
9866 (dwarf2_evaluate_property): Update.
9867 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9868 parameter.
9869 (locexpr_read_variable): Update.
9870 (locexpr_get_symbol_read_needs): Update.
9871 (loclist_read_variable): Update.
9872
9873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9876 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9877 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9878 parameter.
9879 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9880 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9881 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9882 parameter.
9883 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9884 sect_variable_value): Add dwarf2_per_objfile parameter.
9885 (class dwarf_evaluate_loc_desc) <dwarf_call,
9886 dwarf_variable_value>: Update.
9887 (fetch_const_value_from_synthetic_pointer): Add
9888 dwarf2_per_objfile parameter.
9889 (fetch_const_value_from_synthetic_pointer): Update.
9890 (coerced_pieced_ref): Update.
9891 (class symbol_needs_eval_context) <dwarf_call,
9892 dwarf_variable_value>: Update.
9893 (dwarf2_compile_expr_to_ax): Update.
9894
9895 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9898 parameter.
9899 (dwarf2_evaluate_loc_desc_full): Update.
9900
9901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9904 parameter.
9905 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9906 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9907 dwarf2_per_objfile parameter.
9908 (decode_debug_loc_dwo_addresses): Likewise.
9909 (dwarf2_find_location_expression): Update.
9910 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9911 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9912 parameter.
9913 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9914 parameter.
9915 (locexpr_describe_location_1): Likewise.
9916 (locexpr_describe_location): Update.
9917
9918 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9921 Remove.
9922 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9923 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9924 (dwarf2_compile_property_to_c): Update.
9925 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9926 use text offset from objfile.
9927 (locexpr_tracepoint_var_ref): Update.
9928 (locexpr_generate_c_location): Update.
9929 (loclist_describe_location): Update.
9930 (loclist_tracepoint_var_ref): Update.
9931 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9932 dwarf2_per_objfile parameter.
9933 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9934 use text offset from objfile.
9935 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9936
9937 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * dwarf2/expr.h (struct dwarf_expr_context)
9940 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9941 <offset>: Remove.
9942 <per_objfile>: New member.
9943 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9944 dwarf2_per_objfile parameter. Don't set offset, set
9945 per_objfile.
9946 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9947 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9948 a dwarf2_per_objfile object instead of an offset.
9949 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9950 constructor.
9951 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9952 to dwarf2_expr_executor constructor. Don't set offset.
9953 (dwarf2_fetch_cfa_info): Update.
9954 (struct dwarf2_frame_cache) <text_offset>: Remove.
9955 <per_objfile>: New field.
9956 (dwarf2_frame_cache): Update.
9957 (dwarf2_frame_prev_register): Update.
9958 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9959 <dwarf_evaluate_loc_desc>: Add constructor.
9960 (dwarf2_evaluate_loc_desc_full): Update.
9961 (dwarf2_locexpr_baton_eval): Update.
9962 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9963 Add constructor.
9964 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9965
9966 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9969 addr_sized_int_type>: Move to dwarf2_cu.
9970 <int_type>: Move to dwarf2_per_objfile.
9971 (struct dwarf2_per_objfile) <int_type>: Move here.
9972 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9973 addr_sized_int_type>: Move here.
9974 (read_func_scope): Update.
9975 (read_array_type): Update.
9976 (read_tag_string_type): Update.
9977 (attr_to_dynamic_prop): Update.
9978 (dwarf2_per_cu_data::int_type): Rename to...
9979 (dwarf2_per_objfile::int_type): ... this.
9980 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9981 (dwarf2_cu::addr_sized_int_type): ... this.
9982 (read_subrange_type): Update.
9983 (dwarf2_per_cu_data::addr_type): Rename to...
9984 (dwarf2_cu::addr_type): ... this.
9985 (set_die_type): Update.
9986
9987 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9988
9989 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9990 data through per_cu->cu.
9991
9992 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9995 dwarf2_per_cu_data parameter fo dwarf2_cu.
9996 (lookup_dwo_type_unit): Likewise.
9997 (read_cutu_die_from_dwo): Likewise.
9998 (lookup_dwo_unit): Likewise.
9999 (open_and_init_dwo_file): Likewise.
10000 (lookup_dwo_cutu): Likewise.
10001 (lookup_dwo_comp_unit): Likewise.
10002 (lookup_dwo_type_unit): Likewise.
10003 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10004 (cutu_reader::cutu_reader): Update.
10005
10006 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10009 parameter.
10010 (process_full_type_unit): Likewise.
10011 (process_queue): Update.
10012
10013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/read.c (recursively_compute_inclusions): Add
10016 dwarf2_per_objfile parameter.
10017 (compute_compunit_symtab_includes): Likewise.
10018 (process_cu_includes): Update.
10019
10020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10023 parameter.
10024 (create_type_unit_group): Update.
10025 (process_psymtab_comp_unit_reader): Update.
10026 (build_type_psymtabs_reader): Update.
10027
10028 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10031 object through m_this_cu->cu.
10032
10033 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10034
10035 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10036 the info parameter.
10037 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10038
10039 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10040
10041 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10042 per_objfile parameter.
10043 (load_full_type_unit): Add per_objfile parameter.
10044 (read_signatured_type): Likewise.
10045 (load_full_comp_unit): Likewise.
10046 (load_cu): Likewise.
10047 (dw2_do_instantiate_symtab): Likewise.
10048 (dw2_get_file_names): Likewise.
10049 (dw2_map_symtabs_matching_filename): Update.
10050 (dw_expand_symtabs_matching_file_matcher): Update.
10051 (dw2_map_symbol_filenames): Update.
10052 (process_psymtab_comp_unit): Add per_objfile parameter.
10053 (build_type_psymtabs_1): Update.
10054 (process_skeletonless_type_unit): Update.
10055 (dwarf2_build_psymtabs_hard): Update.
10056 (load_partial_comp_unit): Add per_objfile parameter.
10057 (scan_partial_symbols): Update.
10058 (load_full_comp_unit): Add per_objfile parameter.
10059 (process_imported_unit_die): Update.
10060 (create_cus_hash_table): Update.
10061 (find_partial_die): Update.
10062 (dwarf2_read_addr_index): Update.
10063 (follow_die_offset): Update.
10064 (dwarf2_fetch_die_loc_sect_off): Update.
10065 (dwarf2_fetch_constant_bytes): Update.
10066 (dwarf2_fetch_die_type_sect_off): Update.
10067 (follow_die_sig_1): Update.
10068 (load_full_type_unit): Add per_objfile parameter.
10069 (read_signatured_type): Likewise.
10070
10071 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10072
10073 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10074 of objfile_name.
10075
10076 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10077
10078 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10079 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10080 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10081 field.
10082 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10083 (create_cus_from_index): Update.
10084 (dwarf2_read_gdb_index): Update.
10085 (create_cus_from_debug_names): Update.
10086 (dwarf2_read_debug_names): Update.
10087 (get_abbrev_section_for_cu): Update.
10088 (create_all_comp_units): Update.
10089 (read_attribute_value): Update.
10090 (get_debug_line_section): Update.
10091 * dwarf2/index-cache.c (index_cache::store): Update.
10092 * dwarf2/index-write.c (save_gdb_index_command): Update.
10093 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10094
10095 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10096
10097 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10098 member.
10099 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10100 dwarf2_per_cu_data::per_bfd.
10101 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10102 (create_type_unit_group): Likewise.
10103 (queue_comp_unit): Remove reference to
10104 per_cu->dwarf2_per_objfile.
10105 (maybe_queue_comp_unit): Likewise.
10106 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10107 (create_cus_hash_table): Assign new field.
10108
10109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * dwarf2/read.c: Replace
10112 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10113 dwarf2_cu->per_objfile throughout.
10114
10115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10116
10117 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10118 parameter, don't use per_cu->dwarf2_per_objfile.
10119 (dw2_instantiate_symtab): Likewise.
10120 (dw2_find_last_source_symtab): Update.
10121 (dw2_map_expand_apply): Update.
10122 (dw2_lookup_symbol): Update.
10123 (dw2_expand_symtabs_for_function): Update.
10124 (dw2_expand_all_symtabs): Update.
10125 (dw2_expand_symtabs_with_fullname): Update.
10126 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10127 don't use per_cu->dwarf2_per_objfile.
10128 (dw2_expand_marked_cus): Update.
10129 (dw2_find_pc_sect_compunit_symtab): Update.
10130 (dw2_debug_names_lookup_symbol): Update.
10131 (dw2_debug_names_expand_symtabs_for_function): Update.
10132 (dw2_debug_names_map_matching_symbols): Update.
10133 (dwarf2_psymtab::expand_psymtab): Update.
10134
10135 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10136
10137 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10138 <per_objfile>: New member.
10139 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10140 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10141 call to dwarf2_cu.
10142 (cutu_reader::cutu_reader): Update.
10143 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10144
10145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10146
10147 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10148 struct dwarf2_per_objfile.
10149 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10150 dwarf2_per_bfd.
10151 * dwarf2/read.c (set_die_type): Update.
10152 (get_die_type_at_offset): Update.
10153
10154 2020-05-27 Tom Tromey <tom@tromey.com>
10155 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10158 method.
10159 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10160 get_symtab, set_symtab>: New methods.
10161 <m_symtabs>: New field.
10162 (struct dwarf2_psymtab): Derive from partial_symtab.
10163 <readin_p, get_compunit_symtab>: Declare methods.
10164 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10165 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10166 New methods.
10167 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10168 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10169 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10170 (dw2_symtab_iter_next, dw2_print_stats)
10171 (dw2_expand_symtabs_with_fullname)
10172 (dw2_expand_symtabs_matching_one)
10173 (dw_expand_symtabs_matching_file_matcher)
10174 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10175 (dw2_debug_names_iterator::next)
10176 (dw2_debug_names_map_matching_symbols)
10177 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10178 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10179 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10180 New methods.
10181 (get_compunit_symtab, process_full_comp_unit)
10182 (process_full_type_unit): Update.
10183 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10184
10185 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10186
10187 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10188 then introduce a new dwarf2_per_objfile type.
10189 <read_line_string>: Move to the new dwarf2_per_objfile type.
10190 <objfile>: Likewise.
10191 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10192 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10193 dwarf2_per_objfile->per_bfd.
10194 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10195 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10196 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10197 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10198 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10199 (dwarf2_per_objfile::locate_sections): Rename to...
10200 (dwarf2_per_bfd::locate_sections): ... this.
10201 (dwarf2_per_objfile::get_cutu): Rename to...
10202 (dwarf2_per_bfd::get_cutu): ... this.
10203 (dwarf2_per_objfile::get_cu): Rename to...
10204 (dwarf2_per_bfd::get_cu): ... this.
10205 (dwarf2_per_objfile::get_tu): Rename to...
10206 (dwarf2_per_bfd::get_tu): ... this.
10207 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10208 (dwarf2_per_bfd::allocate_per_cu): ... this.
10209 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10210 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10211 (get_gdb_index_contents_ftype): Change parameter from
10212 dwarf2_per_objfile to dwarf2_per_bfd.
10213 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10214 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10215
10216 2020-05-27 Tom Tromey <tom@tromey.com>
10217 Simon Marchi <simon.marchi@efficios.com>
10218
10219 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10220 (allocate_piece_closure): Set "per_objfile" member.
10221 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10222 (locexpr_describe_location, loclist_describe_location): Use new
10223 member.
10224 * dwarf2/read.c (read_call_site_scope)
10225 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10226 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10227 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10228 handle_data_member_location): Set per_objfile member.
10229 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10230 member.
10231 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10232
10233 2020-05-27 Tom Tromey <tom@tromey.com>
10234
10235 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10236 allocate_signatured_type>: Declare new methods.
10237 <m_num_psymtabs>: New member.
10238 (struct dwarf2_per_cu_data) <index>: New member.
10239 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10240 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10241 (create_cu_from_index_list): Use allocate_per_cu.
10242 (create_signatured_type_table_from_index)
10243 (create_signatured_type_table_from_debug_names)
10244 (create_debug_type_hash_table, add_type_unit)
10245 (read_comp_units_from_section): Use allocate_signatured_type.
10246
10247 2020-05-27 Tom Tromey <tom@tromey.com>
10248
10249 * psymtab.c (partial_map_expand_apply)
10250 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10251 (psym_lookup_global_symbol_language)
10252 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10253 (psym_print_stats, psym_expand_symtabs_for_function)
10254 (psym_map_symbol_filenames, psym_map_matching_symbols)
10255 (psym_expand_symtabs_matching)
10256 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10257 (maintenance_check_psymtabs): Update.
10258 * psympriv.h (struct partial_symtab) <readin_p,
10259 get_compunit_symtab>: Add objfile parameter.
10260 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10261 Likewise.
10262 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10263 get_compunit_symtab>: Likewise.
10264 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10265
10266 2020-05-27 Tom Tromey <tom@tromey.com>
10267
10268 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10269 member.
10270 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10271 (create_cu_from_index_list)
10272 (create_signatured_type_table_from_index)
10273 (create_signatured_type_table_from_debug_names)
10274 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10275 (dwarf2_create_include_psymtab)
10276 (create_debug_type_hash_table, add_type_unit)
10277 (create_type_unit_group, read_comp_units_from_section)
10278 (dwarf2_compute_name, create_cus_hash_table)
10279 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10280 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10281 obstack.
10282 (dw2_get_real_path): Likewise. Change argument to
10283 dwarf2_per_objfile.
10284
10285 2020-05-27 Luis Machado <luis.machado@linaro.org>
10286
10287 PR tdep/26000
10288 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10289 for ldrd (immediate).
10290
10291 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10292
10293 * command.h: Add comment giving the name of class_tui.
10294 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10295 create the fake command for the help for class_tui.
10296
10297 2020-05-26 Tom Tromey <tromey@adacore.com>
10298
10299 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10300 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10301 (val_atr): New function.
10302 (value_val_atr): Use it.
10303 * ada-valprint.c (print_optional_low_bound): Change low bound
10304 handling for enums.
10305 (val_print_packed_array_elements): Don't call discrete_position.
10306 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10307 discrete_position for enum types.
10308 * language.c (default_print_array_index): Change type.
10309 * language.h (struct language_defn) <la_print_array_index>: Add
10310 index_type parameter, change type of index_value.
10311 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10312 (default_print_array_index): Update.
10313 * valprint.c (maybe_print_array_index): Don't call
10314 value_from_longest. Update.
10315 (value_print_array_elements): Don't call discrete_position.
10316
10317 2020-05-26 Tom Tromey <tromey@adacore.com>
10318
10319 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10320 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10321
10322 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10323
10324 PR gdb/13519
10325 * avr-tdep.c (avr_integer_to_address): Return data or code
10326 address accordingly to the second 'type' argument of the
10327 function.
10328
10329 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10330
10331 * infcmd.c, inferior.h: (construct_inferior_arguments):
10332 Moved function from here to gdbsupport/common-inferior.{h,cc}
10333
10334 2020-05-23 Tom Tromey <tom@tromey.com>
10335
10336 Revert commit eca1f90c:
10337 * NEWS: Remove entry for completion styling.
10338 * completer.c (_rl_completion_prefix_display_length): Move
10339 declaration later.
10340 (gdb_fnprint): Revert.
10341 (gdb_display_match_list_1): Likewise.
10342 * cli/cli-style.c (completion_prefix_style)
10343 (completion_difference_style, completion_suffix_style): Remove.
10344 (_initialize_cli_style): Revert.
10345 * cli/cli-style.h (completion_prefix_style)
10346 (completion_difference_style, completion_suffix_style): Don't
10347 declare.
10348
10349 2020-05-24 Pedro Alves <palves@redhat.com>
10350
10351 * symtab.c (completion_list_add_name): Return boolean indication
10352 of whether the symbol matched.
10353 (completion_list_add_symbol): Don't try to remove C++ aliases if
10354 the symbol didn't match in the first place.
10355 * symtab.h (completion_list_add_name): Return bool.
10356
10357 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10358
10359 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10360 type::field.
10361
10362 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10363
10364 GDB 9.2 released.
10365
10366 2020-05-23 Tom Tromey <tom@tromey.com>
10367
10368 * NEWS: Add entry for completion styling.
10369 * completer.c (_rl_completion_prefix_display_length): Move
10370 declaration earlier.
10371 (gdb_fnprint): Use completion_style.
10372 (gdb_display_match_list_1): Likewise.
10373 * cli/cli-style.c (completion_prefix_style)
10374 (completion_difference_style, completion_suffix_style): New
10375 globals.
10376 (_initialize_cli_style): Register new globals.
10377 * cli/cli-style.h (completion_prefix_style)
10378 (completion_difference_style, completion_suffix_style): Declare.
10379
10380 2020-05-23 Pedro Alves <palves@redhat.com>
10381
10382 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10383 (parse_escape): Use ISDIGIT instead of isdigit.
10384 (puts_debug): Use gdb_isprint instead of isprint.
10385 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10386 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10387 ISSPACE instead of isspace.
10388 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10389 instead of isspace.
10390 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10391 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10392 instead of isxdigit and ISDIGIT instead of isdigit.
10393
10394 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * gdbtypes.h (struct type) <field>: New method.
10397 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10398 or type::field.
10399
10400 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10403 (TYPE_FIELDS): Use type::fields. Change all call sites that
10404 modify the propery to use type::set_fields instead.
10405
10406 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10409 type::num_fields instead.
10410
10411 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10414 methods.
10415 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10416 that modify the number of fields to use type::set_num_fields
10417 instead.
10418
10419 2020-05-22 Tom Tromey <tromey@adacore.com>
10420
10421 * compile/compile-object-load.h (munmap_list_free): Don't
10422 declare.
10423
10424 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10425
10426 * annotate.c (annotate_source_line): Update return type, add call
10427 to update current symtab and line.
10428 * annotate.h (annotate_source_line): Update return type, and
10429 extend header comment.
10430 * source.c (info_line_command): Check annotation_level before
10431 calling annotate_source_line.
10432 * stack.c (print_frame_info): If calling annotate_source_line
10433 returns true, then don't print any other source line information.
10434
10435 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10438
10439 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10440
10441 * coffread.c (patch_type): Remove NULL check before xfree.
10442 * corefile.c (set_gnutarget): Likewise.
10443 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10444 * exec.c (build_section_table): Likewise.
10445 * remote.c (remote_target::pass_signals): Likewise.
10446 * utils.c (n_spaces): Likewise.
10447 * cli/cli-script.c (document_command): Likewise.
10448 * i386-windows-tdep.c (core_process_module_section): Likewise.
10449 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10450
10451 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * symfile.c (reread_symbols): Clear objfile's section_offsets
10454 vector and section indices, re-compute them by calling
10455 sym_offsets.
10456
10457 2020-05-20 Tom Tromey <tromey@adacore.com>
10458
10459 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10460 (desc_one_bound, desc_index_type): Compute field name.
10461
10462 2020-05-20 Tom de Vries <tdevries@suse.de>
10463
10464 PR symtab/25833
10465 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10466
10467 2020-05-20 Alan Modra <amodra@gmail.com>
10468
10469 PR 25993
10470 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10471 bfd_set_filename.
10472 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10473 passed to bfd_set_filename.
10474 * symfile-mem.c (add_vsyscall_page): Likewise for string
10475 passed to symbol_file_add_from_memory.
10476 (symbol_file_add_from_memory): Make name param a const char* and
10477 don't strdup.
10478
10479 2020-05-20 Alan Modra <amodra@gmail.com>
10480
10481 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10482 rather than accessing bfd->filename directly.
10483 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10484 and use bfd_section_name.
10485 * dwarf2/frame.c (decode_frame_entry): Likewise.
10486 * exec.c (exec_set_section_address): Likewise.
10487 * solib-aix.c (solib_aix_bfd_open): Likewise.
10488 * stap-probe.c (get_stap_base_address): Likewise.
10489 * symfile.c (reread_symbols): Likewise.
10490
10491 2020-05-19 Tom Tromey <tromey@adacore.com>
10492
10493 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10494
10495 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10496
10497 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10498
10499 2020-05-19 Pedro Alves <palves@redhat.com>
10500
10501 * NEWS (set exec-file-mismatch): Adjust entry.
10502 * exec.c: Include "build-id.h".
10503 (validate_exec_file): Try to match build IDs instead of filenames.
10504 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10505 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10506 and pass down 'warn_if_slow'.
10507 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10508 gdb_bfd_open_closure to pass it down.
10509 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10510
10511 2020-05-19 Pedro Alves <palves@redhat.com>
10512
10513 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10514 * target.c (target_fileio_open_1): Rename to target_fileio_open
10515 and make extern. Use bool.
10516 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10517 (target_fileio_read_alloc_1): Adjust.
10518 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10519 (target_fileio_open_warn_if_slow): Delete declaration.
10520
10521 2020-05-19 Pedro Alves <palves@redhat.com>
10522
10523 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10524 Adjust all callers.
10525
10526 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10527
10528 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10529 whether disp is negative.
10530
10531 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * symfile.h (struct symfile_segment_data)
10534 <~symfile_segment_data>: Remove.
10535 <segment_info>: Change to std::vector.
10536 * symfile.c (default_symfile_segments): Update.
10537 * elfread.c (elf_symfile_segments): Update.
10538
10539 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10542 <segments>: New.
10543 <segment_bases, segment_sizes>: Remove.
10544 * symfile.c (default_symfile_segments): Update.
10545 * elfread.c (elf_symfile_segments): Update.
10546 * remote.c (remote_target::get_offsets): Update.
10547 * solib-target.c (solib_target_relocate_section_addresses):
10548 Update.
10549
10550 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10551
10552 * symfile.h (struct symfile_segment_data): Initialize fields.
10553 <~symfile_segment_data>: Add.
10554 (symfile_segment_data_up): New.
10555 (struct sym_fns) <sym_segments>: Return a
10556 symfile_segment_data_up.
10557 (default_symfile_segments): Return a symfile_segment_data_up.
10558 (free_symfile_segment_data): Remove.
10559 (get_symfile_segment_data): Return a symfile_segment_data_up.
10560 * symfile.c (default_symfile_segments): Likewise.
10561 (get_symfile_segment_data): Likewise.
10562 (free_symfile_segment_data): Remove.
10563 (symfile_find_segment_sections): Update.
10564 * elfread.c (elf_symfile_segments): Return a
10565 symfile_segment_data_up.
10566 * remote.c (remote_target::get_offsets): Update.
10567 * solib-target.c (solib_target_relocate_section_addresses):
10568 Update.
10569 * symfile-debug.c (debug_sym_segments): Return a
10570 symfile_segment_data_up.
10571
10572 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10573
10574 PR build/25981
10575 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10576 Hardcode register numbers.
10577
10578 PR build/25981
10579 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10580 procfs_find_LDT_entry): Remove.
10581 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10582 procfs_find_LDT_entry): Remove.
10583 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10584 Remove.
10585
10586 2020-05-17 Pedro Alves <palves@redhat.com>
10587 Andrew Burgess <andrew.burgess@embecosm.com>
10588 Keno Fischer <keno@juliacomputing.com>
10589
10590 PR gdb/25741
10591 * breakpoint.c (build_target_condition_list): Update comments.
10592 (build_target_command_list): Update comments and skip matching
10593 locations.
10594 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10595 a separate function. Simplify "set breakpoint auto-hw off"
10596 handling.
10597 (insert_breakpoints): Update comment.
10598 (tracepoint_locations_match): New parameter. For breakpoints,
10599 compare location types too, if the caller wants to.
10600 (handle_automatic_hardware_breakpoints): New functions.
10601 (bp_location_is_less_than): Also sort by location type and
10602 hardware breakpoint length.
10603 (update_global_location_list): Handle "set breakpoint auto-hw on"
10604 here.
10605 (update_breakpoint_locations): Ask breakpoint_locations_match to
10606 ignore location types.
10607
10608 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10609
10610 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10611 type::name instead.
10612
10613 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10614
10615 * gdbtypes.h (struct type) <name, set_name>: New methods.
10616 (TYPE_CODE): Use type::name. Change all call sites used to set
10617 the name to use type::set_name instead.
10618
10619 2020-05-16 Tom Tromey <tom@tromey.com>
10620
10621 * top.c (quit_force): Update.
10622 * infrun.c (handle_no_resumed): Update.
10623 * top.h (all_uis): New function.
10624 (ALL_UIS): Remove.
10625
10626 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10627
10628 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10629
10630 2020-05-16 Pedro Alves <palves@redhat.com>
10631
10632 * ia64-linux-nat.c
10633 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10634 Declare method.
10635 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10636
10637 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10640 (sparc64_adi_info): Likewise.
10641
10642 2020-05-15 Tom Tromey <tom@tromey.com>
10643
10644 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10645 block_objfile.
10646 (lookup_objfile_from_block): Remove.
10647 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10648 (lookup_global_symbol): Use block_objfile.
10649 * symtab.h (lookup_objfile_from_block): Don't declare.
10650 * printcmd.c (clear_dangling_display_expressions): Use
10651 block_objfile.
10652 * parse.c (operator_check_standard): Use block_objfile.
10653
10654 2020-05-15 Tom Tromey <tom@tromey.com>
10655
10656 * language.c (language_alloc_type_symbol): Set
10657 SYMBOL_SECTION.
10658 * symtab.c (initialize_objfile_symbol): Remove.
10659 (allocate_symbol): Remove.
10660 (allocate_template_symbol): Remove.
10661 * dwarf2/read.c (fixup_go_packaging): Use "new".
10662 (new_symbol): Use "new".
10663 (read_variable): Don't call initialize_objfile_symbol. Use
10664 "new".
10665 (read_func_scope): Use "new".
10666 * xcoffread.c (process_xcoff_symbol): Don't call
10667 initialize_objfile_symbol.
10668 (SYMBOL_DUP): Remove.
10669 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10670 "new".
10671 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10672 (allocate_template_symbol): Don't declare.
10673 (struct symbol): Add copy constructor. Change defaults.
10674 * jit.c (finalize_symtab): Use "new".
10675 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10676 Use "new".
10677 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10678 (common_block_end): Use "new".
10679 * mdebugread.c (parse_symbol): Use "new".
10680 (new_symbol): Likewise.
10681
10682 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 * NEWS: Mention changes to help and apropos.
10685
10686 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10687
10688 * command.h (enum command_class): Improve comments, document
10689 that class_alias is for user-defined aliases, give the class
10690 name for each class, remove unused class_xdb.
10691 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10692 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10693 by a precise class.
10694 * infcmd.c (_initialize_infcmd): Likewise.
10695 * reverse.c (_initialize_reverse): Likewise.
10696 * stack.c (_initialize_stack): Likewise.
10697 * symfile.c (_initialize_symfile): Likewise.
10698 * tracepoint.c (_initialize_tracepoint): Likewise.
10699
10700 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10701
10702 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10703 when their aliased command is traversed.
10704 (help_cmd): Add fput_command_names_styled call to
10705 output command name and aliases when command has an alias.
10706
10707 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10708
10709 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10710 * cli/cli-decode.c (help_cmd_list): Declare as static,
10711 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10712 a command together with the command.
10713 (fput_command_name_styled, fput_command_names_styled): New functions.
10714 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10715 fput_command_name_styled.
10716 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10717 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10718
10719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10720
10721 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10722 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10723 * command.h (cmd_show_list): Likewise.
10724 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10725 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10726
10727 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10728
10729 * unittests/command-def-selftests.c (traverse_command_structure):
10730 Verify all commands of a list have the same prefix command and
10731 that only the top cmdlist commands have a null prefix.
10732
10733 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10734
10735 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10736 as prefix, not one of its aliases.
10737 (set_cmd_prefix): Remove.
10738 (do_add_cmd): Centralize the setting of the prefix of a command, when
10739 command is defined after its full chain of prefix commands.
10740 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10741 (add_setshow_cmd_full): Likewise.
10742 (update_prefix_field_of_prefixed_commands): New function.
10743 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10744 update_prefix_field_of_prefixed_commands.
10745 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10746 addresses of remote_set_cmdlist and remote_show_cmdlist given
10747 as argument, not the address of an argument.
10748 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10749 * gdb/remote.c (_initialize_remote): Likewise.
10750
10751 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10752
10753 * cli/cli-cmds.c (alias_command): Check for an existing alias
10754 using lookup_cmd_composition, as valid_command_p is too strict
10755 and forbids aliases that are the prefix of an existing alias
10756 or command.
10757 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10758 command is properly recognised as a valid command.
10759
10760 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10761
10762 * unittests/help-doc-selftests.c: Rename to
10763 unittests/command-def-selftests.c
10764 * unittests/command-def-selftests.c (help_doc_tests): Update some
10765 comments.
10766 (command_structure_tests, traverse_command_structure): New namespace
10767 and function.
10768 (command_structure_invariants_tests): New function.
10769 (_initialize_command_def_selftests) Renamed from
10770 _initialize_help_doc_selftests, register command_structure_invariants
10771 selftest.
10772
10773 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10774
10775 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10776 an alias of 'show'.
10777
10778 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10779
10780 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10781 ada_is_fixed_point_type. Update all callers.
10782 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10783 all callers.
10784 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10785 Update all callers.
10786 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10787 print_fixed_point_type. Update all callers.
10788 * ada-valprint.c (ada_value_print_num): Replace call to
10789 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10790
10791 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10792
10793 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10794 processors.
10795 (cpu_supports_bts): Add CV_AMD case.
10796
10797 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10798 Simon Marchi <simon.marchi@efficios.com>
10799
10800 * infrun.c (stop_all_threads): Collect multiple wait events at
10801 each pass.
10802
10803 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10804
10805 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10806 type::code instead.
10807
10808 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10809
10810 * gdbtypes.h (struct type) <code, set_code>: New methods.
10811 (TYPE_CODE): Use type::code. Change all call sites used to set
10812 the code to use type::set_code instead.
10813
10814 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10815 Tom de Vries <tdevries@suse.de>
10816 Pedro Alves <palves@redhat.com>
10817
10818 PR threads/25478
10819 * infrun.c (stop_all_threads): Do NOT ignore
10820 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10821 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10822 received.
10823 (handle_no_resumed): Remove code handling a live inferior with no
10824 threads.
10825 * remote.c (has_single_non_exited_thread): New.
10826 (remote_target::update_thread_list): Do not delete a thread if is
10827 the last thread of the process.
10828 * thread.c (thread_select): Call delete_exited_threads instead of
10829 prune_threads.
10830
10831 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10832
10833 * infrun.c (stop_all_threads): Enable/disable thread events of all
10834 targets. Move a debug message denoting the end of the function
10835 into the SCOPED_EXIT block.
10836
10837 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10838
10839 * process-stratum-target.h: Include <set>.
10840 (all_non_exited_process_targets, switch_to_target_no_thread): New
10841 function declarations.
10842 * process-stratum-target.c (all_non_exited_process_targets)
10843 (switch_to_target_no_thread): New function implementations.
10844
10845 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10846
10847 * infrun.c (handle_inferior_event): Extract out a piece of code
10848 into...
10849 (mark_non_executing_threads): ...this new function.
10850
10851 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10852
10853 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10854 use.
10855
10856 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10857
10858 * regcache.c (regcache_read_pc_protected): New function
10859 implementation that returns 0 if the PC cannot read via
10860 'regcache_read_pc'.
10861 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10862 instead of 'regcache_read_pc'.
10863 (keep_going_pass_signal): Ditto.
10864
10865 2020-05-13 Tom Tromey <tromey@adacore.com>
10866
10867 * ada-lang.c (align_value): Remove.
10868 (ada_template_to_fixed_record_type_1): Use align_up.
10869
10870 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10871
10872 * async-event.c: Update the copyright year.
10873 * async-event.h: Update the copyright year.
10874
10875 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10876
10877 * objfiles.h (is_addr_in_objfile,
10878 shared_objfile_contains_address_p): Return bool.
10879 * objfile.c (is_addr_in_objfile,
10880 shared_objfile_contains_address_p): Return bool.
10881
10882 2020-05-11 Tom Tromey <tromey@adacore.com>
10883
10884 * cli/cli-cmds.c (info_command): Restore.
10885 (_initialize_cli_cmds): Use add_prefix_command for "info".
10886 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10887
10888 2020-05-11 Tom Tromey <tromey@adacore.com>
10889
10890 * ada-lang.c (ada_value_primitive_field): Now public.
10891 * ada-lang.h (ada_value_primitive_field): Declare.
10892 * ada-valprint.c (print_field_values): Use
10893 ada_value_primitive_field for wrapper fields.
10894
10895 2020-05-11 Tom de Vries <tdevries@suse.de>
10896
10897 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10898 MODULE_DOMAIN.
10899
10900 2020-05-11 Tom de Vries <tdevries@suse.de>
10901
10902 PR symtab/25941
10903 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10904 with length 0, if not gdb-produced.
10905 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10906
10907 2020-05-09 Tom de Vries <tdevries@suse.de>
10908
10909 PR gdb/25955
10910 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10911 calculation.
10912
10913 2020-05-09 Tom Tromey <tom@tromey.com>
10914
10915 * top.c (server_command): Now bool.
10916 * top.h (server_command): Now bool.
10917
10918 2020-05-08 Tom Tromey <tromey@adacore.com>
10919
10920 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10921 already being processed.
10922
10923 2020-05-08 Tom Tromey <tom@tromey.com>
10924
10925 * printcmd.c (struct display) <next>: Remove.
10926 <display>: New constructor.
10927 <exp_string>: Now a std::string.
10928 <enabled_p>: Now a bool.
10929 (display_number): Move definition earlier.
10930 (displays): Rename from display_chain. Now a std::vector.
10931 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10932 (display_command): Update.
10933 (do_one_display, disable_display)
10934 (enable_disable_display_command, do_enable_disable_display):
10935 Update.
10936 (free_display): Remove.
10937 (clear_displays): Rewrite.
10938 (delete_display): Update.
10939 (map_display_numbers): Use function_view. Remove "data"
10940 parameter. Update.
10941 (do_delete_display): Remove.
10942 (undisplay_command): Update.
10943 (do_one_display, do_displays, disable_display)
10944 (info_display_command): Update.
10945 (do_enable_disable_display): Remove.
10946 (enable_disable_display_command)
10947 (clear_dangling_display_expressions): Update.
10948
10949 2020-05-08 Tom Tromey <tom@tromey.com>
10950
10951 * symtab.c (set_symbol_cache_size)
10952 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10953 (maintenance_print_symbol_cache_statistics): Update.
10954 * symmisc.c (print_symbol_bcache_statistics)
10955 (print_objfile_statistics, maintenance_print_objfiles)
10956 (maintenance_info_symtabs, maintenance_check_symtabs)
10957 (maintenance_expand_symtabs, maintenance_info_line_tables):
10958 Update.
10959 * symfile-debug.c (set_debug_symfile): Update.
10960 * source.c (forget_cached_source_info): Update.
10961 * python/python.c (gdbpy_progspaces): Update.
10962 * psymtab.c (maintenance_info_psymtabs): Update.
10963 * probe.c (parse_probes): Update.
10964 * linespec.c (iterate_over_all_matching_symtabs)
10965 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10966 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10967 * exec.c (exec_target::close): Update.
10968 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10969 * breakpoint.c (print_one_breakpoint_location)
10970 (create_longjmp_master_breakpoint)
10971 (create_std_terminate_master_breakpoint): Update.
10972 * progspace.c (program_spaces): Now a std::vector.
10973 (maybe_new_address_space): Update.
10974 (add_program_space): Remove.
10975 (program_space::program_space): Update.
10976 (remove_program_space): Update.
10977 (number_of_program_spaces): Remove.
10978 (print_program_space, update_address_spaces): Update.
10979 * progspace.h (program_spaces): Change type.
10980 (ALL_PSPACES): Remove.
10981 (number_of_program_spaces): Don't declare.
10982 (struct program_space) <next>: Remove.
10983
10984 2020-05-08 Tom Tromey <tom@tromey.com>
10985
10986 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10987 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10988 (enable_break): Update.
10989 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10990 (frv_fdpic_find_canonical_descriptor): Update.
10991 (frv_fetch_objfile_link_map): Update.
10992 * progspace.c (program_space::free_all_objfiles): Update.
10993 (program_space::solibs): New method.
10994 * progspace.h (struct program_space) <solibs>: New method.
10995 * solist.h (master_so_list): Don't declare.
10996 (ALL_SO_LIBS): Remove.
10997 * solib.h (so_list_head): Remove.
10998 (update_solib_list): Update comment.
10999 * solib.c (master_so_list): Remove.
11000 (solib_used, update_solib_list, solib_add)
11001 (info_sharedlibrary_command, clear_solib)
11002 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11003
11004 2020-05-08 Tom Tromey <tom@tromey.com>
11005
11006 * extension.c (extension_languages): Now a std::array.
11007 (ALL_EXTENSION_LANGUAGES): Remove.
11008 (get_ext_lang_defn, get_ext_lang_of_file)
11009 (eval_ext_lang_from_control_command): Update.
11010 (finish_ext_lang_initialization)
11011 (auto_load_ext_lang_scripts_for_objfile)
11012 (ext_lang_type_printers::ext_lang_type_printers)
11013 (apply_ext_lang_type_printers)
11014 (ext_lang_type_printers::~ext_lang_type_printers)
11015 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11016 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11017 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11018 (get_matching_xmethod_workers, ext_lang_colorize)
11019 (ext_lang_before_prompt): Update.
11020 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11021
11022 2020-05-08 Tom Tromey <tom@tromey.com>
11023
11024 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11025 overload.
11026 <swap_string, m_string>: Remove.
11027 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11028 Update.
11029 * stabsread.c (define_symbol, read_type): Update.
11030 * linespec.c (find_linespec_symbols): Update.
11031 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11032 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11033 * dbxread.c (read_dbx_symtab): Update.
11034 * cp-support.h (cp_canonicalize_string_full)
11035 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11036 Return unique_xmalloc_ptr.
11037 * cp-support.c (inspect_type): Update.
11038 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11039 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11040 Likewise.
11041 * c-typeprint.c (print_name_maybe_canonical): Update.
11042 * break-catch-throw.c (check_status_exception_catchpoint):
11043 Update.
11044
11045 2020-05-08 Tom de Vries <tdevries@suse.de>
11046
11047 * infrun.c (follow_fork): Copy current_line and current_symtab to
11048 child thread.
11049
11050 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11051
11052 * async-event.c (struct async_signal_handler, struct
11053 async_event_handler): Reformat, remove typedef.
11054
11055 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11058 access thistype->main_type->dyn_prop_list directly.
11059
11060 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11063 (remove_dyn_prop): Remove. Update all users to use
11064 type::remove_dyn_prop.
11065 * gdbtypes.c (remove_dyn_prop): Rename to...
11066 (type::remove_dyn_prop): ... this.
11067
11068 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11069
11070 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11071 (add_dyn_prop): Remove. Update all users to use
11072 type::add_dyn_prop.
11073 * gdbtypes.c (add_dyn_prop): Rename to...
11074 (type::add_dyn_prop): ... this.
11075
11076 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11079 (get_dyn_prop): Remove. Update all users to use
11080 type::dyn_prop.
11081 * gdbtypes.c (get_dyn_prop): Rename to...
11082 (type::dyn_prop): ... this.
11083
11084 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11085
11086 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11087
11088 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11091 instruction, skip it if it's there.
11092
11093 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11094
11095 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11096
11097 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11098
11099 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11100 * gdbtypes.c (recursive_dump_type): Remove use of
11101 TYPE_INCOMPLETE.
11102
11103 2020-05-03 Tom Tromey <tom@tromey.com>
11104
11105 * breakpoint.c (catch_command, tcatch_command): Remove.
11106 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11107 add_show_prefix_cmd.
11108 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11109 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11110 Remove.
11111 (add_internal_problem_command): Use add_basic_prefix_cmd,
11112 add_show_prefix_cmd.
11113 * mips-tdep.c (set_mipsfpu_command): Remove.
11114 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11115 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11116 (_initialize_index_cache): Use add_basic_prefix_cmd.
11117 * memattr.c (dummy_cmd): Remove.
11118 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11119 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11120 (_initialize_tui_win): Use add_basic_prefix_cmd,
11121 add_show_prefix_cmd.
11122 * cli/cli-logging.c (set_logging_command): Remove.
11123 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11124 add_show_prefix_cmd.
11125 (show_logging_command): Remove.
11126 * target.c (target_command): Remove.
11127 (add_target): Use add_basic_prefix_cmd.
11128
11129 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11130
11131 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11132
11133 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11134
11135 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11136 info_command.
11137
11138 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11139
11140 * nbsd-nat.c (nbsd_enable_proc_events)
11141 (nbsd_nat_target::post_startup_inferior): Add.
11142 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11143 (nbsd_nat_target::update_thread_list): Rewrite.
11144 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11145 "PTRACE_LWP_CREATE".
11146 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11147
11148 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11149
11150 * stack.c (_initialize_stack): Remove duplicated creation
11151 of "frame" command and "f" alias.
11152
11153 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11154
11155 PR gdb/18706
11156 * gdbtypes.c (check_typedef): Calculate size of array of
11157 stubbed type.
11158
11159 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11160
11161 PR gdb/15559
11162 * i386-tdep.c (i386_push_dummy_call): Call
11163 i386_thiscall_push_dummy_call.
11164 (i386_thiscall_push_dummy_call): New function.
11165 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11166 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11167 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11168
11169 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * gdbarch.sh (do_read): Add shellcheck disable directive for
11172 warning SC2162.
11173
11174 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11177 "referenced but not assigned" warning.
11178
11179 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11180
11181 * gdbarch.sh: Remove code that sets fallbackdefault.
11182
11183 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11184
11185 * gdbarch.sh: Use shell operators && and || instead of
11186 -a and -o.
11187
11188 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * gdbarch.sh: Use $(...) instead of `...`.
11191
11192 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11193
11194 * gdbarch.sh: Use double quotes around variables.
11195
11196 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11197
11198 * gdbarch.sh: Use %s with printf, instead of variables in the
11199 format string.
11200
11201 2020-04-29 Tom Tromey <tromey@adacore.com>
11202
11203 PR ada/25875:
11204 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11205 type fields here.
11206 (read_enumeration_type): Call
11207 update_enumeration_type_from_children later. Update comments.
11208 (process_enumeration_scope): Don't create type fields.
11209
11210 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11211
11212 * nbsd-tdep.c: Include "xml-syscall.h".
11213 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11214
11215 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11216
11217 * nbsd-nat.c: Include "sys/wait.h".
11218 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11219 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11220 (nbsd_nat_target::remove_exec_catchpoint)
11221 (nbsd_nat_target::set_syscall_catchpoint): Add.
11222 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11223 (nbsd_nat_target::insert_exec_catchpoint)
11224 (nbsd_nat_target::remove_exec_catchpoint)
11225 (nbsd_nat_target::set_syscall_catchpoint): Add.
11226 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11227 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11228 `nbsd_get_syscall_number'.
11229
11230 2020-04-29 Tom Tromey <tom@tromey.com>
11231
11232 * stack.c (print_block_frame_labels): Remove.
11233
11234 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11235
11236 PR gdb/17320
11237 * ada-valprint.c (val_print_packed_array_elements): Move array
11238 end bracket to new line.
11239 (ada_val_print_string): Remove extra spaces before first array
11240 element.
11241 * c-valprint.c (c_value_print_array): Likewise.
11242 * m2-valprint.c (m2_print_array_contents): Likewise.
11243 (m2_value_print_inner): Likewise.
11244 * p-valprint.c (pascal_value_print_inner): Likewise.
11245 * valprint.c (generic_val_print_array): Likewise.
11246 (value_print_array_elements): Move first array element and array
11247 end bracket to new line.
11248
11249 2020-04-29 Tom de Vries <tdevries@suse.de>
11250
11251 PR symtab/25889
11252 * linespec.c (find_method): Fix ix calculation.
11253
11254 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11255
11256 * syscalls/update-netbsd.sh: New file.
11257 * syscalls/netbsd.xml: Regenerate.
11258 * data-directory/Makefile.in: Register `netbsd.xml' in
11259 `SYSCALLS_FILES'.
11260
11261 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11262
11263 * syscalls/update-freebsd.sh: Add double quotes.
11264
11265 2020-04-28 Tom Tromey <tom@tromey.com>
11266
11267 * NEWS: Update.
11268 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11269 (cmdpy_init): Allow class_tui.
11270
11271 2020-04-28 Mark Williams <mark@myosotissp.com>
11272
11273 PR gdb/24480
11274 * dwarf2read.c: Add missing assingments to list_in_scope when
11275 start_symtab was already called.
11276
11277 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11278
11279 PR gdb/25881
11280 * dwarf2/read.c (offset_map_type): Use
11281 gdb:hash_enum<sect_offset> as hash function.
11282
11283 2020-04-28 Tom de Vries <tdevries@suse.de>
11284
11285 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11286 with DW_AT_signature.
11287
11288 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11289
11290 * configure.ac: Remove check for fs_base/gs_base in
11291 user_regs_struct.
11292 * configure: Re-generate.
11293 * config.in: Re-generate.
11294 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11295 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11296 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11297
11298 2020-04-27 Luis Machado <luis.machado@linaro.org>
11299
11300 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11301 problematic inline frame unwinding situation.
11302 * frame.c (frame_id_computed_p): New function.
11303 * frame.h (frame_id_computed_p): New prototype.
11304
11305 2020-04-26 Tom Tromey <tom@tromey.com>
11306
11307 * command.h (enum command_class) <class_pseudo>: Remove.
11308
11309 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11310
11311 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11312 and whitespace.
11313
11314 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11315
11316 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11317 `PT_GET_PROCESS_STATE' block.
11318
11319 2020-04-24 Tom Tromey <tom@tromey.com>
11320
11321 * symtab.h (symbol_get_demangled_name): Don't declare.
11322 * symtab.c (symbol_get_demangled_name): Remove.
11323 (general_symbol_info::natural_name)
11324 (general_symbol_info::demangled_name): Update.
11325
11326 2020-04-24 Tom Tromey <tom@tromey.com>
11327
11328 PR rust/25025:
11329 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11330
11331 2020-04-24 Tom Tromey <tom@tromey.com>
11332
11333 PR symtab/12707:
11334 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11335 exists.
11336 (new_symbol): Likewise.
11337 * compile/compile-object-load.c (get_out_value_type): Use
11338 symbol_matches_search_name.
11339
11340 2020-04-24 Tom Tromey <tom@tromey.com>
11341
11342 * dwarf2/read.c (add_partial_symbol): Do not call
11343 compute_and_set_names.
11344
11345 2020-04-24 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11348 overload.
11349
11350 2020-04-24 Tom Tromey <tom@tromey.com>
11351
11352 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11353 (add_psymbol_to_list): New overload. Make old overload call new
11354 one.
11355 * psympriv.h (add_psymbol_to_list): New overload.
11356
11357 2020-04-24 Tom Tromey <tom@tromey.com>
11358
11359 * dwarf2/read.c (partial_die_info::read) <case
11360 DW_AT_linkage_name>: Use value_as_string.
11361 (dwarf2_string_attr): Use value_as_string.
11362 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11363 method.
11364 * dwarf2/attribute.c (attribute::value_as_string): New method.
11365
11366 2020-04-24 Tom Tromey <tom@tromey.com>
11367
11368 * symtab.c (general_symbol_info::natural_name)
11369 (general_symbol_info::demangled_name): Check for language_rust.
11370
11371 2020-04-24 Tom Tromey <tom@tromey.com>
11372
11373 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11374 (dwarf2_physname): ... from here.
11375 (partial_die_info::read): Add Rust "{" hack.
11376
11377 2020-04-24 Tom Tromey <tom@tromey.com>
11378
11379 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11380 method.
11381 (symbol_set_demangled_name): Don't declare.
11382 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11383 symbol_set_demangled_name.
11384 (general_symbol_info::set_language)
11385 (general_symbol_info::compute_and_set_names): Update.
11386 * minsyms.c (minimal_symbol_reader::install): Update.
11387 * dwarf2/read.c (new_symbol): Update.
11388
11389 2020-04-24 Tom Tromey <tromey@adacore.com>
11390
11391 PR python/23662:
11392 * python/py-type.c (convert_field): Handle
11393 FIELD_LOC_KIND_DWARF_BLOCK.
11394 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11395 (typy_get_dynamic): Nw function.
11396 (type_object_getset): Add "dynamic".
11397 * NEWS: Add entry.
11398
11399 2020-04-24 Tom Tromey <tromey@adacore.com>
11400
11401 * ada-typeprint.c (print_choices, print_variant_part)
11402 (print_record_field_types_dynamic): New functions.
11403 (print_record_field_types): Use print_record_field_types_dynamic.
11404
11405 2020-04-24 Tom Tromey <tromey@adacore.com>
11406
11407 * dwarf2/read.c (handle_data_member_location): New overload.
11408 (dwarf2_add_field): Use it.
11409 (decode_locdesc): Add "computed" parameter. Update comment.
11410 * gdbtypes.c (is_dynamic_type_internal): Also look for
11411 FIELD_LOC_KIND_DWARF_BLOCK.
11412 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11413 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11414 virtual base classes.
11415 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11416 FIELD_LOC_KIND_DWARF_BLOCK.
11417
11418 2020-04-24 Tom Tromey <tromey@adacore.com>
11419
11420 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11421 * gdbtypes.c (is_dynamic_type_internal): Check
11422 TYPE_HAS_DYNAMIC_LENGTH.
11423 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11424 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11425 New macros.
11426 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11427 constant.
11428
11429 2020-04-24 Tom Tromey <tromey@adacore.com>
11430
11431 * dwarf2/read.c (struct variant_field): Rewrite.
11432 (struct variant_part_builder): New.
11433 (struct nextfield): Remove "variant" field. Add "offset".
11434 (struct field_info): Add "current_variant_part" and
11435 "variant_parts".
11436 (alloc_discriminant_info): Remove.
11437 (alloc_rust_variant): New function.
11438 (quirk_rust_enum): Update.
11439 (dwarf2_add_field): Set "offset" member. Don't handle
11440 DW_TAG_variant_part.
11441 (offset_map_type): New typedef.
11442 (convert_variant_range, create_one_variant)
11443 (create_one_variant_part, create_variant_parts)
11444 (add_variant_property): New functions.
11445 (dwarf2_attach_fields_to_type): Call add_variant_property.
11446 (read_structure_type): Don't handle DW_TAG_variant_part.
11447 (handle_variant_part, handle_variant): New functions.
11448 (handle_struct_member_die): Use them.
11449 (process_structure_scope): Don't handle variant parts.
11450 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11451 (struct discriminant_info): Remove.
11452 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11453 (struct main_type) <flag_discriminated_union>: Remove.
11454 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11455 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11456 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11457 Update.
11458 * valops.c (value_union_variant): Remove.
11459 * value.h (value_union_variant): Don't declare.
11460
11461 2020-04-24 Tom Tromey <tromey@adacore.com>
11462
11463 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11464 (ada_value_primitive_packed_val): Update.
11465 * ada-valprint.c (ada_value_print_1): Update.
11466 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11467 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11468 just an address. Use evaluate_for_locexpr_baton.
11469 (dwarf2_evaluate_property): Update.
11470 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11471 array_view.
11472 * findvar.c (default_read_var_value): Update.
11473 * gdbtypes.c (compute_variant_fields_inner)
11474 (resolve_dynamic_type_internal): Update.
11475 (resolve_dynamic_type): Change type of valaddr parameter.
11476 * gdbtypes.h (resolve_dynamic_type): Update.
11477 * valarith.c (value_subscripted_rvalue): Update.
11478 * value.c (value_from_contents_and_address): Update.
11479
11480 2020-04-24 Tom Tromey <tromey@adacore.com>
11481
11482 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11483 "push_initial_value" parameter.
11484 (dwarf2_evaluate_property): Likewise.
11485 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11486
11487 2020-04-24 Tom Tromey <tromey@adacore.com>
11488
11489 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11490 (variant::matches, compute_variant_fields_recurse)
11491 (compute_variant_fields_inner, compute_variant_fields): New
11492 functions.
11493 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11494 Use resolved_type after type is made.
11495 (operator==): Add new cases.
11496 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11497 (struct discriminant_range, struct variant, struct variant_part):
11498 New.
11499 (union dynamic_prop_data) <variant_parts, original_type>: New
11500 members.
11501 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11502 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11503 constants.
11504 * value.c (unpack_bits_as_long): Now public.
11505 * value.h (unpack_bits_as_long): Declare.
11506
11507 2020-04-24 Tom Tromey <tromey@adacore.com>
11508
11509 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11510 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11511
11512 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11513
11514 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11515
11516 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11517
11518 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11519 (remove_fork_catchpoint, post_startup_inferior)
11520 (post_attach): Move...
11521 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11522 (remove_fork_catchpoint, post_startup_inferior)
11523 (post_attach): ...here.
11524 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11525 (remove_fork_catchpoint, post_startup_inferior)
11526 (post_attach): Move...
11527 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11528 (remove_fork_catchpoint, post_startup_inferior)
11529 (post_attach): ...here.
11530
11531 2020-04-24 Tom Tromey <tromey@adacore.com>
11532
11533 * nat/windows-nat.h (struct windows_thread_info)
11534 <pc_adjusted>: New member.
11535 * windows-nat.c (windows_fetch_one_register): Check
11536 pc_adjusted.
11537 (windows_nat_target::get_windows_debug_event)
11538 (windows_nat_target::wait): Set pc_adjusted.
11539
11540 2020-04-24 Tom de Vries <tdevries@suse.de>
11541
11542 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11543 Run gdb-add-index inside temp dir.
11544
11545 2020-04-23 Tom Tromey <tromey@adacore.com>
11546
11547 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11548 in loop.
11549
11550 2020-04-23 Luis Machado <luis.machado@linaro.org>
11551
11552 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11553 get_frame_register instead of gdbarch_unwind_pc.
11554
11555 2020-04-23 Tom de Vries <tdevries@suse.de>
11556
11557 * symtab.c (lookup_global_symbol): Prefer def over decl.
11558
11559 2020-04-23 Tom de Vries <tdevries@suse.de>
11560
11561 PR symtab/25807
11562 * block.c (best_symbol, better_symbol): Promote to external.
11563 * block.h (best_symbol, better_symbol): Declare.
11564 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11565 decl.
11566
11567 2020-04-23 Tom Tromey <tromey@adacore.com>
11568
11569 PR ada/25837:
11570 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11571 "const char *", not a "const std::string &".
11572 <name_and_matcher::operator==>: Update.
11573 * unittests/lookup_name_info-selftests.c: Change type of
11574 "result".
11575
11576 2020-04-23 Tom Tromey <tom@tromey.com>
11577
11578 * inferior.h (iterate_over_inferiors): Don't declare.
11579 * inferior.c (iterate_over_inferiors): Remove.
11580 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11581 Remove.
11582 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11583 use iterate_over_inferiors.
11584 (darwin_resume_inferior_it)
11585 (struct resume_inferior_threads_param)
11586 (darwin_resume_inferior_threads_it): Remove.
11587 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11588
11589 2020-04-23 Tom de Vries <tdevries@suse.de>
11590
11591 * blockframe.c (find_pc_partial_function): Use
11592 find_pc_sect_compunit_symtab rather than
11593 objfile->sf->qf->find_pc_sect_compunit_symtab.
11594
11595 2020-04-22 Tom de Vries <tdevries@suse.de>
11596
11597 PR symtab/25764
11598 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11599 in psymtabs.
11600
11601 2020-04-22 Tom de Vries <tdevries@suse.de>
11602
11603 PR symtab/25801
11604 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11605 symtabs.
11606
11607 2020-04-22 Tom de Vries <tdevries@suse.de>
11608
11609 PR symtab/25700
11610 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11611 CU if already created.
11612
11613 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11614
11615 * infrun.c (displaced_step_fixup): Switch to the event_thread
11616 before calling displaced_step_restore, not after.
11617
11618 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11619
11620 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11621 its inferior is not recorded by us.
11622 (record_btrace_target_open): Replace call to
11623 all_non_exited_threads () with call to current_inferior
11624 ()->non_exited_threads ().
11625 (record_btrace_target::stop_recording): Likewise.
11626 (record_btrace_target::close): Likewise.
11627 (record_btrace_target::wait): Likewise.
11628 (record_btrace_target::record_stop_replaying): Likewise.
11629
11630 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11631
11632 * btrace.c (btrace_enable): Throw an error on double enables and
11633 when enabling recording fails.
11634 (btrace_disable): Throw an error if the thread is not recorded.
11635
11636 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11637
11638 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11639 request if we do not have a thread_info.
11640
11641 2020-04-21 Tom de Vries <tdevries@suse.de>
11642
11643 PR gdb/25471
11644 * thread.c
11645 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11646 exception in get_frame_id.
11647
11648 2020-04-20 Tom Tromey <tromey@adacore.com>
11649
11650 * python/python.c (struct gdbpy_event): Mark move constructor as
11651 noexcept.
11652 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11653 constructor as noexcept.
11654 * completer.h (struct completion_result): Mark move constructor as
11655 noexcept.
11656 * completer.c (completion_result::completion_result): Use
11657 initialization style. Don't call reset_match_list.
11658
11659 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11660
11661 * MAINTAINERS (Write After Approval): Add myself.
11662
11663 2020-04-18 Tom Tromey <tom@tromey.com>
11664
11665 * windows-tdep.c (init_w32_command_list)
11666 (w32_prefix_command_valid): Restore.
11667 (_initialize_windows_tdep): Call init_w32_command_list.
11668
11669 2020-04-18 Tom Tromey <tom@tromey.com>
11670
11671 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11672 * value.c (value_fn_field): Update.
11673 * valops.c (find_function_in_inferior)
11674 (value_allocate_space_in_inferior): Update.
11675 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11676 Update.
11677 * tui/tui-source.c (tui_source_window::set_contents): Update.
11678 * symtab.c (lookup_global_or_static_symbol)
11679 (find_function_start_sal_1, skip_prologue_sal)
11680 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11681 * symmisc.c (dump_msymbols, dump_symtab_1)
11682 (maintenance_print_one_line_table): Update.
11683 * symfile.c (init_entry_point_info, section_is_mapped)
11684 (list_overlays_command, simple_read_overlay_table)
11685 (simple_overlay_update_1): Update.
11686 * stap-probe.c (handle_stap_probe): Update.
11687 * stabsread.c (dbx_init_float_type, define_symbol)
11688 (read_one_struct_field, read_enum_type, read_range_type): Update.
11689 * source.c (info_line_command): Update.
11690 * python/python.c (gdbpy_source_objfile_script)
11691 (gdbpy_execute_objfile_script): Update.
11692 * python/py-type.c (save_objfile_types): Update.
11693 * python/py-objfile.c (py_free_objfile): Update.
11694 * python/py-inferior.c (python_new_objfile): Update.
11695 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11696 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11697 (maintenance_check_psymtabs): Update.
11698 * printcmd.c (info_address_command): Update.
11699 * objfiles.h (struct objfile) <arch>: New method, from
11700 get_objfile_arch.
11701 (get_objfile_arch): Don't declare.
11702 * objfiles.c (get_objfile_arch): Remove.
11703 (filter_overlapping_sections): Update.
11704 * minsyms.c (msymbol_is_function): Update.
11705 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11706 (output_nondebug_symbol): Update.
11707 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11708 (mdebug_expand_psymtab): Update.
11709 * machoread.c (macho_add_oso_symfile): Update.
11710 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11711 Update.
11712 * linux-fork.c (checkpoint_command): Update.
11713 * linespec.c (convert_linespec_to_sals): Update.
11714 * jit.c (finalize_symtab): Update.
11715 * infrun.c (insert_exception_resume_from_probe): Update.
11716 * ia64-tdep.c (ia64_find_unwind_table): Update.
11717 * hppa-tdep.c (internalize_unwinds): Update.
11718 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11719 Update.
11720 * gcore.c (call_target_sbrk): Update.
11721 * elfread.c (record_minimal_symbol, elf_symtab_read)
11722 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11723 (elf_gnu_ifunc_resolve_by_got): Update.
11724 * dwarf2/read.c (create_addrmap_from_index)
11725 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11726 (read_debug_names_from_section)
11727 (process_psymtab_comp_unit_reader, add_partial_symbol)
11728 (add_partial_subprogram, process_full_comp_unit)
11729 (read_file_scope, read_func_scope, read_lexical_block_scope)
11730 (read_call_site_scope, dwarf2_ranges_read)
11731 (dwarf2_record_block_ranges, dwarf2_add_field)
11732 (mark_common_block_symbol_computed, read_tag_pointer_type)
11733 (read_tag_string_type, dwarf2_init_float_type)
11734 (dwarf2_init_complex_target_type, read_base_type)
11735 (partial_die_info::read, partial_die_info::read)
11736 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11737 (dwarf2_fetch_die_loc_sect_off): Update.
11738 * dwarf2/loc.c (dwarf2_find_location_expression)
11739 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11740 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11741 (dwarf2_loc_desc_get_symbol_read_needs)
11742 (locexpr_describe_location_piece, locexpr_describe_location_1)
11743 (loclist_describe_location): Update.
11744 * dwarf2/index-write.c (write_debug_names): Update.
11745 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11746 * dtrace-probe.c (dtrace_process_dof): Update.
11747 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11748 (process_one_symbol): Update.
11749 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11750 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11751 (coff_read_enum_type): Update.
11752 * cli/cli-cmds.c (edit_command, list_command): Update.
11753 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11754 * breakpoint.c (create_overlay_event_breakpoint)
11755 (create_longjmp_master_breakpoint)
11756 (create_std_terminate_master_breakpoint)
11757 (create_exception_master_breakpoint, get_sal_arch): Update.
11758 * block.c (block_gdbarch): Update.
11759 * annotate.c (annotate_source_line): Update.
11760
11761 2020-04-17 Tom Tromey <tromey@adacore.com>
11762
11763 * auto-load.c (show_auto_load_cmd): Remove.
11764 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11765 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11766 (maintenance_print_arc_command): Remove.
11767 * tui/tui-win.c (tui_command): Remove.
11768 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11769 * tui/tui-layout.c (tui_layout_command): Remove.
11770 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11771 * python/python.c (user_set_python, user_show_python): Remove.
11772 (_initialize_python): Use add_basic_prefix_cmd,
11773 add_show_prefix_cmd.
11774 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11775 (install_gdb_commands): Use add_basic_prefix_cmd,
11776 add_show_prefix_cmd.
11777 (info_guile_command): Remove.
11778 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11779 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11780 add_show_prefix_cmd.
11781 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11782 Remove do_set and do_show parameters.
11783 * cli/cli-style.c (set_style, show_style): Remove.
11784 (_initialize_cli_style): Use add_basic_prefix_cmd,
11785 add_show_prefix_cmd.
11786 (cli_style_option::add_setshow_commands): Remove do_set and
11787 do_show parameters.
11788 (cli_style_option::add_setshow_commands): Use
11789 add_basic_prefix_cmd, add_show_prefix_cmd.
11790 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11791 (set_style_name): Remove.
11792 * cli/cli-dump.c (dump_command, append_command): Remove.
11793 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11794 (tekhex_dump_command, binary_dump_command)
11795 (binary_append_command): Remove.
11796 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11797 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11798 (init_w32_command_list): Remove; move into ...
11799 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11800 * valprint.c (set_print, show_print, set_print_raw)
11801 (show_print_raw): Remove.
11802 (_initialize_valprint): Use add_basic_prefix_cmd,
11803 add_show_prefix_cmd.
11804 * typeprint.c (set_print_type, show_print_type): Remove.
11805 (_initialize_typeprint): Use add_basic_prefix_cmd,
11806 add_show_prefix_cmd.
11807 * record.c (set_record_command, show_record_command): Remove.
11808 (_initialize_record): Use add_basic_prefix_cmd,
11809 add_show_prefix_cmd.
11810 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11811 add_show_prefix_cmd.
11812 (info_command, show_command, set_debug, show_debug): Remove.
11813 * top.h (set_history, show_history): Don't declare.
11814 * top.c (set_history, show_history): Remove.
11815 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11816 (unset_tdesc_cmd): Remove.
11817 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11818 add_show_prefix_cmd.
11819 * symtab.c (info_module_command): Remove.
11820 (_initialize_symtab): Use add_basic_prefix_cmd.
11821 * symfile.c (overlay_command): Remove.
11822 (_initialize_symfile): Use add_basic_prefix_cmd.
11823 * sparc64-tdep.c (info_adi_command): Remove.
11824 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11825 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11826 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11827 add_show_prefix_cmd.
11828 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11829 (_initialize_serial): Use add_basic_prefix_cmd,
11830 add_show_prefix_cmd.
11831 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11832 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11833 add_show_prefix_cmd.
11834 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11835 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11836 add_show_prefix_cmd.
11837 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11838 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11839 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11840 add_show_prefix_cmd.
11841 * remote.c (remote_command, set_remote_cmd): Remove.
11842 (_initialize_remote): Use add_basic_prefix_cmd.
11843 * record-full.c (set_record_full_command)
11844 (show_record_full_command): Remove.
11845 (_initialize_record_full): Use add_basic_prefix_cmd,
11846 add_show_prefix_cmd.
11847 * record-btrace.c (cmd_set_record_btrace)
11848 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11849 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11850 (cmd_show_record_btrace_pt): Remove.
11851 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11852 add_show_prefix_cmd.
11853 * ravenscar-thread.c (set_ravenscar_command)
11854 (show_ravenscar_command): Remove.
11855 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11856 add_show_prefix_cmd.
11857 * mips-tdep.c (show_mips_command, set_mips_command)
11858 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11859 add_show_prefix_cmd.
11860 * maint.c (maintenance_command, maintenance_info_command)
11861 (maintenance_check_command, maintenance_print_command)
11862 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11863 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11864 add_show_prefix_cmd.
11865 (show_per_command_cmd): Remove.
11866 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11867 Remove.
11868 (maintenance_show_test_settings_cmd): Remove.
11869 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11870 add_show_prefix_cmd.
11871 * maint-test-options.c (maintenance_test_options_command):
11872 Remove.
11873 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11874 * macrocmd.c (macro_command): Remove
11875 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11876 * language.c (set_check, show_check): Remove.
11877 (_initialize_language): Use add_basic_prefix_cmd,
11878 add_show_prefix_cmd.
11879 * infcmd.c (unset_command): Remove.
11880 (_initialize_infcmd): Use add_basic_prefix_cmd.
11881 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11882 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11883 add_show_prefix_cmd.
11884 * go32-nat.c (go32_info_dos_command): Remove.
11885 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11886 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11887 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11888 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11889 (_initialize_frame): Use add_basic_prefix_cmd,
11890 add_show_prefix_cmd.
11891 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11892 (_initialize_dcache): Use add_basic_prefix_cmd,
11893 add_show_prefix_cmd.
11894 * cp-support.c (maint_cplus_command): Remove.
11895 (_initialize_cp_support): Use add_basic_prefix_cmd.
11896 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11897 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11898 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11899 add_basic_prefix_cmd, add_show_prefix_cmd.
11900 * breakpoint.c (save_command): Remove.
11901 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11902 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11903 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11904 add_show_prefix_cmd.
11905 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11906 (set_ada_command, show_ada_command): Remove.
11907 (_initialize_ada_language): Use add_basic_prefix_cmd,
11908 add_show_prefix_cmd.
11909 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11910
11911 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11912
11913 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11914 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11915
11916 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11917
11918 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11919 warning messages.
11920
11921 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11922
11923 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11924 import table is not at beginning of .idata section.
11925
11926 2020-04-16 Pedro Alves <palves@redhat.com>
11927
11928 * inferior.c (delete_inferior): Use delete operator directly
11929 instead of delete_program_space.
11930 * progspace.c (add_program_space): New, factored out from
11931 program_space::program_space.
11932 (remove_program_space): New, factored out from
11933 delete_program_space.
11934 (program_space::program_space): Remove intro comment. Rewrite.
11935 (program_space::~program_space): Remove intro comment. Call
11936 remove_program_space.
11937 (delete_program_space): Delete.
11938 * progspace.h (program_space::program_space): Make explicit. Move
11939 intro comment here, adjusted.
11940 (program_space::~program_space): Move intro comment here,
11941 adjusted.
11942 (delete_program_space): Remove.
11943
11944 2020-04-16 Tom Tromey <tromey@adacore.com>
11945
11946 * windows-nat.c (windows_nat::handle_access_violation): New
11947 function.
11948 * nat/windows-nat.h (handle_access_violation): Declare.
11949 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11950 windows-nat.c. Call handle_access_violation.
11951
11952 2020-04-16 Tom de Vries <tdevries@suse.de>
11953
11954 PR symtab/25791
11955 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11956 CUs without psymtab.
11957
11958 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11959
11960 * python/python.c (do_start_initialization): Don't call
11961 PyEval_InitThreads for Python 3.9 and beyond.
11962
11963 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11964
11965 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11966 thread functions.
11967 (obsd_nat_target::wait): Likewise.
11968
11969 2020-04-15 Tom Tromey <tromey@adacore.com>
11970
11971 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11972 (DEBUG_EXCEPT): Use debug_printf.
11973
11974 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11975
11976 * completer.c (class completion_tracker::completion_hash_entry)
11977 <hash_name>: New member function.
11978 (completion_tracker::discard_completions): New callback to hash a
11979 completion_hash_entry, pass this to htab_create_alloc.
11980
11981 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11982
11983 * windows-nat.c (windows_make_so): Warn rather than stopping with
11984 an error if realpath() fails.
11985
11986 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11987
11988 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11989 (nbsd_nat_target::info_proc): Add do_status.
11990
11991 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11992 Tom de Vries <tdevries@suse.de>
11993
11994 PR symtab/25718
11995 * psympriv.h (struct partial_symtab::read_symtab)
11996 (struct partial_symtab::expand_psymtab)
11997 (struct partial_symtab::read_dependencies): Update comments.
11998 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11999 read_symtab for includer.
12000 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12001 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12002 (struct dwarf2_include_psymtab::m_readin): Remove.
12003 (struct dwarf2_include_psymtab::includer): New member function.
12004 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12005
12006 2020-04-14 Tom de Vries <tdevries@suse.de>
12007
12008 PR symtab/25720
12009 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12010 with NULL symbol_matcher and lookup_name.
12011 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12012 and lookup_name.
12013 * dwarf2/read.c (dw2_expand_symtabs_matching)
12014 (dw2_debug_names_expand_symtabs_matching): Same.
12015 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12016 Make lookup_name a pointer. Update comment.
12017 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12018 lookup_name being a pointer.
12019 * symfile.c (expand_symtabs_matching): Same.
12020 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12021 * linespec.c (iterate_over_all_matching_symtabs): Same.
12022
12023 2020-04-13 Tom Tromey <tom@tromey.com>
12024
12025 * run-on-main-thread.c: Update include.
12026 * unittests/main-thread-selftests.c: Update include.
12027 * tui/tui-win.c: Update include.
12028 * tui/tui-io.c: Update include.
12029 * tui/tui-interp.c: Update include.
12030 * tui/tui-hooks.c: Update include.
12031 * top.h: Update include.
12032 * top.c: Update include.
12033 * ser-base.c: Update include.
12034 * remote.c: Update include.
12035 * remote-notif.c: Update include.
12036 * remote-fileio.c: Update include.
12037 * record-full.c: Update include.
12038 * record-btrace.c: Update include.
12039 * python/python.c: Update include.
12040 * posix-hdep.c: Update include.
12041 * mingw-hdep.c: Update include.
12042 * mi/mi-main.c: Update include.
12043 * mi/mi-interp.c: Update include.
12044 * main.c: Update include.
12045 * linux-nat.c: Update include.
12046 * interps.c: Update include.
12047 * infrun.c: Update include.
12048 * inf-loop.c: Update include.
12049 * event-top.c: Update include.
12050 * event-loop.c: Move to ../gdbsupport/.
12051 * event-loop.h: Move to ../gdbsupport/.
12052 * async-event.h: Update include.
12053 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12054
12055 2020-04-13 Tom Tromey <tom@tromey.com>
12056
12057 * tui/tui-win.c: Include async-event.h.
12058 * remote.c: Include async-event.h.
12059 * remote-notif.c: Include async-event.h.
12060 * record-full.c: Include async-event.h.
12061 * record-btrace.c: Include async-event.h.
12062 * infrun.c: Include async-event.h.
12063 * event-top.c: Include async-event.h.
12064 * event-loop.h: Move some declarations to async-event.h.
12065 * event-loop.c: Don't include ser-event.h or top.h. Move some
12066 code to async-event.c.
12067 * async-event.h: New file.
12068 * async-event.c: New file.
12069 * Makefile.in (COMMON_SFILES): Add async-event.c.
12070 (HFILES_NO_SRCDIR): Add async-event.h.
12071
12072 2020-04-13 Tom Tromey <tom@tromey.com>
12073
12074 * utils.c (flush_streams): New function.
12075 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12076
12077 2020-04-13 Tom Tromey <tom@tromey.com>
12078
12079 * event-loop.c (handle_file_event): Use warning, not
12080 printf_unfiltered.
12081
12082 2020-04-13 Tom Tromey <tom@tromey.com>
12083
12084 * event-loop.c: Include <chrono>.
12085
12086 2020-04-13 Tom Tromey <tom@tromey.com>
12087
12088 * gdb_select.h: Move to ../gdbsupport/.
12089 * event-loop.c: Update include path.
12090 * top.c: Update include path.
12091 * ser-base.c: Update include path.
12092 * ui-file.c: Update include path.
12093 * ser-tcp.c: Update include path.
12094 * guile/scm-ports.c: Update include path.
12095 * posix-hdep.c: Update include path.
12096 * ser-unix.c: Update include path.
12097 * gdb_usleep.c: Update include path.
12098 * mingw-hdep.c: Update include path.
12099 * inflow.c: Update include path.
12100 * infrun.c: Update include path.
12101 * event-top.c: Update include path.
12102
12103 2020-04-13 Tom Tromey <tom@tromey.com>
12104
12105 * configure: Rebuild.
12106 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12107
12108 2020-04-13 Tom Tromey <tom@tromey.com>
12109
12110 * event-loop.h (start_event_loop): Don't declare.
12111 * event-loop.c (start_event_loop): Move...
12112 * main.c (start_event_loop): ...here. Now static.
12113
12114 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12115
12116 * MAINTAINERS: Update my email address.
12117
12118 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12119
12120 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12121 IP_ALL.
12122
12123 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12124
12125 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12126 (nbsd_nat_target::info_proc): Add do_cmdline.
12127
12128 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12129
12130 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12131 (nbsd_nat_target::info_proc): Add do_cwd.
12132
12133 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12134
12135 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12136
12137 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12138
12139 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12140 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12141 (nbsd_nat_target::info_proc): New functions.
12142 * nbsd-nat.c (kinfo_get_vmmap): New function.
12143 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12144 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12145 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12146 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12147 functions.
12148 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12149 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12150 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12151 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12152 (KINFO_VME_FLAG_GROWS_DOWN): New.
12153
12154 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12155
12156 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12157 bit shift.
12158
12159 2020-04-10 Tom Tromey <tromey@adacore.com>
12160
12161 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12162
12163 2020-04-10 Tom Tromey <tromey@adacore.com>
12164
12165 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12166 separate debug files.
12167
12168 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12169
12170 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12171 Move to...
12172 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12173 ... here.
12174 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12175 Check for STATUS_WX86_BREAKPOINT.
12176 (windows_nat_target::wait): Same.
12177
12178 2020-04-10 Tom de Vries <tdevries@suse.de>
12179
12180 PR cli/25808
12181 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12182
12183 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12184
12185 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12186 (Write After Approval): Remove Tom de Vries.
12187
12188 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12189
12190 revert partially:
12191 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12192
12193 * buildsym.c (record_line): Fix undefined behavior and preserve
12194 lines at eof.
12195
12196 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12197
12198 * auxv.h (svr4_auxv_parse): New.
12199 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12200 and generic_auxv_parse.
12201 (svr4_auxv_parse): Add.
12202 * obsd-tdep.c: Include "auxv.h".
12203 (obsd_auxv_parse): Remove.
12204 (obsd_init_abi): Remove comment.
12205 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12206 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12207 * nbsd-tdep.c: Include "auxv.h".
12208 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12209
12210 2020-04-08 Tom Tromey <tromey@adacore.com>
12211
12212 * nat/windows-nat.h (last_wait_event): Don't declare.
12213 (wait_for_debug_event): Update comment.
12214 * nat/windows-nat.c (last_wait_event): Now static.
12215
12216 2020-04-08 Tom Tromey <tromey@adacore.com>
12217
12218 * windows-nat.c (wait_for_debug_event): Move to
12219 nat/windows-nat.c.
12220 * nat/windows-nat.h (wait_for_debug_event): Declare.
12221 * nat/windows-nat.c (wait_for_debug_event): Move from
12222 windows-nat.c. No longer static.
12223
12224 2020-04-08 Tom Tromey <tromey@adacore.com>
12225
12226 * windows-nat.c (get_windows_debug_event): Use
12227 fetch_pending_stop.
12228 * nat/windows-nat.h (fetch_pending_stop): Declare.
12229 * nat/windows-nat.c (fetch_pending_stop): New function.
12230
12231 2020-04-08 Tom Tromey <tromey@adacore.com>
12232
12233 * windows-nat.c (windows_continue): Use matching_pending_stop and
12234 continue_last_debug_event.
12235 * nat/windows-nat.h (matching_pending_stop)
12236 (continue_last_debug_event): Declare.
12237 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12238 (matching_pending_stop, continue_last_debug_event): New
12239 functions.
12240
12241 2020-04-08 Tom Tromey <tromey@adacore.com>
12242
12243 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12244 (handle_exception_result): Move to nat/windows-nat.h.
12245 (DEBUG_EXCEPTION_SIMPLE): Remove.
12246 (windows_nat::handle_ms_vc_exception): New function.
12247 (handle_exception): Move to nat/windows-nat.c.
12248 (get_windows_debug_event): Update.
12249 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12250 nat/windows-nat.c.
12251 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12252 (handle_exception_result): Move from windows-nat.c.
12253 (handle_exception): Declare.
12254 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12255 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12256 windows-nat.c.
12257
12258 2020-04-08 Tom Tromey <tromey@adacore.com>
12259
12260 * windows-nat.c (exception_count, event_count): Remove.
12261 (handle_exception, get_windows_debug_event)
12262 (do_initial_windows_stuff): Update.
12263
12264 2020-04-08 Tom Tromey <tromey@adacore.com>
12265
12266 * windows-nat.c (windows_nat::handle_load_dll)
12267 (windows_nat::handle_unload_dll): Rename. No longer static.
12268 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12269 Declare.
12270
12271 2020-04-08 Tom Tromey <tromey@adacore.com>
12272
12273 * complaints.h (stop_whining): Declare at top-level.
12274 (complaint): Don't declare stop_whining.
12275
12276 2020-04-08 Tom Tromey <tromey@adacore.com>
12277
12278 * windows-nat.c (windows_nat::handle_output_debug_string):
12279 Rename. No longer static.
12280 * nat/windows-nat.h (handle_output_debug_string): Declare.
12281
12282 2020-04-08 Tom Tromey <tromey@adacore.com>
12283
12284 * windows-nat.c (current_process_handle, current_process_id)
12285 (main_thread_id, last_sig, current_event, last_wait_event)
12286 (current_windows_thread, desired_stop_thread_id, pending_stops)
12287 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12288 (display_selectors, fake_create_process)
12289 (get_windows_debug_event): Update.
12290 * nat/windows-nat.h (current_process_handle, current_process_id)
12291 (main_thread_id, last_sig, current_event, last_wait_event)
12292 (current_windows_thread, desired_stop_thread_id, pending_stops)
12293 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12294 * nat/windows-nat.c (current_process_handle, current_process_id)
12295 (main_thread_id, last_sig, current_event, last_wait_event)
12296 (current_windows_thread, desired_stop_thread_id, pending_stops)
12297 (siginfo_er): New globals. Move from windows-nat.c.
12298
12299 2020-04-08 Tom Tromey <tromey@adacore.com>
12300
12301 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12302 (handle_load_dll): Update.
12303 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12304
12305 2020-04-08 Tom Tromey <tromey@adacore.com>
12306
12307 * windows-nat.c (enum thread_disposition_type): Move to
12308 nat/windows-nat.h.
12309 (windows_nat::thread_rec): Rename from thread_rec. No longer
12310 static.
12311 (windows_add_thread, windows_nat_target::fetch_registers)
12312 (windows_nat_target::store_registers, handle_exception)
12313 (windows_nat_target::resume, get_windows_debug_event)
12314 (windows_nat_target::get_tib_address)
12315 (windows_nat_target::thread_name)
12316 (windows_nat_target::thread_alive): Update.
12317 * nat/windows-nat.h (enum thread_disposition_type): Move from
12318 windows-nat.c.
12319 (thread_rec): Declare.
12320
12321 2020-04-08 Tom Tromey <tromey@adacore.com>
12322
12323 * windows-nat.c: Add "using namespace".
12324 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12325 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12326
12327 2020-04-08 Tom Tromey <tromey@adacore.com>
12328
12329 * nat/windows-nat.h (struct windows_thread_info): Declare
12330 destructor.
12331 * nat/windows-nat.c (~windows_thread_info): New.
12332
12333 2020-04-08 Tom Tromey <tromey@adacore.com>
12334
12335 PR gdb/22992
12336 * windows-nat.c (current_event): Update comment.
12337 (last_wait_event, desired_stop_thread_id): New globals.
12338 (struct pending_stop): New.
12339 (pending_stops): New global.
12340 (windows_nat_target) <stopped_by_sw_breakpoint>
12341 <supports_stopped_by_sw_breakpoint>: New methods.
12342 (windows_fetch_one_register): Add assertions. Adjust PC.
12343 (windows_continue): Handle pending stops. Suspend other threads
12344 when stepping. Use last_wait_event
12345 (wait_for_debug_event): New function.
12346 (get_windows_debug_event): Use wait_for_debug_event. Handle
12347 pending stops. Queue spurious stops.
12348 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12349 (windows_nat_target::kill): Use wait_for_debug_event.
12350 * nat/windows-nat.h (struct windows_thread_info)
12351 <stopped_at_software_breakpoint>: New field.
12352 * nat/windows-nat.c (windows_thread_info::resume): Clear
12353 stopped_at_software_breakpoint.
12354
12355 2020-04-08 Tom Tromey <tromey@adacore.com>
12356
12357 * windows-nat.c (enum thread_disposition_type): New.
12358 (thread_rec): Replace "get_context" parameter with "disposition";
12359 change type.
12360 (windows_add_thread, windows_nat_target::fetch_registers)
12361 (windows_nat_target::store_registers, handle_exception)
12362 (windows_nat_target::resume, get_windows_debug_event)
12363 (windows_nat_target::get_tib_address)
12364 (windows_nat_target::thread_name)
12365 (windows_nat_target::thread_alive): Update.
12366
12367 2020-04-08 Tom Tromey <tromey@adacore.com>
12368
12369 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12370 (windows_continue): Use windows_continue::resume.
12371 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12372 resume>: Declare new methods.
12373 * nat/windows-nat.c: New file.
12374 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12375
12376 2020-04-08 Tom Tromey <tromey@adacore.com>
12377
12378 * windows-nat.c (windows_add_thread, windows_delete_thread)
12379 (windows_nat_target::fetch_registers)
12380 (windows_nat_target::store_registers, fake_create_process)
12381 (windows_nat_target::resume, windows_nat_target::resume)
12382 (get_windows_debug_event, windows_nat_target::wait)
12383 (windows_nat_target::pid_to_str)
12384 (windows_nat_target::get_tib_address)
12385 (windows_nat_target::get_ada_task_ptid)
12386 (windows_nat_target::thread_name)
12387 (windows_nat_target::thread_alive): Use lwp, not tid.
12388
12389 2020-04-08 Tom Tromey <tromey@adacore.com>
12390
12391 * windows-nat.c (handle_exception)
12392 (windows_nat_target::thread_name): Update.
12393 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12394 <name>: Now unique_xmalloc_ptr.
12395
12396 2020-04-08 Tom Tromey <tromey@adacore.com>
12397
12398 * windows-nat.c (thread_rec)
12399 (windows_nat_target::fetch_registers): Update.
12400 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12401 Update comment.
12402 <debug_registers_changed, reload_context>: Now bool.
12403
12404 2020-04-08 Tom Tromey <tromey@adacore.com>
12405
12406 * windows-nat.c (windows_add_thread): Use new.
12407 (windows_init_thread_list, windows_delete_thread): Use delete.
12408 (get_windows_debug_event): Update.
12409 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12410 destructor, and initializers.
12411
12412 2020-04-08 Tom Tromey <tromey@adacore.com>
12413
12414 * windows-nat.c (struct windows_thread_info): Remove.
12415 * nat/windows-nat.h: New file.
12416
12417 2020-04-08 Tom Tromey <tromey@adacore.com>
12418
12419 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12420 (thread_rec, windows_add_thread, windows_delete_thread)
12421 (windows_continue): Update.
12422
12423 2020-04-08 Tom Tromey <tromey@adacore.com>
12424
12425 * windows-nat.c (struct windows_thread_info): Remove typedef.
12426 (thread_head): Remove.
12427 (thread_list): New global.
12428 (thread_rec, windows_add_thread, windows_init_thread_list)
12429 (windows_delete_thread, windows_continue): Update.
12430
12431 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12432
12433 * windows-tdep.h (windows_init_abi): Add comment.
12434 (cygwin_init_abi): New declaration.
12435 * windows-tdep.c: Split signal enumeration in two, one for
12436 Windows and one for Cygwin.
12437 (windows_gdb_signal_to_target): Only deal with signal of the
12438 Windows OS ABI.
12439 (cygwin_gdb_signal_to_target): New function.
12440 (windows_init_abi): Rename to windows_init_abi_common, don't set
12441 gdb_signal_to_target gdbarch method. Add new new function with
12442 this name.
12443 (cygwin_init_abi): New function.
12444 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12445 comment. Don't call windows_init_abi.
12446 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12447 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12448 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12449 i386_windows_init_abi_common, don't call windows_init_abi. Add
12450 a new function of this name.
12451 (i386_cygwin_init_abi): New function.
12452 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12453 OS ABI Cygwin.
12454
12455 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12456
12457 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12458 parameter.c.
12459 (dwarf2_read_gdb_index): Update.
12460
12461 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12462
12463 * nbsd-tdep.c: Include "objfiles.h".
12464 (nbsd_skip_solib_resolver): New.
12465 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12466
12467 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12468
12469 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12470 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12471 with DW_LLE_base_addressx are being emitted in DWARFv5.
12472 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12473 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12474 unsigned integer.
12475
12476 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12477
12478 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12479 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12480 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12481 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12482 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12483 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12484 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12485
12486
12487 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12488
12489 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12490 (read_loclist_index): New function definition.
12491 (lookup_loclist_base): New function definition.
12492 (read_loclist_header): New function definition.
12493 (dwarf2_cu): Add loclist_base and loclist_header field.
12494 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12495 (read_full_die_1): Read the value of DW_AT_loclists_base.
12496 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12497 (read_attribute_value): Handle DW_FORM_loclistx.
12498 (skip_one_die): Handle DW_FORM_loclistx.
12499 (loclist_header): New structure declaration.
12500 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12501
12502 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12503
12504 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12505 constructor. Remove `addr` parameter from other constructor and
12506 add `per_cu` parameter.
12507 * dwarf2/read.c (create_partial_symtab): Update.
12508
12509 2020-04-07 Tom de Vries <tdevries@suse.de>
12510
12511 PR symtab/25796
12512 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12513 (partial_die_info::fixup): Inherit has_const_value.
12514
12515 2020-04-07 Tom de Vries <tdevries@suse.de>
12516
12517 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12518 symbols without address.
12519
12520 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12521
12522 * nbsd-nat.h (struct thread_info): Add forward declaration.
12523 (nbsd_nat_target::thread_alive): Add.
12524 (nbsd_nat_target::thread_name): Likewise.
12525 (nbsd_nat_target::update_thread_list): Likewise.
12526 (update_thread_list::post_attach): Likewise.
12527 (post_attach::pid_to_str): Likewise.
12528 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12529 (nbsd_thread_lister): Add.
12530 (nbsd_nat_target::thread_alive): Likewise.
12531 (nbsd_nat_target::thread_name): Likewise.
12532 (nbsd_add_threads): Likewise.
12533 (update_thread_list::post_attach): Likewise.
12534 (nbsd_nat_target::update_thread_list): Likewise.
12535 (post_attach::pid_to_str): Likewise.
12536
12537 2020-04-06 Tom Tromey <tromey@adacore.com>
12538
12539 * ada-valprint.c (print_variant_part): Extract the variant field.
12540 (print_field_values): Use the field as the outer value when
12541 recursing.
12542
12543 2020-04-06 Tom Tromey <tromey@adacore.com>
12544
12545 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12546 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12547 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12548 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12549 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12550
12551 2020-04-06 Tom Tromey <tromey@adacore.com>
12552
12553 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12554 TYPE_CODE_ERROR.
12555
12556 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12557
12558 * nbsd-tdep.c: Include "gdbarch.h".
12559 Define enum with NetBSD signal numbers.
12560 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12561 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12562 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12563 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12564 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12565 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12566 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12567 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12568 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12569 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12570 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12571 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12572
12573 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12574
12575 PR gdb/25325
12576 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12577
12578 2020-04-03 Tom Tromey <tromey@adacore.com>
12579
12580 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12581 Read constant block.
12582
12583 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12584
12585 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12586 (gdb_bfd_get_full_section_contents): New declaration.
12587 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12588 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12589 gdb_bfd_get_full_section_contents.
12590
12591 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12592
12593 * exec.c (build_section_table): Replace internal_error with
12594 gdb_assert.
12595 (section_table_xfer_memory_partial): Likewise.
12596 * mdebugread.c (parse_partial_symbols): Likewise.
12597 * psymtab.c (lookup_partial_symbol): Likewise.
12598 * utils.c (wrap_here): Likewise.
12599
12600 2020-04-02 Tom Tromey <tromey@adacore.com>
12601
12602 * f-lang.c (build_fortran_types): Use arch_type to initialize
12603 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12604
12605 2020-04-02 Tom Tromey <tromey@adacore.com>
12606
12607 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12608 of attributes.
12609
12610 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12611 Bernd Edlinger <bernd.edlinger@hotmail.de>
12612 Tom Tromey <tromey@adacore.com>
12613
12614 * buildsym.c (buildsym_compunit::record_line): Remove
12615 deduplication code.
12616
12617 2020-04-02 Tom de Vries <tdevries@suse.de>
12618
12619 PR ada/24671
12620 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12621
12622 2020-04-02 Tom de Vries <tdevries@suse.de>
12623
12624 * dwarf2/read.c (dwarf2_gdb_index_functions,
12625 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12626 NULL.
12627 * psymtab.c (psym_lookup_global_symbol_language): New function.
12628 (psym_functions): Init psym_lookup_global_symbol_language with
12629 psym_lookup_global_symbol_language.
12630 * symfile-debug.c (debug_sym_quick_functions): Init
12631 lookup_global_symbol_language with NULL.
12632 * symfile.c (set_initial_language): Remove fixme comment.
12633 * symfile.h (struct quick_symbol_functions): Add
12634 lookup_global_symbol_language.
12635 * symtab.c (find_quick_global_symbol_language): New function.
12636 (find_main_name): Use find_quick_global_symbol_language.
12637
12638 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12639
12640 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12641
12642 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12643
12644 * buildsym.c (record_line): Fix undefined behavior and preserve
12645 lines at eof.
12646
12647 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12648
12649 * buildsym.c (record_line): Fix the resizing condition.
12650
12651 2020-04-01 Tom Tromey <tom@tromey.com>
12652
12653 * value.h (value_literal_complex): Add comment.
12654 * valops.c (value_literal_complex): Refer to value.h.
12655
12656 2020-04-01 Tom Tromey <tom@tromey.com>
12657
12658 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12659 (scalar_type): New rule, from typebase.
12660 (typebase): Use scalar_type. Recognize complex types.
12661 (field_name): Handle FLOAT_KEYWORD.
12662 (ident_tokens): Add _Complex and __complex__.
12663
12664 2020-04-01 Tom Tromey <tom@tromey.com>
12665
12666 PR exp/25299:
12667 * valarith.c (promotion_type, complex_binop): New functions.
12668 (scalar_binop): Handle complex numbers. Use promotion_type.
12669 (value_pos, value_neg, value_complement): Handle complex numbers.
12670
12671 2020-04-01 Tom Tromey <tom@tromey.com>
12672
12673 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12674 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12675 (parse_number): Handle complex numbers.
12676
12677 2020-04-01 Tom Tromey <tom@tromey.com>
12678
12679 * c-valprint.c (c_decorations): Change complex suffix to "i".
12680
12681 2020-04-01 Tom Tromey <tom@tromey.com>
12682
12683 * valprint.c (generic_value_print_complex): Use accessors.
12684 * value.h (value_real_part, value_imaginary_part): Declare.
12685 * valops.c (value_real_part, value_imaginary_part): New
12686 functions.
12687 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12688
12689 2020-04-01 Tom Tromey <tom@tromey.com>
12690
12691 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12692 (read_range_type): Update.
12693 * mdebugread.c (basic_type): Update.
12694 * go-lang.c (build_go_types): Use init_complex_type.
12695 * gdbtypes.h (struct main_type) <complex_type>: New member.
12696 (init_complex_type): Update.
12697 (arch_complex_type): Don't declare.
12698 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12699 Make name if none given. Use alloc_type_copy. Look for cached
12700 complex type.
12701 (arch_complex_type): Remove.
12702 (gdbtypes_post_init): Use init_complex_type.
12703 * f-lang.c (build_fortran_types): Use init_complex_type.
12704 * dwarf2/read.c (read_base_type): Update.
12705 * d-lang.c (build_d_types): Use init_complex_type.
12706 * ctfread.c (read_base_type): Update.
12707
12708 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12709
12710 * infrun.c (stop_all_threads): Update assertion, plus when
12711 stopping threads, take into account that we might be trying
12712 to stop an all-stop target.
12713 (stop_waiting): Call 'stop_all_threads' if there exists a
12714 non-stop target.
12715
12716 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12717
12718 * target.h (exists_non_stop_target): New function declaration.
12719 * target.c (exists_non_stop_target): New function.
12720
12721 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12722
12723 PR gdb/24789
12724 * eval.c (is_integral_or_integral_reference): New function.
12725 (evaluate_subexp_standard): Allow integer references in
12726 pointer arithmetic.
12727
12728 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12729
12730 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12731 check for no ptid in the stop reply when the target is non-stop.
12732
12733 2020-04-01 Tom Tromey <tromey@adacore.com>
12734
12735 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12736 "name" parameter to rvalue reference. Initialize m_name_holder.
12737 <lookup_name_info>: New overloads.
12738 <name>: Return gdb::string_view.
12739 <c_str>: New method.
12740 <make_ignore_params>: Update.
12741 <search_name_hash>: Update.
12742 <language_lookup_name>: Return const char *.
12743 <m_name>: Change type.
12744 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12745 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12746 (lookup_name_info::match_any): Update.
12747 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12748 Update.
12749 * minsyms.c (linkage_name_str): Update.
12750 * language.c (default_symbol_name_matcher): Update.
12751 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12752 Update.
12753 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12754 (ada_lookup_name_info::ada_lookup_name_info): Update.
12755 (literal_symbol_name_matcher): Update.
12756
12757 2020-04-01 Tom Tromey <tromey@adacore.com>
12758
12759 * psymtab.c (psymtab_search_name): Remove function.
12760 (psym_lookup_symbol): Create search name and lookup name here.
12761 (lookup_partial_symbol): Remove "name" parameter; add
12762 lookup_name.
12763 (psym_expand_symtabs_for_function): Update.
12764
12765 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12766
12767 PR tui/25597:
12768 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12769
12770 2020-03-31 Tom Tromey <tromey@adacore.com>
12771
12772 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12773 memcpy.
12774
12775 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12776
12777 * features/riscv/32bit-csr.xml: Regenerated.
12778 * features/riscv/64bit-csr.xml: Regenerated.
12779
12780 2020-03-30 Tom Tromey <tromey@adacore.com>
12781
12782 * ada-valprint.c (print_variant_part): Update.
12783 * ada-lang.h (ada_which_variant_applies): Update.
12784 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12785 outer_valaddr parameters; replace with "outer" value parameter.
12786 (to_fixed_variant_branch_type): Update.
12787
12788 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12789
12790 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12791 <list>. Remove inclusion of observable.h.
12792 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12793 (struct arch_lwp_info): New struct.
12794 (class ppc_linux_dreg_interface): New class.
12795 (struct ppc_linux_process_info): New struct.
12796 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12797 <low_new_clone, low_forget_process, low_prepare_to_resume>
12798 <copy_thread_dreg_state, mark_thread_stale>
12799 <mark_debug_registers_changed, register_hw_breakpoint>
12800 <clear_hw_breakpoint, register_wp, clear_wp>
12801 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12802 <num_memory_accesses, get_trigger_type>
12803 <create_watchpoint_request, hwdebug_point_cmp>
12804 <init_arch_lwp_info, get_arch_lwp_info>
12805 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12806 methods.
12807 <struct ptid_hash>: New inner struct.
12808 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12809 members.
12810 (saved_dabr_value, hwdebug_info, max_slots_number)
12811 (struct hw_break_tuple, struct thread_points, ppc_threads)
12812 (have_ptrace_hwdebug_interface)
12813 (hwdebug_find_thread_points_by_tid)
12814 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12815 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12816 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12817 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12818 use m_dreg_interface.
12819 (hwdebug_point_cmp): Change to...
12820 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12821 reference arguments instead of pointers.
12822 (ppc_linux_nat_target::ranged_break_num_registers): Use
12823 m_dreg_interface.
12824 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12825 m_dreg_interface. Call register_hw_breakpoint.
12826 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12827 m_dreg_interface. Call clear_hw_breakpoint.
12828 (get_trigger_type): Change to...
12829 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12830 comment.
12831 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12832 use m_dreg_interface. Call register_hw_breakpoint.
12833 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12834 use m_dreg_interface. Call clear_hw_breakpoint.
12835 (can_use_watchpoint_cond_accel): Change to...
12836 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12837 method. Update comment, use m_dreg_interface and
12838 m_process_info.
12839 (calculate_dvc): Change to...
12840 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12841 m_dreg_interface.
12842 (num_memory_accesses): Change to...
12843 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12844 (check_condition): Change to...
12845 (ppc_linux_nat_target::check_condition): ...this method.
12846 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12847 comment, use m_dreg_interface.
12848 (create_watchpoint_request): Change to...
12849 (ppc_linux_nat_target::create_watchpoint_request): ...this
12850 method. Use m_dreg_interface.
12851 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12852 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12853 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12854 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12855 (ppc_linux_nat_target::low_forget_process)
12856 (ppc_linux_nat_target::low_new_fork)
12857 (ppc_linux_nat_target::low_new_clone)
12858 (ppc_linux_nat_target::low_delete_thread)
12859 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12860 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12861 only call mark_thread_stale.
12862 (ppc_linux_thread_exit): Remove.
12863 (ppc_linux_nat_target::stopped_data_address): Change to...
12864 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12865 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12866 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12867 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12868 comment. Call low_stopped_data_address.
12869 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12870 m_dreg_interface.
12871 (ppc_linux_nat_target::masked_watch_num_registers): Use
12872 m_dreg_interface.
12873 (ppc_linux_nat_target::copy_thread_dreg_state)
12874 (ppc_linux_nat_target::mark_thread_stale)
12875 (ppc_linux_nat_target::mark_debug_registers_changed)
12876 (ppc_linux_nat_target::register_hw_breakpoint)
12877 (ppc_linux_nat_target::clear_hw_breakpoint)
12878 (ppc_linux_nat_target::register_wp)
12879 (ppc_linux_nat_target::clear_wp)
12880 (ppc_linux_nat_target::init_arch_lwp_info)
12881 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12882 (_initialize_ppc_linux_nat): Remove observer callback.
12883
12884 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12885
12886 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12887 (ppc_linux_nat_target::auxv_parse)
12888 (ppc_linux_nat_target::read_description)
12889 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12890 Move up.
12891
12892 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12893
12894 * linux-nat.h (low_new_clone): New method.
12895 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12896
12897 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12898
12899 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12900 (dbx_expand_psymtab): ... this.
12901 (start_psymtab): Update.
12902 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12903 (mdebug_expand_psymtab): ... this.
12904 (parse_partial_symbols): Update.
12905 (new_psymtab): Update.
12906 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12907 (xcoff_expand_psymtab): ... this.
12908 (xcoff_start_psymtab): Update.
12909
12910 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12911
12912 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12913 <expand_dependencies>: ... this.
12914 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12915 (partial_symtab::expand_dependencies): ... this.
12916 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12917 Update.
12918 (dwarf2_psymtab::expand_psymtab): Update.
12919 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12920 * mdebugread.c (psymtab_to_symtab_1): Update.
12921 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12922
12923 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12924
12925 * psympriv.h (discard_psymtab): Remove.
12926 * dbxread.c (dbx_end_psymtab): Update.
12927 * xcoffread.c (xcoff_end_psymtab): Update.
12928
12929 2020-03-28 Tom Tromey <tom@tromey.com>
12930
12931 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12932 comment.
12933
12934 2020-03-28 Tom Tromey <tom@tromey.com>
12935
12936 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12937
12938 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12939
12940 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12941
12942 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12943
12944 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12945
12946 2020-03-26 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12949 (mark_common_block_symbol_computed, read_tag_string_type)
12950 (attr_to_dynamic_prop, read_subrange_type): Update.
12951 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12952 to be methods on struct attribute.
12953 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12954 (read_call_site_scope, partial_die_info::read)
12955 (partial_die_info::read, lookup_die_type, follow_die_ref):
12956 Update.
12957 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12958 from dwarf2_get_ref_die_offset.
12959 (attribute::constant_value): New method, from
12960 dwarf2_get_attr_constant_value.
12961 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12962 Declare method.
12963 <constant_value>: New method.
12964
12965 2020-03-26 Tom Tromey <tom@tromey.com>
12966
12967 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12968 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12969 (dwarf_type_encoding_name): Move to stringify.c.
12970 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12971 * dwarf2/stringify.c: New file.
12972 * dwarf2/stringify.h: New file.
12973
12974 2020-03-26 Tom Tromey <tom@tromey.com>
12975
12976 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12977 Rewrite.
12978
12979 2020-03-26 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12982 methods.
12983 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12984 (lookup_ranges_base): Likewise.
12985 (read_cutu_die_from_dwo, read_full_die_1): Update.
12986
12987 2020-03-26 Tom Tromey <tom@tromey.com>
12988
12989 * dwarf2/read.c (read_import_statement, read_file_scope)
12990 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12991 (read_lexical_block_scope, read_call_site_scope)
12992 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12993 (handle_struct_member_die, process_structure_scope)
12994 (update_enumeration_type_from_children)
12995 (process_enumeration_scope, read_array_type, read_common_block)
12996 (read_namespace, read_module, read_subroutine_type): Update.
12997 (sibling_die): Remove.
12998
12999 2020-03-26 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13002 (build_type_psymtabs_reader, read_structure_type)
13003 (read_enumeration_type, read_full_die_1): Update.
13004 (dwarf2_attr_no_follow): Move to die.h.
13005 * dwarf2/die.h (struct die_info) <attr>: New method.
13006
13007 2020-03-26 Tom Tromey <tom@tromey.com>
13008
13009 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13010 <base_address>: Now an optional.
13011 (dwarf2_find_base_address, dwarf2_rnglists_process)
13012 (dwarf2_ranges_process, fill_in_loclist_baton)
13013 (dwarf2_symbol_mark_computed): Update.
13014
13015 2020-03-26 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/read.c (struct die_info): Move to die.h.
13018 * dwarf2/die.h: New file.
13019
13020 2020-03-26 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13023 * dwarf2/read.c
13024 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13025 Move to line-header.c.
13026 (read_checked_initial_length_and_offset, read_formatted_entries):
13027 Likewise.
13028 (dwarf_decode_line_header): Split into two.
13029 * dwarf2/line-header.c
13030 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13031 Move from read.c.
13032 (read_checked_initial_length_and_offset, read_formatted_entries):
13033 Likewise.
13034 (dwarf_decode_line_header): New function, split from read.c.
13035
13036 2020-03-26 Tom Tromey <tom@tromey.com>
13037
13038 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13039 Declare method.
13040 * dwarf2/read.c (read_attribute_value): Update.
13041 (dwarf2_per_objfile::read_line_string): Rename from
13042 read_indirect_line_string.
13043 (read_formatted_entries): Update.
13044
13045 2020-03-26 Tom Tromey <tom@tromey.com>
13046
13047 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13048 variable.
13049
13050 2020-03-26 Tom Tromey <tom@tromey.com>
13051
13052 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13053 const.
13054 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13055 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13056 parameter const.
13057
13058 2020-03-26 Tom Tromey <tom@tromey.com>
13059
13060 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13061 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13062 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13063 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13064
13065 2020-03-26 Tom Tromey <tom@tromey.com>
13066
13067 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13068 file_names_size, file_full_name, file_file_name>: Use const.
13069 <file_name_at, file_names>: Add const overload.
13070 * dwarf2/line-header.c (line_header::file_file_name)
13071 (line_header::file_full_name): Update.
13072
13073 2020-03-26 Tom Tromey <tom@tromey.com>
13074
13075 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13076 (macro_start_file, consume_improper_spaces)
13077 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13078 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13079 (dwarf_decode_macros): Move to macro.c.
13080 * dwarf2/macro.c: New file.
13081 * dwarf2/macro.h: New file.
13082 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13083
13084 2020-03-26 Tom Tromey <tom@tromey.com>
13085
13086 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13087 method.
13088 * dwarf2/section.c: New method. From
13089 read_indirect_string_at_offset_from.
13090 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13091 (read_indirect_string_at_offset_from): Move to section.c.
13092 (read_indirect_string_at_offset): Rewrite.
13093 (read_indirect_line_string_at_offset): Remove.
13094 (read_indirect_string, read_indirect_line_string)
13095 (dwarf_decode_macro_bytes): Update.
13096
13097 2020-03-26 Tom Tromey <tom@tromey.com>
13098
13099 * dwarf2/section.h (struct dwarf2_section_info)
13100 <overload_complaint>: Declare.
13101 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13102 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13103 Rename from dwarf2_section_buffer_overflow_complaint.
13104 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13105 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13106
13107 2020-03-26 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13110 Declare.
13111 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13112 Move from read.c.
13113 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13114 to section.c.
13115
13116 2020-03-26 Tom Tromey <tom@tromey.com>
13117
13118 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13119
13120 2020-03-26 Tom Tromey <tom@tromey.com>
13121
13122 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13123 "builder".
13124 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13125 parameter.
13126 (dwarf_decode_macros): Update.
13127
13128 2020-03-26 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2/read.c (read_attribute_value): Update.
13131 (read_indirect_string_from_dwz): Move to dwz.c; change into
13132 method.
13133 (dwarf_decode_macro_bytes): Update.
13134 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13135 * dwarf2/dwz.c: New file.
13136 * Makefile.in (COMMON_SFILES): Add dwz.c.
13137
13138 2020-03-26 Tom Tromey <tom@tromey.com>
13139
13140 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13141 * dwarf2/read.c: Add include.
13142 * dwarf2/index-write.c: Add include.
13143 * dwarf2/index-cache.c: Add include.
13144 * dwarf2/dwz.h: New file.
13145
13146 2020-03-25 Tom Tromey <tom@tromey.com>
13147
13148 * compile/compile-object-load.c (get_out_value_type): Mention
13149 correct symbol name in error message.
13150
13151 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13152
13153 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13154
13155 2020-03-25 Tom de Vries <tdevries@suse.de>
13156
13157 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13158 * symmisc.c (dump_symtab_1): Print user and includes fields.
13159 (maintenance_info_symtabs): Same.
13160
13161 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13162
13163 PR gdb/25534
13164 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13165 (riscv_regcache_cooked_write): New function.
13166 (riscv_push_dummy_call): Use new function.
13167 (riscv_return_value): Likewise.
13168
13169 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13170
13171 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13172 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13173 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13174 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13175 * infrun.c (follow_fork): Likewise.
13176 (follow_fork_inferior): Likewise.
13177 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13178 * linux-nat.h (class linux_nat_target): Likewise.
13179 * remote.c (class remote_target) <follow_fork>: Likewise.
13180 (remote_target::follow_fork): Likewise.
13181 * target-delegates.c: Re-generate.
13182 * target.c (default_follow_fork): Likewise.
13183 (target_follow_fork): Likewise.
13184 * target.h (struct target_ops) <follow_fork>: Likewise.
13185 (target_follow_fork): Likewise.
13186
13187 2020-03-24 Tom de Vries <tdevries@suse.de>
13188
13189 * psymtab.c (maintenance_info_psymtabs): Print user field.
13190
13191 2020-03-20 Tom Tromey <tromey@adacore.com>
13192
13193 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13194 const.
13195 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13196 const.
13197
13198 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13199
13200 * ptrace.m4: Don't check for ptrace declaration.
13201 * config.in: Re-generate.
13202 * configure: Re-generate.
13203 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13204 not defined.
13205
13206 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13207
13208 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13209 `PTRACE_TYPE_RET'.
13210 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13211 * sparc-nat.c (gdb_ptrace): Likewise.
13212 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13213
13214 2020-03-20 Tom Tromey <tromey@adacore.com>
13215
13216 * c-exp.y (lex_one_token): Fix assert.
13217
13218 2020-03-20 Tom Tromey <tromey@adacore.com>
13219
13220 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13221 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13222 strncpy call.
13223
13224 2020-03-20 Tom Tromey <tromey@adacore.com>
13225
13226 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13227
13228 2020-03-20 Tom Tromey <tromey@adacore.com>
13229
13230 * ada-valprint.c (print_variant_part): Remove parameters; switch
13231 to value-based API.
13232 (print_field_values): Likewise.
13233 (ada_val_print_struct_union): Likewise.
13234 (ada_value_print_1): Update.
13235
13236 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13237
13238 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13239 nbsd_nat_target instead of inf_ptrace_target.
13240 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13241 nbsd_nat_target.
13242
13243 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13244
13245 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13246 it to the ptrace call.
13247 * (store_registers): Likewise.
13248
13249 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13250
13251 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13252 it to the ptrace call.
13253 * (store_registers): Likewise.
13254
13255 2020-03-19 Luis Machado <luis.machado@linaro.org>
13256
13257 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13258 valid, fetch vg value from ptrace.
13259
13260 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13261 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13262 * inf-ptrace.c: Likewise.
13263 * (gdb_ptrace): Add.
13264 * (inf_ptrace_target::resume): Update.
13265 * (inf_ptrace_target::xfer_partial): Likewise.
13266 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13267 * (inf_ptrace_peek_poke): Update.
13268
13269 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13270
13271 * x86-bsd-nat.c (gdb_ptrace): New.
13272 * (x86bsd_dr_set): Add new argument `ptid'.
13273 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13274 x86bsd_dr_set_addr): Update.
13275
13276 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13277
13278 * remote.c (remote_target::process_stop_reply): Handle events for
13279 all threads differently.
13280
13281 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13282
13283 * completer.c (completion_tracker::remove_completion): Define new
13284 function.
13285 * completer.h (completion_tracker::remove_completion): Declare new
13286 function.
13287 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13288 when adding a C++ function symbol.
13289
13290 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * completer.c (completion_tracker::completion_hash_entry): Define
13293 new class.
13294 (advance_to_filename_complete_word_point): Call
13295 recompute_lowest_common_denominator.
13296 (completion_tracker::completion_tracker): Call discard_completions
13297 to setup the hash table.
13298 (completion_tracker::discard_completions): Allow for being called
13299 from the constructor, pass new equal function, and element deleter
13300 when constructing the hash table. Initialise new class member
13301 variables.
13302 (completion_tracker::maybe_add_completion): Remove use of
13303 m_entries_vec, and store more information into m_entries_hash.
13304 (completion_tracker::recompute_lcd_visitor): New function, most
13305 content taken from...
13306 (completion_tracker::recompute_lowest_common_denominator):
13307 ...here, this now just visits each item in the hash calling the
13308 above visitor.
13309 (completion_tracker::build_completion_result): Remove use of
13310 m_entries_vec, call recompute_lowest_common_denominator.
13311 * completer.h (completion_tracker::have_completions): Remove use
13312 of m_entries_vec.
13313 (completion_tracker::completion_hash_entry): Declare new class.
13314 (completion_tracker::recompute_lowest_common_denominator): Change
13315 function signature.
13316 (completion_tracker::recompute_lcd_visitor): Declare new function.
13317 (completion_tracker::m_entries_vec): Delete.
13318 (completion_tracker::m_entries_hash): Initialize to NULL.
13319 (completion_tracker::m_lowest_common_denominator_valid): New
13320 member variable.
13321 (completion_tracker::m_lowest_common_denominator_max_length): New
13322 member variable.
13323
13324 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13325
13326 * regformats/regdef.h: Put reg in gdb namespace.
13327
13328 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13329
13330 * i386-bsd-nat.c (gdb_ptrace): New.
13331 * (i386bsd_fetch_inferior_registers,
13332 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13333 * (i386bsd_fetch_inferior_registers,
13334 i386bsd_store_inferior_registers) Use gdb_ptrace.
13335
13336 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13337
13338 * amd64-bsd-nat.c (gdb_ptrace): New.
13339 * (amd64bsd_fetch_inferior_registers,
13340 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13341 * (amd64bsd_fetch_inferior_registers,
13342 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13343
13344 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13345
13346 * user-regs.c (user_reg::read): Rename to...
13347 (user_reg::xread): ...this.
13348 * (append_user_reg): Rename argument `read' to `xread'.
13349 * (user_reg_add_builtin): Likewise.
13350 * (user_reg_add): Likewise.
13351 * (value_of_user_reg): Likewise.
13352
13353 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13354
13355 * sparc-nat.c (gdb_ptrace): New.
13356 * sparc-nat.c (sparc_fetch_inferior_registers)
13357 (sparc_store_inferior_registers) Remove obsolete comment.
13358 * sparc-nat.c (sparc_fetch_inferior_registers)
13359 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13360 * sparc-nat.c (sparc_fetch_inferior_registers)
13361 (sparc_store_inferior_registers) Use gdb_ptrace.
13362
13363 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13364
13365 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13366 it to the ptrace call.
13367 * sh-nbsd-nat.c (store_registers): Likewise.
13368
13369 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13370
13371 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13372 nbsd_nat_target instead of inf_ptrace_target.
13373 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13374 nbsd_nat_target.
13375
13376 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13377
13378 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13379
13380 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13381
13382 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13383 <sys/sysctl.h>.
13384 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13385
13386 2020-03-17 Tom de Vries <tdevries@suse.de>
13387
13388 PR gdb/23710
13389 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13390 fields.
13391 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13392 fields.
13393 (process_imported_unit_die): Skip import of c++ CUs.
13394
13395 2020-03-16 Tom Tromey <tom@tromey.com>
13396
13397 * p-valprint.c (pascal_object_print_value): Initialize
13398 base_value.
13399
13400 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13401 Shahab Vahedi <shahab@synopsys.com>
13402
13403 * Makefile.in: Add arch/arc.o
13404 * configure.tgt: Likewise.
13405 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13406 (_initialize_arc_tdep): Don't initialize old target descriptions.
13407 (arc_read_description): New function to cache target descriptions.
13408 * arc-tdep.h (arc_read_description): Add proto type.
13409 * arch/arc.c: New file.
13410 * arch/arc.h: Likewise.
13411 * features/Makefile: Replace old target descriptions with new.
13412 * features/arc-arcompact.c: Remove.
13413 * features/arc-arcompact.xml: Likewise.
13414 * features/arc-v2.c: Likewise
13415 * features/arc-v2.xml: Likewise
13416 * features/arc/aux-arcompact.xml: New file.
13417 * features/arc/aux-v2.xml: Likewise.
13418 * features/arc/core-arcompact.xml: Likewise.
13419 * features/arc/core-v2.xml: Likewise.
13420 * features/arc/aux-arcompact.c: Generate.
13421 * features/arc/aux-v2.c: Likewise.
13422 * features/arc/core-arcompact.c: Likewise.
13423 * features/arc/core-v2.c: Likewise.
13424 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13425
13426 2020-03-16 Tom Tromey <tromey@adacore.com>
13427
13428 PR gdb/25663:
13429 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13430 putting value into bcache.
13431
13432 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13433
13434 PR gdb/21500
13435 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13436 to...
13437 (amd64_windows_init_abi_common): ... this. Don't set size of
13438 long type.
13439 (amd64_windows_init_abi): New function.
13440 (amd64_cygwin_init_abi): New function.
13441 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13442 the Cygwin OS ABI.
13443 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13444 comment.
13445
13446 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13447
13448 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13449 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13450 (pe_import_directory_entry): New struct type.
13451 (is_linked_with_cygwin_dll): New function.
13452 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13453 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13454 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13455
13456 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13457
13458 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13459 i386_cygwin_core_osabi_sniffer.
13460
13461 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13462
13463 * i386-cygwin-tdep.c: Rename to...
13464 * i386-windows-tdep.c: ... this.
13465 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13466 i386-windows-tdep.c.
13467 * configure.tgt: Likewise.
13468
13469 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13470
13471 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13472 * osabi.c (gdb_osabi_names): Add "Windows".
13473 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13474 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13475 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13476 i386_cygwin_osabi_sniffer.
13477 (_initialize_i386_cygwin_tdep): Register OS ABI
13478 GDB_OSABI_WINDOWS for i386.
13479 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13480 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13481 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13482 for x86-64.
13483 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13484 when the target matches '*-*-mingw*'.
13485
13486 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13487
13488 * defs.h (enum gdb_osabi): Move to...
13489 * osabi.h (enum gdb_osabi): ... here.
13490 * gdbarch.sh: Include osabi.h in gdbarch.h.
13491 * gdbarch.h: Re-generate.
13492
13493 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13494
13495 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13496 function.
13497 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13498
13499 2020-03-14 Tom Tromey <tom@tromey.com>
13500
13501 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13502 for C++.
13503 (c_type_print_modifier): Likewise. Add "language" parameter.
13504 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13505 (c_type_print_base_1): Update.
13506 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13507 constants.
13508 * type-stack.c (type_stack::insert): Handle tp_atomic and
13509 tp_restrict.
13510 (type_stack::follow_type_instance_flags): Likewise.
13511 (type_stack::follow_types): Likewise. Merge type-following code.
13512 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13513 (space_identifier, cv_with_space_id)
13514 (const_or_volatile_or_space_identifier_noopt)
13515 (const_or_volatile_or_space_identifier): Remove.
13516 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13517 rules.
13518 (ptr_operator, typebase): Update.
13519 (enum token_flag) <FLAG_C>: New constant.
13520 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13521 "_Atomic".
13522 (lex_one_token): Handle FLAG_C.
13523
13524 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13525
13526 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13527 it to the ptrace call.
13528 * m68k-bsd-nat.c (store_registers): Likewise.
13529
13530 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13531
13532 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13533 gdb_byte *.
13534 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13535 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13536 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13537
13538 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13539
13540 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13541 nbsd_nat_target instead of inf_ptrace_target.
13542 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13543 nbsd_nat_target.
13544
13545 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13546
13547 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13548 register_t.
13549
13550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13551
13552 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13553 it to the ptrace call.
13554 * alpha-bsd-nat.c (store_registers): Likewise.
13555
13556 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13557
13558 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13559 includes.
13560 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13561 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13562 fill_fpregset): Likewise.
13563
13564 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13565
13566 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13567 nbsd_nat_target instead of inf_ptrace_target.
13568 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13569 nbsd_nat_target.
13570
13571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13572
13573 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13574 register_t.
13575
13576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13577
13578 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13579 it to the ptrace call.
13580 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13581 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13582 * arm-nbsd-nat.c (store_register): Likewise.
13583 * arm-nbsd-nat.c (store_regs): Likewise.
13584 * arm-nbsd-nat.c (store_fp_register): Likewise.
13585 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13586
13587 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13588
13589 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13590 nbsd_nat_target instead of inf_ptrace_target.
13591 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13592 nbsd_nat_target.
13593
13594 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13595
13596 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13597 it to the ptrace call.
13598 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13599
13600 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13601
13602 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13603 it to the ptrace call.
13604 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13605
13606 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13607
13608 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13609 gdb_byte *.
13610 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13611
13612 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13613
13614 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13615 instead of inf_ptrace_target.
13616 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13617 nbsd_nat_target.
13618
13619 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13620
13621 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13622 register_t.
13623
13624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13625
13626 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13627 register_t.
13628
13629 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13630
13631 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13632 register_t.
13633
13634 2020-03-13 Tom Tromey <tom@tromey.com>
13635
13636 * value.h (val_print): Don't declare.
13637 * valprint.h (val_print_array_elements)
13638 (val_print_scalar_formatted, generic_val_print): Don't declare.
13639 * valprint.c (generic_val_print_array): Take a struct value.
13640 (generic_val_print_ptr, generic_val_print_memberptr)
13641 (generic_val_print_bool, generic_val_print_int)
13642 (generic_val_print_char, generic_val_print_complex)
13643 (generic_val_print): Remove.
13644 (generic_value_print): Update.
13645 (do_val_print): Remove unused parameters. Don't call
13646 la_val_print.
13647 (val_print): Remove.
13648 (common_val_print): Update. Don't call value_check_printable.
13649 (val_print_scalar_formatted, val_print_array_elements): Remove.
13650 * rust-lang.c (rust_val_print): Remove.
13651 (rust_language_defn): Update.
13652 * p-valprint.c (pascal_val_print): Remove.
13653 (pascal_value_print_inner): Update.
13654 (pascal_object_print_val_fields, pascal_object_print_val):
13655 Remove.
13656 (pascal_object_print_static_field): Update.
13657 * p-lang.h (pascal_val_print): Don't declare.
13658 * p-lang.c (pascal_language_defn): Update.
13659 * opencl-lang.c (opencl_language_defn): Update.
13660 * objc-lang.c (objc_language_defn): Update.
13661 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13662 * m2-lang.h (m2_val_print): Don't declare.
13663 * m2-lang.c (m2_language_defn): Update.
13664 * language.h (struct language_defn) <la_val_print>: Remove.
13665 * language.c (unk_lang_value_print_inner): Rename. Change
13666 argument types.
13667 (unknown_language_defn, auto_language_defn): Update.
13668 * go-valprint.c (go_val_print): Remove.
13669 * go-lang.h (go_val_print): Don't declare.
13670 * go-lang.c (go_language_defn): Update.
13671 * f-valprint.c (f_val_print): Remove.
13672 * f-lang.h (f_value_print): Don't declare.
13673 * f-lang.c (f_language_defn): Update.
13674 * d-valprint.c (d_val_print): Remove.
13675 * d-lang.h (d_value_print): Don't declare.
13676 * d-lang.c (d_language_defn): Update.
13677 * cp-valprint.c (cp_print_value_fields)
13678 (cp_print_value_fields_rtti, cp_print_value): Remove.
13679 (cp_print_static_field): Update.
13680 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13681 (c_val_print_struct, c_val_print_union, c_val_print_int)
13682 (c_val_print_memberptr, c_val_print): Remove.
13683 * c-lang.h (c_val_print_array, cp_print_value_fields)
13684 (cp_print_value_fields_rtti): Don't declare.
13685 * c-lang.c (c_language_defn, cplus_language_defn)
13686 (asm_language_defn, minimal_language_defn): Update.
13687 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13688 (ada_val_print_enum): Take a struct value.
13689 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13690 (ada_val_print): Remove.
13691 (ada_value_print_1): Update.
13692 (printable_val_type): Remove.
13693 * ada-lang.h (ada_val_print): Don't declare.
13694 * ada-lang.c (ada_language_defn): Update.
13695
13696 2020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * valprint.c (do_val_print): Update.
13699 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13700 a struct value.
13701 (value_to_value_object_no_release): Declare.
13702 * python/py-value.c (value_to_value_object_no_release): New
13703 function.
13704 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13705 struct value.
13706 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13707 function.
13708 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13709 a struct value.
13710 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13711 Declare.
13712 (gdbscm_apply_val_pretty_printer): Take a struct value.
13713 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13714 value.
13715 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13716 value.
13717 * extension-priv.h (struct extension_language_ops)
13718 <apply_val_pretty_printer>: Take a struct value.
13719 * cp-valprint.c (cp_print_value): Create a struct value.
13720 (cp_print_value): Update.
13721
13722 2020-03-13 Tom Tromey <tom@tromey.com>
13723
13724 * ada-valprint.c (print_field_values): Call common_val_print.
13725
13726 2020-03-13 Tom Tromey <tom@tromey.com>
13727
13728 * ada-valprint.c (val_print_packed_array_elements): Remove
13729 bitoffset and val parameters. Call common_val_print.
13730 (ada_val_print_string): Remove offset, address, and original_value
13731 parameters.
13732 (ada_val_print_array): Update.
13733 (ada_value_print_array): New function.
13734 (ada_value_print_1): Call it.
13735
13736 2020-03-13 Tom Tromey <tom@tromey.com>
13737
13738 * ada-valprint.c (ada_value_print): Use common_val_print.
13739
13740 2020-03-13 Tom Tromey <tom@tromey.com>
13741
13742 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13743
13744 2020-03-13 Tom Tromey <tom@tromey.com>
13745
13746 * ada-valprint.c (ada_value_print_num): New function.
13747 (ada_value_print_1): Use it.
13748
13749 2020-03-13 Tom Tromey <tom@tromey.com>
13750
13751 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13752
13753 2020-03-13 Tom Tromey <tom@tromey.com>
13754
13755 * ada-valprint.c (ada_value_print_ptr): New function.
13756 (ada_value_print_1): Use it.
13757
13758 2020-03-13 Tom Tromey <tom@tromey.com>
13759
13760 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13761 call common_val_print.
13762 (ada_val_print_1): Update.
13763 (ada_value_print_1): New function.
13764 (ada_value_print_inner): Rewrite.
13765
13766 2020-03-13 Tom Tromey <tom@tromey.com>
13767
13768 * cp-valprint.c (cp_print_value_fields): Update.
13769 (cp_print_value): New function.
13770
13771 2020-03-13 Tom Tromey <tom@tromey.com>
13772
13773 * m2-valprint.c (m2_value_print_inner): Use
13774 cp_print_value_fields.
13775 * cp-valprint.c (cp_print_value_fields): New function.
13776 * c-valprint.c (c_value_print_struct): New function.
13777 (c_value_print_inner): Use c_value_print_struct.
13778 * c-lang.h (cp_print_value_fields): Declare.
13779
13780 2020-03-13 Tom Tromey <tom@tromey.com>
13781
13782 * c-valprint.c (c_value_print_array): New function.
13783 (c_value_print_inner): Use it.
13784
13785 2020-03-13 Tom Tromey <tom@tromey.com>
13786
13787 * c-valprint.c (c_value_print_memberptr): New function.
13788 (c_value_print_inner): Use it.
13789
13790 2020-03-13 Tom Tromey <tom@tromey.com>
13791
13792 * c-valprint.c (c_value_print_int): New function.
13793 (c_value_print_inner): Use it.
13794
13795 2020-03-13 Tom Tromey <tom@tromey.com>
13796
13797 * c-valprint.c (c_value_print_ptr): New function.
13798 (c_value_print_inner): Use it.
13799
13800 2020-03-13 Tom Tromey <tom@tromey.com>
13801
13802 * c-valprint.c (c_value_print_inner): Rewrite.
13803
13804 2020-03-13 Tom Tromey <tom@tromey.com>
13805
13806 * valprint.c (generic_value_print_complex): New function.
13807 (generic_value_print): Use it.
13808
13809 2020-03-13 Tom Tromey <tom@tromey.com>
13810
13811 * valprint.c (generic_val_print_float): Don't call
13812 val_print_scalar_formatted.
13813 (generic_val_print, generic_value_print): Update.
13814
13815 2020-03-13 Tom Tromey <tom@tromey.com>
13816
13817 * valprint.c (generic_value_print_char): New function
13818 (generic_value_print): Use it.
13819
13820 2020-03-13 Tom Tromey <tom@tromey.com>
13821
13822 * valprint.c (generic_value_print_int): New function.
13823 (generic_value_print): Use it.
13824
13825 2020-03-13 Tom Tromey <tom@tromey.com>
13826
13827 * valprint.c (generic_value_print_bool): New function.
13828 (generic_value_print): Use it.
13829
13830 2020-03-13 Tom Tromey <tom@tromey.com>
13831
13832 * valprint.c (generic_val_print_func): Simplify.
13833 (generic_val_print, generic_value_print): Update.
13834
13835 2020-03-13 Tom Tromey <tom@tromey.com>
13836
13837 * valprint.c (generic_val_print_flags): Remove.
13838 (generic_val_print, generic_value_print): Update.
13839 (val_print_type_code_flags): Add original_value parameter.
13840
13841 2020-03-13 Tom Tromey <tom@tromey.com>
13842
13843 * valprint.c (generic_val_print): Update.
13844 (generic_value_print): Update.
13845 * valprint.c (generic_val_print_enum): Don't call
13846 val_print_scalar_formatted.
13847
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13851 * valprint.c (generic_value_print_ptr): New function.
13852
13853 2020-03-13 Tom Tromey <tom@tromey.com>
13854
13855 * valprint.c (generic_value_print): Rewrite.
13856
13857 2020-03-13 Tom Tromey <tom@tromey.com>
13858
13859 * p-valprint.c (pascal_object_print_value_fields)
13860 (pascal_object_print_value): New functions.
13861
13862 2020-03-13 Tom Tromey <tom@tromey.com>
13863
13864 * p-valprint.c (pascal_value_print_inner): Rewrite.
13865
13866 2020-03-13 Tom Tromey <tom@tromey.com>
13867
13868 * f-valprint.c (f_value_print_innner): Rewrite.
13869
13870 2020-03-13 Tom Tromey <tom@tromey.com>
13871
13872 * m2-valprint.c (m2_print_unbounded_array): New overload.
13873 (m2_print_unbounded_array): Update.
13874 (m2_print_array_contents): Take a struct value.
13875 (m2_value_print_inner): Rewrite.
13876
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13878
13879 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13880 (d_value_print_inner): New function.
13881 * d-lang.h (d_value_print_inner): Declare.
13882 * d-lang.c (d_language_defn): Use d_value_print_inner.
13883
13884 2020-03-13 Tom Tromey <tom@tromey.com>
13885
13886 * go-valprint.c (go_value_print_inner): New function.
13887 * go-lang.h (go_value_print_inner): Declare.
13888 * go-lang.c (go_language_defn): Use go_value_print_inner.
13889
13890 2020-03-13 Tom Tromey <tom@tromey.com>
13891
13892 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13893 API.
13894 (rust_val_print): Rewrite.
13895 (rust_value_print_inner): New function, from rust_val_print.
13896 (rust_language_defn): Use rust_value_print_inner.
13897
13898 2020-03-13 Tom Tromey <tom@tromey.com>
13899
13900 * ada-valprint.c (ada_value_print_inner): New function.
13901 * ada-lang.h (ada_value_print_inner): Declare.
13902 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13903
13904 2020-03-13 Tom Tromey <tom@tromey.com>
13905
13906 * f-valprint.c (f_value_print_innner): New function.
13907 * f-lang.h (f_value_print_innner): Declare.
13908 * f-lang.c (f_language_defn): Use f_value_print_innner.
13909
13910 2020-03-13 Tom Tromey <tom@tromey.com>
13911
13912 * p-valprint.c (pascal_value_print_inner): New function.
13913 * p-lang.h (pascal_value_print_inner): Declare.
13914 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13915
13916 2020-03-13 Tom Tromey <tom@tromey.com>
13917
13918 * m2-valprint.c (m2_value_print_inner): New function.
13919 * m2-lang.h (m2_value_print_inner): Declare.
13920 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13921
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13923
13924 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13925 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13926 * c-valprint.c (c_value_print_inner): New function.
13927 * c-lang.h (c_value_print_inner): Declare.
13928 * c-lang.c (c_language_defn, cplus_language_defn)
13929 (asm_language_defn, minimal_language_defn): Use
13930 c_value_print_inner.
13931
13932 2020-03-13 Tom Tromey <tom@tromey.com>
13933
13934 * p-valprint.c (pascal_object_print_value_fields): Now static.
13935 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13936
13937 2020-03-13 Tom Tromey <tom@tromey.com>
13938
13939 * c-valprint.c (c_val_print_array): Simplify.
13940
13941 2020-03-13 Tom Tromey <tom@tromey.com>
13942
13943 * valprint.c (value_print_array_elements): New function.
13944 * valprint.h (value_print_array_elements): Declare.
13945
13946 2020-03-13 Tom Tromey <tom@tromey.com>
13947
13948 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13949 * mips-tdep.c (mips_print_register): Use
13950 value_print_scalar_formatted.
13951
13952 2020-03-13 Tom Tromey <tom@tromey.com>
13953
13954 * valprint.h (value_print_scalar_formatted): Declare.
13955 * valprint.c (value_print_scalar_formatted): New function.
13956
13957 2020-03-13 Tom Tromey <tom@tromey.com>
13958
13959 * valprint.h (generic_value_print): Declare.
13960 * valprint.c (generic_value_print): New function.
13961
13962 2020-03-13 Tom Tromey <tom@tromey.com>
13963
13964 * valprint.c (do_val_print): Call la_value_print_inner, if
13965 available.
13966 * rust-lang.c (rust_language_defn): Update.
13967 * p-lang.c (pascal_language_defn): Update.
13968 * opencl-lang.c (opencl_language_defn): Update.
13969 * objc-lang.c (objc_language_defn): Update.
13970 * m2-lang.c (m2_language_defn): Update.
13971 * language.h (struct language_defn) <la_value_print_inner>: New
13972 member.
13973 * language.c (unknown_language_defn, auto_language_defn): Update.
13974 * go-lang.c (go_language_defn): Update.
13975 * f-lang.c (f_language_defn): Update.
13976 * d-lang.c (d_language_defn): Update.
13977 * c-lang.c (c_language_defn, cplus_language_defn)
13978 (asm_language_defn, minimal_language_defn): Update.
13979 * ada-lang.c (ada_language_defn): Update.
13980
13981 2020-03-13 Tom Tromey <tom@tromey.com>
13982
13983 * c-valprint.c (c_value_print): Use common_val_print.
13984
13985 2020-03-13 Tom Tromey <tom@tromey.com>
13986
13987 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13988
13989 2020-03-13 Tom Tromey <tom@tromey.com>
13990
13991 * f-valprint.c (f77_print_array_1, f_val_print): Use
13992 common_val_print.
13993
13994 2020-03-13 Tom Tromey <tom@tromey.com>
13995
13996 * riscv-tdep.c (riscv_print_one_register_info): Use
13997 common_val_print.
13998
13999 2020-03-13 Tom Tromey <tom@tromey.com>
14000
14001 * mi/mi-main.c (output_register): Use common_val_print.
14002
14003 2020-03-13 Tom Tromey <tom@tromey.com>
14004
14005 * infcmd.c (default_print_one_register_info): Use
14006 common_val_print.
14007
14008 2020-03-13 Tom Tromey <tom@tromey.com>
14009
14010 * valprint.h (common_val_print_checked): Declare.
14011 * valprint.c (common_val_print_checked): New function.
14012 * stack.c (print_frame_arg): Use common_val_print_checked.
14013
14014 2020-03-13 Tom Tromey <tom@tromey.com>
14015
14016 * valprint.c (do_val_print): New function, from val_print.
14017 (val_print): Use do_val_print.
14018 (common_val_print): Use do_val_print.
14019
14020 2020-03-13 Tom Tromey <tom@tromey.com>
14021
14022 * valprint.c (value_print): Use scoped_value_mark.
14023
14024 2020-03-13 Tom de Vries <tdevries@suse.de>
14025
14026 PR symtab/25646
14027 * psymtab.c (partial_symtab::partial_symtab): Don't set
14028 globals_offset and statics_offset. Push element onto
14029 current_global_psymbols and current_static_psymbols stacks.
14030 (concat): New function.
14031 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14032 element from current_global_psymbols and current_static_psymbols
14033 stacks. Concat popped elements to global_psymbols and
14034 static_symbols.
14035 (add_psymbol_to_list): Use current_global_psymbols and
14036 current_static_psymbols stacks.
14037 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14038 current_static_psymbols fields.
14039
14040 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14041
14042 * corelow.c (sniff_core_bfd): Remove.
14043 (class core_target) <m_core_vec>: Remove.
14044 (core_target::core_target): Update.
14045 (core_file_fns): Remove.
14046 (deprecated_add_core_fns): Remove.
14047 (default_core_sniffer): Remove.
14048 (sniff_core_bfd): Remove.
14049 (default_check_format): Remove.
14050 (gdb_check_format): Remove.
14051 (core_target_open): Update.
14052 (core_target::get_core_register_section): Update.
14053 (get_core_registers_cb): Update.
14054 (core_target::fetch_registers): Update.
14055 * gdbcore.h (struct core_fns): Remove.
14056 (deprecated_add_core_fns): Remove.
14057 (default_core_sniffer): Remove.
14058 (default_check_format): Remove.
14059
14060 2020-03-12 Tom Tromey <tom@tromey.com>
14061
14062 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14063 CORE_ADDR.
14064 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14065
14066 2020-03-12 Tom Tromey <tom@tromey.com>
14067
14068 * remote.c (remote_target::download_tracepoint)
14069 (remote_target::enable_tracepoint)
14070 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14071 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14072 sprintf_vma.
14073
14074 2020-03-12 Tom Tromey <tom@tromey.com>
14075
14076 * symfile-mem.c: Update CORE_ADDR size assert.
14077
14078 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14079
14080 * selftest.m4: Move to gdbsupport/.
14081 * acinclude.m4: Update path to selftest.m4.
14082
14083 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14084
14085 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14086 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14087 gdbarch-selfselftests.c and selftest-arch.c.
14088 (SUBDIR_UNITTESTS_OBS): Rename to...
14089 (SELFTESTS_OBS): ... this.
14090 (COMMON_SFILES): Remove disasm-selftests.c and
14091 gdbarch-selftests.c.
14092 * configure.ac: Don't add selftest-arch.{c,o} to
14093 CONFIG_{SRCS,OBS}.
14094 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14095 preprocessor conditions.
14096
14097 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14098
14099 * configure.ac: Don't source bfd/development.sh.
14100 * selftest.m4: Modify comment.
14101 * configure: Re-generate.
14102
14103 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14104
14105 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14106 not "true" or "false".
14107 * configure: Re-generate.
14108
14109 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14110
14111 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14112 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14113 renamed to arm_nbsd_supply_gregset.
14114 (fetch_register): Update to call arm_nbsd_supply_gregset.
14115 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14116 (arm_netbsd_nat_target::fetch_registers): Update.
14117 (fetch_elfcore_registers): Removed.
14118 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14119 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14120 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14121 not require NetBSD system headers.
14122 (arm_nbsd_regset): New struct.
14123 (arm_nbsd_iterate_over_regset_sections): New function.
14124 (arm_netbsd_init_abi_common): Updated to call
14125 set_gdbarch_iterate_over_regset_sections.
14126 * arm-nbsd-tdep.h: New file.
14127
14128 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14129
14130 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14131 recursion.
14132
14133 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14134
14135 * configure: Re-generate.
14136
14137 2020-03-11 Tom Tromey <tromey@adacore.com>
14138
14139 * ada-typeprint.c (print_choices): Fix comment.
14140
14141 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14142
14143 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14144 previous item in the list, when the list has no items.
14145
14146 2020-03-11 Tom de Vries <tdevries@suse.de>
14147
14148 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14149 PROP_LOCLIST handling code.
14150
14151 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14152
14153 * buildsym-legacy.c (record_line): Pass extra parameter to
14154 record_line.
14155 * buildsym.c (buildsym_compunit::record_line): Take an extra
14156 parameter, reduce duplication in the line table, and record the
14157 is_stmt flag in the line table.
14158 * buildsym.h (buildsym_compunit::record_line): Add extra
14159 parameter.
14160 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14161 non-statement lines.
14162 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14163 this to the symtab builder.
14164 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14165 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14166 through to dwarf_record_line_1.
14167 * infrun.c (process_event_stop_test): When stepping, don't stop at
14168 a non-statement instruction, and only refresh the step info when
14169 we land in the middle of a line's range. Also add an extra
14170 comment.
14171 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14172 field.
14173 * record-btrace.c (btrace_find_line_range): Only record lines
14174 marked as is-statement.
14175 * stack.c (frame_show_address): Show the frame address if we are
14176 in a non-statement sal.
14177 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14178 (maintenance_print_one_line_table): Print a header for the is_stmt
14179 column, and include is_stmt information in the output.
14180 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14181 preference to non-statements.
14182 (find_pcs_for_symtab_line): Prefer is-statement entries.
14183 (find_line_common): Likewise.
14184 * symtab.h (struct linetable_entry): Add is_stmt field.
14185 (struct symtab_and_line): Likewise.
14186 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14187 arranging the line table.
14188
14189 2020-03-07 Tom de Vries <tdevries@suse.de>
14190
14191 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14192 DIE.
14193
14194 2020-03-07 Tom Tromey <tom@tromey.com>
14195
14196 * valops.c (value_literal_complex): Remove obsolete comment.
14197 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14198 comment.
14199
14200 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14201
14202 * infrun.h: Forward-declare thread_info.
14203 (set_step_info): Add thread_info parameter, add doc.
14204 * infrun.c (set_step_info): Add thread_info parameter, move doc
14205 to header.
14206 * infrun.c (process_event_stop_test): Pass thread to
14207 set_step_info call.
14208 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14209 set_step_info.
14210 (prepare_one_step): Add thread_info parameter, pass it to
14211 set_step_frame and prepare_one_step (recursive) call.
14212 (step_1): Pass thread to prepare_one_step call.
14213 (step_command_fsm::should_stop): Pass thread to
14214 prepare_one_step.
14215 (until_next_fsm): Pass thread to set_step_frame call.
14216 (finish_command): Pass thread to set_step_info call.
14217
14218 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14219
14220 * windows-tdep.c (windows_solib_create_inferior_hook):
14221 Check if inferior is running.
14222
14223 2020-03-06 Tom de Vries <tdevries@suse.de>
14224
14225 * NEWS: Fix "the the".
14226 * ctfread.c: Same.
14227
14228 2020-03-06 Tom de Vries <tdevries@suse.de>
14229
14230 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14231
14232 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14233
14234 * .dir-locals.el: Add a comment referencing the other copies of
14235 this file.
14236
14237 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14238
14239 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14240 psargs.
14241
14242 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14243
14244 * .gitattributes: New file.
14245
14246 2020-03-04 Tom Tromey <tom@tromey.com>
14247
14248 * symmisc.c (print_symbol_bcache_statistics)
14249 (print_objfile_statistics): Update.
14250 * symfile.c (allocate_symtab): Use intern.
14251 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14252 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14253 macro_cache>: Remove.
14254 <string_cache>: New member.
14255 (struct objfile) <intern>: New methods.
14256 * elfread.c (elf_symtab_read): Use intern.
14257 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14258 (dwarf2_compute_name, dwarf2_physname)
14259 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14260 names.
14261 (guess_partial_die_structure_name): Update.
14262 (partial_die_info::fixup): Intern name.
14263 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14264 name.
14265 (dwarf2_name): Intern name. Update.
14266 * buildsym.c (buildsym_compunit::get_macro_table): Use
14267 string_cache.
14268
14269 2020-03-04 Tom Tromey <tom@tromey.com>
14270
14271 * jit.c (bfd_open_from_target_memory): Make "target" const.
14272 * corefile.c (gnutarget): Now const.
14273 * gdbcore.h (gnutarget): Now const.
14274
14275 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14276
14277 * NEWS: Mention support for WOW64 processes.
14278 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14279 (amd64_windows_segment_register_p): Remove static.
14280 (_initialize_amd64_windows_nat): Update.
14281 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14282 * i386-windows-nat.c (context_offset): Update.
14283 (i386_mappings): Rename and remove static.
14284 (i386_windows_segment_register_p): Remove static.
14285 (_initialize_i386_windows_nat): Update.
14286 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14287 (STATUS_WX86_SINGLE_STEP): New macro.
14288 (EnumProcessModulesEx): New macro.
14289 (Wow64SuspendThread): New macro.
14290 (Wow64GetThreadContext): New macro.
14291 (Wow64SetThreadContext): New macro.
14292 (Wow64GetThreadSelectorEntry): New macro.
14293 (windows_set_context_register_offsets): Add static.
14294 (windows_set_segment_register_p): Likewise.
14295 (windows_add_thread): Adapt for WOW64 processes.
14296 (windows_fetch_one_register): Likewise.
14297 (windows_nat_target::fetch_registers): Likewise.
14298 (windows_store_one_register): Likewise.
14299 (display_selector): Likewise.
14300 (display_selectors): Likewise.
14301 (handle_exception): Likewise.
14302 (windows_continue): Likewise.
14303 (windows_nat_target::resume): Likewise.
14304 (windows_add_all_dlls): Likewise.
14305 (do_initial_windows_stuff): Likewise.
14306 (windows_nat_target::attach): Likewise.
14307 (windows_get_exec_module_filename): Likewise.
14308 (windows_nat_target::create_inferior): Likewise.
14309 (windows_xfer_siginfo): Likewise.
14310 (_initialize_loadable): Initialize Wow64SuspendThread,
14311 Wow64GetThreadContext, Wow64SetThreadContext,
14312 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14313 * windows-nat.h (windows_set_context_register_offsets):
14314 Remove declaration.
14315 (windows_set_segment_register_p): Likewise.
14316 (i386_windows_segment_register_p): Add declaration.
14317 (amd64_windows_segment_register_p): Likewise.
14318
14319 2020-03-04 Luis Machado <luis.machado@linaro.org>
14320
14321 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14322 in "info registers" for AArch64/ARM.
14323
14324 The change caused "info registers" to not print GPR's.
14325
14326 gdb/ChangeLog:
14327
14328 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14329
14330 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14331 when reg->group is empty and reggroup is not.
14332
14333 2020-03-03 Tom Tromey <tromey@adacore.com>
14334
14335 * dwarf2/frame.c (struct dwarf2_frame_cache)
14336 <checked_tailcall_bottom, entry_cfa_sp_offset,
14337 entry_cfa_sp_offset_p>: Remove members.
14338 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14339 (dwarf2_frame_prev_register): Don't call
14340 dwarf2_tailcall_sniffer_first.
14341 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14342 * frame-unwind.c (add_unwinder): New fuction.
14343 (frame_unwind_init): Use it. Add tailcall unwinder.
14344
14345 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14346 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14347
14348 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14349 value should be printed as true.
14350
14351 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14352
14353 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14354 (windows_init_abi): Set and use windows_so_ops.
14355
14356 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14357
14358 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14359 when verifying if dealing with a convenience variable.
14360
14361 2020-03-03 Luis Machado <luis.machado@linaro.org>
14362
14363 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14364
14365 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14366
14367 * infrun.c (gdbarch_supports_displaced_stepping): New.
14368 (use_displaced_stepping): Break up conditions in smaller pieces.
14369 Use gdbarch_supports_displaced_stepping.
14370 (displaced_step_prepare_throw): Use
14371 gdbarch_supports_displaced_stepping.
14372
14373 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14374
14375 * NEWS: Mention new behaviour of the history filename.
14376 * top.c (write_history_p): Add comment.
14377 (show_write_history_p): Add header comment, give a different
14378 message when history writing is on, but the history filename is
14379 empty.
14380 (history_filename): Add comment.
14381 (history_filename_empty): New function.
14382 (show_history_filename): Add header comment, give a different
14383 message when the filename is empty.
14384 (init_history): Compare history_filename against nullptr, and only
14385 read history if the filename is not empty.
14386 (set_history_filename): Add header comment, and only make
14387 non-empty filenames absolute.
14388 (init_main): Make the filename argument to 'set history filename'
14389 optional.
14390
14391 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14392
14393 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14394 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14395 (fetch_fp_register): Update.
14396 (fetch_fp_regs): Update.
14397 (store_fp_register): Update.
14398 (store_fp_regs): Update.
14399 (arm_netbsd_nat_target::read_description): New function.
14400 (fetch_elfcore_registers): Update.
14401
14402 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14403
14404 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14405 general_thread if the stop reply is missing a thread-id.
14406 (remote_target::process_stop_reply): Use the first non-exited
14407 thread if the target didn't pass a thread-id.
14408 * infrun.c (do_target_wait): Move call to
14409 switch_to_inferior_no_thread to ....
14410 (do_target_wait_1): ... here.
14411
14412 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14413
14414 * debuginfod-support.c: Include defs.h first.
14415
14416 2020-02-28 Tom de Vries <tdevries@suse.de>
14417
14418 * symfile.c (set_initial_language): Use default language for lookup.
14419
14420 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14421
14422 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14423 reader variable, pass `this` to read_cutu_die_from_dwo.
14424
14425 2020-02-27 Aaron Merey <amerey@redhat.com>
14426
14427 * source.c (open_source_file): Check for nullptr when computing
14428 srcpath.
14429
14430 2020-02-27 Tom Tromey <tromey@adacore.com>
14431
14432 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14433 member.
14434 (dwarf2_add_field): Don't update nfields.
14435 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14436
14437 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14438
14439 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14440 abs.
14441
14442 2020-02-26 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14445 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14446 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14447 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14448 per_cu_data.
14449
14450 2020-02-26 Tom Tromey <tom@tromey.com>
14451
14452 * dwarf2/index-write.c (psym_index_map): Change type.
14453 (add_address_entry_worker, write_one_signatured_type)
14454 (recursively_count_psymbols, recursively_write_psymbols)
14455 (class debug_names, psyms_seen_size, write_gdbindex)
14456 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14457
14458 2020-02-26 Aaron Merey <amerey@redhat.com>
14459
14460 * Makefile.in: Handle optional debuginfod support.
14461 * NEWS: Update.
14462 * README: Add --with-debuginfod summary.
14463 * config.in: Regenerate.
14464 * configure: Regenerate.
14465 * configure.ac: Handle optional debuginfod support.
14466 * debuginfod-support.c: debuginfod helper functions.
14467 * debuginfod-support.h: Ditto.
14468 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14469 summary.
14470 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14471 when a dwz file cannot be found.
14472 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14473 debuginfo file cannot be found.
14474 * source.c (open_source_file): Query debuginfod servers when a
14475 source file cannot be found.
14476 * top.c (print_gdb_configuration): Include
14477 --{with,without}-debuginfod in the output.
14478
14479 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14480
14481 * thread.c (thr_try_catch_cmd): Print thread name.
14482
14483 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14484
14485 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14486 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14487 dwarf2_fetch_die_type_sect_off): Move to...
14488 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14489 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14490 dwarf2_fetch_die_type_sect_off): ... here.
14491 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14492 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14493 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14494
14495 2020-02-26 Tom de Vries <tdevries@suse.de>
14496
14497 PR gdb/25603
14498 * symfile.c (set_initial_language): Exit-early if
14499 language_mode == language_mode_manual.
14500
14501 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14502
14503 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14504 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14505 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14506
14507 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14508
14509 * gdbtypes.c (create_array_type_with_stride): Handle negative
14510 array strides.
14511 * valarith.c (value_subscripted_rvalue): Likewise.
14512
14513 2020-02-25 Luis Machado <luis.machado@linaro.org>
14514
14515 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14516
14517 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14518
14519 * loc.h (dwarf2_get_die_type): Move to...
14520 * read.h (dwarf2_get_die_type): ... here.
14521 * read.c (dwarf2_get_die_type): Move doc to header.
14522
14523 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14524
14525 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14526 'gnulib/Makefile.in' to the list.
14527
14528 2020-02-24 Tom Tromey <tom@tromey.com>
14529
14530 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14531 Remove.
14532 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14533 XOBNEWVEC.
14534
14535 2020-02-24 Tom Tromey <tom@tromey.com>
14536
14537 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14538 New method.
14539 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14540 (dw2_do_instantiate_symtab, dw2_get_file_names)
14541 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14542
14543 2020-02-24 Tom Tromey <tom@tromey.com>
14544
14545 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14546 make_scoped_restore.
14547 (dwarf2_psymtab::read_symtab): Don't clear
14548 reading_partial_symbols.
14549
14550 2020-02-24 Tom de Vries <tdevries@suse.de>
14551
14552 PR gdb/25592
14553 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14554
14555 2020-02-24 Tom de Vries <tdevries@suse.de>
14556
14557 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14558 commands layout next/prev/regs.
14559
14560 2020-02-22 Tom Tromey <tom@tromey.com>
14561
14562 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14563 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14564
14565 2020-02-22 Tom Tromey <tom@tromey.com>
14566
14567 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14568
14569 2020-02-22 Tom Tromey <tom@tromey.com>
14570
14571 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14572 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14573 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14574 * tui/tui.c (_initialize_tui): Add usage text.
14575
14576 2020-02-22 Tom Tromey <tom@tromey.com>
14577
14578 * tui/tui-win.c (tui_set_focus_command)
14579 (tui_set_win_height_command): Use error_no_arg.
14580 (_initialize_tui_win): Update help text.
14581 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14582
14583 2020-02-22 Tom Tromey <tom@tromey.com>
14584
14585 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14586 * tui/tui-disasm.h (struct tui_disasm_window)
14587 <display_start_addr>: Declare.
14588 * tui/tui-source.h (struct tui_source_window)
14589 <display_start_addr>: Declare.
14590 * tui/tui-winsource.h (struct tui_source_window_base)
14591 <show_source_line, display_start_addr>: New methods.
14592 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14593 Rename and move to protected section.
14594 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14595 (tui_source_window_base::do_erase_source_content): Update.
14596 (tui_source_window_base::show_source_line): Now a method.
14597 (tui_source_window_base::show_source_content)
14598 (tui_source_window_base::tui_source_window_base)
14599 (tui_source_window_base::rerender)
14600 (tui_source_window_base::refill)
14601 (tui_source_window_base::do_scroll_horizontal)
14602 (tui_source_window_base::set_is_exec_point_at)
14603 (tui_source_window_base::update_breakpoint_info)
14604 (tui_source_window_base::update_exec_info): Update.
14605 * tui/tui-source.c (tui_source_window::set_contents)
14606 (tui_source_window::showing_source_p)
14607 (tui_source_window::do_scroll_vertical)
14608 (tui_source_window::location_matches_p)
14609 (tui_source_window::line_is_displayed): Update.
14610 (tui_source_window::display_start_addr): New method.
14611 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14612 (tui_disasm_window::do_scroll_vertical)
14613 (tui_disasm_window::location_matches_p): Update.
14614 (tui_disasm_window::display_start_addr): New method.
14615
14616 2020-02-22 Tom Tromey <tom@tromey.com>
14617
14618 * NEWS: Add entry for gdb.register_window_type.
14619 * tui/tui-layout.h (window_factory): New typedef.
14620 (tui_register_window): Declare.
14621 * tui/tui-layout.c (saved_tui_windows): New global.
14622 (tui_apply_current_layout): Use it.
14623 (tui_register_window): New function.
14624 * python/python.c (do_start_initialization): Call
14625 gdbpy_initialize_tui.
14626 (python_GdbMethods): Add "register_window_type" function.
14627 * python/python-internal.h (gdbpy_register_tui_window)
14628 (gdbpy_initialize_tui): Declare.
14629 * python/py-tui.c: New file.
14630 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14631
14632 2020-02-22 Tom Tromey <tom@tromey.com>
14633
14634 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14635
14636 2020-02-22 Tom Tromey <tom@tromey.com>
14637
14638 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14639 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14640 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14641 (tui_set_win_focus_to): Move from tui-win.c.
14642
14643 2020-02-22 Tom Tromey <tom@tromey.com>
14644
14645 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14646 functions.
14647 (known_window_types): New global.
14648 (tui_get_window_by_name): Reimplement.
14649 (initialize_known_windows): New function.
14650 (validate_window_name): Rewrite.
14651 (_initialize_tui_layout): Call initialize_known_windows.
14652
14653 2020-02-22 Tom Tromey <tom@tromey.com>
14654
14655 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14656 Remove constants.
14657 * tui/tui-winsource.h (struct tui_source_window_base)
14658 <tui_source_window_base>: Remove parameter.
14659 * tui/tui-winsource.c
14660 (tui_source_window_base::tui_source_window_base): Remove
14661 parameter.
14662 (tui_source_window_base::refill): Update.
14663 * tui/tui-stack.h (struct tui_locator_window)
14664 <tui_locator_window>: Update.
14665 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14666 Default the constructor.
14667 * tui/tui-regs.h (struct tui_data_item_window)
14668 <tui_data_item_window>: Default the constructor.
14669 (struct tui_data_window) <tui_data_window>: Likewise.
14670 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14671 Default the constructor.
14672 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14673 Default the constructor.
14674 <type>: Remove.
14675 (struct tui_win_info) <tui_win_info>: Default the constructor.
14676 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14677 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14678 Default the constructor.
14679
14680 2020-02-22 Tom Tromey <tom@tromey.com>
14681
14682 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14683 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14684 * tui/tui-win.c (tui_resize_all): Don't call
14685 tui_delete_invisible_windows.
14686 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14687 done.
14688 (tui_set_layout): Update.
14689 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14690 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14691 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14692
14693 2020-02-22 Tom Tromey <tom@tromey.com>
14694
14695 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14696 correctly.
14697
14698 2020-02-22 Tom Tromey <tom@tromey.com>
14699
14700 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14701
14702 2020-02-22 Tom Tromey <tom@tromey.com>
14703
14704 * tui/tui-winsource.h (struct tui_source_window_iterator)
14705 <inner_iterator>: New etytypedef.
14706 <tui_source_window_iterator>: Take "end" parameter.
14707 <tui_source_window_iterator>: Take iterator.
14708 <operator*, advance>: Update.
14709 <m_iter>: Change type.
14710 <m_end>: New field.
14711 (struct tui_source_windows) <begin, end>: Update.
14712 * tui/tui-layout.c (tui_windows): New global.
14713 (tui_apply_current_layout): Clear tui_windows.
14714 (tui_layout_window::apply): Update tui_windows.
14715 * tui/tui-data.h (tui_windows): Declare.
14716 (all_tui_windows): Now inline function.
14717 (class tui_window_iterator, struct all_tui_windows): Remove.
14718
14719 2020-02-22 Tom Tromey <tom@tromey.com>
14720
14721 PR tui/17850:
14722 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14723 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14724 "height" argument.
14725 (class tui_layout_window) <get_sizes>: Likewise.
14726 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14727 argument.
14728 <get_sizes>: Add "height" argument.
14729 <m_vertical>: New field.
14730 * tui/tui-layout.c (tui_layout_split::clone): Update.
14731 (tui_layout_split::get_sizes): Add "height" argument.
14732 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14733 (tui_new_layout_command): Parse "-horizontal".
14734 (_initialize_tui_layout): Update help string.
14735 (tui_layout_split::specification): Add "-horizontal" when needed.
14736 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14737 argument.
14738 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14739 New methods.
14740
14741 2020-02-22 Tom Tromey <tom@tromey.com>
14742
14743 * tui/tui-layout.h (enum tui_adjust_result): New.
14744 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14745 (class tui_layout_window) <adjust_size>: Return
14746 tui_adjust_result. Rewrite.
14747 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14748 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14749
14750 2020-02-22 Tom Tromey <tom@tromey.com>
14751
14752 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14753 parameter and return types.
14754 (class tui_layout_base) <specification>: Add "depth".
14755 (class tui_layout_window) <specification>: Add "depth".
14756 (class tui_layout_split) <specification>: Add "depth".
14757 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14758 and return types.
14759 (tui_new_layout_command): Parse sub-layouts.
14760 (_initialize_tui_layout): Update help string.
14761 (tui_layout_window::specification): Add "depth".
14762 (add_layout_command): Update.
14763
14764 2020-02-22 Tom Tromey <tom@tromey.com>
14765
14766 * NEWS: Add "tui new-layout" item.
14767 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14768 Add new-layout command to help text.
14769 (validate_window_name): New function.
14770 (tui_new_layout_command): New function.
14771 (_initialize_tui_layout): Register "new-layout".
14772 (tui_layout_window::specification): New method.
14773 (tui_layout_window::specification): New method.
14774 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14775 method.
14776 (class tui_layout_window) <specification>: New method.
14777 (class tui_layout_split) <specification>: New method.
14778
14779 2020-02-22 Tom Tromey <tom@tromey.com>
14780
14781 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14782 * tui/tui-win.c (window_name_completer): Update comment.
14783 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14784 Declare method.
14785 (class tui_layout_window) <replace_window>: Likewise.
14786 (class tui_layout_split) <replace_window>: Likewise.
14787 (tui_set_layout): Don't declare.
14788 (tui_set_initial_layout): Declare function.
14789 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14790 (asm_regs_layout): New globals.
14791 (tui_current_layout, show_layout): Remove.
14792 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14793 (find_layout, tui_apply_layout): New function.
14794 (layout_completer): Remove.
14795 (tui_next_layout): Reimplement.
14796 (tui_next_layout_command): New function.
14797 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14798 (tui_regs_layout): Reimplement.
14799 (tui_regs_layout_command): New function.
14800 (extract_display_start_addr): Rewrite.
14801 (next_layout, prev_layout): Remove.
14802 (tui_layout_window::replace_window): New method.
14803 (tui_layout_split::replace_window): New method.
14804 (destroy_layout): New function.
14805 (layout_list): New global.
14806 (add_layout_command): New function.
14807 (initialize_layouts): Update.
14808 (tui_layout_command): New function.
14809 (_initialize_tui_layout): Install "layout" commands.
14810 * tui/tui-data.h (enum tui_layout_type): Remove.
14811 (tui_current_layout): Don't declare.
14812
14813 2020-02-22 Tom Tromey <tom@tromey.com>
14814
14815 * tui/tui-regs.c (tui_reg_layout): Remove.
14816 (tui_reg_command): Use tui_regs_layout.
14817 * tui/tui-layout.h (tui_reg_command): Declare.
14818 * tui/tui-layout.c (tui_reg_command): New function.
14819
14820 2020-02-22 Tom Tromey <tom@tromey.com>
14821
14822 * tui/tui.c (tui_rl_delete_other_windows): Call
14823 tui_remove_some_windows.
14824 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14825 Declare method.
14826 (class tui_layout_window) <remove_windows>: New method.
14827 (class tui_layout_split) <remove_windows>: Declare.
14828 (tui_remove_some_windows): Declare.
14829 * tui/tui-layout.c (tui_remove_some_windows): New function.
14830 (tui_layout_split::remove_windows): New method.
14831
14832 2020-02-22 Tom Tromey <tom@tromey.com>
14833
14834 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14835 * tui/tui-layout.h (tui_next_layout): Declare.
14836 * tui/tui-layout.c (tui_next_layout): New function.
14837
14838 2020-02-22 Tom Tromey <tom@tromey.com>
14839
14840 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14841 correct coordinates.
14842
14843 2020-02-22 Tom Tromey <tom@tromey.com>
14844
14845 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14846 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14847 DATA_WIN case.
14848
14849 2020-02-22 Tom Tromey <tom@tromey.com>
14850
14851 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14852 TUI_DISASM_WIN, not tui_win_list.
14853
14854 2020-02-22 Tom Tromey <tom@tromey.com>
14855
14856 * valprint.c (generic_val_print_enum_1)
14857 (val_print_type_code_flags): Style member names.
14858 * rust-lang.c (val_print_struct, rust_print_enum)
14859 (rust_print_struct_def, rust_internal_print_type): Style member
14860 names.
14861 * p-valprint.c (pascal_object_print_value_fields): Style member
14862 names. Only call fprintf_symbol_filtered for static members.
14863 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14864 * f-valprint.c (f_val_print): Style member names.
14865 * f-typeprint.c (f_type_print_base): Style member names.
14866 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14867 call fprintf_symbol_filtered for static members.
14868 (cp_print_class_member): Style member names.
14869 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14870 member names.
14871 * ada-valprint.c (ada_print_scalar): Style enum names.
14872 (ada_val_print_enum): Likewise.
14873 * ada-typeprint.c (print_enum_type): Style enum names.
14874
14875 2020-02-21 Tom Tromey <tom@tromey.com>
14876
14877 * psympriv.h (struct partial_symtab): Update comment.
14878
14879 2020-02-21 Tom Tromey <tromey@adacore.com>
14880
14881 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14882 type is CORE_ADDR.
14883
14884 2020-02-21 Tom de Vries <tdevries@suse.de>
14885
14886 PR gdb/25534
14887 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14888 if dependencies[i]->user != NULL.
14889
14890 2020-02-21 Ali Tamur <tamur@google.com>
14891
14892 * dwarf2/read.c (dwarf2_name): Add null check.
14893
14894 2020-02-20 Tom Tromey <tom@tromey.com>
14895
14896 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14897 ">=", in binary search.
14898 (dwarf2_find_containing_comp_unit): New overload.
14899 (run_test): New self-test.
14900 (_initialize_dwarf2_read): Register new test.
14901
14902 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14903
14904 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14905 * riscv-tdep.h: Likewise.
14906 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14907 rv32-only CSR.
14908 * features/riscv/64bit-csr.xml: Regenerated.
14909
14910 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14911 Tom Tromey <tom@tromey.com>
14912
14913 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14914 of 'fputc_unfiltered'.
14915 (putchar_unfiltered): Call 'fputc_unfiltered'.
14916 (fputc_unfiltered): Call 'fputs_unfiltered'.
14917
14918 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14919
14920 * config.in: Regenerate.
14921 * configure: Regenerate.
14922 * configure.ac: Add --with-python-libdir option.
14923 * main.c: Use WITH_PYTHON_LIBDIR.
14924
14925 2020-02-19 Tom Tromey <tom@tromey.com>
14926
14927 * symtab.c (general_symbol_info::compute_and_set_names): Use
14928 obstack_strndup. Simplify call to symbol_set_demangled_name.
14929
14930 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14931
14932 * dwarf2/read.c (allocate_signatured_type_table,
14933 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14934 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14935 Remove objfile parameter, update all callers.
14936
14937 2020-02-19 Doug Evans <dje@google.com>
14938
14939 PR rust/25535
14940 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14941 rust_enum_variant calculation.
14942
14943 2020-02-19 Tom Tromey <tromey@adacore.com>
14944
14945 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14946
14947 2020-02-19 Tom Tromey <tromey@adacore.com>
14948
14949 * ada-lang.c (cache_symbol): Use obstack_strdup.
14950
14951 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14952
14953 * configure: Regenerate.
14954
14955 2020-02-19 Tom Tromey <tromey@adacore.com>
14956
14957 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14958 NULL check.
14959
14960 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14961
14962 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14963
14964 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14965
14966 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14967 if GDBSERVER is not defined.
14968 (riscv_tdesc_cache): Likewise, also store const target_desc.
14969 (STATIC_IN_GDB): Define.
14970 (riscv_create_target_description): Update declaration with
14971 STATIC_IN_GDB.
14972 (riscv_lookup_target_description): New function, only define if
14973 GDBSERVER is not defined.
14974 * arch/riscv.h (riscv_create_target_description): Declare only
14975 when GDBSERVER is defined.
14976 (riscv_lookup_target_description): New declaration when GDBSERVER
14977 is not defined.
14978 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14979 (riscv_linux_read_features): ...this, and return
14980 riscv_gdbarch_features instead of target_desc.
14981 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14982 (riscv_linux_read_description): Rename to...
14983 (riscv_linux_read_features): ...this.
14984 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14985 Update to use riscv_gdbarch_features and
14986 riscv_lookup_target_description.
14987 * riscv-tdep.c (riscv_find_default_target_description): Use
14988 riscv_lookup_target_description instead of
14989 riscv_create_target_description.
14990
14991 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14992
14993 * valprint.c (generic_val_print_enum_1): When printing a flag
14994 enum with value 0 and there is no enumerator with value 0, print
14995 just "0" instead of "(unknown: 0x0)".
14996
14997 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14998
14999 * valprint.c (generic_val_print_enum_1): Print unknown part of
15000 flag enum in hex.
15001
15002 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15003
15004 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15005 flag enums to contain duplicate enumerators.
15006 * valprint.c (generic_val_print_enum_1): Update comment.
15007
15008 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15009
15010 * dwarf2/read.c: Include "count-one-bits.h".
15011 (update_enumeration_type_from_children): If an enumerator has
15012 multiple bits set, don't treat the enumeration as a "flag enum".
15013 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15014 of flag enums have 0 or 1 bit set.
15015
15016 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15017
15018 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15019 conversion.
15020 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15021 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15022 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15023 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15024 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15025
15026 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15027
15028 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15029
15030 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15031
15032 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15033 displaced_step_closure_up.
15034 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15035 (struct displaced_step_closure_up):
15036 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15037 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15038 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15039 Likewise.
15040 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15041 * gdbarch.c, gdbarch.h: Re-generate.
15042 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15043 displaced_step_closure_up.
15044 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15045 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15046 * infrun.h (displaced_step_closure_up): New type alias.
15047 (struct displaced_step_inferior_state) <step_closure>: Change
15048 type to displaced_step_closure_up.
15049 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15050 displaced_step_closure_up.
15051 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15052
15053 2020-02-14 Tom Tromey <tom@tromey.com>
15054
15055 * minidebug.c (gnu_debug_key): New global.
15056 (find_separate_debug_file_in_section): Use it.
15057
15058 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15059
15060 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15061 std::unique_ptr.
15062 * gdbarch.c: Re-generate.
15063 * gdbarch.h: Re-generate.
15064 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15065 change.
15066 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15067 type to std::unique_ptr.
15068 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15069 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15070 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15071 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15072 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15073 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15074 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15075 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15076 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15077
15078 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15079
15080 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15081 std::unique_ptr.
15082 (displaced_step_clear): Rename to...
15083 (displaced_step_reset): ... this. Just call displaced->reset ().
15084 (displaced_step_clear_cleanup): Rename to...
15085 (displaced_step_reset_cleanup): ... this.
15086 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15087 (displaced_step_fixup): Likewise.
15088 (resume_1): Likewise.
15089 (handle_inferior_event): Restore child's memory before calling
15090 displaced_step_fixup on the parent.
15091 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15092 to std::unique_ptr.
15093 <step_closure>: Change type to std::unique_ptr.
15094
15095 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15096
15097 * arm-tdep.c: Include count-one-bits.h.
15098 (cleanup_block_store_pc): Use count_one_bits.
15099 (cleanup_block_load_pc): Use count_one_bits.
15100 (arm_copy_block_xfer): Use count_one_bits.
15101 (thumb2_copy_block_xfer): Use count_one_bits.
15102 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15103 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15104 (thumb_get_next_pcs_raw): Use count_one_bits.
15105 (arm_get_next_pcs_raw): Use count_one_bits_l.
15106 * arch/arm.c (bitcount): Remove.
15107 * arch/arm.h (bitcount): Remove.
15108
15109 2020-02-14 Tom Tromey <tromey@adacore.com>
15110
15111 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15112 Update.
15113 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15114 * dwarf2/loc.c (call_site_find_chain_1): Return
15115 unique_xmalloc_ptr.
15116 (call_site_find_chain): Likewise.
15117
15118 2020-02-14 Richard Biener <rguenther@suse.de>
15119
15120 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15121 on expression with division operators.
15122
15123 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15124
15125 * MAINTAINERS (Write After Approval): Adding myself.
15126
15127 2020-02-12 Tom Tromey <tom@tromey.com>
15128
15129 * event-loop.c (event_data, gdb_event, event_handler_func):
15130 Remove.
15131
15132 2020-02-12 Tom Tromey <tom@tromey.com>
15133
15134 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15135 (dwarf2_frame_objfile_data): Add comment.
15136 (find_comp_unit, set_comp_unit): New functions.
15137 (dwarf2_frame_find_fde): Use find_comp_unit.
15138 (dwarf2_build_frame_info): Use set_comp_unit.
15139
15140 2020-02-12 Tom Tromey <tom@tromey.com>
15141
15142 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15143 (comp_unit): Don't initialize objfile.
15144 (execute_cfa_program): Add text_offset parameter.
15145 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15146 (dwarf2_frame_cache): Update.
15147 (dwarf2_build_frame_info): Don't set "objfile" member.
15148
15149 2020-02-12 Tom Tromey <tom@tromey.com>
15150
15151 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15152 (decode_frame_entry): Likewise.
15153 (dwarf2_build_frame_info): Update.
15154
15155 2020-02-12 Tom Tromey <tom@tromey.com>
15156
15157 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15158 (decode_frame_entry_1): Use the comp_unit obstack.
15159
15160 2020-02-12 Tom Tromey <tom@tromey.com>
15161
15162 * dwarf2/frame.c (struct comp_unit): Add initializers and
15163 constructor.
15164 (dwarf2_frame_objfile_data): Store a comp_unit.
15165 (dwarf2_frame_find_fde): Update.
15166 (dwarf2_build_frame_info): Use "new".
15167
15168 2020-02-12 Tom Tromey <tom@tromey.com>
15169
15170 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15171 (dwarf2_fde_table): Typedef for std::vector.
15172 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15173 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15174 (decode_frame_entry): Update.
15175 (dwarf2_build_frame_info): Use "new".
15176
15177 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15178
15179 * arm-tdep.c (arm_gdbarch_init): Update.
15180 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15181 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15182 have_neon, is_m>: Change to bool.
15183
15184 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15185
15186 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15187
15188 2020-02-12 Tom Tromey <tom@tromey.com>
15189
15190 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15191
15192 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15193
15194 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15195 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15196
15197 2020-02-11 Tom Tromey <tom@tromey.com>
15198
15199 * psymtab.h: Update comment.
15200
15201 2020-02-11 Tom Tromey <tom@tromey.com>
15202
15203 * gdb_obstack.h (struct auto_obstack): Use
15204 DISABLE_COPY_AND_ASSIGN.
15205
15206 2020-02-11 Tom Tromey <tom@tromey.com>
15207
15208 * dwarf2/frame.h (struct objfile): Don't forward declare.
15209
15210 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15211
15212 * cris-tdep.c (cris_supply_gregset): Change signature to match
15213 what struct regset expects.
15214 (cris_regset): New struct.
15215 (fetch_core_registers): Remove.
15216 (cris_iterate_over_regset_sections): New function.
15217 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15218 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15219
15220 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15221
15222 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15223 registers.
15224
15225 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15226
15227 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15228
15229 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15230
15231 * configure: Re-generate.
15232
15233 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15234
15235 * configure: Re-generate.
15236
15237 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15238
15239 * acinclude: Update warning.m4 path.
15240 * warning.m4: Move to gdbsupport.
15241
15242 2020-02-11 Tom Tromey <tromey@adacore.com>
15243
15244 * remote.c (remote_console_output): Update.
15245 * printcmd.c (printf_command): Update.
15246 * event-loop.c (gdb_wait_for_event): Update.
15247 * linux-nat.c (sigchld_handler): Update.
15248 * remote-sim.c (gdb_os_write_stdout): Update.
15249 (gdb_os_flush_stdout): Update.
15250 (gdb_os_flush_stderr): Update.
15251 (gdb_os_write_stderr): Update.
15252 * exceptions.c (print_exception): Update.
15253 * remote-fileio.c (remote_fileio_func_read): Update.
15254 (remote_fileio_func_write): Update.
15255 * tui/tui.c (tui_enable): Update.
15256 * tui/tui-interp.c (tui_interp::init): Update.
15257 * utils.c (init_page_info): Update.
15258 (putchar_unfiltered, fputc_unfiltered): Update.
15259 (gdb_flush): Update.
15260 (emit_style_escape): Update.
15261 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15262 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15263 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15264 (stderr_file::write): Update.
15265 (stderr_file::puts): Update.
15266 * ui-file.h (ui_file_isatty, ui_file_write)
15267 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15268 (ui_file_puts): Don't declare.
15269
15270 2020-02-10 Tom de Vries <tdevries@suse.de>
15271
15272 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15273 sentinel to char *.
15274
15275 2020-02-09 Tom de Vries <tdevries@suse.de>
15276
15277 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15278 filename if it matches "<artificial>".
15279
15280 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15281
15282 * windows-tdep.c (struct enum_value_name): New struct.
15283 (create_enum): New function.
15284 (windows_get_siginfo_type): Create and use enum types.
15285
15286 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15287
15288 * NEWS: Mention $_siginfo support for Windows.
15289 * windows-nat.c (handle_exception): Set siginfo_er.
15290 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15291 (windows_xfer_siginfo): New function.
15292 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15293 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15294 (init_windows_gdbarch_data): New function.
15295 (get_windows_gdbarch_data): New function.
15296 (windows_get_siginfo_type): New function.
15297 (windows_init_abi): Register windows_get_siginfo_type.
15298 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15299
15300 2020-02-08 Tom Tromey <tom@tromey.com>
15301
15302 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15303 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15304 <keep>: Declare method.
15305 <m_keep>: Remove member.
15306 <~cutu_reader>: Remove.
15307 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15308 (cutu_reader::cutu_reader): Update.
15309 (cutu_reader::keep): Rename from ~cutu_reader.
15310 (process_psymtab_comp_unit, build_type_psymtabs_1)
15311 (process_skeletonless_type_unit, load_partial_comp_unit)
15312 (load_full_comp_unit, dwarf2_read_addr_index)
15313 (read_signatured_type): Update.
15314
15315 2020-02-08 Tom Tromey <tom@tromey.com>
15316
15317 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15318 "want_partial_unit" parameter.
15319 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15320 Inline check for DW_TAG_partial_unit.
15321 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15322
15323 2020-02-08 Tom Tromey <tom@tromey.com>
15324
15325 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15326 read.c.
15327 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15328 read.c.
15329
15330 2020-02-08 Tom Tromey <tom@tromey.com>
15331
15332 * dwarf2/read.c (read_address): Move to comp-unit.c.
15333 (dwarf2_rnglists_process, dwarf2_ranges_process)
15334 (read_attribute_value, dwarf_decode_lines_1)
15335 (var_decode_location, decode_locdesc): Update.
15336 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15337 read.c. Remove "cu" parameter.
15338 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15339 method.
15340
15341 2020-02-08 Tom Tromey <tom@tromey.com>
15342
15343 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15344 (read_indirect_line_string): Update.
15345 * dwarf2/comp-unit.c (read_offset): Remove.
15346 (read_comp_unit_head): Update.
15347 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15348 method.
15349 (read_offset): Don't declare.
15350
15351 2020-02-08 Tom Tromey <tom@tromey.com>
15352
15353 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15354 * dwarf2/read.c (struct comp_unit_head): Move to
15355 dwarf2/comp-unit.h.
15356 (enum class rcuh_kind): Move to comp-unit.h.
15357 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15358 (read_comp_unit_head, error_check_comp_unit_head)
15359 (read_and_check_comp_unit_head): Move to comp-unit.c.
15360 (read_offset, dwarf_unit_type_name): Likewise.
15361 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15362 (cutu_reader::cutu_reader, read_call_site_scope)
15363 (find_partial_die, follow_die_offset): Update.
15364 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15365
15366 2020-02-08 Tom Tromey <tom@tromey.com>
15367
15368 * dwarf2/read.c (read_offset_1): Move to leb.c.
15369 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15370 (dwarf_decode_macro_bytes): Update.
15371 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15372 * dwarf2/leb.h (read_offset): Declare.
15373
15374 2020-02-08 Tom Tromey <tom@tromey.com>
15375
15376 * dwarf2/read.c (dwarf2_section_size): Remove.
15377 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15378 Update.
15379 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15380
15381 2020-02-08 Tom Tromey <tom@tromey.com>
15382
15383 * dwarf2/read.c (read_initial_length): Move to leb.c.
15384 * dwarf2/leb.h (read_initial_length): Declare.
15385 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15386 handle_nonstd parameter.
15387 * dwarf2/frame.c (read_initial_length): Remove.
15388 (decode_frame_entry_1): Update.
15389
15390 2020-02-08 Tom Tromey <tom@tromey.com>
15391
15392 * dwarf2/loc.c (dwarf2_find_location_expression)
15393 (dwarf_evaluate_loc_desc::get_tls_address)
15394 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15395 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15396 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15397 (dwarf2_compile_property_to_c)
15398 (dwarf2_loc_desc_get_symbol_read_needs)
15399 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15400 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15401 (loclist_describe_location, loclist_tracepoint_var_ref)
15402 (loclist_generate_c_location): Update.
15403 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15404 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15405 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15406 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15407 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15408 (dwarf2_per_cu_data::addr_size)
15409 (dwarf2_per_cu_data::ref_addr_size)
15410 (dwarf2_per_cu_data::text_offset)
15411 (dwarf2_per_cu_data::addr_type): Now methods.
15412 (per_cu_header_read_in): Make per_cu "const".
15413 (dwarf2_version): Remove.
15414 (dwarf2_per_cu_data::int_type): Now a method.
15415 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15416 (set_die_type, read_array_type, read_subrange_index_type)
15417 (read_tag_string_type, read_subrange_type): Update.
15418 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15419 offset_size, ref_addr_size, text_offset, addr_type, version,
15420 objfile, int_type, addr_sized_int_type>: Declare methods.
15421
15422 2020-02-08 Tom Tromey <tom@tromey.com>
15423
15424 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15425 Move earlier.
15426
15427 2020-02-08 Tom Tromey <tom@tromey.com>
15428
15429 * dwarf2/read.h (dwarf_line_debug): Declare.
15430 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15431 * dwarf2/read.c: Move line_header code to new files.
15432 (dwarf_line_debug): No longer static.
15433 * dwarf2/line-header.c: New file.
15434 * dwarf2/line-header.h: New file.
15435
15436 2020-02-08 Tom Tromey <tom@tromey.com>
15437
15438 * dwarf2/read.c (struct line_header) <file_full_name,
15439 file_file_name>: Return unique_xmalloc_ptr.
15440 (line_header::file_file_name): Update.
15441 (line_header::file_full_name): Update.
15442 (dw2_get_file_names_reader): Update.
15443 (macro_start_file): Update.
15444
15445 2020-02-08 Tom Tromey <tom@tromey.com>
15446
15447 * dwarf2/read.c (struct line_header) <file_full_name,
15448 file_file_name>: Declare methods.
15449 (dw2_get_file_names_reader): Update.
15450 (file_file_name): Now a method.
15451 (file_full_name): Likewise.
15452 (macro_start_file): Update.
15453
15454 2020-02-08 Tom Tromey <tom@tromey.com>
15455
15456 * dwarf2/read.c (dwarf_always_disassemble)
15457 (show_dwarf_always_disassemble): Move to loc.c.
15458 (_initialize_dwarf2_read): Move "always-disassemble" registration
15459 to loc.c.
15460 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15461 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15462 static.
15463 (show_dwarf_always_disassemble): Move from read.c.
15464 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15465
15466 2020-02-08 Tom Tromey <tom@tromey.com>
15467
15468 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15469 (create_quick_file_names_table): Return htab_up.
15470 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15471 Update.
15472 * dwarf2/read.h (struct dwarf2_per_objfile)
15473 <quick_file_names_table>: Now htab_up.
15474
15475 2020-02-08 Tom Tromey <tom@tromey.com>
15476
15477 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15478
15479 2020-02-08 Tom Tromey <tom@tromey.com>
15480
15481 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15482 Rewrite.
15483 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15484 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15485 (abbrev_table::abbrev_table): No longer inline.
15486 (ABBREV_HASH_SIZE): Remove.
15487 (abbrev_table::m_abbrevs): Now an htab_up.
15488
15489 2020-02-08 Tom Tromey <tom@tromey.com>
15490
15491 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15492 (cutu_reader): Update.
15493 (build_type_psymtabs_1): Update.
15494 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15495 (abbrev_table::alloc_abbrev): Update.
15496 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15497 (abbrev_table::read): New static method, renamed from
15498 abbrev_table_read_table.
15499 (abbrev_table::alloc_abbrev)
15500 (abbrev_table::add_abbrev): Now private.
15501 (abbrev_table::abbrev_table): Now private.
15502 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15503
15504 2020-02-08 Tom Tromey <tom@tromey.com>
15505
15506 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15507 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15508 htab_up.
15509
15510 2020-02-08 Tom Tromey <tom@tromey.com>
15511
15512 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15513 htab_up.
15514 (lookup_dwo_unit_in_dwp): Update.
15515 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15516 on obstack.
15517
15518 2020-02-08 Tom Tromey <tom@tromey.com>
15519
15520 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15521 obstack.
15522
15523 2020-02-08 Tom Tromey <tom@tromey.com>
15524
15525 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15526 line_header_hash.
15527 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15528 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15529 Change type to htab_up.
15530
15531 2020-02-08 Tom Tromey <tom@tromey.com>
15532
15533 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15534 htab_up. Don't allocate on obstack.
15535 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15536 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15537 Change type to htab_up.
15538
15539 2020-02-08 Tom Tromey <tom@tromey.com>
15540
15541 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15542 Change type to htab_up.
15543 * dwarf2/read.c (create_signatured_type_table_from_index)
15544 (create_signatured_type_table_from_debug_names)
15545 (create_all_type_units, add_type_unit)
15546 (lookup_dwo_signatured_type, lookup_signatured_type)
15547 (process_skeletonless_type_unit): Update.
15548 (create_debug_type_hash_table, create_debug_types_hash_table):
15549 Change type of types_htab.
15550 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15551 htab_up. Don't allocate on obstack.
15552 (create_cus_hash_table): Change type of cus_htab parameter.
15553 (struct dwo_file) <cus, tus>: Now htab_up.
15554 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15555 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15556 (queue_and_load_all_dwo_tus): Update.
15557 * dwarf2/index-write.c (write_gdbindex): Update.
15558 (write_debug_names): Update.
15559
15560 2020-02-08 Tom Tromey <tom@tromey.com>
15561
15562 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15563 dwarf2/read.c. Remove "next" member. Add constructor ntad
15564 destructor.
15565 (struct dwarf2_per_objfile) <queue>: New member.
15566 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15567 dwarf2/read.h.
15568 (dwarf2_queue, dwarf2_queue_tail): Remove.
15569 (class dwarf2_queue_guard): Add parameter to constructor. Use
15570 DISABLE_COPY_AND_ASSIGN.
15571 <m_per_objfile>: New member.
15572 <~dwarf2_queue_guard>: Rewrite.
15573 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15574 Update.
15575 (~dwarf2_queue_item): New.
15576
15577 2020-02-08 Tom Tromey <tom@tromey.com>
15578
15579 * dwarf2/read.c (struct die_info) <has_children>: New member.
15580 (dw2_get_file_names_reader): Remove has_children.
15581 (dw2_get_file_names): Update.
15582 (read_cutu_die_from_dwo): Remove has_children.
15583 (cutu_reader::init_tu_and_read_dwo_dies)
15584 (cutu_reader::cutu_reader): Update.
15585 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15586 Remove has_children.
15587 (build_type_psymtabs_1, process_skeletonless_type_unit)
15588 (load_partial_comp_unit, load_full_comp_unit): Update.
15589 (create_dwo_cu_reader): Remove has_children.
15590 (create_cus_hash_table, read_die_and_children): Update.
15591 (read_full_die_1,read_full_die): Remove has_children.
15592 (read_signatured_type): Update.
15593 (class cutu_reader) <has_children>: Remove.
15594
15595 2020-02-08 Tom Tromey <tom@tromey.com>
15596
15597 * dwarf2/expr.c: Rename from dwarf2expr.c.
15598 * dwarf2/expr.h: Rename from dwarf2expr.h.
15599 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15600 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15601 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15602 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15603 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15604 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15605 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15606 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15607 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15608 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15609 * dwarf2/loc.c: Rename from dwarf2loc.c.
15610 * dwarf2/loc.h: Rename from dwarf2loc.h.
15611 * dwarf2/read.c: Rename from dwarf2read.c.
15612 * dwarf2/read.h: Rename from dwarf2read.h.
15613 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15614 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15615 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15616 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15617 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15618 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15619 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15620 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15621 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15622 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15623 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15624 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15625 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15626 Update.
15627 * Makefile.in (COMMON_SFILES): Update.
15628 (HFILES_NO_SRCDIR): Update.
15629
15630 2020-02-08 Tom Tromey <tom@tromey.com>
15631
15632 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15633 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15634
15635 2020-02-08 Tom Tromey <tom@tromey.com>
15636
15637 * dwarf2read.h (struct die_info): Don't declare.
15638
15639 2020-02-08 Tom Tromey <tom@tromey.com>
15640
15641 * dwarf2read.h (die_info_ptr): Remove typedef.
15642
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15644
15645 * dwarf2read.c (read_call_site_scope)
15646 (handle_data_member_location, dwarf2_add_member_fn)
15647 (mark_common_block_symbol_computed, read_common_block)
15648 (attr_to_dynamic_prop, partial_die_info::read)
15649 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15650 (dwarf2_symbol_mark_computed, set_die_type): Update.
15651 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15652 method.
15653 (attr_form_is_block): Don't declare.
15654 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15655
15656 2020-02-08 Tom Tromey <tom@tromey.com>
15657
15658 * dwarf2read.c (dwarf2_find_base_address, )
15659 (read_call_site_scope, rust_containing_type)
15660 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15661 (handle_data_member_location, dwarf2_add_member_fn)
15662 (get_alignment, read_structure_type, process_structure_scope)
15663 (mark_common_block_symbol_computed, read_common_block)
15664 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15665 (partial_die_info::read, read_attribute_value, new_symbol)
15666 (lookup_die_type, dwarf2_get_ref_die_offset)
15667 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15668 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15669 (dwarf2_symbol_mark_computed): Update.
15670 * dwarf2/attribute.h (struct attribute) <value_as_address,
15671 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15672 methods.
15673 (value_as_address, attr_form_is_section_offset)
15674 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15675 * dwarf2/attribute.c (attribute::value_as_address)
15676 (attribute::form_is_section_offset, attribute::form_is_constant)
15677 (attribute::form_is_ref): Now methods.
15678
15679 2020-02-08 Tom Tromey <tom@tromey.com>
15680
15681 * dwarf2read.c (struct attribute, DW_STRING)
15682 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15683 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15684 (attr_form_is_block, attr_form_is_section_offset)
15685 (attr_form_is_constant, attr_form_is_ref): Move.
15686 * dwarf2/attribute.h: New file.
15687 * dwarf2/attribute.c: New file, from dwarf2read.c.
15688 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15689
15690 2020-02-08 Tom Tromey <tom@tromey.com>
15691
15692 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15693 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15694 Move.
15695 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15696 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15697 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15698 abbrev.c.
15699 * dwarf2/abbrev.h: New file.
15700 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15701 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15702
15703 2020-02-08 Tom Tromey <tom@tromey.com>
15704
15705 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15706 (dwarf2_section_size, dwarf2_get_section_info)
15707 (create_signatured_type_table_from_debug_names)
15708 (create_addrmap_from_aranges, read_debug_names_from_section)
15709 (get_gdb_index_contents_from_section, read_comp_unit_head)
15710 (error_check_comp_unit_head, read_abbrev_offset)
15711 (create_debug_type_hash_table, init_cu_die_reader)
15712 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15713 (read_comp_units_from_section, create_cus_hash_table)
15714 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15715 (create_dwp_v2_section, dwarf2_rnglists_process)
15716 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15717 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15718 (read_indirect_string_from_dwz, read_addr_index_1)
15719 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15720 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15721 (fill_in_loclist_baton): Update.
15722 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15723 get_containing_section, get_bfd_owner, get_bfd_section,
15724 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15725 (dwarf2_read_section, get_section_name, get_section_file_name)
15726 (get_containing_section, get_section_bfd_owner)
15727 (get_section_bfd_section, get_section_name, get_section_file_name)
15728 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15729 declare.
15730 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15731 (dwarf2_section_info::get_bfd_owner)
15732 (dwarf2_section_info::get_bfd_section)
15733 (dwarf2_section_info::get_name)
15734 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15735 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15736 (dwarf2_section_info::read): Now methods.
15737 * dwarf-index-write.c (class debug_names): Update.
15738
15739 2020-02-08 Tom Tromey <tom@tromey.com>
15740
15741 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15742 Move to dwarf2/section.h.
15743 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15744 (get_section_bfd_section, get_section_name)
15745 (get_section_file_name, get_section_id, get_section_flags)
15746 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15747 dwarf2/section.c.
15748 * dwarf2/section.h: New file.
15749 * dwarf2/section.c: New file, from dwarf2read.c.
15750 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15751
15752 2020-02-08 Tom Tromey <tom@tromey.com>
15753
15754 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15755 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15756 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15757 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15758 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15759 * dwarf2/leb.h: New file, from dwarf2read.c.
15760 * dwarf2/leb.c: New file, from dwarf2read.c.
15761 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15762 Remove.
15763 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15764 (COMMON_SFILES): Add dwarf2/leb.c.
15765
15766 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15767
15768 GDB 9.1 released.
15769
15770 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15771
15772 PR gdb/25190:
15773 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15774 * gdb/remote.c (remote_console_output): Update.
15775 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15776 (ui_file_puts): ...this.
15777 * gdb/ui-file.h (ui_file_puts): Add declaration.
15778 * gdb/utils.c (emit_style_escape): Update.
15779 (flush_wrap_buffer): Update.
15780 (fputs_maybe_filtered): Update.
15781 (fputs_unfiltered): Add function.
15782
15783 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15784
15785 * gdb/event-loop.c (gdb_wait_for_event): Update.
15786 * gdb/printcmd.c (printf_command): Update.
15787 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15788 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15789 (gdb_os_flush_stderr): Update.
15790 * gdb/remote.c (remote_console_output): Update.
15791 * gdb/ui-file.c (gdb_flush): Rename to...
15792 (ui_file_flush): ...this.
15793 (stderr_file::write): Update.
15794 (stderr_file::puts): Update.
15795 * gdb/ui-file.h (gdb_flush): Rename to...
15796 (ui_file_flush): ...this.
15797 * gdb/utils.c (gdb_flush): Add function.
15798 * gdb/utils.h (gdb_flush): Add declaration.
15799
15800 2020-02-07 Tom Tromey <tromey@adacore.com>
15801
15802 PR breakpoints/24915:
15803 * source.c (find_and_open_source): Do not check basenames_may_differ.
15804
15805 2020-02-07 Tom Tromey <tom@tromey.com>
15806
15807 * README: Update gdbserver documentation.
15808 * gdbserver: Move to top level.
15809 * configure.tgt (build_gdbserver): Remove.
15810 * configure.ac: Remove --enable-gdbserver.
15811 * configure: Rebuild.
15812 * Makefile.in (distclean): Don't mention gdbserver.
15813
15814 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15815
15816 * source-cache.c (source_cache::ensure): Surround
15817 get_plain_source_lines with a try/catch.
15818 (source_cache::get_line_charpos): Get rid of try/catch
15819 and only check for the return value of "ensure".
15820 * tui/tui-source.c (tui_source_window::set_contents):
15821 Simplify "nlines" calculation.
15822
15823 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15824
15825 * MAINTAINERS (Write After Approval): Add myself.
15826
15827 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15828
15829 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15830 function call.
15831
15832 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15833
15834 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15835
15836 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15837
15838 * nat/riscv-linux-tdesc.h: New file.
15839 * nat/riscv-linux-tdesc.c: New file, taking code from...
15840 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15841 ... here.
15842 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15843 NATDEPFILES.
15844
15845 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15846
15847 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15848 we don't set the fake simulator ptid to the null_ptid.
15849
15850 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15851
15852 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15853 * gdbthread.h (class thread_info) <resumed>: Likewise.
15854 * infrun.c (resume_1): Likewise.
15855 (proceed): Likewise.
15856 (infrun_thread_stop_requested): Likewise.
15857 (stop_all_threads): Likewise.
15858 (handle_inferior_event): Likewise.
15859 (restart_threads): Likewise.
15860 (finish_step_over): Likewise.
15861 (keep_going_stepped_thread): Likewise.
15862 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15863 (linux_handle_extended_wait): Likewise.
15864 * record-btrace.c (get_thread_current_frame_id): Likewise.
15865 * record-full.c (record_full_wait_1): Likewise.
15866 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15867 * target.c (target_resume): Likewise.
15868 * thread.c (set_running_thread): Likewise.
15869
15870 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15871
15872 * f-valprint.c (f77_print_array_1): Changed datatype of index
15873 variable to LONGEST from int to enable it to contain bound
15874 values correctly.
15875
15876 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15877
15878 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15879 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15880 offsets according to FLEN determined.
15881 (riscv_linux_nat_target::read_description): Determine FLEN
15882 dynamically.
15883 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15884 according to FLEN determined.
15885 (riscv_linux_nat_target::store_registers): Likewise.
15886
15887 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15888
15889 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15890 when reg->group is empty and reggroup is not.
15891
15892 2020-01-31 Tom Tromey <tromey@adacore.com>
15893
15894 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15895 Call beneath target's mourn_inferior after unpushing.
15896
15897 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15898
15899 PR tui/9765
15900 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15901 have enough lines to fill the screen, still return the lowest
15902 address we found.
15903
15904 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15905
15906 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15907 '-', '<', and '>' commands.
15908
15909 2020-01-29 Pedro Alves <palves@redhat.com>
15910 Sergio Durigan Junior <sergiodj@redhat.com>
15911
15912 * infcmd.c (construct_inferior_arguments): Assert that
15913 'argc' is greater than 0.
15914
15915 2020-01-29 Luis Machado <luis.machado@linaro.org>
15916
15917 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15918 (BRK_INSN_MASK): Define to 0xd4200000.
15919 (aarch64_program_breakpoint_here_p): New function.
15920 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15921 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15922 breakpoint.c.
15923 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15924 breakpoint.h
15925 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15926 call gdbarch_program_breakpoint_here_p.
15927 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15928 default_program_breakpoint_here_p, changed return type to bool and
15929 simplified.
15930 * breakpoint.h (program_breakpoint_here): Moved prototype to
15931 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15932 return type to bool.
15933 * gdbarch.c: Regenerate.
15934 * gdbarch.h: Regenerate.
15935 * gdbarch.sh (program_breakpoint_here_p): New method.
15936 * infrun.c (handle_signal_stop): Call
15937 gdbarch_program_breakpoint_here_p.
15938
15939 2020-01-26 Tom Tromey <tom@tromey.com>
15940
15941 * ctfread.c (struct ctf_fp_info): Reindent.
15942 (_initialize_ctfread): Remove.
15943
15944 2020-01-26 Tom Tromey <tom@tromey.com>
15945
15946 * psymtab.c (partial_map_expand_apply)
15947 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15948 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15949 (psym_print_stats, psym_expand_symtabs_for_function)
15950 (psym_map_symbol_filenames, psym_map_matching_symbols)
15951 (psym_expand_symtabs_matching)
15952 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15953 (maintenance_check_psymtabs): Use new methods.
15954 * psympriv.h (struct partial_symtab) <readin_p,
15955 get_compunit_symtab>: New methods.
15956 <readin, compunit_symtab>: Remove members.
15957 (struct standard_psymtab): New.
15958 (struct legacy_psymtab): Derive from standard_psymtab.
15959 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15960 standard_psymtab.
15961 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15962
15963 2020-01-26 Tom Tromey <tom@tromey.com>
15964
15965 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15966 read_dependencies. Add assert.
15967 * psymtab.c (partial_symtab::read_dependencies): New method.
15968 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15969 method.
15970 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15971 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15972 read_dependencies.
15973 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15974 Add assert.
15975
15976 2020-01-26 Tom Tromey <tom@tromey.com>
15977
15978 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15979 Call expand_psymtab.
15980 (xcoff_read_symtab): Call expand_psymtab.
15981 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15982 legacy_expand_psymtab.
15983 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15984 method.
15985 (struct legacy_psymtab) <expand_psymtab>: Implement.
15986 <legacy_expand_psymtab>: New member.
15987 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15988 (parse_partial_symbols): Set legacy_expand_psymtab.
15989 (psymtab_to_symtab_1): Change argument order. Call
15990 expand_psymtab.
15991 (new_psymtab): Set legacy_expand_psymtab.
15992 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15993 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15994 expand_psymtab.
15995 (dwarf2_psymtab::expand_psymtab): Rename from
15996 psymtab_to_symtab_1. Call expand_psymtab.
15997 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15998 (dbx_end_psymtab): Likewise.
15999 (dbx_psymtab_to_symtab_1): Change argument order. Call
16000 expand_psymtab.
16001 (dbx_read_symtab): Call expand_psymtab.
16002 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16003 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16004 (ctf_psymtab::read_symtab): Call expand_psymtab.
16005
16006 2020-01-26 Tom Tromey <tom@tromey.com>
16007
16008 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16009 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16010 messages.
16011 * mdebugread.c (mdebug_read_symtab): Remove prints.
16012 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16013 assert.
16014 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16015
16016 2020-01-26 Tom Tromey <tom@tromey.com>
16017
16018 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16019 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16020 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16021 legacy_symtab.
16022 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16023 * psymtab.c (psymtab_to_symtab): Call method.
16024 (dump_psymtab): Update.
16025 * psympriv.h (struct partial_symtab): Add virtual destructor.
16026 <read_symtab>: New method.
16027 (struct legacy_symtab): New.
16028 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16029 (struct pst_map) <pst>: Now a legacy_psymtab.
16030 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16031 (new_psymtab): Use legacy_psymtab.
16032 * dwarf2read.h (struct dwarf2_psymtab): New.
16033 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16034 * dwarf2read.c (dwarf2_create_include_psymtab)
16035 (dwarf2_build_include_psymtabs, create_type_unit_group)
16036 (create_partial_symtab, process_psymtab_comp_unit_reader)
16037 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16038 (set_partial_user): Use dwarf2_psymtab.
16039 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16040 (psymtab_to_symtab_1, process_full_comp_unit)
16041 (process_full_type_unit, dwarf2_ranges_read)
16042 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16043 (dwarf_decode_lines): Use dwarf2_psymtab.
16044 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16045 (add_address_entry_worker, write_one_signatured_type)
16046 (recursively_count_psymbols, recursively_write_psymbols)
16047 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16048 (write_debug_names): Likewise.
16049 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16050 <pst>: Now a legacy_psymtab.
16051 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16052 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16053 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16054 * ctfread.c (struct ctf_psymtab): New.
16055 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16056 ctf_psymtab.
16057 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16058 (create_partial_symtab): Return a ctf_psymtab.
16059 (scan_partial_symbols): Update.
16060
16061 2020-01-26 Tom Tromey <tom@tromey.com>
16062
16063 * xcoffread.c (xcoff_start_psymtab): Use new.
16064 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16065 renamed from start_psymtab_common.
16066 * psympriv.h (struct partial_symtab): Add new constructor.
16067 (start_psymtab_common): Don't declare.
16068 * mdebugread.c (parse_partial_symbols): Use new.
16069 * dwarf2read.c (create_partial_symtab): Use new.
16070 * dbxread.c (start_psymtab): Use new.
16071 * ctfread.c (create_partial_symtab): Use new.
16072
16073 2020-01-26 Tom Tromey <tom@tromey.com>
16074
16075 * xcoffread.c (xcoff_end_psymtab): Use new.
16076 * psymtab.c (start_psymtab_common): Use new.
16077 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16078 Update.
16079 * psympriv.h (struct partial_symtab): Add parameters to
16080 constructor. Don't inline.
16081 (allocate_psymtab): Don't declare.
16082 * mdebugread.c (new_psymtab): Use new.
16083 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16084 * dbxread.c (dbx_end_psymtab): Use new.
16085
16086 2020-01-26 Tom Tromey <tom@tromey.com>
16087
16088 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16089 allocate_psymtab. Update documentation.
16090 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16091 allocate_psymtab. Do not use new.
16092 (allocate_psymtab): Use new. Update.
16093
16094 2020-01-26 Tom Tromey <tom@tromey.com>
16095
16096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16097 * psymtab.c (psym_print_stats): Update.
16098 * psympriv.h (struct partial_symtab) <readin,
16099 psymtabs_addrmap_supported, anonymous>: Now bool.
16100 * mdebugread.c (psymtab_to_symtab_1): Update.
16101 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16102 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16103 (process_full_comp_unit, process_full_type_unit): Update.
16104 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16105 * ctfread.c (psymtab_to_symtab): Update.
16106
16107 2020-01-26 Tom Tromey <tom@tromey.com>
16108
16109 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16110 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16111 * psymtab.c (psymtab_storage): Delete psymtabs.
16112 (psymtab_storage::allocate_psymtab): Use new.
16113 (psymtab_storage::discard_psymtab): Use delete.
16114 * psympriv.h (struct partial_symtab): Add constructor and
16115 initializers.
16116
16117 2020-01-26 Tom Tromey <tom@tromey.com>
16118
16119 * machoread.c: Do not include psympriv.h.
16120
16121 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16122
16123 * NEWS: Mention the new option and the set/show commands.
16124
16125 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16126
16127 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16128 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16129 (validate_exec_file): New variables, enums, functions.
16130 (exec_file_locate_attach, print_section_info): Style the filenames.
16131 (_initialize_exec): Install show_exec_file_mismatch_command and
16132 set_exec_file_mismatch_command.
16133 * gdbcore.h (validate_exec_file): Declare.
16134 * infcmd.c (attach_command): Call validate_exec_file.
16135 * remote.c ( remote_target::remote_add_inferior): Likewise.
16136
16137 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16138
16139 * frame.c (find_frame_sal): Move call to get_next_frame into more
16140 inner scope.
16141 * inline-frame.c (inilne_state) <inline_state>: Update argument
16142 types.
16143 (inilne_state) <skipped_symbol>: Rename to...
16144 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16145 (skip_inline_frames): Build vector of skipped symbols and use this
16146 to reate the inline_state.
16147 (inline_skipped_symbol): Add a comment and some assertions, fetch
16148 skipped symbol from the list.
16149
16150 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16151
16152 * buildsym.c (lte_is_less_than): Delete.
16153 (buildsym_compunit::end_symtab_with_blockvector): Create local
16154 lambda function to sort line table entries, and use
16155 std::stable_sort instead of std::sort.
16156 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16157 markers when looking for a previous line.
16158
16159 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16160
16161 * dwarf2read.c (lnp_state_machine::record_line): Include
16162 end_sequence parameter in debug print out. Record the line if we
16163 are at an end_sequence marker even if it's not the start of a
16164 statement.
16165 * symmisc.c (maintenance_print_one_line_table): Print end of
16166 sequence markers with 'END' not '0'.
16167
16168 2020-01-24 Pedro Alves <palves@redhat.com>
16169
16170 PR gdb/25410
16171 * thread.c (scoped_restore_current_thread::restore): Use
16172 switch_to_inferior_no_thread.
16173 * exec.c: Include "progspace-and-thread.h".
16174 (add_target_sections, remove_target_sections):
16175 scoped_restore_current_pspace_and_thread instead of
16176 scoped_restore_current_thread.
16177 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16178 and aspace to the inferior before calling clone_program_space.
16179 Remove stale comment.
16180
16181 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16182
16183 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16184 (arm_netbsd_nat_target::fetch_registers): ...this.
16185 (arm_nbsd_nat_target::store_registers): Rename to...
16186 (arm_netbsd_nat_target::store_registers): ...this.
16187
16188 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16189
16190 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16191 register_t.
16192
16193 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16194
16195 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16196 Update comment.
16197 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16198 Likewise.
16199 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16200 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16201 the correct replacement (iterate_over_regset_sections).
16202 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16203 Update comment.
16204
16205 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16206
16207 PR gdb/23718
16208 * gdb/python/python.c (execute_gdb_command): Call
16209 async_enable_stdin in catch block.
16210
16211 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16212
16213 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16214 SWITCH_THRU_ALL_UIS.
16215
16216 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16217
16218 PR tui/9765
16219 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16220 comment, add extra parameter, and update to store previous symbol
16221 when appropriate.
16222 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16223 add extra parameter.
16224 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16225 remove unneeded parameter, add try/catch around gdb_print_insn,
16226 rewrite to add items to asm_lines vector.
16227 (tui_find_backward_disassembly_start_address): New function.
16228 (tui_find_disassembly_address): Updated throughout.
16229 (tui_disasm_window::set_contents): Update for changes to
16230 tui_disassemble.
16231 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16232 number of lines to scroll.
16233
16234 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16235
16236 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16237 (SECT_OFF_DATA): Likewise.
16238 (SECT_OFF_RODATA): Likewise.
16239 (SECT_OFF_TEXT): Likewise.
16240 (SECT_OFF_BSS): Likewise.
16241 (struct objfile) <text_section_offset, data_section_offset>: New
16242 methods.
16243 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16244 objfile::text_section_offset.
16245 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16246 * coffread.c (coff_symtab_read): Likewise.
16247 (enter_linenos): Likewise.
16248 (process_coff_symbol): Likewise.
16249 * ctfread.c (get_objfile_text_range): Likewise.
16250 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16251 Use objfile::data_section_offset.
16252 * dwarf2-frame.c (execute_cfa_program): Use
16253 objfile::text_section_offset.
16254 (dwarf2_frame_find_fde): Likewise.
16255 * dwarf2read.c (create_addrmap_from_index): Likewise.
16256 (create_addrmap_from_aranges): Likewise.
16257 (dw2_find_pc_sect_compunit_symtab): Likewise.
16258 (process_psymtab_comp_unit_reader): Likewise.
16259 (add_partial_symbol): Likewise.
16260 (add_partial_subprogram): Likewise.
16261 (process_full_comp_unit): Likewise.
16262 (read_file_scope): Likewise.
16263 (read_func_scope): Likewise.
16264 (read_lexical_block_scope): Likewise.
16265 (read_call_site_scope): Likewise.
16266 (dwarf2_rnglists_process): Likewise.
16267 (dwarf2_ranges_process): Likewise.
16268 (dwarf2_ranges_read): Likewise.
16269 (dwarf_decode_lines_1): Likewise.
16270 (new_symbol): Likewise.
16271 (dwarf2_fetch_die_loc_sect_off): Likewise.
16272 (dwarf2_per_cu_text_offset): Likewise.
16273 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16274 * hppa-tdep.c (read_unwind_info): Likewise.
16275 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16276 * psympriv.h (struct partial_symtab): Likewise.
16277 * psymtab.c (find_pc_sect_psymtab): Likewise.
16278 * solib-svr4.c (enable_break): Likewise.
16279 * stap-probe.c (relocate_address): Use
16280 objfile::data_section_offset.
16281 * xcoffread.c (enter_line_range): Use
16282 objfile::text_section_offset.
16283 (read_xcoff_symtab): Likewise.
16284
16285 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16286
16287 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16288 declaration to narrower scopes.
16289
16290 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16291
16292 * darwin-nat.h (struct darwin_exception_msg, enum
16293 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16294 Move up.
16295 (class darwin_nat_target) <wait_1, check_new_threads,
16296 decode_exception_message, decode_message, stop_inferior,
16297 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16298 * darwin-nat.c (darwin_check_new_threads): Rename to...
16299 (darwin_nat_target::check_new_threads): ... this.
16300 (darwin_suspend_inferior_it): Remove.
16301 (darwin_decode_exception_message): Rename to...
16302 (darwin_nat_target::decode_exception_message): ... this.
16303 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16304 (darwin_decode_message): Rename to...
16305 (darwin_nat_target::decode_message): ... this.
16306 (cancel_breakpoint): Rename to...
16307 (darwin_nat_target::cancel_breakpoint): ... this.
16308 (darwin_wait): Rename to...
16309 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16310 instead of iterate_over_inferiors.
16311 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16312 (darwin_stop_inferior): Rename to...
16313 (darwin_nat_target::stop_inferior): ... this.
16314 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16315 (darwin_init_thread_list): Rename to...
16316 (darwin_nat_target::init_thread_list): ... this.
16317 (darwin_ptrace_him): Rename to...
16318 (darwin_nat_target::ptrace_him): ... this.
16319 (darwin_nat_target::create_inferior): Pass lambda function to
16320 fork_inferior.
16321 (darwin_nat_target::detach): Call stop_inferior instead of
16322 darwin_stop_inferior.
16323 * fork-inferior.h (fork_inferior): Change init_trace_fun
16324 parameter to gdb::function_view.
16325 * fork-inferior.c (fork_inferior): Likewise.
16326
16327 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16328
16329 * i386-cygwin-tdep.c (core_process_module_section): Update.
16330 * windows-nat.c (struct lm_info_windows): Add text_offset.
16331 (windows_xfer_shared_libraries): Update.
16332 * windows-tdep.c (windows_xfer_shared_library):
16333 Add text_offset_cached argument.
16334 * windows-tdep.h (windows_xfer_shared_library): Update.
16335
16336 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16337
16338 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16339
16340 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16341
16342 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16343 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16344 replace with range-based for.
16345 (gdbsim_interrupt_inferior): Remove.
16346 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16347 with a range-based for. Inline code from
16348 gdbsim_interrupt_inferior.
16349
16350 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16351
16352 * infrun.c (proceed): Fix indentation.
16353
16354 2020-01-21 Tom Tromey <tromey@adacore.com>
16355
16356 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16357 * python/python.c (python_extension_ops): Update.
16358 (gdbpy_colorize): New function.
16359 * python/lib/gdb/__init__.py (colorize): New function.
16360 * extension.h (ext_lang_colorize): Declare.
16361 * extension.c (ext_lang_colorize): New function.
16362 * extension-priv.h (struct extension_language_ops) <colorize>: New
16363 member.
16364 * cli/cli-style.c (_initialize_cli_style): Update help text.
16365
16366 2020-01-21 Luis Machado <luis.machado@linaro.org>
16367
16368 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16369 <cond>: Change type to bool.
16370 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16371 (aarch64_displaced_step_cb): Likewise.
16372 (aarch64_displaced_step_tb): Likewise.
16373
16374 2020-01-21 Luis Machado <luis.machado@linaro.org>
16375
16376 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16377 output.
16378
16379 2020-01-21 Luis Machado <luis.machado@linaro.org>
16380
16381 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16382 <pc_adjust>: Adjust the documentation.
16383 (aarch64_displaced_step_fixup): Check if PC really moved before
16384 adjusting it.
16385
16386 2020-01-19 Tom Tromey <tom@tromey.com>
16387
16388 * disasm.c (~gdb_disassembler): New destructor.
16389 (gdb_buffered_insn_length): Call disassemble_free_target.
16390 * disasm.h (class gdb_disassembler): Declare destructor. Use
16391 DISABLE_COPY_AND_ASSIGN.
16392
16393 2020-01-19 Tom Tromey <tom@tromey.com>
16394
16395 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16396 (die_reader_func_ftype): Remove.
16397 (cutu_reader): New class.
16398 (dw2_get_file_names_reader): Remove "data" parameter.
16399 (dw2_get_file_names): Use cutu_reader.
16400 (create_debug_type_hash_table): Update.
16401 (read_cutu_die_from_dwo): Update comment.
16402 (lookup_dwo_unit): Add dwo_name parameter.
16403 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16404 die_reader_func_ftype and data parameters.
16405 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16406 Remove die_reader_func_ftype and data parameters.
16407 (~cutu_reader): New; from init_cutu_and_read_dies.
16408 (cutu_reader::cutu_reader): Rename from
16409 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16410 and data parameters.
16411 (init_cutu_and_read_dies_simple): Remove.
16412 (struct process_psymtab_comp_unit_data): Remove.
16413 (process_psymtab_comp_unit_reader): Remove data parameter; add
16414 want_partial_unit and pretend_language parameters.
16415 (process_psymtab_comp_unit): Use cutu_reader.
16416 (build_type_psymtabs_reader): Remove data parameter.
16417 (build_type_psymtabs_1): Use cutu_reader.
16418 (process_skeletonless_type_unit): Likewise.
16419 (load_partial_comp_unit_reader): Remove.
16420 (load_partial_comp_unit): Use cutu_reader.
16421 (load_full_comp_unit_reader): Remove.
16422 (load_full_comp_unit): Use cutu_reader.
16423 (struct create_dwo_cu_data): Remove.
16424 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16425 dwo_unit parameters.
16426 (create_cus_hash_table): Use cutu_reader.
16427 (struct dwarf2_read_addr_index_data): Remove.
16428 (dwarf2_read_addr_index_reader): Remove.
16429 (dwarf2_read_addr_index): Use cutu_reader.
16430 (read_signatured_type_reader): Remove.
16431 (read_signatured_type): Use cutu_reader.
16432
16433 2020-01-19 Tom Tromey <tom@tromey.com>
16434
16435 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16436 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16437 (tui_wrefresh): Declare.
16438 * tui/tui-wingeneral.c (suppress_output): New global.
16439 (tui_suppress_output, ~tui_suppress_output): New constructor and
16440 destructor.
16441 (tui_wrefresh): New function.
16442 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16443 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16444 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16445 method.
16446 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16447 tui_wrefresh.
16448 (tui_data_window::no_refresh): New method.
16449 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16450 (tui_reg_command): Use tui_suppress_output
16451 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16452 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16453 method.
16454 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16455
16456 2020-01-19 Tom Tromey <tom@tromey.com>
16457
16458 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16459 Handle case where symtab is null.
16460
16461 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16462
16463 * linux-fork.c (one_fork_p): Simplify.
16464
16465 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16466
16467 * top.c (struct qt_args): Remove.
16468 (kill_or_detach): Change return type to void, replace `void *`
16469 parameter with a proper one.
16470 (print_inferior_quit_action): Likewise.
16471 (quit_confirm): Use range-based for loop to iterate over inferiors.
16472 (quit_force): Likewise.
16473
16474 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16475
16476 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16477 `void *` parameter with proper parameters.
16478 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16479 (print_one_inferior): Change return type to void, replace `void *`
16480 parameter with proper parameters.
16481 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16482 inferiors.
16483 (get_other_inferior): Remove.
16484 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16485 inferiors.
16486
16487 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16488
16489 * mi/mi-interp.c (report_initial_inferior): Remove.
16490 (mi_interp::init): Use range-based for to iterate over inferiors.
16491
16492 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16493
16494 * python/py-inferior.c (build_inferior_list): Remove.
16495 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16496
16497 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16498
16499 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16500 (btrace_stitch_trace): Likewise.
16501 * charset.c (intermediate_encoding): Likewise (vaild).
16502 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16503 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16504 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16505
16506 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16507
16508 * windows-tdep.c (windows_get_tlb_type):
16509 Add rtl_user_process_parameters type.
16510
16511 2020-01-16 Pedro Alves <palves@redhat.com>
16512 Norbert Lange <nolange79@gmail.com>
16513
16514 PR build/24805
16515 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16516 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16517 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16518 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16519 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16520 (ps_plog): Redeclare exported functions with default visibility.
16521
16522 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16523
16524 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16525 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16526
16527 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16528
16529 * infcmd.c (post_create_inferior): Use get_thread_regcache
16530 instead of get_current_regcache.
16531
16532 2020-01-14 Tom Tromey <tom@tromey.com>
16533
16534 PR symtab/12535:
16535 * python/python.c (gdbpy_decode_line): Treat empty string the same
16536 as no argument.
16537
16538 2020-01-14 Tom Tromey <tom@tromey.com>
16539
16540 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16541
16542 2020-01-14 Tom Tromey <tom@tromey.com>
16543
16544 * nat/linux-btrace.c: Don't include <config.h>.
16545 * nat/linux-ptrace.c: Don't include <config.h>.
16546 * nat/x86-linux-dregs.c: Don't include <config.h>.
16547
16548 2020-01-14 Tom Tromey <tom@tromey.com>
16549
16550 * configure: Rebuild.
16551 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16552
16553 2020-01-14 Tom Tromey <tom@tromey.com>
16554
16555 * nat/x86-linux-dregs.c: Include configh.h.
16556 * nat/linux-ptrace.c: Include configh.h.
16557 * nat/linux-btrace.c: Include configh.h.
16558 * defs.h: Include config.h, bfd.h.
16559 * configure.ac: Don't source common.host.
16560 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16561 * configure: Rebuild.
16562 * acinclude.m4: Update path.
16563 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16564 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16565 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16566 (CLIBS): Add LIBSUPPORT.
16567 (CDEPS): Likewise.
16568 (COMMON_SFILES): Remove gdbsupport files.
16569 (HFILES_NO_SRCDIR): Likewise.
16570 (stamp-version): Update path to create-version.sh.
16571 (ALLDEPFILES): Remove gdbsupport files.
16572
16573 2020-01-14 Tom Tromey <tom@tromey.com>
16574
16575 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16576 USE_WIN32API when needed.
16577 * configure.ac (USE_WIN32API): Don't define.
16578 (WIN32LIBS): Use WIN32APILIBS.
16579 * configure: Rebuild.
16580
16581 2020-01-14 Tom Tromey <tom@tromey.com>
16582
16583 * configure: Rebuild.
16584 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16585
16586 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16587
16588 * skip.c (skip_function_command): Make skip w/o arguments use the
16589 name of the inlined function if pc is inside any inlined function.
16590
16591 2020-01-14 Luis Machado <luis.machado@linaro.org>
16592
16593 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16594 * infrun.c (resume_1): Likewise.
16595 (handle_inferior_event): Remove stale comment.
16596 * linux-nat.c (linux_nat_target::resume): Update comments.
16597 (save_stop_reason): Likewise.
16598 (linux_nat_filter_event): Likewise.
16599 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16600
16601 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16602
16603 * elfread.c (record_minimal_symbol): Set section index to 0 for
16604 non-allocatable sections.
16605
16606
16607 2020-01-13 Ali Tamur <tamur@google.com>
16608
16609 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16610 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16611 to gdb::optional. Update comments.
16612 (dwo_file): Update comments.
16613 (read_attribute): Update API to take an additional out parameter,
16614 need_reprocess. This is used to mark attributes that need other
16615 attributes (e.g. str_offsets_base) for correct computation which may not
16616 have been read yet.
16617 (read_attribute_reprocess): New function declaration.
16618 (read_addr_index): Likewise.
16619 (read_dwo_str_index): Likewise.
16620 (read_stub_str_index): Likewise.
16621 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16622 (lookup_addr_base): New function definition.
16623 (lookup_ranges_base): Likewise.
16624 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16625 lookup_ranges_base.
16626 (init_cutu_and_read_dies): Update comments.
16627 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16628 unit. This is used to inherit parent's str_offsets_base and addr_base.
16629 Update comments.
16630 (init_cutu_and_read_dies_simple): Reflect API changes.
16631 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16632 (create_cus_hash_table): Change API to take parent compile unit.
16633 Reflect API changes.
16634 (open_and_init_dwo_file): Reflect API changes.
16635 (dwarf2_get_pc_bounds): Update comments.
16636 (dwarf2_record_block_ranges): Likewise.
16637 (read_full_die_1): Change implementation to reprocess attributes that
16638 need str_offsets_base and addr_base.
16639 (partial_die_info::read): Likewise.
16640 (read_attribute_reprocess): New function definition.
16641 (read_attribute_value): Change API to take an additional out parameter,
16642 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16643 when a non-dwo compile unit has index based attributes.
16644 (read_attribute): Reflect API changes.
16645 (read_addr_index_1): Reflect API changes. Update comments.
16646 (dwarf2_read_addr_index_data): Reflect API changes.
16647 (dwarf2_read_addr_index): Likewise.
16648 (read_str_index): Change API and implementation. This becomes a helper
16649 to be used by the new string index related methods. Update error
16650 message and comments.
16651 (read_dwo_str_index): New function definition.
16652 (read_stub_str_index): Likewise.
16653 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16654 * symfile.h (dwarf2_debug_sections): Likewise.
16655 * xcoffread.c (dwarf2_debug_sections): Likewise.
16656
16657 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16658
16659 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16660 core_reg_sect type to gdb_byte *.
16661 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16662 * cris-tdep.c (fetch_core_registers): Likewise.
16663 * corelow.c (core_target::get_core_register_section): Change
16664 type of `contents` to gdb::byte_vector.
16665
16666 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16667
16668 * tui/tui-wingeneral.c (box_win): Position the title in the center
16669 of the border.
16670
16671 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16672
16673 * corelow.c (core_target::get_core_register_section): Use
16674 std::vector instead of alloca.
16675
16676 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16677
16678 * warning.m4: Add -Wmissing-declarations to build_warnings.
16679 * configure: Re-generate.
16680
16681 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16682
16683 * python/python.c (init__gdb_module): Add declaration.
16684
16685 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16686
16687 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16688 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16689 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16690 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16691 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16692 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16693 * ada-exp.y (_initialize_ada_exp): Add declaration.
16694 * ada-lang.c (_initialize_ada_language): Add declaration.
16695 * ada-tasks.c (_initialize_tasks): Add declaration.
16696 * agent.c (_initialize_agent): Add declaration.
16697 * aix-thread.c (_initialize_aix_thread): Add declaration.
16698 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16699 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16700 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16701 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16702 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16703 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16704 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16705 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16706 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16707 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16708 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16709 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16710 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16711 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16712 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16713 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16714 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16715 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16716 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16717 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16718 * annotate.c (_initialize_annotate): Add declaration.
16719 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16720 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16721 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16722 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16723 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16724 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16725 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16726 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16727 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16728 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16729 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16730 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16731 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16732 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16733 * auto-load.c (_initialize_auto_load): Add declaration.
16734 * auxv.c (_initialize_auxv): Add declaration.
16735 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16736 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16737 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16738 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16739 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16740 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16741 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16742 * breakpoint.c (_initialize_breakpoint): Add declaration.
16743 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16744 * btrace.c (_initialize_btrace): Add declaration.
16745 * charset.c (_initialize_charset): Add declaration.
16746 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16747 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16748 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16749 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16750 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16751 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16752 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16753 * coffread.c (_initialize_coffread): Add declaration.
16754 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16755 * compile/compile.c (_initialize_compile): Add declaration.
16756 * complaints.c (_initialize_complaints): Add declaration.
16757 * completer.c (_initialize_completer): Add declaration.
16758 * copying.c (_initialize_copying): Add declaration.
16759 * corefile.c (_initialize_core): Add declaration.
16760 * corelow.c (_initialize_corelow): Add declaration.
16761 * cp-abi.c (_initialize_cp_abi): Add declaration.
16762 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16763 * cp-support.c (_initialize_cp_support): Add declaration.
16764 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16765 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16766 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16767 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16768 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16769 * ctfread.c (_initialize_ctfread): Add declaration.
16770 * d-lang.c (_initialize_d_language): Add declaration.
16771 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16772 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16773 * dbxread.c (_initialize_dbxread): Add declaration.
16774 * dcache.c (_initialize_dcache): Add declaration.
16775 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16776 * disasm.c (_initialize_disasm): Add declaration.
16777 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16778 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16779 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16780 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16781 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16782 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16783 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16784 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16785 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16786 * elfread.c (_initialize_elfread): Add declaration.
16787 * exec.c (_initialize_exec): Add declaration.
16788 * extension.c (_initialize_extension): Add declaration.
16789 * f-lang.c (_initialize_f_language): Add declaration.
16790 * f-valprint.c (_initialize_f_valprint): Add declaration.
16791 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16792 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16793 * filesystem.c (_initialize_filesystem): Add declaration.
16794 * findcmd.c (_initialize_mem_search): Add declaration.
16795 * findvar.c (_initialize_findvar): Add declaration.
16796 * fork-child.c (_initialize_fork_child): Add declaration.
16797 * frame-base.c (_initialize_frame_base): Add declaration.
16798 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16799 * frame.c (_initialize_frame): Add declaration.
16800 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16801 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16802 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16803 * gcore.c (_initialize_gcore): Add declaration.
16804 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16805 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16806 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16807 * gdbarch.c (_initialize_gdbarch): Add declaration.
16808 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16809 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16810 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16811 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16812 * go-lang.c (_initialize_go_language): Add declaration.
16813 * go32-nat.c (_initialize_go32_nat): Add declaration.
16814 * guile/guile.c (_initialize_guile): Add declaration.
16815 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16816 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16817 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16818 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16819 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16820 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16821 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16822 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16823 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16824 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16825 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16826 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16827 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16828 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16829 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16830 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16831 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16832 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16833 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16834 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16835 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16836 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16837 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16838 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16839 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16840 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16841 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16842 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16843 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16844 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16845 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16846 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16847 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16848 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16849 * infcall.c (_initialize_infcall): Add declaration.
16850 * infcmd.c (_initialize_infcmd): Add declaration.
16851 * inflow.c (_initialize_inflow): Add declaration.
16852 * infrun.c (_initialize_infrun): Add declaration.
16853 * interps.c (_initialize_interpreter): Add declaration.
16854 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16855 * jit.c (_initialize_jit): Add declaration.
16856 * language.c (_initialize_language): Add declaration.
16857 * linux-fork.c (_initialize_linux_fork): Add declaration.
16858 * linux-nat.c (_initialize_linux_nat): Add declaration.
16859 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16860 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16861 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16862 * m2-lang.c (_initialize_m2_language): Add declaration.
16863 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16864 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16865 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16866 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16867 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16868 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16869 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16870 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16871 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16872 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16873 * machoread.c (_initialize_machoread): Add declaration.
16874 * macrocmd.c (_initialize_macrocmd): Add declaration.
16875 * macroscope.c (_initialize_macroscope): Add declaration.
16876 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16877 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16878 * maint.c (_initialize_maint_cmds): Add declaration.
16879 * mdebugread.c (_initialize_mdebugread): Add declaration.
16880 * memattr.c (_initialize_mem): Add declaration.
16881 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16882 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16883 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16884 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16885 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16886 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16887 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16888 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16889 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16890 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16891 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16892 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16893 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16894 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16895 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16896 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16897 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16898 * mipsread.c (_initialize_mipsread): Add declaration.
16899 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16900 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16901 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16902 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16903 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16904 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16905 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16906 * nto-procfs.c (_initialize_procfs): Add declaration.
16907 * objc-lang.c (_initialize_objc_language): Add declaration.
16908 * observable.c (_initialize_observer): Add declaration.
16909 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16910 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16911 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16912 * osabi.c (_initialize_gdb_osabi): Add declaration.
16913 * osdata.c (_initialize_osdata): Add declaration.
16914 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16915 * parse.c (_initialize_parse): Add declaration.
16916 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16917 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16918 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16919 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16920 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16921 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16922 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16923 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16924 * printcmd.c (_initialize_printcmd): Add declaration.
16925 * probe.c (_initialize_probe): Add declaration.
16926 * proc-api.c (_initialize_proc_api): Add declaration.
16927 * proc-events.c (_initialize_proc_events): Add declaration.
16928 * proc-service.c (_initialize_proc_service): Add declaration.
16929 * procfs.c (_initialize_procfs): Add declaration.
16930 * producer.c (_initialize_producer): Add declaration.
16931 * psymtab.c (_initialize_psymtab): Add declaration.
16932 * python/python.c (_initialize_python): Add declaration.
16933 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16934 * record-btrace.c (_initialize_record_btrace): Add declaration.
16935 * record-full.c (_initialize_record_full): Add declaration.
16936 * record.c (_initialize_record): Add declaration.
16937 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16938 * regcache.c (_initialize_regcache): Add declaration.
16939 * reggroups.c (_initialize_reggroup): Add declaration.
16940 * remote-notif.c (_initialize_notif): Add declaration.
16941 * remote-sim.c (_initialize_remote_sim): Add declaration.
16942 * remote.c (_initialize_remote): Add declaration.
16943 * reverse.c (_initialize_reverse): Add declaration.
16944 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16945 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16946 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16947 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16948 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16949 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16950 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16951 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16952 Add declaration.
16953 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16954 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16955 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16956 * rust-exp.y (_initialize_rust_exp): Add declaration.
16957 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16958 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16959 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16960 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16961 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16962 * score-tdep.c (_initialize_score_tdep): Add declaration.
16963 * ser-go32.c (_initialize_ser_dos): Add declaration.
16964 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16965 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16966 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16967 * ser-uds.c (_initialize_ser_socket): Add declaration.
16968 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16969 * serial.c (_initialize_serial): Add declaration.
16970 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16971 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16972 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16973 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16974 * skip.c (_initialize_step_skip): Add declaration.
16975 * sol-thread.c (_initialize_sol_thread): Add declaration.
16976 * solib-aix.c (_initialize_solib_aix): Add declaration.
16977 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16978 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16979 * solib-frv.c (_initialize_frv_solib): Add declaration.
16980 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16981 * solib-target.c (_initialize_solib_target): Add declaration.
16982 * solib.c (_initialize_solib): Add declaration.
16983 * source-cache.c (_initialize_source_cache): Add declaration.
16984 * source.c (_initialize_source): Add declaration.
16985 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16986 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16987 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16988 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16989 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16990 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16991 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16992 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16993 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16994 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16995 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16996 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16997 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16998 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16999 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17000 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17001 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17002 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17003 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17004 * stabsread.c (_initialize_stabsread): Add declaration.
17005 * stack.c (_initialize_stack): Add declaration.
17006 * stap-probe.c (_initialize_stap_probe): Add declaration.
17007 * std-regs.c (_initialize_frame_reg): Add declaration.
17008 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17009 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17010 * symfile.c (_initialize_symfile): Add declaration.
17011 * symmisc.c (_initialize_symmisc): Add declaration.
17012 * symtab.c (_initialize_symtab): Add declaration.
17013 * target.c (_initialize_target): Add declaration.
17014 * target-connection.c (_initialize_target_connection): Add
17015 declaration.
17016 * target-dcache.c (_initialize_target_dcache): Add declaration.
17017 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17018 * thread.c (_initialize_thread): Add declaration.
17019 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17020 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17021 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17022 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17023 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17024 * tracectf.c (_initialize_ctf): Add declaration.
17025 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17026 * tracefile.c (_initialize_tracefile): Add declaration.
17027 * tracepoint.c (_initialize_tracepoint): Add declaration.
17028 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17029 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17030 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17031 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17032 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17033 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17034 * tui/tui.c (_initialize_tui): Add declaration.
17035 * typeprint.c (_initialize_typeprint): Add declaration.
17036 * ui-style.c (_initialize_ui_style): Add declaration.
17037 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17038 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17039 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17040 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17041 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17042 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17043 * unittests/filtered_iterator-selftests.c
17044 (_initialize_filtered_iterator_selftests): Add declaration.
17045 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17046 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17047 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17048 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17049 * unittests/main-thread-selftests.c
17050 (_initialize_main_thread_selftests): Add declaration.
17051 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17052 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17053 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17054 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17055 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17056 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17057 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17058 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17059 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17060 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17061 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17062 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17063 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17064 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17065 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17066 declaration.
17067 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17068 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17069 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17070 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17071 * user-regs.c (_initialize_user_regs): Add declaration.
17072 * utils.c (_initialize_utils): Add declaration.
17073 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17074 * valops.c (_initialize_valops): Add declaration.
17075 * valprint.c (_initialize_valprint): Add declaration.
17076 * value.c (_initialize_values): Add declaration.
17077 * varobj.c (_initialize_varobj): Add declaration.
17078 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17079 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17080 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17081 * windows-nat.c (_initialize_windows_nat): Add declaration.
17082 (_initialize_check_for_gdb_ini): Add declaration.
17083 (_initialize_loadable): Add declaration.
17084 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17085 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17086 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17087 * xcoffread.c (_initialize_xcoffread): Add declaration.
17088 * xml-support.c (_initialize_xml_support): Add declaration.
17089 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17090 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17091 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17092 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17093
17094 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17095
17096 * regformats/regdat.sh: Generate declaration for init function.
17097
17098 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17099
17100 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17101 up.
17102 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17103 close_one_inferior>: New methods.
17104 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17105 pass down target to find_inferior_pid.
17106 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17107 Pass down target to find_inferior_ptid.
17108 (gdbsim_target::create_inferior): Pass down target to
17109 add_thread_silent.
17110 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17111 target down to find_inferior_ptid and switch_to_thread.
17112 (gdbsim_target::close): Update to call close_one_inferior.
17113 (struct resume_data): Remove.
17114 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17115 directly, rather than through a void pointer.
17116 (gdbsim_target::resume): Update to call resume_one_inferior.
17117
17118 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17119
17120 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17121
17122 2020-01-12 Pedro Alves <palves@redhat.com>
17123
17124 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17125 directly for the current inferior instead of
17126 discard_all_inferiors.
17127 (discard_all_inferiors): Delete.
17128
17129 2020-01-11 Tom Tromey <tom@tromey.com>
17130
17131 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17132 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17133 deprecated_safe_get_selected_frame.
17134
17135 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17136
17137 * inferior.c (print_inferior): Switch inferior before printing it.
17138
17139 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17140 Pedro Alves <palves@redhat.com>
17141
17142 * progspace-and-thread.c (switch_to_program_space_and_thread):
17143 Assert there's an inferior for PSPACE. Use
17144 switch_to_inferior_no_thread to switch the inferior too.
17145 * progspace.c (program_space::~program_space): Call
17146 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17147 (program_space::free_all_objfiles): Don't call clear_symtab_users
17148 here.
17149 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17150
17151 2020-01-10 Pedro Alves <palves@redhat.com>
17152
17153 * NEWS: Mention multi-target debugging, "info connections", and
17154 "add-inferior -no-connection".
17155
17156 2020-01-10 Pedro Alves <palves@redhat.com>
17157
17158 * infrun.c: Include "target-connection.h".
17159 (check_multi_target_resumption): New.
17160 (proceed): Call it.
17161 * target-connection.c (make_target_connection_string): Make
17162 extern.
17163 * target-connection.h (make_target_connection_string): Declare.
17164
17165 2020-01-10 Pedro Alves <palves@redhat.com>
17166
17167 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17168 * inferior.c (uiout_field_connection): New function.
17169 (print_inferior): Add new "connection-id" column.
17170 (add_inferior_command): Show connection number/string of added
17171 inferior.
17172 * process-stratum-target.h
17173 (process_stratum_target::connection_string): New virtual method.
17174 (process_stratum_target::connection_number): New field.
17175 * remote.c (remote_target::connection_string): New override.
17176 * target-connection.c: New file.
17177 * target-connection.h: New file.
17178 * target.c (decref_target): Remove process_stratum targets from
17179 the connection list.
17180 (target_stack::push): Add process_stratum targets to the
17181 connection list.
17182
17183 2020-01-10 Pedro Alves <palves@redhat.com>
17184
17185 Revert:
17186 2016-04-12 Pedro Alves <palves@redhat.com>
17187 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17188 Remove references to name.
17189 * serial.h (struct serial) <name>: Delete.
17190
17191 2020-01-10 Pedro Alves <palves@redhat.com>
17192
17193 * gdbarch-selftests.c (register_to_value_test): Remove "target
17194 already pushed" check.
17195
17196 2020-01-10 Pedro Alves <palves@redhat.com>
17197 John Baldwin <jhb@FreeBSD.org>
17198
17199 * aarch64-linux-nat.c
17200 (aarch64_linux_nat_target::thread_architecture): Adjust.
17201 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17202 (task_command_1): Likewise.
17203 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17204 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17205 (aix_thread_target::store_registers)
17206 (aix_thread_target::thread_alive): Adjust.
17207 * amd64-fbsd-tdep.c: Include "inferior.h".
17208 (amd64fbsd_get_thread_local_address): Pass down target.
17209 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17210 thread's gdbarch instead of target_gdbarch.
17211 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17212 get_last_target_status.
17213 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17214 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17215 inferiors.
17216 (update_inserted_breakpoint_locations): Skip if inferiors with no
17217 execution.
17218 (update_global_location_list): When handling moribund locations,
17219 find representative inferior for location's pspace, and use thread
17220 count of its process_stratum target.
17221 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17222 * bsd-uthread.c (bsd_uthread_target::wait): Use
17223 as_process_stratum_target and adjust thread_change_ptid and
17224 add_thread calls.
17225 (bsd_uthread_target::update_thread_list): Use
17226 as_process_stratum_target and adjust find_thread_ptid,
17227 thread_change_ptid and add_thread calls.
17228 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17229 find_thread_ptid call.
17230 * corelow.c (add_to_thread_list): Adjust add_thread call.
17231 (core_target_open): Adjust add_thread_silent and thread_count
17232 calls.
17233 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17234 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17235 * event-top.c (async_disconnect): Pop targets from all inferiors.
17236 * exec.c (add_target_sections): Push exec target on all inferiors
17237 sharing the program space.
17238 (remove_target_sections): Remove the exec target from all
17239 inferiors sharing the program space.
17240 (exec_on_vfork): New.
17241 * exec.h (exec_on_vfork): Declare.
17242 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17243 Pass it down.
17244 (fbsd_nat_target::update_thread_list): Adjust.
17245 (fbsd_nat_target::resume): Adjust.
17246 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17247 down.
17248 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17249 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17250 get_thread_arch_regcache call.
17251 * fork-child.c (gdb_startup_inferior): Pass target down to
17252 startup_inferior and set_executing.
17253 * gdbthread.h (struct process_stratum_target): Forward declare.
17254 (add_thread, add_thread_silent, add_thread_with_info)
17255 (in_thread_list): Add process_stratum_target parameter.
17256 (find_thread_ptid(inferior*, ptid_t)): New overload.
17257 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17258 parameter.
17259 (all_threads()): Delete overload.
17260 (all_threads, all_non_exited_threads): Add process_stratum_target
17261 parameter.
17262 (all_threads_safe): Use brace initialization.
17263 (thread_count): Add process_stratum_target parameter.
17264 (set_resumed, set_running, set_stop_requested, set_executing)
17265 (threads_are_executing, finish_thread_state): Add
17266 process_stratum_target parameter.
17267 (switch_to_thread): Use is_current_thread.
17268 * i386-fbsd-tdep.c: Include "inferior.h".
17269 (i386fbsd_get_thread_local_address): Pass down target.
17270 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17271 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17272 have_inferiors check.
17273 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17274 (inf_ptrace_target::attach): Adjust.
17275 * infcall.c (run_inferior_call): Adjust.
17276 * infcmd.c (run_command_1): Pass target to
17277 scoped_finish_thread_state.
17278 (proceed_thread_callback): Skip inferiors with no execution.
17279 (continue_command): Rename 'all_threads' local to avoid hiding
17280 'all_threads' function. Adjust get_last_target_status call.
17281 (prepare_one_step): Adjust set_running call.
17282 (signal_command): Use user_visible_resume_target. Compare thread
17283 pointers instead of inferior_ptid.
17284 (info_program_command): Adjust to pass down target.
17285 (attach_command): Mark target's 'thread_executing' flag.
17286 (stop_current_target_threads_ns): New, factored out from ...
17287 (interrupt_target_1): ... this. Switch inferior before making
17288 target calls.
17289 * inferior-iter.h
17290 (struct all_inferiors_iterator, struct all_inferiors_range)
17291 (struct all_inferiors_safe_range)
17292 (struct all_non_exited_inferiors_range): Filter on
17293 process_stratum_target too. Remove explicit.
17294 * inferior.c (inferior::inferior): Push dummy target on target
17295 stack.
17296 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17297 Add process_stratum_target parameter, and pass it down.
17298 (have_live_inferiors): Adjust.
17299 (switch_to_inferior_and_push_target): New.
17300 (add_inferior_command, clone_inferior_command): Handle
17301 "-no-connection" parameter. Use
17302 switch_to_inferior_and_push_target.
17303 (_initialize_inferior): Mention "-no-connection" option in
17304 the help of "add-inferior" and "clone-inferior" commands.
17305 * inferior.h: Include "process-stratum-target.h".
17306 (interrupt_target_1): Use bool.
17307 (struct inferior) <push_target, unpush_target, target_is_pushed,
17308 find_target_beneath, top_target, process_target, target_at,
17309 m_stack>: New.
17310 (discard_all_inferiors): Delete.
17311 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17312 (all_inferiors, all_non_exited_inferiors): Add
17313 process_stratum_target parameter.
17314 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17315 (target_last_proc_target): New global.
17316 (follow_fork_inferior): Push target on new inferior. Pass target
17317 to add_thread_silent. Call exec_on_vfork. Handle target's
17318 reference count.
17319 (follow_fork): Adjust get_last_target_status call. Also consider
17320 target.
17321 (follow_exec): Push target on new inferior.
17322 (struct execution_control_state) <target>: New field.
17323 (user_visible_resume_target): New.
17324 (do_target_resume): Call target_async.
17325 (resume_1): Set target's threads_executing flag. Consider resume
17326 target.
17327 (commit_resume_all_targets): New.
17328 (proceed): Also consider resume target. Skip threads of inferiors
17329 with no execution. Commit resumtion in all targets.
17330 (start_remote): Pass current inferior to wait_for_inferior.
17331 (infrun_thread_stop_requested): Consider target as well. Pass
17332 thread_info pointer to clear_inline_frame_state instead of ptid.
17333 (infrun_thread_thread_exit): Consider target as well.
17334 (random_pending_event_thread): New inferior parameter. Use it.
17335 (do_target_wait): Rename to ...
17336 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17337 down.
17338 (threads_are_resumed_pending_p, do_target_wait): New.
17339 (prepare_for_detach): Adjust calls.
17340 (wait_for_inferior): New inferior parameter. Handle it. Use
17341 do_target_wait_1 instead of do_target_wait.
17342 (fetch_inferior_event): Adjust. Switch to representative
17343 inferior. Pass target down.
17344 (set_last_target_status): Add process_stratum_target parameter.
17345 Save target in global.
17346 (get_last_target_status): Add process_stratum_target parameter and
17347 handle it.
17348 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17349 (context_switch): Check inferior_ptid == null_ptid before calling
17350 inferior_thread().
17351 (get_inferior_stop_soon): Pass down target.
17352 (wait_one): Rename to ...
17353 (poll_one_curr_target): ... this.
17354 (struct wait_one_event): New.
17355 (wait_one): New.
17356 (stop_all_threads): Adjust.
17357 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17358 event's target.
17359 (switch_back_to_stepped_thread): Also consider target.
17360 (print_stop_event): Update.
17361 (normal_stop): Update. Also consider the resume target.
17362 * infrun.h (wait_for_inferior): Remove declaration.
17363 (user_visible_resume_target): New declaration.
17364 (get_last_target_status, set_last_target_status): New
17365 process_stratum_target parameter.
17366 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17367 process_stratum_target parameter, and use it.
17368 (clear_inline_frame_state (thread_info*)): New.
17369 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17370 process_stratum_target parameter.
17371 (clear_inline_frame_state (thread_info*)): Declare.
17372 * linux-fork.c (delete_checkpoint_command): Pass target down to
17373 find_thread_ptid.
17374 (checkpoint_command): Adjust.
17375 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17376 instead of just tweaking inferior_ptid.
17377 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17378 (exit_lwp): Pass target down to find_thread_ptid.
17379 (attach_proc_task_lwp_callback): Pass target down to
17380 add_thread/set_running/set_executing.
17381 (linux_nat_target::attach): Pass target down to
17382 thread_change_ptid.
17383 (get_detach_signal): Pass target down to find_thread_ptid.
17384 Consider last target status's target.
17385 (linux_resume_one_lwp_throw, resume_lwp)
17386 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17387 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17388 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17389 (linux_nat_target::async_wait_fd): New.
17390 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17391 target down.
17392 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17393 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17394 * linux-thread-db.c (struct thread_db_info::process_target): New
17395 field.
17396 (add_thread_db_info): Save target.
17397 (get_thread_db_info): New process_stratum_target parameter. Also
17398 match target.
17399 (delete_thread_db_info): New process_stratum_target parameter.
17400 Also match target.
17401 (thread_from_lwp): Adjust to pass down target.
17402 (thread_db_notice_clone): Pass down target.
17403 (check_thread_db_callback): Pass down target.
17404 (try_thread_db_load_1): Always push the thread_db target.
17405 (try_thread_db_load, record_thread): Pass target down.
17406 (thread_db_target::detach): Pass target down. Always unpush the
17407 thread_db target.
17408 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17409 target down. Always unpush the thread_db target.
17410 (find_new_threads_callback, thread_db_find_new_threads_2)
17411 (thread_db_target::update_thread_list): Pass target down.
17412 (thread_db_target::pid_to_str): Pass current inferior down.
17413 (thread_db_target::get_thread_local_address): Pass target down.
17414 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17415 target down.
17416 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17417 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17418 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17419 (procfs_init_inferior): Rename to ...
17420 (procfs_target::procfs_init_inferior): ... this and adjust.
17421 (procfs_target::create_inferior, procfs_notice_thread)
17422 (procfs_do_thread_registers): Adjust.
17423 * ppc-fbsd-tdep.c: Include "inferior.h".
17424 (ppcfbsd_get_thread_local_address): Pass down target.
17425 * proc-service.c (ps_xfer_memory): Switch current inferior and
17426 program space as well.
17427 (get_ps_regcache): Pass target down.
17428 * process-stratum-target.c
17429 (process_stratum_target::thread_address_space)
17430 (process_stratum_target::thread_architecture): Pass target down.
17431 * process-stratum-target.h
17432 (process_stratum_target::threads_executing): New field.
17433 (as_process_stratum_target): New.
17434 * ravenscar-thread.c
17435 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17436 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17437 down.
17438 * record-btrace.c (record_btrace_target::info_record): Adjust.
17439 (record_btrace_target::record_method)
17440 (record_btrace_target::record_is_replaying)
17441 (record_btrace_target::fetch_registers)
17442 (get_thread_current_frame_id, record_btrace_target::resume)
17443 (record_btrace_target::wait, record_btrace_target::stop): Pass
17444 target down.
17445 * record-full.c (record_full_wait_1): Switch to event thread.
17446 Pass target down.
17447 * regcache.c (regcache::regcache)
17448 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17449 process_stratum_target parameter and handle it.
17450 (current_thread_target): New global.
17451 (get_thread_regcache): Add process_stratum_target parameter and
17452 handle it. Switch inferior before calling target method.
17453 (get_thread_regcache): Pass target down.
17454 (get_thread_regcache_for_ptid): Pass target down.
17455 (registers_changed_ptid): Add process_stratum_target parameter and
17456 handle it.
17457 (registers_changed_thread, registers_changed): Pass target down.
17458 (test_get_thread_arch_aspace_regcache): New.
17459 (current_regcache_test): Define a couple local test_target_ops
17460 instances and use them for testing.
17461 (readwrite_regcache): Pass process_stratum_target parameter.
17462 (cooked_read_test, cooked_write_test): Pass mock_target down.
17463 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17464 (get_thread_arch_aspace_regcache): Add process_stratum_target
17465 parameter.
17466 (regcache::target): New method.
17467 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17468 (regcache::registers_changed_ptid): Add process_stratum_target
17469 parameter.
17470 (regcache::m_target): New field.
17471 (registers_changed_ptid): Add process_stratum_target parameter.
17472 * remote.c (remote_state::supports_vCont_probed): New field.
17473 (remote_target::async_wait_fd): New method.
17474 (remote_unpush_and_throw): Add remote_target parameter.
17475 (get_current_remote_target): Adjust.
17476 (remote_target::remote_add_inferior): Push target.
17477 (remote_target::remote_add_thread)
17478 (remote_target::remote_notice_new_inferior)
17479 (get_remote_thread_info): Pass target down.
17480 (remote_target::update_thread_list): Skip threads of inferiors
17481 bound to other targets. (remote_target::close): Don't discard
17482 inferiors. (remote_target::add_current_inferior_and_thread)
17483 (remote_target::process_initial_stop_replies)
17484 (remote_target::start_remote)
17485 (remote_target::remote_serial_quit_handler): Pass down target.
17486 (remote_target::remote_unpush_target): New remote_target
17487 parameter. Unpush the target from all inferiors.
17488 (remote_target::remote_unpush_and_throw): New remote_target
17489 parameter. Pass it down.
17490 (remote_target::open_1): Check whether the current inferior has
17491 execution instead of checking whether any inferior is live. Pass
17492 target down.
17493 (remote_target::remote_detach_1): Pass down target. Use
17494 remote_unpush_target.
17495 (extended_remote_target::attach): Pass down target.
17496 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17497 (remote_target::append_resumption): Pass down target.
17498 (remote_target::append_pending_thread_resumptions)
17499 (remote_target::remote_resume_with_hc, remote_target::resume)
17500 (remote_target::commit_resume): Pass down target.
17501 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17502 (remote_target::interrupt_query)
17503 (remote_target::remove_new_fork_children)
17504 (remote_target::check_pending_events_prevent_wildcard_vcont)
17505 (remote_target::remote_parse_stop_reply)
17506 (remote_target::process_stop_reply): Pass down target.
17507 (first_remote_resumed_thread): New remote_target parameter. Pass
17508 it down.
17509 (remote_target::wait_as): Pass down target.
17510 (unpush_and_perror): New remote_target parameter. Pass it down.
17511 (remote_target::readchar, remote_target::remote_serial_write)
17512 (remote_target::getpkt_or_notif_sane_1)
17513 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17514 down target.
17515 (remote_target::mourn_inferior): Pass down target. Use
17516 remote_unpush_target.
17517 (remote_target::core_of_thread)
17518 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17519 (remote_target::pid_to_exec_file)
17520 (remote_target::thread_handle_to_thread_info): Pass down target.
17521 (remote_target::async_wait_fd): New.
17522 * riscv-fbsd-tdep.c: Include "inferior.h".
17523 (riscv_fbsd_get_thread_local_address): Pass down target.
17524 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17525 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17526 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17527 Adjust.
17528 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17529 * solib-svr4.c (enable_break): Pass down target.
17530 * spu-multiarch.c (parse_spufs_run): Pass down target.
17531 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17532 * target-delegates.c: Regenerate.
17533 * target.c (g_target_stack): Delete.
17534 (current_top_target): Return the current inferior's top target.
17535 (target_has_execution_1): Refer to the passed-in inferior's top
17536 target.
17537 (target_supports_terminal_ours): Check whether the initial
17538 inferior was already created.
17539 (decref_target): New.
17540 (target_stack::push): Incref/decref the target.
17541 (push_target, push_target, unpush_target): Adjust.
17542 (target_stack::unpush): Defref target.
17543 (target_is_pushed): Return bool. Adjust to refer to the current
17544 inferior's target stack.
17545 (dispose_inferior): Delete, and inline parts ...
17546 (target_preopen): ... here. Only dispose of the current inferior.
17547 (target_detach): Hold strong target reference while detaching.
17548 Pass target down.
17549 (target_thread_name): Add assertion.
17550 (target_resume): Pass down target.
17551 (target_ops::beneath, find_target_at): Adjust to refer to the
17552 current inferior's target stack.
17553 (get_dummy_target): New.
17554 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17555 has a thread running.
17556 (initialize_targets): Rename to ...
17557 (_initialize_target): ... this.
17558 * target.h: Include "gdbsupport/refcounted-object.h".
17559 (struct target_ops): Inherit refcounted_object.
17560 (target_ops::shortname, target_ops::longname): Make const.
17561 (target_ops::async_wait_fd): New method.
17562 (decref_target): Declare.
17563 (struct target_ops_ref_policy): New.
17564 (target_ops_ref): New typedef.
17565 (get_dummy_target): Declare function.
17566 (target_is_pushed): Return bool.
17567 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17568 (all_matching_threads_iterator::all_matching_threads_iterator):
17569 Handle filter target.
17570 * thread-iter.h (struct all_matching_threads_iterator, struct
17571 all_matching_threads_range, class all_non_exited_threads_range):
17572 Filter by target too. Remove explicit.
17573 * thread.c (threads_executing): Delete.
17574 (inferior_thread): Pass down current inferior.
17575 (clear_thread_inferior_resources): Pass down thread pointer
17576 instead of ptid_t.
17577 (add_thread_silent, add_thread_with_info, add_thread): Add
17578 process_stratum_target parameter. Use it for thread and inferior
17579 searches.
17580 (is_current_thread): New.
17581 (thread_info::deletable): Use it.
17582 (find_thread_ptid, thread_count, in_thread_list)
17583 (thread_change_ptid, set_resumed, set_running): New
17584 process_stratum_target parameter. Pass it down.
17585 (set_executing): New process_stratum_target parameter. Pass it
17586 down. Adjust reference to 'threads_executing'.
17587 (threads_are_executing): New process_stratum_target parameter.
17588 Adjust reference to 'threads_executing'.
17589 (set_stop_requested, finish_thread_state): New
17590 process_stratum_target parameter. Pass it down.
17591 (switch_to_thread): Also match inferior.
17592 (switch_to_thread): New process_stratum_target parameter. Pass it
17593 down.
17594 (update_threads_executing): Reimplement.
17595 * top.c (quit_force): Pop targets from all inferior.
17596 (gdb_init): Don't call initialize_targets.
17597 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17598 Declare.
17599 (windows_add_thread, windows_delete_thread): Adjust.
17600 (get_windows_debug_event): Rename to ...
17601 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17602 * tracefile-tfile.c (tfile_target_open): Pass down target.
17603 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17604 Forward declare.
17605 (switch_to_thread): Add process_stratum_target parameter.
17606 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17607 parameter. Use it.
17608 (mi_on_resume): Pass target down.
17609 * nat/fork-inferior.c (startup_inferior): Add
17610 process_stratum_target parameter. Pass it down.
17611 * nat/fork-inferior.h (startup_inferior): Add
17612 process_stratum_target parameter.
17613 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17614
17615 2020-01-10 Pedro Alves <palves@redhat.com>
17616
17617 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17618 directly. Instead find the first thread in the thread list and
17619 use switch_to_thread.
17620
17621 2020-01-10 Pedro Alves <palves@redhat.com>
17622
17623 * remote.c (remote_target::remote_add_inferior): Don't bind a
17624 process to the current inferior if the current inferior is already
17625 bound to a process.
17626
17627 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17628 Pedro Alves <palves@redhat.com>
17629
17630 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17631 If no process is specified, return null_ptid instead of
17632 inferior_ptid.
17633 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17634 TARGET_WAITKIND_SIGNALLED with no pid.
17635
17636 2020-01-10 Pedro Alves <palves@redhat.com>
17637
17638 * remote.c (first_remote_resumed_thread): New.
17639 (remote_target::wait_as): Use it as default event_ptid instead of
17640 inferior_ptid.
17641
17642 2020-01-10 Pedro Alves <palves@redhat.com>
17643
17644 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17645
17646 2020-01-10 Pedro Alves <palves@redhat.com>
17647
17648 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17649 not -1.
17650
17651 2020-01-10 Pedro Alves <palves@redhat.com>
17652
17653 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17654 ptid to get_last_target_status.
17655 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17656 ptid to get_last_target_status.
17657 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17658 get_last_target_status.
17659 (info_program_command): Don't pass a target_waitstatus to
17660 get_last_target_status.
17661 * infrun.c (init_wait_for_inferior): Use
17662 nullify_last_target_wait_ptid.
17663 (get_last_target_status): Handle nullptr arguments.
17664 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17665 (print_stop_event): Don't pass a ptid to get_last_target_status.
17666 (normal_stop): Don't pass a ptid to get_last_target_status.
17667 * infrun.h (get_last_target_status, set_last_target_status): Move
17668 comments here and update.
17669 (nullify_last_target_wait_ptid): Declare.
17670 * linux-fork.c (fork_load_infrun_state): Remove local extern
17671 declaration of nullify_last_target_wait_ptid.
17672 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17673 to get_last_target_status.
17674
17675 2020-01-10 Pedro Alves <palves@redhat.com>
17676
17677 * gdbthread.h (scoped_restore_current_thread)
17678 <dont_restore, restore, m_dont_restore>: Declare.
17679 * thread.c (thread_alive): Add assertion. Return bool.
17680 (switch_to_thread_if_alive): New.
17681 (prune_threads): Switch inferior/thread.
17682 (print_thread_info_1): Switch thread before calling target methods.
17683 (scoped_restore_current_thread::restore): New, factored out from
17684 ...
17685 (scoped_restore_current_thread::~scoped_restore_current_thread):
17686 ... this.
17687 (scoped_restore_current_thread::scoped_restore_current_thread):
17688 Add assertion.
17689 (thread_apply_all_command, thread_select): Use
17690 switch_to_thread_if_alive.
17691 * infrun.c (proceed, restart_threads, handle_signal_stop)
17692 (switch_back_to_stepped_thread): Switch current thread before
17693 calling target methods.
17694
17695 2020-01-10 Pedro Alves <palves@redhat.com>
17696
17697 * inferior.c (switch_to_inferior_no_thread): New function,
17698 factored out from ...
17699 (inferior_command): ... here.
17700 * inferior.h (switch_to_inferior_no_thread): Declare.
17701 * mi/mi-main.c (run_one_inferior): Use
17702 switch_to_inferior_no_thread.
17703
17704 2020-01-10 Pedro Alves <palves@redhat.com>
17705
17706 * infcmd.c (kill_command): Remove dead code.
17707
17708 2020-01-10 Pedro Alves <palves@redhat.com>
17709
17710 * remote.c (remote_target::mourn_inferior): No longer check
17711 whether the target is running.
17712
17713 2020-01-10 Pedro Alves <palves@redhat.com>
17714
17715 * corelow.c (core_target::has_execution): Change parameter type to
17716 inferior pointer.
17717 * inferior.c (number_of_live_inferiors): Use
17718 inferior::has_execution instead of target_has_execution_1.
17719 * inferior.h (inferior::has_execution): New.
17720 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17721 inferior::has_execution instead of target_has_execution_1.
17722 * process-stratum-target.c
17723 (process_stratum_target::has_execution): Change parameter type to
17724 inferior pointer. Check the inferior's PID instead of
17725 inferior_ptid.
17726 * process-stratum-target.h
17727 (process_stratum_target::has_execution): Change parameter type to
17728 inferior pointer.
17729 * record-full.c (record_full_core_target::has_execution): Change
17730 parameter type to inferior pointer.
17731 * target.c (target_has_execution_1): Change parameter type to
17732 inferior pointer.
17733 (target_has_execution_current): Adjust.
17734 * target.h (target_ops::has_execution): Change parameter type to
17735 inferior pointer.
17736 (target_has_execution_1): Change parameter type to inferior
17737 pointer. Change return type to bool.
17738 * tracefile.h (tracefile_target::has_execution): Change parameter
17739 type to inferior pointer.
17740
17741 2020-01-10 Pedro Alves <palves@redhat.com>
17742
17743 * exceptions.c (print_flush): Remove current_top_target() check.
17744
17745 2020-01-10 Pedro Alves <palves@redhat.com>
17746
17747 * remote.c (show_remote_exec_file): Show the current inferior's
17748 exec-file instead of the command variable's value.
17749
17750 2020-01-10 Pedro Alves <palves@redhat.com>
17751
17752 * record-full.c (record_full_resume_ptid): New global.
17753 (record_full_target::resume): Set it.
17754 (record_full_wait_1): Use record_full_resume_ptid instead of
17755 inferior_ptid.
17756
17757 2020-01-10 Pedro Alves <palves@redhat.com>
17758
17759 * gdbthread.h (scoped_restore_current_thread)
17760 <dont_restore, restore, m_dont_restore>: Declare.
17761 * thread.c (thread_alive): Add assertion. Return bool.
17762 (switch_to_thread_if_alive): New.
17763 (prune_threads): Switch inferior/thread.
17764 (print_thread_info_1): Switch thread before calling target methods.
17765 (scoped_restore_current_thread::restore): New, factored out from
17766 ...
17767 (scoped_restore_current_thread::~scoped_restore_current_thread):
17768 ... this.
17769 (scoped_restore_current_thread::scoped_restore_current_thread):
17770 Add assertion.
17771 (thread_apply_all_command, thread_select): Use
17772 switch_to_thread_if_alive.
17773
17774 2020-01-10 George Barrett <bob@bob131.so>
17775
17776 * stap-probe.c (stap_modify_semaphore): Don't check for null
17777 semaphores.
17778 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17779 for null semaphores.
17780
17781 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17782
17783 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17784 all source windows, and maintain horizontal scroll status while
17785 doing so.
17786
17787 2020-01-09 Tom Tromey <tom@tromey.com>
17788
17789 PR tui/18932:
17790 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17791 update_source_window, not print_source_lines.
17792
17793 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17794
17795 * tui/tui.c (tui_enable): Register tui hooks after calling
17796 tui_display_main.
17797
17798 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17799
17800 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17801
17802 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17803
17804 * thread.c (print_thread_info_1): Fix indentation.
17805
17806 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17807
17808 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17809 unique_xmalloc_ptr outside the if to always free the demangled name.
17810
17811 2020-01-08 Tom Tromey <tromey@adacore.com>
17812
17813 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17814 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17815 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17816 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17817 Remove.
17818 (section_offsets): New typedef.
17819 * symtab.c (fixup_section, get_msymbol_address): Update.
17820 * symmisc.c (dump_msymbols): Update.
17821 * symfile.h (relative_addr_info_to_section_offsets)
17822 (symfile_map_offsets_to_segments): Update.
17823 * symfile.c (build_section_addr_info_from_objfile)
17824 (init_objfile_sect_indices): Update.
17825 (struct place_section_arg): Change type of "offsets".
17826 (place_section): Update.
17827 (relative_addr_info_to_section_offsets): Change type of
17828 "section_offsets". Remove "num_sections" parameter.
17829 (default_symfile_offsets, syms_from_objfile_1)
17830 (set_objfile_default_section_offset): Update.
17831 (reread_symbols): No need to preserve section offsets by hand.
17832 (symfile_map_offsets_to_segments): Change type of "offsets".
17833 * stap-probe.c (relocate_address): Update.
17834 * stabsread.h (process_one_symbol): Update.
17835 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17836 (solib_target_relocate_section_addresses): Update.
17837 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17838 Update.
17839 * solib-frv.c (frv_relocate_main_executable): Update.
17840 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17841 * solib-aix.c (solib_aix_get_section_offsets): Change return
17842 type.
17843 (solib_aix_solib_create_inferior_hook): Update.
17844 * remote.c (remote_target::get_offsets): Update.
17845 * psymtab.c (find_pc_sect_psymtab): Update.
17846 * psympriv.h (struct partial_symbol) <address, text_low,
17847 text_high>: Update.
17848 * objfiles.h (obj_section_offset): Update.
17849 (struct objfile) <section_offsets>: Change type.
17850 <num_sections>: Remove.
17851 (objfile_relocate): Update.
17852 * objfiles.c (entry_point_address_query): Update
17853 (relocate_one_symbol): Change type of "section_offsets".
17854 (objfile_relocate1, objfile_relocate1): Change type of
17855 "new_offsets".
17856 (objfile_rebase1): Update.
17857 * mipsread.c (mipscoff_symfile_read): Update.
17858 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17859 parameter.
17860 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17861 (parse_external, psymtab_to_symtab_1): Update.
17862 * machoread.c (macho_symfile_offsets): Update.
17863 * ia64-tdep.c (ia64_find_unwind_table): Update.
17864 * hppa-tdep.c (read_unwind_info): Update.
17865 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17866 * dwarf2read.c (create_addrmap_from_index)
17867 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17868 (process_psymtab_comp_unit_reader, add_partial_symbol)
17869 (add_partial_subprogram, process_full_comp_unit)
17870 (read_file_scope, read_func_scope, read_lexical_block_scope)
17871 (read_call_site_scope, dwarf2_rnglists_process)
17872 (dwarf2_ranges_process, dwarf2_ranges_read)
17873 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17874 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17875 Update.
17876 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17877 Update.
17878 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17879 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17880 (process_one_symbol): Change type of "section_offsets".
17881 * ctfread.c (get_objfile_text_range): Update.
17882 * coffread.c (coff_symtab_read, enter_linenos)
17883 (process_coff_symbol): Update.
17884 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17885 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17886
17887 2020-01-08 Tom Tromey <tromey@adacore.com>
17888
17889 * dwarf2read.c (parse_macro_definition): Use std::string.
17890 (parse_macro_definition): Likewise.
17891
17892 2020-01-08 Tom Tromey <tromey@adacore.com>
17893
17894 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17895 (ATTR_ALLOC_CHUNK): Remove.
17896
17897 2020-01-08 Tom Tromey <tromey@adacore.com>
17898
17899 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17900
17901 2020-01-08 Tom Tromey <tromey@adacore.com>
17902
17903 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17904 (dwarf2_compute_name, open_dwo_file): Likewise.
17905 (process_enumeration_scope): Use std::vector.
17906 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17907 (partial_die_info::fixup, dwarf2_start_subfile)
17908 (guess_full_die_structure_name, dwarf2_name): Likewise.
17909 (determine_prefix): Update.
17910 (guess_full_die_structure_name): Make return type const.
17911 (partial_die_full_name): Return unique_xmalloc_ptr.
17912 (DW_FIELD_ALLOC_CHUNK): Remove.
17913
17914 2020-01-07 Tom Tromey <tromey@adacore.com>
17915
17916 PR build/24937:
17917 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17918
17919 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17920
17921 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17922
17923 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17924
17925 * stack.c (print_frame_info): Move disassemble_next_line code
17926 inside source_print block.
17927
17928 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17929
17930 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17931 gdb/signals.h, as we are now using native signal symbols.
17932
17933 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17934
17935 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17936 overflow by an early check of content vs threshold.
17937 * tui/tui-source.c (tui_source_window::line_is_displayed):
17938 Likewise.
17939
17940 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17941
17942 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17943
17944 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17945
17946 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17947 export table if no section contains it's RVA.
17948
17949 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17950
17951 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17952
17953 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17954
17955 * source.c (print_source_lines_base): Set last_line_listed.
17956
17957 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17958
17959 * tui/tui-disasm.c: Remove trailing spaces.
17960
17961 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17962 Pedro Alves <palves@redhat.com>
17963
17964 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17965 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17966 (windows_gdb_signal_to_target): New function, uses the above
17967 enumeration to convert GDB internal signal codes to equivalent
17968 Windows codes.
17969 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17970 * windows-nat.c: Include "gdb_wait.h".
17971 (get_windows_debug_event): Extract the fatal exception from the
17972 exit status and convert to the equivalent Posix signal number.
17973 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17974 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17975 * gdbsupport/gdb_wait.c: New file, implements
17976 windows_status_to_termsig.
17977 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17978 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17979
17980 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17981
17982 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17983 show_layout.
17984
17985 2020-01-05 Luis Machado <luis.machado@linaro.org>
17986
17987 * aarch64-linux-nat.c
17988 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17989 and bfd_mach_aarch64.
17990
17991 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17992
17993 * ui-file.c (stdio_file::can_emit_style_escape)
17994 (tee_file::can_emit_style_escape): Ensure style is used also on
17995 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17996 to gdb_stdout.
17997 * main.c (set_gdb_data_directory): Use file style to output the
17998 warning that the given pathname is not a directory.
17999 * top.c (show_history_filename, gdb_safe_append_history)
18000 (show_gdb_datadir): Use file style.
18001
18002 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18003
18004 * solib-target.c (struct lm_info_target):
18005 Change offsets to be a unique_xmalloc_ptr.
18006 (solib_target_relocate_section_addresses): Update.
18007
18008 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18009
18010 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18011
18012 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18013
18014 * MAINTAINERS (Write After Approval): Add myself.
18015
18016 2020-01-02 Luis Machado <luis.machado@linaro.org>
18017
18018 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18019 Cell BE architecture.
18020 * target.h (struct target_ops) <thread_architecture>: Likewise.
18021
18022 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18023
18024 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18025
18026 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18027
18028 * MAINTAINERS (Write After Approval): Add myself.
18029
18030 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18031
18032 * gdbarch.sh: Update copyright year range of generated files.
18033
18034 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18035
18036 Update copyright year range in all GDB files.
18037
18038 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18039
18040 * copyright.py: Convert to Python 3.
18041
18042 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18043
18044 * copyright.py: Adapt after move of gnulib directory from gdb
18045 directory to toplevel directory.
18046
18047 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18048
18049 * copyright.py (main): Exit if run from the wrong directory.
18050
18051 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18052
18053 * top.c (print_gdb_version): Change copyright year to 2020.
18054
18055 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18056
18057 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18058
18059 For older changes see ChangeLog-2019.
18060 \f
18061 Local Variables:
18062 mode: change-log
18063 left-margin: 8
18064 fill-column: 74
18065 version-control: never
18066 coding: utf-8
18067 End:
This page took 0.448195 seconds and 5 git commands to generate.