Change varobj.c:rootlist to a std::list
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-11 Tom Tromey <tom@tromey.com>
2
3 * varobj.c (struct varobj_root) <next>: Remove.
4 (struct vlist): Remove.
5 (rootlist): Now a std::list.
6 (install_variable, uninstall_variable, all_root_varobjs): Update.
7
8 2020-12-11 Tom Tromey <tom@tromey.com>
9
10 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
11 (varobj_table): Now htab_t.
12 (varobj_get_handle, install_variable, uninstall_variable):
13 Update.
14 (hash_varobj, eq_varobj_and_string): New functions.
15 (hash_varobj): Update.
16
17 2020-12-11 Tom Tromey <tom@tromey.com>
18
19 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
20 * ada-lang.c (check_status_exception): Update.
21 * breakpoint.c (free_bp_location): Remove.
22 (decref_bp_location): Use bp_location_ref_policy.
23 (bpstats::bpstats): Don't call incref_bp_location.
24 (bpstats::~bpstats): Remove.
25 (bpstats::bpstats): Update.
26 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
27 (bp_location::bp_location): Update.
28 (incref_bp_location): Remove.
29 (bkpt_print_it): Update.
30 * breakpoint.h (class bp_location): Derive from
31 refcounted_object.
32 (struct bpstats): Remove destructor.
33 <bp_location_at>: Now a bp_location_ref_ptr.
34 <refc>: Remove.
35 (bp_location_ref_ptr): New typedef.
36 (struct bp_location_ref_policy): New.
37
38 2020-12-11 Tom Tromey <tom@tromey.com>
39
40 * thread.c (class scoped_inc_dec_ref): Remove.
41 (tp_array_compar_ascending, tp_array_compar_descending): Change
42 parameter types.
43 (thread_apply_all_command): Use thread_info_ref.
44
45 2020-12-11 Tom Tromey <tom@tromey.com>
46
47 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
48 (stop_context::stop_context): Update.
49 (stop_context::~stop_context): Remove.
50
51 2020-12-11 Tom Tromey <tom@tromey.com>
52
53 * inferior.c (current_inferior_): Change type.
54 (current_inferior, set_current_inferior, initialize_inferiors):
55 Update.
56
57 2020-12-11 Tom Tromey <tom@tromey.com>
58
59 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
60 Change type.
61
62 2020-12-11 Tom Tromey <tromey@adacore.com>
63
64 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
65 field.
66 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
67 (read_atcb): Use cpu_id_offset.
68
69 2020-12-10 Kevin Buettner <kevinb@redhat.com>
70
71 * ada-lang.c (ada_fold_name): Fix off-by-one error.
72
73 2020-12-10 Luis Machado <luis.machado@linaro.org>
74
75 * breakpoint.c (should_be_inserted): Don't output newline.
76
77 2020-12-10 Luis Machado <luis.machado@linaro.org>
78
79 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
80 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
81 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
82 * arch/aarch64.h: ... here.
83 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
84 (aarch64_maybe_swab128): New function.
85 (aarch64_sve_regs_copy_to_reg_buf)
86 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
87 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
88 the data field.
89 (TF_REG_VALUE_BYTES): New enum value.
90 (trad_frame_value_bytes_p): New function.
91 (trad_frame_set_value_bytes): New function.
92 (trad_frame_set_reg_value_bytes): New function.
93 (trad_frame_get_prev_register): Handle register values saved as bytes.
94 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
95 (struct trad_frame_saved_reg) <data>: New field.
96 (trad_frame_set_value_bytes): New prototype.
97 (trad_frame_value_bytes_p): New prototype.
98
99 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
100
101 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
102 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
103 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
104
105 2020-12-09 Tom Tromey <tromey@adacore.com>
106
107 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
108
109 2020-12-09 Tom Tromey <tromey@adacore.com>
110
111 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
112 and "denominator" to gdb_mpz. Handle block forms.
113 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
114 "denominator" to gdb_mpz.
115 (finish_fixed_point_type): Update.
116 (has_zero_over_zero_small_attribute): Update.
117
118 2020-12-09 Tom Tromey <tromey@adacore.com>
119
120 * expprint.c (op_name): Update.
121 * expression.h (enum exp_opcode): Update.
122 * std-operator.def: Add more opcodes.
123 * ada-operator.def, fortran-operator.def: Remove, moving contents
124 into std-operator.def.
125
126 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
127
128 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
129 Return {} instead of false.
130 (get_discrete_bounds): Compute high bound only if low bound is
131 valid.
132
133 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
134
135 PR 26875, PR 26901
136 * gdbtypes.c (get_discrete_low_bound): Make non-static.
137 (get_discrete_high_bound): Make non-static.
138 * gdbtypes.h (get_discrete_low_bound): New declaration.
139 (get_discrete_high_bound): New declaration.
140 * valarith.c (value_subscript): Only fetch high bound if
141 necessary.
142
143 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
144
145 * gdbtypes.c (get_discrete_bounds): Implement with
146 get_discrete_low_bound and get_discrete_high_bound.
147 (get_discrete_low_bound): New.
148 (get_discrete_high_bound): New.
149
150 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
151
152 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
153 callers.
154 * gdbtypes.c (get_discrete_bounds): Return bool.
155
156 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
157
158 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
159 (ada_value_slice): Adjust.
160 (pos_atr): Adjust.
161 * gdbtypes.c (get_discrete_bounds): Adjust.
162 (discrete_position): Return optional.
163 * gdbtypes.h (discrete_position): Return optional.
164
165 2020-12-07 Tom Tromey <tromey@adacore.com>
166
167 * maint.c (_initialize_maint_cmds): Use expression command
168 completer for "maint print type".
169
170 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
171
172 * completer.c (complete_explicit_location): Also add keywords
173 that start with '-' to the completion list.
174
175 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
176
177 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
178 keyword may be followed by any keyword.
179 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
180 'toklen' in the case for "-force-condition".
181
182 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
183
184 * main.c (catch_command_errors): Add a flag parameter; invoke
185 `bpstat_do_actions` if the flag is set.
186 (execute_cmdargs): Update a call to `catch_command_errors`.
187
188 2020-12-07 Tom de Vries <tdevries@suse.de>
189
190 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
191
192 2020-12-06 Tom Tromey <tom@tromey.com>
193
194 PR ada/26999
195 * ada-lang.c (replace_operator_with_call): Rewrite.
196
197 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
198
199 PR breakpoints/27009
200 * s390-tdep.h (op_bc): Correct BC opcode value.
201
202 2020-12-06 Joel Brobecker <brobecker@adacore.com>
203
204 * gmp-utils.h (gdb_mpz::safe_export): New private method.
205 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
206 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
207 (gdb_mpz::safe_export): New method.
208 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
209 Update function description.
210 (check_as_integer_raises_out_of_range_error): New function.
211 (gdb_mpz_as_integer_out_of_range): New function.
212 (_initialize_gmp_utils_selftests): Register
213 gdb_mpz_as_integer_out_of_range as a selftest.
214
215 2020-12-05 Joel Brobecker <brobecker@adacore.com>
216
217 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
218 TARGET_CHAR_BIT.
219 (gdb_mpz::write): Likewise.
220
221 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
222
223 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
224 number of displaced step buffers.
225
226 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
227
228 * displaced-stepping.h (struct displaced_step_buffer): Rename
229 to...
230 (struct displaced_step_buffers): ... this.
231 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
232 <struct displaced_step_buffer>: New inner class.
233 <m_buffers>: New.
234 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
235 to...
236 (displaced_step_buffers::prepare): ... this, adjust for multiple
237 buffers.
238 (displaced_step_buffer::finish): Rename to...
239 (displaced_step_buffers::finish): ... this, adjust for multiple
240 buffers.
241 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
242 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
243 adjust for multiple buffers.
244 (displaced_step_buffer::restore_in_ptid): Rename to...
245 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
246 multiple buffers.
247 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
248 for num_disp_step_buffers.
249 * linux-tdep.c (struct linux_gdbarch_data)
250 <num_disp_step_buffers>: New field.
251 (struct linux_info) <disp_step_buf>: Rename to...
252 <disp_step_bufs>: ... this, change type to
253 displaced_step_buffers.
254 (linux_displaced_step_prepare): Use
255 linux_gdbarch_data::num_disp_step_buffers to create that number
256 of buffers.
257 (linux_displaced_step_finish): Adjust.
258 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
259 (linux_displaced_step_restore_all_in_ptid): Adjust.
260 (linux_init_abi): Change supports_displaced_step parameter for
261 num_disp_step_buffers, save it in linux_gdbarch_data.
262 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
263 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
264 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
265 supports_displaced_step parameter for num_disp_step_buffers.
266 (amd64_linux_init_abi): Adjust.
267 (amd64_x32_linux_init_abi): Adjust.
268 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
269 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
270 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
271 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
272 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
273 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
274 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
275 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
276 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
277 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
278 * m68k-linux-tdep.c (m68k_linux_init_abi):
279 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
280 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
281 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
282 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
283 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
284 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
285 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
286 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
287 Change type to displaced_step_buffers.
288 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
289 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
290 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
291 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
292 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
293 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
294 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
295
296 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
297
298 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
299 obkstack.
300 (_initialize_linux_tdep): Register pre-init gdb data instead of
301 post-init.
302
303 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
304
305 * displaced-stepping.h (struct
306 displaced_step_copy_insn_closure): Adjust comments.
307 (struct displaced_step_inferior_state) <step_thread,
308 step_gdbarch, step_closure, step_original, step_copy,
309 step_saved_copy>: Remove fields.
310 (struct displaced_step_thread_state): New.
311 (struct displaced_step_buffer): New.
312 * displaced-stepping.c (displaced_step_buffer::prepare): New.
313 (write_memory_ptid): Move from infrun.c.
314 (displaced_step_instruction_executed_successfully): New,
315 factored out of displaced_step_finish.
316 (displaced_step_buffer::finish): New.
317 (displaced_step_buffer::copy_insn_closure_by_addr): New.
318 (displaced_step_buffer::restore_in_ptid): New.
319 * gdbarch.sh (displaced_step_location): Remove.
320 (displaced_step_prepare, displaced_step_finish,
321 displaced_step_copy_insn_closure_by_addr,
322 displaced_step_restore_all_in_ptid): New.
323 * gdbarch.c: Re-generate.
324 * gdbarch.h: Re-generate.
325 * gdbthread.h (class thread_info) <displaced_step_state>: New
326 field.
327 (thread_step_over_chain_remove): New declaration.
328 (thread_step_over_chain_next): New declaration.
329 (thread_step_over_chain_length): New declaration.
330 * thread.c (thread_step_over_chain_remove): Make non-static.
331 (thread_step_over_chain_next): New.
332 (global_thread_step_over_chain_next): Use
333 thread_step_over_chain_next.
334 (thread_step_over_chain_length): New.
335 (global_thread_step_over_chain_enqueue): Add debug print.
336 (global_thread_step_over_chain_remove): Add debug print.
337 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
338 Remove.
339 * infrun.c (get_displaced_stepping_state): New.
340 (displaced_step_in_progress_any_inferior): Remove.
341 (displaced_step_in_progress_thread): Adjust.
342 (displaced_step_in_progress): Adjust.
343 (displaced_step_in_progress_any_thread): New.
344 (get_displaced_step_copy_insn_closure_by_addr): Remove.
345 (gdbarch_supports_displaced_stepping): Use
346 gdbarch_displaced_step_prepare_p.
347 (displaced_step_reset): Change parameter from inferior to
348 thread.
349 (displaced_step_prepare_throw): Implement using
350 gdbarch_displaced_step_prepare.
351 (write_memory_ptid): Move to displaced-step.c.
352 (displaced_step_restore): Remove.
353 (displaced_step_finish): Implement using
354 gdbarch_displaced_step_finish.
355 (start_step_over): Allow starting more than one displaced step.
356 (prepare_for_detach): Handle possibly multiple threads doing
357 displaced steps.
358 (handle_inferior_event): Handle possibility that fork event
359 happens while another thread displaced steps.
360 * linux-tdep.h (linux_displaced_step_prepare): New.
361 (linux_displaced_step_finish): New.
362 (linux_displaced_step_copy_insn_closure_by_addr): New.
363 (linux_displaced_step_restore_all_in_ptid): New.
364 (linux_init_abi): Add supports_displaced_step parameter.
365 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
366 (linux_displaced_step_prepare): New.
367 (linux_displaced_step_finish): New.
368 (linux_displaced_step_copy_insn_closure_by_addr): New.
369 (linux_displaced_step_restore_all_in_ptid): New.
370 (linux_init_abi): Add supports_displaced_step parameter,
371 register displaced step methods if true.
372 (_initialize_linux_tdep): Register inferior_execd observer.
373 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
374 supports_displaced_step parameter, adjust call to
375 linux_init_abi. Remove call to
376 set_gdbarch_displaced_step_location.
377 (amd64_linux_init_abi): Adjust call to
378 amd64_linux_init_abi_common.
379 (amd64_x32_linux_init_abi): Likewise.
380 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
381 linux_init_abi. Remove call to
382 set_gdbarch_displaced_step_location.
383 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
384 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
385 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
386 linux_init_abi.
387 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
388 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
389 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
390 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
391 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
392 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
393 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
394 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
395 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
396 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
397 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
398 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
399 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
400 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
401 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
402 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
403 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
404 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
405 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
406 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
407 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
408 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
409 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
410 linux_init_abi. Remove call to
411 set_gdbarch_displaced_step_location.
412 * arm-tdep.c (arm_pc_is_thumb): Call
413 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
414 get_displaced_step_copy_insn_closure_by_addr.
415 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
416 clear gdbarch methods.
417 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
418 (get_ppc_per_inferior): New function.
419 (ppc_displaced_step_prepare): New function.
420 (ppc_displaced_step_finish): New function.
421 (ppc_displaced_step_restore_all_in_ptid): New function.
422 (rs6000_gdbarch_init): Register new gdbarch methods.
423 * s390-tdep.c (s390_gdbarch_init): Don't call
424 set_gdbarch_displaced_step_location, set new gdbarch methods.
425
426 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
427
428 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
429 * aarch64-tdep.h: Include displaced-stepping.h.
430 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
431 Move here.
432 (displaced_step_copy_insn_closure_up): Move here.
433 (struct buf_displaced_step_copy_insn_closure): Move here.
434 (struct displaced_step_inferior_state): Move here.
435 (debug_displaced): Move here.
436 (displaced_debug_printf_1): Move here.
437 (displaced_debug_printf): Move here.
438 * displaced-stepping.c: New file.
439 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
440 * gdbarch.h: Re-generate.
441 * inferior.h: Include displaced-stepping.h.
442 * infrun.h (debug_displaced): Move to displaced-stepping.h.
443 (displaced_debug_printf_1): Likewise.
444 (displaced_debug_printf): Likewise.
445 (struct displaced_step_copy_insn_closure): Likewise.
446 (displaced_step_copy_insn_closure_up): Likewise.
447 (struct buf_displaced_step_copy_insn_closure): Likewise.
448 (struct displaced_step_inferior_state): Likewise.
449 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
450 (displaced_debug_printf_1): Likewise.
451 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
452 Likewise.
453 (_initialize_infrun): Don't register "set/show debug displaced".
454
455 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
456
457 * linux-tdep.c (get_linux_inferior_data): Add inferior
458 parameter.
459 (linux_vsyscall_range): Pass current inferior.
460
461 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
462
463 * infrun.c (displaced_step_prepare_throw): Change return type to
464 displaced_step_prepare_status.
465 (displaced_step_prepare): Likewise.
466 (displaced_step_finish): Change return type to
467 displaced_step_finish_status.
468 (resume_1): Adjust.
469 (stop_all_threads): Adjust.
470 * displaced-stepping.h: New file.
471
472 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
473
474 * infrun.c (displaced_step_fixup): Rename to...
475 (displaced_step_finish): ... this, update all callers.
476
477 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
478
479 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
480 (get_displaced_step_copy_insn_closure_by_addr): ... this.
481 Update all users.
482 (displaced_step_closure): Rename to...
483 (displaced_step_copy_insn_closure): ... this. Update all users.
484 (displaced_step_closure_up): Rename to...
485 (displaced_step_copy_insn_closure_up). ... this. Update all
486 users.
487 (buf_displaced_step_closure): Rename to...
488 (buf_displaced_step_copy_insn_closure): ... this. Update all
489 users.
490 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
491 (get_displaced_step_copy_insn_closure_by_addr): ... this.
492 Update all users.
493 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
494 (aarch64_displaced_step_copy_insn_closure): ... this. Update
495 all users.
496 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
497 (amd64_displaced_step_copy_insn_closure): ... this. Update all
498 users.
499 * arm-tdep.h (arm_displaced_step_closure): Rename to...
500 (arm_displaced_step_copy_insn_closure): ... this. Update all
501 users.
502 * i386-tdep.h (i386_displaced_step_closure): Rename to...
503 (i386_displaced_step_copy_insn_closure): ... this. Update all
504 users.
505 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
506 (ppc_displaced_step_copy_insn_closure): ... this. Update all
507 users.
508 * s390-tdep.c (s390_displaced_step_closure): Rename to...
509 (s390_displaced_step_copy_insn_closure): ... this. Update all
510 users.
511 * gdbarch.h: Re-generate.
512 * gdbarch.c: Re-generate.
513
514 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
515
516 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
517 (global_thread_step_over_chain_enqueue): ... this. Update all
518 users.
519 (thread_step_over_chain_remove): Rename to...
520 (global_thread_step_over_chain_remove): ... this. Update all
521 users.
522 (thread_step_over_chain_next): Rename to...
523 (global_thread_step_over_chain_next): ... this. Update all
524 users.
525 * infrun.h (step_over_queue_head): Rename to...
526 (global_thread_step_over_chain_head): ... this. Update all
527 users.
528 * infrun.c (step_over_queue_head): Rename to...
529 (global_thread_step_over_chain_head): ... this. Update all
530 users.
531 * thread.c (step_over_chain_remove): Rename to...
532 (thread_step_over_chain_remove): ... this. Update all users.
533 (thread_step_over_chain_next): Rename to...
534 (global_thread_step_over_chain_next): ... this. Update all
535 users.
536 (thread_step_over_chain_enqueue): Rename to...
537 (global_thread_step_over_chain_enqueue): ... this. Update all
538 users.
539 (thread_step_over_chain_remove): Rename to...
540 (global_thread_step_over_chain_remove): ... this. Update all
541 users.
542
543 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * infrun.c (get_displaced_stepping_state): Remove, change
546 callers to access the field directly.
547
548 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * infrun.c (handle_inferior_event): Restore displaced step
551 buffer bytes in child process when handling fork, even if fork
552 happened in another thread than the displaced-stepping one.
553
554 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
555
556 * infrun.c (infrun_inferior_execd): New function.
557 (_initialize_infrun): Attach inferior_execd observer.
558
559 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
560
561 * observable.h (inferior_execd): Declare new observable.
562 * observable.c (inferior_execd): Declare new observable.
563 * infrun.c (follow_exec): Notify inferior_execd observer.
564 * jit.c (jit_inferior_created_hook): Make static.
565 (_initialize_jit): Register inferior_execd observer.
566 * jit.h (jit_inferior_created_hook): Remove declaration.
567 * solib.c (_initialize_solib): Register inferior_execd observer.
568
569 2020-12-04 Tom de Vries <tdevries@suse.de>
570
571 PR gdb/27003
572 * completer.c (completion_tracker::build_completion_result): Don't
573 access match_list[0][-1].
574
575 2020-12-04 Tom Tromey <tromey@adacore.com>
576
577 * linespec.c (struct linespec_token): Rename; remove typedef.
578 * guile/scm-block.c (struct block_smob): Remove typedef.
579 (struct block_syms_progress_smob): Likewise.
580 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
581 * guile/scm-symtab.c (symtab_smob): Remove typedef.
582 (struct sal_smob): Remove typedef.
583 * guile/scm-param.c (struct param_smob): Remove typedef.
584 * guile/scm-progspace.c (struct pspace_smob): Rename.
585 * guile/scm-objfile.c (struct objfile_smob): Rename.
586 * guile/scm-iterator.c (struct iterator_smob): Rename.
587 * guile/scm-frame.c (struct frame_smob): Rename.
588 * guile/scm-arch.c (struct arch_smob): Rename.
589 * guile/scm-type.c (struct field_smob): Remove typedef.
590 (struct type_smob): Rename.
591 * guile/scm-cmd.c (struct command_smob): Remove typedef.
592 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
593 * guile/scm-value.c (struct value_smob): Remove typedef.
594 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
595 * guile/guile-internal.h (struct scheme_variable)
596 (struct scheme_function, struct scheme_integer_constant)
597 (struct gdb_smob, struct chained_gdb_smob)
598 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
599 (objfile_smob, pspace_smob, type_smob): Remove typedef.
600 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
601 (struct pretty_printer_worker_smob): Remove typedef.
602 * guile/scm-exception.c (struct exception_smob): Remove typedef.
603 * python/py-block.c (struct block_object): Remove typedef.
604 (block_syms_iterator_object): Update.
605 (set_block): Update.
606 (block_syms_iterator_object): Remove typedef.
607 * python/py-inferior.c (struct membuf_object): Remove typedef.
608 * python/py-symtab.c (struct symtab_object): Remove typedef.
609 (set_symtab): Update.
610 (sal_object): Remove typedef.
611 (set_sal): Update.
612 * python/py-frame.c (frame_object): Remove typedef.
613 * python/py-record-btrace.c (struct btpy_list_object): Remove
614 typedef.
615 * python/py-arch.c (struct arch_object): Remove typedef.
616 * python/py-linetable.c (struct linetable_entry_object)
617 (linetable_object, struct ltpy_iterator_object): Remove typedef.
618 * python/py-events.h (eventregistry_object): Remove typedef.
619 (struct events_object): Remove typedef.
620 * python/python-internal.h (gdbpy_breakpoint_object): Remove
621 typedef.
622 (thread_object): Remove typedef.
623 * python/py-progspace.c (pspace_object): Remove typedef.
624 * python/py-value.c (struct value_object): Remove typedef.
625 * python/py-record.h (recpy_record_object): Remove typedef.
626 (struct recpy_element_object): Remove typedef.
627 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
628 * python/py-objfile.c (objfile_object): Remove typedef.
629 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
630 * python/py-type.c (type_object): Remove typedef.
631 (typy_iterator_object): Update.
632 (set_type): Update.
633 (field_object): Remove typedef.
634 (typy_iterator_object): Remove typedef.
635 * python/py-registers.c (register_descriptor_iterator_object):
636 Remove typedef.
637 (struct register_descriptor_object)
638 (struct reggroup_iterator_object, struct reggroup_object): Remove
639 typedef.
640 * python/py-record.c (recpy_gap_object): Remove typedef.
641 * python/py-symbol.c (symbol_object): Remove typedef.
642 (set_symbol): Update.
643 * python/py-event.h (event_object): Remove typedef.
644 * python/py-param.c (parmpy_object): Remove typedef.
645 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
646 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
647 (unwind_info_object, struct cached_frame_info): Likewise.
648
649 2020-12-04 Tom Tromey <tromey@adacore.com>
650
651 * value.c (value_internal_function_name): Make return type const.
652 * value.h (value_internal_function_name): Make return type const.
653
654 2020-12-04 Luis Machado <luis.machado@linaro.org>
655
656 * aarch64-tdep.c (submask, bit, bits): Remove.
657 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
658 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
659 (aarch64_decode_cb, aarch64_decode_tb)
660 (aarch64_decode_ldr_literal): Use sbits to extract a signed
661 immediate.
662 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
663
664 2020-12-04 Tom de Vries <tdevries@suse.de>
665
666 PR tdep/27007
667 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
668
669 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
670
671 PR gdb/26876
672 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
673 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
674
675 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * arch/riscv.c: Include 'rv32e-xregs.c'.
678 (riscv_create_target_description): Update to handle rv32e.
679 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
680 member variable.
681 <operator==>: Update to account for new field.
682 <hash>: Likewise.
683 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
684 * features/riscv/rv32e-xregs.c: Generated.
685 * features/riscv/rv32e-xregs.xml: New file.
686 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
687 file.
688 (riscv_debug_infcall): Likewise.
689 (riscv_debug_unwinder): Likewise.
690 (riscv_debug_gdbarch): Likewise.
691 (enum riscv_register_required_status): Delete.
692 (struct riscv_register_feature): Add constructor, delete default
693 constructor, copy, and assign constructors.
694 (struct riscv_register_feature::register_info) <required>: Delete.
695 <check>: Update comment and arguments.
696 (struct riscv_register_feature) <name>: Change to member function.
697 <prefer_first_name>: Delete.
698 <tdesc_feature>: New member function.
699 <registers>: Rename to...
700 <m_registers>: ...this.
701 <m_feature_name>: New member variable.
702 (riscv_register_feature::register_info::check): Update arguments.
703 (riscv_xreg_feature): Rewrite as class, create a single static
704 instance of the class.
705 (riscv_freg_feature): Likewise.
706 (riscv_virtual_feature): Likewise.
707 (riscv_csr_feature): Likewise.
708 (riscv_create_csr_aliases): Has become a member function inside
709 riscv_csr_feature class.
710 (riscv_abi_embedded): New function definition.
711 (riscv_register_name): Adjust to use new feature objects.
712 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
713 and adjust available argument registers.
714 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
715 (riscv_check_tdesc_feature): Delete.
716 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
717 (riscv_gdbarch_init): Delete target description checking code, and
718 instead call to the new feature objects to perform the checks.
719 Reorder handling of no abi information case, allows small code
720 simplification.
721 (_initialize_riscv_tdep): Remove call, this is now done in the
722 riscv_csr_feature constructor.
723 * riscv-tdep.h (riscv_abi_embedded): Declare.
724
725 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
728 DECLARE_CSR_ALIAS.
729
730 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * riscv-tdep.c (riscv_is_unknown_csr): New function,
733 implementation moved from riscv_register_reggroup_p.
734 (riscv_register_reggroup_p): Update group handling for unknown
735 CSRs.
736
737 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
738
739 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
740 (dwarf2_get_dwz_file): Convert 'filename' to a
741 std::string. Use dwz_search_other_debugdirs to search for DWZ
742 files in the debug-file-directories provided by the user as well.
743
744 2020-12-01 Tom Tromey <tom@tromey.com>
745
746 * parse.c (expr_builder::expr_builder): Initialize expout.
747 (expr_builder::release): Use expression::resize.
748 (expression::expression, expression::~expression)
749 (expression::resize): New methods.
750 (write_exp_elt): Use expression::resize.
751 (prefixify_expression): Update.
752 (increase_expout_size): Use expression::resize.
753 * expression.h (struct expression): Add constructor, destructor.
754 <resize>: New method.
755 (expression_up): Change type.
756
757 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
758 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
759 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
760 set region.
761
762 2020-11-30 Tom de Vries <tdevries@suse.de>
763
764 PR symtab/26905
765 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
766 is_reference parameter.
767 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
768
769 2020-11-30 Tom Tromey <tom@tromey.com>
770
771 * rust-lang.c (rust_op_name): Remove.
772 (exp_descriptor_rust): Update.
773 * parser-defs.h (op_name_standard): Don't declare.
774 (struct exp_descriptor) <op_name>: Remove.
775 * parse.c (exp_descriptor_standard): Update.
776 * opencl-lang.c (exp_descriptor_opencl): Update.
777 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
778 * f-lang.c (op_name_f): Remove.
779 (f_language::exp_descriptor_tab): Update.
780 * expression.h (op_name): Update.
781 * expprint.c (op_name): Rewrite.
782 (op_name_standard): Remove.
783 (dump_raw_expression, dump_subexp): Update.
784 * c-lang.c (exp_descriptor_c): Update.
785 * ax-gdb.c (gen_expr): Update.
786 * ada-lang.c (ada_op_name): Remove.
787 (ada_exp_descriptor): Update.
788
789 2020-11-30 Tom Tromey <tom@tromey.com>
790
791 * eval.c (init_array_element): Remove.
792 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
793
794 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
795
796 PR tui/26973
797 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
798 static locator win info.
799
800 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
801
802 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
803 program.
804
805 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
808 is always initialized.
809
810 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
811 * MAINTAINERS (Write After Approval): Add myself.
812
813 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
814
815 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
816 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
817
818 2020-11-25 Tom Tromey <tom@tromey.com>
819
820 * eval.c (evaluate_subexp_standard): Remove unnecessary
821 variables.
822
823 2020-11-25 Tom Tromey <tom@tromey.com>
824
825 * d-lang.c: Include parser-defs.h.
826 * rust-lang.c: Include parser-defs.h.
827 * c-lang.h: Do not include parser-defs.h.
828
829 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
830
831 * regcache.h (struct cached_reg): Remove typedef.
832
833 2020-11-24 Joel Brobecker <brobecker@adacore.com>
834
835 * README: Fix the URL of the MPFR library.
836
837 2020-11-24 Joel Brobecker <brobecker@adacore.com>
838
839 * README: Document the --with-libgmp-prefix configure option.
840
841 2020-11-24 Joel Brobecker <brobecker@adacore.com>
842
843 * NEWS: Add entry documenting support for DWARF-based fixed
844 point types.
845
846 2020-11-24 Joel Brobecker <brobecker@adacore.com>
847
848 * NEWS: Document that building GDB now requires GMP.
849
850 2020-11-24 Joel Brobecker <brobecker@adacore.com>
851
852 * typeprint.c (print_type_scalar): Add handling of
853 TYPE_CODE_FIXED_POINT.
854
855 2020-11-24 Joel Brobecker <brobecker@adacore.com>
856
857 * valarith.c (fixed_point_binop): Replace the
858 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
859 users accordingly.
860
861 2020-11-24 Joel Brobecker <brobecker@adacore.com>
862
863 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
864 replacing fixed_point_scaling_factor. All callers updated
865 throughout this project.
866 (fixed_point_scaling_factor): Delete declaration.
867 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
868 fixed_point_scaling_factor. Adjust implementation accordingly.
869
870 2020-11-24 Joel Brobecker <brobecker@adacore.com>
871
872 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
873 replacing the fixed_point_type_base_type function. All callers
874 updated throughout this project.
875 (fixed_point_type_base_type): Remove declaration.
876 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
877 fixed_point_type_base_type. Adjust implementation accordingly.
878
879 2020-11-24 Joel Brobecker <brobecker@adacore.com>
880
881 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
882 New methods.
883 (INIT_FIXED_POINT_SPECIFIC): Adjust.
884 (TYPE_FIXED_POINT_INFO): Delete macro.
885 (allocate_fixed_point_type_info): Change return type to void.
886 * gdbtypes.c (copy_type_recursive): Replace the use of
887 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
888 (fixed_point_scaling_factor): Likewise.
889 (allocate_fixed_point_type_info): Change return type to void.
890 Adjust implementation accordingly.
891 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
892 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
893
894 2020-11-24 Joel Brobecker <brobecker@adacore.com>
895
896 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
897 into one single gdb::array_view parameter.
898 (gdb_mpz::write): Likewise.
899 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
900 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
901 into one single gdb::array_view parameter.
902 Adjust implementation accordingly.
903 (gdb_mpz::write): Likewise.
904 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
905 * unittests/gmp-utils-selftests.c: Adapt following changes above.
906 * valarith.c, valops.c, valprint.c, value.c: Likewise.
907
908 2020-11-24 Joel Brobecker <brobecker@adacore.com>
909
910 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
911 Change return type to std::string. Update all callers.
912 * gmp-utils.c (gmp_string_printf): Likewise.
913
914 2020-11-24 Joel Brobecker <brobecker@adacore.com>
915
916 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
917 instead of mpq_set_ui to initialize our GMP rational.
918
919 2020-11-23 Tom de Vries <tdevries@suse.de>
920
921 * debuginfod-support.c (debuginfod_source_query)
922 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
923
924 2020-11-21 Tom Tromey <tom@tromey.com>
925
926 * breakpoint.c (watchpoint_exp_is_const): Return bool.
927
928 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
931 Pass 2.0 to pow.
932 (gdb_mpz_write_all_from_small): Likewise.
933
934 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
937 of abs.
938
939 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
940
941 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
942 ctf_arc_open_by_name.
943
944 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
945
946 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
947 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
948
949 2020-11-20 Pedro Alves <pedro@palves.net>
950
951 * language.c (language_arch_info::lookup_primitive_type): Use
952 gdb::function_view instead of gdb::function.
953 (template language_lookup_primitive_type): Rename to ...
954 (language_lookup_primitive_type_1): ... this, and make static.
955 (language_lookup_primitive_type(const struct language_defn *,
956 struct gdbarch *, const char *): Make non-template.
957 (language_lookup_primitive_type(const struct language_defn *,
958 struct gdbarch *, std::function<bool (struct type *)>): Make
959 non-template and use gdb::function_view.
960 * language.h (language_arch_info::lookup_primitive_type): Use
961 gdb::function_view instead of std::function.
962 (language_lookup_primitive_type): No longer template.
963 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
964 lambda instead of a std::function.
965
966 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
967
968 PR tdep/26916
969 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
970 and STOCFH.
971
972 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
975
976 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
977
978 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
979 in `loop_cb` parameter.
980 * gdbarch.c: Re-generate.
981 * gdbarch.h: Re-generate.
982 * arch-utils.c (default_read_core_file_mappings): Remove `other`
983 parameter.
984 * arch-utils.h (default_read_core_file_mappings): Likewise.
985 * corelow.c (core_target::build_file_mappings): Likewise.
986 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
987 (linux_core_info_proc_mappings): Likewise.
988
989 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
992 * NEWS: Mention new options.
993 * f-array-walker.h: New file.
994 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
995 (repack_array_slices): New static global.
996 (show_repack_array_slices): New function.
997 (fortran_array_slicing_debug): New static global.
998 (show_fortran_array_slicing_debug): New function.
999 (value_f90_subarray): Delete.
1000 (skip_undetermined_arglist): Delete.
1001 (class fortran_array_repacker_base_impl): New class.
1002 (class fortran_lazy_array_repacker_impl): New class.
1003 (class fortran_array_repacker_impl): New class.
1004 (fortran_value_subarray): Complete rewrite.
1005 (set_fortran_list): New static global.
1006 (show_fortran_list): Likewise.
1007 (_initialize_f_language): Register new commands.
1008 (fortran_adjust_dynamic_array_base_address_hack): New function.
1009 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1010 Declare.
1011 * f-valprint.c: Include 'f-array-walker.h'.
1012 (class fortran_array_printer_impl): New class.
1013 (f77_print_array_1): Delete.
1014 (f77_print_array): Delete.
1015 (fortran_print_array): New.
1016 (f_value_print_inner): Update to call fortran_print_array.
1017 * gdbtypes.c: Include 'f-lang.h'.
1018 (resolve_dynamic_type_internal): Call
1019 fortran_adjust_dynamic_array_base_address_hack.
1020
1021 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * breakpoint.c (struct watch_options): New struct.
1024 (watch_option_defs): New static global.
1025 (make_watch_options_def_group): New function.
1026 (watch_maybe_just_location): Convert option parsing.
1027 (watch_command_completer): New function.
1028 (_initialize_breakpoint): Build help text using options mechanism.
1029
1030 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1031
1032 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1033 (watch_command_1): Update parameter types. Convert locals to
1034 bool.
1035 (watch_command_wrapper): Change parameter type.
1036 (watch_maybe_just_location): Change locals to bool.
1037 (rwatch_command_wrapper): Update parameter type.
1038 (awatch_command_wrapper): Update parameter type.
1039 * breakpoint.h (watch_command_wrapper): Change parameter type.
1040 (rwatch_command_wrapper): Update parameter type.
1041 (awatch_command_wrapper): Update parameter type.
1042 * eval.c (fetch_subexp_value): Change parameter type.
1043 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1044 'false' not '0'.
1045 * value.h (fetch_subexp_value): Change parameter type in
1046 declaration.
1047
1048 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1051 skip_spaces.
1052
1053 2020-11-18 Keith Seitz <keiths@redhat.com>
1054
1055 * linux-tdep.c (dump_note_entry_p): Return true instead of
1056 checking `filename'.
1057
1058 2020-11-18 Tom de Vries <tdevries@suse.de>
1059
1060 * debuginfod-support.c (debuginfod_source_query)
1061 (debuginfod_debuginfo_query): Also do early exit if
1062 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1063
1064 2020-11-18 Tom de Vries <tdevries@suse.de>
1065
1066 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1067 warning.
1068
1069 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1072 callers. Move doc here.
1073 * gdbtypes.c (get_array_bounds): Return bool
1074
1075 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1078 assert.
1079 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1080 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1081 case to the default.
1082
1083 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * printcmd.c: Include 'safe-ctype.c'.
1086 (skip_over_slash_fmt): New function.
1087 (print_command_completer): Call skip_over_slash_fmt.
1088 (display_and_x_command_completer): New function.
1089 (_initialize_printcmd): Add command completion for 'x' and
1090 'display'.
1091
1092 2020-11-16 Pedro Alves <pedro@palves.net>
1093
1094 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1095 (get_prev_frame_always_1): ... to here.
1096 * inline-frame.c (inline_frame_this_id): Mention
1097 get_prev_frame_always_1 in comment.
1098
1099 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1100
1101 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1102 handling.
1103 (value_less): Add fixed-point handling.
1104
1105 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1106
1107 * eval.c (binop_promote): Add fixed-point type handling.
1108 * valarith.c (fixed_point_binop): New function.
1109 (scalar_binop): Add fixed-point type handling.
1110 (value_neg): Add fixed-point type handling.
1111 * valops.c (value_cast_to_fixed_point): New function.
1112 (value_cast): Add fixed-point type handling.
1113
1114 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1115
1116 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1117 range types.
1118 * c-typeprint.c (c_type_print_varspec_prefix)
1119 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1120 TYPE_CODE_FIXED_POINT handling.
1121 * p-typeprint.c (pascal_type_print_varspec_prefix)
1122 (pascal_type_print_varspec_suffix): Likewise.
1123 * typeprint.c (print_type_fixed_point): New function.
1124 * typeprint.h (print_type_fixed_point): Add declaration.
1125
1126 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1127
1128 * printcmd.c (print_scalar_formatted): Add fixed-point type
1129 handling when options->format is set.
1130
1131 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1132
1133 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1134 * dwarf2/read.c (get_dwarf2_rational_constant)
1135 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1136 (has_zero_over_zero_small_attribute): New functions.
1137 read_base_type, set_die_type): Add fixed-point type handling.
1138 * gdb-gdb.py.in: Add fixed-point type handling.
1139 * gdbtypes.c: #include "gmp-utils.h".
1140 (create_range_type, set_type_code): Add fixed-point type handling.
1141 (init_fixed_point_type): New function.
1142 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1143 (print_fixed_point_type_info): New function.
1144 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1145 handling.
1146 (fixed_point_type_storage): New typedef.
1147 (fixed_point_objfile_key): New static global.
1148 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1149 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1150 functions.
1151 * gdbtypes.h: #include "gmp-utils.h".
1152 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1153 (union type_specific) <fixed_point_info>: New field.
1154 (struct fixed_point_type_info): New struct.
1155 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1156 (init_fixed_point_type, is_fixed_point_type)
1157 (fixed_point_type_base_type, fixed_point_scaling_factor)
1158 (allocate_fixed_point_type_info): Add declarations.
1159 * valprint.c (generic_val_print_fixed_point): New function.
1160 (generic_value_print): Add fixed-point type handling.
1161 * value.c (value_as_address, unpack_long): Add fixed-point type
1162 handling.
1163
1164 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1165
1166 * utils.h (uinteger_pow): Add declaration.
1167 * utils.c (uinteger_pow): Moved here (without changes)...
1168 * valarith.c (uinteger_pow): ... from here.
1169
1170 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1171
1172 * gmp-utils.h, gmp-utils.c: New file.
1173 * unittests/gmp-utils-selftests.c: New file.
1174 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1175 unittests/gmp-utils-selftests.c.
1176 (COMMON_SFILES) Add gmp-utils.c.
1177 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1178
1179 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1180
1181 * configure.ac: Generate an error if a usable GMP library
1182 could not be found.
1183 * configure: Regenerate.
1184
1185 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1186
1187 * configure.ac: Add support for --with-libgmp-prefix.
1188 * Makefile.in (LIBGMP): New variable.
1189 (CLIBS): Include $(LIBGMP).
1190 * configure, config.in: Regenerate
1191
1192 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1193
1194 PR cli/26879
1195 * f-exp.y (COMPLETE): New token.
1196 (exp): Two new rules for tab-completion.
1197 (saw_name_at_eof): New static global.
1198 (last_was_structop): Likewise.
1199 (yylex): Set new variables, and return COMPLETE token at the end
1200 of the input stream in some cases.
1201
1202 2020-11-14 Tom Tromey <tom@tromey.com>
1203
1204 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1205
1206 2020-11-14 Tom Tromey <tom@tromey.com>
1207
1208 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1209
1210 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1211
1212 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1213
1214 2020-11-13 Tom Tromey <tom@tromey.com>
1215
1216 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1217 (convert_escape, parse_one_string): Constify.
1218
1219 2020-11-13 Keith Seitz <keiths@redhat.com>
1220
1221 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1222 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1223 outside of ELF segments" warning for debugin
1224
1225 2020-11-13 Keith Seitz <keiths@redhat.com>
1226
1227 PR gdb/23034
1228 * elfread.c (elf_symfile_segments): Output a BFD file name
1229 for the "Loadable section ... outside of ELF segments" warning.
1230
1231 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 PR gdb/26835
1234 * arm-tdep.c (class arm_instruction_reader): New.
1235 (target_arm_instruction_reader): New.
1236 (arm_analyze_prologue): Add instruction reader parameter and use
1237 it. Use arm_expand_immediate.
1238 (class target_arm_instruction_reader): Adjust.
1239 (arm_skip_prologue): Adjust.
1240 (arm_expand_immediate): New.
1241 (arm_scan_prologue): Adjust.
1242 (arm_analyze_prologue_test): New.
1243 (class test_arm_instruction_reader): New.
1244
1245 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * f-lang.c (fortran_argument_convert): Add declaration. Add
1248 header comment, taken from f-lang.h. Make static.
1249 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1250 (fortran_argument_convert): Delete declaration.
1251
1252 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * ada-exp.y (find_primitive_type): Make parameter const.
1255 * ada-lang.c (enum ada_primitive_types): Delete.
1256 (ada_language::language_arch_info): Update.
1257 * c-lang.c (enum c_primitive_types): Delete.
1258 (c_language_arch_info): Update.
1259 (enum cplus_primitive_types): Delete.
1260 (cplus_language::language_arch_info): Update.
1261 * d-lang.c (enum d_primitive_types): Delete.
1262 (d_language::language_arch_info): Update.
1263 * f-lang.c (enum f_primitive_types): Delete.
1264 (f_language::language_arch_info): Update.
1265 * go-lang.c (enum go_primitive_types): Delete.
1266 (go_language::language_arch_info): Update.
1267 * language.c (auto_or_unknown_language::language_arch_info):
1268 Update.
1269 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1270 (language_string_char_type): Add header comment, call function in
1271 language_arch_info.
1272 (language_bool_type): Likewise
1273 (language_arch_info::bool_type): Define.
1274 (language_lookup_primitive_type_1): Delete.
1275 (language_lookup_primitive_type): Rewrite as a templated function
1276 to call function in language_arch_info, then instantiate twice.
1277 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1278 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1279 (language_arch_info::lookup_primitive_type): Define twice with
1280 different signatures.
1281 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1282 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1283 member function in language_arch_info.
1284 * language.h (language_arch_info): Complete rewrite.
1285 (language_lookup_primitive_type): Make templated.
1286 * m2-lang.c (enum m2_primitive_types): Delete.
1287 (m2_language::language_arch_info): Update.
1288 * opencl-lang.c (OCL_P_TYPE): Delete.
1289 (enum opencl_primitive_types): Delete.
1290 (opencl_type_data): Delete.
1291 (builtin_opencl_type): Delete.
1292 (lookup_opencl_vector_type): Update.
1293 (opencl_language::language_arch_info): Update, lots of content
1294 moved from...
1295 (build_opencl_types): ...here. This function is now deleted.
1296 (_initialize_opencl_language): Delete.
1297 * p-lang.c (enum pascal_primitive_types): Delete.
1298 (pascal_language::language_arch_info): Update.
1299 * rust-lang.c (enum rust_primitive_types): Delete.
1300 (rust_language::language_arch_info): Update.
1301
1302 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1303
1304 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1305 dwarf2_queue_guard.
1306
1307 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1310 comment.
1311
1312 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1313
1314 * dwarf2/read.c (dwarf_read_debug_printf,
1315 dwarf_read_debug_printf_v): New macros, use throughout the file.
1316
1317 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1318
1319 PR tdep/27015
1320 * arc-linux-tdep.c (collect_register): Populate "eret" by
1321 "pc" value from the regcache when asked for "pc" value.
1322
1323 2020-11-12 Tom Tromey <tom@tromey.com>
1324
1325 PR rust/26799:
1326 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1327 exist.
1328
1329 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * features/Makefile (XMLTOC): Add rx.xml.
1332 (FEATURE_XMLFILES): Remove rx.xml.
1333 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1334 * features/rx.c: Regenerate.
1335 * features/rx.xml: Wrap in `target` tags, and reindent.
1336 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1337 structure.
1338 (maint_print_c_tdesc_opt_def): New typedef.
1339 (maint_print_c_tdesc_opt_defs): New static global.
1340 (make_maint_print_c_tdesc_options_def_group): New function.
1341 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1342 print single feature C file for target descriptions containing a
1343 single feature.
1344 (maint_print_c_tdesc_cmd_completer): New function.
1345 (_initialize_target_descriptions): Update call to register command
1346 completer, and include command line flag in help text.
1347
1348 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1351 numbers.
1352 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1353 enum values.
1354
1355 2020-11-10 Tom Tromey <tom@tromey.com>
1356
1357 * value.h (internalvar_name): Update.
1358 * value.c (internalvar_name): Make return type const.
1359
1360 2020-11-10 Tom Tromey <tom@tromey.com>
1361
1362 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1363 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1364 const.
1365
1366 2020-11-10 Tom Tromey <tom@tromey.com>
1367
1368 * objc-lang.h (value_nsstring): Update.
1369 * objc-lang.c (value_nsstring): Make "ptr" const.
1370
1371 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * expprint.c (print_subexp_funcall): Increment expression position
1374 after reading argument count.
1375 * f-lang.c (print_subexp_f): Skip over opcode before calling
1376 common function.
1377 (dump_subexp_body_f): Likewise.
1378
1379 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1380
1381 PR python/26832
1382 * configure: Regenerate.
1383 * configure.ac: Check for python modules ctypes instead of
1384 itertools.
1385
1386 2020-11-06 Pedro Alves <pedro@palves.net>
1387
1388 * macroexp.c (struct macro_buffer): Split in two classes. Add
1389 uses adjusted.
1390 (struct shared_macro_buffer): New, factored out from struct
1391 macro_buffer.
1392 (struct growable_macro_buffer): New, factored out from struct
1393 macro_buffer.
1394 (set_token, get_comment, get_identifier, get_pp_number)
1395 (get_character_constant, get_string_literal, get_punctuator)
1396 (get_next_token_for_substitution): Constify parameters.
1397 (substitute_args): Constify locals.
1398
1399 2020-11-05 Tom Tromey <tom@tromey.com>
1400
1401 * dwarf2/read.c (read_cutu_die_from_dwo)
1402 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1403 (build_type_psymtabs_1): Update.
1404 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1405 parameter.
1406 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1407 Don't read section. Add assert.
1408
1409 2020-11-04 Tom Tromey <tromey@adacore.com>
1410
1411 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1412
1413 2020-11-04 Tom Tromey <tromey@adacore.com>
1414
1415 * ada-typeprint.c (ada_print_type): Handle __T types.
1416
1417 2020-11-04 Tom Tromey <tromey@adacore.com>
1418
1419 * dwarf2/read.c (add_partial_symbol, process_die):
1420 Handle DW_TAG_array_type.
1421 (is_type_tag_for_partial): Add "lang" parameter.
1422 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1423
1424 2020-11-04 Tom Tromey <tromey@adacore.com>
1425
1426 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1427
1428 2020-11-04 Tom Tromey <tromey@adacore.com>
1429
1430 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1431 array.
1432
1433 2020-11-04 Tom Tromey <tromey@adacore.com>
1434
1435 * gdbtypes.c (update_static_array_size): Handle bit stride.
1436
1437 2020-11-04 Tom Tromey <tromey@adacore.com>
1438
1439 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1440
1441 2020-11-04 Tom Tromey <tromey@adacore.com>
1442
1443 * ada-lang.c (ada_is_any_packed_array_type): New function.
1444 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1445
1446 2020-11-04 Tom Tromey <tromey@adacore.com>
1447
1448 * dwarf2/read.c (recognize_bound_expression)
1449 (quirk_ada_thick_pointer): New functions.
1450 (read_array_type): Call quirk_ada_thick_pointer.
1451 (set_die_type): Add "skip_data_location" parameter.
1452 (quirk_ada_thick_pointer): New function.
1453 (process_structure_scope): Call quirk_ada_thick_pointer.
1454 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1455 (decode_packed_array_bitsize): Handle thick pointers without
1456 parallel types.
1457 (ada_is_gnat_encoded_packed_array_type): Rename from
1458 ada_is_packed_array_type.
1459 (ada_is_constrained_packed_array_type): Update.
1460 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1461 (ada_value_print_1): Use ada_get_decoded_value.
1462
1463 2020-11-04 Tom Tromey <tromey@adacore.com>
1464
1465 * ada-lang.c (recursively_update_array_bitsize): New function.
1466 (decode_constrained_packed_array_type): Call it.
1467
1468 2020-11-04 Tom Tromey <tromey@adacore.com>
1469
1470 * ada-lang.c (to_fixed_array_type): Error if
1471 decode_constrained_packed_array_type returns NULL.
1472
1473 2020-11-04 Tom Tromey <tromey@adacore.com>
1474
1475 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1476
1477 2020-11-02 Tom Tromey <tromey@adacore.com>
1478
1479 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1480 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1481 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1482 * amd64-ravenscar-thread.c: New file.
1483 * amd64-ravenscar-thread.h: New file.
1484 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1485 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1486
1487 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * main.c (execute_cmdargs): New function.
1490 (captured_main_1): Make use of execute_cmdargs.
1491
1492 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * NEWS: Mention changes to config file search path.
1495 * main.c
1496
1497 2020-11-02 Tom Tromey <tromey@adacore.com>
1498
1499 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1500 (python_GdbModuleDef): Move earlier. Now static.
1501 (do_start_initialization): Consolidate some IS_PY3K blocks.
1502
1503 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * aarch64-linux-tdep.c: Fix indentation.
1506 * aarch64-ravenscar-thread.c: Fix indentation.
1507 * aarch64-tdep.c: Fix indentation.
1508 * aarch64-tdep.h: Fix indentation.
1509 * ada-lang.c: Fix indentation.
1510 * ada-lang.h: Fix indentation.
1511 * ada-tasks.c: Fix indentation.
1512 * ada-typeprint.c: Fix indentation.
1513 * ada-valprint.c: Fix indentation.
1514 * ada-varobj.c: Fix indentation.
1515 * addrmap.c: Fix indentation.
1516 * addrmap.h: Fix indentation.
1517 * agent.c: Fix indentation.
1518 * aix-thread.c: Fix indentation.
1519 * alpha-bsd-nat.c: Fix indentation.
1520 * alpha-linux-tdep.c: Fix indentation.
1521 * alpha-mdebug-tdep.c: Fix indentation.
1522 * alpha-nbsd-tdep.c: Fix indentation.
1523 * alpha-obsd-tdep.c: Fix indentation.
1524 * alpha-tdep.c: Fix indentation.
1525 * amd64-bsd-nat.c: Fix indentation.
1526 * amd64-darwin-tdep.c: Fix indentation.
1527 * amd64-linux-nat.c: Fix indentation.
1528 * amd64-linux-tdep.c: Fix indentation.
1529 * amd64-nat.c: Fix indentation.
1530 * amd64-obsd-tdep.c: Fix indentation.
1531 * amd64-tdep.c: Fix indentation.
1532 * amd64-windows-tdep.c: Fix indentation.
1533 * annotate.c: Fix indentation.
1534 * arc-tdep.c: Fix indentation.
1535 * arch-utils.c: Fix indentation.
1536 * arch/arm-get-next-pcs.c: Fix indentation.
1537 * arch/arm.c: Fix indentation.
1538 * arm-linux-nat.c: Fix indentation.
1539 * arm-linux-tdep.c: Fix indentation.
1540 * arm-nbsd-tdep.c: Fix indentation.
1541 * arm-pikeos-tdep.c: Fix indentation.
1542 * arm-tdep.c: Fix indentation.
1543 * arm-tdep.h: Fix indentation.
1544 * arm-wince-tdep.c: Fix indentation.
1545 * auto-load.c: Fix indentation.
1546 * auxv.c: Fix indentation.
1547 * avr-tdep.c: Fix indentation.
1548 * ax-gdb.c: Fix indentation.
1549 * ax-general.c: Fix indentation.
1550 * bfin-linux-tdep.c: Fix indentation.
1551 * block.c: Fix indentation.
1552 * block.h: Fix indentation.
1553 * blockframe.c: Fix indentation.
1554 * bpf-tdep.c: Fix indentation.
1555 * break-catch-sig.c: Fix indentation.
1556 * break-catch-syscall.c: Fix indentation.
1557 * break-catch-throw.c: Fix indentation.
1558 * breakpoint.c: Fix indentation.
1559 * breakpoint.h: Fix indentation.
1560 * bsd-uthread.c: Fix indentation.
1561 * btrace.c: Fix indentation.
1562 * build-id.c: Fix indentation.
1563 * buildsym-legacy.h: Fix indentation.
1564 * buildsym.c: Fix indentation.
1565 * c-typeprint.c: Fix indentation.
1566 * c-valprint.c: Fix indentation.
1567 * c-varobj.c: Fix indentation.
1568 * charset.c: Fix indentation.
1569 * cli/cli-cmds.c: Fix indentation.
1570 * cli/cli-decode.c: Fix indentation.
1571 * cli/cli-decode.h: Fix indentation.
1572 * cli/cli-script.c: Fix indentation.
1573 * cli/cli-setshow.c: Fix indentation.
1574 * coff-pe-read.c: Fix indentation.
1575 * coffread.c: Fix indentation.
1576 * compile/compile-cplus-types.c: Fix indentation.
1577 * compile/compile-object-load.c: Fix indentation.
1578 * compile/compile-object-run.c: Fix indentation.
1579 * completer.c: Fix indentation.
1580 * corefile.c: Fix indentation.
1581 * corelow.c: Fix indentation.
1582 * cp-abi.h: Fix indentation.
1583 * cp-namespace.c: Fix indentation.
1584 * cp-support.c: Fix indentation.
1585 * cp-valprint.c: Fix indentation.
1586 * cris-linux-tdep.c: Fix indentation.
1587 * cris-tdep.c: Fix indentation.
1588 * darwin-nat-info.c: Fix indentation.
1589 * darwin-nat.c: Fix indentation.
1590 * darwin-nat.h: Fix indentation.
1591 * dbxread.c: Fix indentation.
1592 * dcache.c: Fix indentation.
1593 * disasm.c: Fix indentation.
1594 * dtrace-probe.c: Fix indentation.
1595 * dwarf2/abbrev.c: Fix indentation.
1596 * dwarf2/attribute.c: Fix indentation.
1597 * dwarf2/expr.c: Fix indentation.
1598 * dwarf2/frame.c: Fix indentation.
1599 * dwarf2/index-cache.c: Fix indentation.
1600 * dwarf2/index-write.c: Fix indentation.
1601 * dwarf2/line-header.c: Fix indentation.
1602 * dwarf2/loc.c: Fix indentation.
1603 * dwarf2/macro.c: Fix indentation.
1604 * dwarf2/read.c: Fix indentation.
1605 * dwarf2/read.h: Fix indentation.
1606 * elfread.c: Fix indentation.
1607 * eval.c: Fix indentation.
1608 * event-top.c: Fix indentation.
1609 * exec.c: Fix indentation.
1610 * exec.h: Fix indentation.
1611 * expprint.c: Fix indentation.
1612 * f-lang.c: Fix indentation.
1613 * f-typeprint.c: Fix indentation.
1614 * f-valprint.c: Fix indentation.
1615 * fbsd-nat.c: Fix indentation.
1616 * fbsd-tdep.c: Fix indentation.
1617 * findvar.c: Fix indentation.
1618 * fork-child.c: Fix indentation.
1619 * frame-unwind.c: Fix indentation.
1620 * frame-unwind.h: Fix indentation.
1621 * frame.c: Fix indentation.
1622 * frv-linux-tdep.c: Fix indentation.
1623 * frv-tdep.c: Fix indentation.
1624 * frv-tdep.h: Fix indentation.
1625 * ft32-tdep.c: Fix indentation.
1626 * gcore.c: Fix indentation.
1627 * gdb_bfd.c: Fix indentation.
1628 * gdbarch.sh: Fix indentation.
1629 * gdbarch.c: Re-generate
1630 * gdbarch.h: Re-generate.
1631 * gdbcore.h: Fix indentation.
1632 * gdbthread.h: Fix indentation.
1633 * gdbtypes.c: Fix indentation.
1634 * gdbtypes.h: Fix indentation.
1635 * glibc-tdep.c: Fix indentation.
1636 * gnu-nat.c: Fix indentation.
1637 * gnu-nat.h: Fix indentation.
1638 * gnu-v2-abi.c: Fix indentation.
1639 * gnu-v3-abi.c: Fix indentation.
1640 * go32-nat.c: Fix indentation.
1641 * guile/guile-internal.h: Fix indentation.
1642 * guile/scm-cmd.c: Fix indentation.
1643 * guile/scm-frame.c: Fix indentation.
1644 * guile/scm-iterator.c: Fix indentation.
1645 * guile/scm-math.c: Fix indentation.
1646 * guile/scm-ports.c: Fix indentation.
1647 * guile/scm-pretty-print.c: Fix indentation.
1648 * guile/scm-value.c: Fix indentation.
1649 * h8300-tdep.c: Fix indentation.
1650 * hppa-linux-nat.c: Fix indentation.
1651 * hppa-linux-tdep.c: Fix indentation.
1652 * hppa-nbsd-nat.c: Fix indentation.
1653 * hppa-nbsd-tdep.c: Fix indentation.
1654 * hppa-obsd-nat.c: Fix indentation.
1655 * hppa-tdep.c: Fix indentation.
1656 * hppa-tdep.h: Fix indentation.
1657 * i386-bsd-nat.c: Fix indentation.
1658 * i386-darwin-nat.c: Fix indentation.
1659 * i386-darwin-tdep.c: Fix indentation.
1660 * i386-dicos-tdep.c: Fix indentation.
1661 * i386-gnu-nat.c: Fix indentation.
1662 * i386-linux-nat.c: Fix indentation.
1663 * i386-linux-tdep.c: Fix indentation.
1664 * i386-nto-tdep.c: Fix indentation.
1665 * i386-obsd-tdep.c: Fix indentation.
1666 * i386-sol2-nat.c: Fix indentation.
1667 * i386-tdep.c: Fix indentation.
1668 * i386-tdep.h: Fix indentation.
1669 * i386-windows-tdep.c: Fix indentation.
1670 * i387-tdep.c: Fix indentation.
1671 * i387-tdep.h: Fix indentation.
1672 * ia64-libunwind-tdep.c: Fix indentation.
1673 * ia64-libunwind-tdep.h: Fix indentation.
1674 * ia64-linux-nat.c: Fix indentation.
1675 * ia64-linux-tdep.c: Fix indentation.
1676 * ia64-tdep.c: Fix indentation.
1677 * ia64-tdep.h: Fix indentation.
1678 * ia64-vms-tdep.c: Fix indentation.
1679 * infcall.c: Fix indentation.
1680 * infcmd.c: Fix indentation.
1681 * inferior.c: Fix indentation.
1682 * infrun.c: Fix indentation.
1683 * iq2000-tdep.c: Fix indentation.
1684 * language.c: Fix indentation.
1685 * linespec.c: Fix indentation.
1686 * linux-fork.c: Fix indentation.
1687 * linux-nat.c: Fix indentation.
1688 * linux-tdep.c: Fix indentation.
1689 * linux-thread-db.c: Fix indentation.
1690 * lm32-tdep.c: Fix indentation.
1691 * m2-lang.c: Fix indentation.
1692 * m2-typeprint.c: Fix indentation.
1693 * m2-valprint.c: Fix indentation.
1694 * m32c-tdep.c: Fix indentation.
1695 * m32r-linux-tdep.c: Fix indentation.
1696 * m32r-tdep.c: Fix indentation.
1697 * m68hc11-tdep.c: Fix indentation.
1698 * m68k-bsd-nat.c: Fix indentation.
1699 * m68k-linux-nat.c: Fix indentation.
1700 * m68k-linux-tdep.c: Fix indentation.
1701 * m68k-tdep.c: Fix indentation.
1702 * machoread.c: Fix indentation.
1703 * macrocmd.c: Fix indentation.
1704 * macroexp.c: Fix indentation.
1705 * macroscope.c: Fix indentation.
1706 * macrotab.c: Fix indentation.
1707 * macrotab.h: Fix indentation.
1708 * main.c: Fix indentation.
1709 * mdebugread.c: Fix indentation.
1710 * mep-tdep.c: Fix indentation.
1711 * mi/mi-cmd-catch.c: Fix indentation.
1712 * mi/mi-cmd-disas.c: Fix indentation.
1713 * mi/mi-cmd-env.c: Fix indentation.
1714 * mi/mi-cmd-stack.c: Fix indentation.
1715 * mi/mi-cmd-var.c: Fix indentation.
1716 * mi/mi-cmds.c: Fix indentation.
1717 * mi/mi-main.c: Fix indentation.
1718 * mi/mi-parse.c: Fix indentation.
1719 * microblaze-tdep.c: Fix indentation.
1720 * minidebug.c: Fix indentation.
1721 * minsyms.c: Fix indentation.
1722 * mips-linux-nat.c: Fix indentation.
1723 * mips-linux-tdep.c: Fix indentation.
1724 * mips-nbsd-tdep.c: Fix indentation.
1725 * mips-tdep.c: Fix indentation.
1726 * mn10300-linux-tdep.c: Fix indentation.
1727 * mn10300-tdep.c: Fix indentation.
1728 * moxie-tdep.c: Fix indentation.
1729 * msp430-tdep.c: Fix indentation.
1730 * namespace.h: Fix indentation.
1731 * nat/fork-inferior.c: Fix indentation.
1732 * nat/gdb_ptrace.h: Fix indentation.
1733 * nat/linux-namespaces.c: Fix indentation.
1734 * nat/linux-osdata.c: Fix indentation.
1735 * nat/netbsd-nat.c: Fix indentation.
1736 * nat/x86-dregs.c: Fix indentation.
1737 * nbsd-nat.c: Fix indentation.
1738 * nbsd-tdep.c: Fix indentation.
1739 * nios2-linux-tdep.c: Fix indentation.
1740 * nios2-tdep.c: Fix indentation.
1741 * nto-procfs.c: Fix indentation.
1742 * nto-tdep.c: Fix indentation.
1743 * objfiles.c: Fix indentation.
1744 * objfiles.h: Fix indentation.
1745 * opencl-lang.c: Fix indentation.
1746 * or1k-tdep.c: Fix indentation.
1747 * osabi.c: Fix indentation.
1748 * osabi.h: Fix indentation.
1749 * osdata.c: Fix indentation.
1750 * p-lang.c: Fix indentation.
1751 * p-typeprint.c: Fix indentation.
1752 * p-valprint.c: Fix indentation.
1753 * parse.c: Fix indentation.
1754 * ppc-linux-nat.c: Fix indentation.
1755 * ppc-linux-tdep.c: Fix indentation.
1756 * ppc-nbsd-nat.c: Fix indentation.
1757 * ppc-nbsd-tdep.c: Fix indentation.
1758 * ppc-obsd-nat.c: Fix indentation.
1759 * ppc-ravenscar-thread.c: Fix indentation.
1760 * ppc-sysv-tdep.c: Fix indentation.
1761 * ppc64-tdep.c: Fix indentation.
1762 * printcmd.c: Fix indentation.
1763 * proc-api.c: Fix indentation.
1764 * producer.c: Fix indentation.
1765 * producer.h: Fix indentation.
1766 * prologue-value.c: Fix indentation.
1767 * prologue-value.h: Fix indentation.
1768 * psymtab.c: Fix indentation.
1769 * python/py-arch.c: Fix indentation.
1770 * python/py-bpevent.c: Fix indentation.
1771 * python/py-event.c: Fix indentation.
1772 * python/py-event.h: Fix indentation.
1773 * python/py-finishbreakpoint.c: Fix indentation.
1774 * python/py-frame.c: Fix indentation.
1775 * python/py-framefilter.c: Fix indentation.
1776 * python/py-inferior.c: Fix indentation.
1777 * python/py-infthread.c: Fix indentation.
1778 * python/py-objfile.c: Fix indentation.
1779 * python/py-prettyprint.c: Fix indentation.
1780 * python/py-registers.c: Fix indentation.
1781 * python/py-signalevent.c: Fix indentation.
1782 * python/py-stopevent.c: Fix indentation.
1783 * python/py-stopevent.h: Fix indentation.
1784 * python/py-threadevent.c: Fix indentation.
1785 * python/py-tui.c: Fix indentation.
1786 * python/py-unwind.c: Fix indentation.
1787 * python/py-value.c: Fix indentation.
1788 * python/py-xmethods.c: Fix indentation.
1789 * python/python-internal.h: Fix indentation.
1790 * python/python.c: Fix indentation.
1791 * ravenscar-thread.c: Fix indentation.
1792 * record-btrace.c: Fix indentation.
1793 * record-full.c: Fix indentation.
1794 * record.c: Fix indentation.
1795 * reggroups.c: Fix indentation.
1796 * regset.h: Fix indentation.
1797 * remote-fileio.c: Fix indentation.
1798 * remote.c: Fix indentation.
1799 * reverse.c: Fix indentation.
1800 * riscv-linux-tdep.c: Fix indentation.
1801 * riscv-ravenscar-thread.c: Fix indentation.
1802 * riscv-tdep.c: Fix indentation.
1803 * rl78-tdep.c: Fix indentation.
1804 * rs6000-aix-tdep.c: Fix indentation.
1805 * rs6000-lynx178-tdep.c: Fix indentation.
1806 * rs6000-nat.c: Fix indentation.
1807 * rs6000-tdep.c: Fix indentation.
1808 * rust-lang.c: Fix indentation.
1809 * rx-tdep.c: Fix indentation.
1810 * s12z-tdep.c: Fix indentation.
1811 * s390-linux-tdep.c: Fix indentation.
1812 * score-tdep.c: Fix indentation.
1813 * ser-base.c: Fix indentation.
1814 * ser-mingw.c: Fix indentation.
1815 * ser-uds.c: Fix indentation.
1816 * ser-unix.c: Fix indentation.
1817 * serial.c: Fix indentation.
1818 * sh-linux-tdep.c: Fix indentation.
1819 * sh-nbsd-tdep.c: Fix indentation.
1820 * sh-tdep.c: Fix indentation.
1821 * skip.c: Fix indentation.
1822 * sol-thread.c: Fix indentation.
1823 * solib-aix.c: Fix indentation.
1824 * solib-darwin.c: Fix indentation.
1825 * solib-frv.c: Fix indentation.
1826 * solib-svr4.c: Fix indentation.
1827 * solib.c: Fix indentation.
1828 * source.c: Fix indentation.
1829 * sparc-linux-tdep.c: Fix indentation.
1830 * sparc-nbsd-tdep.c: Fix indentation.
1831 * sparc-obsd-tdep.c: Fix indentation.
1832 * sparc-ravenscar-thread.c: Fix indentation.
1833 * sparc-tdep.c: Fix indentation.
1834 * sparc64-linux-tdep.c: Fix indentation.
1835 * sparc64-nbsd-tdep.c: Fix indentation.
1836 * sparc64-obsd-tdep.c: Fix indentation.
1837 * sparc64-tdep.c: Fix indentation.
1838 * stabsread.c: Fix indentation.
1839 * stack.c: Fix indentation.
1840 * stap-probe.c: Fix indentation.
1841 * stubs/ia64vms-stub.c: Fix indentation.
1842 * stubs/m32r-stub.c: Fix indentation.
1843 * stubs/m68k-stub.c: Fix indentation.
1844 * stubs/sh-stub.c: Fix indentation.
1845 * stubs/sparc-stub.c: Fix indentation.
1846 * symfile-mem.c: Fix indentation.
1847 * symfile.c: Fix indentation.
1848 * symfile.h: Fix indentation.
1849 * symmisc.c: Fix indentation.
1850 * symtab.c: Fix indentation.
1851 * symtab.h: Fix indentation.
1852 * target-float.c: Fix indentation.
1853 * target.c: Fix indentation.
1854 * target.h: Fix indentation.
1855 * tic6x-tdep.c: Fix indentation.
1856 * tilegx-linux-tdep.c: Fix indentation.
1857 * tilegx-tdep.c: Fix indentation.
1858 * top.c: Fix indentation.
1859 * tracefile-tfile.c: Fix indentation.
1860 * tracepoint.c: Fix indentation.
1861 * tui/tui-disasm.c: Fix indentation.
1862 * tui/tui-io.c: Fix indentation.
1863 * tui/tui-regs.c: Fix indentation.
1864 * tui/tui-stack.c: Fix indentation.
1865 * tui/tui-win.c: Fix indentation.
1866 * tui/tui-winsource.c: Fix indentation.
1867 * tui/tui.c: Fix indentation.
1868 * typeprint.c: Fix indentation.
1869 * ui-out.h: Fix indentation.
1870 * unittests/copy_bitwise-selftests.c: Fix indentation.
1871 * unittests/memory-map-selftests.c: Fix indentation.
1872 * utils.c: Fix indentation.
1873 * v850-tdep.c: Fix indentation.
1874 * valarith.c: Fix indentation.
1875 * valops.c: Fix indentation.
1876 * valprint.c: Fix indentation.
1877 * valprint.h: Fix indentation.
1878 * value.c: Fix indentation.
1879 * value.h: Fix indentation.
1880 * varobj.c: Fix indentation.
1881 * vax-tdep.c: Fix indentation.
1882 * windows-nat.c: Fix indentation.
1883 * windows-tdep.c: Fix indentation.
1884 * xcoffread.c: Fix indentation.
1885 * xml-syscall.c: Fix indentation.
1886 * xml-tdesc.c: Fix indentation.
1887 * xstormy16-tdep.c: Fix indentation.
1888 * xtensa-config.c: Fix indentation.
1889 * xtensa-linux-nat.c: Fix indentation.
1890 * xtensa-linux-tdep.c: Fix indentation.
1891 * xtensa-tdep.c: Fix indentation.
1892
1893 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1894 Craig Blackmore <craig.blackmore@embecosm.com>
1895
1896 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1897 as an unsigned value.
1898
1899 2020-11-01 Tom Tromey <tom@tromey.com>
1900
1901 * dbxread.c (dbx_end_psymtab): Update.
1902 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1903 (build_type_psymtabs_reader): Update.
1904 * xcoffread.c (xcoff_end_psymtab): Update.
1905 * ctfread.c (scan_partial_symbols): Update.
1906 * psymtab.c (sort_pst_symbols): Remove.
1907 (partial_symtab::end): Rename from end_psymtab_common. Inline
1908 sort_pst_symbols.
1909 * psympriv.h (struct partial_symtab) <end>: New method.
1910 (end_psymtab_common): Don't declare.
1911
1912 2020-11-01 Tom Tromey <tom@tromey.com>
1913
1914 * symmisc.c (count_psyms): New function.
1915 (print_objfile_statistics): Use it.
1916 * psymtab.c (append_psymbol_to_list): Remove.
1917 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1918 * objfiles.h (struct objstats) <n_psyms>: Remove.
1919
1920 2020-11-01 Tom Tromey <tom@tromey.com>
1921
1922 * dbxread.c (dbx_end_psymtab): Update.
1923 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1924 (build_type_psymtabs_reader): Update.
1925 * xcoffread.c (xcoff_end_psymtab): Update.
1926 * ctfread.c (scan_partial_symbols): Update.
1927 * psympriv.h (end_psymtab_common): Update.
1928 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1929 (sort_pst_symbols): Likewise.
1930
1931 2020-11-01 Tom Tromey <tom@tromey.com>
1932
1933 * dbxread.c (dbx_symfile_read): Update.
1934 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1935 * xcoffread.c (xcoff_initial_scan): Update.
1936 * psympriv.h (init_psymbol_list): Don't declare.
1937 * psymtab.c (init_psymbol_list): Remove.
1938
1939 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1940
1941 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1942 gnat_encoded_fixed_type_info. Update all callers.
1943
1944 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1945
1946 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1947 line too long.
1948
1949 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1950
1951 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1952 cast_from_fixed. Update all callers.
1953 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1954 Update all callers.
1955 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1956 Update all callers.
1957 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1958 ada_scaling_factor.
1959 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1960 to print_gnat_encoded_fixed_point_type.
1961 * ada-valprint.c: Likewise.
1962
1963 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1966 (debug_prefixed_printf): Add check of debug_displaced flag.
1967 * linux-nat.c (linux_nat_debug_printf): Add check of
1968 debug_linux_nat flag.
1969
1970 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1971
1972 * infrun.c (infrun_debug_printf_1): Remove.
1973 (displaced_debug_printf_1): Remove.
1974 (stop_all_threads): Use debug_prefixed_printf.
1975 * infrun.h (infrun_debug_printf_1): Remove.
1976 (infrun_debug_printf): Use debug_prefixed_printf.
1977 (displaced_debug_printf_1): Remove.
1978 (displaced_debug_printf): Use debug_prefixed_printf.
1979 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1980 (linux_nat_debug_printf): Use debug_prefixed_printf.
1981
1982 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * configure: Re-generate.
1985 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1986 AC_LANG_PROGRAM.
1987
1988 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1989
1990 * configure: Re-generate.
1991
1992 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1993
1994 * configure: Re-generate.
1995
1996 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * configure: Re-generate.
1999
2000 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * configure: Re-generate.
2003
2004 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * acinclude.m4: Modernize.
2007 * configure: Re-generate.
2008
2009 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2010
2011 * configure.ac: Modernize.
2012 * configure: Re-generate.
2013
2014 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2015
2016 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2017 * configure: Re-generate.
2018 * configure.ac: Remove AM_PROG_CC_STDC.
2019
2020 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2023 AC_CANONICAL_SYSTEM.
2024 * configure: Re-generate.
2025
2026 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2027
2028 * infrun.h (displaced_debug_printf): New macro. Replace
2029 displaced debug prints throughout to use it.
2030 (displaced_debug_printf_1): New declaration.
2031 (displaced_step_dump_bytes): Return string, remove ui_file
2032 parameter, update all callers.
2033 * infrun.c (displaced_debug_printf_1): New function.
2034 (displaced_step_dump_bytes): Return string, remove ui_file
2035 parameter
2036
2037 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2040
2041 2020-10-30 Tom Tromey <tromey@adacore.com>
2042
2043 * Makefile.in (stamp-init): Depend on config.status.
2044
2045 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2046
2047 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2048
2049 2020-10-30 Pedro Alves <pedro@palves.net>
2050
2051 * thread.c (lookup_selected_frame): Move ...
2052 * frame.c (lookup_selected_frame): ... here.
2053
2054 2020-10-30 Pedro Alves <pedro@palves.net>
2055
2056 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2057 * frame.c
2058 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2059 Use save_selected_frame. Save language as well.
2060 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2061 Use restore_selected_frame, and restore language as well.
2062 (selected_frame_id, selected_frame_level): New.
2063 (selected_frame): Update comments.
2064 (save_selected_frame, restore_selected_frame): New.
2065 (get_selected_frame): Use lookup_selected_frame.
2066 (get_selected_frame_if_set): Delete.
2067 (select_frame): Record selected_frame_level and selected_frame_id.
2068 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2069 fields.
2070 (get_selected_frame): Make 'message' parameter optional.
2071 (get_selected_frame_if_set): Delete declaration.
2072 (select_frame): Update comments.
2073 (save_selected_frame, restore_selected_frame)
2074 (lookup_selected_frame): Declare.
2075 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2076 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2077 New field.
2078 (save_infcall_control_state): Use save_selected_frame.
2079 (restore_selected_frame): Delete.
2080 (restore_infcall_control_state): Use restore_selected_frame.
2081 * stack.c (select_frame_command_core, frame_command_core): Use
2082 get_selected_frame.
2083 * thread.c (restore_selected_frame): Rename to ...
2084 (lookup_selected_frame): ... this and make extern. Select the
2085 current frame if the frame level is -1.
2086 (scoped_restore_current_thread::restore): Also restore the
2087 language.
2088 (scoped_restore_current_thread::~scoped_restore_current_thread):
2089 Don't try/catch.
2090 (scoped_restore_current_thread::scoped_restore_current_thread):
2091 Save the language as well. Use save_selected_frame.
2092
2093 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2096 documentation.
2097 * gdbarch.h: Re-generate.
2098
2099 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2102 parameter.
2103 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2104 Likewise.
2105 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2106 Likewise.
2107 * arch-utils.c (default_displaced_step_hw_singlestep):
2108 Likewise.
2109 * arch-utils.h (default_displaced_step_hw_singlestep):
2110 Likewise.
2111 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2112 Likewise.
2113 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2114 Likewise.
2115 * gdbarch.c: Re-generate.
2116 * gdbarch.h: Re-generate.
2117 * infrun.c (resume_1): Adjust.
2118
2119 2020-10-29 Tom Tromey <tom@tromey.com>
2120
2121 * progspace.c (program_space::~program_space): Don't call
2122 exec_close.
2123
2124 2020-10-29 Tom Tromey <tom@tromey.com>
2125
2126 * exec.c (exec_target::close): Don't change current program
2127 space.
2128
2129 2020-10-29 Tom Tromey <tom@tromey.com>
2130
2131 * symfile.c (add_symbol_file_command): Update.
2132 * exec.c (program_space::add_target_sections): Rename.
2133 * symfile-mem.c (symbol_file_add_from_memory): Update.
2134 * progspace.h (struct program_space) <add_target_sections>:
2135 Declare new overload.
2136 * exec.h (add_target_sections_of_objfile): Don't declare.
2137
2138 2020-10-29 Tom Tromey <tom@tromey.com>
2139
2140 * solib.c (solib_map_sections): Update.
2141 * exec.c (program_space::add_target_sections): Now a method.
2142 (exec_file_attach): Update.
2143 * exec.h (add_target_sections): Don't declare.
2144 * progspace.h (struct program_space) <add_target_sections>:
2145 Declare.
2146
2147 2020-10-29 Tom Tromey <tom@tromey.com>
2148
2149 * progspace.h (struct program_space) <remove_target_sections>:
2150 Declare.
2151 * exec.c (program_space::remove_target_sections): Now a method.
2152 * exec.h (remove_target_sections): Don't declare.
2153
2154 2020-10-29 Tom Tromey <tom@tromey.com>
2155
2156 * inferior.c (delete_inferior): Update.
2157 * progspace.c (program_space::empty): Rename from
2158 program_space_empty_p. Return bool.
2159 * progspace.h (struct program_space) <empty>: New method.
2160 (program_space_empty_p): Don't declare.
2161
2162 2020-10-29 Tom Tromey <tom@tromey.com>
2163
2164 * progspace.c (program_space::~program_space): Don't call
2165 clear_program_space_solib_cache.
2166 (program_space::clear_solib_cache): Rename from
2167 clear_solib_cache.
2168 * solib.c (handle_solib_event): Update.
2169 * progspace.h (struct program_space) <clear_solib_cache>: New
2170 method.
2171 (clear_program_space_solib_cache): Don't declare.
2172
2173 2020-10-29 Tom Tromey <tom@tromey.com>
2174
2175 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2176 * target.c (info_target_command): Update.
2177 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2178 (symbol_file_clear, reread_symbols): Update.
2179 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2180 * stabsread.c (scan_file_globals): Update.
2181 * solib.c (update_solib_list): Update.
2182 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2183 (svr4_fetch_objfile_link_map, enable_break)
2184 (svr4_relocate_main_executable)
2185 (svr4_iterate_over_objfiles_in_search_order): Update.
2186 * solib-frv.c (lm_base, enable_break)
2187 (frv_relocate_main_executable): Update.
2188 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2189 (frv_fetch_objfile_link_map): Update.
2190 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2191 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2192 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2193 * remote.c (remote_target::get_offsets): Update.
2194 (remote_target::start_remote)
2195 (extended_remote_target::post_attach): Update.
2196 * objfiles.c (entry_point_address_query): Update.
2197 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2198 * minsyms.c (get_symbol_leading_char): Update.
2199 * frame.c (inside_main_func): Update.
2200 * progspace.h (symfile_objfile): Remove macro.
2201
2202 2020-10-29 Tom Tromey <tom@tromey.com>
2203
2204 * exec.c (exec_file_attach): Update.
2205 * progspace.c (program_space::exec_close): Update.
2206 * progspace.h (struct program_space) <ebfd>: Now a
2207 gdb_bfd_ref_ptr.
2208 <set_exec_bfd>: Change argument type.
2209 <exec_bfd>: Update.
2210
2211 2020-10-29 Tom Tromey <tom@tromey.com>
2212
2213 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2214 * symfile.c (reread_symbols): Update.
2215 * symfile-mem.c (add_symbol_file_from_memory_command)
2216 (add_vsyscall_page): Update.
2217 * source-cache.c (source_cache::get_plain_source_lines): Update.
2218 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2219 (svr4_current_sos_direct, svr4_exec_displacement)
2220 (svr4_relocate_main_executable): Update.
2221 (svr4_iterate_over_objfiles_in_search_order): Update.
2222 * solib-frv.c (enable_break2, enable_break): Update.
2223 * solib-dsbt.c (lm_base, enable_break): Update.
2224 * solib-darwin.c (find_program_interpreter)
2225 (darwin_solib_create_inferior_hook): Update.
2226 * sol-thread.c (rw_common, ps_pdmodel): Update.
2227 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2228 * remote.c (compare_sections_command)
2229 (remote_target::trace_set_readonly_regions): Update.
2230 * remote-sim.c (get_sim_inferior_data)
2231 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2232 (gdbsim_target_open, gdbsim_target::files_info): Update.
2233 * exec.h (exec_bfd): Remove macro.
2234 * progspace.c (initialize_progspace): Update.
2235 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2236 Update.
2237 * nto-procfs.c (nto_procfs_target::post_attach)
2238 (nto_procfs_target::create_inferior): Update.
2239 * maint.c (maintenance_info_sections): Update.
2240 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2241 Update.
2242 * infcmd.c (post_create_inferior): Update.
2243 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2244 (objfile_find_memory_regions): Update.
2245 * exec.c (validate_exec_file, exec_file_attach)
2246 (exec_read_partial_read_only, print_section_info): Update.
2247 * corelow.c (core_target_open): Update.
2248 * corefile.c (reopen_exec_file, validate_files): Update.
2249 * arm-tdep.c (gdb_print_insn_arm): Update.
2250 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2251 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2252 methods.
2253
2254 2020-10-29 Tom Tromey <tom@tromey.com>
2255
2256 * progspace.h (current_target_sections): Remove macro.
2257 * solib-svr4.c (scan_dyntag): Update.
2258 * solib-dsbt.c (scan_dyntag): Update.
2259 * exec.c (exec_target::close): Update.
2260 (add_target_sections, add_target_sections_of_objfile)
2261 (remove_target_sections, exec_target::get_section_table)
2262 (exec_target::files_info, set_section_command)
2263 (exec_set_section_address, exec_target::has_memory)
2264 (exec_target::has_memory): Update.
2265
2266 2020-10-29 Tom Tromey <tom@tromey.com>
2267
2268 * source-cache.c (source_cache::get_plain_source_lines): Use
2269 current_program_space.
2270 * corefile.c (reopen_exec_file): Use current_program_space.
2271 * exec.c (exec_file_attach): Use current_program_space.
2272 * exec.h (exec_bfd_mtime): Remove.
2273
2274 2020-10-29 Tom Tromey <tom@tromey.com>
2275
2276 * gcore.c (default_gcore_mach): Remove.
2277 (create_gcore_bfd): Update.
2278
2279 2020-10-29 Tom Tromey <tom@tromey.com>
2280
2281 * progspace.c (program_space::exec_close): New method, from
2282 exec_close in exec.c.
2283 * exec.c (exec_close): Move to progspace.c.
2284 (exec_target::close, exec_file_attach): Update.
2285 * progspace.h (struct program_space) <exec_close>: Declare
2286 method.
2287
2288 2020-10-29 Tom Tromey <tom@tromey.com>
2289
2290 * progspace.h (struct program_space) <exec_filename>: Rename from
2291 pspace_exec_filename. Now a unique_xmalloc_ptr.
2292 * inferior.c (print_selected_inferior): Update.
2293 (print_inferior): Update.
2294 * mi/mi-main.c (print_one_inferior): Update.
2295 * exec.h (exec_filename): Remove macro.
2296 * corefile.c (get_exec_file): Update.
2297 * exec.c (exec_close): Update.
2298 (exec_file_attach): Update.
2299 * progspace.c (clone_program_space): Update.
2300 (print_program_space): Update.
2301
2302 2020-10-29 Tom Tromey <tom@tromey.com>
2303
2304 * target-section.h (struct target_section): Add constructor.
2305 * exec.c (build_section_table, add_target_sections_of_objfile):
2306 Update.
2307 * corelow.c (core_target::build_file_mappings): Update.
2308
2309 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2310
2311 PR gdb/19318
2312 * inferior.c (detach_inferior_command): Restore the current thread.
2313 (kill_inferior_command): Ditto.
2314
2315 2020-10-28 Tom de Vries <tdevries@suse.de>
2316
2317 PR symtab/26772
2318 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2319 map, check it in the "best match" loop.
2320
2321 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * m32c-tdep.c: Remove unused includes.
2324
2325 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2326
2327 * xtensa-tdep.c: Remove includes.
2328
2329 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2330
2331 * breakpoint.c (struct condition_command_opts): New struct.
2332 (condition_command_option_defs): New static global.
2333 (make_condition_command_options_def_group): New function.
2334 (condition_completer): Update to consider the '-force' flag.
2335 (condition_command): Use gdb::option for the '-force' flag.
2336
2337 2020-10-27 Tom de Vries <tdevries@suse.de>
2338
2339 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2340 symbols in section check.
2341
2342 2020-10-27 Tom de Vries <tdevries@suse.de>
2343
2344 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2345
2346 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2347
2348 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2349 * breakpoint.c: Update the help text of the 'condition' and 'break'
2350 commands.
2351 (set_breakpoint_condition): Take a new bool parameter
2352 to control whether condition definition should be forced even when
2353 the condition expression is invalid in all of the current locations.
2354 (condition_command): Update the call to 'set_breakpoint_condition'.
2355 (find_condition_and_thread): Take the "-force-condition" flag into
2356 account.
2357 * linespec.c (linespec_keywords): Add "-force-condition" as an
2358 element.
2359 (FORCE_KEYWORD_INDEX): New #define.
2360 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2361 as a keyword.
2362 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2363 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2364 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2365 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2366
2367 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2368
2369 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2370 * breakpoint.c (set_breakpoint_location_condition): New function.
2371 (set_breakpoint_condition): Disable a breakpoint location if parsing
2372 the condition string gives an error.
2373 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2374 (build_target_condition_list): Ditto.
2375 (build_target_command_list): Ditto.
2376 (build_bpstat_chain): Ditto.
2377 (print_one_breakpoint_location): Ditto.
2378 (print_one_breakpoint): Ditto.
2379 (breakpoint_1): Ditto.
2380 (bp_location::bp_location): Ditto.
2381 (locations_are_equal): Ditto.
2382 (update_breakpoint_locations): Ditto.
2383 (enable_disable_bp_num_loc): Ditto.
2384 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2385 (find_condition_and_thread_for_sals): New static function.
2386 (create_breakpoint): Call find_condition_and_thread_for_sals.
2387 (location_to_sals): Call find_condition_and_thread_for_sals instead
2388 of find_condition_and_thread.
2389
2390 2020-10-26 Tom de Vries <tdevries@suse.de>
2391
2392 * dwarf2/read.c (process_full_comp_unit): Call
2393 dwarf2_find_base_address.
2394
2395 2020-10-26 Tom Tromey <tromey@adacore.com>
2396
2397 * gdbtypes.c (create_range_type): Revert previous patch. Add
2398 comment.
2399
2400 2020-10-26 Pedro Alves <pedro@palves.net>
2401
2402 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2403 (my_waitpid): Use gdb::handle_eintr.
2404
2405 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * acinclude.m4: Update ptrace.m4 path.
2408 * ptrace.m4: Moved to gdbsupport.
2409
2410 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2413 instead of target_gdbarch.
2414
2415 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * jit.c (jit_reader_load_command): Pass current inferior.
2418 (jit_inferior_init): Change parameter type to inferior, use it.
2419 (jit_inferior_created): Remove.
2420 (jit_inferior_created_hook): Pass inferior parameter down.
2421 (_initialize_jit): Use jit_inferior_created_hook instead of
2422 jit_inferior_created.
2423 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2424 * infrun.c (follow_exec): Pass inferior to
2425 jit_inferior_created_hook.
2426
2427 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2430 parameter and use it.
2431 (thread_db_inferior_created): Pass inferior argument.
2432
2433 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * aix-thread.c (aix_thread_inferior_created): Add inferior
2436 parameter.
2437 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2438 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2439 * jit.c (jit_inferior_created): Likewise.
2440 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2441 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2442 * observable.h (inferior_created): Likewise.
2443 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2444 * symfile-mem.c (add_vsyscall_page): Likewise.
2445 * infcmd.c (post_create_inferior): Pass inferior argument.
2446
2447 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2448
2449 GDB 10.1 released.
2450
2451 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2452
2453 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2454 to ada_check_typedef.
2455
2456 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2457
2458 * f-exp.y (f_parse): Rename to...
2459 (f_language::parser): ...this.
2460 * f-lang.c (f_get_encoding): Rename to...
2461 (f_language::get_encoding): ...this.
2462 (f_op_print_tab): Rename to...
2463 (f_language::op_print_tab): ...this.
2464 (exp_descriptor_f): Rename to...
2465 (f_language::exp_descriptor_tab): ...this.
2466 (class f_language): Moved to f-lang.h.
2467 (f_language::language_arch_info): New function, moved out of class
2468 declaration.
2469 (f_language::search_name_hash): Likewise.
2470 (f_language::lookup_symbol_nonlocal): Likewise.
2471 (f_language::get_symbol_name_matcher_inner): Likewise.
2472 * f-lang.h: Add 'valprint.h' include.
2473 (class f_language): Moved here from f-lang.c.
2474 * f-typeprint.c (f_type_print_args): Delete commented out
2475 declaration.
2476 (f_print_typedef): Rename to...
2477 (f_language::print_typedef): ...this.
2478 (f_print_type): Rename to...
2479 (f_language::print_type): ...this.
2480 (f_type_print_varspec_prefix): Delete declaration and rename to...
2481 (f_language::f_type_print_varspec_prefix): ...this.
2482 (f_type_print_varspec_suffix): Delete declaration and rename to...
2483 (f_language::f_type_print_varspec_suffix): ...this.
2484 (f_type_print_base): Delete declaration and rename to...
2485 (f_language::f_type_print_base): ...this.
2486 * f-valprint.c (f_value_print_inner): Rename to...
2487 (f_language::value_print_inner): ...this.
2488 * parse.c: Delete 'f-lang.h' include.
2489
2490 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * language.h (language_defn::print_type): Add variable names in
2493 declaration, and update header comment.
2494
2495 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * ada-lang.c (ada_language::demangle): Rename to...
2498 (ada_language::demangle_symbol): ...this.
2499 * c-lang.c (cplus_language::demangle): Rename to...
2500 (cplus_language::demangle_symbol): ...this.
2501 * d-lang.c (d_language::demangle): Rename to...
2502 (d_language::demangle_symbol): ...this.
2503 * f-lang.c (f_language::demangle): Rename to...
2504 (f_language::demangle_symbol): ...this.
2505 * go-lang.c (go_language::demangle): Rename to...
2506 (go_language::demangle_symbol): ...this.
2507 * language.c (language_demangle): Update call to demangle_symbol.
2508 (auto_or_unknown_language::demangle): Rename to...
2509 (auto_or_unknown_language::demangle_symbol): ...this.
2510 * language.h (language_defn::demangle): Rename to...
2511 (language_defn::demangle_symbol): ...this.
2512 * objc-lang.c (objc_language::demangle): Rename to...
2513 (objc_language::demangle_symbol): ...this.
2514 * rust-lang.c (rust_language::demangle): Rename to...
2515 (rust_language::demangle_symbol): ...this.
2516
2517 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2520 (iterate_over_file_blocks): Replace use of macro with the macros
2521 definition.
2522
2523 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2526 * valprint.c (maybe_print_array_index): Replace use of macro with
2527 the macros definition.
2528
2529 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * ada-lang.c (ada_language::print_array_index): Call value_print
2532 directly.
2533 * language.c (language_defn::print_array_index): Likewise.
2534 * language.h (LA_VALUE_PRINT): Delete.
2535 * valprint.c (value_print): Call value_print on the
2536 current_language directly.
2537
2538 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * language.h (LA_PRINT_TYPEDEF): Delete.
2541 * typeprint.c (typedef_print): Call print_typedef directly on the
2542 current_language object.
2543
2544 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * m2-exp.y (m2_parse): Rename to...
2547 (m2_language::parser): ...this. Update function signature.
2548 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2549 (m2_op_print): Rename to...
2550 (m2_language::op_print_tab): ...this, and make const.
2551 (exp_descriptor_modula2): Rename to...
2552 (m2_language::exp_descriptor_modula2): ...this.
2553 (class m2_language): Move to m2-lang.h.
2554 (m2_language::language_arch_info): New function, moved out of
2555 class declaration.
2556 (m2_language::printchar): New function, body from m2_printchar.
2557 (m2_language::printstr): New function, moved out of class
2558 declaration.
2559 (m2_language::emitchar): Likewise.
2560 * m2-lang.h (m2_parse): Delete declaration.
2561 (m2_print_typedef): Delete declaration.
2562 (m2_value_print_inner): Delete declaration.
2563 (class m2_language): Class declaration moved from m2-lang.c,
2564 larger functions are left in m2-lang.c.
2565 * m2-typeprint.c (m2_print_typedef): Rename to...
2566 (m2_language::print_typedef): ...this, and update function
2567 signature.
2568 * m2-valprint.c (m2_value_print_inner): Rename to...
2569 (m2_language::value_print_inner): ...this, replace use of
2570 LA_PRINT_STRING with a direct call to printstr member function,
2571 and update recursive call.
2572
2573 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * language.c (default_is_string_type_p): Delete, implementation
2576 moved into auto_or_unknown_language::is_string_type_p.
2577 (unk_op_print_tab): Moved into
2578 auto_or_unknown_language::opcode_print_table.
2579 (unknown_language_arch_info): Delete, implementation moved into
2580 auto_or_unknown_language::language_arch_info.
2581 (class auto_or_unknown_language): New class, member functions
2582 copied from unknown_language class, with some updates.
2583 (class unknown_language): Most member functions moved into
2584 auto_or_unknown_language class. Inherit from
2585 auto_or_unknown_language class.
2586 (class auto_language): Inherit from auto_or_unknown_language.
2587 Delete most member functions.
2588
2589 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2590
2591 * stabsread.c (read_member_functions): Remove gdb_assert.
2592
2593 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2594
2595 * gdbtypes.c (init_complex_type): Check target type name.
2596
2597 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2598
2599 * target-debug.h (target_debug_print_struct_target_ops_p):
2600 Remove.
2601 (target_debug_print_async_callback_ftype_p): Remove.
2602 (target_debug_print_struct_trace_state_variable_p): Remove.
2603 (target_debug_print_struct_traceframe_info_p): Remove.
2604 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2605 (target_debug_print_enum_btrace_format): Remove.
2606 (target_debug_print_enum_info_proc_what): Remove.
2607 (target_debug_print_thread_info_pp): Remove.
2608
2609 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2610
2611 * target.h (struct target_ops) <make_corefile_notes>:
2612 Change return type to unique pointer.
2613 * target.c (dummy_make_corefile_notes): Likewise.
2614 * exec.c (struct exec_target) <make_corefile_notes>:
2615 Likewise.
2616 (exec_target::make_corefile_notes): Likewise.
2617 * procfs.c (class procfs_target) <make_corefile_notes>:
2618 Likewise.
2619 (procfs_do_thread_registers): Adjust to unique pointer.
2620 (struct procfs_corefile_thread_data): Add constructor.
2621 <note_data>: Change type to unique pointer.
2622 (procfs_corefile_thread_callback): Adjust to unique pointer.
2623 (procfs_target::make_corefile_notes): Change return type to
2624 unique pointer.
2625 * target-delegates.c: Re-generate.
2626 * gcore.c (write_gcore_file_1): Adjust.
2627 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2628 New.
2629
2630 2020-10-22 Tom de Vries <tdevries@suse.de>
2631
2632 * block.c (find_block_in_blockvector): Make sure the returned block
2633 contains pc.
2634
2635 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2636
2637 PR gdb/26693
2638 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2639 parameter.
2640 (load_cu): Pass existing CU.
2641 (process_imported_unit_die): Likewise.
2642 (follow_die_offset): Likewise.
2643
2644 2020-10-22 Luis Machado <luis.machado@linaro.org>
2645
2646 * corelow.c (core_target::xfer_partial): Also check for an empty
2647 m_core_unavailable_mappings vector.
2648
2649 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2652 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2653 * f-exp.y (arglist): Allow for a series of subranges.
2654 (subrange): Add cases for subranges with strides.
2655 * f-lang.c (value_f90_subarray): Catch use of array strides and
2656 throw an error.
2657 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2658
2659 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * expprint.c (print_subexp_standard): Change enum range_type to
2662 range_flag and rename variables to match.
2663 (dump_subexp_body_standard): Likewise.
2664 * expression.h (enum range_type): Rename to...
2665 (enum range_flag): ...this.
2666 (range_types): Rename to...
2667 (range_flags): ...this.
2668 * f-lang.c (value_f90_subarray): Change enum range_type to
2669 range_flag and rename variables to match.
2670 * parse.c (operator_length_standard): Likewise.
2671 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2672 range_type to range_flag.
2673 * rust-lang.c (rust_evaluate_funcall): Likewise.
2674 (rust_range): Likewise.
2675 (rust_compute_range): Likewise.
2676 (rust_subscript): Likewise.
2677
2678 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * expprint.c (print_subexp_standard): Update to reflect changes to
2681 enum range_type.
2682 (dump_subexp_body_standard): Likewise.
2683 * expression.h (enum range_type): Convert to a bit field enum, and
2684 make the enum unsigned.
2685 * f-exp.y (subrange): Update to reflect changes to enum
2686 range_type.
2687 * f-lang.c (value_f90_subarray): Likewise.
2688 * parse.c (operator_length_standard): Likewise.
2689 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2690 * rust-lang.c (rust_range): Likewise.
2691 (rust_compute_range): Likewise.
2692 (rust_subscript): Likewise.
2693
2694 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2695
2696 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2697 (displaced_step_in_progress): Fix comment.
2698
2699 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2700
2701 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2702 * gdbarch.c: Re-generate.
2703 * gdbarch.h: Re-generate.
2704 * gcore.c (write_gcore_file_1): Adjust.
2705 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2706 constructor.
2707 <note_data>: Change type to unique pointer.
2708 <abort_iteration>: Change type to bool.
2709 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2710 (fbsd_collect_thread_registers): Return void, adjust.
2711 (struct fbsd_corefile_thread_data): Add construtor.
2712 <note_data>: Change type to unique pointer.
2713 (fbsd_corefile_thread): Adjust.
2714 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2715 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2716 to unique pointer, adjust.
2717 (struct linux_collect_regset_section_cb_data): Add constructor.
2718 <note_data>: Change type to unique pointer.
2719 <abort_iteration>: Change type to bool.
2720 (linux_collect_thread_registers): Return void, adjust.
2721 (struct linux_corefile_thread_data): Add constructor.
2722 <note_data>: Change type to unique pointer.
2723 (linux_corefile_thread): Adjust.
2724 (linux_make_corefile_notes): Return unique pointer, adjust.
2725
2726 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2727
2728 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2729 * gdbarch.c: Re-generate.
2730 * gdbarch.h: Re-generate.
2731 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2732 bool.
2733 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2734 Likewise.
2735 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2736 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2737 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2738 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2739
2740 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2741
2742 * gdbarch.sh: Make generated predicates return bool.
2743 * gdbarch.c: Re-generate.
2744 * gdbarch.h: Re-generate.
2745
2746 2020-10-20 Tom Tromey <tom@tromey.com>
2747
2748 * varobj-iter.h (struct varobj_item): Remove typedef.
2749
2750 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * infrun.c (currently_stepping): Change int to bool
2753 (maybe_software_singlestep): Likewise.
2754 (show_stop_on_solib_events): Likewise.
2755 (stepping_past_nonsteppable_watchpoint): Likewise.
2756 (displaced_step_in_progress_any_inferior): Likewise.
2757 (displaced_step_in_progress_thread): Likewise.
2758 (keep_going_stepped_thread): Likewise.
2759 (thread_still_needs_step_over): Likewise.
2760 (start_step_over): Likewise.
2761 (do_target_resume): Likewise.
2762 (resume_1): Likewise.
2763 (clear_proceed_status): Likewise.
2764 (thread_still_needs_step_over_bp): Likewise.
2765 (proceed): Likewise.
2766 (switch_back_to_stepped_thread): Likewise.
2767 (adjust_pc_after_break): Likewise.
2768 (stepped_in_from): Likewise.
2769 (handle_stop_requested): Likewise.
2770 (handle_syscall_event): Likewise.
2771 (handle_no_resumed): Likewise.
2772 (handle_inferior_event): Likewise.
2773 (finish_step_over): Likewise.
2774 (handle_signal_stop): Likewise.
2775 (process_event_stop_test): Likewise.
2776
2777 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2778
2779 * infrun.c (get_displaced_stepping_state): Fix comment.
2780
2781 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2782
2783 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2784
2785 2020-10-19 Tom Tromey <tromey@adacore.com>
2786
2787 PR tui/26719
2788 * tui/tui-winsource.h (struct tui_source_window_base)
2789 <refresh_window>: Rename from refresh_pad.
2790 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2791 Rename from refresh_pad.
2792 (tui_source_window_base::show_source_content)
2793 (tui_source_window_base::do_scroll_horizontal): Update.
2794
2795 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2796
2797 * thread.c (_initialize_thread): Fine-tune the help text of
2798 'info threads'.
2799
2800 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2801
2802 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2803
2804 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2805
2806 * breakpoint.c (handle_jit_event): Add an argument, change how
2807 `jit_event_handler` is called.
2808
2809 2020-10-17 Tom Tromey <tom@tromey.com>
2810
2811 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2812 (scan_xcoff_symtab): Update.
2813 * psymtab.h (class psymtab_storage) <global_psymbols,
2814 static_psymbols, current_global_psymbols,
2815 current_static_psymbols>: Remove.
2816 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2817 (match_partial_symbol, lookup_partial_symbol): Update.
2818 (print_partial_symbols): Change parameters.
2819 (dump_psymtab, recursively_search_psymtabs)
2820 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2821 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2822 (concat): Remove.
2823 (end_psymtab_common): Simplify.
2824 (append_psymbol_to_list): Change parameters.
2825 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2826 (init_psymbol_list): Simplify.
2827 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2828 * psympriv.h (struct partial_symtab) <empty>: New method.
2829 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2830 Remove.
2831 <global_psymbols, static_psymbols>: New members.
2832 <add_psymbol>: New methods.
2833 (add_psymbol_to_list): Don't declare.
2834 (psymbol_placement): Move earlier.
2835 * mdebugread.c (parse_partial_symbols): Update.
2836 (handle_psymbol_enumerators): Change parameters.
2837 (mdebug_expand_psymtab): Update.
2838 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2839 (add_partial_symbol): Update.
2840 * dwarf2/index-write.c (write_psymbols): Change parameters.
2841 (write_one_signatured_type): Update.
2842 (recursively_count_psymbols): Update.
2843 (recursively_write_psymbols): Update.
2844 (class debug_names) <recursively_write_psymbols>: Update.
2845 <write_psymbols>: Change parameters.
2846 <write_one_signatured_type>: Update.
2847 * dbxread.c (read_dbx_symtab): Update.
2848 (dbx_end_psymtab): Use partial_symtab::empty.
2849 * ctfread.c (struct ctf_context) <pst>: New member.
2850 (create_partial_symtab): Set it.
2851 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2852 (scan_partial_symbols): Use the psymtab's context. Update.
2853
2854 2020-10-17 Tom Tromey <tom@tromey.com>
2855
2856 * valprint.c (generic_value_print): Remove comment.
2857 * m2-valprint.c (m2_value_print_inner): Remove comment.
2858 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2859 type.
2860
2861 2020-10-17 Tom de Vries <tdevries@suse.de>
2862
2863 PR symtab/26317
2864 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2865 symbol main.
2866
2867 2020-10-14 Tom de Vries <tdevries@suse.de>
2868
2869 PR gdb/26733
2870 * solib.c (solib_contains_address_p): Handle
2871 'solib->sections == nullptr'.
2872
2873 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 PR gdb/26642
2876 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2877 target can't do async.
2878 * target.c (target_wait): Assert that we don't pass
2879 TARGET_WNOHANG to a target that can't async.
2880
2881 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2882
2883 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2884 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2885 * alpha-bsd-nat.c: Adjust include.
2886 * alpha-bsd-tdep.h: Adjust comment.
2887 * alpha-nbsd-tdep.c: Rename to ...
2888 * alpha-netbsd-tdep.c: ... this, adjust include.
2889 * amd64-nbsd-nat.c: Rename to ...
2890 * amd64-netbsd-nat.c: ... this, adjust include.
2891 * amd64-nbsd-tdep.c: Rename to ...
2892 * amd64-netbsd-tdep.c: ... this, adjust include.
2893 * amd64-tdep.h: Adjust include.
2894 * arm-nbsd-nat.c: Rename to ...
2895 * arm-netbsd-nat.c: ... this, adjust include.
2896 * arm-nbsd-tdep.c: Rename to ...
2897 * arm-netbsd-tdep.c: ... this, adjust include.
2898 * arm-nbsd-tdep.h: Rename to ...
2899 * arm-netbsd-tdep.h: ... this, adjust include.
2900 * configure.nat: Adjust file lists.
2901 * configure.tgt: Likewise.
2902 * hppa-nbsd-nat.c: Rename to ...
2903 * hppa-netbsd-nat.c: ... this, adjust include.
2904 * hppa-nbsd-tdep.c: Rename to ...
2905 * hppa-netbsd-tdep.c: ... this, adjust include.
2906 * i386-nbsd-nat.c: Rename to ...
2907 * i386-netbsd-nat.c: ... this, adjust include.
2908 * i386-nbsd-tdep.c: Rename to ...
2909 * i386-netbsd-tdep.c: ... this, adjust include.
2910 * m68k-bsd-nat.c: Adjust include.
2911 * mips-nbsd-nat.c: Rename to ...
2912 * mips-netbsd-nat.c: ... this, adjust include.
2913 * mips-nbsd-tdep.c: Rename to ...
2914 * mips-netbsd-tdep.c: ... this, adjust include.
2915 * mips-nbsd-tdep.h: Rename to ...
2916 * mips-netbsd-tdep.h: ... this.
2917 * nbsd-nat.c: Rename to ...
2918 * netbsd-nat.c: ... this, adjust include.
2919 * nbsd-nat.h: Rename to ...
2920 * netbsd-nat.h: ... this, adjust include.
2921 * nbsd-tdep.c: Rename to ...
2922 * netbsd-tdep.c: ... this, adjust include.
2923 * nbsd-tdep.h: Rename to ...
2924 * netbsd-tdep.h: ... this.
2925 * ppc-nbsd-nat.c: Rename to ...
2926 * ppc-netbsd-nat.c: ... this, adjust include.
2927 * ppc-nbsd-tdep.c: Rename to ...
2928 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2929 * ppc-nbsd-tdep.h: Rename to ...
2930 * ppc-netbsd-tdep.h: ... this.
2931 * sh-nbsd-nat.c: Rename to ...
2932 * sh-netbsd-nat.c: ... this, adjust include.
2933 * sh-nbsd-tdep.c: Rename to ...
2934 * sh-netbsd-tdep.c: ... this, adjust include.
2935 * sparc-nbsd-nat.c: Rename to ...
2936 * sparc-netbsd-nat.c: ... this.
2937 * sparc-nbsd-tdep.c: Rename to ...
2938 * sparc-netbsd-tdep.c: ... this, adjust include.
2939 * sparc64-nbsd-nat.c: Rename to ...
2940 * sparc64-netbsd-nat.c: ... this.
2941 * sparc64-nbsd-tdep.c: Rename to ...
2942 * sparc64-netbsd-tdep.c: ... this, adjust include.
2943 * sparc64-tdep.h: Adjust comment.
2944 * vax-bsd-nat.c: Adjust include.
2945 * vax-nbsd-tdep.c: Rename to ...
2946 * vax-netbsd-tdep.c: ... this, adjust include.
2947
2948 2020-10-12 Tom Tromey <tom@tromey.com>
2949
2950 * target.h (struct target_ops) <get_section_table>: Update.
2951 (target_get_section_table): Update.
2952 * target.c (target_get_section_table, target_section_by_addr)
2953 (memory_xfer_partial_1): Update.
2954 * target-section.h (target_section_table): Now an alias.
2955 * target-delegates.c: Rebuild.
2956 * target-debug.h (target_debug_print_target_section_table_p):
2957 Rename from target_debug_print_struct_target_section_table_p.
2958 * symfile.c (build_section_addr_info_from_section_table): Update.
2959 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2960 * solib-svr4.c (scan_dyntag): Update.
2961 * solib-dsbt.c (scan_dyntag): Update.
2962 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2963 Update.
2964 * record-full.c (record_full_core_target::xfer_partial): Update.
2965 * progspace.h (struct program_space) <target_sections>: Update.
2966 * exec.h (print_section_info): Update.
2967 * exec.c (exec_target::close, build_section_table)
2968 (add_target_sections, add_target_sections_of_objfile)
2969 (remove_target_sections, exec_on_vfork)
2970 (section_table_available_memory)
2971 (section_table_xfer_memory_partial)
2972 (exec_target::get_section_table, exec_target::xfer_partial)
2973 (print_section_info, set_section_command)
2974 (exec_set_section_address, exec_target::has_memory): Update.
2975 * corelow.c (core_target::build_file_mappings)
2976 (core_target::xfer_partial, core_target::info_proc_mappings)
2977 (core_target::info_proc_mappings): Update.
2978 * bfd-target.c (class target_bfd): Update
2979
2980 2020-10-12 Tom Tromey <tom@tromey.com>
2981
2982 * progspace.c (program_space::~program_space): Don't call
2983 clear_section_table.
2984 * exec.h (clear_section_table): Don't declare.
2985 * exec.c (exec_target::close): Update.
2986 (clear_section_table): Remove.
2987
2988 2020-10-12 Tom Tromey <tom@tromey.com>
2989
2990 * exec.c (add_target_sections_of_objfile): Simplify.
2991
2992 2020-10-12 Tom Tromey <tom@tromey.com>
2993
2994 * solib.c (solib_map_sections): Update.
2995 * record-full.c (record_full_core_open_1): Update.
2996 * exec.h (build_section_table): Return a target_section_table.
2997 * exec.c (exec_file_attach): Update.
2998 (build_section_table): Return a target_section_table.
2999 * corelow.c (core_target::core_target): Update.
3000 * bfd-target.c (target_bfd::target_bfd): Update.
3001
3002 2020-10-12 Tom Tromey <tom@tromey.com>
3003
3004 * target.c (target_section_by_addr, memory_xfer_partial_1):
3005 Update.
3006 * target-section.h (struct target_section_table): Use
3007 std::vector.
3008 * symfile.h (build_section_addr_info_from_section_table): Take a
3009 target_section_table.
3010 * symfile.c (build_section_addr_info_from_section_table): Take a
3011 target_section_table.
3012 * solist.h (struct so_list) <sections>: Change type.
3013 <sections_end>: Remove.
3014 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3015 (solib_contains_address_p): Update.
3016 * solib-svr4.c (scan_dyntag): Update.
3017 * solib-dsbt.c (scan_dyntag): Update.
3018 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3019 Update.
3020 * record-full.c (record_full_core_start, record_full_core_end):
3021 Remove.
3022 (record_full_core_sections): New global.
3023 (record_full_core_open_1, record_full_core_target::xfer_partial):
3024 Update.
3025 * exec.h (build_section_table, section_table_xfer_memory_partial)
3026 (add_target_sections): Take a target_section_table.
3027 * exec.c (exec_file_attach, clear_section_table): Update.
3028 (resize_section_table): Remove.
3029 (build_section_table, add_target_sections): Take a
3030 target_section_table.
3031 (add_target_sections_of_objfile, remove_target_sections)
3032 (exec_on_vfork): Update.
3033 (section_table_available_memory): Take a target_section_table.
3034 (section_table_read_available_memory): Update.
3035 (section_table_xfer_memory_partial): Take a target_section_table.
3036 (print_section_info, set_section_command)
3037 (exec_set_section_address, exec_target::has_memory): Update.
3038 * corelow.c (class core_target) <m_core_section_table,
3039 m_core_file_mappings>: Remove braces.
3040 <~core_target>: Remove.
3041 (core_target::core_target): Update.
3042 (core_target::~core_target): Remove.
3043 (core_target::build_file_mappings)
3044 (core_target::xfer_memory_via_mappings)
3045 (core_target::xfer_partial, core_target::info_proc_mappings):
3046 Update.
3047 * bfd-target.c (target_bfd::xfer_partial): Update.
3048 (target_bfd::target_bfd): Update.
3049 (target_bfd::~target_bfd): Remove.
3050
3051 2020-10-12 Tom Tromey <tom@tromey.com>
3052
3053 * target.h (struct target_section, struct target_section_table):
3054 Move to target-section.h.
3055 * target-section.h: New file.
3056
3057 2020-10-12 Pedro Alves <pedro@palves.net>
3058
3059 PR exp/26602
3060 * valops.c (struct struct_field_searcher): New.
3061 (update_search_result): Rename to ...
3062 (struct_field_searcher::update_result): ... this. Simplify
3063 prototype. Record all found fields.
3064 (do_search_struct_field): Rename to ...
3065 (struct_field_searcher::search): ... this. Simplify prototype.
3066 Maintain stack of visited baseclass path. Call update_result for
3067 fields too. Keep searching fields in baseclasses instead of
3068 stopping at the first found field.
3069 (search_struct_field): Use struct_field_searcher. When looking
3070 for fields, report ambiguous access attempts.
3071
3072 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * frame.c (inside_main_func): Check full symbols as well as
3075 minimal symbols.
3076
3077 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3078
3079 * ada-lang.c (advance_wild_match): Rewrite the function's
3080 description. Change the type of target0, t0 and t1 to char.
3081
3082 2020-10-09 Tom Tromey <tromey@adacore.com>
3083
3084 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3085
3086 2020-10-09 Tom Tromey <tromey@adacore.com>
3087
3088 * ada-lang.h (ada_encode): Return std::string.
3089 * ada-lang.c (ada_encode_1): Return std::string.
3090 (ada_encode): Likewise.
3091 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3092 Update.
3093 * ada-exp.y (block_lookup, write_var_or_type): Update.
3094
3095 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3096
3097 PR exp/26714
3098 * printcmd.c (print_formatted): Handle void results as
3099 unformatted prints.
3100
3101 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * arch/aarch32.c (aarch32_create_target_description): Release the
3104 target_desc_up as late as possible.
3105 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3106 * arch/amd64.c (amd64_create_target_description): Likewise.
3107 * arch/arc.c (arc_create_target_description): Return a
3108 target_desc_up, don't release it.
3109 * arch/arc.h (arc_create_target_description): Update declaration.
3110 (arc_lookup_target_description): Move target_desc_up into the
3111 cache, and return a borrowed pointer.
3112 * arch/arm.c (arm_create_target_description): Release the
3113 target_desc_up as late as possible.
3114 * arch/i386.c (i386_create_target_description): Likewise.
3115 * arch/riscv.h (riscv_create_target_description): Update
3116 declaration to match definition.
3117 * arch/tic6x.c (tic6x_create_target_description): Release the
3118 target_desc_up as late as possible.
3119
3120 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3123 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3124
3125 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3126
3127 * source.c (directory_command): Notify observers that "directories"
3128 parameter has changed.
3129
3130 2020-10-08 Tom Tromey <tom@tromey.com>
3131
3132 * cli/cli-cmds.c (print_disassembly): Style function name and
3133 addresses. Add _() wrappers.
3134
3135 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3136
3137 * NEWS: Mention ARC support in GDBserver.
3138
3139 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * arch/aarch32.c (aarch32_create_target_description): Release
3142 unique_ptr returned from allocate_target_description.
3143 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3144 * arch/amd64.c (amd64_create_target_description): Likewise.
3145 * arch/arc.c (arc_create_target_description): Likewise.
3146 * arch/arm.c (arm_create_target_description): Likewise.
3147 * arch/i386.c (i386_create_target_description): Likewise.
3148 * arch/riscv.c (riscv_create_target_description): Update return
3149 type. Handle allocate_target_description returning a unique_ptr.
3150 (riscv_lookup_target_description): Update to handle unique_ptr.
3151 * arch/tic6x.c (tic6x_create_target_description): Release
3152 unique_ptr returned from allocate_target_description.
3153 * features/microblaze-with-stack-protect.c: Regenerate.
3154 * features/microblaze.c: Regenerate.
3155 * features/mips-dsp-linux.c: Regenerate.
3156 * features/mips-linux.c: Regenerate.
3157 * features/mips64-dsp-linux.c: Regenerate.
3158 * features/mips64-linux.c: Regenerate.
3159 * features/nds32.c: Regenerate.
3160 * features/nios2.c: Regenerate.
3161 * features/or1k.c: Regenerate.
3162 * features/rs6000/powerpc-32.c: Regenerate.
3163 * features/rs6000/powerpc-32l.c: Regenerate.
3164 * features/rs6000/powerpc-403.c: Regenerate.
3165 * features/rs6000/powerpc-403gc.c: Regenerate.
3166 * features/rs6000/powerpc-405.c: Regenerate.
3167 * features/rs6000/powerpc-505.c: Regenerate.
3168 * features/rs6000/powerpc-601.c: Regenerate.
3169 * features/rs6000/powerpc-602.c: Regenerate.
3170 * features/rs6000/powerpc-603.c: Regenerate.
3171 * features/rs6000/powerpc-604.c: Regenerate.
3172 * features/rs6000/powerpc-64.c: Regenerate.
3173 * features/rs6000/powerpc-64l.c: Regenerate.
3174 * features/rs6000/powerpc-7400.c: Regenerate.
3175 * features/rs6000/powerpc-750.c: Regenerate.
3176 * features/rs6000/powerpc-860.c: Regenerate.
3177 * features/rs6000/powerpc-altivec32.c: Regenerate.
3178 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3179 * features/rs6000/powerpc-altivec64.c: Regenerate.
3180 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3181 * features/rs6000/powerpc-e500.c: Regenerate.
3182 * features/rs6000/powerpc-e500l.c: Regenerate.
3183 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3184 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3185 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3186 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3187 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3188 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3189 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3190 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3191 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3192 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3193 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3194 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3195 * features/rs6000/powerpc-vsx32.c: Regenerate.
3196 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3197 * features/rs6000/powerpc-vsx64.c: Regenerate.
3198 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3199 * features/rs6000/rs6000.c: Regenerate.
3200 * features/rx.c: Regenerate.
3201 * features/s390-gs-linux64.c: Regenerate.
3202 * features/s390-linux32.c: Regenerate.
3203 * features/s390-linux32v1.c: Regenerate.
3204 * features/s390-linux32v2.c: Regenerate.
3205 * features/s390-linux64.c: Regenerate.
3206 * features/s390-linux64v1.c: Regenerate.
3207 * features/s390-linux64v2.c: Regenerate.
3208 * features/s390-te-linux64.c: Regenerate.
3209 * features/s390-tevx-linux64.c: Regenerate.
3210 * features/s390-vx-linux64.c: Regenerate.
3211 * features/s390x-gs-linux64.c: Regenerate.
3212 * features/s390x-linux64.c: Regenerate.
3213 * features/s390x-linux64v1.c: Regenerate.
3214 * features/s390x-linux64v2.c: Regenerate.
3215 * features/s390x-te-linux64.c: Regenerate.
3216 * features/s390x-tevx-linux64.c: Regenerate.
3217 * features/s390x-vx-linux64.c: Regenerate.
3218 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3219 from allocate_target_description.
3220 * target-descriptions.c (allocate_target_description): Update
3221 return type.
3222 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3223 allocate_target_description.
3224
3225 2020-10-07 Tom Tromey <tromey@adacore.com>
3226
3227 * unittests/search-memory-selftests.c: New file.
3228 * Makefile.in (SELFTESTS_SRCS): Add
3229 unittests/search-memory-selftests.c.
3230
3231 2020-10-07 Tom Tromey <tromey@adacore.com>
3232
3233 PR gdb/16930:
3234 * findcmd.c (_initialize_mem_search): Mention that the range is
3235 inclusive.
3236
3237 2020-10-07 Tom Tromey <tromey@adacore.com>
3238
3239 * target.h (simple_search_memory): Don't declare.
3240 * target.c (simple_search_memory): Move to gdbsupport.
3241 (default_search_memory): Update.
3242 * remote.c (remote_target::search_memory): Update.
3243
3244 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3245
3246 * Makefile.in (COMPILE): Add CXXFLAGS.
3247 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3248 (check-headers): Add CXXFLAGS.
3249
3250 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3251
3252 * arc-linux-tdep.h: New file.
3253 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3254 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3255 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3256 arc_linux_gregset, arc_linux_v2_regset,
3257 arc_linux_iterate_over_regset_sections,
3258 arc_linux_core_read_description): Implement.
3259 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3260 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3261 (arc_gdbarch_features_create): Add.
3262 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3263
3264 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3265
3266 * arch/arc.h: Rename "arc_gdbarch_features" to
3267 "arc_arch_features".
3268 * arc-tdep.h: Likewise.
3269 * arc-tdep.c: Likewise.
3270
3271 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3272
3273 * infcmd.c (attach_command): Remove the redundant call to
3274 `clear_proceed_status`.
3275
3276 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3277
3278 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3279
3280 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3281
3282 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3283 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3284 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3285
3286 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3289 (_initialize_break_catch_sig): Don't allocate array.
3290
3291 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3292
3293 * symtab.c (find_pc_line): Return unmapped addresses when the
3294 requested address is also unmapped.
3295
3296 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3299 tui/tui-out.h.
3300
3301 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3304 type::is_vector instead of TYPE_VECTOR.
3305
3306 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * auto-load.c (auto_load_objfile_script_1): Don't use
3309 debugfile_holder as temporary variable when stripping drive
3310 letter.
3311
3312 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3313
3314 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3315 Add TYPE_CODE_COMPLEX.
3316 (amd64_windows_return_value): Fix types returned via XMM0.
3317
3318 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3319
3320 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3321 AArch64/ARM maintainers.
3322
3323 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3324
3325 * NEWS: Mention set/show debug event-loop.
3326
3327 2020-10-02 Tom Tromey <tromey@adacore.com>
3328
3329 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3330 REG_EXTENDED.
3331
3332 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3335 * procfs.c (procfs_inferior_created): Remove.
3336 (_initialize_procfs): Don't register procfs_inferior_created.
3337
3338 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * async-event.c (invoke_async_signal_handlers): Add debug
3341 print.
3342 (check_async_event_handlers): Likewise.
3343 * event-top.c (show_debug_event_loop): New function.
3344 (_initialize_event_top): Register "set debug event-loop"
3345 setting.
3346
3347 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3348
3349 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3350 * debug.h: Remove.
3351 * infrun.c: Include gdbsupport/common-debug.h.
3352 * linux-nat.c: Likewise.
3353
3354 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * async-event.h (create_async_signal_handler): Add name
3357 parameter.
3358 (create_async_event_handler): Likewise.
3359 * async-event.c (struct async_signal_handler) <name>: New field.
3360 (struct async_event_handler) <name>: New field.
3361 (create_async_signal_handler): Assign name.
3362 (create_async_event_handler): Assign name.
3363 * event-top.c (async_init_signals): Pass name when creating
3364 handler.
3365 * infrun.c (_initialize_infrun): Likewise.
3366 * record-btrace.c (record_btrace_push_target): Likewise.
3367 * record-full.c (record_full_open): Likewise.
3368 * remote-notif.c (remote_notif_state_allocate): Likewise.
3369 * remote.c (remote_target::open_1): Likewise.
3370 * tui/tui-win.c (tui_initialize_win): Likewise.
3371
3372 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3373
3374 * async-event.c (initialize_async_signal_handlers): Pass name to
3375 add_file_handler
3376 * event-top.c (ui_register_input_event_handler): Likewise.
3377 * linux-nat.c (linux_nat_target::async): Likewise.
3378 * run-on-main-thread.c (_initialize_run_on_main_thread):
3379 Likewise
3380 * ser-base.c (reschedule): Likewise.
3381 (ser_base_async): Likewise.
3382 * tui/tui-io.c: Likewise.
3383 * top.h (struct ui) <num>: New field.
3384 * top.c (highest_ui_num): New variable.
3385 (ui::ui): Initialize num.
3386
3387 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * observable.h <inferior_created>: Remove parameters. Update all
3390 listeners.
3391 * inferior.h (post_create_inferior): Remove target parameter.
3392 Update all callers.
3393
3394 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3395
3396 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3397 and DW_MACRO_undef_strx.
3398 (dwarf_decode_macros): Likewise
3399 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3400 which is the value of DW_AT_str_offsets_base.
3401 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3402 str_offsets_base.
3403
3404 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3405
3406 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3407
3408 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3409
3410 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3411 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3412
3413 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3414
3415 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3416
3417 2020-09-30 Tom de Vries <tdevries@suse.de>
3418
3419 PR symtab/26683
3420 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3421
3422 2020-09-30 Tom Tromey <tromey@adacore.com>
3423
3424 * dwarf2/read.c (handle_variant): Use constant_value.
3425
3426 2020-09-29 Tom Tromey <tom@tromey.com>
3427
3428 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3429 (read_file_scope, dwarf2_get_pc_bounds)
3430 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3431 (read_structure_type, handle_struct_member_die)
3432 (read_enumeration_type, read_array_type, read_set_type)
3433 (read_tag_pointer_type, read_tag_reference_type)
3434 (read_subroutine_type, read_base_type, read_subrange_type)
3435 (read_full_die_1, partial_die_info::read)
3436 (partial_die_info::read, by, new_symbol)
3437 (dwarf2_const_value_data, dwarf2_const_value_attr)
3438 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3439 (prepare_one_comp_unit): Update.
3440 * dwarf2/attribute.h (DW_UNSND): Remove.
3441
3442 2020-09-29 Tom Tromey <tom@tromey.com>
3443
3444 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3445 (read_subroutine_type, partial_die_info::read)
3446 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3447 (dwarf2_add_member_fn): Update.
3448 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3449 * dwarf2/attribute.c (attribute::as_boolean): New method.
3450
3451 2020-09-29 Tom Tromey <tom@tromey.com>
3452
3453 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3454 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3455 method.
3456 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3457
3458 2020-09-29 Tom Tromey <tom@tromey.com>
3459
3460 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3461 the attribute's form.
3462
3463 2020-09-29 Tom Tromey <tom@tromey.com>
3464
3465 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3466 (dwarf2_add_member_fn): Update.
3467 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3468 * dwarf2/attribute.c (attribute::defaulted): New method, from
3469 is_valid_DW_AT_defaulted.
3470
3471 2020-09-29 Tom Tromey <tom@tromey.com>
3472
3473 * dwarf2/read.c (dw2_get_file_names_reader)
3474 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3475 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3476 (dwarf2_symbol_mark_computed): Use as_unsigned.
3477 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3478 method.
3479 <form_is_section_offset>: Update comment.
3480
3481 2020-09-29 Tom Tromey <tom@tromey.com>
3482
3483 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3484 dwarf2_default_access_attribute. Look up attribute.
3485 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3486 Update.
3487
3488 2020-09-29 Tom Tromey <tom@tromey.com>
3489
3490 * dwarf2/read.c (skip_one_die): Update.
3491 (read_full_die_1): Change how reprocessing is done.
3492 (partial_die_info::read): Update.
3493 (read_attribute_value): Remove need_reprocess parameter.
3494 (read_attribute): Likewise.
3495 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3496 New method.
3497
3498 2020-09-29 Tom Tromey <tom@tromey.com>
3499
3500 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3501 (dwarf2_const_value_attr, dump_die_shallow)
3502 (dwarf2_fetch_constant_bytes): Update.
3503 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3504 comment.
3505 <set_address>: New method.
3506 (DW_ADDR): Remove.
3507 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3508 (attribute::as_string, attribute::as_address): Add assert.
3509
3510 2020-09-29 Tom Tromey <tom@tromey.com>
3511
3512 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3513 (read_attribute_reprocess, read_attribute_value): Update.
3514 (read_attribute): Clear requires_reprocessing.
3515 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3516 form_requires_reprocessing>: New methods.
3517 <string_init>: Clear requires_reprocessing.
3518 <set_unsigned_reprocess>: New method.
3519 <name>: Shrink by one bit.
3520 <requires_reprocessing>: New member.
3521 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3522 method.
3523
3524 2020-09-29 Tom Tromey <tom@tromey.com>
3525
3526 * dwarf2/read.c (read_attribute_value): Update.
3527 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3528 set_unsigned>: New methods.
3529 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3530
3531 2020-09-29 Tom Tromey <tom@tromey.com>
3532
3533 * dwarf2/read.c (get_alignment, read_array_order)
3534 (read_attribute_value, dwarf2_const_value_attr)
3535 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3536 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3537 New methods.
3538 (DW_SND): Remove.
3539
3540 2020-09-29 Tom Tromey <tom@tromey.com>
3541
3542 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3543 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3544 Update.
3545 * dwarf2/attribute.h (struct attribute) <as_signature,
3546 set_signature>: New methods.
3547 (DW_SIGNATURE): Remove.
3548
3549 2020-09-29 Tom Tromey <tom@tromey.com>
3550
3551 * dwarf2/read.c (read_call_site_scope)
3552 (handle_data_member_location, dwarf2_add_member_fn)
3553 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3554 (partial_die_info::read, read_attribute_value)
3555 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3556 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3557 (dwarf2_symbol_mark_computed): Update.
3558 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3559 methods.
3560 (DW_BLOCK): Remove.
3561 * dwarf2/attribute.c (attribute::form_is_block): Add
3562 DW_FORM_data16.
3563
3564 2020-09-29 Tom Tromey <tom@tromey.com>
3565
3566 * dwarf2/read.c (read_cutu_die_from_dwo)
3567 (read_attribute_reprocess, read_attribute_value, read_attribute)
3568 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3569 (dwarf2_fetch_constant_bytes): Update.
3570 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3571 <set_string_noncanonical, set_string_canonical>: New methods.
3572 <string_is_canonical>: Update comment.
3573 <canonical_string_p>: Add assert.
3574 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3575 * dwarf2/attribute.c (attribute::form_is_string): New method.
3576 (attribute::string): Use it.
3577
3578 2020-09-29 Tom Tromey <tom@tromey.com>
3579
3580 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3581 (dump_die_shallow): Use canonical_string_p.
3582 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3583 method.
3584
3585 2020-09-29 Tom Tromey <tom@tromey.com>
3586
3587 * dwarf2/read.c (partial_die_info::read)
3588 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3589 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3590 attribute::as_string.
3591
3592 2020-09-29 Tom Tromey <tom@tromey.com>
3593
3594 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3595 DW_ADDR.
3596 (attribute::string): Don't use DW_STRING.
3597 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3598 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3599
3600 2020-09-29 Tom Tromey <tom@tromey.com>
3601
3602 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3603 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3604 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3605 * dwarf2/attribute.h (struct attribute): Rename methods.
3606 * dwarf2/attribute.c (attribute::as_address): Rename from
3607 value_as_address.
3608 (attribute::as_string): Rename from value_as_string.
3609
3610 2020-09-29 Tom Tromey <tom@tromey.com>
3611
3612 * dwarf2/read.c (partial_die_info::read) <case
3613 DW_AT_linkage_name>: Use value_as_string.
3614 (dwarf2_string_attr): Use value_as_string.
3615 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3616 method.
3617 * dwarf2/attribute.c (attribute::value_as_string): New method.
3618
3619 2020-09-29 Pedro Alves <pedro@palves.net>
3620
3621 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3622 defined before using '#pragma GCC diagnostic' instead of checking
3623 __clang__.
3624
3625 2020-09-28 Tom Tromey <tom@tromey.com>
3626
3627 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3628 (handle_signal_stop): Update.
3629 * procfs.c (procfs_target::insert_watchpoint): Update.
3630 * target.h (target_have_steppable_watchpoint): Now a function.
3631
3632 2020-09-28 Tom Tromey <tom@tromey.com>
3633
3634 * infrun.c (set_schedlock_func): Update.
3635 * target.h (target_can_lock_scheduler): Now a function.
3636
3637 2020-09-28 Tom Tromey <tom@tromey.com>
3638
3639 * inferior.h (class inferior) <has_execution>: Update.
3640 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3641 * valops.c (find_function_in_inferior)
3642 (value_allocate_space_in_inferior): Update.
3643 * top.c (kill_or_detach): Update.
3644 * target.c (target_preopen, set_target_permissions): Update.
3645 (target_has_execution_current): Remove.
3646 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3647 Update.
3648 * solib.c (update_solib_list, reload_shared_libraries): Update.
3649 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3650 * solib-dsbt.c (enable_break): Update.
3651 * score-tdep.c (score7_fetch_inst): Update.
3652 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3653 Update.
3654 * remote.c (remote_target::start_remote)
3655 (remote_target::remote_check_symbols, remote_target::open_1)
3656 (remote_target::remote_detach_1, remote_target::verify_memory)
3657 (remote_target::xfer_partial, remote_target::read_description)
3658 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3659 * record-full.c (record_full_open_1): Update.
3660 * record-btrace.c (record_btrace_target_open): Update.
3661 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3662 (value_nsstring): Update.
3663 * linux-thread-db.c (add_thread_db_info)
3664 (thread_db_find_new_threads_silently, check_thread_db_callback)
3665 (try_thread_db_load_1, record_thread): Update.
3666 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3667 Update.
3668 * linux-fork.c (checkpoint_command): Update.
3669 * infrun.c (set_non_stop, set_observer_mode)
3670 (check_multi_target_resumption, for_each_just_stopped_thread)
3671 (maybe_remove_breakpoints, normal_stop)
3672 (class infcall_suspend_state): Update.
3673 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3674 (info_program_command, attach_command): Update.
3675 * infcall.c (call_function_by_hand_dummy): Update.
3676 * inf-loop.c (inferior_event_handler): Update.
3677 * gcore.c (gcore_command, derive_heap_segment): Update.
3678 * exec.c (exec_file_command): Update.
3679 * eval.c (evaluate_subexp): Update.
3680 * compile/compile.c (compile_to_object): Update.
3681 * cli/cli-dump.c (restore_command): Update.
3682 * breakpoint.c (update_watchpoint)
3683 (update_inserted_breakpoint_locations)
3684 (insert_breakpoint_locations, get_bpstat_thread): Update.
3685 * target.h (target_has_execution): Remove macro.
3686 (target_has_execution_current): Don't declare.
3687 (target_has_execution): Rename from target_has_execution_1. Add
3688 argument default.
3689
3690 2020-09-28 Tom Tromey <tom@tromey.com>
3691
3692 * mi/mi-main.c (exec_reverse_continue)
3693 (mi_cmd_list_target_features): Update.
3694 * infrun.c (set_exec_direction_func): Update.
3695 * target.c (default_execution_direction): Update.
3696 * reverse.c (exec_reverse_once): Update.
3697 * target.h (target_can_execute_reverse): Now a function.
3698
3699 2020-09-28 Tom Tromey <tom@tromey.com>
3700
3701 * tui/tui-regs.c (tui_get_register)
3702 (tui_data_window::show_registers): Update.
3703 * thread.c (scoped_restore_current_thread::restore)
3704 (scoped_restore_current_thread::scoped_restore_current_thread):
3705 Update.
3706 * regcache-dump.c (regcache_print): Update.
3707 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3708 Update.
3709 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3710 * mep-tdep.c (current_me_module, current_options): Update.
3711 * linux-thread-db.c (thread_db_load): Update.
3712 * infcmd.c (registers_info, info_vector_command)
3713 (info_float_command): Update.
3714 * ia64-tdep.c (ia64_frame_prev_register)
3715 (ia64_sigtramp_frame_prev_register): Update.
3716 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3717 * gcore.c (derive_stack_segment): Update.
3718 * frame.c (get_current_frame, has_stack_frames): Update.
3719 * findvar.c (language_defn::read_var_value): Update.
3720 * arm-tdep.c (arm_pc_is_thumb): Update.
3721 * target.c (target_has_registers): Rename from
3722 target_has_registers_1.
3723 * target.h (target_has_registers): Remove macro.
3724 (target_has_registers): Rename from target_has_registers_1.
3725
3726 2020-09-28 Tom Tromey <tom@tromey.com>
3727
3728 * windows-tdep.c (tlb_make_value): Update.
3729 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3730 * thread.c (scoped_restore_current_thread::restore)
3731 (scoped_restore_current_thread::scoped_restore_current_thread)
3732 (thread_command): Update.
3733 * stack.c (backtrace_command_1, frame_apply_level_command)
3734 (frame_apply_all_command, frame_apply_command): Update.
3735 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3736 Update.
3737 * gcore.c (derive_stack_segment): Update.
3738 * frame.c (get_current_frame, has_stack_frames): Update.
3739 * auxv.c (info_auxv_command): Update.
3740 * ada-tasks.c (ada_build_task_list): Update.
3741 * target.c (target_has_stack): Rename from target_has_stack_1.
3742 * target.h (target_has_stack): Remove macro.
3743 (target_has_stack): Rename from target_has_stack_1.
3744
3745 2020-09-28 Tom Tromey <tom@tromey.com>
3746
3747 * target.c (target_has_memory): Rename from target_has_memory_1.
3748 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3749 * thread.c (scoped_restore_current_thread::restore)
3750 (scoped_restore_current_thread::scoped_restore_current_thread):
3751 Update.
3752 * frame.c (get_current_frame, has_stack_frames): Update.
3753 * target.h (target_has_memory): Remove macro.
3754 (target_has_memory): Rename from target_has_memory_1.
3755
3756 2020-09-28 Tom Tromey <tom@tromey.com>
3757
3758 * target.c (target_has_all_memory_1): Remove.
3759 * target.h (target_has_all_memory): Remove define.
3760 (target_has_all_memory_1): Don't declare.
3761
3762 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3763
3764 * ser-base.c: Adjust comments formatting.
3765
3766 2020-09-27 Tom Tromey <tom@tromey.com>
3767
3768 PR tui/25342:
3769 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3770
3771 2020-09-27 Tom Tromey <tom@tromey.com>
3772
3773 PR tui/25342:
3774 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3775
3776 2020-09-27 Tom Tromey <tom@tromey.com>
3777
3778 * unittests/tui-selftests.c: Update.
3779 * tui/tui-winsource.h (struct tui_source_window_base)
3780 <extra_margin, show_line_number, refresh_pad>: New methods.
3781 <m_max_length, m_pad>: New members.
3782 (tui_copy_source_line): Update.
3783 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3784 first_col, line_width, ndigits parameters. Add length.
3785 (tui_source_window_base::show_source_line): Write to pad. Line
3786 number now 0-based.
3787 (tui_source_window_base::refresh_pad): New method.
3788 (tui_source_window_base::show_source_content): Write to pad. Call
3789 refresh_pad.
3790 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3791 not refill.
3792 (tui_source_window_base::update_exec_info): Call
3793 show_line_number.
3794 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3795 method.
3796 <m_digits>: New member.
3797 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3798 and m_max_length.
3799 (tui_source_window::show_line_number): New method.
3800 * tui/tui-io.h (tui_puts): Fix comment.
3801 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3802 m_max_length.
3803
3804 2020-09-27 Tom Tromey <tom@tromey.com>
3805
3806 * tui/tui-winsource.c
3807 (tui_source_window_base::set_is_exec_point_at): Don't call
3808 show_source_line.
3809
3810 2020-09-27 Tom Tromey <tom@tromey.com>
3811
3812 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3813 method.
3814 <erase>: Update.
3815 <cursor_x, cursor_y>: Remove.
3816 <m_inner_window>: New member.
3817 (tui_py_window::rerender): Create inner window.
3818 (tui_py_window::output): Write to inner window.
3819
3820 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3821
3822 PR python/26586
3823 * cli/cli-script.c (execute_control_commands): don't set
3824 instream to nullptr here as this breaks the from_tty argument
3825 to gdb.execute in Python.
3826 (execute_user_command): set instream to nullptr here instead.
3827
3828 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * infrun.h (infrun_debug_printf): Fix formatting.
3831 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3832
3833 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3834
3835 * compile/compile-object-load.h (struct munmap_list): Add
3836 explicitly-defined move constructor.
3837
3838 2020-09-24 Tom Tromey <tromey@adacore.com>
3839
3840 PR tui/26638:
3841 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3842 method.
3843 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3844 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3845 (tui_prev_win): Rewrite.
3846
3847 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3848
3849 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3850 in WOW64 processes as SIGINT.
3851 * nat/windows-nat.h: Make wow64_process a shared variable.
3852 * windows-nat.c: Remove static wow64_process variable.
3853
3854 2020-09-23 Tom Tromey <tom@tromey.com>
3855
3856 PR symtab/25470:
3857 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3858 offset and bit size.
3859 * printcmd.c (print_scalar_formatted): Handle zero-length
3860 integer.
3861 (print_scalar_formatted): Use bit_size_differs_p.
3862 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3863 constant.
3864 (union type_specific): <int_stuff>: New member.
3865 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3866 methods.
3867 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3868 TYPE_SPECIFIC_FIELD.
3869 (recursive_dump_type, copy_type_recursive): Update.
3870 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3871 DW_AT_data_bit_offset.
3872
3873 2020-09-23 Tom Tromey <tom@tromey.com>
3874
3875 * utils.h (class gdb_argv): Add move operators.
3876 <append>: New methods.
3877 * compile/compile.c (build_argc_argv): Remove.
3878 (compile_args_argc): Remove.
3879 (compile_args_argv): Change type.
3880 (set_compile_args): Simplify.
3881 (append_args): Remove.
3882 (filter_args): Remove argcp parameter.
3883 (get_args): Return gdb_argv. Simplify.
3884 (compile_to_object): Update.
3885
3886 2020-09-23 Tom Tromey <tom@tromey.com>
3887
3888 * compile/compile-object-run.c (do_module_cleanup)
3889 <~do_module_cleanup> :Remove.
3890 (do_module_cleanup): Update.
3891 * compile/compile-object-load.h (struct munmap_list): Add move
3892 assignment operator.
3893 <source_file>: Now a std::string.
3894 <munmap_list>: Rename. No longer a pointer.
3895 * compile/compile-object-load.c (struct setup_sections_data): Add
3896 constructor.
3897 <setup_one_section>: Declare.
3898 <munmap_list>: Move earlier.
3899 <m_bfd>: New member.
3900 <m_last_size, m_last_section_first, m_last_prot,
3901 m_last_max_alignment>: Rename, add initializers where needed.
3902 (setup_sections_data::setup_one_section): Rename from
3903 setup_sections. Update.
3904 (compile_object_load): Update. Don't use bfd_map_over_sections.
3905
3906 2020-09-23 Tom Tromey <tom@tromey.com>
3907
3908 * compile/compile-object-run.c (struct do_module_cleanup): Add
3909 parameters to constructor. Update destructor.
3910 <source_file, scope, scope_data, out_value_type, out_value_addr,
3911 munmap_list_head, objfile_name_string>: Remove.
3912 <module>: New member.
3913 (do_module_cleanup): Update.
3914 (compile_object_run): Update.
3915
3916 2020-09-23 Tom Tromey <tom@tromey.com>
3917
3918 * compile/compile.c (eval_compile_command): Update.
3919 * compile/compile-object-run.h (compile_object_run): Take a
3920 compile_module_up.
3921 * compile/compile-object-run.c (compile_object_run): Take a
3922 compile_module_up.
3923 * compile/compile-object-load.h (struct compile_module): Add
3924 constructor, destructor.
3925 (compile_module_up): New typedef.
3926 (compile_object_load): Return compile_object_up.
3927 * compile/compile-object-load.c (compile_object_load): Return
3928 compile_module_up.
3929
3930 2020-09-23 Tom Tromey <tom@tromey.com>
3931
3932 * compile/compile-object-run.c (struct do_module_cleanup): Add
3933 constructor, destructor.
3934 <objfile_name_string>: Don't use struct hack.
3935 (do_module_cleanup): Use delete.
3936 (compile_object_run): Use new.
3937
3938 2020-09-23 Tom Tromey <tom@tromey.com>
3939
3940 * compile/compile-cplus-types.c
3941 (compile_cplus_convert_struct_or_union): Use std::vector.
3942 (compile_cplus_convert_func): Likewise.
3943 * compile/compile-c-types.c (convert_func): Use std::vector.
3944
3945 2020-09-21 Tom Tromey <tromey@adacore.com>
3946
3947 * sparc-tdep.c (sparc32_skip_prologue): Use
3948 skip_prologue_using_sal.
3949
3950 2020-09-19 Tom Tromey <tom@tromey.com>
3951
3952 * symfile.c (add_section_size_callback): Remove.
3953 (load_one_section): Rename from load_section_callback. Change
3954 parameters.
3955 (generic_load): Use foreach.
3956
3957 2020-09-19 Tom Tromey <tom@tromey.com>
3958
3959 * exec.c (add_to_section_table): Remove.
3960 (build_section_table): Use foreach.
3961
3962 2020-09-19 Tom Tromey <tom@tromey.com>
3963
3964 * elfread.c (elf_locate_sections): Change parameters.
3965 (elf_symfile_read): Use foreach.
3966
3967 2020-09-19 Tom Tromey <tom@tromey.com>
3968
3969 * cli/cli-dump.c (struct callback_data): Remove.
3970 (restore_one_section): Rename from restore_section_callback.
3971 Change parameters.
3972 (restore_binary_file): Change parameters.
3973 (restore_command): Use foreach.
3974
3975 2020-09-19 Tom Tromey <tom@tromey.com>
3976
3977 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3978 (gcore_copy_callback): Likewise.
3979 (gcore_memory_sections): Use foreach.
3980
3981 2020-09-19 Tom Tromey <tom@tromey.com>
3982
3983 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3984 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3985 parameters.
3986 (generic_elf_osabi_sniffer): Use foreach.
3987 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3988 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3989
3990 2020-09-19 Tom Tromey <tom@tromey.com>
3991
3992 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3993 (dwarf2_get_dwz_file): Use foreach.
3994 (dwarf2_locate_dwo_sections): Change parameters.
3995 (open_and_init_dwo_file): Use foreach.
3996 (dwarf2_locate_common_dwp_sections): Change parameters.
3997 (open_and_init_dwp_file): Use foreach.
3998
3999 2020-09-19 Tom Tromey <tom@tromey.com>
4000
4001 * symfile.h: (find_lowest_section): Don't declare.
4002 * symfile.c (find_lowest_section): Now static. Change
4003 parameters.
4004 (struct place_section_arg): Remove.
4005 (place_section): Change parameters.
4006 (addr_info_make_relative): Use foreach.
4007 (symfile_dummy_outputs): Remove.
4008 (default_symfile_relocate): Use foreach.
4009
4010 2020-09-19 Tom Tromey <tom@tromey.com>
4011
4012 * objfiles.c (add_to_objfile_sections): Rename from
4013 add_to_objfile_sections_full.
4014 (add_to_objfile_sections): Remove.
4015 (build_objfile_section_table): Use foreach.
4016
4017 2020-09-19 Tom Tromey <tom@tromey.com>
4018
4019 * stap-probe.c (get_stap_base_address_1): Remove.
4020 (get_stap_base_address): Use foreach.
4021
4022 2020-09-19 Tom Tromey <tom@tromey.com>
4023
4024 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4025 parameters.
4026 (gdb_bfd_close_or_warn): Use foreach.
4027
4028 2020-09-19 Tom Tromey <tom@tromey.com>
4029
4030 * corelow.c (add_to_thread_list): Change parameters.
4031 (core_target_open): Use foreach.
4032
4033 2020-09-19 Tom Tromey <tom@tromey.com>
4034
4035 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4036 existing function.
4037
4038 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4039
4040 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4041 for arrays.
4042
4043 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4044
4045 * eval.c: Remove 'f-lang.h' include.
4046 (value_f90_subarray): Moved to f-lang.c.
4047 (eval_call): Renamed to...
4048 (evaluate_subexp_do_call): ...this, is no longer static, header
4049 comment moved into header file.
4050 (evaluate_funcall): Update call to eval_call.
4051 (skip_undetermined_arglist): Moved to f-lang.c.
4052 (fortran_value_subarray): Likewise.
4053 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4054 moved to evaluate_subexp_f.
4055 (calc_f77_array_dims): Moved to f-lang.c
4056 * expprint.c (print_subexp_funcall): New function.
4057 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4058 moved to print_subexp_f, OP_FUNCALL uses new function.
4059 (dump_subexp_body_funcall): New function.
4060 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4061 moved to dump_subexp_f, OP_FUNCALL uses new function.
4062 * expression.h (evaluate_subexp_do_call): Declare.
4063 * f-lang.c (value_f90_subarray): Moved from eval.c.
4064 (skip_undetermined_arglist): Likewise.
4065 (calc_f77_array_dims): Likewise.
4066 (fortran_value_subarray): Likewise.
4067 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4068 (operator_length_f): Likewise.
4069 (print_subexp_f): Likewise.
4070 (dump_subexp_body_f): Likewise.
4071 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4072 declaration of this operation to here.
4073 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4074 support moved to operator_length_f.
4075 * parser-defs.h (dump_subexp_body_funcall): Declare.
4076 (print_subexp_funcall): Declare.
4077 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4078 fortran-operator.def.
4079
4080 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * eval.c (fortran_value_subarray): New function, content is taken
4083 from...
4084 (evaluate_subexp_standard): ...here, in two places. Now arrays
4085 and strings both call the new function.
4086 (calc_f77_array_dims): Add header comment, handle strings.
4087
4088 2020-09-18 Victor Collod <vcollod@nvidia.com>
4089
4090 PR gdb/26635
4091 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4092 (i386_analyze_prologue): Call i386_skip_endbr.
4093
4094 2020-09-18 Tom Tromey <tromey@adacore.com>
4095
4096 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4097 (windows_nat_target::wait): Update.
4098 * target/wait.h (enum target_wait_flag): New. Use
4099 DEF_ENUM_FLAGS_TYPE.
4100 * target/target.h (target_wait): Change type of options.
4101 * target.h (target_options_to_string, default_target_wait):
4102 Update.
4103 (struct target_ops) <wait>: Change type of options.
4104 * target.c (target_wait, default_target_wait, do_option): Change
4105 type of "options".
4106 (target_options_to_string): Likewise.
4107 * target-delegates.c: Rebuild.
4108 * target-debug.h (target_debug_print_target_wait_flags): Rename
4109 from target_debug_print_options.
4110 * sol-thread.c (class sol_thread_target) <wait>: Update.
4111 (sol_thread_target::wait): Update.
4112 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4113 (rs6000_nat_target::wait): Update.
4114 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4115 Update.
4116 (remote_target::wait_ns, remote_target::wait_as): Change type of
4117 "options".
4118 (remote_target::wait): Update.
4119 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4120 (gdbsim_target::wait): Update.
4121 * record-full.c (class record_full_base_target) <wait>: Update.
4122 (record_full_wait_1): Change type of "options".
4123 (record_full_base_target::wait): Update.
4124 * record-btrace.c (class record_btrace_target) <wait>: Update.
4125 (record_btrace_target::wait): Update.
4126 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4127 Update.
4128 (ravenscar_thread_target::wait): Update.
4129 * procfs.c (class procfs_target) <wait>: Update.
4130 (procfs_target::wait): Update.
4131 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4132 * obsd-nat.c (obsd_nat_target::wait): Update.
4133 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4134 (nto_procfs_target::wait): Update.
4135 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4136 * nbsd-nat.c (nbsd_wait): Change type of "options".
4137 (nbsd_nat_target::wait): Update.
4138 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4139 (thread_db_target::wait): Update.
4140 * linux-nat.h (class linux_nat_target) <wait>: Update.
4141 * linux-nat.c (linux_nat_target::wait): Update.
4142 (linux_nat_wait_1): Update.
4143 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4144 "options".
4145 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4146 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4147 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4148 (go32_nat_target::wait): Update.
4149 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4150 * gnu-nat.c (gnu_nat_target::wait): Update.
4151 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4152 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4153 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4154 * darwin-nat.c (darwin_nat_target::wait): Update.
4155 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4156 (bsd_uthread_target::wait): Update.
4157 * aix-thread.c (class aix_thread_target) <wait>: Update.
4158 (aix_thread_target::wait): Update.
4159
4160 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * compile/compile-object-run.c (create_copied_type_recursive): New
4163 function.
4164 (compile_object_run): Use new function.
4165
4166 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4167
4168 * NEWS: Mention x86_64 Cygwin core file support.
4169
4170 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4171
4172 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4173 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4174
4175 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4176
4177 * windows-tdep.h: Add prototypes.
4178 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4179 (i386_windows_core_pid_to_str): Move and rename ...
4180 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4181 (windows_core_pid_to_str): ... and here.
4182 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4183
4184 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4185 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4186 (amd64_windows_init_abi_common): ... and register.
4187
4188 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4189
4190 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4191 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4192
4193 2020-09-18 Pedro Alves <pedro@palves.net>
4194
4195 PR gdb/26631
4196 * thread.c (thread_find_command): Switch inferior before calling
4197 target methods.
4198
4199 2020-09-17 Tom Tromey <tromey@adacore.com>
4200
4201 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4202 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4203 (tdesc_arch_data_up): New typedef.
4204 (tdesc_use_registers, tdesc_data_alloc): Update.
4205 (tdesc_data_cleanup): Don't declare.
4206 * target-descriptions.c (tdesc_data_alloc): Return a
4207 tdesc_arch_data_up.
4208 (tdesc_arch_data_deleter::operator()): Rename from
4209 tdesc_data_cleanup. Change argument type.
4210 (tdesc_use_registers): Change early_data to an rvalue reference.
4211 (tdesc_use_registers): Don't use delete.
4212 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4213 * s390-tdep.c (s390_gdbarch_init): Update.
4214 * rx-tdep.c (rx_gdbarch_init): Update.
4215 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4216 * riscv-tdep.c (riscv_gdbarch_init): Update.
4217 * or1k-tdep.c (or1k_gdbarch_init): Update.
4218 * nios2-tdep.c (nios2_gdbarch_init): Update.
4219 * nds32-tdep.c (nds32_gdbarch_init): Update.
4220 * mips-tdep.c (mips_gdbarch_init): Update.
4221 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4222 * m68k-tdep.c (m68k_gdbarch_init): Update.
4223 * i386-tdep.c (i386_gdbarch_init): Update.
4224 * arm-tdep.c (arm_gdbarch_init): Update.
4225 * arc-tdep.c (arc_tdesc_init): Update.
4226 (arc_gdbarch_init): Update.
4227 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4228
4229 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4230
4231 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4232 for WOW64 processes.
4233
4234 2020-09-17 Tom Tromey <tom@tromey.com>
4235
4236 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4237
4238 2020-09-17 Tom Tromey <tom@tromey.com>
4239
4240 * value.c (preserve_values): Update.
4241 * python/py-type.c (save_objfile_types): Update.
4242 * guile/scm-type.c (save_objfile_types): Update.
4243 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4244 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4245 * compile/compile-object-run.c (compile_object_run): Update.
4246
4247 2020-09-17 Tom Tromey <tom@tromey.com>
4248
4249 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4250 Remove.
4251 <m_table>: Now htab_up.
4252 * typeprint.c (typedef_hash_table::recursively_update)
4253 (typedef_hash_table::add_template_parameters)
4254 (typedef_hash_table::typedef_hash_table): Update.
4255 (typedef_hash_table::~typedef_hash_table): Remove.
4256 (typedef_hash_table::typedef_hash_table)
4257 (typedef_hash_table::find_global_typedef)
4258 (typedef_hash_table::find_typedef): Update.
4259
4260 2020-09-17 Tom Tromey <tom@tromey.com>
4261
4262 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4263
4264 2020-09-17 Tom Tromey <tom@tromey.com>
4265
4266 * linespec.c (class decode_compound_collector)
4267 <~decode_compound_collector>: Remove.
4268 <m_unique_syms>: Now htab_up.
4269 (decode_compound_collector::operator ()): Update.
4270 (class symtab_collector) <~symtab_collector>: Remove.
4271 <m_symtab_table>: Now htab_up.
4272 (symtab_collector::operator ()): Update.
4273
4274 2020-09-17 Tom Tromey <tom@tromey.com>
4275
4276 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4277 (filename_seen_cache::clear): Update.
4278 (~filename_seen_cache): Remove.
4279 (filename_seen_cache::seen): Update.
4280 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4281 htab_up.
4282 <~filename_seen_cache>: Remove.
4283 <traverse>: Update.
4284
4285 2020-09-17 Tom Tromey <tom@tromey.com>
4286
4287 * completer.c (completion_tracker::discard_completions)
4288 (completion_tracker::~completion_tracker)
4289 (completion_tracker::maybe_add_completion)
4290 (completion_tracker::remove_completion)
4291 (completion_tracker::recompute_lowest_common_denominator)
4292 (completion_tracker::build_completion_result): Update.
4293 * completer.h (class completion_tracker) <have_completions>:
4294 Update.
4295 <m_entries_hash>: Now htab_up.
4296
4297 2020-09-17 Tom Tromey <tom@tromey.com>
4298
4299 * breakpoint.c (ambiguous_names_p): Use htab_up.
4300
4301 2020-09-17 Tom Tromey <tom@tromey.com>
4302
4303 * auto-load.c (struct auto_load_pspace_info)
4304 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4305 <loaded_script_files, loaded_script_texts>: Change type to
4306 htab_up.
4307 (~auto_load_pspace_info) Remove.
4308 (init_loaded_scripts_info, maybe_add_script_file)
4309 (maybe_add_script_text, auto_load_info_scripts): Update.
4310
4311 2020-09-17 Tom Tromey <tromey@adacore.com>
4312
4313 * c-exp.y (name_obstack): Now static.
4314
4315 2020-09-17 Chungyi Chi <demonic@csie.io>
4316
4317 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4318
4319 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4322 (add_solib_catchpoint): Likewise.
4323 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4324 to bool.
4325 (add_solib_catchpoint): Change int parameter/variable to bool.
4326 (catch_load_or_unload): Likewise.
4327 (init_catchpoint): Likewise.
4328 (create_fork_vfork_event_catchpoint): Likewise.
4329 (catch_fork_command_1): Likewise.
4330 (catch_exec_command_1): Likewise.
4331
4332 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4335 Change instance_flags to m_instance_flags.
4336
4337 2020-09-16 Tom Tromey <tromey@adacore.com>
4338
4339 PR gdb/26598:
4340 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4341
4342 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4343
4344 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4345 PL_FLAG_EXEC.
4346 (fbsd_nat_target::insert_exec_catchpoint)
4347 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4348 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4349 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4350
4351 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4352
4353 * configure.ac: Remove check for kinfo_getvmmap().
4354 * configure, config.in: Regenerate.
4355 * fbsd-nat.c (fbsd_read_mapping): Remove
4356 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4357 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4358 kinfo_get_vmmap() are always present.
4359
4360 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4361
4362 * fbsd-nat.c: Always include support for
4363 TARGET_OBJECT_SIGNAL_INFO.
4364
4365 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4366
4367 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4368 sysctl and remove procfs fallback.
4369
4370 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4371
4372 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4373 * fbsd-nat.h: Likewise.
4374
4375 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4376
4377 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4378 argument.
4379
4380 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * ada-lang.c (ada_language_data): Delete.
4383 (ada_language): Remove references to ada_language_data.
4384 * c-lang.c (c_language_data): Delete.
4385 (c_language): Remove references to c_language_data.
4386 (cplus_language_data): Delete.
4387 (cplus_language): Remove references to cplus_language_data.
4388 (asm_language_data): Delete.
4389 (asm_language): Remove references to asm_language_data.
4390 (minimal_language_data): Delete.
4391 (minimal_language): Remove references to minimal_language_data.
4392 * d-lang.c (d_language_data): Delete.
4393 (d_language): Remove references to d_language_data.
4394 * f-lang.c (f_language_data): Delete.
4395 (f_language): Remove references to f_language_data.
4396 * go-lang.c (go_language_data): Delete.
4397 (go_language): Remove references to go_language_data.
4398 * language.c (unknown_language_data): Delete.
4399 (unknown_language): Remove references to unknown_language_data.
4400 (auto_language_data): Delete.
4401 (auto_language): Remove references to auto_language_data.
4402 * language.h (language_data): Delete struct.
4403 (language_defn): No longer inherit from language_data.
4404 * m2-lang.c (m2_language_data): Delete.
4405 (m2_language): Remove references to m2_language_data.
4406 * objc-lang.c (objc_language_data): Delete.
4407 (objc_language): Remove references to objc_language_data.
4408 * opencl-lang.c (opencl_language_data): Delete.
4409 (opencl_language): Remove references to opencl_language_data.
4410 * p-lang.c (pascal_language_data): Delete.
4411 (pascal_language): Remove references to pascal_language_data.
4412 * rust-lang.c (rust_language_data): Delete.
4413 (rust_language): Remove references to rust_language_data.
4414
4415 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4418 initializer.
4419 (ada_language::opcode_print_table): New member function.
4420 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4421 (c_language::opcode_print_table): New member function.
4422 (cplus_language_data): Remove la_op_print_tab initializer.
4423 (cplus_language::opcode_print_table): New member function.
4424 (asm_language_data): Remove la_op_print_tab initializer.
4425 (asm_language::opcode_print_table): New member function.
4426 (minimal_language_data): Remove la_op_print_tab initializer.
4427 (minimal_language::opcode_print_table): New member function.
4428 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4429 (d_language::opcode_print_table): New member function.
4430 * expprint.c (print_subexp_standard): Update call to
4431 opcode_print_table.
4432 (op_string): Likewise.
4433 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4434 (f_language::opcode_print_table): New member function.
4435 * go-lang.c (go_language_data): Remove la_op_print_tab
4436 initializer.
4437 (go_language::opcode_print_table): New member function.
4438 * language.c (unknown_language_data): Remove la_op_print_tab
4439 initializer.
4440 (unknown_language::opcode_print_table): New member function.
4441 (auto_language_data): Remove la_op_print_tab initializer.
4442 (auto_language::opcode_print_table): New member function.
4443 * language.h (language_data): Remove la_op_print_tab field.
4444 (language_defn::opcode_print_table): Declare new member function.
4445 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4446 initializer.
4447 (m2_language::opcode_print_table): New member function.
4448 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4449 initializer.
4450 (objc_language::opcode_print_table): New member function.
4451 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4452 initializer.
4453 (opencl_language::opcode_print_table): New member function.
4454 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4455 initializer.
4456 (pascal_language::opcode_print_table): New member function.
4457 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4458 initializer.
4459 (rust_language::opcode_print_table): New member function.
4460
4461 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4464 (ada_language::expression_ops): New member function.
4465 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4466 (c_language::expression_ops): New member function.
4467 (cplus_language_data): Remove la_exp_desc initializer.
4468 (cplus_language::expression_ops): New member function.
4469 (asm_language_data): Remove la_exp_desc initializer.
4470 (asm_language::expression_ops): New member function.
4471 (minimal_language_data): Remove la_exp_desc initializer.
4472 (minimal_language::expression_ops): New member function.
4473 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4474 (d_language::expression_ops): New member function.
4475 * eval.c (evaluate_subexp): Update call to expression_ops.
4476 * expprint.c (print_subexp): Likewise.
4477 (op_name): Likewise.
4478 (dump_subexp_body): Likewise.
4479 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4480 (f_language::expression_ops): New member function.
4481 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4482 (go_language::expression_ops): New member function.
4483 * language.c (language_defn::expression_ops): New function.
4484 (unknown_language_data): Remove la_exp_desc initializer.
4485 (auto_language_data): Likewise.
4486 * language.h (language_data): Remove la_exp_desc field.
4487 (language_defn::expression_ops): Declare new member function.
4488 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4489 (m2_language::expression_ops): New member function.
4490 * objc-lang.c (objc_language_data): Remove la_exp_desc
4491 initializer.
4492 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4493 initializer.
4494 (opencl_language::expression_ops): New member function.
4495 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4496 * parse.c (operator_length): Update call to expression_ops.
4497 (exp_iterate): Likewise.
4498 * rust-lang.c (rust_language_data): Remove la_exp_desc
4499 initializer.
4500 (ruse_language::expression_ops): New member function.
4501
4502 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4505 initializer.
4506 (ada_language::varobj_ops): New member function.
4507 * c-lang.c (c_language_data): Remove la_varobj_ops
4508 initializer.
4509 (cplus_language_data): Likewise.
4510 (cplus_language::varobj_ops): New member function.
4511 (asm_language_data): Remove la_varobj_ops initializer.
4512 (minimal_language_data): Likewise.
4513 * d-lang.c (d_language_data): Likewise.
4514 * f-lang.c (f_language_data): Likewise.
4515 * go-lang.c (go_language_data): Likewise.
4516 * language.c (language_defn::varobj_ops): New function.
4517 (unknown_language_data): Remove la_varobj_ops
4518 initializer.
4519 (auto_language_data): Likewise.
4520 * language.h (language_data): Remove la_varobj_ops field.
4521 (language_defn::varobj_ops): Declare new member function.
4522 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4523 * objc-lang.c (objc_language_data): Likewise.
4524 * opencl-lang.c (opencl_language_data): Likewise.
4525 * p-lang.c (pascal_language_data): Likewise.
4526 * rust-lang.c (rust_language_data): Likewise.
4527 * varobj.c (varobj_create): Update call to varobj_ops.
4528 * varobj.h (default_varobj_ops): Delete define.
4529
4530 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4531
4532 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4533 initializer.
4534 * c-lang.c (c_language_data): Likewise.
4535 (c_language::macro_expansion): New member function.
4536 (cplus_language_data): Likewise.
4537 (cplus_language::macro_expansion): New member function.
4538 (asm_language_data): Likewise.
4539 (asm_language::macro_expansion): New member function.
4540 (minimal_language_data): Likewise.
4541 (minimal_language::macro_expansion): New member function.
4542 * d-lang.c (d_language_data): Remove la_macro_expansion
4543 initializer.
4544 * f-lang.c (f_language_data): Likewise.
4545 * go-lang.c (go_language_data): Likewise.
4546 * language.c (unknown_language_data): Likewise.
4547 (auto_language_data): Likewise.
4548 * language.h (language_data): Remove la_macro_expansion field.
4549 (language_defn::macro_expansion): New member function.
4550 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4551 initializer.
4552 * objc-lang.c (objc_language_data): Likewise.
4553 (objc_language::macro_expansion): New member function.
4554 * opencl-lang.c (opencl_language_data): Likewise.
4555 (opencl_language::macro_expansion): New member function.
4556 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4557 initializer.
4558 * rust-lang.c (rust_language_data): Likewise.
4559 * symtab.c (default_collect_symbol_completion_matches_break_on):
4560 Update call to macro_expansion.
4561
4562 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4563
4564 * ada-lang.c (ada_language_data): Remove la_array_ordering
4565 initializer.
4566 * c-lang.c (c_language_data): Likewise.
4567 (cplus_language_data): Likewise.
4568 (asm_language_data): Likewise.
4569 (minimal_language_data): Likewise.
4570 * d-lang.c (d_language_data): Likewise.
4571 * dwarf2/read.c (read_array_order): Update for call to
4572 array_ordering.
4573 * f-lang.c (f_language_data): Remove la_array_ordering
4574 initializer.
4575 (f_language::array_ordering): New member function.
4576 * go-lang.c (go_language_data): Remove la_array_ordering
4577 initializer.
4578 * language.c (unknown_language_data): Likewise.
4579 (auto_language_data): Likewise.
4580 * language.h (language_data): Delete la_array_ordering field.
4581 (language_defn::array_ordering): New member function.
4582 * m2-lang.c (m2_language_data): Remove la_array_ordering
4583 initializer.
4584 * objc-lang.c (objc_language_data): Likewise.
4585 * opencl-lang.c (opencl_language_data): Likewise.
4586 * p-lang.c (pascal_language_data): Likewise.
4587 * rust-lang.c (rust_language_data): Likewise.
4588
4589 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4592 initializer.
4593 * c-lang.c (c_language_data): Likewise.
4594 (cplus_language_data): Likewise.
4595 (asm_language_data): Likewise.
4596 (minimal_language_data): Likewise.
4597 * d-lang.c (d_language_data): Likewise.
4598 * f-lang.c (f_language_data): Likewise.
4599 (f_language::case_sensitivity): New member function.
4600 * go-lang.c (go_language_data): Remove la_case_sensitivity
4601 initializer.
4602 * language.c (enum case_mode): Moved here from language.h.
4603 (case_mode): Make static.
4604 (show_case_command): Update for case_sensitivity being a method.
4605 (set_case_command): Likewise.
4606 (set_range_case): Likewise.
4607 (unknown_language_data): Remove la_case_sensitivity initializer.
4608 (auto_language_data): Likewise.
4609 * language.h (case_mode): Delete, move enum declaration to
4610 language.c.
4611 (language_data): Delete la_case_sensitivity field.
4612 (language_defn::case_sensitivity): New member function.
4613 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4614 initializer.
4615 * objc-lang.c (objc_language_data): Likewise.
4616 * opencl-lang.c (opencl_language_data): Likewise.
4617 * p-lang.c (pascal_language_data): Likewise.
4618 * rust-lang.c (rust_language_data): Likewise.
4619
4620 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4621
4622 * ada-lang.c (ada_language_data): Remove la_range_check
4623 initializer.
4624 * c-lang.c (c_language_data): Likewise.
4625 (cplus_language_data): Likewise.
4626 (asm_language_data): Likewise.
4627 (minimal_language_data): Likewise.
4628 * d-lang.c (d_language_data): Likewise.
4629 * f-lang.c (f_language_data): Likewise.
4630 (f_language::range_checking_on_by_default): New member function.
4631 * go-lang.c (go_language_data): Remove la_range_check initializer.
4632 * language.c (enum range_mode): Moved here from language.h.
4633 (range_mode): Made static.
4634 (show_range_command): Update to use
4635 range_checking_on_by_default.
4636 (set_range_command): Likewise.
4637 (set_range_case): Likewise.
4638 (unknown_language_data): Remove la_range_check initializer.
4639 (auto_language_data): Likewise.
4640 * language.h (range_mode): Delete. Enum definition moved to
4641 language.c.
4642 (language_data): Remove la_range_check field.
4643 (language_defn::range_checking_on_by_default): New member
4644 function.
4645 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4646 (m2_language::range_checking_on_by_default): New member function.
4647 * objc-lang.c (objc_language_data): Remove la_range_check
4648 initializer.
4649 * opencl-lang.c (opencl_language_data): Likewise.
4650 * p-lang.c (pascal_language_data): Likewise.
4651 (pascal_language::range_checking_on_by_default): New member
4652 function.
4653 * rust-lang.c (rust_language_data): Remove la_range_check
4654 initializer.
4655 (rust_language::range_checking_on_by_default): New member
4656 function.
4657
4658 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * dwarf2/read.c (dwarf2_physname): Remove special case for
4661 language_go.
4662 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4663 member function.
4664
4665 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_language_data): Remove
4668 la_store_sym_names_in_linkage_form_p initializer.
4669 (ada_language::store_sym_names_in_linkage_form_p): New member
4670 function.
4671 * c-lang.c (c_language_data): Remove
4672 la_store_sym_names_in_linkage_form_p initializer.
4673 (c_language::store_sym_names_in_linkage_form_p): New member
4674 function.
4675 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4676 initializer.
4677 (asm_language_data): Likewise.
4678 (asm_language::store_sym_names_in_linkage_form_p): New member
4679 function.
4680 (minimal_language_data): Remove
4681 la_store_sym_names_in_linkage_form_p initializer.
4682 (minimal_language::store_sym_names_in_linkage_form_p): New member
4683 function.
4684 * d-lang.c (d_language_data): Remove
4685 la_store_sym_names_in_linkage_form_p initializer.
4686 * dwarf2/read.c (dwarf2_physname): Update call to
4687 store_sym_names_in_linkage_form_p.
4688 * f-lang.c (f_language_data): Remove
4689 la_store_sym_names_in_linkage_form_p initializer.
4690 * go-lang.c (go_language_data): Remove
4691 la_store_sym_names_in_linkage_form_p initializer.
4692 * language.c (unknown_language_data): Remove
4693 la_store_sym_names_in_linkage_form_p initializer.
4694 (unknown_language::store_sym_names_in_linkage_form_p): New member
4695 function.
4696 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4697 initializer.
4698 (auto_language::store_sym_names_in_linkage_form_p): New member
4699 function.
4700 * language.h (language_data): Remove
4701 la_store_sym_names_in_linkage_form_p member variable.
4702 (language_defn::store_sym_names_in_linkage_form_p): New member
4703 function.
4704 * m2-lang.c (m2_language_data): Remove
4705 la_store_sym_names_in_linkage_form_p initializer.
4706 * objc-lang.c (objc_language_data): Likewise.
4707 * opencl-lang.c (opencl_language_data): Likewise.
4708 * p-lang.c (pascal_language_data): Likewise.
4709 * rust-lang.c (rust_language_data): Likewise.
4710
4711 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4712
4713 * ada-lang.c (ada_language_data): Remove string_lower_bound
4714 initializer.
4715 * c-lang.c (c_language_data): Likewise.
4716 (cplus_language_data): Likewise.
4717 (asm_language_data): Likewise.
4718 (minimal_language_data): Likewise.
4719 * d-lang.c (d_language_data): Likewise.
4720 * f-lang.c (f_language_data): Likewise.
4721 * go-lang.c (go_language_data): Likewise.
4722 * language.c (unknown_language_data): Likewise.
4723 (auto_language_data): Likewise.
4724 * language.h (language_data): Remove string_lower_bound field.
4725 (language_defn::string_lower_bound): New member function.
4726 * m2-lang.c (m2_language_data): Remove string_lower_bound
4727 initializer.
4728 (m2_language::string_lower_bound): New member function.
4729 * objc-lang.c (objc_language_data): Remove string_lower_bound
4730 initializer.
4731 * opencl-lang.c (opencl_language_data): Likewise.
4732 * p-lang.c (pascal_language_data): Likewise.
4733 * rust-lang.c (rust_language_data): Likewise.
4734 * valops.c (value_cstring): Update call to string_lower_bound.
4735 (value_string): Likewise.
4736 * value.c (allocate_repeated_value): Likewise.
4737
4738 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4739
4740 * valops.c (value_repeat): Fix incorrect argument name in comment.
4741
4742 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4743
4744 * ada-lang.c (ada_language_data): Remove c_style_arrays
4745 initializer.
4746 (ada_language::c_style_arrays_p): New member fuction.
4747 * c-lang.c (c_language_data): Remove c_style_arrays
4748 initializer.
4749 (cplus_language_data): Likewise.
4750 (asm_language_data): Likewise.
4751 (minimal_language_data): Likewise.
4752 * d-lang.c (d_language_data): Likewise.
4753 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4754 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4755 (f_language::c_style_arrays_p): New member function.
4756 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4757 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4758 * language.c (unknown_language_data): Remove c_style_arrays
4759 initializer.
4760 (auto_language_data): Likewise.
4761 * language.h (language_data): Remove c_style_arrays field.
4762 (language_defn::c_style_arrays_p): New member function.
4763 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4764 (m2_language::c_style_arrays_p): New member function.
4765 * objc-lang.c (objc_language_data): Remove c_style_arrays
4766 initializer.
4767 * opencl-lang.c (opencl_language_data): Likewise.
4768 * p-lang.c (pascal_language_data): Likewise.
4769 * rust-lang.c (rust_language_data): Likewise.
4770 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4771 and update local variable to a bool.
4772 * valops.c (value_cast): Update call to c_style_arrays_p.
4773 (value_array): Likewise.
4774 * value.c (coerce_array): Likewise.
4775
4776 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * ada-lang.c (ada_language_data): Remove la_language initializer.
4779 * c-lang.c (c_language_data): Likewise.
4780 (cplus_language_data): Likewise.
4781 (asm_language_data): Likewise.
4782 (minimal_language_data): Likewise.
4783 * d-lang.c (d_language_data): Likewise.
4784 * f-lang.c (f_language_data): Likewise.
4785 * go-lang.c (go_language_data): Likewise.
4786 * language.c (unknown_language_data): Likewise.
4787 (auto_language_data): Likewise.
4788 * language.h (language_data): Remove la_language field.
4789 (language_defn::language_defn): Initialise la_language field.
4790 (language_defn::la_language): New member variable.
4791 * m2-lang.c (m2_language_data): Remove la_language field.
4792 * objc-lang.c (objc_language_data): Likewise.
4793 * opencl-lang.c (opencl_language_data): Likewise.
4794 * p-lang.c (pascal_language_data): Likewise.
4795 * rust-lang.c (rust_language_data): Likewise.
4796
4797 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4798
4799 * ada-lang.c (ada_extensions): Delete, moved into
4800 ada_language::filename_extensions.
4801 (ada_language_data): Remove la_filename_extensions initializer.
4802 (ada_language::filename_extensions): New member function.
4803 * c-lang.c (c_extensions): Delete, moved into
4804 c_language::filename_extensions.
4805 (c_language_data): Remove la_filename_extensions initializer.
4806 (c_language::filename_extensions): New member function.
4807 (cplus_extensions): Delete, moved into
4808 cplus_language::filename_extensions.
4809 (cplus_language_data): Remove la_filename_extensions initializer.
4810 (cplus_language::filename_extensions): New member function.
4811 (asm_extensions): Delete, moved into
4812 asm_language::filename_extensions.
4813 (asm_language_data): Remove la_filename_extensions initializer.
4814 (asm_language::filename_extensions): New member function.
4815 (minimal_language_data): Remove la_filename_extensions
4816 initializer.
4817 * d-lang.c (d_extensions): Delete, moved into
4818 d_language::filename_extensions.
4819 (d_language_data): Remove la_filename_extensions initializer.
4820 (d_language::filename_extensions): New member function.
4821 * f-lang.c (f_extensions): Delete, moved into
4822 f_language::filename_extensions.
4823 (f_language_data): Remove la_filename_extensions initializer.
4824 (f_language::filename_extensions): New member function.
4825 * go-lang.c (go_language_data): Remove la_filename_extensions
4826 initializer.
4827 * language.c (add_set_language_command): Update now that
4828 filename_extensions returns a vector.
4829 (unknown_language_data): Remove la_filename_extensions
4830 initializer.
4831 (auto_language_data): Likewise.
4832 * language.h (language_data): Remove la_filename_extensions field.
4833 (language_defn::filename_extensions): New member function.
4834 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4835 initializer.
4836 * objc-lang.c (objc_extensions): Delete, moved into
4837 objc_language::filename_extensions.
4838 (objc_language_data): Remove la_filename_extensions initializer.
4839 (objc_language::filename_extensions): New member function.
4840 * opencl-lang.c (opencl_language_data): Remove
4841 la_filename_extensions initializer.
4842 * p-lang.c (pascal_extensions): Delete, moved into
4843 pascal_language::filename_extensions.
4844 (pascal_language_data): Remove la_filename_extensions initializer.
4845 (pascal_language::filename_extensions): New member function.
4846 * rust-lang.c (rust_extensions): Delete, moved into
4847 rust_language::filename_extensions.
4848 (rust_language_data): Remove la_filename_extensions initializer.
4849 (rust_language::filename_extensions): New member function.
4850 * symfile.c (add_filename_language): Add new assert.
4851
4852 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * ada-lang.c (ada_language_data): Remove la_name and
4855 la_natural_name initializers.
4856 (ada_language::name): New member function.
4857 (ada_language::natural_name): New member function.
4858 * c-lang.c (c_language_data): Remove la_name and
4859 la_natural_name initializers.
4860 (c_language::name): New member function.
4861 (c_language::natural_name): New member function.
4862 (cplus_language_data): Remove la_name and
4863 la_natural_name initializers.
4864 (cplus_language::name): New member function.
4865 (cplus_language::natural_name): New member function.
4866 (asm_language_data): Remove la_name and
4867 la_natural_name initializers.
4868 (asm_language::name): New member function.
4869 (asm_language::natural_name): New member function.
4870 (minimal_language_data): Remove la_name and
4871 la_natural_name initializers.
4872 (minimal_language::name): New member function.
4873 (minimal_language::natural_name): New member function.
4874 * compile/compile.c (compile_to_object): Update call to
4875 lanugage_defn::name.
4876 * d-lang.c (d_language_data): Remove la_name and
4877 la_natural_name initializers.
4878 (d_language::name): New member function.
4879 (d_language::natural_name): New member function.
4880 * expprint.c (print_subexp_standard): Update call to
4881 language_defn::name.
4882 (dump_raw_expression): Likewise
4883 (dump_prefix_expression): Likewise.
4884 * f-lang.c (f_language_data): Remove la_name and
4885 la_natural_name initializers.
4886 (f_language::name): New member function.
4887 (f_language::natural_name): New member function.
4888 * go-lang.c (go_language_data): Remove la_name and
4889 la_natural_name initializers.
4890 (go_language::name): New member function.
4891 (go_language::natural_name): New member function.
4892 * language.c (show_language_command): Update call to
4893 language_defn::name.
4894 (set_language_command): Likewise.
4895 (language_enum): Likewise.
4896 (language_str): Likewise.
4897 (add_set_language_command): Likewise, use
4898 language_defn::natural_name in the doc string.
4899 (unknown_language_data): Remove la_name and
4900 la_natural_name initializers.
4901 (unknown_language::name): New member function.
4902 (unknown_language::natural_name): New member function.
4903 (auto_language_data): Remove la_name and
4904 la_natural_name initializers.
4905 (auto_language::name): New member function.
4906 (auto_language::natural_name): New member function.
4907 (language_lookup_primitive_type_as_symbol): Update call to
4908 language_defn::name.
4909 * language.h (language_data): Remove la_name and la_natural_name
4910 member variables.
4911 (language_defn::name): New member function.
4912 (language_defn::natural_name): New member function.
4913 * m2-lang.c (m2_language_data): Remove la_name and
4914 la_natural_name initializers.
4915 (m2_language::name): New member function.
4916 (m2_language::natural_name): New member function.
4917 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4918 language_defn::natural_name.
4919 * objc-lang.c (objc_language_data): Remove la_name and
4920 la_natural_name initializers.
4921 (objc_language::name): New member function.
4922 (objc_language::natural_name): New member function.
4923 * opencl-lang.c (opencl_language_data): Remove la_name and
4924 la_natural_name initializers.
4925 (opencl_language::name): New member function.
4926 (opencl_language::natural_name): New member function.
4927 * p-lang.c (pascal_language_data): Remove la_name and
4928 la_natural_name initializers.
4929 (pascal_language::name): New member function.
4930 (pascal_language::natural_name): New member function.
4931 * rust-lang.c (rust_language_data): Remove la_name and
4932 la_natural_name initializers.
4933 (rust_language::name): New member function.
4934 (rust_language::natural_name): New member function.
4935 * symtab.c (lookup_language_this): Update call to
4936 language_defn::name.
4937
4938 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4939
4940 * ada-lang.c (ada_language_data): Remove la_name_of_this
4941 initializer.
4942 * ax-gdb.c (gen_expr): Update call to name_of_this.
4943 * c-exp.y (classify_name): Likewise.
4944 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4945 (cplus_language_data): Likewise.
4946 (cplus_language::name_of_this): New member function.
4947 (asm_language_data): Remove la_name_of_this initializer.
4948 (minimal_language_data): Likewise.
4949 * d-lang.c (d_language_data): Likewise.
4950 (d_language::name_of_this): New member function.
4951 * expprint.c (print_subexp_standard): Update call to name_of_this.
4952 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4953 * go-lang.c (go_language_data): Likewise.
4954 * language.c (unknown_language_data): Likewise.
4955 (unknown_language::name_of_this): New member function.
4956 (auto_language_data): Remove la_name_of_this initializer.
4957 (auto_language::name_of_this): New member function.
4958 * language.h (language_data): Delete la_name_of_this member
4959 variable.
4960 (language_defn::name_of_this): New member function.
4961 * m2-lang.c (m2_language_data): Remove la_name_of_this
4962 initializer.
4963 * objc-lang.c (objc_language_data): Likewise.
4964 (objc_language::name_of_this): New member function.
4965 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4966 initializer.
4967 * p-lang.c (pascal_language_data): Likewise.
4968 (pascal_language::name_of_this): New member function.
4969 * rust-lang.c (rust_language_data): Remove la_name_of_this
4970 initializer.
4971 * symtab.c (lookup_language_this): Update call to name_of_this.
4972 (lookup_symbol_aux): Likewise.
4973 * valops.c (value_of_this): Likewise.
4974
4975 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4976
4977 * ada-lang.c (ada_language_data): Remove
4978 la_struct_too_deep_ellipsis initializer.
4979 (ada_language::struct_too_deep_ellipsis): New member function.
4980 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4981 initializer.
4982 (cplus_language_data): Likewise.
4983 (asm_language_data): Likewise.
4984 (minimal_language_data): Likewise.
4985 * cp-valprint.c (cp_print_value): Update call to
4986 struct_too_deep_ellipsis.
4987 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4988 initializer.
4989 * f-lang.c (f_language_data): Likewise.
4990 (f_language::struct_too_deep_ellipsis): New member function.
4991 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4992 initializer.
4993 * language.c (unknown_language_data): Likewise.
4994 (auto_language_data): Likewise.
4995 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4996 member variable.
4997 (language_defn::struct_too_deep_ellipsis): New member function.
4998 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4999 initializer.Q
5000 * objc-lang.c (objc_language_data): Likewise.
5001 * opencl-lang.c (opencl_language_data): Likewise.
5002 * p-lang.c (pascal_language_data): Likewise.
5003 * rust-lang.c (rust_language_data): Likewise.
5004 * valprint.c (val_print_check_max_depth): Update call to
5005 struct_too_deep_ellipsis.
5006
5007 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5008
5009 * MAINTAINERS (Write After Approval): Add myself.
5010
5011 2020-09-15 Tom Tromey <tom@tromey.com>
5012
5013 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5014 Remove.
5015
5016 2020-09-15 Tom Tromey <tom@tromey.com>
5017
5018 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5019 and TYPE_CODE_METHODPTR cases.
5020 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5021 (c_value_print_inner): Update.
5022 * valprint.c (generic_value_print_memberptr): New function, from
5023 c_value_print_memberptr.
5024 (generic_value_print): Use it. Call cplus_print_method_ptr.
5025
5026 2020-09-15 Tom Tromey <tromey@adacore.com>
5027
5028 * python/python-internal.h (PyInt_FromLong): Remove define.
5029 * python/py-value.c (convert_value_from_python): Use
5030 gdb_py_object_from_longest.
5031 * python/py-type.c (typy_get_code): Use
5032 gdb_py_object_from_longest.
5033 * python/py-symtab.c (salpy_get_line): Use
5034 gdb_py_object_from_longest.
5035 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5036 gdb_py_object_from_longest.
5037 * python/py-record.c (recpy_gap_reason_code): Use
5038 gdb_py_object_from_longest.
5039 * python/py-record-btrace.c (recpy_bt_insn_size)
5040 (recpy_bt_func_level, btpy_list_count): Use
5041 gdb_py_object_from_longest.
5042 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5043 gdb_py_object_from_longest. Fix error handling.
5044 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5045 gdb_py_object_from_longest.
5046 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5047 gdb_py_object_from_longest.
5048 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5049 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5050 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5051
5052 2020-09-15 Tom Tromey <tromey@adacore.com>
5053
5054 * python/python.c (gdbpy_parameter_value): Use
5055 gdb_py_object_from_ulongest.
5056
5057 2020-09-15 Tom Tromey <tromey@adacore.com>
5058
5059 * python/py-infevents.c (create_register_changed_event_object):
5060 Use gdb_py_object_from_longest.
5061 * python/py-exitedevent.c (create_exited_event_object): Use
5062 gdb_py_object_from_longest.
5063
5064 2020-09-15 Tom Tromey <tromey@adacore.com>
5065
5066 * python/python.c (gdbpy_parameter_value): Use
5067 gdb_py_object_from_longest.
5068 * python/py-type.c (convert_field, typy_range): Use
5069 gdb_py_object_from_longest.
5070 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5071 gdb_py_object_from_longest.
5072 * python/py-lazy-string.c (stpy_get_length): Use
5073 gdb_py_object_from_longest.
5074 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5075 gdb_py_object_from_longest.
5076 * python/py-infevents.c (create_memory_changed_event_object): Use
5077 gdb_py_object_from_longest.
5078 * python/py-inferior.c (infpy_get_num): Use
5079 gdb_py_object_from_longest.
5080 (infpy_get_pid): Likewise.
5081
5082 2020-09-15 Tom Tromey <tromey@adacore.com>
5083
5084 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5085 defines.
5086 * python/py-value.c (valpy_long): Use
5087 gdb_py_object_from_ulongest.
5088 * python/py-symtab.c (salpy_get_pc): Use
5089 gdb_py_object_from_ulongest.
5090 (salpy_get_last): Likewise.
5091 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5092 gdb_py_object_from_ulongest.
5093 * python/py-lazy-string.c (stpy_get_address): Use
5094 gdb_py_object_from_ulongest.
5095 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5096 * python/py-arch.c (archpy_disassemble): Use
5097 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5098 error handling.
5099
5100 2020-09-15 Tom Tromey <tromey@adacore.com>
5101
5102 * python/python-internal.h (gdb_py_long_from_longest): Remove
5103 defines.
5104 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5105 * python/py-type.c (convert_field, typy_get_sizeof): Use
5106 gdb_py_object_from_longest.
5107 * python/py-record-btrace.c (btpy_list_index): Use
5108 gdb_py_object_from_longest.
5109
5110 2020-09-15 Tom Tromey <tromey@adacore.com>
5111
5112 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5113 * python/py-record.c (recpy_element_number): Use
5114 gdb_py_object_from_longest.
5115 (recpy_gap_number): Likewise.
5116
5117 2020-09-15 Tom Tromey <tromey@adacore.com>
5118
5119 * top.c (ui::ui): Update.
5120 (highest_ui_num): Remove.
5121 * top.h (struct ui) <num>: Remove.
5122
5123 2020-09-15 Tom Tromey <tromey@adacore.com>
5124
5125 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5126 * ui-style.c (ansi_regex_text): Now array.
5127 * rust-exp.y (number_regex_text): Now array.
5128 * linespec.c (linespec_quote_characters): Now array.
5129 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5130 Now arrays.
5131
5132 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * debuginfod-support.c (debuginfod_client_deleter): New.
5135 (debuginfod_client_up): New.
5136 (debuginfod_init): Return debuginfod_client_up.
5137 (debuginfod_source_query): Adjust.
5138 (debuginfod_debuginfo_query): Adjust.
5139
5140 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * debuginfod-support.c (debuginfod_source_query): Use
5143 make_unique_xstrdup.
5144
5145 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5148 with `type::instance_flags`.
5149
5150 2020-09-14 Michael Mullin <masmullin@gmail.com>
5151
5152 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5153 Remove baton parameter.
5154
5155 2020-09-14 Pedro Alves <pedro@palves.net>
5156
5157 * Makefile.in (SELFTESTS_SRCS): Add
5158 unittests/enum-flags-selftests.c.
5159 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5160 btrace_function_flags instead of enum btrace_function_flag.
5161 * compile/compile-c-types.c (convert_qualified): Use
5162 enum_flags::raw.
5163 * compile/compile-cplus-symbols.c (convert_one_symbol)
5164 (convert_symbol_bmsym):
5165 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5166 (compile_cplus_convert_struct_or_union_methods)
5167 (compile_cplus_instance::convert_qualified_base):
5168 * go-exp.y (parse_string_or_char): Add cast to int.
5169 * unittests/enum-flags-selftests.c: New file.
5170 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5171 type to btrace_thread_flags from btrace_thread_flag.
5172 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5173 local's type to btrace_thread_flags from btrace_thread_flag. Add
5174 cast in DEBUG call.
5175
5176 2020-09-14 Pedro Alves <pedro@palves.net>
5177
5178 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5179 * gdbtypes.c (address_space_name_to_int): Rename to ...
5180 (address_space_name_to_type_instance_flags): ... this.
5181 (address_space_int_to_name): Rename to ...
5182 (address_space_type_instance_flags_to_name): ... this.
5183 * gdbtypes.h (address_space_name_to_int): Rename to ...
5184 (address_space_name_to_type_instance_flags): ... this.
5185 (address_space_int_to_name): Rename to ...
5186 (address_space_type_instance_flags_to_name): ... this.
5187 * type-stack.c (type_stack::insert): Adjust to rename.
5188 * type-stack.h (type_stack::insert): Likewise.
5189
5190 2020-09-14 Pedro Alves <pedro@palves.net>
5191 Andrew Burgess <andrew.burgess@embecosm.com>
5192
5193 * avr-tdep.c (avr_address_class_type_flags): Return
5194 type_instance_flags.
5195 (avr_address_class_type_flags_to_name): Take a
5196 type_instance_flags.
5197 (avr_address_class_name_to_type_flags): Return bool and take a
5198 type_instance_flags.
5199 * d-lang.c (build_d_types): Use type::set_instance_flags.
5200 * ft32-tdep.c (ft32_address_class_type_flags): Return
5201 type_instance_flags.
5202 (ft32_address_class_type_flags_to_name): Take a
5203 type_instance_flags.
5204 (ft32_address_class_name_to_type_flags): Return bool and take a
5205 type_instance_flags.
5206 (ft32_gdbarch_init): Use type::set_instance_flags.
5207 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5208 * gdbarch.h, gdbarch.c: Regenerate.
5209 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5210 (address_class_name_to_type_flags): Use type_instance_flags and
5211 bool.
5212 * gdbtypes.c (address_space_name_to_int)
5213 (address_space_int_to_name, make_qualified_type): Use
5214 type_instance_flags.
5215 (make_qualified_type): Use type_instance_flags and
5216 type::set_instance_flags.
5217 (make_type_with_address_space, make_cv_type, make_vector_type)
5218 (check_typedef): Use type_instance_flags.
5219 (recursive_dump_type): Cast type_instance_flags to unsigned for
5220 printing.
5221 (copy_type_recursive): Use type::set_instance_flags.
5222 (gdbtypes_post_init): Use type::set_instance_flags.
5223 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5224 <m_instance_flags>: ... this.
5225 <instance_flags, set_instance_flags>: New methods.
5226 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5227 (SET_TYPE_INSTANCE_FLAGS): New.
5228 (address_space_name_to_int, address_space_int_to_name)
5229 (make_type_with_address_space): Pass flags using
5230 type_instance_flags instead of int.
5231 * stabsread.c (cleanup_undefined_types_noname): Use
5232 type::set_instance_flags.
5233 * s390-tdep.c (s390_address_class_type_flags): Return
5234 type_instance_flags.
5235 (s390_address_class_type_flags_to_name): Take a
5236 type_instance_flags.
5237 (s390_address_class_name_to_type_flags): Return bool and take a
5238 type_instance_flags.
5239 * type-stack.c (type_stack::follow_types): Use
5240 type_instance_flags.
5241 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5242
5243 2020-09-14 Tom Tromey <tromey@adacore.com>
5244
5245 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5246 * x86-tdep.c (x86_is_thunk_register_name)
5247 (x86_in_indirect_branch_thunk): Update.
5248 * sparc64-tdep.c (sparc64_fpu_register_names)
5249 (sparc64_cp0_register_names, sparc64_register_names)
5250 (sparc64_pseudo_register_names): Now const.
5251 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5252 cp0_registers_num>: Now const.
5253 * sparc-tdep.c (sparc_core_register_names)
5254 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5255 (sparc32_pseudo_register_names): Now const.
5256 (validate_tdesc_registers): Update.
5257 * rust-lang.c (rust_extensions): Now const.
5258 * p-lang.c (p_extensions): Now const.
5259 * objc-lang.c (objc_extensions): Now const.
5260 * nto-tdep.c (nto_thread_state_str): Now const.
5261 * moxie-tdep.c (moxie_register_names): Now const.
5262 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5263 Now const.
5264 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5265 (mips_linux_reg_names): Now const.
5266 (mips_gdbarch_init): Update.
5267 * microblaze-tdep.c (microblaze_register_names): Now const.
5268 * m68k-tdep.c (m68k_register_names): Now const.
5269 * m32r-tdep.c (m32r_register_names): Now const.
5270 * ia64-tdep.c (ia64_register_names): Now const.
5271 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5272 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5273 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5274 ymm_avx512_register_names, pkeys_register_names>: Now const.
5275 * i386-tdep.c (i386_register_names, i386_zmm_names)
5276 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5277 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5278 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5279 * f-lang.c (f_extensions): Now const.
5280 * d-lang.c (d_extensions): Now const.
5281 * csky-tdep.c (csky_register_names): Now const.
5282 * charset.c (default_charset_names, charset_enum): Now const.
5283 (_initialize_charset): Update.
5284 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5285 const.
5286 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5287 (bsd_uthread_solib_loaded): Update.
5288 (bsd_uthread_state): Now const.
5289 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5290 (amd64_ymm_avx512_names, amd64_ymmh_names)
5291 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5292 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5293 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5294 (amd64_dword_names): Now const.
5295 * agent.c (can_use_agent_enum): Now const.
5296 * ada-tasks.c (task_states, long_task_states): Now const.
5297 * ada-lang.c (known_runtime_file_name_patterns)
5298 (known_auxiliary_function_name_patterns, attribute_names)
5299 (standard_exc, ada_extensions): Now const.
5300
5301 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * bcache.h (struct bcache) <bcache>: Remove constructor.
5304 <m_hash_function, m_compare_function>: Remove.
5305 <~bcache>: Make virtual.
5306 <compare>: Remove static method, introduce virtual method.
5307 <default_hash>: Remove.
5308 <hash>: New virtual method.
5309 * bcache.c (bcache::expand_hash_table): Update.
5310 (bcache::insert): Update.
5311 (bcache::hash): New.
5312 (bcache::compare): Update comment and parameter names.
5313 * gdbtypes.c (types_deeply_equal): Update.
5314 * psymtab.h (struct psymbol_bcache): New struct.
5315 (class psymtab_storage) <psymtab_storage>: Make default.
5316 <psymbol_cache>: Change type to psymbol_bcache.
5317 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5318 (psymbol_hash): Change to...
5319 (psymbol_bcache::hash): ... this.
5320 (psymbol_compare): Change to...
5321 (psymbol_bcache::compare): ... this.
5322
5323 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5324
5325 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5326 checking for initial lwp.
5327
5328 2020-09-14 Tom Tromey <tromey@adacore.com>
5329
5330 * m68k-tdep.c (m68k_extract_return_value): Use
5331 pointer_result_regnum.
5332 (m68k_store_return_value): Likewise.
5333 (m68k_reg_struct_return_p): Handle vectors and arrays.
5334 (m68k_return_value): Handle arrays.
5335 (m68k_svr4_return_value): Fix single-element aggregate handling.
5336 Handle long double. Adjust for embedded ABI.
5337 (m68k_svr4_init_abi): Set pointer_result_regnum.
5338 (m68k_embedded_init_abi): New function.
5339 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5340 (m68k_osabi_sniffer): New function.
5341 (_initialize_m68k_tdep): Register osabi sniffer.
5342 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5343 member.
5344
5345 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5346
5347 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5348 with gdb::unique_xmalloc_ptr<char>.
5349
5350 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 * xml-support.h (xml_fetch_another): Change type to be a
5353 function_view.
5354 (xml_process_xincludes): Remove baton parameter.
5355 (xml_fetch_content_from_file): Change baton parameter to
5356 dirname.
5357 * xml-support.c (struct xinclude_parsing_data)
5358 <xinclude_parsing_data>: Remove baton parameter.
5359 <fetcher_baton>: Remove.
5360 (xinclude_start_include): Adjust.
5361 (xml_process_xincludes): Adjust.
5362 (xml_fetch_content_from_file): Replace baton parameter with
5363 dirname.
5364 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5365 (xml_init_syscalls_info): Use a lambda.
5366 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5367 (file_read_description_xml): Use a lambda.
5368 (fetch_available_features_from_target): Change baton parameter
5369 to target_ops.
5370 (target_read_description_xml): Use a lambda.
5371 (target_fetch_description_xml): Use a lambda.
5372 (string_read_description_xml): Update.
5373
5374 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5375
5376 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5377 uses with type::endianity_is_not_default.
5378
5379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * gdbtypes.h (struct type) <endianity_is_not_default,
5382 set_endianity_is_not_default>: New methods.
5383 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5384 type::endianity_is_not_default, change all write call sites to
5385 use type::set_endianity_is_not_default.
5386
5387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5390 uses with type::is_fixed_instance.
5391
5392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * gdbtypes.h (struct type) <is_fixed_instance,
5395 set_is_fixed_instance>: New methods.
5396 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5397 write call sites to use type::set_is_fixed_instance.
5398
5399 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5402 uses with type::is_gnu_ifunc.
5403
5404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5407 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5408 use type::set_is_gnu_ifunc.
5409
5410 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5413 uses with type::stub_is_supported.
5414
5415 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5416
5417 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5418 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5419 use type::set_stub_is_supported.
5420
5421 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5422
5423 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5424 uses with type::is_vector.
5425
5426 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5429 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5430 use type::set_is_vector.
5431
5432 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5433
5434 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5435 uses with type::has_varargs.
5436
5437 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5438
5439 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5440 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5441 use type::set_has_varargs.
5442
5443 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5444
5445 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5446 uses with type::is_prototyped.
5447
5448 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5451 New methods.
5452 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5453 call sites to use type::set_is_prototyped.
5454
5455 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5456
5457 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5458 uses with type::target_is_stub.
5459
5460 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5461
5462 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5463 New methods.
5464 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5465 sites to use type::set_target_is_stub.
5466
5467 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * gdbtypes.h (TYPE_STUB): Remove, replace all
5470 uses with type::is_stub.
5471
5472 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5475 (TYPE_STUB): Use type::is_stub, change all write call sites to
5476 use type::set_is_stub.
5477
5478 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5479
5480 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5481 type::has_no_signedness.
5482
5483 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5484
5485 * gdbtypes.h (struct type) <has_no_signedness,
5486 set_has_no_signedness>: New methods.
5487 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5488 call sites to use type::set_has_no_signedness.
5489
5490 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5491
5492 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5493 type::is_unsigned.
5494
5495 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5498 methods.
5499 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5500 sites to use type::set_is_unsigned.
5501
5502 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5503 Adam Renquinha <arenquinha@cimeq.qc.ca>
5504
5505 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5506 pointer and stack frame offset when unwinding.
5507
5508 2020-09-13 Pedro Alves <pedro@palves.net>
5509
5510 * NEWS: Document "-break-insert --qualified".
5511 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5512
5513 2020-09-13 Pedro Alves <pedro@palves.net>
5514
5515 * linespec.c (classify_mtype, compare_msyms): Delete.
5516 (search_minsyms_for_name): Remove classification logic. Instead
5517 filter out trampoline symbols if we also found an external
5518 function of the same name.
5519
5520 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5521
5522 * NEWS: Create a new section for the next release branch.
5523 Rename the section of the current branch, now that it has
5524 been cut.
5525
5526 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5527
5528 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5529 * version.in: Bump version to 11.0.50.DATE-git.
5530
5531 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5532
5533 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5534
5535 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5536 Felix Willgerodt <Felix.Willgerodt@intel.com>
5537
5538 * gdbarch.sh: Added bfloat16 type.
5539 * gdbarch.c: Regenerated.
5540 * gdbarch.h: Regenerated.
5541 * gdbtypes.c (floatformats_bfloat16): New struct.
5542 (gdbtypes_post_init): Add builtin_bfloat16.
5543 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5544 (floatformats_bfloat16): New struct.
5545 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5546 (i386_ymm_type): Add field "v16_bfloat16"
5547 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5548 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5549 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5550 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5551 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5552 * features/i386/64bit-avx512.c: Regenerated.
5553 * features/i386/64bit-sse.xml: Add bfloat16 type.
5554 * features/i386/64bit-sse.c: Regenerated.
5555
5556 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5557
5558 * i386-tdep.c (i386_zmm_type): Fix field names.
5559 (i386_ymm_type): Fix field names.
5560
5561 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5562
5563 * breakpoint.c: Fix typo in the help message of the
5564 "set breakpoint condition-evaluation" command.
5565
5566 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5567
5568 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5569 * (nbsd_nat_target::pid_to_exec_file)
5570 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5571 (nbsd_nat_target::post_startup_inferior)
5572 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5573 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5574 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5575 * (nbsd_thread_lister): Remove.
5576
5577 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5578
5579 * fork-inferior.c (startup_inferior): Avoid double free.
5580
5581 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5582
5583 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5584 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5585
5586 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5587
5588 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5589 * netbsd-nat.c: Include <sys/ptrace.h>.
5590 * (netbsd_nat::enable_proc_events): Add.
5591
5592 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5593
5594 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5595 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5596 (netbsd_nat::for_each_thread): Add.
5597 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5598 "gdbsupport/common-debug.h".
5599 * (netbsd_nat::netbsd_thread_lister)
5600 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5601 (netbsd_nat::for_each_thread): Add.
5602
5603 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5604
5605 * netbsd-nat.h: Include <unistd.h>.
5606 * (netbsd_nat::pid_to_exec_file): Add.
5607 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5608 * (netbsd_nat::pid_to_exec_file) Add.
5609
5610 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5611
5612 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5613
5614 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5615
5616 * netbsd-nat.h: New file.
5617 * netbsd-nat.c: Likewise.
5618
5619 2020-09-09 Tom Tromey <tromey@adacore.com>
5620
5621 * ada-lang.c (remove_extra_symbols): Do not increment when
5622 removing an element
5623
5624 2020-09-08 Tom Tromey <tromey@adacore.com>
5625
5626 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5627
5628 2020-09-08 Tom Tromey <tromey@adacore.com>
5629
5630 PR win32/25302:
5631 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5632 (gdb_bfd_init_data): New function.
5633 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5634
5635 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5636
5637 * infrun.c (fetch_inferior_event): Use
5638 `switch_to_target_no_thread` to switch the target.
5639
5640 2020-09-06 Tom Tromey <tom@tromey.com>
5641
5642 * symfile.h (dwarf2_free_objfile): Don't declare.
5643
5644 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5645
5646 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5647 to match 16 byte real/complex type generated by Flang compiler.
5648
5649 2020-09-03 Tom de Vries <tdevries@suse.de>
5650
5651 PR breakpoint/26546
5652 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5653 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5654
5655 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * maint.c (index_digits): New function.
5658 (struct maint_print_section_data): Remove.
5659 (print_bfd_section_info): Remove print_data parameter, add arg
5660 and index_digits.
5661 (print_objfile_section_info): Likewise.
5662 (print_bfd_section_info_maybe_relocated): Likewise (plus
5663 objfile).
5664 (maintenance_info_sections): Adjust calls.
5665
5666 2020-09-02 Tom Tromey <tromey@adacore.com>
5667
5668 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5669 for null pointers.
5670 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5671
5672 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5673
5674 * bcache.h (struct bcache) <insert>: Change type of `added` to
5675 pointer to bool.
5676 * bcache.c (bcache::insert): Likewise.
5677 * gdbtypes.c (check_types_worklist): Adjust.
5678 * psymtab.c (add_psymbol_to_bcache): Adjust.
5679
5680 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5681
5682 * corelow.c (unordered_set): Include.
5683 (class core_target): Add field 'm_core_unavailable_mappings'.
5684 (core_target::build_file_mappings): Print only one warning
5685 per inaccessible file. Add unavailable/broken mappings
5686 to m_core_unavailable_mappings.
5687 (core_target::xfer_partial): Call...
5688 (core_target::xfer_memory_via_mappings): New method.
5689
5690 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5693 type to bool.
5694
5695 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5696
5697 * dwarf2/read.c (struct field_info): Fix indentation.
5698
5699 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5702 ordering in comment.
5703 * frame.c (frame_id_eq): Fix indentation.
5704
5705 2020-08-31 Scott Linder <scott@scottlinder.com>
5706 Simon Marchi <simon.marchi@efficios.com>
5707
5708 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5709 inline frame ids in outer frame.
5710
5711 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5714 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5715 (outer_frame_id): Use FID_STACK_OUTER instead of
5716 FID_STACK_INVALID.
5717 (frame_id_p): Don't check for outer_frame_id.
5718
5719 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5722 regnum/frame in value. Call allocate_value_lazy.
5723 * frame.c (frame_unwind_register_value): Use
5724 val_print_not_saved.
5725
5726 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5727
5728 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5729
5730 2020-08-29 Pedro Alves <pedro@palves.net>
5731
5732 * progspace.c (print_program_space): Use all_inferiors. Switch to
5733 the inferior before calling target_pid_to_str.
5734
5735 2020-08-28 Tom Tromey <tom@tromey.com>
5736
5737 * xcoffread.c (xcoff_end_psymtab): Update comment.
5738 * dbxread.c (dbx_end_psymtab): Update comment.
5739
5740 2020-08-28 Tom de Vries <tdevries@suse.de>
5741
5742 PR breakpoint/26544
5743 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5744 event_location.
5745 (create_breakpoint): Same.
5746 (base_breakpoint_decode_location): Same.
5747 (bkpt_create_sals_from_location): Same.
5748 (bkpt_decode_location): Same.
5749 (bkpt_probe_create_sals_from_location): Same.
5750 (bkpt_probe_decode_location): Same.
5751 (tracepoint_create_sals_from_location): Same.
5752 (tracepoint_decode_location): Same.
5753 (tracepoint_probe_decode_location): Same.
5754 (strace_marker_create_sals_from_location): Same.
5755 (strace_marker_decode_location): Same.
5756 (create_sals_from_location_default): Same.
5757 (decode_location_default): Same.
5758 * breakpoint.h (struct breakpoint_ops): Same.
5759 (create_breakpoint): Same.
5760 * linespec.h (decode_line_full): Same.
5761 * linespec.c (decode_line_full): Same. Throw error if
5762 result.size () == 0.
5763
5764 2020-08-27 Pedro Alves <pedro@palves.net>
5765
5766 PR gdb/26524
5767 * breakpoint.c (until_break_fsm) <location_breakpoint,
5768 caller_breakpoint>: Delete fields.
5769 <breakpoints>: New field.
5770 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5771 two individual breakpoints.
5772 (until_break_fsm::should_stop): Loop over breakpoints in the
5773 breakpoint vector.
5774 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5775 vector.
5776 (until_break_command): Handle location expanding into multiple
5777 sals.
5778
5779 2020-08-27 Pedro Alves <pedro@palves.net>
5780
5781 PR gdb/26523
5782 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5783 bp_until breakpoints user-specified locations. Update intro
5784 comment.
5785
5786 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5787
5788 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5789 gdb_bfd_sections): New.
5790 * maint.c (print_bfd_section_info): Change param type to
5791 maint_print_section_data.
5792 (print_objfile_section_info): Likewise.
5793 (print_bfd_section_info_maybe_relocated): Likewise.
5794 (maintenance_info_sections): Use gdb_bfd_sections.
5795
5796 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5797
5798 * MAINTAINERS: Add ARC target and maintainer.
5799
5800 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5801
5802 * configure.tgt: ARC support for GNU/Linux.
5803 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5804 * arc-linux-tdep.c: New file.
5805 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5806 * arc-tdep.c (arc_write_pc): Use it.
5807
5808 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5809
5810 * arc-tdep.c (arc_check_for_hardware_loop): New.
5811 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5812
5813 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5814
5815 * arc-tdep.h: Include "gdbarch.h".
5816
5817 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5818
5819 * arch/arc.h
5820 (arc_gdbarch_features): New class to stir the selection of target XML.
5821 (arc_create_target_description): Use FEATURES to choose XML target.
5822 (arc_lookup_target_description): Use arc_create_target_description
5823 to create _new_ target descriptions or return the already created
5824 ones if the FEATURES is the same.
5825 * arch/arc.c: Implementation of prototypes described above.
5826 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5827 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5828 * arc-tdep.c (*_feature_name): Make feature names consistent.
5829 (arc_register_feature): A new struct to hold information about
5830 registers of a particular target/feature.
5831 (arc_check_tdesc_feature): Check if XML provides registers in
5832 compliance with ARC_REGISTER_FEATURE structs.
5833 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5834 (determine_*_reg_feature_set): Which feature name to look for.
5835 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5836 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5837 to expected ISA enums to be used in arc_gdbarch_features structs.
5838 * features/Makefile (FEATURE_XMLFILES): Add new files.
5839 * gdb/features/arc/v1-aux.c: New file.
5840 * gdb/features/arc/v1-aux.xml: Likewise.
5841 * gdb/features/arc/v1-core.c: Likewise.
5842 * gdb/features/arc/v1-core.xml: Likewise.
5843 * gdb/features/arc/v2-aux.c: Likewise.
5844 * gdb/features/arc/v2-aux.xml: Likewise.
5845 * gdb/features/arc/v2-core.c: Likewise.
5846 * gdb/features/arc/v2-core.xml: Likewise.
5847 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5848
5849 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5850 Andrew Burgess <andrew.burgess@embecosm.com>
5851
5852 PR m2/26372
5853 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5854 an assert. Remove single element array indexing pattern as the
5855 MULTI_SUBSCRIPT support will handle this case too.
5856
5857 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * value.h (valprint_check_validity): Move declaration from
5860 here...
5861 * valprint.h (valprint_check_validity): ... to here.
5862
5863 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5864
5865 * debug.h: New file.
5866 * debug.c (debug_prefixed_vprintf): New function.
5867 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5868 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5869
5870 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * infrun.h (infrun_debug_printf_1): New function declaration.
5873 (infrun_debug_printf): New macro.
5874 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5875 throughout.
5876 (infrun_debug_printf): New function.
5877 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5878 (handle_jit_event): Likewise.
5879
5880 2020-08-21 Mark Wielaard <mark@klomp.org>
5881
5882 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5883
5884 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5885
5886 * frame.c (enum class frame_id_status): New.
5887 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5888 (fprintf_frame): Update.
5889 (compute_frame_id): Set frame id status to "computing" on entry.
5890 Set it back to "not_computed" on failure and to "computed" on
5891 success.
5892 (get_frame_id): Assert the frame id is not being computed.
5893 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5894 (create_new_frame): Likewise.
5895 (frame_cleanup_after_sniffer): Update assert.
5896
5897 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 * regcache.c (pid_ptid_regcache_map): New type.
5900 (target_ptid_regcache_map): Remove.
5901 (target_pid_ptid_regcache_map): New type.
5902 (regcaches): Change type to target_pid_ptid_regcache_map.
5903 (get_thread_arch_aspace_regcache): Update.
5904 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5905 case.
5906 (regcaches_size): Update.
5907 (regcache_count): Update.
5908 (registers_changed_ptid_target_pid_test): New.
5909 (_initialize_regcache): Register new test.
5910
5911 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * regcache.c (regcache_count): New.
5914 (struct regcache_test_data): New.
5915 (regcache_test_data_up): New.
5916 (populate_regcaches_for_test): New.
5917 (regcaches_test): Remove.
5918 (get_thread_arch_aspace_regcache_test): New.
5919 (registers_changed_ptid_all_test): New.
5920 (registers_changed_ptid_target_test): New.
5921 (registers_changed_ptid_target_ptid_test): New.
5922 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5923 (_initialize_regcache): Register new tests.
5924
5925 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5928 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5929 gdbarch and aspace parameter. Use current inferior's aspace.
5930 Validate regcache's arch value.
5931 (regcaches_test): Update.
5932
5933 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5934
5935 * regcache.c (regcaches_test): Call registers_changed.
5936
5937 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5938
5939 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5940
5941 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5942
5943 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5944 to find the end of prologue for flang compiled binaries.
5945 * arm-tdep.c (arm_skip_prologue): Likewise.
5946 * i386-tdep.c (i386_skip_prologue): Likewise.
5947 * producer.c (producer_is_llvm): New function.
5948 (producer_parsing_tests): Added new tests for clang/flang.
5949 * producer.h (producer_is_llvm): New declaration.
5950
5951 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5952
5953 * linux-nat.c (linux_nat_debug_printf): New function.
5954 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5955
5956 2020-08-18 Aaron Merey <amerey@redhat.com>
5957
5958 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5959 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5960 (CLIBS): Add DEBUGINFOD_LIBS.
5961
5962 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5963
5964 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5965 'gdbarch_num_regs'.
5966
5967 2020-08-17 Tom Tromey <tromey@adacore.com>
5968
5969 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5970 ada_get_decoded_value returns NULL.
5971
5972 2020-08-17 Tom Tromey <tromey@adacore.com>
5973
5974 * python/py-inferior.c (infpy_search_memory): Use
5975 gdb_py_object_from_ulongest.
5976 * python/py-infevents.c (create_inferior_call_event_object)
5977 (create_memory_changed_event_object): Use
5978 gdb_py_object_from_ulongest.
5979 * python/py-linetable.c (ltpy_entry_get_pc): Use
5980 gdb_py_object_from_ulongest.
5981
5982 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * loc.c (class symbol_needs_eval_context): Fix indentation.
5985
5986 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5989 bool.
5990
5991 2020-08-17 Tom de Vries <tdevries@suse.de>
5992
5993 PR gdb/26393
5994 * gdbtypes.c (dump_dynamic_prop): New function.
5995 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5996
5997 2020-08-15 Tom de Vries <tdevries@suse.de>
5998
5999 PR backtrace/26390
6000 * stack.c (print_frame_args): Temporarily set the selected
6001 frame to FRAME while printing the frame's arguments.
6002
6003 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6004
6005 PR breakpoints/26385
6006 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6007 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6008
6009 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6010
6011 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6012 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6013 and >= to check return value instead of == -1 and != -1.
6014
6015 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6016
6017 * utils.h (class gdb_argv) <as_array_view>: New method.
6018 * utils.c (gdb_argv_as_array_view_test): New.
6019 (_initialize_utils): Register selftest.
6020 * maint.c (maintenance_selftest): Use the new method.
6021
6022 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6023
6024 * target.h (supports_dumpcore, dumpcore): New
6025 function declarations.
6026 * target.c (supports_dumpcore, dumpcore): New
6027 functions.
6028 * target-delegates.c: Rebuild.
6029 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6030 and target_dumpcore ().
6031
6032 2020-08-13 Aaron Merey <amerey@redhat.com>
6033
6034 * debuginfod-support.c: Replace global variables with user_data.
6035
6036 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6037
6038 * maint.c (maintenance_selftest): Split args and pass array_view
6039 to run_tests.
6040
6041 2020-08-12 Luis Machado <luis.machado@linaro.org>
6042
6043 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6044 type's length.
6045 Use %s and pulongest to print the length.
6046
6047 2020-08-12 Pedro Alves <palves@redhat.com>
6048
6049 * NEWS: Move "Multi-target debugging support" item to the
6050 "Changes since GDB 9" section.
6051
6052 2020-08-12 Pedro Alves <palves@redhat.com>
6053
6054 PR gdb/26336
6055 * progspace.c (program_space::remove_objfile): Invalidate the
6056 frame cache.
6057
6058 2020-08-11 Tom de Vries <tdevries@suse.de>
6059
6060 * MAINTAINERS: Mark ms1 as deleted.
6061
6062 2020-08-10 Luis Machado <luis.machado@linaro.org>
6063
6064 PR gdb/26310
6065
6066 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6067 act accordingly.
6068 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6069 movz/str/stur/stp skipping behavior.
6070
6071 2020-08-10 Luis Machado <luis.machado@linaro.org>
6072
6073 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6074 struct user_sve_header instead of struct sve_context.
6075
6076 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6077
6078 * read.h (dwarf2_fetch_die_loc_sect_off,
6079 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6080 `void *` parameter with function_view.
6081 * read.c (dwarf2_fetch_die_loc_sect_off,
6082 dwarf2_fetch_die_loc_cu_off): Likewise.
6083 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6084 (per_cu_dwarf_call): Adjust.
6085 (get_frame_address_in_block_wrapper): Remove.
6086 (indirect_synthetic_pointer): Adjust.
6087 (get_ax_pc): Remove.
6088 (dwarf2_compile_expr_to_ax): Adjust.
6089
6090 2020-08-08 Tom de Vries <tdevries@suse.de>
6091
6092 PR build/26344
6093 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6094 constructor.
6095 * regcache.c (get_thread_arch_aspace_regcache): Same.
6096
6097 2020-08-07 Tom Tromey <tromey@adacore.com>
6098
6099 * ravenscar-thread.c
6100 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6101 New method.
6102 (ravenscar_thread_target::wait): Check
6103 runtime_initialized.
6104 (ravenscar_thread_target::prepare_to_store)
6105 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6106 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6107 (ravenscar_thread_target::stopped_by_watchpoint)
6108 (ravenscar_thread_target::stopped_data_address)
6109 (ravenscar_thread_target::core_of_thread): Use
6110 scoped_restore_current_thread and
6111 set_base_thread_from_ravenscar_task.
6112
6113 2020-08-07 Tom Tromey <tromey@adacore.com>
6114
6115 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6116
6117 2020-08-07 Tom Tromey <tromey@adacore.com>
6118
6119 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6120 update_inferior_ptid before update_thread_list.
6121 (temporarily_change_regcache_ptid): New class.
6122 (ravenscar_thread_target::fetch_registers)
6123 (ravenscar_thread_target::store_registers)
6124 (ravenscar_thread_target::prepare_to_store): Use base thread when
6125 forwarding operation.
6126
6127 2020-08-07 Tom Tromey <tromey@adacore.com>
6128
6129 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6130 "is_pid" case.
6131
6132 2020-08-07 Tom Tromey <tromey@adacore.com>
6133
6134 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6135 New methods.
6136 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6137 first.
6138 (ravenscar_thread_target::add_thread): Rename from
6139 ravenscar_add_thread.
6140 (ravenscar_thread_target::update_thread_list): Use a lambda.
6141 (ravenscar_thread_target::xfer_partial): New method.
6142
6143 2020-08-07 Tom Tromey <tromey@adacore.com>
6144
6145 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6146 gdb::function_view.
6147 (iterate_over_live_ada_tasks): Change type of argument.
6148 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6149 of argument.
6150
6151 2020-08-07 Tom Tromey <tromey@adacore.com>
6152
6153 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6154 Remove.
6155 (ravenscar_thread_target::extra_thread_info): Remove.
6156 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6157 defer to target beneath for non-Ravenscar threads.
6158
6159 2020-08-07 Tom Tromey <tromey@adacore.com>
6160
6161 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6162 get_base_thread_from_ravenscar_task>: Now methods.
6163 <m_cpu_map>: New member.
6164 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6165 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6166 (ravenscar_thread_target::task_is_currently_active): Update.
6167 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6168 Now a method.
6169 (ravenscar_thread_target::add_active_thread): Put initial thread
6170 into the m_cpu_map.
6171
6172 2020-08-07 Tom Tromey <tromey@adacore.com>
6173
6174 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6175 event_ptid.
6176
6177 2020-08-07 Tom Tromey <tromey@adacore.com>
6178
6179 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6180 runtime_initialized.
6181
6182 2020-08-07 Tom Tromey <tromey@adacore.com>
6183
6184 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6185 add_active_thread.
6186 (ravenscar_thread_target::add_active_thread): Now public.
6187 (ravenscar_inferior_created): Call add_active_thread after pushing
6188 the target.
6189
6190 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * regcache.c (ptid_regcache_map): New type.
6193 (target_ptid_regcache_map): New type.
6194 (regcaches): Change type to target_ptid_regcache_map.
6195 (get_thread_arch_aspace_regcache): Update to regcaches' new
6196 type.
6197 (regcache_thread_ptid_changed): Likewise.
6198 (registers_changed_ptid): Likewise.
6199 (regcaches_size): Likewise.
6200 (regcaches_test): Update.
6201 (regcache_thread_ptid_changed): Update.
6202 * regcache.h (regcache_up): New type.
6203 * gdbsupport/ptid.h (hash_ptid): New struct.
6204
6205 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * observable.h (thread_ptid_changed): Add parameter
6208 `process_stratum_target *`.
6209 * infrun.c (infrun_thread_ptid_changed): Add parameter
6210 `process_stratum_target *` and use it.
6211 (selftests): New namespace.
6212 (infrun_thread_ptid_changed): New function.
6213 (_initialize_infrun): Register selftest.
6214 * regcache.c (regcache_thread_ptid_changed): Add parameter
6215 `process_stratum_target *` and use it.
6216 (regcache_thread_ptid_changed): New function.
6217 (_initialize_regcache): Register selftest.
6218 * thread.c (thread_change_ptid): Pass target to
6219 thread_ptid_changed observable.
6220
6221 2020-08-06 Caroline Tice <cmtice@google.com>
6222
6223 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6224 (struct dwp_sections): Update field comments. Add loclists and
6225 rnglists fields.
6226 (struct virtual_v2_dwo_sections): Rename struct to
6227 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6228 size & offset fields for loclists and rnglists.
6229 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6230 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6231 skipping dummy type units.
6232 (create_dwp_hash_table): Update the large comment above the function to
6233 discuss Version 5 DWP files as well, with references. Update all the
6234 version checks in the function to check for version 5 as well. Add new
6235 section at the end to create dwp hash table for version 5.
6236 (create_dwp_v2_section): Rename function to
6237 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6238 Add V5 to error message text.
6239 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6240 into calls to create_dwp_v2_or_v5_section.
6241 (create_dwo_unit_in_dwp_v5): New function.
6242 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6243 check for version2; add else clause to handle version 5.
6244 (open_and_init_dwo_file): Add code to check dwarf version & only call
6245 create_debug_types_hash_table (with sections.types) if version is not 5;
6246 else call create_debug_type_hash_table, with sections.info.
6247 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6248 version 5.
6249 (dwarf2_locate_v5_dwp_sections): New function.
6250 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6251 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6252
6253 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * regcache.h (class regcache): Remove friend
6256 registers_changed_ptid.
6257 <regcache_thread_ptid_changed>: Remove.
6258 <regcaches>: Remove.
6259 * regcache.c (regcache::regcaches): Rename to...
6260 (regcaches): ... this. Make static.
6261 (get_thread_arch_aspace_regcache): Update.
6262 (regcache::regcache_thread_ptid_changed): Rename to...
6263 (regcache_thread_ptid_changed): ... this. Update.
6264 (class regcache_access): Remove.
6265 (regcaches_test): Update.
6266 (_initialize_regcache): Update.
6267 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6268 <forward_list>.
6269
6270 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6271
6272 * regcache.h (class regcache) <current_regcache>: Rename to...
6273 <regcaches>: ... this. Move doc here.
6274 * regcache.c (regcache::current_regcache) Rename to...
6275 (regcache::regcaches): ... this. Move doc to header.
6276 (get_thread_arch_aspace_regcache): Update.
6277 (regcache::regcache_thread_ptid_changed): Update.
6278 (registers_changed_ptid): Update.
6279 (class regcache_access) <current_regcache_size>: Rename to...
6280 <regcaches_size>: ... this.
6281 (current_regcache_test): Rename to...
6282 (regcaches_test): ... this.
6283 (_initialize_regcache): Update.
6284
6285 2020-08-06 Victor Collod <vcollod@nvidia.com>
6286
6287 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6288
6289 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6290
6291 * corelow.c (core_target::build_file_mappings): Don't output
6292 null pathname in warning.
6293
6294 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6297 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6298 gdb.dwarf2/dw2-single-line-discriminators.exp,
6299 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6300
6301 2020-08-05 Tom Tromey <tromey@adacore.com>
6302
6303 PR rust/26197:
6304 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6305 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6306 Fix off-by-one and type size errors in ordinary case.
6307
6308 2020-08-05 Tom de Vries <tdevries@suse.de>
6309
6310 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6311 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6312
6313 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * frame.h (frame_id_p): Return bool.
6316 (frame_id_artificial_p): Return bool.
6317 (frame_id_eq): Return bool.
6318 (has_stack_frames): Return bool.
6319 (get_selected_frame): Fix typo in comment.
6320 (get_frame_pc_if_available): Return bool.
6321 (get_frame_address_in_block_if_available): Return bool.
6322 (get_frame_func_if_available): Return bool.
6323 (read_frame_register_unsigned): Return bool.
6324 (get_frame_register_bytes): Return bool.
6325 (safe_frame_unwind_memory): Return bool.
6326 (deprecated_frame_register_read): Return bool.
6327 (frame_unwinder_is): Return bool.
6328 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6329 bool.
6330 <this_id::p>: Likewise.
6331 <prev_p>: Likewise.
6332 (frame_stash_add): Return bool.
6333 (get_frame_id): Use bool.
6334 (frame_id_build_special) Use bool.
6335 (frame_id_build_unavailable_stack): Use bool.
6336 (frame_id_build): Use bool.
6337 (frame_id_p): Return bool, use true/false instead of 1/0.
6338 (frame_id_artificial_p): Likewise.
6339 (frame_id_eq): Likewise.
6340 (frame_id_inner): Likewise.
6341 (get_frame_func_if_available): Likewise.
6342 (read_frame_register_unsigned): Likewise.
6343 (deprecated_frame_register_read): Likewise.
6344 (get_frame_register_bytes): Likewise.
6345 (has_stack_frames): Likewise.
6346 (inside_main_func): Likewise.
6347 (inside_entry_func): Likewise.
6348 (get_frame_pc_if_available): Likewise.
6349 (get_frame_address_in_block_if_available): Likewise.
6350 (frame_unwinder_is): Likewise.
6351 (safe_frame_unwind_memory): Likewise.
6352 (frame_unwind_arch): Likewise.
6353
6354 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6357 type to cached_copy_status.
6358 (fprintf_frame): Adjust.
6359 (get_frame_func_if_available): Adjust.
6360 (frame_cleanup_after_sniffer): Adjust.
6361
6362 2020-08-04 Mark Wielaard <mark@klomp.org>
6363
6364 * MAINTAINERS (Write After Approval): Update email address.
6365
6366 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6369 dynamic_prop::const_val.
6370
6371 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6374 dynamic_prop::kind.
6375
6376 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6379
6380 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6381
6382 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6383
6384 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6385 Jose E. Marchesi <jose.marchesi@oracle.com>
6386
6387 * configure.tgt: Add entry for bpf-*-*.
6388 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6389 (ALLDEPFILES): Add bpf-tdep.c.
6390 * bpf-tdep.c: New file.
6391 * MAINTAINERS: Add bpf target and maintainer.
6392 * NEWS: Mention the support for the new target.
6393
6394 2020-08-04 Tom de Vries <tdevries@suse.de>
6395
6396 PR symtab/23270
6397 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6398 Error.
6399
6400 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6401
6402 * syscalls/freebsd.xml: Regenerate.
6403
6404 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6405
6406 * syscalls/update-freebsd.sh: Fix usage and year range.
6407
6408 2020-08-03 Tom de Vries <tdevries@suse.de>
6409
6410 PR symtab/26333
6411 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6412 DW_LNE_lo_user/DW_LNE_hi_user range.
6413
6414 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6415
6416 PR ada/26318
6417 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6418 kind.
6419
6420 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6421
6422 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6423
6424 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6425
6426 * breakpoint.c (set_breakpoint_condition): Update the condition
6427 expressions after checking that the input condition string parses
6428 successfully and does not contain junk at the end.
6429
6430 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6431
6432 * breakpoint.c (set_breakpoint_condition): Update the
6433 condition string after parsing the new condition successfully.
6434
6435 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6436
6437 * proc-api.c (_STRUCTURED_PROC): Don't define.
6438 * proc-events.c: Likewise.
6439 * proc-flags.c: Likewise.
6440 * proc-why.c: Likewise.
6441 * procfs.c: Likewise.
6442
6443 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6444 * configure, config.in: Regenerate.
6445
6446 2020-07-30 Tom de Vries <tdevries@suse.de>
6447
6448 PR build/26320
6449 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6450 m_red/m_green/m_blue in a union.
6451
6452 2020-07-29 Tom de Vries <tdevries@suse.de>
6453
6454 PR tdep/26280
6455 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6456
6457 2020-07-28 Tom Tromey <tromey@adacore.com>
6458
6459 PR symtab/26270:
6460 * symtab.h (find_pc_partial_function_sym): Declare.
6461 * cli/cli-cmds.c (disassemble_command): Use
6462 find_pc_partial_function_sym. Check asm_demangle.
6463 * blockframe.c (cache_pc_function_sym): New global.
6464 (cache_pc_function_name): Remove.
6465 (clear_pc_function_cache): Update.
6466 (find_pc_partial_function_sym): New function, from
6467 find_pc_partial_function.
6468 (find_pc_partial_function): Rewrite using
6469 find_pc_partial_function_sym.
6470
6471 2020-07-28 Tom Tromey <tromey@adacore.com>
6472
6473 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6474 help. Add usage.
6475
6476 2020-07-28 Tom Tromey <tromey@adacore.com>
6477
6478 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6479 <DW_OP_GNU_variable_value>: Cast to address type.
6480
6481 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6482
6483 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6484 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6485 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6486 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6487 (nbsd_get_siginfo_type): New.
6488 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6489 (_initialize_nbsd_tdep): New.
6490
6491 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6492
6493 PR binutils/26301
6494 * configure: Regenerated.
6495
6496 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6497
6498 PR binutils/26301
6499 * configure: Regenerated.
6500
6501 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6502
6503 * python/py-frame.c: Remove 'user-regs.h' include.
6504 (frapy_read_register): Rewrite to make use of
6505 gdbpy_parse_register_id.
6506 * python/py-registers.c (gdbpy_parse_register_id): New function,
6507 moved here from python/py-unwind.c. Updated the return type, and
6508 also accepts register descriptor objects.
6509 * python/py-unwind.c: Remove 'user-regs.h' include.
6510 (pyuw_parse_register_id): Moved to python/py-registers.c.
6511 (unwind_infopy_add_saved_register): Update to use
6512 gdbpy_parse_register_id.
6513 (pending_framepy_read_register): Likewise.
6514 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6515
6516 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6517
6518 * python/py-registers.c: Add 'user-regs.h' include.
6519 (register_descriptor_iter_find): New function.
6520 (register_descriptor_iterator_object_methods): New static global
6521 methods array.
6522 (register_descriptor_iterator_object_type): Add pointer to methods
6523 array.
6524
6525 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6526
6527 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6528 for all architectures on FreeBSD 11.3 and later.
6529
6530 2020-07-27 Tom Tromey <tromey@adacore.com>
6531
6532 * gcore.h (load_corefile): Don't declare.
6533
6534 2020-07-27 Tom de Vries <tdevries@suse.de>
6535
6536 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6537 * config.in: Regenerate.
6538 * configure: Regenerate.
6539
6540 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6541
6542 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6543 ws2tcpip.h. When checking whether socklen_t type is defined, use
6544 ws2tcpip.h if it is available and sys/socket.h isn't.
6545 * configure: Regenerate.
6546 * config.in: Regenerate.
6547
6548 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 PR fortran/23051
6551 PR fortran/26139
6552 * valops.c (value_ind): Pass address to
6553 readjust_indirect_value_type.
6554 * value.c (readjust_indirect_value_type): Make parameter
6555 non-const, and add extra address parameter. Resolve original type
6556 before using it.
6557 * value.h (readjust_indirect_value_type): Update function
6558 signature and comment.
6559
6560 2020-07-25 Tom de Vries <tdevries@suse.de>
6561
6562 PR symtab/26243
6563 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6564 entries.
6565
6566 2020-07-24 Aaron Merey <amerey@redhat.com>
6567
6568 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6569 * configure: Rebuild.
6570
6571 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6572
6573 PR corefiles/26294
6574 * corelow.c (_initialize_corelow): Add period to help text
6575 for "maintenance print core-file-backed-mappings".
6576
6577 2020-07-23 Pedro Alves <pedro@palves.net>
6578
6579 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6580 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6581 meanwhile.
6582 * frame.c (frame_cache_generation, get_frame_cache_generation):
6583 New.
6584 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6585 (get_prev_frame_if_no_cycle): On exception, don't touch
6586 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6587 * frame.h (get_frame_cache_generation): Declare.
6588
6589 2020-07-23 Tom de Vries <tdevries@suse.de>
6590
6591 PR tui/26282
6592 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6593 New default constructor.
6594
6595 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6596
6597 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6598 exclude non-statement entries.
6599
6600 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6601
6602 * NEWS (New commands): Mention new command
6603 "maintenance print core-file-backed-mappings".
6604
6605 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6606
6607 * corelow.c (gdbcmd.h): Include.
6608 (core_target::info_proc_mappings): New method.
6609 (get_current_core_target): New function.
6610 (maintenance_print_core_file_backed_mappings): New function.
6611 (_initialize_corelow): Add core-file-backed-mappings to
6612 "maint print" commands.
6613
6614 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6615
6616 * linux-tdep.c (dump_note_entry_p): New function.
6617 (linux_dump_mapping_p_ftype): New typedef.
6618 (linux_find_memory_regions_full): Add new parameter,
6619 should_dump_mapping_p.
6620 (linux_find_memory_regions): Adjust call to
6621 linux_find_memory_regions_full.
6622 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6623 call to linux_find_memory_regions_full.
6624
6625 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6626
6627 * corelow.c (solist.h, unordered_map): Include.
6628 (class core_target): Add field m_core_file_mappings and
6629 method build_file_mappings.
6630 (core_target::core_target): Call build_file_mappings.
6631 (core_target::~core_target): Free memory associated with
6632 m_core_file_mappings.
6633 (core_target::build_file_mappings): New method.
6634 (core_target::xfer_partial): Use m_core_file_mappings
6635 for memory transfers.
6636 * linux-tdep.c (linux_read_core_file_mappings): New
6637 function.
6638 (linux_core_info_proc_mappings): Rewrite to use
6639 linux_read_core_file_mappings.
6640 (linux_init_abi): Register linux_read_core_file_mappings.
6641
6642 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6643
6644 * arch-utils.c (default_read_core_file_mappings): New function.
6645 * arch-utils.c (default_read_core_file_mappings): Declare.
6646 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6647 * gdbarch.h, gdbarch.c: Regenerate.
6648
6649 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6650
6651 PR corefiles/25631
6652 * corelow.c (core_target:xfer_partial): Revise
6653 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6654 case after first checking the stratum beneath the core
6655 target.
6656 (has_all_memory): Return true.
6657 * target.c (raw_memory_xfer_partial): Revise comment
6658 regarding use of has_all_memory.
6659
6660 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6661
6662 * exec.h (section_table_xfer_memory): Revise declaration,
6663 replacing section name parameter with an optional callback
6664 predicate.
6665 * exec.c (section_table_xfer_memory): Likewise.
6666 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6667 of section_table_xfer_memory.
6668
6669 2020-07-22 Tom Tromey <tromey@adacore.com>
6670
6671 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6672 lookup_symbol_search_name.
6673
6674 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6675
6676 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6677 redundant local variable.
6678 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6679 reference, not pointer, update code accordingly.
6680
6681 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6682 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6683
6684 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6685 * jit.c (jit_breakpoint_re_set_internal): Use the
6686 `skip_jit_symbol_lookup` field.
6687
6688 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6689 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6690
6691 * jit.c (jit_read_descriptor): Define the descriptor address once,
6692 use twice.
6693 (jit_breakpoint_deleted): Move the declaration of the loop variable
6694 `iter` into the loop header.
6695 (jit_breakpoint_re_set_internal): Move the declaration of the local
6696 variable `objf_data` to the first point of definition.
6697 (jit_event_handler): Move the declaration of local variables
6698 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6699 Rename `objf` to `jited`.
6700
6701 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6702
6703 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6704 Remove.
6705 * jit.c (get_jiter_objfile_data): Update.
6706
6707 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6708 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * jit.c (struct jit_program_space_data): Remove.
6711 (jit_program_space_key): Remove.
6712 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6713 stuff.
6714 (get_jit_program_space_data): Remove.
6715 (jit_breakpoint_deleted): Iterate on all of the program space's
6716 objfiles.
6717 (jit_inferior_init): Likewise.
6718 (jit_breakpoint_re_set_internal): Likewise. Also change return
6719 type to void.
6720 (jit_breakpoint_re_set): Pass current_program_space to
6721 jit_breakpoint_re_set_internal.
6722
6723 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * jit.h (struct jiter_objfile_data) <cached_code_address,
6726 jit_breakpoint>: Move to here from ...
6727 * jit.c (jit_program_space_data): ... here.
6728 (jiter_objfile_data::~jiter_objfile_data): Update.
6729 (jit_breakpoint_deleted): Update.
6730 (jit_breakpoint_re_set_internal): Update.
6731
6732 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6733
6734 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6735 checks.
6736 (jit_read_descriptor): Remove NULL check.
6737 (jit_event_handler): Add an assertion.
6738
6739 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6740
6741 * jit.h (struct jit_objfile_data): Split into...
6742 (struct jiter_objfile_data): ... this ...
6743 (struct jited_objfile_data): ... and this.
6744 * objfiles.h (struct objfile) <jit_data>: Remove.
6745 <jiter_data, jited_data>: New fields.
6746 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6747 (jiter_objfile_data::~jiter_objfile_data): ... this.
6748 (get_jit_objfile_data): Rename to ...
6749 (get_jiter_objfile_data): ... this.
6750 (add_objfile_entry): Update.
6751 (jit_read_descriptor): Use get_jiter_objfile_data.
6752 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6753 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6754 (jit_inferior_exit_hook): Use objfile's jited_data field.
6755
6756 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 * jit.h: Forward-declare `struct minimal_symbol`.
6759 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6760 constructor, destructor, and an objfile* field.
6761 * jit.c (jit_objfile_data): Remove.
6762 (struct jit_objfile_data): Migrate from here to jit.h.
6763 (jit_objfile_data::~jit_objfile_data): New destructor
6764 implementation with code moved from free_objfile_data.
6765 (free_objfile_data): Delete.
6766 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6767 (jit_find_objf_with_entry_addr): Ditto.
6768 (jit_inferior_exit_hook): Ditto.
6769 (_initialize_jit): Remove the call to
6770 register_objfile_data_with_cleanup.
6771 * objfiles.h (struct objfile) <jit_data>: New field.
6772
6773 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6774
6775 * jit.h: Forward-declare `struct objfile`.
6776 (jit_event_handler): Add a second parameter, the JITer objfile.
6777 * jit.c (jit_read_descriptor): Change the signature to take the
6778 JITer objfile as an argument instead of the jit_program_space_data.
6779 (jit_inferior_init): Update the call to jit_read_descriptor.
6780 (jit_event_handler): Use the new JITer objfile argument when calling
6781 jit_read_descriptor.
6782 * breakpoint.c (handle_jit_event): Update the call to
6783 jit_event_handler to pass the JITer objfile.
6784
6785 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6786
6787 * gdbarch.c: Regenerate.
6788 * gdbarch.h: Regenerate.
6789 * gdbarch.sh (handle_segmentation_fault): Remove method.
6790 * infrun.c (handle_segmentation_fault): Remove.
6791 (print_signal_received_reason): Remove call to
6792 handle_segmentation_fault.
6793
6794 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6795
6796 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6797 Rename to sparc64_linux_report_signal_info and add siggnal
6798 argument.
6799 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6800 instead of sparc64_linux_handle_segmentation_fault.
6801
6802 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6803
6804 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6805 i386_linux_report_signal_info instead of
6806 i386_linux_handle_segmentation_fault.
6807 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6808 to i386_linux_report_signal_info and add siggnal argument.
6809 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6810 of i386_linux_handle_segmentation_fault.
6811 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6812 to i386_linux_report_signal_info and add siggnal argument.
6813
6814 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6815
6816 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6817 hook if present.
6818
6819 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6820
6821 * gdbarch.c: Regenerate.
6822 * gdbarch.h: Regenerate.
6823 * gdbarch.sh (report_signal_info): New method.
6824 * infrun.c (print_signal_received_reason): Invoke gdbarch
6825 report_signal_info hook if present.
6826
6827 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * python/py-registers.c : Add 'unordered_map' include.
6830 (gdbpy_new_reggroup): Renamed to...
6831 (gdbpy_get_reggroup): ...this. Update to only create register
6832 group descriptors when needed.
6833 (gdbpy_reggroup_iter_next): Update.
6834
6835 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6836
6837 * python/py-registers.c (gdbpy_register_object_data): New static
6838 global.
6839 (gdbpy_register_object_data_init): New function.
6840 (gdbpy_new_register_descriptor): Renamed to...
6841 (gdbpy_get_register_descriptor): ...this, and update to reuse
6842 existing register descriptors where possible.
6843 (gdbpy_register_descriptor_iter_next): Update.
6844 (gdbpy_initialize_registers): Register new gdbarch data.
6845
6846 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * linux-nat.c (stopped_pids): Make static.
6849
6850 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6851
6852 PR ada/26235
6853 * gdbtypes.c (ada_discrete_type_low_bound,
6854 ada_discrete_type_high_bound): Handle undefined bounds.
6855
6856 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6857
6858 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6859 declaration.
6860 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6861 function.
6862
6863 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6864
6865 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6866 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6867 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6868 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6869 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6870 method.
6871
6872 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6873
6874 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6875 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6876 which are deprecated in Guile 3.0.
6877 * configure.ac (try_guile_versions): Add "guile-3.0".
6878 * configure (try_guile_versions): Regenerate.
6879 * NEWS: Update entry.
6880
6881 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6882 Doug Evans <dje@google.com>
6883
6884 PR gdb/21104
6885 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6886 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6887 USING_GUILE_BEFORE_2_2.
6888 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6889 Change type to 'scm_t_port_type *'.
6890 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6891 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6892 parameter and honor it. Update callers.
6893 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6894 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6895 functions.
6896 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6897 USING_GUILE_BEFORE_2_2.
6898 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6899 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6900 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6901 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6902 and 'SCM_PORT_TYPE'.
6903 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6904 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6905 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6906 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6907 [!USING_GUILE_BEFORE_2_2]: New functions.
6908 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6909 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6910 'gdbscm_memory_port_read'.
6911 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6912 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6913 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6914 function.
6915 (ioscm_init_memory_port): Remove.
6916 (ioscm_init_memory_port_stream): New function
6917 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6918 function.
6919 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6920 Return scm_from_uint (0).
6921 (gdbscm_set_memory_port_read_buffer_size_x)
6922 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6923 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6924 Return scm_from_uint (0).
6925 (gdbscm_set_memory_port_write_buffer_size_x)
6926 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6927 * configure.ac (try_guile_versions): Add "guile-2.2".
6928 * configure: Regenerate.
6929 * NEWS: Add entry.
6930
6931 2020-07-18 Tom Tromey <tom@tromey.com>
6932
6933 * linux-nat.c (linux_multi_process): Remove.
6934 (linux_nat_target::supports_multi_process): Return true.
6935
6936 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6937
6938 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6939 (riscv_lookup_target_description): Return pointer out of
6940 unique_ptr.
6941 * target-descriptions.c (allocate_target_description): Add
6942 comment.
6943 (target_desc_deleter::operator()): Likewise.
6944 * target-descriptions.h (struct target_desc_deleter): Moved to
6945 gdbsupport/tdesc.h.
6946 (target_desc_up): Likewise.
6947
6948 2020-07-17 Tom Tromey <tromey@adacore.com>
6949
6950 * linux-nat.c (linux_nat_target::supports_non_stop)
6951 (linux_nat_target::always_non_stop_p): Use "true".
6952 (linux_nat_target::supports_disable_randomization): Use "true" and
6953 "false".
6954
6955 2020-07-16 Caroline Tice <cmtice@google.com>
6956
6957 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6958 (RNGLIST_HEADER_SIZE64): New constant definition.
6959 (struct dwop_section_names): Add rnglists_dwo.
6960 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6961 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6962 (struct dwo_sections): Add rnglists field.
6963 (read_attribut_reprocess): Add tag parameter.
6964 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6965 (cu_debug_rnglists_section): New function (decl & definition).
6966 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6967 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6968 die whose range is being checked; get rnglist section from
6969 cu_debug_rnglists_section, to get from either objfile or dwo file as
6970 appropriate. Add cases for DW_RLE_base_addressx,
6971 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6972 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6973 test inside if-condition and updating complaint message.
6974 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6975 dwarf2_rnglists_process.
6976 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6977 dwarf2_ranges_process.
6978 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6979 need_ranges_base and update comment appropriately. Also pass die tag
6980 to dwarf2_ranges_read.
6981 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6982 need_ranges_base and update comment appropriately. Also pass die tag
6983 to dwarf2_ranges_process.
6984 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6985 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6986 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6987 need_ranges_base and update comment appropriately. Also pass die tag
6988 to read_attribute_reprocess and dwarf2_ranges_read.
6989 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6990 and update function comment appropriately.
6991 (read_loclist_index): Call read_loclists_rnglists_header instead of
6992 read_loclist_header.
6993 (read_rnglist_index): New function.
6994 (read_attribute_reprocess): Add tag parameter. Add code for
6995 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6996 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6997
6998 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7001 being resolved.
7002
7003 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 * arch-utils.c (show_architecture): Update formatting of messages.
7006
7007 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7008
7009 * gdbtypes.h (struct type) <bounds>: Handle array and string
7010 types.
7011 * ada-lang.c (assign_aggregate): Use type::bounds on
7012 array/string type.
7013 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7014 * c-varobj.c (c_number_of_children): Likewise.
7015 (c_describe_child): Likewise.
7016 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7017 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7018 (f_type_print_base): Likewise.
7019 * f-valprint.c (f77_array_offset_tbl): Likewise.
7020 (f77_get_upperbound): Likewise.
7021 (f77_print_array_1): Likewise.
7022 * guile/scm-type.c (gdbscm_type_range): Likewise.
7023 * m2-typeprint.c (m2_array): Likewise.
7024 (m2_is_long_set_of_type): Likewise.
7025 * m2-valprint.c (get_long_set_bounds): Likewise.
7026 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7027 * python/py-type.c (typy_range): Likewise.
7028 * rust-lang.c (rust_internal_print_type): Likewise.
7029 * type-stack.c (type_stack::follow_types): Likewise.
7030 * valarith.c (value_subscripted_rvalue): Likewise.
7031 * valops.c (value_cast): Likewise.
7032
7033 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7036 callers to use the equivalent accessor methods.
7037
7038 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7039
7040 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7041 (struct type) <bit_stride>: New method.
7042 (TYPE_BIT_STRIDE): Remove.
7043 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7044
7045 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7048 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7049 callers to use the equivalent accessor methods instead.
7050
7051 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7052
7053 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7054 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7055 callers to use the equivalent accessor methods instead.
7056
7057 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7060 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7061 to use dynamic_prop::kind.
7062
7063 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7066 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7067 to get the bound property's kind and check against
7068 PROP_UNDEFINED.
7069
7070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7071
7072 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7073 all callers to use type::range_bounds followed by
7074 dynamic_prop::{low,high}.
7075
7076 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7079 const_val, set_const_val, baton, set_locexpr, set_loclist,
7080 set_addr_offset, variant_parts, set_variant_parts,
7081 original_type, set_original_type>: New methods.
7082 <kind>: Rename to...
7083 <m_kind>: ... this. Update all users to use the new methods
7084 instead.
7085 <data>: Rename to...
7086 <m_data>: ... this. Update all users to use the new methods
7087 instead.
7088
7089 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7090
7091 * gdbtypes.c (get_discrete_bounds): Return failure if
7092 the range type's bounds are not both defined and constant
7093 values.
7094 (get_array_bounds): Update comment. Remove undefined bound check.
7095
7096 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7097
7098 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7099 the type::bounds method directly.
7100
7101 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7104 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7105 are used to set the range type's bounds to use set_bounds.
7106
7107 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7108
7109 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7110
7111 2020-07-10 Pedro Alves <pedro@palves.net>
7112
7113 * gdbthread.h (inferior_ref): Define.
7114 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7115 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7116 * thread.c
7117 (scoped_restore_current_thread::restore):
7118 Adjust to gdb::ref_ptr.
7119 (scoped_restore_current_thread::~scoped_restore_current_thread):
7120 Remove manual decref handling.
7121 (scoped_restore_current_thread::scoped_restore_current_thread):
7122 Adjust to use
7123 inferior_ref::new_reference/thread_info_ref::new_reference.
7124 Incref the thread before calling get_frame_id instead of after.
7125 Let TARGET_CLOSE_ERROR propagate.
7126
7127 2020-07-10 Pedro Alves <pedro@palves.net>
7128
7129 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7130 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7131 NOT_AVAILABLE_ERROR.
7132 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7133 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7134
7135 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7136 Pedro Alves <pedro@palves.net>
7137
7138 PR gdb/26199
7139 * infrun.c (threads_are_resumed_pending_p): Delete.
7140 (do_target_wait): Remove threads_are_executing and
7141 threads_are_resumed_pending_p checks from the inferior_matches
7142 lambda. Update comments.
7143
7144 2020-07-10 Pedro Alves <pedro@palves.net>
7145
7146 PR gdb/26199
7147 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7148 executing threads.
7149
7150 2020-07-10 Pedro Alves <pedro@palves.net>
7151
7152 PR gdb/26199
7153 * infrun.c (handle_no_resumed): Handle multiple targets.
7154
7155 2020-07-10 Pedro Alves <pedro@palves.net>
7156
7157 PR gdb/26199
7158 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7159 target_is_async_p.
7160
7161 2020-07-10 Pedro Alves <pedro@palves.net>
7162
7163 PR gdb/26199
7164 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7165 threads, not all threads.
7166
7167 2020-07-10 Pedro Alves <pedro@palves.net>
7168
7169 PR gdb/26199
7170 * remote.c (remote_target::open_1): Pass remote target pointer as
7171 data to create_async_event_handler.
7172 (remote_async_inferior_event_handler): Mark async event handler
7173 before returning if the remote target still has either pending
7174 events or unacknowledged notifications.
7175
7176 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7177
7178 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7179 declaration.
7180 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7181 function.
7182
7183 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7184
7185 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7186 inferior_ptid.
7187
7188 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7189
7190 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7191 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7192 AT_FREEBSD_PS_STRINGS.
7193
7194 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7195
7196 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7197 of debugfile path on Windows.
7198
7199 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7200
7201 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7202 argument to 'data'.
7203
7204 2020-07-08 Tom Tromey <tromey@adacore.com>
7205
7206 * ada-lang.c (ada_exception_message_1): Use read_memory.
7207
7208 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 PR python/22748
7211 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7212 special handling for inline frames.
7213 * findvar.c (value_of_register_lazy): Skip inline frames when
7214 creating lazy register values.
7215 * frame.c (frame_id_computed_p): Delete definition.
7216 * frame.h (frame_id_computed_p): Delete declaration.
7217
7218 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7219
7220 * NEWS: Mention additions to Python API.
7221 * python/py-arch.c (archpy_register_groups): New function.
7222 (arch_object_methods): Add 'register_groups' method.
7223 * python/py-registers.c (reggroup_iterator_object): New struct.
7224 (reggroup_object): New struct.
7225 (gdbpy_new_reggroup): New function.
7226 (gdbpy_reggroup_to_string): New function.
7227 (gdbpy_reggroup_name): New function.
7228 (gdbpy_reggroup_iter): New function.
7229 (gdbpy_reggroup_iter_next): New function.
7230 (gdbpy_new_reggroup_iterator): New function
7231 (gdbpy_initialize_registers): Register new types.
7232 (reggroup_iterator_object_type): Define new Python type.
7233 (gdbpy_reggroup_getset): New static global.
7234 (reggroup_object_type): Define new Python type.
7235 * python/python-internal.h
7236
7237 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7238
7239 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7240 * python/py-arch.c (archpy_registers): New function.
7241 (arch_object_methods): Add 'registers' method.
7242 * python/py-registers.c: New file.
7243 * python/python-internal.h
7244 (gdbpy_new_register_descriptor_iterator): Declare.
7245 (gdbpy_initialize_registers): Declare.
7246 * python/python.c (do_start_initialization): Call
7247 gdbpy_initialize_registers.
7248 * NEWS: Mention additions to the Python API.
7249
7250 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7251
7252 * NEWS: Mention new Python API method.
7253 * python/py-unwind.c (pending_framepy_architecture): New function.
7254 (pending_frame_object_methods): Add architecture method.
7255
7256 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * gdbarch.c: Regenerate.
7259 * gdbarch.h: Regenerate.
7260 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7261 (gdbarch_data): Use internal_error for the case where
7262 deprecated_set_gdbarch_data was originally needed.
7263 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7264 and use passed in obstack.
7265 (libunwind_frame_set_descr): Should no longer get back NULL from
7266 gdbarch_data.
7267 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7268 type.
7269 * user-regs.c (user_regs_init): Update parameters, and use passed
7270 in obstack.
7271 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7272 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7273
7274 2020-07-06 Tom de Vries <tdevries@suse.de>
7275
7276 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7277 End-Of-Sequence in lte_is_less_than.
7278 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7279 "gdb: Don't reorder line table entries too much when sorting".
7280
7281 2020-07-06 Tom de Vries <tdevries@suse.de>
7282
7283 PR tui/26205
7284 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7285
7286 2020-07-05 Tom de Vries <tdevries@suse.de>
7287
7288 PR build/26187
7289 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7290 std::uncaught_exceptions instead of deprecated
7291 std::uncaught_exception.
7292
7293 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7294
7295 * macroexp.h (macro_stringify): Return
7296 gdb::unique_xmalloc_ptr<char>.
7297 * macroexp.c (macro_stringify): Likewise.
7298 * macrotab.c (fixup_definition): Update.
7299
7300 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7301
7302 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7303 (lex_one_token): Update.
7304 * macroexp.c (struct macro_buffer) <release>: Return
7305 gdb::unique_xmalloc_ptr<char>.
7306 (macro_stringify): Update.
7307 (macro_expand): Update.
7308 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7309 * macroexp.h (macro_expand_next): Likewise.
7310
7311 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7312
7313 * macroexp.h (macro_lookup_ftype): Remove.
7314 (macro_expand, macro_expand_once, macro_expand_next): Remove
7315 lookup function parameters, add scope parameter.
7316 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7317 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7318 * macroscope.h (standard_macro_lookup): Change parameter type
7319 to macro_scope.
7320 * macroscope.c (standard_macro_lookup): Likewise.
7321 * c-exp.y (lex_one_token): Update.
7322 * macrocmd.c (macro_expand_command): Likewise.
7323 (macro_expand_once_command): Likewise.
7324
7325 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7326
7327 * inf-loop.c (inferior_event_handler): Remove client_data param.
7328 * inf-loop.h (inferior_event_handler): Likewise.
7329 * infcmd.c (step_1): Adjust.
7330 * infrun.c (proceed): Adjust.
7331 (fetch_inferior_event): Remove client_data param.
7332 (infrun_async_inferior_event_handler): Adjust.
7333 * infrun.h (fetch_inferior_event): Remove `void *` param.
7334 * linux-nat.c (handle_target_event): Adjust.
7335 * record-btrace.c (record_btrace_handle_async_inferior_event):
7336 Adjust.
7337 * record-full.c (record_full_async_inferior_event_handler):
7338 Adjust.
7339 * remote.c (remote_async_inferior_event_handler): Adjust.
7340
7341 2020-07-01 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7344 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7345
7346 2020-07-01 Tom Tromey <tom@tromey.com>
7347
7348 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7349 tui_gen_win_info.
7350 (tui_win_info::make_window): Merge with
7351 tui_gen_win_info::make_window.
7352 (tui_win_info::make_visible): Move from tui_gen_win_info.
7353 * tui/tui-win.c (tui_win_info::max_width): Move from
7354 tui_gen_win_info.
7355 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7356 type.
7357 <window_factory>: Likewise.
7358 * tui/tui-layout.c (tui_win_info::resize): Move from
7359 tui_gen_win_info.
7360 (make_standard_window): Change return type.
7361 (get_locator_window, tui_get_window_by_name): Likewise.
7362 (tui_layout_window::apply): Remove a cast.
7363 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7364 (struct tui_win_info): Merge with tui_gen_win_info.
7365 (struct tui_gen_win_info): Remove.
7366
7367 2020-07-01 Tom Tromey <tom@tromey.com>
7368
7369 * tui/tui-stack.h (struct tui_locator_window): Derive from
7370 tui_win_info.
7371 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7372 <can_box>: New method.
7373
7374 2020-07-01 Tom Tromey <tom@tromey.com>
7375
7376 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7377
7378 2020-07-01 Tom Tromey <tom@tromey.com>
7379
7380 * tui/tui-regs.c (tui_data_window::display_registers_from)
7381 (tui_data_window::display_registers_from)
7382 (tui_data_window::first_data_item_displayed)
7383 (tui_data_window::delete_data_content_windows): Update.
7384 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7385 Remove.
7386 (tui_data_window::check_register_values): Update.
7387 (tui_data_item_window::rerender): Add parameters. Update.
7388 (tui_data_item_window::refresh_window): Remove.
7389 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7390 virtual.
7391 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7392 tui_gen_win_info.
7393 <refresh_window, max_height, min_height>: Remove.
7394 <rerender>: Add parameters.
7395 <x, y, visible>: New members.
7396 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7397 <m_item_width>: New member.
7398
7399 2020-07-01 Tom Tromey <tom@tromey.com>
7400
7401 * tui/tui-regs.c (tui_data_window::show_register_group)
7402 (tui_data_window::check_register_values): Update.
7403 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7404 from item_no.
7405
7406 2020-07-01 Tom Tromey <tom@tromey.com>
7407
7408 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7409 useless "if".
7410
7411 2020-07-01 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7414 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7415
7416 2020-07-01 Tom Tromey <tom@tromey.com>
7417
7418 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7419 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7420 (struct tui_line_or_address): Move from tui-data.h.
7421 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7422 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7423 (tui_cmd_window, tui_source_window_base, tui_source_window)
7424 (tui_disasm_window): Don't declare.
7425 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7426 to tui-winsource.h.
7427 (SINGLE_KEY): Move to tui-stack.c.
7428
7429 2020-07-01 Tom Tromey <tom@tromey.com>
7430
7431 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7432 std::string.
7433 * tui/tui-regs.c (class tab_expansion_file): New.
7434 (tab_expansion_file::write): New method.
7435 (tui_register_format): Change return type. Use
7436 tab_expansion_file.
7437 (tui_get_register, tui_data_window::display_registers_from)
7438 (tui_data_item_window::rerender): Update.
7439 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7440 * tui/tui-io.c (tui_expand_tabs): Remove.
7441
7442 2020-07-01 Tom Tromey <tom@tromey.com>
7443
7444 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7445
7446 2020-07-01 Fangrui Song <maskray@google.com>
7447
7448 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7449
7450 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7451
7452 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7453 forms for DW_AT_associated and DW_AT_allocated attributes,
7454 which is already checked in function attr_to_dynamic_prop.
7455
7456 2020-06-30 Tom Tromey <tromey@adacore.com>
7457
7458 * dwarf2/read.c (quirk_rust_enum): Correctly call
7459 alloc_rust_variant for default-less enum.
7460
7461 2020-06-30 Tom Tromey <tromey@adacore.com>
7462
7463 PR build/26183:
7464 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7465 gdb::to_string.
7466
7467 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7470 * gdbarch.h: Re-generate.
7471
7472 2020-06-28 Tom Tromey <tom@tromey.com>
7473
7474 * command.h (cmd_types): Remove.
7475 (cmd_type): Don't declare.
7476 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7477 typedef.
7478 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7479 * cli/cli-decode.c (cmd_type): Remove.
7480
7481 2020-06-27 Pedro Alves <palves@redhat.com>
7482
7483 * fork-child.c (prefork_hook): Adjust.
7484 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7485 Delete.
7486 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7487 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7488 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7489 Remove declarations.
7490 (struct inferior) <set_tty, tty>: New methods.
7491 (struct inferior) <terminal>: Rename to ...
7492 (struct inferior) <m_terminal>: ... this and make private.
7493 * main.c (captured_main_1): Adjust.
7494 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7495 (mi_cmd_inferior_tty_show): Adjust.
7496 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7497 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7498
7499 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7500
7501 * configure.ac: Add --enable-libctf: handle --disable-static
7502 properly.
7503 * acinclude.m4: sinclude ../config/enable.m4.
7504 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7505 (LIBCTF): Substitute in.
7506 (CTF_DEPS): New, likewise.
7507 (CLIBS): libctf needs symbols from libbfd: move earlier.
7508 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7509 flags.
7510 * ctfread.c: Surround in ENABLE_LIBCTF.
7511 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7512 * configure: Regenerate.
7513 * config.in: Likewise.
7514
7515 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7516
7517 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7518
7519 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * inferior.h (struct inferior) <terminal>: Change type to
7522 gdb::unique_xmalloc_ptr<char>.
7523 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7524 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7525 field, adjust to unique pointer.
7526 (get_inferior_io_terminal): Adjust to unique pointer.
7527
7528 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7531 registers, not just the known core set of registers.
7532
7533 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7534
7535 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7536 fflags, frm, and fcsr registers.
7537 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7538 restore groups.
7539 (riscv_tdesc_unknown_reg): New function.
7540 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7541 tdesc_use_registers.
7542 * riscv-tdep.h (struct gdbarch_tdep): Add
7543 unknown_csrs_first_regnum, unknown_csrs_count,
7544 duplicate_fflags_regnum, duplicate_frm_regnum, and
7545 duplicate_fcsr_regnum fields.
7546
7547 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7550 callback, use the callback (when not null) to help number unknown
7551 registers.
7552 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7553 (tdesc_use_registers): Add extra parameter to declaration.
7554
7555 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7556
7557 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7558 in the file.
7559 (class riscv_pending_register_alias): Likewise.
7560 (riscv_register_feature::register_info): Change 'required_p' field
7561 to 'required', and change its type. Add 'check' member function.
7562 (riscv_register_feature::register_info::check): Define new member
7563 function.
7564 (riscv_xreg_feature): Change initialisation of 'required' field.
7565 (riscv_freg_feature): Likewise.
7566 (riscv_virtual_feature): Likewise.
7567 (riscv_csr_feature): Likewise.
7568 (riscv_check_tdesc_feature): Take extra parameter, the csr
7569 tdesc_feature, rewrite the function to use the new
7570 riscv_register_feature::register_info::check function.
7571 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7572
7573 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7574
7575 * features/Makefile: Remove all references to the deleted files
7576 below.
7577 * features/riscv/32bit-csr.c: Deleted.
7578 * features/riscv/32bit-csr.xml: Deleted.
7579 * features/riscv/64bit-csr.c: Deleted.
7580 * features/riscv/64bit-csr.xml: Deleted.
7581 * features/riscv/rebuild-csr-xml.sh: Deleted.
7582
7583 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7586 whitespace error for declaration of names member variable.
7587 (struct riscv_register_feature): Add new prefer_first_name member
7588 variable, and fix whitespace error in declaration of registers.
7589 (riscv_xreg_feature): Initialize prefer_first_name field.
7590 (riscv_freg_feature): Likewise.
7591 (riscv_virtual_feature): Likewise.
7592 (riscv_csr_feature): Likewise.
7593 (riscv_register_name): Expand on comments. Remove register name
7594 modifications for CSR and virtual registers.
7595
7596 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7599 errors.
7600
7601 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7602
7603 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7604 riscv-opc.h.
7605 (class riscv_pending_register_alias): New class.
7606 (riscv_check_tdesc_feature): Take vector of pending aliases and
7607 populate it as appropriate.
7608 (riscv_setup_register_aliases): Delete.
7609 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7610 to riscv_check_tdesc_feature in all cases. Use the vector to
7611 create the register aliases.
7612
7613 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7614
7615 * sol2-tdep.c (sol2_static_transform_name): Remove.
7616 (sol2_init_abi): Don't register it.
7617 * gdbarch.sh (static_transform_name): Remove.
7618 * gdbarch.c, gdbarch.h: Regenerate.
7619
7620 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7621 gdbarch_static_transform_name.
7622 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7623 * stabsread.c (define_symbol) <'X'>: Remove.
7624 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7625 handling.
7626 <'V'>: Likewise.
7627 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7628 <'S'>: Remove call to gdbarch_static_transform_name.
7629
7630 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7631
7632 * procfs.c (procfs_pre_trace): New function.
7633 (procfs_target::create_inferior): Pass it to fork_inferior.
7634
7635 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7636
7637 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7638 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7639 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7640 sol2-tdep.o, sparc-sol2-tdep.o.
7641 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7642 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7643 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7644 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7645
7646 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7647
7648 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7649 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7650 Call sol2_init_abi.
7651 Remove calls to set_gdbarch_skip_solib_resolver,
7652 set_gdbarch_core_pid_to_str.
7653 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7654 (i386_sol2_static_transform_name): Remove.
7655 (i386_sol2_init_abi): Call sol2_init_abi.
7656 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7657 set_gdbarch_static_transform_name,
7658 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7659 Use sol2_sigtramp_p.
7660 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7661 (sol2_sigtramp_p): New function.
7662 (sol2_static_transform_name): New function.
7663 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7664 (sol2_init_abi): New function.
7665 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7666 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7667 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7668 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7669 (sparc_sol2_static_transform_name): Remove.
7670 (sparc32_sol2_init_abi): Call sol2_init_abi.
7671 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7672 set_gdbarch_static_transform_name,
7673 set_gdbarch_skip_solib_resolver,
7674 set_gdbarch_core_pid_to_str.
7675 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7676 (sparc_sol2_static_transform_name): Remove
7677 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7678 call sol2_sigtramp_p.
7679 (sparc64_sol2_init_abi): Call sol2_init_abi.
7680 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7681 set_gdbarch_static_transform_name,
7682 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7683
7684 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7685
7686 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7687 * exec.c (validate_exec_file): If from_tty, set both
7688 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7689 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7690 and from_tty, unconditionally ask a confirmation.
7691
7692 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * target-descriptions.c (tdesc_architecture_name): Protect against
7695 NULL pointer dereference.
7696 (maint_print_xml_tdesc_cmd): New function.
7697 (_initialize_target_descriptions): Register new 'maint print
7698 xml-tdesc' command and give it the filename completer.
7699 * NEWS: Mention new 'maint print xml-tdesc' command.
7700
7701 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7702
7703 * target-descriptions.c (class tdesc_compatible_info): New class.
7704 (struct target_desc): Change type of compatible vector.
7705 (tdesc_compatible_p): Update for change in type of
7706 target_desc::compatible.
7707 (tdesc_compatible_info_list): New function.
7708 (tdesc_compatible_info_arch_name): New function.
7709 (tdesc_add_compatible): Update for change in type of
7710 target_desc::compatible.
7711 (print_c_tdesc::visit_pre): Likewise.
7712
7713 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7714
7715 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7716 whitespace to underscore.
7717 (maint_print_c_tdesc_cmd): Use fake filename for target
7718 descriptions that came from the target.
7719 (_initialize_target_descriptions): Add filename command completion
7720 for 'maint print c-tdesc'.
7721
7722 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7723
7724 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7725 lines.
7726
7727 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7728
7729 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7730 lines.
7731 (dwarf2_find_location_expression): Likewise.
7732 (call_site_parameter_matches): Likewise.
7733 (dwarf2_compile_expr_to_ax): Likewise.
7734 (disassemble_dwarf_expression): Likewise.
7735 (loclist_describe_location): Likewise.
7736
7737 2020-06-23 Pedro Alves <palves@redhat.com>
7738
7739 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7740 progspace-and-thread.h. Include scoped-mock-context.h instead.
7741 (register_to_value_test): Use scoped_mock_context.
7742 * regcache.c: Include "scoped-mock-context.h".
7743 (cooked_read_test): Don't error out if a target is already pushed.
7744 Use scoped_mock_context. Adjust.
7745 * scoped-mock-context.h: New file.
7746
7747 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7748
7749 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7750 initializer.
7751 (ada_language::is_string_type_p): New member function.
7752 * c-lang.c (c_language_data): Delete la_is_string_type_p
7753 initializer.
7754 (cplus_language_data): Likewise.
7755 (asm_language_data): Likewise.
7756 (minimal_language_data): Likewise.
7757 * d-lang.c (d_language_data): Likewise.
7758 * f-lang.c (f_is_string_type_p): Delete function, implementation
7759 moved to f_language::is_string_type_p.
7760 (f_language_data): Delete la_is_string_type_p initializer.
7761 (f_language::is_string_type_p): New member function,
7762 implementation from f_is_string_type_p.
7763 * go-lang.c (go_is_string_type_p): Delete function, implementation
7764 moved to go_language::is_string_type_p.
7765 (go_language_data): Delete la_is_string_type_p initializer.
7766 (go_language::is_string_type_p): New member function,
7767 implementation from go_is_string_type_p.
7768 * language.c (language_defn::is_string_type_p): Define new member
7769 function.
7770 (default_is_string_type_p): Make static, add comment copied from
7771 header file.
7772 (unknown_language_data): Delete la_is_string_type_p initializer.
7773 (unknown_language::is_string_type_p): New member function.
7774 (auto_language_data): Delete la_is_string_type_p initializer.
7775 (auto_language::is_string_type_p): New member function.
7776 * language.h (language_data): Delete la_is_string_type_p field.
7777 (language_defn::is_string_type_p): Declare new function.
7778 (default_is_string_type_p): Delete desclaration, move comment to
7779 definition.
7780 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7781 moved to m2_language::is_string_type_p.
7782 (m2_language_data): Delete la_is_string_type_p initializer.
7783 (m2_language::is_string_type_p): New member function,
7784 implementation from m2_is_string_type_p.
7785 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7786 initializer.
7787 * opencl-lang.c (opencl_language_data): Likewise.
7788 * p-lang.c (pascal_is_string_type_p): Delete function,
7789 implementation moved to pascal_language::is_string_type_p.
7790 (pascal_language_data): Delete la_is_string_type_p initializer.
7791 (pascal_language::is_string_type_p): New member function,
7792 implementation from pascal_is_string_type_p.
7793 * rust-lang.c (rust_is_string_type_p): Delete function,
7794 implementation moved to rust_language::is_string_type_p.
7795 (rust_language_data): Delete la_is_string_type_p initializer.
7796 (rust_language::is_string_type_p): New member function,
7797 implementation from rust_is_string_type_p.
7798 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7799 is_string_type_p.
7800
7801 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * ada-lang.c (ada_language_data): Delete la_print_typedef
7804 initializer.
7805 (ada_language::print_typedef): New member function.
7806 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7807 (cplus_language_data): Likewise.
7808 (asm_language_data): Likewise.
7809 (minimal_language_data): Likewise.
7810 * d-lang.c (d_language_data): Likewise.
7811 * f-lang.c (f_language_data): Likewise.
7812 (f_language::print_typedef): New member function.
7813 * go-lang.c (go_language_data): Delete la_print_typedef
7814 initializer.
7815 * language.c (language_defn::print_typedef): Define member
7816 function.
7817 (unknown_language_data): Delete la_print_typedef initializer.
7818 (unknown_language::print_typedef): New member function.
7819 (auto_language_data): Delete la_print_typedef initializer.
7820 (auto_language::print_typedef): New member function.
7821 * language.h (language_data): Delete la_print_typedef field.
7822 (language_defn::print_typedef): Declare new member function.
7823 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7824 (default_print_typedef): Delete declaration.
7825 * m2-lang.c (m2_language_data): Delete la_print_typedef
7826 initializer.
7827 (m2_language::print_typedef): New member function.
7828 * objc-lang.c (objc_language_data): Delete la_print_typedef
7829 initializer.
7830 * opencl-lang.c (opencl_language_data): Likewise.
7831 * p-lang.c (pascal_language_data): Likewise.
7832 (pascal_language::print_typedef): New member function.
7833 * rust-lang.c (rust_print_typedef): Delete function,
7834 implementation moved to rust_language::print_typedef.
7835 (rust_language): Delete la_print_typedef initializer.
7836 (rust_language::print_typedef): New member function,
7837 implementation from rust_print_typedef.
7838 * typeprint.c (default_print_typedef): Delete.
7839
7840 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7841
7842 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7843 (ada_language::printstr): New member function.
7844 * c-lang.c (c_language_data): Delete la_printstr initializer.
7845 (cplus_language_data): Likewise.
7846 (asm_language_data): Likewise.
7847 (minimal_language_data): Likewise.
7848 * d-lang.c (d_language_data): Likewise.
7849 * f-lang.c (f_printstr): Rename to f_language::printstr.
7850 (f_language_data): Delete la_printstr initializer.
7851 (f_language::printstr): New member function, implementation from
7852 f_printstr.
7853 * go-lang.c (go_language_data): Delete la_printstr initializer.
7854 * language.c (language_defn::printstr): Define new member
7855 function.
7856 (unk_lang_printstr): Delete.
7857 (unknown_language_data): Delete la_printstr initializer.
7858 (unknown_language::printstr): New member function.
7859 (auto_language_data): Delete la_printstr initializer.
7860 (auto_language::printstr): New member function.
7861 * language.h (language_data): Delete la_printstr field.
7862 (language_defn::printstr): Declare new member function.
7863 (LA_PRINT_STRING): Update call to printstr.
7864 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7865 (m2_language_data): Delete la_printstr initializer.
7866 (m2_language::printstr): New member function, implementation from
7867 m2_printstr.
7868 * objc-lang.c (objc_language_data): Delete la_printstr
7869 initializer.
7870 * opencl-lang.c (opencl_language_data): Likewise.
7871 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7872 (pascal_language_data): Delete la_printstr initializer.
7873 (pascal_language::printstr): New member function, implementation
7874 from pascal_printstr.
7875 * p-lang.h (pascal_printstr): Delete declaration.
7876 * rust-lang.c (rust_printstr): Update header comment.
7877 (rust_language_data): Delete la_printstr initializer.
7878 (rust_language::printstr): New member function.
7879
7880 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7883 (ada_language::printchar): New member function.
7884 * c-lang.c (c_language_data): Delete la_printchar initializer.
7885 (cplus_language_data): Likewise.
7886 (asm_language_data): Likewise.
7887 (minimal_language_data): Likewise.
7888 * d-lang.c (d_language_data): Likewise.
7889 * f-lang.c (f_printchar): Rename to f_language::printchar.
7890 (f_language_data): Delete la_printchar initializer.
7891 (f_language::printchar): New member function, implementation from
7892 f_printchar.
7893 * go-lang.c (go_language_data): Delete la_printchar initializer.
7894 * language.c (unk_lang_printchar): Delete.
7895 (language_defn::printchar): Define new member function.
7896 (unknown_language_data): Delete la_printchar initializer.
7897 (unknown_language::printchar): New member function.
7898 (auto_language_data): Delete la_printchar initializer.
7899 (auto_language::printchar): New member function.
7900 * language.h (language_data): Delete la_printchar field.
7901 (language_defn::printchar): Declare new member function.
7902 (LA_PRINT_CHAR): Update call to printchar.
7903 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7904 (m2_language::printchar): New member function.
7905 * objc-lang.c (objc_language_data): Delete la_printchar
7906 initializer.
7907 * opencl-lang.c (opencl_language_data): Likewise.
7908 * p-lang.c (pascal_language_data): Delete la_printchar
7909 initializer.
7910 (pascal_language::printchar): New member function.
7911 * rust-lang.c (rust_printchar): Rename to
7912 rust_language::printchar.
7913 (rust_language_data): Delete la_printchar initializer.
7914 (rust_language::printchar): New member function, implementation
7915 from rust_printchar.
7916
7917 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7920 (ada_language_data): Delete la_emitchar initializer.
7921 (ada_language::emitchar): New member function, implementation from
7922 emit_char.
7923 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7924 (cplus_language_data): Likewise.
7925 (asm_language_data): Likewise.
7926 (minimal_language_data): Likewise.
7927 * d-lang.c (d_language_data): Likewise.
7928 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7929 (f_language_data): Delete la_emitchar initializer.
7930 (f_language::emitchar): New member function, implementation from
7931 f_emit_char.
7932 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7933 * language.c (unk_lang_emit_char): Delete.
7934 (language_defn::emitchar): New member function definition.
7935 (unknown_language_data): Delete la_emitchar initializer.
7936 (unknown_language::emitchar): New member function.
7937 (auto_language_data): Delete la_emitchar initializer.
7938 (auto_language::emitchar): New member function.
7939 * language.h (language_data): Delete la_emitchar field.
7940 (language_defn::emitchar): New member field declaration.
7941 (LA_EMIT_CHAR): Update call to emitchar.
7942 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7943 (m2_language_data): Delete la_emitchar initializer.
7944 (m2_language::emitchar): New member function, implementation from
7945 m2_emit_char.
7946 * objc-lang.c (objc_language_data): Delete la_emitchar
7947 initializer.
7948 * opencl-lang.c (opencl_language_data): Likewise.
7949 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7950 (pascal_language_data): Delete la_emitchar initializer.
7951 (pascal_language::emitchar): New member function, implementation
7952 from pascal_emit_char.
7953 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7954 (rust_language_data): Delete la_emitchar initializer.
7955 (rust_language::emitchar): New member function, implementation
7956 from rust_emitchar.
7957
7958 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7961 (ada_language_data): Delete la_post_parser initializer.
7962 (ada_language::post_parser): New member function.
7963 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7964 (cplus_language_data): Likewise.
7965 (asm_language_data): Likewise.
7966 (minimal_language_data): Likewise.
7967 * d-lang.c (d_language_data): Likewise.
7968 * f-lang.c (f_language_data): Likewise.
7969 * go-lang.c (go_language_data): Likewise.
7970 * language.c (unknown_language_data): Likewise.
7971 (auto_language_data): Likewise.
7972 * language.h (language_data): Delete la_post_parser field.
7973 (language_defn::post_parser): New member function.
7974 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7975 * objc-lang.c (objc_language_data): Likewise.
7976 * opencl-lang.c (opencl_language_data): Likewise.
7977 * p-lang.c (pascal_language_data): Likewise.
7978 * parse.c (parse_exp_in_context): Update call to post_parser.
7979 (null_post_parser): Delete definition.
7980 * parser-defs.h (null_post_parser): Delete declaration.
7981 * rust-lang.c (rust_language_data): Delete la_post_parser
7982 initializer.
7983
7984 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7985
7986 * ada-lang.c (parse): Rename to ada_language::parser.
7987 (ada_language_data): Delete la_parser initializer.
7988 (ada_language::parser): New member function, implementation from
7989 parse.
7990 * c-lang.c (c_language_data): Delete la_parser initializer.
7991 (cplus_language_data): Likewise.
7992 (asm_language_data): Likewise.
7993 (minimal_language_data): Likewise.
7994 * d-lang.c (d_language_data): Likewise.
7995 (d_language::parser): New member function.
7996 * f-lang.c (f_language_data): Delete la_parser initializer.
7997 (f_language::parser): New member function.
7998 * go-lang.c (go_language_data): Delete la_parser initializer.
7999 (go_language::parser): New member function.
8000 * language.c (unk_lang_parser): Delete.
8001 (language_defn::parser): Define new member function.
8002 (unknown_language_data): Delete la_parser initializer.
8003 (unknown_language::parser): New member function.
8004 (auto_language_data): Delete la_parser initializer.
8005 (auto_language::parser): New member function.
8006 * language.h (language_data): Delete la_parser field.
8007 (language_defn::parser): Declare new member function.
8008 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8009 (m2_language::parser): New member function.
8010 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8011 * opencl-lang.c (opencl_language_data): Likewise.
8012 * p-lang.c (pascal_language_data): Likewise.
8013 (pascal_language::parser): New member function.
8014 * parse.c (parse_exp_in_context): Update call to parser.
8015 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8016 (rust_language::parser): New member function.
8017
8018 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8019
8020 * top.c (print_gdb_configuration): Print --with-python-libdir
8021 configuration value.
8022
8023 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8024
8025 * NEWS: Mention change to the alias command.
8026
8027 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8028
8029 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8030 (alias_command_completer)
8031 (make_alias_options_def_group): New functions.
8032 (alias_opts, alias_option_defs): New struct and array.
8033 (alias_usage_error): Update usage.
8034 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8035 Use option framework.
8036 (_initialize_cli_cmds): Update alias command help.
8037 Update aliases command help.
8038 (show_user):
8039 Add NULL for new default_args lookup_cmd argument.
8040 (valid_command_p): Rename to validate_aliased_command.
8041 Add NULL for new default_args lookup_cmd argument. Verify that the
8042 aliased_command has no default args.
8043 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8044 (lookup_cmd_1, lookup_cmd): New argument default_args.
8045 (add_alias_cmd):
8046 Add NULL for new default_args lookup_cmd argument.
8047 (print_help_for_command): Show default args under the layout
8048 alias some_alias = some_aliased_cmd some_alias_default_arg.
8049 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8050 xfree default_args in destructor.
8051 * cli/cli-script.c (process_next_line, do_define_command):
8052 Add NULL for new default_args lookup_cmd argument.
8053 * command.h: Declare new default_args argument in lookup_cmd
8054 and lookup_cmd_1.
8055 * completer.c (complete_line_internal_1):
8056 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8057 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8058 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8059 Likewise.
8060 * infcmd.c (_initialize_infcmd): Likewise.
8061 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8062 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8063 * python/py-param.c (add_setshow_generic): Likewise.
8064 * remote.c (_initialize_remote): Likewise.
8065 * top.c (execute_command): Prepend default_args if command has some.
8066 (set_verbose):
8067 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8068 * tracepoint.c (validate_actionline, encode_actions_1):
8069 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8070
8071 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8072
8073 * jit.c (jit_read_descriptor): Use bool as the return type.
8074 (jit_breakpoint_re_set_internal): Use bool as the return type.
8075 Invert the return value logic; return true if the jit breakpoint
8076 has been successfully initialized.
8077 (jit_inferior_init): Update the call to
8078 jit_breakpoint_re_set_internal.
8079
8080 2020-06-22 Pedro Alves <palves@redhat.com>
8081
8082 PR gdb/25939
8083 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8084 Use the current inferior instead. Don't return
8085 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8086 wait again.
8087 * sol-thread.c (sol_thread_target::wait): Don't reference
8088 inferior_ptid.
8089 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8090 (sol_update_thread_list_callback): Use the current inferior's pid
8091 instead of inferior_ptid.
8092
8093 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8094
8095 * procfs.c: Cleanup many comments.
8096
8097 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8098 (AFTER_WATCHFLAG): Replace by value.
8099
8100 (MAIN_PROC_NAME_FORMAT): Inline ...
8101 (create_procinfo): ... here.
8102
8103 (procfs_debug_inferior): Remove SYS_exec handling.
8104 (syscall_is_exec): Likewise.
8105 (procfs_set_exec_trap): Likewise.
8106
8107 (syscall_is_lwp_exit): Inline in callers.
8108 (syscall_is_exit): Likewise.
8109 (syscall_is_exec): Likewise.
8110 (syscall_is_lwp_create): Likewise.
8111
8112 (invalidate_cache): Remove #if 0 code.
8113
8114 (make_signal_thread_runnable): Remove.
8115 (procfs_target::resume): Remove #if 0 code.
8116
8117 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8118
8119 PR gdb/25939
8120 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8121 call ...
8122 (procfs_target::create_inferior): ... here.
8123
8124 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8125
8126 * exec.c (validate_exec_file): Ensure the build-id is up to
8127 date by calling reopen_exec_file (that checks file timestamp
8128 to decide to re-read the file).
8129
8130 2020-06-18 Pedro Alves <palves@redhat.com>
8131
8132 PR gdb/25412
8133 * gdbthread.h (delete_thread, delete_thread_silent)
8134 (find_thread_ptid): Update comments.
8135 * thread.c (current_thread_): New global.
8136 (is_current_thread): Move higher, and reimplement.
8137 (inferior_thread): Reimplement.
8138 (set_thread_exited): Use bool. Add assertions.
8139 (add_thread_silent): Simplify thread-reuse handling by always
8140 calling delete_thread.
8141 (delete_thread): Remove intro comment.
8142 (find_thread_ptid): Skip exited threads.
8143 (switch_to_thread_no_regs): Write to current_thread_.
8144 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8145 INFERIOR_PTID. Clear current_thread_.
8146
8147 2020-06-18 Pedro Alves <palves@redhat.com>
8148
8149 * aix-thread.c (pd_update): Use switch_to_thread.
8150
8151 2020-06-18 Pedro Alves <palves@redhat.com>
8152
8153 * ravenscar-thread.c (ravenscar_thread_target): Update.
8154 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8155 (ravenscar_thread_target::add_active_thread): ... this. Don't
8156 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8157 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8158
8159 2020-06-18 Pedro Alves <palves@redhat.com>
8160
8161 * nat/windows-nat.c (current_windows_thread): Remove.
8162 * nat/windows-nat.h (current_windows_thread): Remove.
8163 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8164 Adjust.
8165 (display_selectors): Adjust to fetch the current
8166 windows_thread_info based on inferior_ptid.
8167 (fake_create_process): No longer write to current_windows_thread.
8168 (windows_nat_target::get_windows_debug_event):
8169 Don't set inferior_ptid or current_windows_thread.
8170 (windows_nat_target::wait): Adjust to not rely on
8171 current_windows_thread.
8172 (do_initial_windows_stuff): Now a method of windows_nat_target.
8173 Switch to the last_ptid thread.
8174 (windows_nat_target::attach): Adjust.
8175 (windows_nat_target::detach): Use switch_to_no_thread instead of
8176 writing to inferior_ptid directly.
8177 (windows_nat_target::create_inferior): Adjust.
8178
8179 2020-06-18 Pedro Alves <palves@redhat.com>
8180
8181 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8182
8183 2020-06-18 Pedro Alves <palves@redhat.com>
8184
8185 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8186 after creating it, instead of writing to inferior_ptid. Don't
8187 write to inferior_ptid.
8188
8189 2020-06-18 Pedro Alves <palves@redhat.com>
8190
8191 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8192
8193 2020-06-18 Pedro Alves <palves@redhat.com>
8194
8195 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8196 it, instead of writing to inferior_ptid.
8197
8198 2020-06-18 Pedro Alves <palves@redhat.com>
8199
8200 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8201 to inferior_ptid.
8202
8203 2020-06-18 Pedro Alves <palves@redhat.com>
8204
8205 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8206 instead of writing to inferior_ptid directly.
8207
8208 2020-06-18 Pedro Alves <palves@redhat.com>
8209
8210 * corelow.c (core_target::close): Use switch_to_no_thread instead
8211 of writing to inferior_ptid directly.
8212 (add_to_thread_list, core_target_open): Use switch_to_thread
8213 instead of writing to inferior_ptid directly.
8214
8215 2020-06-18 Pedro Alves <palves@redhat.com>
8216
8217 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8218 inferior_ptid.
8219 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8220 inferior_ptid.
8221 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8222 inferior_ptid directly.
8223 (darwin_nat_target::init_thread_list): Switch to thread, instead
8224 of writing to inferior_ptid.
8225 (darwin_nat_target::attach): Don't write to inferior_ptid.
8226 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8227
8228 2020-06-18 Pedro Alves <palves@redhat.com>
8229
8230 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8231 thread.
8232 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8233 Instead use switch_to_thread.
8234 (gnu_nat_target::detach): Use switch_to_no_thread
8235 instead of writing to inferior_ptid directly. Used passed-in
8236 inferior instead of looking up the inferior by pid.
8237
8238 2020-06-18 Pedro Alves <palves@redhat.com>
8239
8240 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8241 inferior_ptid.
8242
8243 2020-06-18 Pedro Alves <palves@redhat.com>
8244
8245 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8246 inferior_ptid.
8247 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8248 thread.
8249 (nto_procfs_target::detach): Avoid referencing
8250 inferior_ptid. Use switch_to_no_thread instead of writing to
8251 inferior_ptid directly.
8252 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8253 instead of writing to inferior_ptid directly.
8254 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8255 to thread.
8256
8257 2020-06-18 Pedro Alves <palves@redhat.com>
8258
8259 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8260 after creating it, instead of writing to inferior_ptid.
8261 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8262 to inferior_ptid directly.
8263 (gdbsim_target::wait): Don't write to inferior_ptid.
8264
8265 2020-06-18 Pedro Alves <palves@redhat.com>
8266
8267 * remote.c (remote_target::remote_notice_new_inferior): Use
8268 switch_to_thread instead of writing to inferior_ptid directly.
8269 (remote_target::add_current_inferior_and_thread): Use
8270 switch_to_no_thread instead of writing to inferior_ptid directly.
8271 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8272 and switch_to_thread instead of using set_current_inferior or
8273 writing to inferior_ptid directly.
8274
8275 2020-06-18 Pedro Alves <palves@redhat.com>
8276
8277 * tracectf.c (ctf_target_open): Switch to added thread instead of
8278 writing to inferior_ptid directly.
8279 (ctf_target::close): Use switch_to_no_thread instead of writing to
8280 inferior_ptid directly.
8281
8282 2020-06-18 Pedro Alves <palves@redhat.com>
8283
8284 * tracefile-tfile.c (tfile_target_open): Don't write to
8285 inferior_ptid directly, instead switch to added thread.
8286 (tfile_target::close): Use switch_to_no_thread instead of writing
8287 to inferior_ptid directly.
8288
8289 2020-06-18 Pedro Alves <palves@redhat.com>
8290
8291 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8292 (procfs_target::detach): Use switch_to_no_thread
8293 instead of writing to inferior_ptid directly.
8294 (do_attach): Change return type to void. Switch to the added
8295 thread.
8296 (procfs_target::create_inferior): Switch to the added thread.
8297 (procfs_do_thread_registers): Don't write to inferior_ptid.
8298
8299 2020-06-18 Pedro Alves <palves@redhat.com>
8300
8301 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8302 of writing to inferior_ptid.
8303 (scoped_restore_exited_inferior): Delete.
8304 (handle_vfork_child_exec_or_exit): Simplify using
8305 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8306 instead of writing to inferior_ptid.
8307 (THREAD_STOPPED_BY): Delete.
8308 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8309 (thread_stopped_by_hw_breakpoint): Delete.
8310 (save_waitstatus): Use
8311 scoped_restore_current_thread+switch_to_thread, and call
8312 target_stopped_by_watchpoint instead of
8313 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8314 instead of thread_stopped_by_sw_breakpoint, and
8315 target_stopped_by_hw_breakpoint instead of
8316 thread_stopped_by_hw_breakpoint.
8317 (handle_inferior_event)
8318 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8319 inferior_ptid directly, nor
8320 set_current_inferior/set_current_program_space. Use
8321 switch_to_thread / switch_to_inferior_no_thread instead.
8322
8323 2020-06-18 Pedro Alves <palves@redhat.com>
8324
8325 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8326 instead of writing to inferior_ptid.
8327
8328 2020-06-18 Pedro Alves <palves@redhat.com>
8329
8330 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8331 added thread.
8332 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8333 to the added thread.
8334 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8335 instead of writing to inferior_ptid.
8336
8337 2020-06-18 Pedro Alves <palves@redhat.com>
8338
8339 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8340 (register_to_value_test): Mock a program_space too. Heap-allocate
8341 the address space. Don't write to inferior_ptid. Use
8342 switch_to_thread instead.
8343
8344 2020-06-18 Pedro Alves <palves@redhat.com>
8345
8346 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8347 Delete.
8348 (find_signalled_thread()): New, factored out from
8349 linux_make_corefile_notes and adjusted to handle exited threads.
8350 (linux_make_corefile_notes): Adjust to use the new
8351 find_signalled_thread.
8352
8353 2020-06-18 Pedro Alves <palves@redhat.com>
8354
8355 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8356 of saving/restoring inferior_ptid.
8357
8358 2020-06-17 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8361 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8362 declare.
8363 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8364
8365 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8366
8367 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8368 of partial symtabs.
8369
8370 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * regformats/reg-arm.dat: Remove.
8373 * regformats/reg-bfin.dat: Remove.
8374 * regformats/reg-cris.dat: Remove.
8375 * regformats/reg-crisv32.dat: Remove.
8376 * regformats/reg-m32r.dat: Remove.
8377 * regformats/reg-tilegx.dat: Remove.
8378 * regformats/reg-tilegx32.dat: Remove.
8379
8380 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8381
8382 * features/Makefile (WHICH): Remove arm files.
8383 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8384 * regformats/arm/arm-with-neon.dat: Remove.
8385 * regformats/arm/arm-with-vfpv2.dat: Remove.
8386 * regformats/arm/arm-with-vfpv3.dat: Remove.
8387
8388 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8389
8390 * features/Makefile (XMLTOC): Remove rx.xml.
8391
8392 2020-06-17 Pedro Alves <palves@redhat.com>
8393
8394 * gdbthread.h (thread_control_state) <trap_expected> Update
8395 comments.
8396
8397 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8398
8399 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8400 ada_language::lookup_symbol_nonlocal.
8401 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8402 (ada_language::lookup_symbol_nonlocal): New member function,
8403 implementation from ada_lookup_symbol_nonlocal.
8404 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8405 initializer.
8406 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8407 initializer.
8408 (cplus_language::lookup_symbol_nonlocal): New member function.
8409 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8410 (minimal_language_data) Likewise.
8411 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8412 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8413 initializer.
8414 (d_language::lookup_symbol_nonlocal): New member function.
8415 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8416 initializer.
8417 (f_language::lookup_symbol_nonlocal): New member function.
8418 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8419 initializer.
8420 * language.c (unknown_language_data): Likewise.
8421 (auto_language_data): Likewise.
8422 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8423 field.
8424 (language_defn::lookup_symbol_nonlocal): New member function.
8425 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8426 initializer.
8427 * objc-lang.c (objc_language_data): Likewise.
8428 * opencl-lang.c (opencl_language_data): Likewise.
8429 * p-lang.c (pascal_language_data): Likewise.
8430 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8431 rust_language::lookup_symbol_nonlocal.
8432 (rust_language_data): Delete la_lookup_symbol_nonlocal
8433 initializer.
8434 (rust_language::lookup_symbol_nonlocal): New member function,
8435 implementation from rust_lookup_symbol_nonlocal.
8436 * symtab.c (lookup_symbol_aux): Update call to
8437 lookup_symbol_nonlocal.
8438 (basic_lookup_symbol_nonlocal): Rename to...
8439 (language_defn::lookup_symbol_nonlocal): ...this, and update
8440 header comment. Remove language_defn parameter, and replace with
8441 uses of `this'.
8442 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8443
8444 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8445
8446 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8447 initializer.
8448 (ada_language::value_print_inner): New member function.
8449 * c-lang.c (c_language_data): Delete la_value_print_inner
8450 initializer.
8451 (cplus_language_data): Likewise.
8452 (asm_language_data): Likewise.
8453 (minimal_language_data): Likewise.
8454 * d-lang.c (d_language_data): Likewise.
8455 (d_language::value_print_inner): New member function.
8456 * f-lang.c (f_language_data): Delete la_value_print_inner
8457 initializer.
8458 (f_language::value_print_inner): New member function.
8459 * f-lang.h (f_value_print_innner): Rename to...
8460 (f_value_print_inner): ...this (note spelling of 'inner').
8461 * f-valprint.c (f_value_print_innner): Rename to...
8462 (f_value_print_inner): ...this (note spelling of 'inner').
8463 * go-lang.c (go_language_data): Delete la_value_print_inner
8464 initializer.
8465 (go_language::value_print_inner): New member function.
8466 * language.c (language_defn::value_print_inner): Define new member
8467 function.
8468 (unk_lang_value_print_inner): Delete.
8469 (unknown_language_data): Delete la_value_print_inner initializer.
8470 (unknown_language::value_print_inner): New member function.
8471 (auto_language_data): Delete la_value_print_inner initializer.
8472 (auto_language::value_print_inner): New member function.
8473 * language.h (language_data): Delete la_value_print_inner field.
8474 (language_defn::value_print_inner): Delcare new member function.
8475 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8476 initializer.
8477 (m2_language::value_print_inner): New member function.
8478 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8479 initializer.
8480 * opencl-lang.c (opencl_language_data): Likewise.
8481 * p-lang.c (pascal_language_data): Likewise.
8482 (pascal_language::value_print_inner): New member function.
8483 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8484 initializer.
8485 (rust_language::value_print_inner): New member function.
8486 * valprint.c (do_val_print): Update call to value_print_inner.
8487
8488 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 * ada-lang.c (ada_language_data): Delete la_value_print
8491 initializer.
8492 (ada_language::value_print): New member function.
8493 * c-lang.c (c_language_data): Delete la_value_print initializer.
8494 (cplus_language_data): Likewise.
8495 (asm_language_data): Likewise.
8496 (minimal_language_data): Likewise.
8497 * d-lang.c (d_language_data): Likewise.
8498 * f-lang.c (f_language_data): Likewise.
8499 * go-lang.c (go_language_data): Likewise.
8500 * language.c (unk_lang_value_print): Delete.
8501 (language_defn::value_print): Define new member function.
8502 (unknown_language_data): Delete la_value_print initializer.
8503 (unknown_language::value_print): New member function.
8504 (auto_language_data): Delete la_value_print initializer.
8505 (auto_language::value_print): New member function.
8506 * language.h (language_data): Delete la_value_print field.
8507 (language_defn::value_print): Declare new member function.
8508 (LA_VALUE_PRINT): Update call to value_print.
8509 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8510 * objc-lang.c (objc_language_data): Likewise.
8511 * opencl-lang.c (opencl_language_data): Likewise.
8512 * p-lang.c (pascal_language_data): Likewise.
8513 (pascal_language::value_print): New member function.
8514 * rust-lang.c (rust_language_data): Delete la_value_print
8515 initializer.
8516
8517 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8518
8519 * ada-lang.c (ada_watch_location_expression): Rename to
8520 ada_language::watch_location_expression.
8521 (ada_language_data): Delete la_watch_location_expression
8522 initializer.
8523 (ada_language::watch_location_expression): New member function,
8524 implementation from ada_watch_location_expression.
8525 * breakpoint.c (watch_command_1): Update call to
8526 watch_location_expression.
8527 * c-lang.c (c_watch_location_expression): Rename to
8528 language_defn::watch_location_expression.
8529 (c_language_data): Delete la_watch_location_expression
8530 initializer.
8531 (cplus_language_data): Likewise.
8532 (asm_language_data): Likewise.
8533 (minimal_language_data): Likewise.
8534 * c-lang.h (c_watch_location_expression): Delete declaration.
8535 * d-lang.c (d_language_data): Delete la_watch_location_expression
8536 initializer.
8537 * f-lang.c (f_language_data): Likewise.
8538 * go-lang.c (go_language_data): Likewise.
8539 * language.c (language_defn::watch_location_expression): Member
8540 function implementation from c_watch_location_expression.
8541 (unknown_language_data): Delete la_watch_location_expression
8542 initializer.
8543 (auto_language_data): Likewise.
8544 * language.h (language_data): Delete la_watch_location_expression
8545 field.
8546 (language_defn::watch_location_expression): Declare new member
8547 function.
8548 * m2-lang.c (m2_language_data): Delete
8549 la_watch_location_expression initializer.
8550 * objc-lang.c (objc_language_data): Likewise.
8551 * opencl-lang.c (opencl_language_data): Likewise.
8552 * p-lang.c (pascal_language_data): Likewise.
8553 * rust-lang.c (rust_watch_location_expression): Rename to
8554 rust_language::watch_location_expression.
8555 (rust_language_data): Delete la_watch_location_expression
8556 initializer.
8557 (rust_language::watch_location_expression): New member function,
8558 implementation from rust_watch_location_expression.
8559
8560 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8563 ada_language::collect_symbol_completion_matches.
8564 (ada_language_data): Delete la_collect_symbol_completion_matches
8565 initializer.
8566 (ada_language::collect_symbol_completion_matches): New member
8567 function, implementation from
8568 ada_collect_symbol_completion_matches.
8569 * c-lang.c (c_language_data): Delete
8570 la_collect_symbol_completion_matches initializer.
8571 (cplus_language_data): Likewise.
8572 (asm_language_data): Likewise.
8573 (minimal_language_data): Likewise.
8574 * d-lang.c (d_language_data): Likewise.
8575 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8576 f_language::collect_symbol_completion_matches.
8577 (f_language_data): Delete la_collect_symbol_completion_matches
8578 initializer.
8579 (f_language::collect_symbol_completion_matches) New member
8580 function, implementation from f_collect_symbol_completion_matches.
8581 * go-lang.c (go_language_data): Delete
8582 la_collect_symbol_completion_matches initializer.
8583 * language.c (unknown_language_data): Likewise.
8584 (auto_language_data): Likewise.
8585 * language.h (language_data): Delete
8586 la_collect_symbol_completion_matches field.
8587 (language_defn::collect_symbol_completion_matches): New member
8588 function.
8589 * m2-lang.c (m2_language_data): Delete
8590 la_collect_symbol_completion_matches initializer.
8591 * objc-lang.c (objc_language_data): Likewise.
8592 * opencl-lang.c (opencl_language_data): Likewise.
8593 * p-lang.c (pascal_language_data): Likewise.
8594 * rust-lang.c (rust_language_data): Likewise.
8595 * symtab.c (default_collect_symbol_completion_matches): Delete.
8596 (collect_symbol_completion_matches): Update call to
8597 collect_symbol_completion_matches.
8598 (collect_symbol_completion_matches_type): Likewise.
8599 * symtab.h (default_collect_symbol_completion_matches): Delete
8600 declaration.
8601
8602 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8603
8604 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8605 (ada_language_data): Delete la_word_break_characters initializer.
8606 (ada_language::word_break_characters): New member function.
8607 * c-lang.c (c_language_data): Delete la_word_break_characters
8608 initializer.
8609 (cplus_language_data): Likewise.
8610 (asm_language_data): Likewise.
8611 (minimal_language_data): Likewise.
8612 * completer.c: Update global comment.
8613 (advance_to_expression_complete_word_point): Update call to
8614 word_break_characters.
8615 (complete_files_symbols): Likewise.
8616 (complete_line_internal_1): Likewise.
8617 (default_completer_handle_brkchars): Likewise.
8618 (skip_quoted_chars): Likewise.
8619 * d-lang.c (d_language_data): Delete la_word_break_characters
8620 initializer.
8621 * f-lang.c (f_word_break_characters): Delete.
8622 (f_language_data): Delete la_word_break_characters initializer.
8623 (f_language::word_break_characters): New member function.
8624 * go-lang.c (go_language_data): Delete la_word_break_characters
8625 initializer.
8626 * language.c (unknown_language_data): Likewise.
8627 (auto_language_data): Likewise.
8628 * language.h (default_word_break_characters): Move declaration to
8629 earlier in the file.
8630 (language_data): Delete la_word_break_characters field.
8631 (language_defn::word_break_characters): New member function.
8632 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8633 initializer.
8634 * objc-lang.c (objc_language_data): Likewise.
8635 * opencl-lang.c (opencl_language_data): Likewise.
8636 * p-lang.c (pascal_language_data): Likewise.
8637 * rust-lang.c (rust_language_data): Likewise.
8638
8639 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8642 (ada_language_data): Delete la_get_symbol_name_matcher
8643 initializer.
8644 (language_defn::get_symbol_name_matcher_inner): New member
8645 function.
8646 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8647 initializer.
8648 (cplus_language_data): Likewise.
8649 (cplus_language::get_symbol_name_matcher_inner): New member
8650 function.
8651 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8652 (minimal_language_data): Likewise.
8653 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8654 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8655 initializer.
8656 * dictionary.c (iter_match_first_hashed): Update call to
8657 get_symbol_name_matcher.
8658 (iter_match_next_hashed): Likewise.
8659 (iter_match_next_linear): Likewise.
8660 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8661 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8662 initializer.
8663 (f_language::get_symbol_name_matcher_inner): New member function.
8664 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8665 initializer.
8666 * language.c (default_symbol_name_matcher): Update header comment,
8667 make static.
8668 (language_defn::get_symbol_name_matcher): New definition.
8669 (language_defn::get_symbol_name_matcher_inner): Likewise.
8670 (get_symbol_name_matcher): Delete.
8671 (unknown_language_data): Delete la_get_symbol_name_matcher
8672 initializer.
8673 (auto_language_data): Likewise.
8674 * language.h (language_data): Delete la_get_symbol_name_matcher
8675 field.
8676 (language_defn::get_symbol_name_matcher): New member function.
8677 (language_defn::get_symbol_name_matcher_inner): Likewise.
8678 (default_symbol_name_matcher): Delete declaration.
8679 * linespec.c (find_methods): Update call to
8680 get_symbol_name_matcher.
8681 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8682 initializer.
8683 * minsyms.c (lookup_minimal_symbol): Update call to
8684 get_symbol_name_matcher.
8685 (iterate_over_minimal_symbols): Likewise.
8686 * objc-lang.c (objc_language_data): Delete
8687 la_get_symbol_name_matcher initializer.
8688 * opencl-lang.c (opencl_language_data): Likewise.
8689 * p-lang.c (pascal_language_data): Likewise.
8690 * psymtab.c (psymbol_name_matches): Update call to
8691 get_symbol_name_matcher.
8692 * rust-lang.c (rust_language_data): Delete
8693 la_get_symbol_name_matcher initializer.
8694 * symtab.c (symbol_matches_search_name): Update call to
8695 get_symbol_name_matcher.
8696 (compare_symbol_name): Likewise.
8697
8698 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8699
8700 * ada-lang.c (ada_language_data): Delete la_compute_program
8701 initializer.
8702 * c-lang.c (c_language_data): Likewise.
8703 (c_language::compute_program): New member function.
8704 (cplus_language_data): Delete la_compute_program initializer.
8705 (cplus_language::compute_program): New member function.
8706 (asm_language_data): Delete la_compute_program initializer.
8707 (minimal_language_data): Likewise.
8708 * c-lang.h (c_compute_program): Update comment.
8709 (cplus_compute_program): Likewise.
8710 * compile/compile-c-support.c (c_compute_program): Likewise.
8711 (cplus_compute_program): Likewise.
8712 * compile/compile.c (compile_to_object): Update call to
8713 la_compute_program.
8714 * d-lang.c (d_language_data): Delete la_compute_program
8715 initializer.
8716 * f-lang.c (f_language_data): Likewise.
8717 * go-lang.c (go_language_data): Likewise.
8718 * language.c (unknown_language_data): Likewise.
8719 (auto_language_data): Likewise.
8720 * language.h (language_data): Delete la_compute_program field.
8721 (language_defn::compute_program): New member function.
8722 * m2-lang.c (m2_language_data): Delete la_compute_program
8723 initializer.
8724 * objc-lang.c (objc_language_data): Likewise.
8725 * opencl-lang.c (opencl_language_data): Likewise.
8726 * p-lang.c (pascal_language_data): Likewise.
8727 * rust-lang.c (rust_language_data): Likewise.
8728
8729 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8730
8731 * ada-lang.c (ada_language_data) Delete
8732 la_class_name_from_physname initializer.
8733 * c-lang.c (c_language_data): Likewise.
8734 (cplus_language_data): Likewise.
8735 (cplus_language::class_name_from_physname): New member function.
8736 (asm_language_data): Delete la_class_name_from_physname
8737 initializer.
8738 (minimal_language_data): Likewise.
8739 * d-lang.c (d_language_data): Likewise.
8740 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8741 method on language_defn class.
8742 (guess_full_die_structure_name): Likewise.
8743 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8744 initializer.
8745 * go-lang.c (go_language_data): Likewise.
8746 * language.c (language_class_name_from_physname): Delete.
8747 (unk_lang_class_name): Delete.
8748 (unknown_language_data): Delete la_class_name_from_physname
8749 initializer.
8750 (auto_language_data): Likewise.
8751 * language.h (language_data): Delete la_class_name_from_physname
8752 field.
8753 (language_defn::class_name_from_physname): New function.
8754 (language_class_name_from_physname): Delete declaration.
8755 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8756 initializer.
8757 * objc-lang.c (objc_language_data): Likewise.
8758 * opencl-lang.c (opencl_language_data): Likewise.
8759 * p-lang.c (pascal_language_data): Likewise.
8760 * rust-lang.c (rust_language_data): Likewise.
8761
8762 2020-06-16 Tom Tromey <tom@tromey.com>
8763
8764 * tui/tui-data.h (STATUS_NAME): New macro.
8765 * tui/tui-layout.c (tui_remove_some_windows)
8766 (initialize_known_windows, tui_register_window)
8767 (tui_layout_split::remove_windows, initialize_layouts)
8768 (tui_new_layout_command): Don't use hard-coded window names.
8769
8770 2020-06-16 Tom Tromey <tom@tromey.com>
8771
8772 PR tui/25348:
8773 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8774 tui_initialize_readline. Only run once. Call rl_initialize.
8775 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8776 tui_initialize_readline.
8777 * tui/tui-io.c (tui_setup_io): Call
8778 tui_ensure_readline_initialized.
8779 * tui/tui-interp.c (tui_interp::init): Update.
8780
8781 2020-06-16 Tom Tromey <tom@tromey.com>
8782
8783 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8784 Also preserve the status window.
8785
8786 2020-06-16 Tom Tromey <tom@tromey.com>
8787
8788 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8789 where m_window==nullptr.
8790
8791 2020-06-15 Tom Tromey <tromey@adacore.com>
8792
8793 * windows-nat.c (windows_nat::handle_output_debug_string):
8794 Update.
8795 (windows_nat::handle_ms_vc_exception): Update.
8796 * target.h (target_read_string): Change API.
8797 * target.c (target_read_string): Change API.
8798 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8799 Update.
8800 * solib-frv.c (frv_current_sos): Update.
8801 * solib-dsbt.c (dsbt_current_sos): Update.
8802 * solib-darwin.c (darwin_current_sos): Update.
8803 * linux-thread-db.c (inferior_has_bug): Update.
8804 * expprint.c (print_subexp_standard): Update.
8805 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8806 (ada_exception_message_1): Update.
8807
8808 2020-06-15 Tom Tromey <tromey@adacore.com>
8809
8810 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8811
8812 2020-06-15 Tom Tromey <tromey@adacore.com>
8813
8814 * valprint.c (read_string): Update comment.
8815 * target.c (MIN): Remove.
8816 (target_read_string): Rewrite.
8817
8818 2020-06-15 Tom Tromey <tromey@adacore.com>
8819
8820 * corefile.c (read_memory_string): Remove.
8821 * ada-valprint.c (ada_value_print_ptr): Update.
8822 * ada-lang.h (ada_tag_name): Change return type.
8823 * ada-lang.c (type_from_tag): Update.
8824 (ada_tag_name_from_tsd): Change return type. Use
8825 target_read_string.
8826 (ada_tag_name): Likewise.
8827 * gdbcore.h (read_memory_string): Don't declare.
8828
8829 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8830
8831 * symtab.c (rbreak_command): Ignore Windows drive colon.
8832
8833 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * NEWS: Mention removed GDBserver host support.
8836
8837 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8838
8839 * features/riscv/rebuild-csr-xml.sh: Updated.
8840
8841 2020-06-11 Tom Tromey <tom@tromey.com>
8842
8843 PR gdb/18318:
8844 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8845
8846 2020-06-09 Jonny Grant <jg@jguk.org>
8847 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8848
8849 * main.c (captured_main_1): Don't print new line after help.
8850 (print_gdb_help): add mailing list and IRC channel information
8851 to --help. Add new lines between items in the footer. Remove
8852 quotes around bug url.
8853
8854 2020-06-11 Keith Seitz <keiths@redhat.com>
8855
8856 PR gdb/21356
8857 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8858 Resolve typedefs for type length calculations.
8859
8860 2020-06-10 Tom de Vries <tdevries@suse.de>
8861
8862 PR ada/24713
8863 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8864 (write_psymbols): Enable .gdb_index for ada.
8865 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8866 ada.
8867
8868 2020-06-10 Tom de Vries <tdevries@suse.de>
8869
8870 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8871 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8872 namei" instead of "const char *name" argument.
8873 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8874 dw2_symtab_iter_init.
8875
8876 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8877
8878 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8879 to use type::field and field::type instead.
8880
8881 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8882
8883 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8884 to use field::type instead.
8885
8886 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8887
8888 * gdbtypes.h (struct field) <type, set_type>: New methods.
8889 Rename `type` field to...
8890 <m_type>: ... this. Change references throughout to use type or
8891 set_type methods.
8892 (FIELD_TYPE): Use field::type. Change call sites that modify
8893 the field's type to use field::set_type instead.
8894
8895 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8896
8897 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8898 to use type::index_type instead.
8899
8900 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8901
8902 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8903 methods.
8904 (TYPE_INDEX_TYPE): Use type::index_type.
8905 * gdbtypes.c (create_array_type_with_stride): Likewise.
8906
8907 2020-06-07 Tom Tromey <tom@tromey.com>
8908
8909 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8910 parameter.
8911 (generic_value_print): Update.
8912
8913 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 Revert commit 982a38f60b0.
8916 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8917
8918 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8919
8920 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8921 avoid use after free.
8922
8923 2020-06-05 Tom de Vries <tdevries@suse.de>
8924
8925 * NEWS: Fix typos.
8926
8927 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8928
8929 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8930 the per_bfd object.
8931 (dwarf2_read_debug_names): Likewise.
8932 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8933 object when re-using a per_bfd object with an index.
8934
8935 2020-06-03 Tom de Vries <tdevries@suse.de>
8936
8937 PR symtab/26046
8938 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8939 children for C++.
8940 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8941 DW_TAG_subprogram.
8942
8943 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8944
8945 * ada-lang.c (ada_language_data): Delete skip_trampoline
8946 initializer.
8947 * c-lang.c (c_language_data): Likewise.
8948 (cplus_language_data): Likewise.
8949 (cplus_language::skip_trampoline): New member function.
8950 (asm_language_data): Delete skip_trampoline initializer.
8951 (minimal_language_data): Likewise.
8952 * d-lang.c (d_language_data): Likewise.
8953 * f-lang.c (f_language_data): Likewise.
8954 * go-lang.c (go_language_data): Likewise.
8955 * language.c (unk_lang_trampoline): Delete function.
8956 (skip_language_trampoline): Update.
8957 (unknown_language_data): Delete skip_trampoline initializer.
8958 (auto_language_data): Likewise.
8959 * language.h (language_data): Delete skip_trampoline field.
8960 (language_defn::skip_trampoline): New function.
8961 * m2-lang.c (m2_language_data): Delete skip_trampoline
8962 initializer.
8963 * objc-lang.c (objc_skip_trampoline): Delete function, move
8964 implementation to objc_language::skip_trampoline.
8965 (objc_language_data): Delete skip_trampoline initializer.
8966 (objc_language::skip_trampoline): New member function with
8967 implementation from objc_skip_trampoline.
8968 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8969 initializer.
8970 * p-lang.c (pascal_language_data): Likewise.
8971 * rust-lang.c (rust_language_data): Likewise.
8972
8973 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8974
8975 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8976 (ada_language::demangle): New member function.
8977 * c-lang.c (c_language_data): Delete la_demangle initializer.
8978 (cplus_language_data): Delete la_demangle initializer.
8979 (cplus_language::demangle): New member function.
8980 (asm_language_data): Delete la_demangle initializer.
8981 (minimal_language_data): Delete la_demangle initializer.
8982 * d-lang.c (d_language_data): Delete la_demangle initializer.
8983 (d_language::demangle): New member function.
8984 * f-lang.c (f_language_data): Delete la_demangle initializer.
8985 (f_language::demangle): New member function.
8986 * go-lang.c (go_language_data): Delete la_demangle initializer.
8987 (go_language::demangle): New member function.
8988 * language.c (language_demangle): Update.
8989 (unk_lang_demangle): Delete.
8990 (unknown_language_data): Delete la_demangle initializer.
8991 (unknown_language::demangle): New member function.
8992 (auto_language_data): Delete la_demangle initializer.
8993 (auto_language::demangle): New member function.
8994 * language.h (language_data): Delete la_demangle field.
8995 (language_defn::demangle): New function.
8996 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8997 * objc-lang.c (objc_language_data): Delete la_demangle
8998 initializer.
8999 (objc_language::demangle): New member function.
9000 * opencl-lang.c (opencl_language_data): Delete la_demangle
9001 initializer.
9002 * p-lang.c (pascal_language_data): Likewise.
9003 * rust-lang.c (rust_language_data): Likewise.
9004 (rust_language::demangle): New member function.
9005
9006 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9007
9008 * ada-lang.c (ada_language_data): Delete la_print_type
9009 initializer.
9010 (ada_language::print_type): New member function.
9011 * c-lang.c (c_language_data): Delete la_print_type initializer.
9012 (c_language::print_type): New member function.
9013 (cplus_language_data): Delete la_print_type initializer.
9014 (cplus_language::print_type): New member function.
9015 (asm_language_data): Delete la_print_type initializer.
9016 (asm_language::print_type): New member function.
9017 (minimal_language_data): Delete la_print_type initializer.
9018 (minimal_language::print_type): New member function.
9019 * d-lang.c (d_language_data): Delete la_print_type initializer.
9020 (d_language::print_type): New member function.
9021 * f-lang.c (f_language_data): Delete la_print_type initializer.
9022 (f_language::print_type): New member function.
9023 * go-lang.c (go_language_data): Delete la_print_type initializer.
9024 (go_language::print_type): New member function.
9025 * language.c (unk_lang_print_type): Delete.
9026 (unknown_language_data): Delete la_print_type initializer.
9027 (unknown_language::print_type): New member function.
9028 (auto_language_data): Delete la_print_type initializer.
9029 (auto_language::print_type): New member function.
9030 * language.h (language_data): Delete la_print_type field.
9031 (language_defn::print_type): New function.
9032 (LA_PRINT_TYPE): Update.
9033 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9034 (m2_language::print_type): New member function.
9035 * objc-lang.c (objc_language_data): Delete la_print_type
9036 initializer.
9037 (objc_language::print_type): New member function.
9038 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9039 to opencl_language::print_type.
9040 (opencl_language_data): Delete la_print_type initializer.
9041 (opencl_language::print_type): New member function, implementation
9042 from opencl_print_type.
9043 * p-lang.c (pascal_language_data): Delete la_print_type
9044 initializer.
9045 (pascal_language::print_type): New member function.
9046 * rust-lang.c (rust_print_type): Delete, implementation moved to
9047 rust_language::print_type.
9048 (rust_language_data): Delete la_print_type initializer.
9049 (rust_language::print_type): New member function, implementation
9050 from rust_print_type.
9051
9052 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9053
9054 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9055 implementation moves to...
9056 (ada_language::sniff_from_mangled_name): ...here. Update return
9057 type.
9058 (ada_language_data): Delete la_sniff_from_mangled_name
9059 initializer.
9060 * c-lang.c (c_language_data): Likewise.
9061 (cplus_language_data): Likewise.
9062 (cplus_language::sniff_from_mangled_name): New member function,
9063 implementation taken from gdb_sniff_from_mangled_name.
9064 (asm_language_data): Delete la_sniff_from_mangled_name
9065 initializer.
9066 (minimal_language_data): Likewise.
9067 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9068 implementation moves to cplus_language::sniff_from_mangled_name.
9069 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9070 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9071 moves to...
9072 (d_language::sniff_from_mangled_name): ...here.
9073 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9074 * f-lang.c (f_language_data): Likewise.
9075 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9076 moves to...
9077 (go_language::sniff_from_mangled_name): ...here.
9078 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9079 * language.c (language_sniff_from_mangled_name): Delete.
9080 (unknown_language_data): Delete la_sniff_from_mangled_name
9081 initializer.
9082 (auto_language_data): Likewise.
9083 * language.h (language_data): Delete la_sniff_from_mangled_name
9084 field.
9085 (language_defn::sniff_from_mangled_name): New function.
9086 (language_sniff_from_mangled_name): Delete declaration.
9087 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9088 field.
9089 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9090 implementation moves to...
9091 (objc_language::sniff_from_mangled_name): ...here.
9092 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9093 * opencl-lang.c (opencl_language_data): Likewise.
9094 * p-lang.c (pascal_language_data): Likewise.
9095 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9096 implementation moves to...
9097 (rust_language::sniff_from_mangled_name): ...here.
9098 (rust_language_data): Delete la_sniff_from_mangled_name
9099 initializer.
9100 * symtab.c (symbol_find_demangled_name): Call
9101 sniff_from_mangled_name member function.
9102
9103 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9106 initializer.
9107 * c-lang.c (c_language_data): Likewise.
9108 (cplus_language_data): Likewise.
9109 (cplus_language::search_name_hash): New member function.
9110 (asm_language_data): Delete la_search_name_hash initializer.
9111 (minimal_language_data): Likewise.
9112 * d-lang.c (d_language_data): Likewise.
9113 * dictionary.c (default_search_name_hash): Rename to...
9114 (language_defn::search_name_hash): ...this.
9115 * f-lang.c (f_language_data): Likewise.
9116 (f_language::search_name_hash): New member function.
9117 * go-lang.c (go_language_data): Delete la_search_name_hash
9118 initializer.
9119 * language.c (unknown_language_data): Likewise.
9120 (auto_language_data): Likewise.
9121 * language.h (struct language_data): Delete la_search_name_hash
9122 field.
9123 (language_defn::search_name_hash): Declare new member function.
9124 (default_search_name_hash): Delete declaration.
9125 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9126 initializer.
9127 * objc-lang.c (objc_language_data): Likewise.
9128 * opencl-lang.c (opencl_language_data): Likewise.
9129 * p-lang.c (pascal_language_data): Likewise.
9130 * rust-lang.c (rust_language_data): Likewise.
9131 * symtab.c (search_name_hash): Update call.
9132
9133 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9134
9135 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9136 initializer.
9137 * c-lang.c (class compile_instance): Declare.
9138 (c_language_data): Delete la_get_compile_instance initializer.
9139 (c_language::get_compile_instance): New member function.
9140 (cplus_language_data): Delete la_get_compile_instance initializer.
9141 (cplus_language::get_compile_instance): New member function.
9142 (asm_language_data): Delete la_get_compile_instance initializer.
9143 (minimal_language_data): Likewise.
9144 * c-lang.h (c_get_compile_context): Update comment.
9145 (cplus_get_compile_context): Update comment.
9146 * compile/compile.c (compile_to_object): Update calls, don't rely
9147 on function pointer being NULL.
9148 * d-lang.c (d_language_data): Delete la_get_compile_instance
9149 initializer.
9150 * f-lang.c (f_language_data): Likewise.
9151 * go-lang.c (go_language_data): Likewise.
9152 * language.c (unknown_language_data): Likewise.
9153 (auto_language_data): Likewise.
9154 * language.h (language_data): Delete la_get_compile_instance field.
9155 (language_defn::get_compile_instance): New member function.
9156 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9157 initializer.
9158 * objc-lang.c (objc_language_data): Likewise.
9159 * opencl-lang.c (opencl_language_data): Likewise.
9160 * p-lang.c (pascal_language_data): Likewise.
9161 * rust-lang.c (rust_language_data): Likewise.
9162
9163 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9164
9165 * ada-lang.c (ada_add_all_symbols): Update comment.
9166 (ada_iterate_over_symbols): Delete, move implementation to...
9167 (ada_language::iterate_over_symbols): ...here, a new member
9168 function, rewrite to use range based for loop.
9169 (ada_language_data): Delete la_iterate_over_symbols initializer.
9170 * c-lang.c (c_language_data): Likewise.
9171 (cplus_language_data): Likewise.
9172 (asm_language_data): Likewise.
9173 (minimal_language_data): Likewise.
9174 * d-lang.c (d_language_data): Likewise.
9175 * f-lang.c (f_language_data): Likewise.
9176 * go-lang.c (go_language_data): Likewise.
9177 * language.c (unknown_language_data): Likewise.
9178 (auto_language_data): Likewise.
9179 * language.h (language_data): Delete la_iterate_over_symbols field.
9180 (language_defn::iterate_over_symbols): New member function.
9181 (LA_ITERATE_OVER_SYMBOLS): Update.
9182 * linespec.c (iterate_over_all_matching_symtabs): Update.
9183 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9184 initializer.
9185 * objc-lang.c (objc_language_data): Likewise.
9186 * opencl-lang.c (opencl_language_data): Likewise.
9187 * p-lang.c (pascal_language_data): Likewise.
9188 * rust-lang.c (rust_language_data): Likewise.
9189
9190 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9191
9192 * ada-lang.c (ada_language_data): Delete
9193 la_lookup_transparent_type initializer.
9194 * c-lang.c (c_language_data): Likewise.
9195 (cplus_language_data): Likewise.
9196 (cplus_language::lookup_transparent_type): New member function.
9197 (asm_language_data): Delete la_lookup_transparent_type
9198 initializer.
9199 (minimal_language_data): Likewise.
9200 * d-lang.c (d_language_data): Likewise.
9201 * f-lang.c (f_language_data): Likewise.
9202 * go-lang.c (go_language_data): Likewise.
9203 * language.c (unknown_language_data): Likewise.
9204 (auto_language_data): Likewise.
9205 * language.h (struct language_data): Delete
9206 la_lookup_transparent_type field.
9207 (language_defn::lookup_transparent_type): New member function.
9208 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9209 initializer.
9210 * objc-lang.c (objc_language_data): Likewise.
9211 * opencl-lang.c (opencl_language_data): Likewise.
9212 * p-lang.c (pascal_language_data): Likewise.
9213 * rust-lang.c (rust_language_data): Likewise.
9214 * symtab.c (symbol_matches_domain): Update call.
9215
9216 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * ada-lang.c (ada_language_arch_info): Delete function, move
9219 implementation to...
9220 (ada_language::language_arch_info): ...here, a new member
9221 function.
9222 (ada_language_data): Delete la_language_arch_info.
9223 * c-lang.c (c_language_data): Likewise.
9224 (c_language::language_arch_info): New member function.
9225 (cplus_language_arch_info): Delete function, move
9226 implementation to...
9227 (cplus_language::language_arch_info): ...here, a new member
9228 function.
9229 (cplus_language_data): Delete la_language_arch_info.
9230 (asm_language_data): Likewise.
9231 (asm_language::language_arch_info): New member function.
9232 (minimal_language_data): Delete la_language_arch_info.
9233 (minimal_language::language_arch_info): New member function.
9234 * d-lang.c (d_language_arch_info): Delete function, move
9235 implementation to...
9236 (d_language::language_arch_info): ...here, a new member
9237 function.
9238 (d_language_data): Delete la_language_arch_info.
9239 * f-lang.c (f_language_arch_info): Delete function, move
9240 implementation to...
9241 (f_language::language_arch_info): ...here, a new member
9242 function.
9243 (f_language_data): Delete la_language_arch_info.
9244 * go-lang.c (go_language_arch_info): Delete function, move
9245 implementation to...
9246 (go_language::language_arch_info): ...here, a new member
9247 function.
9248 (go_language_data): Delete la_language_arch_info.
9249 * language.c (unknown_language_data): Likewise.
9250 (unknown_language::language_arch_info): New member function.
9251 (auto_language_data): Delete la_language_arch_info.
9252 (auto_language::language_arch_info): New member function.
9253 (language_gdbarch_post_init): Update call to
9254 la_language_arch_info.
9255 * language.h (language_data): Delete la_language_arch_info
9256 function pointer.
9257 (language_defn::language_arch_info): New function.
9258 * m2-lang.c (m2_language_arch_info): Delete function, move
9259 implementation to...
9260 (m2_language::language_arch_info): ...here, a new member
9261 function.
9262 (m2_language_data): Delete la_language_arch_info.
9263 * objc-lang.c (objc_language_arch_info): Delete function, move
9264 implementation to...
9265 (objc_language::language_arch_info): ...here, a new member
9266 function.
9267 (objc_language_data): Delete la_language_arch_info.
9268 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9269 implementation to...
9270 (opencl_language::language_arch_info): ...here, a new member
9271 function.
9272 (opencl_language_data): Delete la_language_arch_info.
9273 * p-lang.c (pascal_language_arch_info): Delete function, move
9274 implementation to...
9275 (pascal_language::language_arch_info): ...here, a new member
9276 function.
9277 (pascal_language_data): Delete la_language_arch_info.
9278 * rust-lang.c (rust_language_arch_info): Delete function, move
9279 implementation to...
9280 (rust_language::language_arch_info): ...here, a new member
9281 function.
9282 (rust_language_data): Delete la_language_arch_info.
9283
9284 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9285
9286 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9287 initializer.
9288 * c-lang.c (c_language_data): Likewise.
9289 (cplus_language_data): Likewise.
9290 (cplus_language::pass_by_reference_info): New method.
9291 (asm_language_data): Delete la_pass_by_reference initializer.
9292 (minimal_language_data): Likewise.
9293 * cp-abi.c (cp_pass_by_reference): Remove use of
9294 default_pass_by_reference.
9295 * d-lang.c (d_language_data): Likewise.
9296 * f-lang.c (f_language_data): Likewise.
9297 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9298 default_pass_by_reference.
9299 * go-lang.c (go_language_data): Likewise.
9300 * language.c (language_pass_by_reference): Update.
9301 (default_pass_by_reference): Delete.
9302 (unknown_language_data): Delete la_pass_by_reference
9303 initializer.
9304 (auto_language_data): Likewise.
9305 * language.h (struct language_data): Delete la_pass_by_reference
9306 field.
9307 (language_defn::pass_by_reference_info): New member function.
9308 (default_pass_by_reference): Delete declaration.
9309 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9310 initializer.
9311 * objc-lang.c (objc_language_data): Likewise.
9312 * opencl-lang.c (opencl_language_data): Likewise.
9313 * p-lang.c (pascal_language_data): Likewise.
9314 * rust-lang.c (rust_language_data): Likewise.
9315
9316 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9317
9318 * ada-lang.c (ada_read_var_value): Delete function, move
9319 implementation to...
9320 (ada_language::read_var_value): ...here.
9321 (ada_language_data): Delete la_read_var_value initializer.
9322 * c-lang.c (c_language_data): Likewise.
9323 (cplus_language_data): Likewise.
9324 (minimal_language_data): Likewise.
9325 * d-lang.c (d_language_data): Likewise.
9326 * f-lang.c (f_language_data): Likewise.
9327 * findvar.c (default_read_var_value): Rename to...
9328 (language_defn::read_var_value): ...this.
9329 * findvar.c (read_var_value): Update header comment, and change to
9330 call member function instead of function pointer.
9331 * go-lang.c (go_language_data): Likewise.
9332 * language.c (unknown_language_data): Delete la_read_var_value
9333 initializer.
9334 (auto_language_data): Likewise.
9335 * language.h (struct language_data): Delete la_read_var_value
9336 field.
9337 (language_defn::read_var_value): New member function.
9338 (default_read_var_value): Delete declaration.
9339 * m2-lang.c (m2_language_data): Delete la_read_var_value
9340 initializer.
9341 * objc-lang.c (objc_language_data): Likewise.
9342 * opencl-lang.c (opencl_language_data): Likewise.
9343 * p-lang.c (pascal_language_data): Likewise.
9344 * rust-lang.c (rust_language_data): Likewise.
9345 * value.h (default_read_var_value): Delete declaration.
9346
9347 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9348
9349 * ada-lang.c (ada_print_array_index): Delete function, move
9350 implementation to...
9351 (ada_language::print_array_index): ...here.
9352 (ada_language_data): Delete la_print_array_index initializer.
9353 * c-lang.c (c_language_data): Likewise.
9354 (cplus_language_data): Likewise.
9355 (minimal_language_data): Likewise.
9356 * d-lang.c (d_language_data): Likewise.
9357 * f-lang.c (f_language_data): Likewise.
9358 * go-lang.c (go_language_data): Likewise.
9359 * language.c (default_print_array_index): Delete function, move
9360 implementation to...
9361 (language_defn::print_array_index): ...here.
9362 (unknown_language_data): Delete la_print_array_index initializer.
9363 (auto_language_data): Likewise.
9364 * language.h (struct language_data): Delete la_print_array_index
9365 field.
9366 (language_defn::print_array_index): New member function.
9367 (LA_PRINT_ARRAY_INDEX): Update.
9368 (default_print_array_index): Delete declaration.
9369 * m2-lang.c (m2_language_data): Delete la_print_array_index
9370 initializer.
9371 * objc-lang.c (objc_language_data): Likewise.
9372 * opencl-lang.c (opencl_language_data): Likewise.
9373 * p-lang.c (pascal_language_data): Likewise.
9374 * rust-lang.c (rust_language_data): Likewise.
9375
9376 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * gdb/ada-lang.c (ada_language_defn): Convert to...
9379 (ada_language_data): ...this.
9380 (class ada_language): New class.
9381 (ada_language_defn): New static global.
9382 * gdb/c-lang.c (c_language_defn): Convert to...
9383 (c_language_data): ...this.
9384 (class c_language): New class.
9385 (c_language_defn): New static global.
9386 (cplus_language_defn): Convert to...
9387 (cplus_language_data): ...this.
9388 (class cplus_language): New class.
9389 (cplus_language_defn): New static global.
9390 (asm_language_defn): Convert to...
9391 (asm_language_data): ...this.
9392 (class asm_language): New class.
9393 (asm_language_defn): New static global.
9394 (minimal_language_defn): Convert to...
9395 (minimal_language_data): ...this.
9396 (class minimal_language): New class.
9397 (minimal_language_defn): New static global.
9398 * gdb/d-lang.c (d_language_defn): Convert to...
9399 (d_language_data): ...this.
9400 (class d_language): New class.
9401 (d_language_defn): New static global.
9402 * gdb/f-lang.c (f_language_defn): Convert to...
9403 (f_language_data): ...this.
9404 (class f_language): New class.
9405 (f_language_defn): New static global.
9406 * gdb/go-lang.c (go_language_defn): Convert to...
9407 (go_language_data): ...this.
9408 (class go_language): New class.
9409 (go_language_defn): New static global.
9410 * gdb/language.c (unknown_language_defn): Remove declaration.
9411 (current_language): Initialize to nullptr, real initialization is
9412 moved to _initialize_language.
9413 (languages): Delete global.
9414 (language_defn::languages): Define.
9415 (set_language_command): Use language_defn::languages.
9416 (set_language): Likewise.
9417 (range_error): Likewise.
9418 (language_enum): Likewise.
9419 (language_def): Likewise.
9420 (add_set_language_command): Use language_def::languages for the
9421 language list, and language_def to lookup language pointers.
9422 (skip_language_trampoline): Use language_defn::languages.
9423 (unknown_language_defn): Convert to...
9424 (unknown_language_data): ...this.
9425 (class unknown_language): New class.
9426 (unknown_language_defn): New static global.
9427 (auto_language_defn): Convert to...
9428 (auto_language_data): ...this.
9429 (class auto_language): New class.
9430 (auto_language_defn): New static global.
9431 (language_gdbarch_post_init): Use language_defn::languages.
9432 (_initialize_language): Initialize current_language.
9433 * gdb/language.h (struct language_defn): Rename to...
9434 (struct language_data): ...this.
9435 (struct language_defn): New.
9436 (auto_language_defn): Delete.
9437 (unknown_language_defn): Delete.
9438 (minimal_language_defn): Delete.
9439 (ada_language_defn): Delete.
9440 (asm_language_defn): Delete.
9441 (c_language_defn): Delete.
9442 (cplus_language_defn): Delete.
9443 (d_language_defn): Delete.
9444 (f_language_defn): Delete.
9445 (go_language_defn): Delete.
9446 (m2_language_defn): Delete.
9447 (objc_language_defn): Delete.
9448 (opencl_language_defn): Delete.
9449 (pascal_language_defn): Delete.
9450 (rust_language_defn): Delete.
9451 * gdb/m2-lang.c (m2_language_defn): Convert to...
9452 (m2_language_data): ...this.
9453 (class m2_language): New class.
9454 (m2_language_defn): New static global.
9455 * gdb/objc-lang.c (objc_language_defn): Convert to...
9456 (objc_language_data): ...this.
9457 (class objc_language): New class.
9458 (objc_language_defn): New static global.
9459 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9460 (opencl_language_data): ...this.
9461 (class opencl_language): New class.
9462 (opencl_language_defn): New static global.
9463 * gdb/p-lang.c (pascal_language_defn): Convert to...
9464 (pascal_language_data): ...this.
9465 (class pascal_language): New class.
9466 (pascal_language_defn): New static global.
9467 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9468 language pointer, update comment format.
9469 * gdb/rust-lang.c (rust_language_defn): Convert to...
9470 (rust_language_data): ...this.
9471 (class rust_language): New class.
9472 (rust_language_defn): New static global.
9473
9474 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9477 member variable.
9478 <m_stmt_at_address>: New member variable.
9479 (lnp_state_machine::record_line): Don't record some lines, update
9480 tracking of is_stmt at the same address.
9481 (lnp_state_machine::lnp_state_machine): Initialise new member
9482 variables.
9483
9484 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9485
9486 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9487 "-include gnu-nat-mig.h".
9488 * gnu-nat-mig.h: New file.
9489 * gnu-nat.c: Include "gnu-nat-mig.h".
9490 (exc_server, msg_reply_server, notify_server,
9491 process_reply_server): Remove declarations.
9492
9493 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9494
9495 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9496 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9497 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9498 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9499 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9500 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9501 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9502 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9503 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9504 to gnu_nat_target class.
9505 * gnu-nat.c: Likewise.
9506 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9507 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9508 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9509 object.
9510 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9511 instead of `gnu_target'.
9512
9513 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9514
9515 * i386-gnu-tdep.c: Include "gdbcore.h"
9516 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9517 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9518 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9519 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9520 i386_gnu_sigcontext_addr): New functions
9521 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9522 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9523 tdep.
9524
9525 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9526
9527 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9528 before fork_inferior call. Avoid calling it if target_is_pushed returns
9529 true.
9530
9531 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9532
9533 * gnu-nat.h (gnu_target): New variable declaration.
9534 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9535 gnu_target.
9536 * gnu-nat.c (gnu_target): New variable.
9537 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9538 add_thread_silent, and add_thread calls.
9539 (gnu_nat_target::create_inferior): Pass gnu_target to
9540 add_thread_silent, thread_change_ptid call.
9541 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9542 call.
9543
9544 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9545
9546 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9547 (gnu_nat_target::find_memory_regions): Remove unused
9548 `old_address' variable.
9549
9550 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9551
9552 * gnu-nat.c: Include "gdbarch.h".
9553
9554 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9555
9556 * reply_mig_hack.awk (Error return): Cast function through
9557 void *, to bypass compiler function call check.
9558
9559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9560
9561 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9562 $(srcdir)/reply_mig_hack.awk.
9563
9564 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9565
9566 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9567
9568 2020-05-30 Jonny Grant <jg@jguk.org>
9569
9570 * configure.ac (ACX_BUGURL): change bug URL to https.
9571
9572 2020-05-30 Pedro Alves <palves@redhat.com>
9573
9574 * cp-support.c (replace_typedefs_template): New.
9575 (replace_typedefs_qualified_name): Handle
9576 DEMANGLE_COMPONENT_TEMPLATE.
9577
9578 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9579
9580 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9581 dwarf2/index-cache.h, dwarf2/index-write.c,
9582 dwarf2/index-write.h, dwarf2/line-header.c,
9583 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9584 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9585 variables and fields from `dwarf2_per_objfile` to just
9586 `per_objfile` throughout.
9587
9588 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9591 <push_dwarf_reg_entry_value>: Add comment.
9592
9593 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9594 Keith Seitz <keiths@redhat.com>
9595
9596 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9597 instead of PyEval_ReleaseLock.
9598 (class gdbpy_gil): Move to earlier in file.
9599 (finalize_python): Set gdb_python_initialized.
9600 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9601 when not initialized.
9602
9603 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9606 <push_dwarf_reg_entry_value>: Remove assert. Override
9607 per_objfile with caller_per_objfile.
9608
9609 2020-05-28 Tom de Vries <tdevries@suse.de>
9610
9611 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9612 PR gold/15646 workaround to symbol kind "type".
9613
9614 2020-05-27 Tom Tromey <tromey@adacore.com>
9615
9616 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9617
9618 2020-05-27 Tom Tromey <tromey@adacore.com>
9619
9620 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9621 Use htab_find_with_hash.
9622 <add_abbrev>: Remove "abbrev_number" parameter.
9623 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9624 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9625 (hash_abbrev): Add comment.
9626 (abbrev_table::lookup_abbrev): Move to header file.
9627 (abbrev_table::read): Update.
9628
9629 2020-05-27 Tom Tromey <tromey@adacore.com>
9630
9631 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9632 method.
9633 <canonical_name>: New member.
9634 <raw_name>: Rename from "name".
9635 (partial_die_info): Initialize canonical_name.
9636 (scan_partial_symbols): Check raw_name.
9637 (partial_die_parent_scope, partial_die_full_name)
9638 (add_partial_symbol, add_partial_subprogram)
9639 (add_partial_enumeration, load_partial_dies): Use "name" method.
9640 (partial_die_info::name): New method.
9641 (partial_die_info::read, guess_partial_die_structure_name)
9642 (partial_die_info::fixup): Update.
9643
9644 2020-05-27 Tom Tromey <tromey@adacore.com>
9645
9646 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9647 <get_ref_die_offset>: Inline.
9648 <get_ref_die_offset_complaint>: New method.
9649 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9650 (attribute::get_ref_die_offset_complaint): Rename from
9651 get_ref_die_offset. Just issue complaint.
9652
9653 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9654
9655 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9656
9657 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9658
9659 * exec.c (exec_file_attach): Use errno value of first openp failure.
9660
9661 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9662
9663 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9664 Don't close thread handle.
9665
9666 2020-05-27 Tom Tromey <tom@tromey.com>
9667 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9670 shared_ptr.
9671 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9672 member.
9673 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9674 dwarf2_per_bfd_objfile_data_key>: New globals.
9675 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9676 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9677 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9678 shared.
9679 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9680 short-circuit when sharing.
9681 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9682 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9683
9684 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9687 to...
9688 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9689 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9690
9691 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9694 build_name_components, find_name_components_bounds>:
9695 Add per_objfile parameter.
9696 (struct mapped_index) <symbol_name_at>: Likewise.
9697 (struct mapped_debug_names): Remove constructor.
9698 <dwarf2_per_objfile>: Remove field.
9699 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9700 (mapped_index_base::find_name_components_bounds,
9701 mapped_index_base::build_name_components,
9702 dw2_expand_symtabs_matching_symbol): Likewise.
9703 (class mock_mapped_index) <symbol_name_at>: Likewise.
9704 (check_match): Likewise.
9705 (check_find_bounds_finds): Likewise.
9706 (test_mapped_index_find_name_component_bounds): Update.
9707 (CHECK_MATCH): Update.
9708 (dw2_expand_symtabs_matching): Update.
9709 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9710 per_objfile parameter.
9711 <find_vec_in_debug_names>: Likewise.
9712 <m_per_objfile>: New field.
9713 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9714 parameter.
9715 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9716 (dw2_debug_names_iterator::next): Update.
9717 (dw2_debug_names_lookup_symbol): Update.
9718 (dw2_debug_names_expand_symtabs_for_function): Update.
9719 (dw2_debug_names_map_matching_symbols): Update.
9720 (dw2_debug_names_expand_symtabs_matching): Update.
9721 (dwarf2_read_debug_names): Update.
9722
9723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9724
9725 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9726 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9727 move to dwarf2_per_objfile.
9728 <read_in_chain>: Remove.
9729 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9730 remove_all_cus, age_comp_units>: New methods.
9731 <m_dwarf2_cus>: New member.
9732 (struct dwarf2_per_cu_data) <cu>: Remove.
9733 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9734 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9735 moved to methods of dwarf2_per_objfile.
9736 (dwarf2_clear_marks): Remove.
9737 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9738 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9739 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9740 (dwarf2_per_objfile::remove_all_cus): New.
9741 (class free_cached_comp_units) <~free_cached_comp_units>:
9742 Update.
9743 (load_cu): Update.
9744 (dw2_do_instantiate_symtab): Adjust.
9745 (fill_in_sig_entry_from_dwo_entry): Adjust.
9746 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9747 (cutu_reader::cutu_reader): Likewise.
9748 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9749 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9750 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9751 and dwarf2_per_objfile::age_comp_units.
9752 (load_partial_comp_unit): Update.
9753 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9754 (process_queue): Likewise.
9755 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9756 backlink.
9757 (dwarf2_read_addr_index): Likewise.
9758 (follow_die_offset): Likewise.
9759 (dwarf2_fetch_die_loc_sect_off): Likewise.
9760 (dwarf2_fetch_constant_bytes): Likewise.
9761 (dwarf2_fetch_die_type_sect_off): Likewise.
9762 (follow_die_sig_1): Likewise.
9763 (load_full_type_unit): Likewise.
9764 (read_signatured_type): Likewise.
9765 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9766 (dwarf2_cu::~dwarf2_cu): Remove.
9767 (dwarf2_per_objfile::get_cu): New.
9768 (dwarf2_per_objfile::set_cu): New.
9769 (age_cached_comp_units): Rename to...
9770 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9771 to std::unordered_map.
9772 (free_one_cached_comp_unit): Rename to...
9773 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9774 to std::unordered_map.
9775 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9776 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9777 a dwarf2_per_objfile in data.
9778 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9779 (dwarf2_clear_marks): Remove.
9780
9781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9784 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9785 (init_tu_and_read_dwo_dies): Likewise.
9786 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9787 (cutu_reader::cutu_reader): Likewise.
9788 (load_partial_comp_unit): Likewise.
9789 (process_psymtab_comp_unit): Update.
9790 (build_type_psymtabs_1): Update.
9791 (process_skeletonless_type_unit): Update.
9792 (load_full_comp_unit): Update.
9793 (find_partial_die): Update.
9794 (dwarf2_read_addr_index): Update.
9795 (read_signatured_type): Update.
9796
9797 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9798
9799 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9800 m_header_read_in>: New fields.
9801 <get_header>: New method.
9802 * dwarf2/read.c (per_cu_header_read_in): Remove.
9803 (dwarf2_per_cu_data::get_header): New.
9804 (dwarf2_per_cu_data::addr_size): Update.
9805 (dwarf2_per_cu_data::offset_size): Update.
9806 (dwarf2_per_cu_data::ref_addr_size): Update.
9807
9808 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9809
9810 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9811 (dw2_do_instantiate_symtab): Update.
9812 (queue_and_load_all_dwo_tus): Change parameter from
9813 dwarf2_per_cu_data to dwarf2_cu.
9814 (dwarf2_fetch_die_loc_sect_off): Update.
9815 (dwarf2_fetch_constant_bytes): Update.
9816 (dwarf2_fetch_die_type_sect_off): Update.
9817
9818 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9819
9820 * dwarf2/read.c (process_full_comp_unit,
9821 process_full_type_unit): Remove per_cu, per_objfile paramters.
9822 Add dwarf2_cu parameter.
9823 (process_queue): Update.
9824
9825 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9826
9827 * dwarf2/read.c (create_cu_from_index_list): Replace
9828 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9829 (create_cus_from_index_list): Likewise.
9830 (create_cus_from_index): Likewise.
9831 (create_signatured_type_table_from_index): Likewise.
9832 (create_cus_from_debug_names_list): Likewise.
9833 (create_cus_from_debug_names): Likewise.
9834 (dwarf2_read_gdb_index): Update.
9835 (dwarf2_read_debug_names): Update.
9836
9837 2020-05-27 Tom Tromey <tom@tromey.com>
9838 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * dwarf2/read.h (struct dwarf2_per_objfile)
9841 <get_type_for_signatured_type, set_type_for_signatured_type>:
9842 New methods.
9843 <m_type_map>: New member.
9844 (struct signatured_type) <type>: Remove.
9845 * dwarf2/read.c
9846 (dwarf2_per_objfile::get_type_for_signatured_type,
9847 dwarf2_per_objfile::set_type_for_signatured_type): New.
9848 (get_signatured_type): Use new methods.
9849
9850 2020-05-27 Tom Tromey <tom@tromey.com>
9851 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9854 (struct dwarf2_per_objfile) <type_units>: New member.
9855 <get_type_unit_group_unshareable>: New method.
9856 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9857 num_symtabs, symtabs>: Remove; move to
9858 type_unit_group_unshareable.
9859 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9860 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9861 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9862
9863 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * dwarf2/read.h (struct dwarf2_per_cu_data):
9866 <dwarf2_per_objfile>: Remove.
9867 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9868 dwarf2_per_objfile.
9869 (create_signatured_type_table_from_index): Likewise.
9870 (create_signatured_type_table_from_debug_names): Likewise.
9871 (create_debug_type_hash_table): Likewise.
9872 (fill_in_sig_entry_from_dwo_entry): Likewise.
9873 (create_type_unit_group): Likewise.
9874 (read_comp_units_from_section): Likewise.
9875 (create_cus_hash_table): Likewise.
9876
9877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9878
9879 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9880 dwarf2_per_cu_data::dwarf2_per_objfile.
9881 (compute_compunit_symtab_includes): Likewise.
9882 (dwarf2_cu::start_symtab): Likewise.
9883
9884 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9885
9886 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9887 parameter.
9888 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9889 (read_namespace_alias): Update.
9890 (lookup_die_type): Update.
9891 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9892 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9893 Update.
9894 (disassemble_dwarf_expression): Update.
9895
9896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9897
9898 * dwarf2/read.h (struct dwarf2_queue_item): Add
9899 dwarf2_per_objfile parameter, assign new parameter.
9900 <per_objfile>: New field.
9901 * dwarf2/read.c (free_one_cached_comp_unit): Add
9902 dwarf2_per_objfile parameter.
9903 (queue_comp_unit): Likewise.
9904 (dw2_do_instantiate_symtab): Update.
9905 (process_psymtab_comp_unit): Update.
9906 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9907 (process_imported_unit_die): Update.
9908 (queue_and_load_dwo_tu): Update.
9909 (follow_die_offset): Update.
9910 (follow_die_sig_1): Update.
9911
9912 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9915 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9916 (read_call_site_scope): Assign per_objfile.
9917 (dwarf2_per_cu_data::objfile): Remove.
9918 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9919 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9920 dwarf2_per_objfile parameter.
9921 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9922 dwarf2_per_objfile parameter.
9923 (dwarf_expr_reg_to_entry_parameter): Add output
9924 dwarf2_per_objfile parameter.
9925 (locexpr_get_frame_base): Update.
9926 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9927 <push_dwarf_reg_entry_value>: Update.
9928 <call_site_to_target_addr>: Update.
9929 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9930 parameter.
9931 (value_of_dwarf_reg_entry): Update.
9932 (rw_pieced_value): Update.
9933 (indirect_synthetic_pointer): Update.
9934 (dwarf2_evaluate_property): Update.
9935 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9936 parameter.
9937 (locexpr_read_variable): Update.
9938 (locexpr_get_symbol_read_needs): Update.
9939 (loclist_read_variable): Update.
9940
9941 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9942
9943 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9944 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9945 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9946 parameter.
9947 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9948 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9949 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9950 parameter.
9951 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9952 sect_variable_value): Add dwarf2_per_objfile parameter.
9953 (class dwarf_evaluate_loc_desc) <dwarf_call,
9954 dwarf_variable_value>: Update.
9955 (fetch_const_value_from_synthetic_pointer): Add
9956 dwarf2_per_objfile parameter.
9957 (fetch_const_value_from_synthetic_pointer): Update.
9958 (coerced_pieced_ref): Update.
9959 (class symbol_needs_eval_context) <dwarf_call,
9960 dwarf_variable_value>: Update.
9961 (dwarf2_compile_expr_to_ax): Update.
9962
9963 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9966 parameter.
9967 (dwarf2_evaluate_loc_desc_full): Update.
9968
9969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9970
9971 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9972 parameter.
9973 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9974 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9975 dwarf2_per_objfile parameter.
9976 (decode_debug_loc_dwo_addresses): Likewise.
9977 (dwarf2_find_location_expression): Update.
9978 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9979 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9980 parameter.
9981 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9982 parameter.
9983 (locexpr_describe_location_1): Likewise.
9984 (locexpr_describe_location): Update.
9985
9986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9989 Remove.
9990 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9991 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9992 (dwarf2_compile_property_to_c): Update.
9993 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9994 use text offset from objfile.
9995 (locexpr_tracepoint_var_ref): Update.
9996 (locexpr_generate_c_location): Update.
9997 (loclist_describe_location): Update.
9998 (loclist_tracepoint_var_ref): Update.
9999 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10000 dwarf2_per_objfile parameter.
10001 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10002 use text offset from objfile.
10003 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10004
10005 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * dwarf2/expr.h (struct dwarf_expr_context)
10008 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10009 <offset>: Remove.
10010 <per_objfile>: New member.
10011 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10012 dwarf2_per_objfile parameter. Don't set offset, set
10013 per_objfile.
10014 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10015 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10016 a dwarf2_per_objfile object instead of an offset.
10017 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10018 constructor.
10019 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10020 to dwarf2_expr_executor constructor. Don't set offset.
10021 (dwarf2_fetch_cfa_info): Update.
10022 (struct dwarf2_frame_cache) <text_offset>: Remove.
10023 <per_objfile>: New field.
10024 (dwarf2_frame_cache): Update.
10025 (dwarf2_frame_prev_register): Update.
10026 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10027 <dwarf_evaluate_loc_desc>: Add constructor.
10028 (dwarf2_evaluate_loc_desc_full): Update.
10029 (dwarf2_locexpr_baton_eval): Update.
10030 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10031 Add constructor.
10032 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10033
10034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10037 addr_sized_int_type>: Move to dwarf2_cu.
10038 <int_type>: Move to dwarf2_per_objfile.
10039 (struct dwarf2_per_objfile) <int_type>: Move here.
10040 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10041 addr_sized_int_type>: Move here.
10042 (read_func_scope): Update.
10043 (read_array_type): Update.
10044 (read_tag_string_type): Update.
10045 (attr_to_dynamic_prop): Update.
10046 (dwarf2_per_cu_data::int_type): Rename to...
10047 (dwarf2_per_objfile::int_type): ... this.
10048 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10049 (dwarf2_cu::addr_sized_int_type): ... this.
10050 (read_subrange_type): Update.
10051 (dwarf2_per_cu_data::addr_type): Rename to...
10052 (dwarf2_cu::addr_type): ... this.
10053 (set_die_type): Update.
10054
10055 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10058 data through per_cu->cu.
10059
10060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10063 dwarf2_per_cu_data parameter fo dwarf2_cu.
10064 (lookup_dwo_type_unit): Likewise.
10065 (read_cutu_die_from_dwo): Likewise.
10066 (lookup_dwo_unit): Likewise.
10067 (open_and_init_dwo_file): Likewise.
10068 (lookup_dwo_cutu): Likewise.
10069 (lookup_dwo_comp_unit): Likewise.
10070 (lookup_dwo_type_unit): Likewise.
10071 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10072 (cutu_reader::cutu_reader): Update.
10073
10074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10077 parameter.
10078 (process_full_type_unit): Likewise.
10079 (process_queue): Update.
10080
10081 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * dwarf2/read.c (recursively_compute_inclusions): Add
10084 dwarf2_per_objfile parameter.
10085 (compute_compunit_symtab_includes): Likewise.
10086 (process_cu_includes): Update.
10087
10088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10089
10090 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10091 parameter.
10092 (create_type_unit_group): Update.
10093 (process_psymtab_comp_unit_reader): Update.
10094 (build_type_psymtabs_reader): Update.
10095
10096 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10097
10098 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10099 object through m_this_cu->cu.
10100
10101 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10102
10103 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10104 the info parameter.
10105 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10106
10107 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10108
10109 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10110 per_objfile parameter.
10111 (load_full_type_unit): Add per_objfile parameter.
10112 (read_signatured_type): Likewise.
10113 (load_full_comp_unit): Likewise.
10114 (load_cu): Likewise.
10115 (dw2_do_instantiate_symtab): Likewise.
10116 (dw2_get_file_names): Likewise.
10117 (dw2_map_symtabs_matching_filename): Update.
10118 (dw_expand_symtabs_matching_file_matcher): Update.
10119 (dw2_map_symbol_filenames): Update.
10120 (process_psymtab_comp_unit): Add per_objfile parameter.
10121 (build_type_psymtabs_1): Update.
10122 (process_skeletonless_type_unit): Update.
10123 (dwarf2_build_psymtabs_hard): Update.
10124 (load_partial_comp_unit): Add per_objfile parameter.
10125 (scan_partial_symbols): Update.
10126 (load_full_comp_unit): Add per_objfile parameter.
10127 (process_imported_unit_die): Update.
10128 (create_cus_hash_table): Update.
10129 (find_partial_die): Update.
10130 (dwarf2_read_addr_index): Update.
10131 (follow_die_offset): Update.
10132 (dwarf2_fetch_die_loc_sect_off): Update.
10133 (dwarf2_fetch_constant_bytes): Update.
10134 (dwarf2_fetch_die_type_sect_off): Update.
10135 (follow_die_sig_1): Update.
10136 (load_full_type_unit): Add per_objfile parameter.
10137 (read_signatured_type): Likewise.
10138
10139 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10142 of objfile_name.
10143
10144 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10147 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10148 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10149 field.
10150 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10151 (create_cus_from_index): Update.
10152 (dwarf2_read_gdb_index): Update.
10153 (create_cus_from_debug_names): Update.
10154 (dwarf2_read_debug_names): Update.
10155 (get_abbrev_section_for_cu): Update.
10156 (create_all_comp_units): Update.
10157 (read_attribute_value): Update.
10158 (get_debug_line_section): Update.
10159 * dwarf2/index-cache.c (index_cache::store): Update.
10160 * dwarf2/index-write.c (save_gdb_index_command): Update.
10161 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10162
10163 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10164
10165 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10166 member.
10167 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10168 dwarf2_per_cu_data::per_bfd.
10169 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10170 (create_type_unit_group): Likewise.
10171 (queue_comp_unit): Remove reference to
10172 per_cu->dwarf2_per_objfile.
10173 (maybe_queue_comp_unit): Likewise.
10174 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10175 (create_cus_hash_table): Assign new field.
10176
10177 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10178
10179 * dwarf2/read.c: Replace
10180 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10181 dwarf2_cu->per_objfile throughout.
10182
10183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10184
10185 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10186 parameter, don't use per_cu->dwarf2_per_objfile.
10187 (dw2_instantiate_symtab): Likewise.
10188 (dw2_find_last_source_symtab): Update.
10189 (dw2_map_expand_apply): Update.
10190 (dw2_lookup_symbol): Update.
10191 (dw2_expand_symtabs_for_function): Update.
10192 (dw2_expand_all_symtabs): Update.
10193 (dw2_expand_symtabs_with_fullname): Update.
10194 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10195 don't use per_cu->dwarf2_per_objfile.
10196 (dw2_expand_marked_cus): Update.
10197 (dw2_find_pc_sect_compunit_symtab): Update.
10198 (dw2_debug_names_lookup_symbol): Update.
10199 (dw2_debug_names_expand_symtabs_for_function): Update.
10200 (dw2_debug_names_map_matching_symbols): Update.
10201 (dwarf2_psymtab::expand_psymtab): Update.
10202
10203 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10206 <per_objfile>: New member.
10207 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10208 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10209 call to dwarf2_cu.
10210 (cutu_reader::cutu_reader): Update.
10211 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10212
10213 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10214
10215 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10216 struct dwarf2_per_objfile.
10217 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10218 dwarf2_per_bfd.
10219 * dwarf2/read.c (set_die_type): Update.
10220 (get_die_type_at_offset): Update.
10221
10222 2020-05-27 Tom Tromey <tom@tromey.com>
10223 Simon Marchi <simon.marchi@efficios.com>
10224
10225 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10226 method.
10227 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10228 get_symtab, set_symtab>: New methods.
10229 <m_symtabs>: New field.
10230 (struct dwarf2_psymtab): Derive from partial_symtab.
10231 <readin_p, get_compunit_symtab>: Declare methods.
10232 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10233 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10234 New methods.
10235 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10236 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10237 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10238 (dw2_symtab_iter_next, dw2_print_stats)
10239 (dw2_expand_symtabs_with_fullname)
10240 (dw2_expand_symtabs_matching_one)
10241 (dw_expand_symtabs_matching_file_matcher)
10242 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10243 (dw2_debug_names_iterator::next)
10244 (dw2_debug_names_map_matching_symbols)
10245 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10246 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10247 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10248 New methods.
10249 (get_compunit_symtab, process_full_comp_unit)
10250 (process_full_type_unit): Update.
10251 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10252
10253 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10254
10255 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10256 then introduce a new dwarf2_per_objfile type.
10257 <read_line_string>: Move to the new dwarf2_per_objfile type.
10258 <objfile>: Likewise.
10259 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10260 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10261 dwarf2_per_objfile->per_bfd.
10262 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10263 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10264 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10265 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10266 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10267 (dwarf2_per_objfile::locate_sections): Rename to...
10268 (dwarf2_per_bfd::locate_sections): ... this.
10269 (dwarf2_per_objfile::get_cutu): Rename to...
10270 (dwarf2_per_bfd::get_cutu): ... this.
10271 (dwarf2_per_objfile::get_cu): Rename to...
10272 (dwarf2_per_bfd::get_cu): ... this.
10273 (dwarf2_per_objfile::get_tu): Rename to...
10274 (dwarf2_per_bfd::get_tu): ... this.
10275 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10276 (dwarf2_per_bfd::allocate_per_cu): ... this.
10277 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10278 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10279 (get_gdb_index_contents_ftype): Change parameter from
10280 dwarf2_per_objfile to dwarf2_per_bfd.
10281 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10282 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10283
10284 2020-05-27 Tom Tromey <tom@tromey.com>
10285 Simon Marchi <simon.marchi@efficios.com>
10286
10287 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10288 (allocate_piece_closure): Set "per_objfile" member.
10289 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10290 (locexpr_describe_location, loclist_describe_location): Use new
10291 member.
10292 * dwarf2/read.c (read_call_site_scope)
10293 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10294 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10295 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10296 handle_data_member_location): Set per_objfile member.
10297 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10298 member.
10299 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10300
10301 2020-05-27 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10304 allocate_signatured_type>: Declare new methods.
10305 <m_num_psymtabs>: New member.
10306 (struct dwarf2_per_cu_data) <index>: New member.
10307 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10308 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10309 (create_cu_from_index_list): Use allocate_per_cu.
10310 (create_signatured_type_table_from_index)
10311 (create_signatured_type_table_from_debug_names)
10312 (create_debug_type_hash_table, add_type_unit)
10313 (read_comp_units_from_section): Use allocate_signatured_type.
10314
10315 2020-05-27 Tom Tromey <tom@tromey.com>
10316
10317 * psymtab.c (partial_map_expand_apply)
10318 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10319 (psym_lookup_global_symbol_language)
10320 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10321 (psym_print_stats, psym_expand_symtabs_for_function)
10322 (psym_map_symbol_filenames, psym_map_matching_symbols)
10323 (psym_expand_symtabs_matching)
10324 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10325 (maintenance_check_psymtabs): Update.
10326 * psympriv.h (struct partial_symtab) <readin_p,
10327 get_compunit_symtab>: Add objfile parameter.
10328 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10329 Likewise.
10330 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10331 get_compunit_symtab>: Likewise.
10332 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10333
10334 2020-05-27 Tom Tromey <tom@tromey.com>
10335
10336 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10337 member.
10338 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10339 (create_cu_from_index_list)
10340 (create_signatured_type_table_from_index)
10341 (create_signatured_type_table_from_debug_names)
10342 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10343 (dwarf2_create_include_psymtab)
10344 (create_debug_type_hash_table, add_type_unit)
10345 (create_type_unit_group, read_comp_units_from_section)
10346 (dwarf2_compute_name, create_cus_hash_table)
10347 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10348 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10349 obstack.
10350 (dw2_get_real_path): Likewise. Change argument to
10351 dwarf2_per_objfile.
10352
10353 2020-05-27 Luis Machado <luis.machado@linaro.org>
10354
10355 PR tdep/26000
10356 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10357 for ldrd (immediate).
10358
10359 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10360
10361 * command.h: Add comment giving the name of class_tui.
10362 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10363 create the fake command for the help for class_tui.
10364
10365 2020-05-26 Tom Tromey <tromey@adacore.com>
10366
10367 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10368 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10369 (val_atr): New function.
10370 (value_val_atr): Use it.
10371 * ada-valprint.c (print_optional_low_bound): Change low bound
10372 handling for enums.
10373 (val_print_packed_array_elements): Don't call discrete_position.
10374 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10375 discrete_position for enum types.
10376 * language.c (default_print_array_index): Change type.
10377 * language.h (struct language_defn) <la_print_array_index>: Add
10378 index_type parameter, change type of index_value.
10379 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10380 (default_print_array_index): Update.
10381 * valprint.c (maybe_print_array_index): Don't call
10382 value_from_longest. Update.
10383 (value_print_array_elements): Don't call discrete_position.
10384
10385 2020-05-26 Tom Tromey <tromey@adacore.com>
10386
10387 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10388 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10389
10390 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10391
10392 PR gdb/13519
10393 * avr-tdep.c (avr_integer_to_address): Return data or code
10394 address accordingly to the second 'type' argument of the
10395 function.
10396
10397 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10398
10399 * infcmd.c, inferior.h: (construct_inferior_arguments):
10400 Moved function from here to gdbsupport/common-inferior.{h,cc}
10401
10402 2020-05-23 Tom Tromey <tom@tromey.com>
10403
10404 Revert commit eca1f90c:
10405 * NEWS: Remove entry for completion styling.
10406 * completer.c (_rl_completion_prefix_display_length): Move
10407 declaration later.
10408 (gdb_fnprint): Revert.
10409 (gdb_display_match_list_1): Likewise.
10410 * cli/cli-style.c (completion_prefix_style)
10411 (completion_difference_style, completion_suffix_style): Remove.
10412 (_initialize_cli_style): Revert.
10413 * cli/cli-style.h (completion_prefix_style)
10414 (completion_difference_style, completion_suffix_style): Don't
10415 declare.
10416
10417 2020-05-24 Pedro Alves <palves@redhat.com>
10418
10419 * symtab.c (completion_list_add_name): Return boolean indication
10420 of whether the symbol matched.
10421 (completion_list_add_symbol): Don't try to remove C++ aliases if
10422 the symbol didn't match in the first place.
10423 * symtab.h (completion_list_add_name): Return bool.
10424
10425 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10426
10427 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10428 type::field.
10429
10430 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10431
10432 GDB 9.2 released.
10433
10434 2020-05-23 Tom Tromey <tom@tromey.com>
10435
10436 * NEWS: Add entry for completion styling.
10437 * completer.c (_rl_completion_prefix_display_length): Move
10438 declaration earlier.
10439 (gdb_fnprint): Use completion_style.
10440 (gdb_display_match_list_1): Likewise.
10441 * cli/cli-style.c (completion_prefix_style)
10442 (completion_difference_style, completion_suffix_style): New
10443 globals.
10444 (_initialize_cli_style): Register new globals.
10445 * cli/cli-style.h (completion_prefix_style)
10446 (completion_difference_style, completion_suffix_style): Declare.
10447
10448 2020-05-23 Pedro Alves <palves@redhat.com>
10449
10450 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10451 (parse_escape): Use ISDIGIT instead of isdigit.
10452 (puts_debug): Use gdb_isprint instead of isprint.
10453 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10454 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10455 ISSPACE instead of isspace.
10456 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10457 instead of isspace.
10458 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10459 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10460 instead of isxdigit and ISDIGIT instead of isdigit.
10461
10462 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10463
10464 * gdbtypes.h (struct type) <field>: New method.
10465 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10466 or type::field.
10467
10468 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10469
10470 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10471 (TYPE_FIELDS): Use type::fields. Change all call sites that
10472 modify the propery to use type::set_fields instead.
10473
10474 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10477 type::num_fields instead.
10478
10479 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10480
10481 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10482 methods.
10483 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10484 that modify the number of fields to use type::set_num_fields
10485 instead.
10486
10487 2020-05-22 Tom Tromey <tromey@adacore.com>
10488
10489 * compile/compile-object-load.h (munmap_list_free): Don't
10490 declare.
10491
10492 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * annotate.c (annotate_source_line): Update return type, add call
10495 to update current symtab and line.
10496 * annotate.h (annotate_source_line): Update return type, and
10497 extend header comment.
10498 * source.c (info_line_command): Check annotation_level before
10499 calling annotate_source_line.
10500 * stack.c (print_frame_info): If calling annotate_source_line
10501 returns true, then don't print any other source line information.
10502
10503 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10504
10505 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10506
10507 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * coffread.c (patch_type): Remove NULL check before xfree.
10510 * corefile.c (set_gnutarget): Likewise.
10511 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10512 * exec.c (build_section_table): Likewise.
10513 * remote.c (remote_target::pass_signals): Likewise.
10514 * utils.c (n_spaces): Likewise.
10515 * cli/cli-script.c (document_command): Likewise.
10516 * i386-windows-tdep.c (core_process_module_section): Likewise.
10517 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10518
10519 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10520
10521 * symfile.c (reread_symbols): Clear objfile's section_offsets
10522 vector and section indices, re-compute them by calling
10523 sym_offsets.
10524
10525 2020-05-20 Tom Tromey <tromey@adacore.com>
10526
10527 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10528 (desc_one_bound, desc_index_type): Compute field name.
10529
10530 2020-05-20 Tom de Vries <tdevries@suse.de>
10531
10532 PR symtab/25833
10533 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10534
10535 2020-05-20 Alan Modra <amodra@gmail.com>
10536
10537 PR 25993
10538 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10539 bfd_set_filename.
10540 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10541 passed to bfd_set_filename.
10542 * symfile-mem.c (add_vsyscall_page): Likewise for string
10543 passed to symbol_file_add_from_memory.
10544 (symbol_file_add_from_memory): Make name param a const char* and
10545 don't strdup.
10546
10547 2020-05-20 Alan Modra <amodra@gmail.com>
10548
10549 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10550 rather than accessing bfd->filename directly.
10551 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10552 and use bfd_section_name.
10553 * dwarf2/frame.c (decode_frame_entry): Likewise.
10554 * exec.c (exec_set_section_address): Likewise.
10555 * solib-aix.c (solib_aix_bfd_open): Likewise.
10556 * stap-probe.c (get_stap_base_address): Likewise.
10557 * symfile.c (reread_symbols): Likewise.
10558
10559 2020-05-19 Tom Tromey <tromey@adacore.com>
10560
10561 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10562
10563 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10564
10565 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10566
10567 2020-05-19 Pedro Alves <palves@redhat.com>
10568
10569 * NEWS (set exec-file-mismatch): Adjust entry.
10570 * exec.c: Include "build-id.h".
10571 (validate_exec_file): Try to match build IDs instead of filenames.
10572 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10573 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10574 and pass down 'warn_if_slow'.
10575 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10576 gdb_bfd_open_closure to pass it down.
10577 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10578
10579 2020-05-19 Pedro Alves <palves@redhat.com>
10580
10581 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10582 * target.c (target_fileio_open_1): Rename to target_fileio_open
10583 and make extern. Use bool.
10584 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10585 (target_fileio_read_alloc_1): Adjust.
10586 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10587 (target_fileio_open_warn_if_slow): Delete declaration.
10588
10589 2020-05-19 Pedro Alves <palves@redhat.com>
10590
10591 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10592 Adjust all callers.
10593
10594 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10595
10596 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10597 whether disp is negative.
10598
10599 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * symfile.h (struct symfile_segment_data)
10602 <~symfile_segment_data>: Remove.
10603 <segment_info>: Change to std::vector.
10604 * symfile.c (default_symfile_segments): Update.
10605 * elfread.c (elf_symfile_segments): Update.
10606
10607 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10610 <segments>: New.
10611 <segment_bases, segment_sizes>: Remove.
10612 * symfile.c (default_symfile_segments): Update.
10613 * elfread.c (elf_symfile_segments): Update.
10614 * remote.c (remote_target::get_offsets): Update.
10615 * solib-target.c (solib_target_relocate_section_addresses):
10616 Update.
10617
10618 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * symfile.h (struct symfile_segment_data): Initialize fields.
10621 <~symfile_segment_data>: Add.
10622 (symfile_segment_data_up): New.
10623 (struct sym_fns) <sym_segments>: Return a
10624 symfile_segment_data_up.
10625 (default_symfile_segments): Return a symfile_segment_data_up.
10626 (free_symfile_segment_data): Remove.
10627 (get_symfile_segment_data): Return a symfile_segment_data_up.
10628 * symfile.c (default_symfile_segments): Likewise.
10629 (get_symfile_segment_data): Likewise.
10630 (free_symfile_segment_data): Remove.
10631 (symfile_find_segment_sections): Update.
10632 * elfread.c (elf_symfile_segments): Return a
10633 symfile_segment_data_up.
10634 * remote.c (remote_target::get_offsets): Update.
10635 * solib-target.c (solib_target_relocate_section_addresses):
10636 Update.
10637 * symfile-debug.c (debug_sym_segments): Return a
10638 symfile_segment_data_up.
10639
10640 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10641
10642 PR build/25981
10643 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10644 Hardcode register numbers.
10645
10646 PR build/25981
10647 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10648 procfs_find_LDT_entry): Remove.
10649 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10650 procfs_find_LDT_entry): Remove.
10651 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10652 Remove.
10653
10654 2020-05-17 Pedro Alves <palves@redhat.com>
10655 Andrew Burgess <andrew.burgess@embecosm.com>
10656 Keno Fischer <keno@juliacomputing.com>
10657
10658 PR gdb/25741
10659 * breakpoint.c (build_target_condition_list): Update comments.
10660 (build_target_command_list): Update comments and skip matching
10661 locations.
10662 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10663 a separate function. Simplify "set breakpoint auto-hw off"
10664 handling.
10665 (insert_breakpoints): Update comment.
10666 (tracepoint_locations_match): New parameter. For breakpoints,
10667 compare location types too, if the caller wants to.
10668 (handle_automatic_hardware_breakpoints): New functions.
10669 (bp_location_is_less_than): Also sort by location type and
10670 hardware breakpoint length.
10671 (update_global_location_list): Handle "set breakpoint auto-hw on"
10672 here.
10673 (update_breakpoint_locations): Ask breakpoint_locations_match to
10674 ignore location types.
10675
10676 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10679 type::name instead.
10680
10681 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10682
10683 * gdbtypes.h (struct type) <name, set_name>: New methods.
10684 (TYPE_CODE): Use type::name. Change all call sites used to set
10685 the name to use type::set_name instead.
10686
10687 2020-05-16 Tom Tromey <tom@tromey.com>
10688
10689 * top.c (quit_force): Update.
10690 * infrun.c (handle_no_resumed): Update.
10691 * top.h (all_uis): New function.
10692 (ALL_UIS): Remove.
10693
10694 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10697
10698 2020-05-16 Pedro Alves <palves@redhat.com>
10699
10700 * ia64-linux-nat.c
10701 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10702 Declare method.
10703 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10704
10705 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10706
10707 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10708 (sparc64_adi_info): Likewise.
10709
10710 2020-05-15 Tom Tromey <tom@tromey.com>
10711
10712 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10713 block_objfile.
10714 (lookup_objfile_from_block): Remove.
10715 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10716 (lookup_global_symbol): Use block_objfile.
10717 * symtab.h (lookup_objfile_from_block): Don't declare.
10718 * printcmd.c (clear_dangling_display_expressions): Use
10719 block_objfile.
10720 * parse.c (operator_check_standard): Use block_objfile.
10721
10722 2020-05-15 Tom Tromey <tom@tromey.com>
10723
10724 * language.c (language_alloc_type_symbol): Set
10725 SYMBOL_SECTION.
10726 * symtab.c (initialize_objfile_symbol): Remove.
10727 (allocate_symbol): Remove.
10728 (allocate_template_symbol): Remove.
10729 * dwarf2/read.c (fixup_go_packaging): Use "new".
10730 (new_symbol): Use "new".
10731 (read_variable): Don't call initialize_objfile_symbol. Use
10732 "new".
10733 (read_func_scope): Use "new".
10734 * xcoffread.c (process_xcoff_symbol): Don't call
10735 initialize_objfile_symbol.
10736 (SYMBOL_DUP): Remove.
10737 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10738 "new".
10739 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10740 (allocate_template_symbol): Don't declare.
10741 (struct symbol): Add copy constructor. Change defaults.
10742 * jit.c (finalize_symtab): Use "new".
10743 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10744 Use "new".
10745 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10746 (common_block_end): Use "new".
10747 * mdebugread.c (parse_symbol): Use "new".
10748 (new_symbol): Likewise.
10749
10750 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10751
10752 * NEWS: Mention changes to help and apropos.
10753
10754 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10755
10756 * command.h (enum command_class): Improve comments, document
10757 that class_alias is for user-defined aliases, give the class
10758 name for each class, remove unused class_xdb.
10759 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10760 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10761 by a precise class.
10762 * infcmd.c (_initialize_infcmd): Likewise.
10763 * reverse.c (_initialize_reverse): Likewise.
10764 * stack.c (_initialize_stack): Likewise.
10765 * symfile.c (_initialize_symfile): Likewise.
10766 * tracepoint.c (_initialize_tracepoint): Likewise.
10767
10768 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10769
10770 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10771 when their aliased command is traversed.
10772 (help_cmd): Add fput_command_names_styled call to
10773 output command name and aliases when command has an alias.
10774
10775 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10776
10777 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10778 * cli/cli-decode.c (help_cmd_list): Declare as static,
10779 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10780 a command together with the command.
10781 (fput_command_name_styled, fput_command_names_styled): New functions.
10782 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10783 fput_command_name_styled.
10784 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10785 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10786
10787 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10788
10789 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10790 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10791 * command.h (cmd_show_list): Likewise.
10792 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10793 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10794
10795 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10796
10797 * unittests/command-def-selftests.c (traverse_command_structure):
10798 Verify all commands of a list have the same prefix command and
10799 that only the top cmdlist commands have a null prefix.
10800
10801 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10802
10803 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10804 as prefix, not one of its aliases.
10805 (set_cmd_prefix): Remove.
10806 (do_add_cmd): Centralize the setting of the prefix of a command, when
10807 command is defined after its full chain of prefix commands.
10808 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10809 (add_setshow_cmd_full): Likewise.
10810 (update_prefix_field_of_prefixed_commands): New function.
10811 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10812 update_prefix_field_of_prefixed_commands.
10813 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10814 addresses of remote_set_cmdlist and remote_show_cmdlist given
10815 as argument, not the address of an argument.
10816 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10817 * gdb/remote.c (_initialize_remote): Likewise.
10818
10819 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10820
10821 * cli/cli-cmds.c (alias_command): Check for an existing alias
10822 using lookup_cmd_composition, as valid_command_p is too strict
10823 and forbids aliases that are the prefix of an existing alias
10824 or command.
10825 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10826 command is properly recognised as a valid command.
10827
10828 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10829
10830 * unittests/help-doc-selftests.c: Rename to
10831 unittests/command-def-selftests.c
10832 * unittests/command-def-selftests.c (help_doc_tests): Update some
10833 comments.
10834 (command_structure_tests, traverse_command_structure): New namespace
10835 and function.
10836 (command_structure_invariants_tests): New function.
10837 (_initialize_command_def_selftests) Renamed from
10838 _initialize_help_doc_selftests, register command_structure_invariants
10839 selftest.
10840
10841 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10842
10843 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10844 an alias of 'show'.
10845
10846 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10847
10848 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10849 ada_is_fixed_point_type. Update all callers.
10850 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10851 all callers.
10852 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10853 Update all callers.
10854 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10855 print_fixed_point_type. Update all callers.
10856 * ada-valprint.c (ada_value_print_num): Replace call to
10857 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10858
10859 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10860
10861 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10862 processors.
10863 (cpu_supports_bts): Add CV_AMD case.
10864
10865 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10866 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * infrun.c (stop_all_threads): Collect multiple wait events at
10869 each pass.
10870
10871 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10872
10873 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10874 type::code instead.
10875
10876 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10877
10878 * gdbtypes.h (struct type) <code, set_code>: New methods.
10879 (TYPE_CODE): Use type::code. Change all call sites used to set
10880 the code to use type::set_code instead.
10881
10882 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10883 Tom de Vries <tdevries@suse.de>
10884 Pedro Alves <palves@redhat.com>
10885
10886 PR threads/25478
10887 * infrun.c (stop_all_threads): Do NOT ignore
10888 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10889 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10890 received.
10891 (handle_no_resumed): Remove code handling a live inferior with no
10892 threads.
10893 * remote.c (has_single_non_exited_thread): New.
10894 (remote_target::update_thread_list): Do not delete a thread if is
10895 the last thread of the process.
10896 * thread.c (thread_select): Call delete_exited_threads instead of
10897 prune_threads.
10898
10899 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10900
10901 * infrun.c (stop_all_threads): Enable/disable thread events of all
10902 targets. Move a debug message denoting the end of the function
10903 into the SCOPED_EXIT block.
10904
10905 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10906
10907 * process-stratum-target.h: Include <set>.
10908 (all_non_exited_process_targets, switch_to_target_no_thread): New
10909 function declarations.
10910 * process-stratum-target.c (all_non_exited_process_targets)
10911 (switch_to_target_no_thread): New function implementations.
10912
10913 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10914
10915 * infrun.c (handle_inferior_event): Extract out a piece of code
10916 into...
10917 (mark_non_executing_threads): ...this new function.
10918
10919 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10920
10921 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10922 use.
10923
10924 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10925
10926 * regcache.c (regcache_read_pc_protected): New function
10927 implementation that returns 0 if the PC cannot read via
10928 'regcache_read_pc'.
10929 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10930 instead of 'regcache_read_pc'.
10931 (keep_going_pass_signal): Ditto.
10932
10933 2020-05-13 Tom Tromey <tromey@adacore.com>
10934
10935 * ada-lang.c (align_value): Remove.
10936 (ada_template_to_fixed_record_type_1): Use align_up.
10937
10938 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10939
10940 * async-event.c: Update the copyright year.
10941 * async-event.h: Update the copyright year.
10942
10943 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10944
10945 * objfiles.h (is_addr_in_objfile,
10946 shared_objfile_contains_address_p): Return bool.
10947 * objfile.c (is_addr_in_objfile,
10948 shared_objfile_contains_address_p): Return bool.
10949
10950 2020-05-11 Tom Tromey <tromey@adacore.com>
10951
10952 * cli/cli-cmds.c (info_command): Restore.
10953 (_initialize_cli_cmds): Use add_prefix_command for "info".
10954 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10955
10956 2020-05-11 Tom Tromey <tromey@adacore.com>
10957
10958 * ada-lang.c (ada_value_primitive_field): Now public.
10959 * ada-lang.h (ada_value_primitive_field): Declare.
10960 * ada-valprint.c (print_field_values): Use
10961 ada_value_primitive_field for wrapper fields.
10962
10963 2020-05-11 Tom de Vries <tdevries@suse.de>
10964
10965 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10966 MODULE_DOMAIN.
10967
10968 2020-05-11 Tom de Vries <tdevries@suse.de>
10969
10970 PR symtab/25941
10971 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10972 with length 0, if not gdb-produced.
10973 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10974
10975 2020-05-09 Tom de Vries <tdevries@suse.de>
10976
10977 PR gdb/25955
10978 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10979 calculation.
10980
10981 2020-05-09 Tom Tromey <tom@tromey.com>
10982
10983 * top.c (server_command): Now bool.
10984 * top.h (server_command): Now bool.
10985
10986 2020-05-08 Tom Tromey <tromey@adacore.com>
10987
10988 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10989 already being processed.
10990
10991 2020-05-08 Tom Tromey <tom@tromey.com>
10992
10993 * printcmd.c (struct display) <next>: Remove.
10994 <display>: New constructor.
10995 <exp_string>: Now a std::string.
10996 <enabled_p>: Now a bool.
10997 (display_number): Move definition earlier.
10998 (displays): Rename from display_chain. Now a std::vector.
10999 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11000 (display_command): Update.
11001 (do_one_display, disable_display)
11002 (enable_disable_display_command, do_enable_disable_display):
11003 Update.
11004 (free_display): Remove.
11005 (clear_displays): Rewrite.
11006 (delete_display): Update.
11007 (map_display_numbers): Use function_view. Remove "data"
11008 parameter. Update.
11009 (do_delete_display): Remove.
11010 (undisplay_command): Update.
11011 (do_one_display, do_displays, disable_display)
11012 (info_display_command): Update.
11013 (do_enable_disable_display): Remove.
11014 (enable_disable_display_command)
11015 (clear_dangling_display_expressions): Update.
11016
11017 2020-05-08 Tom Tromey <tom@tromey.com>
11018
11019 * symtab.c (set_symbol_cache_size)
11020 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11021 (maintenance_print_symbol_cache_statistics): Update.
11022 * symmisc.c (print_symbol_bcache_statistics)
11023 (print_objfile_statistics, maintenance_print_objfiles)
11024 (maintenance_info_symtabs, maintenance_check_symtabs)
11025 (maintenance_expand_symtabs, maintenance_info_line_tables):
11026 Update.
11027 * symfile-debug.c (set_debug_symfile): Update.
11028 * source.c (forget_cached_source_info): Update.
11029 * python/python.c (gdbpy_progspaces): Update.
11030 * psymtab.c (maintenance_info_psymtabs): Update.
11031 * probe.c (parse_probes): Update.
11032 * linespec.c (iterate_over_all_matching_symtabs)
11033 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11034 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11035 * exec.c (exec_target::close): Update.
11036 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11037 * breakpoint.c (print_one_breakpoint_location)
11038 (create_longjmp_master_breakpoint)
11039 (create_std_terminate_master_breakpoint): Update.
11040 * progspace.c (program_spaces): Now a std::vector.
11041 (maybe_new_address_space): Update.
11042 (add_program_space): Remove.
11043 (program_space::program_space): Update.
11044 (remove_program_space): Update.
11045 (number_of_program_spaces): Remove.
11046 (print_program_space, update_address_spaces): Update.
11047 * progspace.h (program_spaces): Change type.
11048 (ALL_PSPACES): Remove.
11049 (number_of_program_spaces): Don't declare.
11050 (struct program_space) <next>: Remove.
11051
11052 2020-05-08 Tom Tromey <tom@tromey.com>
11053
11054 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11055 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11056 (enable_break): Update.
11057 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11058 (frv_fdpic_find_canonical_descriptor): Update.
11059 (frv_fetch_objfile_link_map): Update.
11060 * progspace.c (program_space::free_all_objfiles): Update.
11061 (program_space::solibs): New method.
11062 * progspace.h (struct program_space) <solibs>: New method.
11063 * solist.h (master_so_list): Don't declare.
11064 (ALL_SO_LIBS): Remove.
11065 * solib.h (so_list_head): Remove.
11066 (update_solib_list): Update comment.
11067 * solib.c (master_so_list): Remove.
11068 (solib_used, update_solib_list, solib_add)
11069 (info_sharedlibrary_command, clear_solib)
11070 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11071
11072 2020-05-08 Tom Tromey <tom@tromey.com>
11073
11074 * extension.c (extension_languages): Now a std::array.
11075 (ALL_EXTENSION_LANGUAGES): Remove.
11076 (get_ext_lang_defn, get_ext_lang_of_file)
11077 (eval_ext_lang_from_control_command): Update.
11078 (finish_ext_lang_initialization)
11079 (auto_load_ext_lang_scripts_for_objfile)
11080 (ext_lang_type_printers::ext_lang_type_printers)
11081 (apply_ext_lang_type_printers)
11082 (ext_lang_type_printers::~ext_lang_type_printers)
11083 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11084 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11085 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11086 (get_matching_xmethod_workers, ext_lang_colorize)
11087 (ext_lang_before_prompt): Update.
11088 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11089
11090 2020-05-08 Tom Tromey <tom@tromey.com>
11091
11092 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11093 overload.
11094 <swap_string, m_string>: Remove.
11095 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11096 Update.
11097 * stabsread.c (define_symbol, read_type): Update.
11098 * linespec.c (find_linespec_symbols): Update.
11099 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11100 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11101 * dbxread.c (read_dbx_symtab): Update.
11102 * cp-support.h (cp_canonicalize_string_full)
11103 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11104 Return unique_xmalloc_ptr.
11105 * cp-support.c (inspect_type): Update.
11106 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11107 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11108 Likewise.
11109 * c-typeprint.c (print_name_maybe_canonical): Update.
11110 * break-catch-throw.c (check_status_exception_catchpoint):
11111 Update.
11112
11113 2020-05-08 Tom de Vries <tdevries@suse.de>
11114
11115 * infrun.c (follow_fork): Copy current_line and current_symtab to
11116 child thread.
11117
11118 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * async-event.c (struct async_signal_handler, struct
11121 async_event_handler): Reformat, remove typedef.
11122
11123 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11124
11125 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11126 access thistype->main_type->dyn_prop_list directly.
11127
11128 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11131 (remove_dyn_prop): Remove. Update all users to use
11132 type::remove_dyn_prop.
11133 * gdbtypes.c (remove_dyn_prop): Rename to...
11134 (type::remove_dyn_prop): ... this.
11135
11136 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11137
11138 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11139 (add_dyn_prop): Remove. Update all users to use
11140 type::add_dyn_prop.
11141 * gdbtypes.c (add_dyn_prop): Rename to...
11142 (type::add_dyn_prop): ... this.
11143
11144 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11145
11146 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11147 (get_dyn_prop): Remove. Update all users to use
11148 type::dyn_prop.
11149 * gdbtypes.c (get_dyn_prop): Rename to...
11150 (type::dyn_prop): ... this.
11151
11152 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11153
11154 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11155
11156 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11157
11158 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11159 instruction, skip it if it's there.
11160
11161 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11162
11163 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11164
11165 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11166
11167 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11168 * gdbtypes.c (recursive_dump_type): Remove use of
11169 TYPE_INCOMPLETE.
11170
11171 2020-05-03 Tom Tromey <tom@tromey.com>
11172
11173 * breakpoint.c (catch_command, tcatch_command): Remove.
11174 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11175 add_show_prefix_cmd.
11176 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11177 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11178 Remove.
11179 (add_internal_problem_command): Use add_basic_prefix_cmd,
11180 add_show_prefix_cmd.
11181 * mips-tdep.c (set_mipsfpu_command): Remove.
11182 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11183 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11184 (_initialize_index_cache): Use add_basic_prefix_cmd.
11185 * memattr.c (dummy_cmd): Remove.
11186 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11187 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11188 (_initialize_tui_win): Use add_basic_prefix_cmd,
11189 add_show_prefix_cmd.
11190 * cli/cli-logging.c (set_logging_command): Remove.
11191 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11192 add_show_prefix_cmd.
11193 (show_logging_command): Remove.
11194 * target.c (target_command): Remove.
11195 (add_target): Use add_basic_prefix_cmd.
11196
11197 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11198
11199 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11200
11201 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11202
11203 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11204 info_command.
11205
11206 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11207
11208 * nbsd-nat.c (nbsd_enable_proc_events)
11209 (nbsd_nat_target::post_startup_inferior): Add.
11210 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11211 (nbsd_nat_target::update_thread_list): Rewrite.
11212 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11213 "PTRACE_LWP_CREATE".
11214 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11215
11216 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11217
11218 * stack.c (_initialize_stack): Remove duplicated creation
11219 of "frame" command and "f" alias.
11220
11221 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11222
11223 PR gdb/18706
11224 * gdbtypes.c (check_typedef): Calculate size of array of
11225 stubbed type.
11226
11227 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11228
11229 PR gdb/15559
11230 * i386-tdep.c (i386_push_dummy_call): Call
11231 i386_thiscall_push_dummy_call.
11232 (i386_thiscall_push_dummy_call): New function.
11233 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11234 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11235 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11236
11237 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * gdbarch.sh (do_read): Add shellcheck disable directive for
11240 warning SC2162.
11241
11242 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11245 "referenced but not assigned" warning.
11246
11247 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11248
11249 * gdbarch.sh: Remove code that sets fallbackdefault.
11250
11251 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11252
11253 * gdbarch.sh: Use shell operators && and || instead of
11254 -a and -o.
11255
11256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11257
11258 * gdbarch.sh: Use $(...) instead of `...`.
11259
11260 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11261
11262 * gdbarch.sh: Use double quotes around variables.
11263
11264 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11265
11266 * gdbarch.sh: Use %s with printf, instead of variables in the
11267 format string.
11268
11269 2020-04-29 Tom Tromey <tromey@adacore.com>
11270
11271 PR ada/25875:
11272 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11273 type fields here.
11274 (read_enumeration_type): Call
11275 update_enumeration_type_from_children later. Update comments.
11276 (process_enumeration_scope): Don't create type fields.
11277
11278 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11279
11280 * nbsd-tdep.c: Include "xml-syscall.h".
11281 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11282
11283 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11284
11285 * nbsd-nat.c: Include "sys/wait.h".
11286 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11287 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11288 (nbsd_nat_target::remove_exec_catchpoint)
11289 (nbsd_nat_target::set_syscall_catchpoint): Add.
11290 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11291 (nbsd_nat_target::insert_exec_catchpoint)
11292 (nbsd_nat_target::remove_exec_catchpoint)
11293 (nbsd_nat_target::set_syscall_catchpoint): Add.
11294 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11295 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11296 `nbsd_get_syscall_number'.
11297
11298 2020-04-29 Tom Tromey <tom@tromey.com>
11299
11300 * stack.c (print_block_frame_labels): Remove.
11301
11302 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11303
11304 PR gdb/17320
11305 * ada-valprint.c (val_print_packed_array_elements): Move array
11306 end bracket to new line.
11307 (ada_val_print_string): Remove extra spaces before first array
11308 element.
11309 * c-valprint.c (c_value_print_array): Likewise.
11310 * m2-valprint.c (m2_print_array_contents): Likewise.
11311 (m2_value_print_inner): Likewise.
11312 * p-valprint.c (pascal_value_print_inner): Likewise.
11313 * valprint.c (generic_val_print_array): Likewise.
11314 (value_print_array_elements): Move first array element and array
11315 end bracket to new line.
11316
11317 2020-04-29 Tom de Vries <tdevries@suse.de>
11318
11319 PR symtab/25889
11320 * linespec.c (find_method): Fix ix calculation.
11321
11322 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11323
11324 * syscalls/update-netbsd.sh: New file.
11325 * syscalls/netbsd.xml: Regenerate.
11326 * data-directory/Makefile.in: Register `netbsd.xml' in
11327 `SYSCALLS_FILES'.
11328
11329 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11330
11331 * syscalls/update-freebsd.sh: Add double quotes.
11332
11333 2020-04-28 Tom Tromey <tom@tromey.com>
11334
11335 * NEWS: Update.
11336 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11337 (cmdpy_init): Allow class_tui.
11338
11339 2020-04-28 Mark Williams <mark@myosotissp.com>
11340
11341 PR gdb/24480
11342 * dwarf2read.c: Add missing assingments to list_in_scope when
11343 start_symtab was already called.
11344
11345 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11346
11347 PR gdb/25881
11348 * dwarf2/read.c (offset_map_type): Use
11349 gdb:hash_enum<sect_offset> as hash function.
11350
11351 2020-04-28 Tom de Vries <tdevries@suse.de>
11352
11353 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11354 with DW_AT_signature.
11355
11356 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11357
11358 * configure.ac: Remove check for fs_base/gs_base in
11359 user_regs_struct.
11360 * configure: Re-generate.
11361 * config.in: Re-generate.
11362 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11363 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11364 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11365
11366 2020-04-27 Luis Machado <luis.machado@linaro.org>
11367
11368 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11369 problematic inline frame unwinding situation.
11370 * frame.c (frame_id_computed_p): New function.
11371 * frame.h (frame_id_computed_p): New prototype.
11372
11373 2020-04-26 Tom Tromey <tom@tromey.com>
11374
11375 * command.h (enum command_class) <class_pseudo>: Remove.
11376
11377 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11378
11379 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11380 and whitespace.
11381
11382 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11383
11384 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11385 `PT_GET_PROCESS_STATE' block.
11386
11387 2020-04-24 Tom Tromey <tom@tromey.com>
11388
11389 * symtab.h (symbol_get_demangled_name): Don't declare.
11390 * symtab.c (symbol_get_demangled_name): Remove.
11391 (general_symbol_info::natural_name)
11392 (general_symbol_info::demangled_name): Update.
11393
11394 2020-04-24 Tom Tromey <tom@tromey.com>
11395
11396 PR rust/25025:
11397 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11398
11399 2020-04-24 Tom Tromey <tom@tromey.com>
11400
11401 PR symtab/12707:
11402 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11403 exists.
11404 (new_symbol): Likewise.
11405 * compile/compile-object-load.c (get_out_value_type): Use
11406 symbol_matches_search_name.
11407
11408 2020-04-24 Tom Tromey <tom@tromey.com>
11409
11410 * dwarf2/read.c (add_partial_symbol): Do not call
11411 compute_and_set_names.
11412
11413 2020-04-24 Tom Tromey <tom@tromey.com>
11414
11415 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11416 overload.
11417
11418 2020-04-24 Tom Tromey <tom@tromey.com>
11419
11420 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11421 (add_psymbol_to_list): New overload. Make old overload call new
11422 one.
11423 * psympriv.h (add_psymbol_to_list): New overload.
11424
11425 2020-04-24 Tom Tromey <tom@tromey.com>
11426
11427 * dwarf2/read.c (partial_die_info::read) <case
11428 DW_AT_linkage_name>: Use value_as_string.
11429 (dwarf2_string_attr): Use value_as_string.
11430 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11431 method.
11432 * dwarf2/attribute.c (attribute::value_as_string): New method.
11433
11434 2020-04-24 Tom Tromey <tom@tromey.com>
11435
11436 * symtab.c (general_symbol_info::natural_name)
11437 (general_symbol_info::demangled_name): Check for language_rust.
11438
11439 2020-04-24 Tom Tromey <tom@tromey.com>
11440
11441 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11442 (dwarf2_physname): ... from here.
11443 (partial_die_info::read): Add Rust "{" hack.
11444
11445 2020-04-24 Tom Tromey <tom@tromey.com>
11446
11447 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11448 method.
11449 (symbol_set_demangled_name): Don't declare.
11450 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11451 symbol_set_demangled_name.
11452 (general_symbol_info::set_language)
11453 (general_symbol_info::compute_and_set_names): Update.
11454 * minsyms.c (minimal_symbol_reader::install): Update.
11455 * dwarf2/read.c (new_symbol): Update.
11456
11457 2020-04-24 Tom Tromey <tromey@adacore.com>
11458
11459 PR python/23662:
11460 * python/py-type.c (convert_field): Handle
11461 FIELD_LOC_KIND_DWARF_BLOCK.
11462 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11463 (typy_get_dynamic): Nw function.
11464 (type_object_getset): Add "dynamic".
11465 * NEWS: Add entry.
11466
11467 2020-04-24 Tom Tromey <tromey@adacore.com>
11468
11469 * ada-typeprint.c (print_choices, print_variant_part)
11470 (print_record_field_types_dynamic): New functions.
11471 (print_record_field_types): Use print_record_field_types_dynamic.
11472
11473 2020-04-24 Tom Tromey <tromey@adacore.com>
11474
11475 * dwarf2/read.c (handle_data_member_location): New overload.
11476 (dwarf2_add_field): Use it.
11477 (decode_locdesc): Add "computed" parameter. Update comment.
11478 * gdbtypes.c (is_dynamic_type_internal): Also look for
11479 FIELD_LOC_KIND_DWARF_BLOCK.
11480 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11481 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11482 virtual base classes.
11483 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11484 FIELD_LOC_KIND_DWARF_BLOCK.
11485
11486 2020-04-24 Tom Tromey <tromey@adacore.com>
11487
11488 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11489 * gdbtypes.c (is_dynamic_type_internal): Check
11490 TYPE_HAS_DYNAMIC_LENGTH.
11491 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11492 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11493 New macros.
11494 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11495 constant.
11496
11497 2020-04-24 Tom Tromey <tromey@adacore.com>
11498
11499 * dwarf2/read.c (struct variant_field): Rewrite.
11500 (struct variant_part_builder): New.
11501 (struct nextfield): Remove "variant" field. Add "offset".
11502 (struct field_info): Add "current_variant_part" and
11503 "variant_parts".
11504 (alloc_discriminant_info): Remove.
11505 (alloc_rust_variant): New function.
11506 (quirk_rust_enum): Update.
11507 (dwarf2_add_field): Set "offset" member. Don't handle
11508 DW_TAG_variant_part.
11509 (offset_map_type): New typedef.
11510 (convert_variant_range, create_one_variant)
11511 (create_one_variant_part, create_variant_parts)
11512 (add_variant_property): New functions.
11513 (dwarf2_attach_fields_to_type): Call add_variant_property.
11514 (read_structure_type): Don't handle DW_TAG_variant_part.
11515 (handle_variant_part, handle_variant): New functions.
11516 (handle_struct_member_die): Use them.
11517 (process_structure_scope): Don't handle variant parts.
11518 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11519 (struct discriminant_info): Remove.
11520 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11521 (struct main_type) <flag_discriminated_union>: Remove.
11522 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11523 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11524 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11525 Update.
11526 * valops.c (value_union_variant): Remove.
11527 * value.h (value_union_variant): Don't declare.
11528
11529 2020-04-24 Tom Tromey <tromey@adacore.com>
11530
11531 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11532 (ada_value_primitive_packed_val): Update.
11533 * ada-valprint.c (ada_value_print_1): Update.
11534 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11535 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11536 just an address. Use evaluate_for_locexpr_baton.
11537 (dwarf2_evaluate_property): Update.
11538 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11539 array_view.
11540 * findvar.c (default_read_var_value): Update.
11541 * gdbtypes.c (compute_variant_fields_inner)
11542 (resolve_dynamic_type_internal): Update.
11543 (resolve_dynamic_type): Change type of valaddr parameter.
11544 * gdbtypes.h (resolve_dynamic_type): Update.
11545 * valarith.c (value_subscripted_rvalue): Update.
11546 * value.c (value_from_contents_and_address): Update.
11547
11548 2020-04-24 Tom Tromey <tromey@adacore.com>
11549
11550 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11551 "push_initial_value" parameter.
11552 (dwarf2_evaluate_property): Likewise.
11553 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11554
11555 2020-04-24 Tom Tromey <tromey@adacore.com>
11556
11557 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11558 (variant::matches, compute_variant_fields_recurse)
11559 (compute_variant_fields_inner, compute_variant_fields): New
11560 functions.
11561 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11562 Use resolved_type after type is made.
11563 (operator==): Add new cases.
11564 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11565 (struct discriminant_range, struct variant, struct variant_part):
11566 New.
11567 (union dynamic_prop_data) <variant_parts, original_type>: New
11568 members.
11569 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11570 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11571 constants.
11572 * value.c (unpack_bits_as_long): Now public.
11573 * value.h (unpack_bits_as_long): Declare.
11574
11575 2020-04-24 Tom Tromey <tromey@adacore.com>
11576
11577 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11578 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11579
11580 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11581
11582 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11583
11584 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11585
11586 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11587 (remove_fork_catchpoint, post_startup_inferior)
11588 (post_attach): Move...
11589 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11590 (remove_fork_catchpoint, post_startup_inferior)
11591 (post_attach): ...here.
11592 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11593 (remove_fork_catchpoint, post_startup_inferior)
11594 (post_attach): Move...
11595 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11596 (remove_fork_catchpoint, post_startup_inferior)
11597 (post_attach): ...here.
11598
11599 2020-04-24 Tom Tromey <tromey@adacore.com>
11600
11601 * nat/windows-nat.h (struct windows_thread_info)
11602 <pc_adjusted>: New member.
11603 * windows-nat.c (windows_fetch_one_register): Check
11604 pc_adjusted.
11605 (windows_nat_target::get_windows_debug_event)
11606 (windows_nat_target::wait): Set pc_adjusted.
11607
11608 2020-04-24 Tom de Vries <tdevries@suse.de>
11609
11610 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11611 Run gdb-add-index inside temp dir.
11612
11613 2020-04-23 Tom Tromey <tromey@adacore.com>
11614
11615 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11616 in loop.
11617
11618 2020-04-23 Luis Machado <luis.machado@linaro.org>
11619
11620 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11621 get_frame_register instead of gdbarch_unwind_pc.
11622
11623 2020-04-23 Tom de Vries <tdevries@suse.de>
11624
11625 * symtab.c (lookup_global_symbol): Prefer def over decl.
11626
11627 2020-04-23 Tom de Vries <tdevries@suse.de>
11628
11629 PR symtab/25807
11630 * block.c (best_symbol, better_symbol): Promote to external.
11631 * block.h (best_symbol, better_symbol): Declare.
11632 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11633 decl.
11634
11635 2020-04-23 Tom Tromey <tromey@adacore.com>
11636
11637 PR ada/25837:
11638 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11639 "const char *", not a "const std::string &".
11640 <name_and_matcher::operator==>: Update.
11641 * unittests/lookup_name_info-selftests.c: Change type of
11642 "result".
11643
11644 2020-04-23 Tom Tromey <tom@tromey.com>
11645
11646 * inferior.h (iterate_over_inferiors): Don't declare.
11647 * inferior.c (iterate_over_inferiors): Remove.
11648 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11649 Remove.
11650 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11651 use iterate_over_inferiors.
11652 (darwin_resume_inferior_it)
11653 (struct resume_inferior_threads_param)
11654 (darwin_resume_inferior_threads_it): Remove.
11655 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11656
11657 2020-04-23 Tom de Vries <tdevries@suse.de>
11658
11659 * blockframe.c (find_pc_partial_function): Use
11660 find_pc_sect_compunit_symtab rather than
11661 objfile->sf->qf->find_pc_sect_compunit_symtab.
11662
11663 2020-04-22 Tom de Vries <tdevries@suse.de>
11664
11665 PR symtab/25764
11666 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11667 in psymtabs.
11668
11669 2020-04-22 Tom de Vries <tdevries@suse.de>
11670
11671 PR symtab/25801
11672 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11673 symtabs.
11674
11675 2020-04-22 Tom de Vries <tdevries@suse.de>
11676
11677 PR symtab/25700
11678 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11679 CU if already created.
11680
11681 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11682
11683 * infrun.c (displaced_step_fixup): Switch to the event_thread
11684 before calling displaced_step_restore, not after.
11685
11686 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11687
11688 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11689 its inferior is not recorded by us.
11690 (record_btrace_target_open): Replace call to
11691 all_non_exited_threads () with call to current_inferior
11692 ()->non_exited_threads ().
11693 (record_btrace_target::stop_recording): Likewise.
11694 (record_btrace_target::close): Likewise.
11695 (record_btrace_target::wait): Likewise.
11696 (record_btrace_target::record_stop_replaying): Likewise.
11697
11698 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11699
11700 * btrace.c (btrace_enable): Throw an error on double enables and
11701 when enabling recording fails.
11702 (btrace_disable): Throw an error if the thread is not recorded.
11703
11704 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11705
11706 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11707 request if we do not have a thread_info.
11708
11709 2020-04-21 Tom de Vries <tdevries@suse.de>
11710
11711 PR gdb/25471
11712 * thread.c
11713 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11714 exception in get_frame_id.
11715
11716 2020-04-20 Tom Tromey <tromey@adacore.com>
11717
11718 * python/python.c (struct gdbpy_event): Mark move constructor as
11719 noexcept.
11720 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11721 constructor as noexcept.
11722 * completer.h (struct completion_result): Mark move constructor as
11723 noexcept.
11724 * completer.c (completion_result::completion_result): Use
11725 initialization style. Don't call reset_match_list.
11726
11727 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11728
11729 * MAINTAINERS (Write After Approval): Add myself.
11730
11731 2020-04-18 Tom Tromey <tom@tromey.com>
11732
11733 * windows-tdep.c (init_w32_command_list)
11734 (w32_prefix_command_valid): Restore.
11735 (_initialize_windows_tdep): Call init_w32_command_list.
11736
11737 2020-04-18 Tom Tromey <tom@tromey.com>
11738
11739 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11740 * value.c (value_fn_field): Update.
11741 * valops.c (find_function_in_inferior)
11742 (value_allocate_space_in_inferior): Update.
11743 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11744 Update.
11745 * tui/tui-source.c (tui_source_window::set_contents): Update.
11746 * symtab.c (lookup_global_or_static_symbol)
11747 (find_function_start_sal_1, skip_prologue_sal)
11748 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11749 * symmisc.c (dump_msymbols, dump_symtab_1)
11750 (maintenance_print_one_line_table): Update.
11751 * symfile.c (init_entry_point_info, section_is_mapped)
11752 (list_overlays_command, simple_read_overlay_table)
11753 (simple_overlay_update_1): Update.
11754 * stap-probe.c (handle_stap_probe): Update.
11755 * stabsread.c (dbx_init_float_type, define_symbol)
11756 (read_one_struct_field, read_enum_type, read_range_type): Update.
11757 * source.c (info_line_command): Update.
11758 * python/python.c (gdbpy_source_objfile_script)
11759 (gdbpy_execute_objfile_script): Update.
11760 * python/py-type.c (save_objfile_types): Update.
11761 * python/py-objfile.c (py_free_objfile): Update.
11762 * python/py-inferior.c (python_new_objfile): Update.
11763 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11764 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11765 (maintenance_check_psymtabs): Update.
11766 * printcmd.c (info_address_command): Update.
11767 * objfiles.h (struct objfile) <arch>: New method, from
11768 get_objfile_arch.
11769 (get_objfile_arch): Don't declare.
11770 * objfiles.c (get_objfile_arch): Remove.
11771 (filter_overlapping_sections): Update.
11772 * minsyms.c (msymbol_is_function): Update.
11773 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11774 (output_nondebug_symbol): Update.
11775 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11776 (mdebug_expand_psymtab): Update.
11777 * machoread.c (macho_add_oso_symfile): Update.
11778 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11779 Update.
11780 * linux-fork.c (checkpoint_command): Update.
11781 * linespec.c (convert_linespec_to_sals): Update.
11782 * jit.c (finalize_symtab): Update.
11783 * infrun.c (insert_exception_resume_from_probe): Update.
11784 * ia64-tdep.c (ia64_find_unwind_table): Update.
11785 * hppa-tdep.c (internalize_unwinds): Update.
11786 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11787 Update.
11788 * gcore.c (call_target_sbrk): Update.
11789 * elfread.c (record_minimal_symbol, elf_symtab_read)
11790 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11791 (elf_gnu_ifunc_resolve_by_got): Update.
11792 * dwarf2/read.c (create_addrmap_from_index)
11793 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11794 (read_debug_names_from_section)
11795 (process_psymtab_comp_unit_reader, add_partial_symbol)
11796 (add_partial_subprogram, process_full_comp_unit)
11797 (read_file_scope, read_func_scope, read_lexical_block_scope)
11798 (read_call_site_scope, dwarf2_ranges_read)
11799 (dwarf2_record_block_ranges, dwarf2_add_field)
11800 (mark_common_block_symbol_computed, read_tag_pointer_type)
11801 (read_tag_string_type, dwarf2_init_float_type)
11802 (dwarf2_init_complex_target_type, read_base_type)
11803 (partial_die_info::read, partial_die_info::read)
11804 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11805 (dwarf2_fetch_die_loc_sect_off): Update.
11806 * dwarf2/loc.c (dwarf2_find_location_expression)
11807 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11808 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11809 (dwarf2_loc_desc_get_symbol_read_needs)
11810 (locexpr_describe_location_piece, locexpr_describe_location_1)
11811 (loclist_describe_location): Update.
11812 * dwarf2/index-write.c (write_debug_names): Update.
11813 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11814 * dtrace-probe.c (dtrace_process_dof): Update.
11815 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11816 (process_one_symbol): Update.
11817 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11818 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11819 (coff_read_enum_type): Update.
11820 * cli/cli-cmds.c (edit_command, list_command): Update.
11821 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11822 * breakpoint.c (create_overlay_event_breakpoint)
11823 (create_longjmp_master_breakpoint)
11824 (create_std_terminate_master_breakpoint)
11825 (create_exception_master_breakpoint, get_sal_arch): Update.
11826 * block.c (block_gdbarch): Update.
11827 * annotate.c (annotate_source_line): Update.
11828
11829 2020-04-17 Tom Tromey <tromey@adacore.com>
11830
11831 * auto-load.c (show_auto_load_cmd): Remove.
11832 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11833 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11834 (maintenance_print_arc_command): Remove.
11835 * tui/tui-win.c (tui_command): Remove.
11836 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11837 * tui/tui-layout.c (tui_layout_command): Remove.
11838 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11839 * python/python.c (user_set_python, user_show_python): Remove.
11840 (_initialize_python): Use add_basic_prefix_cmd,
11841 add_show_prefix_cmd.
11842 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11843 (install_gdb_commands): Use add_basic_prefix_cmd,
11844 add_show_prefix_cmd.
11845 (info_guile_command): Remove.
11846 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11847 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11848 add_show_prefix_cmd.
11849 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11850 Remove do_set and do_show parameters.
11851 * cli/cli-style.c (set_style, show_style): Remove.
11852 (_initialize_cli_style): Use add_basic_prefix_cmd,
11853 add_show_prefix_cmd.
11854 (cli_style_option::add_setshow_commands): Remove do_set and
11855 do_show parameters.
11856 (cli_style_option::add_setshow_commands): Use
11857 add_basic_prefix_cmd, add_show_prefix_cmd.
11858 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11859 (set_style_name): Remove.
11860 * cli/cli-dump.c (dump_command, append_command): Remove.
11861 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11862 (tekhex_dump_command, binary_dump_command)
11863 (binary_append_command): Remove.
11864 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11865 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11866 (init_w32_command_list): Remove; move into ...
11867 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11868 * valprint.c (set_print, show_print, set_print_raw)
11869 (show_print_raw): Remove.
11870 (_initialize_valprint): Use add_basic_prefix_cmd,
11871 add_show_prefix_cmd.
11872 * typeprint.c (set_print_type, show_print_type): Remove.
11873 (_initialize_typeprint): Use add_basic_prefix_cmd,
11874 add_show_prefix_cmd.
11875 * record.c (set_record_command, show_record_command): Remove.
11876 (_initialize_record): Use add_basic_prefix_cmd,
11877 add_show_prefix_cmd.
11878 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11879 add_show_prefix_cmd.
11880 (info_command, show_command, set_debug, show_debug): Remove.
11881 * top.h (set_history, show_history): Don't declare.
11882 * top.c (set_history, show_history): Remove.
11883 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11884 (unset_tdesc_cmd): Remove.
11885 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11886 add_show_prefix_cmd.
11887 * symtab.c (info_module_command): Remove.
11888 (_initialize_symtab): Use add_basic_prefix_cmd.
11889 * symfile.c (overlay_command): Remove.
11890 (_initialize_symfile): Use add_basic_prefix_cmd.
11891 * sparc64-tdep.c (info_adi_command): Remove.
11892 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11893 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11894 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11895 add_show_prefix_cmd.
11896 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11897 (_initialize_serial): Use add_basic_prefix_cmd,
11898 add_show_prefix_cmd.
11899 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11900 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11901 add_show_prefix_cmd.
11902 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11903 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11904 add_show_prefix_cmd.
11905 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11906 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11907 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11908 add_show_prefix_cmd.
11909 * remote.c (remote_command, set_remote_cmd): Remove.
11910 (_initialize_remote): Use add_basic_prefix_cmd.
11911 * record-full.c (set_record_full_command)
11912 (show_record_full_command): Remove.
11913 (_initialize_record_full): Use add_basic_prefix_cmd,
11914 add_show_prefix_cmd.
11915 * record-btrace.c (cmd_set_record_btrace)
11916 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11917 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11918 (cmd_show_record_btrace_pt): Remove.
11919 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11920 add_show_prefix_cmd.
11921 * ravenscar-thread.c (set_ravenscar_command)
11922 (show_ravenscar_command): Remove.
11923 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11924 add_show_prefix_cmd.
11925 * mips-tdep.c (show_mips_command, set_mips_command)
11926 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11927 add_show_prefix_cmd.
11928 * maint.c (maintenance_command, maintenance_info_command)
11929 (maintenance_check_command, maintenance_print_command)
11930 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11931 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11932 add_show_prefix_cmd.
11933 (show_per_command_cmd): Remove.
11934 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11935 Remove.
11936 (maintenance_show_test_settings_cmd): Remove.
11937 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11938 add_show_prefix_cmd.
11939 * maint-test-options.c (maintenance_test_options_command):
11940 Remove.
11941 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11942 * macrocmd.c (macro_command): Remove
11943 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11944 * language.c (set_check, show_check): Remove.
11945 (_initialize_language): Use add_basic_prefix_cmd,
11946 add_show_prefix_cmd.
11947 * infcmd.c (unset_command): Remove.
11948 (_initialize_infcmd): Use add_basic_prefix_cmd.
11949 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11950 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11951 add_show_prefix_cmd.
11952 * go32-nat.c (go32_info_dos_command): Remove.
11953 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11954 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11955 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11956 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11957 (_initialize_frame): Use add_basic_prefix_cmd,
11958 add_show_prefix_cmd.
11959 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11960 (_initialize_dcache): Use add_basic_prefix_cmd,
11961 add_show_prefix_cmd.
11962 * cp-support.c (maint_cplus_command): Remove.
11963 (_initialize_cp_support): Use add_basic_prefix_cmd.
11964 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11965 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11966 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11967 add_basic_prefix_cmd, add_show_prefix_cmd.
11968 * breakpoint.c (save_command): Remove.
11969 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11970 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11971 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11972 add_show_prefix_cmd.
11973 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11974 (set_ada_command, show_ada_command): Remove.
11975 (_initialize_ada_language): Use add_basic_prefix_cmd,
11976 add_show_prefix_cmd.
11977 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11978
11979 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11980
11981 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11982 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11983
11984 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11985
11986 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11987 warning messages.
11988
11989 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11992 import table is not at beginning of .idata section.
11993
11994 2020-04-16 Pedro Alves <palves@redhat.com>
11995
11996 * inferior.c (delete_inferior): Use delete operator directly
11997 instead of delete_program_space.
11998 * progspace.c (add_program_space): New, factored out from
11999 program_space::program_space.
12000 (remove_program_space): New, factored out from
12001 delete_program_space.
12002 (program_space::program_space): Remove intro comment. Rewrite.
12003 (program_space::~program_space): Remove intro comment. Call
12004 remove_program_space.
12005 (delete_program_space): Delete.
12006 * progspace.h (program_space::program_space): Make explicit. Move
12007 intro comment here, adjusted.
12008 (program_space::~program_space): Move intro comment here,
12009 adjusted.
12010 (delete_program_space): Remove.
12011
12012 2020-04-16 Tom Tromey <tromey@adacore.com>
12013
12014 * windows-nat.c (windows_nat::handle_access_violation): New
12015 function.
12016 * nat/windows-nat.h (handle_access_violation): Declare.
12017 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12018 windows-nat.c. Call handle_access_violation.
12019
12020 2020-04-16 Tom de Vries <tdevries@suse.de>
12021
12022 PR symtab/25791
12023 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12024 CUs without psymtab.
12025
12026 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12027
12028 * python/python.c (do_start_initialization): Don't call
12029 PyEval_InitThreads for Python 3.9 and beyond.
12030
12031 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12032
12033 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12034 thread functions.
12035 (obsd_nat_target::wait): Likewise.
12036
12037 2020-04-15 Tom Tromey <tromey@adacore.com>
12038
12039 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12040 (DEBUG_EXCEPT): Use debug_printf.
12041
12042 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12043
12044 * completer.c (class completion_tracker::completion_hash_entry)
12045 <hash_name>: New member function.
12046 (completion_tracker::discard_completions): New callback to hash a
12047 completion_hash_entry, pass this to htab_create_alloc.
12048
12049 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12050
12051 * windows-nat.c (windows_make_so): Warn rather than stopping with
12052 an error if realpath() fails.
12053
12054 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12055
12056 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12057 (nbsd_nat_target::info_proc): Add do_status.
12058
12059 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12060 Tom de Vries <tdevries@suse.de>
12061
12062 PR symtab/25718
12063 * psympriv.h (struct partial_symtab::read_symtab)
12064 (struct partial_symtab::expand_psymtab)
12065 (struct partial_symtab::read_dependencies): Update comments.
12066 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12067 read_symtab for includer.
12068 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12069 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12070 (struct dwarf2_include_psymtab::m_readin): Remove.
12071 (struct dwarf2_include_psymtab::includer): New member function.
12072 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12073
12074 2020-04-14 Tom de Vries <tdevries@suse.de>
12075
12076 PR symtab/25720
12077 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12078 with NULL symbol_matcher and lookup_name.
12079 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12080 and lookup_name.
12081 * dwarf2/read.c (dw2_expand_symtabs_matching)
12082 (dw2_debug_names_expand_symtabs_matching): Same.
12083 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12084 Make lookup_name a pointer. Update comment.
12085 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12086 lookup_name being a pointer.
12087 * symfile.c (expand_symtabs_matching): Same.
12088 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12089 * linespec.c (iterate_over_all_matching_symtabs): Same.
12090
12091 2020-04-13 Tom Tromey <tom@tromey.com>
12092
12093 * run-on-main-thread.c: Update include.
12094 * unittests/main-thread-selftests.c: Update include.
12095 * tui/tui-win.c: Update include.
12096 * tui/tui-io.c: Update include.
12097 * tui/tui-interp.c: Update include.
12098 * tui/tui-hooks.c: Update include.
12099 * top.h: Update include.
12100 * top.c: Update include.
12101 * ser-base.c: Update include.
12102 * remote.c: Update include.
12103 * remote-notif.c: Update include.
12104 * remote-fileio.c: Update include.
12105 * record-full.c: Update include.
12106 * record-btrace.c: Update include.
12107 * python/python.c: Update include.
12108 * posix-hdep.c: Update include.
12109 * mingw-hdep.c: Update include.
12110 * mi/mi-main.c: Update include.
12111 * mi/mi-interp.c: Update include.
12112 * main.c: Update include.
12113 * linux-nat.c: Update include.
12114 * interps.c: Update include.
12115 * infrun.c: Update include.
12116 * inf-loop.c: Update include.
12117 * event-top.c: Update include.
12118 * event-loop.c: Move to ../gdbsupport/.
12119 * event-loop.h: Move to ../gdbsupport/.
12120 * async-event.h: Update include.
12121 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12122
12123 2020-04-13 Tom Tromey <tom@tromey.com>
12124
12125 * tui/tui-win.c: Include async-event.h.
12126 * remote.c: Include async-event.h.
12127 * remote-notif.c: Include async-event.h.
12128 * record-full.c: Include async-event.h.
12129 * record-btrace.c: Include async-event.h.
12130 * infrun.c: Include async-event.h.
12131 * event-top.c: Include async-event.h.
12132 * event-loop.h: Move some declarations to async-event.h.
12133 * event-loop.c: Don't include ser-event.h or top.h. Move some
12134 code to async-event.c.
12135 * async-event.h: New file.
12136 * async-event.c: New file.
12137 * Makefile.in (COMMON_SFILES): Add async-event.c.
12138 (HFILES_NO_SRCDIR): Add async-event.h.
12139
12140 2020-04-13 Tom Tromey <tom@tromey.com>
12141
12142 * utils.c (flush_streams): New function.
12143 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12144
12145 2020-04-13 Tom Tromey <tom@tromey.com>
12146
12147 * event-loop.c (handle_file_event): Use warning, not
12148 printf_unfiltered.
12149
12150 2020-04-13 Tom Tromey <tom@tromey.com>
12151
12152 * event-loop.c: Include <chrono>.
12153
12154 2020-04-13 Tom Tromey <tom@tromey.com>
12155
12156 * gdb_select.h: Move to ../gdbsupport/.
12157 * event-loop.c: Update include path.
12158 * top.c: Update include path.
12159 * ser-base.c: Update include path.
12160 * ui-file.c: Update include path.
12161 * ser-tcp.c: Update include path.
12162 * guile/scm-ports.c: Update include path.
12163 * posix-hdep.c: Update include path.
12164 * ser-unix.c: Update include path.
12165 * gdb_usleep.c: Update include path.
12166 * mingw-hdep.c: Update include path.
12167 * inflow.c: Update include path.
12168 * infrun.c: Update include path.
12169 * event-top.c: Update include path.
12170
12171 2020-04-13 Tom Tromey <tom@tromey.com>
12172
12173 * configure: Rebuild.
12174 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12175
12176 2020-04-13 Tom Tromey <tom@tromey.com>
12177
12178 * event-loop.h (start_event_loop): Don't declare.
12179 * event-loop.c (start_event_loop): Move...
12180 * main.c (start_event_loop): ...here. Now static.
12181
12182 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12183
12184 * MAINTAINERS: Update my email address.
12185
12186 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12187
12188 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12189 IP_ALL.
12190
12191 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12192
12193 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12194 (nbsd_nat_target::info_proc): Add do_cmdline.
12195
12196 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12197
12198 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12199 (nbsd_nat_target::info_proc): Add do_cwd.
12200
12201 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12202
12203 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12204
12205 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12206
12207 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12208 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12209 (nbsd_nat_target::info_proc): New functions.
12210 * nbsd-nat.c (kinfo_get_vmmap): New function.
12211 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12212 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12213 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12214 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12215 functions.
12216 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12217 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12218 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12219 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12220 (KINFO_VME_FLAG_GROWS_DOWN): New.
12221
12222 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12223
12224 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12225 bit shift.
12226
12227 2020-04-10 Tom Tromey <tromey@adacore.com>
12228
12229 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12230
12231 2020-04-10 Tom Tromey <tromey@adacore.com>
12232
12233 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12234 separate debug files.
12235
12236 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12237
12238 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12239 Move to...
12240 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12241 ... here.
12242 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12243 Check for STATUS_WX86_BREAKPOINT.
12244 (windows_nat_target::wait): Same.
12245
12246 2020-04-10 Tom de Vries <tdevries@suse.de>
12247
12248 PR cli/25808
12249 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12250
12251 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12252
12253 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12254 (Write After Approval): Remove Tom de Vries.
12255
12256 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12257
12258 revert partially:
12259 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12260
12261 * buildsym.c (record_line): Fix undefined behavior and preserve
12262 lines at eof.
12263
12264 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12265
12266 * auxv.h (svr4_auxv_parse): New.
12267 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12268 and generic_auxv_parse.
12269 (svr4_auxv_parse): Add.
12270 * obsd-tdep.c: Include "auxv.h".
12271 (obsd_auxv_parse): Remove.
12272 (obsd_init_abi): Remove comment.
12273 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12274 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12275 * nbsd-tdep.c: Include "auxv.h".
12276 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12277
12278 2020-04-08 Tom Tromey <tromey@adacore.com>
12279
12280 * nat/windows-nat.h (last_wait_event): Don't declare.
12281 (wait_for_debug_event): Update comment.
12282 * nat/windows-nat.c (last_wait_event): Now static.
12283
12284 2020-04-08 Tom Tromey <tromey@adacore.com>
12285
12286 * windows-nat.c (wait_for_debug_event): Move to
12287 nat/windows-nat.c.
12288 * nat/windows-nat.h (wait_for_debug_event): Declare.
12289 * nat/windows-nat.c (wait_for_debug_event): Move from
12290 windows-nat.c. No longer static.
12291
12292 2020-04-08 Tom Tromey <tromey@adacore.com>
12293
12294 * windows-nat.c (get_windows_debug_event): Use
12295 fetch_pending_stop.
12296 * nat/windows-nat.h (fetch_pending_stop): Declare.
12297 * nat/windows-nat.c (fetch_pending_stop): New function.
12298
12299 2020-04-08 Tom Tromey <tromey@adacore.com>
12300
12301 * windows-nat.c (windows_continue): Use matching_pending_stop and
12302 continue_last_debug_event.
12303 * nat/windows-nat.h (matching_pending_stop)
12304 (continue_last_debug_event): Declare.
12305 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12306 (matching_pending_stop, continue_last_debug_event): New
12307 functions.
12308
12309 2020-04-08 Tom Tromey <tromey@adacore.com>
12310
12311 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12312 (handle_exception_result): Move to nat/windows-nat.h.
12313 (DEBUG_EXCEPTION_SIMPLE): Remove.
12314 (windows_nat::handle_ms_vc_exception): New function.
12315 (handle_exception): Move to nat/windows-nat.c.
12316 (get_windows_debug_event): Update.
12317 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12318 nat/windows-nat.c.
12319 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12320 (handle_exception_result): Move from windows-nat.c.
12321 (handle_exception): Declare.
12322 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12323 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12324 windows-nat.c.
12325
12326 2020-04-08 Tom Tromey <tromey@adacore.com>
12327
12328 * windows-nat.c (exception_count, event_count): Remove.
12329 (handle_exception, get_windows_debug_event)
12330 (do_initial_windows_stuff): Update.
12331
12332 2020-04-08 Tom Tromey <tromey@adacore.com>
12333
12334 * windows-nat.c (windows_nat::handle_load_dll)
12335 (windows_nat::handle_unload_dll): Rename. No longer static.
12336 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12337 Declare.
12338
12339 2020-04-08 Tom Tromey <tromey@adacore.com>
12340
12341 * complaints.h (stop_whining): Declare at top-level.
12342 (complaint): Don't declare stop_whining.
12343
12344 2020-04-08 Tom Tromey <tromey@adacore.com>
12345
12346 * windows-nat.c (windows_nat::handle_output_debug_string):
12347 Rename. No longer static.
12348 * nat/windows-nat.h (handle_output_debug_string): Declare.
12349
12350 2020-04-08 Tom Tromey <tromey@adacore.com>
12351
12352 * windows-nat.c (current_process_handle, current_process_id)
12353 (main_thread_id, last_sig, current_event, last_wait_event)
12354 (current_windows_thread, desired_stop_thread_id, pending_stops)
12355 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12356 (display_selectors, fake_create_process)
12357 (get_windows_debug_event): Update.
12358 * nat/windows-nat.h (current_process_handle, current_process_id)
12359 (main_thread_id, last_sig, current_event, last_wait_event)
12360 (current_windows_thread, desired_stop_thread_id, pending_stops)
12361 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12362 * nat/windows-nat.c (current_process_handle, current_process_id)
12363 (main_thread_id, last_sig, current_event, last_wait_event)
12364 (current_windows_thread, desired_stop_thread_id, pending_stops)
12365 (siginfo_er): New globals. Move from windows-nat.c.
12366
12367 2020-04-08 Tom Tromey <tromey@adacore.com>
12368
12369 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12370 (handle_load_dll): Update.
12371 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12372
12373 2020-04-08 Tom Tromey <tromey@adacore.com>
12374
12375 * windows-nat.c (enum thread_disposition_type): Move to
12376 nat/windows-nat.h.
12377 (windows_nat::thread_rec): Rename from thread_rec. No longer
12378 static.
12379 (windows_add_thread, windows_nat_target::fetch_registers)
12380 (windows_nat_target::store_registers, handle_exception)
12381 (windows_nat_target::resume, get_windows_debug_event)
12382 (windows_nat_target::get_tib_address)
12383 (windows_nat_target::thread_name)
12384 (windows_nat_target::thread_alive): Update.
12385 * nat/windows-nat.h (enum thread_disposition_type): Move from
12386 windows-nat.c.
12387 (thread_rec): Declare.
12388
12389 2020-04-08 Tom Tromey <tromey@adacore.com>
12390
12391 * windows-nat.c: Add "using namespace".
12392 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12393 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12394
12395 2020-04-08 Tom Tromey <tromey@adacore.com>
12396
12397 * nat/windows-nat.h (struct windows_thread_info): Declare
12398 destructor.
12399 * nat/windows-nat.c (~windows_thread_info): New.
12400
12401 2020-04-08 Tom Tromey <tromey@adacore.com>
12402
12403 PR gdb/22992
12404 * windows-nat.c (current_event): Update comment.
12405 (last_wait_event, desired_stop_thread_id): New globals.
12406 (struct pending_stop): New.
12407 (pending_stops): New global.
12408 (windows_nat_target) <stopped_by_sw_breakpoint>
12409 <supports_stopped_by_sw_breakpoint>: New methods.
12410 (windows_fetch_one_register): Add assertions. Adjust PC.
12411 (windows_continue): Handle pending stops. Suspend other threads
12412 when stepping. Use last_wait_event
12413 (wait_for_debug_event): New function.
12414 (get_windows_debug_event): Use wait_for_debug_event. Handle
12415 pending stops. Queue spurious stops.
12416 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12417 (windows_nat_target::kill): Use wait_for_debug_event.
12418 * nat/windows-nat.h (struct windows_thread_info)
12419 <stopped_at_software_breakpoint>: New field.
12420 * nat/windows-nat.c (windows_thread_info::resume): Clear
12421 stopped_at_software_breakpoint.
12422
12423 2020-04-08 Tom Tromey <tromey@adacore.com>
12424
12425 * windows-nat.c (enum thread_disposition_type): New.
12426 (thread_rec): Replace "get_context" parameter with "disposition";
12427 change type.
12428 (windows_add_thread, windows_nat_target::fetch_registers)
12429 (windows_nat_target::store_registers, handle_exception)
12430 (windows_nat_target::resume, get_windows_debug_event)
12431 (windows_nat_target::get_tib_address)
12432 (windows_nat_target::thread_name)
12433 (windows_nat_target::thread_alive): Update.
12434
12435 2020-04-08 Tom Tromey <tromey@adacore.com>
12436
12437 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12438 (windows_continue): Use windows_continue::resume.
12439 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12440 resume>: Declare new methods.
12441 * nat/windows-nat.c: New file.
12442 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12443
12444 2020-04-08 Tom Tromey <tromey@adacore.com>
12445
12446 * windows-nat.c (windows_add_thread, windows_delete_thread)
12447 (windows_nat_target::fetch_registers)
12448 (windows_nat_target::store_registers, fake_create_process)
12449 (windows_nat_target::resume, windows_nat_target::resume)
12450 (get_windows_debug_event, windows_nat_target::wait)
12451 (windows_nat_target::pid_to_str)
12452 (windows_nat_target::get_tib_address)
12453 (windows_nat_target::get_ada_task_ptid)
12454 (windows_nat_target::thread_name)
12455 (windows_nat_target::thread_alive): Use lwp, not tid.
12456
12457 2020-04-08 Tom Tromey <tromey@adacore.com>
12458
12459 * windows-nat.c (handle_exception)
12460 (windows_nat_target::thread_name): Update.
12461 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12462 <name>: Now unique_xmalloc_ptr.
12463
12464 2020-04-08 Tom Tromey <tromey@adacore.com>
12465
12466 * windows-nat.c (thread_rec)
12467 (windows_nat_target::fetch_registers): Update.
12468 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12469 Update comment.
12470 <debug_registers_changed, reload_context>: Now bool.
12471
12472 2020-04-08 Tom Tromey <tromey@adacore.com>
12473
12474 * windows-nat.c (windows_add_thread): Use new.
12475 (windows_init_thread_list, windows_delete_thread): Use delete.
12476 (get_windows_debug_event): Update.
12477 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12478 destructor, and initializers.
12479
12480 2020-04-08 Tom Tromey <tromey@adacore.com>
12481
12482 * windows-nat.c (struct windows_thread_info): Remove.
12483 * nat/windows-nat.h: New file.
12484
12485 2020-04-08 Tom Tromey <tromey@adacore.com>
12486
12487 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12488 (thread_rec, windows_add_thread, windows_delete_thread)
12489 (windows_continue): Update.
12490
12491 2020-04-08 Tom Tromey <tromey@adacore.com>
12492
12493 * windows-nat.c (struct windows_thread_info): Remove typedef.
12494 (thread_head): Remove.
12495 (thread_list): New global.
12496 (thread_rec, windows_add_thread, windows_init_thread_list)
12497 (windows_delete_thread, windows_continue): Update.
12498
12499 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12500
12501 * windows-tdep.h (windows_init_abi): Add comment.
12502 (cygwin_init_abi): New declaration.
12503 * windows-tdep.c: Split signal enumeration in two, one for
12504 Windows and one for Cygwin.
12505 (windows_gdb_signal_to_target): Only deal with signal of the
12506 Windows OS ABI.
12507 (cygwin_gdb_signal_to_target): New function.
12508 (windows_init_abi): Rename to windows_init_abi_common, don't set
12509 gdb_signal_to_target gdbarch method. Add new new function with
12510 this name.
12511 (cygwin_init_abi): New function.
12512 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12513 comment. Don't call windows_init_abi.
12514 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12515 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12516 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12517 i386_windows_init_abi_common, don't call windows_init_abi. Add
12518 a new function of this name.
12519 (i386_cygwin_init_abi): New function.
12520 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12521 OS ABI Cygwin.
12522
12523 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12524
12525 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12526 parameter.c.
12527 (dwarf2_read_gdb_index): Update.
12528
12529 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12530
12531 * nbsd-tdep.c: Include "objfiles.h".
12532 (nbsd_skip_solib_resolver): New.
12533 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12534
12535 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12536
12537 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12538 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12539 with DW_LLE_base_addressx are being emitted in DWARFv5.
12540 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12541 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12542 unsigned integer.
12543
12544 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12545
12546 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12547 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12548 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12549 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12550 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12551 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12552 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12553
12554
12555 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12556
12557 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12558 (read_loclist_index): New function definition.
12559 (lookup_loclist_base): New function definition.
12560 (read_loclist_header): New function definition.
12561 (dwarf2_cu): Add loclist_base and loclist_header field.
12562 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12563 (read_full_die_1): Read the value of DW_AT_loclists_base.
12564 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12565 (read_attribute_value): Handle DW_FORM_loclistx.
12566 (skip_one_die): Handle DW_FORM_loclistx.
12567 (loclist_header): New structure declaration.
12568 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12569
12570 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12571
12572 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12573 constructor. Remove `addr` parameter from other constructor and
12574 add `per_cu` parameter.
12575 * dwarf2/read.c (create_partial_symtab): Update.
12576
12577 2020-04-07 Tom de Vries <tdevries@suse.de>
12578
12579 PR symtab/25796
12580 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12581 (partial_die_info::fixup): Inherit has_const_value.
12582
12583 2020-04-07 Tom de Vries <tdevries@suse.de>
12584
12585 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12586 symbols without address.
12587
12588 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12589
12590 * nbsd-nat.h (struct thread_info): Add forward declaration.
12591 (nbsd_nat_target::thread_alive): Add.
12592 (nbsd_nat_target::thread_name): Likewise.
12593 (nbsd_nat_target::update_thread_list): Likewise.
12594 (update_thread_list::post_attach): Likewise.
12595 (post_attach::pid_to_str): Likewise.
12596 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12597 (nbsd_thread_lister): Add.
12598 (nbsd_nat_target::thread_alive): Likewise.
12599 (nbsd_nat_target::thread_name): Likewise.
12600 (nbsd_add_threads): Likewise.
12601 (update_thread_list::post_attach): Likewise.
12602 (nbsd_nat_target::update_thread_list): Likewise.
12603 (post_attach::pid_to_str): Likewise.
12604
12605 2020-04-06 Tom Tromey <tromey@adacore.com>
12606
12607 * ada-valprint.c (print_variant_part): Extract the variant field.
12608 (print_field_values): Use the field as the outer value when
12609 recursing.
12610
12611 2020-04-06 Tom Tromey <tromey@adacore.com>
12612
12613 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12614 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12615 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12616 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12617 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12618
12619 2020-04-06 Tom Tromey <tromey@adacore.com>
12620
12621 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12622 TYPE_CODE_ERROR.
12623
12624 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12625
12626 * nbsd-tdep.c: Include "gdbarch.h".
12627 Define enum with NetBSD signal numbers.
12628 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12629 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12630 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12631 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12632 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12633 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12634 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12635 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12636 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12637 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12638 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12639 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12640
12641 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12642
12643 PR gdb/25325
12644 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12645
12646 2020-04-03 Tom Tromey <tromey@adacore.com>
12647
12648 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12649 Read constant block.
12650
12651 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12652
12653 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12654 (gdb_bfd_get_full_section_contents): New declaration.
12655 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12656 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12657 gdb_bfd_get_full_section_contents.
12658
12659 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12660
12661 * exec.c (build_section_table): Replace internal_error with
12662 gdb_assert.
12663 (section_table_xfer_memory_partial): Likewise.
12664 * mdebugread.c (parse_partial_symbols): Likewise.
12665 * psymtab.c (lookup_partial_symbol): Likewise.
12666 * utils.c (wrap_here): Likewise.
12667
12668 2020-04-02 Tom Tromey <tromey@adacore.com>
12669
12670 * f-lang.c (build_fortran_types): Use arch_type to initialize
12671 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12672
12673 2020-04-02 Tom Tromey <tromey@adacore.com>
12674
12675 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12676 of attributes.
12677
12678 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12679 Bernd Edlinger <bernd.edlinger@hotmail.de>
12680 Tom Tromey <tromey@adacore.com>
12681
12682 * buildsym.c (buildsym_compunit::record_line): Remove
12683 deduplication code.
12684
12685 2020-04-02 Tom de Vries <tdevries@suse.de>
12686
12687 PR ada/24671
12688 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12689
12690 2020-04-02 Tom de Vries <tdevries@suse.de>
12691
12692 * dwarf2/read.c (dwarf2_gdb_index_functions,
12693 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12694 NULL.
12695 * psymtab.c (psym_lookup_global_symbol_language): New function.
12696 (psym_functions): Init psym_lookup_global_symbol_language with
12697 psym_lookup_global_symbol_language.
12698 * symfile-debug.c (debug_sym_quick_functions): Init
12699 lookup_global_symbol_language with NULL.
12700 * symfile.c (set_initial_language): Remove fixme comment.
12701 * symfile.h (struct quick_symbol_functions): Add
12702 lookup_global_symbol_language.
12703 * symtab.c (find_quick_global_symbol_language): New function.
12704 (find_main_name): Use find_quick_global_symbol_language.
12705
12706 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12707
12708 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12709
12710 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12711
12712 * buildsym.c (record_line): Fix undefined behavior and preserve
12713 lines at eof.
12714
12715 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12716
12717 * buildsym.c (record_line): Fix the resizing condition.
12718
12719 2020-04-01 Tom Tromey <tom@tromey.com>
12720
12721 * value.h (value_literal_complex): Add comment.
12722 * valops.c (value_literal_complex): Refer to value.h.
12723
12724 2020-04-01 Tom Tromey <tom@tromey.com>
12725
12726 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12727 (scalar_type): New rule, from typebase.
12728 (typebase): Use scalar_type. Recognize complex types.
12729 (field_name): Handle FLOAT_KEYWORD.
12730 (ident_tokens): Add _Complex and __complex__.
12731
12732 2020-04-01 Tom Tromey <tom@tromey.com>
12733
12734 PR exp/25299:
12735 * valarith.c (promotion_type, complex_binop): New functions.
12736 (scalar_binop): Handle complex numbers. Use promotion_type.
12737 (value_pos, value_neg, value_complement): Handle complex numbers.
12738
12739 2020-04-01 Tom Tromey <tom@tromey.com>
12740
12741 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12742 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12743 (parse_number): Handle complex numbers.
12744
12745 2020-04-01 Tom Tromey <tom@tromey.com>
12746
12747 * c-valprint.c (c_decorations): Change complex suffix to "i".
12748
12749 2020-04-01 Tom Tromey <tom@tromey.com>
12750
12751 * valprint.c (generic_value_print_complex): Use accessors.
12752 * value.h (value_real_part, value_imaginary_part): Declare.
12753 * valops.c (value_real_part, value_imaginary_part): New
12754 functions.
12755 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12756
12757 2020-04-01 Tom Tromey <tom@tromey.com>
12758
12759 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12760 (read_range_type): Update.
12761 * mdebugread.c (basic_type): Update.
12762 * go-lang.c (build_go_types): Use init_complex_type.
12763 * gdbtypes.h (struct main_type) <complex_type>: New member.
12764 (init_complex_type): Update.
12765 (arch_complex_type): Don't declare.
12766 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12767 Make name if none given. Use alloc_type_copy. Look for cached
12768 complex type.
12769 (arch_complex_type): Remove.
12770 (gdbtypes_post_init): Use init_complex_type.
12771 * f-lang.c (build_fortran_types): Use init_complex_type.
12772 * dwarf2/read.c (read_base_type): Update.
12773 * d-lang.c (build_d_types): Use init_complex_type.
12774 * ctfread.c (read_base_type): Update.
12775
12776 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12777
12778 * infrun.c (stop_all_threads): Update assertion, plus when
12779 stopping threads, take into account that we might be trying
12780 to stop an all-stop target.
12781 (stop_waiting): Call 'stop_all_threads' if there exists a
12782 non-stop target.
12783
12784 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12785
12786 * target.h (exists_non_stop_target): New function declaration.
12787 * target.c (exists_non_stop_target): New function.
12788
12789 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12790
12791 PR gdb/24789
12792 * eval.c (is_integral_or_integral_reference): New function.
12793 (evaluate_subexp_standard): Allow integer references in
12794 pointer arithmetic.
12795
12796 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12797
12798 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12799 check for no ptid in the stop reply when the target is non-stop.
12800
12801 2020-04-01 Tom Tromey <tromey@adacore.com>
12802
12803 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12804 "name" parameter to rvalue reference. Initialize m_name_holder.
12805 <lookup_name_info>: New overloads.
12806 <name>: Return gdb::string_view.
12807 <c_str>: New method.
12808 <make_ignore_params>: Update.
12809 <search_name_hash>: Update.
12810 <language_lookup_name>: Return const char *.
12811 <m_name>: Change type.
12812 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12813 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12814 (lookup_name_info::match_any): Update.
12815 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12816 Update.
12817 * minsyms.c (linkage_name_str): Update.
12818 * language.c (default_symbol_name_matcher): Update.
12819 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12820 Update.
12821 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12822 (ada_lookup_name_info::ada_lookup_name_info): Update.
12823 (literal_symbol_name_matcher): Update.
12824
12825 2020-04-01 Tom Tromey <tromey@adacore.com>
12826
12827 * psymtab.c (psymtab_search_name): Remove function.
12828 (psym_lookup_symbol): Create search name and lookup name here.
12829 (lookup_partial_symbol): Remove "name" parameter; add
12830 lookup_name.
12831 (psym_expand_symtabs_for_function): Update.
12832
12833 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12834
12835 PR tui/25597:
12836 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12837
12838 2020-03-31 Tom Tromey <tromey@adacore.com>
12839
12840 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12841 memcpy.
12842
12843 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12844
12845 * features/riscv/32bit-csr.xml: Regenerated.
12846 * features/riscv/64bit-csr.xml: Regenerated.
12847
12848 2020-03-30 Tom Tromey <tromey@adacore.com>
12849
12850 * ada-valprint.c (print_variant_part): Update.
12851 * ada-lang.h (ada_which_variant_applies): Update.
12852 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12853 outer_valaddr parameters; replace with "outer" value parameter.
12854 (to_fixed_variant_branch_type): Update.
12855
12856 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12857
12858 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12859 <list>. Remove inclusion of observable.h.
12860 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12861 (struct arch_lwp_info): New struct.
12862 (class ppc_linux_dreg_interface): New class.
12863 (struct ppc_linux_process_info): New struct.
12864 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12865 <low_new_clone, low_forget_process, low_prepare_to_resume>
12866 <copy_thread_dreg_state, mark_thread_stale>
12867 <mark_debug_registers_changed, register_hw_breakpoint>
12868 <clear_hw_breakpoint, register_wp, clear_wp>
12869 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12870 <num_memory_accesses, get_trigger_type>
12871 <create_watchpoint_request, hwdebug_point_cmp>
12872 <init_arch_lwp_info, get_arch_lwp_info>
12873 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12874 methods.
12875 <struct ptid_hash>: New inner struct.
12876 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12877 members.
12878 (saved_dabr_value, hwdebug_info, max_slots_number)
12879 (struct hw_break_tuple, struct thread_points, ppc_threads)
12880 (have_ptrace_hwdebug_interface)
12881 (hwdebug_find_thread_points_by_tid)
12882 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12883 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12884 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12885 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12886 use m_dreg_interface.
12887 (hwdebug_point_cmp): Change to...
12888 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12889 reference arguments instead of pointers.
12890 (ppc_linux_nat_target::ranged_break_num_registers): Use
12891 m_dreg_interface.
12892 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12893 m_dreg_interface. Call register_hw_breakpoint.
12894 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12895 m_dreg_interface. Call clear_hw_breakpoint.
12896 (get_trigger_type): Change to...
12897 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12898 comment.
12899 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12900 use m_dreg_interface. Call register_hw_breakpoint.
12901 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12902 use m_dreg_interface. Call clear_hw_breakpoint.
12903 (can_use_watchpoint_cond_accel): Change to...
12904 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12905 method. Update comment, use m_dreg_interface and
12906 m_process_info.
12907 (calculate_dvc): Change to...
12908 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12909 m_dreg_interface.
12910 (num_memory_accesses): Change to...
12911 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12912 (check_condition): Change to...
12913 (ppc_linux_nat_target::check_condition): ...this method.
12914 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12915 comment, use m_dreg_interface.
12916 (create_watchpoint_request): Change to...
12917 (ppc_linux_nat_target::create_watchpoint_request): ...this
12918 method. Use m_dreg_interface.
12919 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12920 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12921 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12922 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12923 (ppc_linux_nat_target::low_forget_process)
12924 (ppc_linux_nat_target::low_new_fork)
12925 (ppc_linux_nat_target::low_new_clone)
12926 (ppc_linux_nat_target::low_delete_thread)
12927 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12928 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12929 only call mark_thread_stale.
12930 (ppc_linux_thread_exit): Remove.
12931 (ppc_linux_nat_target::stopped_data_address): Change to...
12932 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12933 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12934 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12935 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12936 comment. Call low_stopped_data_address.
12937 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12938 m_dreg_interface.
12939 (ppc_linux_nat_target::masked_watch_num_registers): Use
12940 m_dreg_interface.
12941 (ppc_linux_nat_target::copy_thread_dreg_state)
12942 (ppc_linux_nat_target::mark_thread_stale)
12943 (ppc_linux_nat_target::mark_debug_registers_changed)
12944 (ppc_linux_nat_target::register_hw_breakpoint)
12945 (ppc_linux_nat_target::clear_hw_breakpoint)
12946 (ppc_linux_nat_target::register_wp)
12947 (ppc_linux_nat_target::clear_wp)
12948 (ppc_linux_nat_target::init_arch_lwp_info)
12949 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12950 (_initialize_ppc_linux_nat): Remove observer callback.
12951
12952 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12953
12954 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12955 (ppc_linux_nat_target::auxv_parse)
12956 (ppc_linux_nat_target::read_description)
12957 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12958 Move up.
12959
12960 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12961
12962 * linux-nat.h (low_new_clone): New method.
12963 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12964
12965 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12966
12967 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12968 (dbx_expand_psymtab): ... this.
12969 (start_psymtab): Update.
12970 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12971 (mdebug_expand_psymtab): ... this.
12972 (parse_partial_symbols): Update.
12973 (new_psymtab): Update.
12974 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12975 (xcoff_expand_psymtab): ... this.
12976 (xcoff_start_psymtab): Update.
12977
12978 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12979
12980 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12981 <expand_dependencies>: ... this.
12982 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12983 (partial_symtab::expand_dependencies): ... this.
12984 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12985 Update.
12986 (dwarf2_psymtab::expand_psymtab): Update.
12987 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12988 * mdebugread.c (psymtab_to_symtab_1): Update.
12989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12990
12991 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12992
12993 * psympriv.h (discard_psymtab): Remove.
12994 * dbxread.c (dbx_end_psymtab): Update.
12995 * xcoffread.c (xcoff_end_psymtab): Update.
12996
12997 2020-03-28 Tom Tromey <tom@tromey.com>
12998
12999 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13000 comment.
13001
13002 2020-03-28 Tom Tromey <tom@tromey.com>
13003
13004 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13005
13006 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13007
13008 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13009
13010 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13011
13012 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13013
13014 2020-03-26 Tom Tromey <tom@tromey.com>
13015
13016 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13017 (mark_common_block_symbol_computed, read_tag_string_type)
13018 (attr_to_dynamic_prop, read_subrange_type): Update.
13019 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13020 to be methods on struct attribute.
13021 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13022 (read_call_site_scope, partial_die_info::read)
13023 (partial_die_info::read, lookup_die_type, follow_die_ref):
13024 Update.
13025 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13026 from dwarf2_get_ref_die_offset.
13027 (attribute::constant_value): New method, from
13028 dwarf2_get_attr_constant_value.
13029 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13030 Declare method.
13031 <constant_value>: New method.
13032
13033 2020-03-26 Tom Tromey <tom@tromey.com>
13034
13035 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13036 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13037 (dwarf_type_encoding_name): Move to stringify.c.
13038 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13039 * dwarf2/stringify.c: New file.
13040 * dwarf2/stringify.h: New file.
13041
13042 2020-03-26 Tom Tromey <tom@tromey.com>
13043
13044 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13045 Rewrite.
13046
13047 2020-03-26 Tom Tromey <tom@tromey.com>
13048
13049 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13050 methods.
13051 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13052 (lookup_ranges_base): Likewise.
13053 (read_cutu_die_from_dwo, read_full_die_1): Update.
13054
13055 2020-03-26 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2/read.c (read_import_statement, read_file_scope)
13058 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13059 (read_lexical_block_scope, read_call_site_scope)
13060 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13061 (handle_struct_member_die, process_structure_scope)
13062 (update_enumeration_type_from_children)
13063 (process_enumeration_scope, read_array_type, read_common_block)
13064 (read_namespace, read_module, read_subroutine_type): Update.
13065 (sibling_die): Remove.
13066
13067 2020-03-26 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13070 (build_type_psymtabs_reader, read_structure_type)
13071 (read_enumeration_type, read_full_die_1): Update.
13072 (dwarf2_attr_no_follow): Move to die.h.
13073 * dwarf2/die.h (struct die_info) <attr>: New method.
13074
13075 2020-03-26 Tom Tromey <tom@tromey.com>
13076
13077 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13078 <base_address>: Now an optional.
13079 (dwarf2_find_base_address, dwarf2_rnglists_process)
13080 (dwarf2_ranges_process, fill_in_loclist_baton)
13081 (dwarf2_symbol_mark_computed): Update.
13082
13083 2020-03-26 Tom Tromey <tom@tromey.com>
13084
13085 * dwarf2/read.c (struct die_info): Move to die.h.
13086 * dwarf2/die.h: New file.
13087
13088 2020-03-26 Tom Tromey <tom@tromey.com>
13089
13090 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13091 * dwarf2/read.c
13092 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13093 Move to line-header.c.
13094 (read_checked_initial_length_and_offset, read_formatted_entries):
13095 Likewise.
13096 (dwarf_decode_line_header): Split into two.
13097 * dwarf2/line-header.c
13098 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13099 Move from read.c.
13100 (read_checked_initial_length_and_offset, read_formatted_entries):
13101 Likewise.
13102 (dwarf_decode_line_header): New function, split from read.c.
13103
13104 2020-03-26 Tom Tromey <tom@tromey.com>
13105
13106 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13107 Declare method.
13108 * dwarf2/read.c (read_attribute_value): Update.
13109 (dwarf2_per_objfile::read_line_string): Rename from
13110 read_indirect_line_string.
13111 (read_formatted_entries): Update.
13112
13113 2020-03-26 Tom Tromey <tom@tromey.com>
13114
13115 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13116 variable.
13117
13118 2020-03-26 Tom Tromey <tom@tromey.com>
13119
13120 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13121 const.
13122 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13123 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13124 parameter const.
13125
13126 2020-03-26 Tom Tromey <tom@tromey.com>
13127
13128 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13129 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13130 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13131 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13132
13133 2020-03-26 Tom Tromey <tom@tromey.com>
13134
13135 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13136 file_names_size, file_full_name, file_file_name>: Use const.
13137 <file_name_at, file_names>: Add const overload.
13138 * dwarf2/line-header.c (line_header::file_file_name)
13139 (line_header::file_full_name): Update.
13140
13141 2020-03-26 Tom Tromey <tom@tromey.com>
13142
13143 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13144 (macro_start_file, consume_improper_spaces)
13145 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13146 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13147 (dwarf_decode_macros): Move to macro.c.
13148 * dwarf2/macro.c: New file.
13149 * dwarf2/macro.h: New file.
13150 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13151
13152 2020-03-26 Tom Tromey <tom@tromey.com>
13153
13154 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13155 method.
13156 * dwarf2/section.c: New method. From
13157 read_indirect_string_at_offset_from.
13158 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13159 (read_indirect_string_at_offset_from): Move to section.c.
13160 (read_indirect_string_at_offset): Rewrite.
13161 (read_indirect_line_string_at_offset): Remove.
13162 (read_indirect_string, read_indirect_line_string)
13163 (dwarf_decode_macro_bytes): Update.
13164
13165 2020-03-26 Tom Tromey <tom@tromey.com>
13166
13167 * dwarf2/section.h (struct dwarf2_section_info)
13168 <overload_complaint>: Declare.
13169 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13170 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13171 Rename from dwarf2_section_buffer_overflow_complaint.
13172 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13173 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13174
13175 2020-03-26 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13178 Declare.
13179 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13180 Move from read.c.
13181 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13182 to section.c.
13183
13184 2020-03-26 Tom Tromey <tom@tromey.com>
13185
13186 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13187
13188 2020-03-26 Tom Tromey <tom@tromey.com>
13189
13190 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13191 "builder".
13192 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13193 parameter.
13194 (dwarf_decode_macros): Update.
13195
13196 2020-03-26 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2/read.c (read_attribute_value): Update.
13199 (read_indirect_string_from_dwz): Move to dwz.c; change into
13200 method.
13201 (dwarf_decode_macro_bytes): Update.
13202 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13203 * dwarf2/dwz.c: New file.
13204 * Makefile.in (COMMON_SFILES): Add dwz.c.
13205
13206 2020-03-26 Tom Tromey <tom@tromey.com>
13207
13208 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13209 * dwarf2/read.c: Add include.
13210 * dwarf2/index-write.c: Add include.
13211 * dwarf2/index-cache.c: Add include.
13212 * dwarf2/dwz.h: New file.
13213
13214 2020-03-25 Tom Tromey <tom@tromey.com>
13215
13216 * compile/compile-object-load.c (get_out_value_type): Mention
13217 correct symbol name in error message.
13218
13219 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13220
13221 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13222
13223 2020-03-25 Tom de Vries <tdevries@suse.de>
13224
13225 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13226 * symmisc.c (dump_symtab_1): Print user and includes fields.
13227 (maintenance_info_symtabs): Same.
13228
13229 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13230
13231 PR gdb/25534
13232 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13233 (riscv_regcache_cooked_write): New function.
13234 (riscv_push_dummy_call): Use new function.
13235 (riscv_return_value): Likewise.
13236
13237 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13238
13239 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13240 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13241 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13242 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13243 * infrun.c (follow_fork): Likewise.
13244 (follow_fork_inferior): Likewise.
13245 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13246 * linux-nat.h (class linux_nat_target): Likewise.
13247 * remote.c (class remote_target) <follow_fork>: Likewise.
13248 (remote_target::follow_fork): Likewise.
13249 * target-delegates.c: Re-generate.
13250 * target.c (default_follow_fork): Likewise.
13251 (target_follow_fork): Likewise.
13252 * target.h (struct target_ops) <follow_fork>: Likewise.
13253 (target_follow_fork): Likewise.
13254
13255 2020-03-24 Tom de Vries <tdevries@suse.de>
13256
13257 * psymtab.c (maintenance_info_psymtabs): Print user field.
13258
13259 2020-03-20 Tom Tromey <tromey@adacore.com>
13260
13261 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13262 const.
13263 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13264 const.
13265
13266 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13267
13268 * ptrace.m4: Don't check for ptrace declaration.
13269 * config.in: Re-generate.
13270 * configure: Re-generate.
13271 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13272 not defined.
13273
13274 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13275
13276 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13277 `PTRACE_TYPE_RET'.
13278 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13279 * sparc-nat.c (gdb_ptrace): Likewise.
13280 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13281
13282 2020-03-20 Tom Tromey <tromey@adacore.com>
13283
13284 * c-exp.y (lex_one_token): Fix assert.
13285
13286 2020-03-20 Tom Tromey <tromey@adacore.com>
13287
13288 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13289 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13290 strncpy call.
13291
13292 2020-03-20 Tom Tromey <tromey@adacore.com>
13293
13294 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13295
13296 2020-03-20 Tom Tromey <tromey@adacore.com>
13297
13298 * ada-valprint.c (print_variant_part): Remove parameters; switch
13299 to value-based API.
13300 (print_field_values): Likewise.
13301 (ada_val_print_struct_union): Likewise.
13302 (ada_value_print_1): Update.
13303
13304 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13305
13306 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13307 nbsd_nat_target instead of inf_ptrace_target.
13308 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13309 nbsd_nat_target.
13310
13311 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13312
13313 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13314 it to the ptrace call.
13315 * (store_registers): Likewise.
13316
13317 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13318
13319 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13320 it to the ptrace call.
13321 * (store_registers): Likewise.
13322
13323 2020-03-19 Luis Machado <luis.machado@linaro.org>
13324
13325 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13326 valid, fetch vg value from ptrace.
13327
13328 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13329 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13330 * inf-ptrace.c: Likewise.
13331 * (gdb_ptrace): Add.
13332 * (inf_ptrace_target::resume): Update.
13333 * (inf_ptrace_target::xfer_partial): Likewise.
13334 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13335 * (inf_ptrace_peek_poke): Update.
13336
13337 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13338
13339 * x86-bsd-nat.c (gdb_ptrace): New.
13340 * (x86bsd_dr_set): Add new argument `ptid'.
13341 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13342 x86bsd_dr_set_addr): Update.
13343
13344 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13345
13346 * remote.c (remote_target::process_stop_reply): Handle events for
13347 all threads differently.
13348
13349 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13350
13351 * completer.c (completion_tracker::remove_completion): Define new
13352 function.
13353 * completer.h (completion_tracker::remove_completion): Declare new
13354 function.
13355 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13356 when adding a C++ function symbol.
13357
13358 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13359
13360 * completer.c (completion_tracker::completion_hash_entry): Define
13361 new class.
13362 (advance_to_filename_complete_word_point): Call
13363 recompute_lowest_common_denominator.
13364 (completion_tracker::completion_tracker): Call discard_completions
13365 to setup the hash table.
13366 (completion_tracker::discard_completions): Allow for being called
13367 from the constructor, pass new equal function, and element deleter
13368 when constructing the hash table. Initialise new class member
13369 variables.
13370 (completion_tracker::maybe_add_completion): Remove use of
13371 m_entries_vec, and store more information into m_entries_hash.
13372 (completion_tracker::recompute_lcd_visitor): New function, most
13373 content taken from...
13374 (completion_tracker::recompute_lowest_common_denominator):
13375 ...here, this now just visits each item in the hash calling the
13376 above visitor.
13377 (completion_tracker::build_completion_result): Remove use of
13378 m_entries_vec, call recompute_lowest_common_denominator.
13379 * completer.h (completion_tracker::have_completions): Remove use
13380 of m_entries_vec.
13381 (completion_tracker::completion_hash_entry): Declare new class.
13382 (completion_tracker::recompute_lowest_common_denominator): Change
13383 function signature.
13384 (completion_tracker::recompute_lcd_visitor): Declare new function.
13385 (completion_tracker::m_entries_vec): Delete.
13386 (completion_tracker::m_entries_hash): Initialize to NULL.
13387 (completion_tracker::m_lowest_common_denominator_valid): New
13388 member variable.
13389 (completion_tracker::m_lowest_common_denominator_max_length): New
13390 member variable.
13391
13392 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13393
13394 * regformats/regdef.h: Put reg in gdb namespace.
13395
13396 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13397
13398 * i386-bsd-nat.c (gdb_ptrace): New.
13399 * (i386bsd_fetch_inferior_registers,
13400 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13401 * (i386bsd_fetch_inferior_registers,
13402 i386bsd_store_inferior_registers) Use gdb_ptrace.
13403
13404 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13405
13406 * amd64-bsd-nat.c (gdb_ptrace): New.
13407 * (amd64bsd_fetch_inferior_registers,
13408 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13409 * (amd64bsd_fetch_inferior_registers,
13410 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13411
13412 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13413
13414 * user-regs.c (user_reg::read): Rename to...
13415 (user_reg::xread): ...this.
13416 * (append_user_reg): Rename argument `read' to `xread'.
13417 * (user_reg_add_builtin): Likewise.
13418 * (user_reg_add): Likewise.
13419 * (value_of_user_reg): Likewise.
13420
13421 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13422
13423 * sparc-nat.c (gdb_ptrace): New.
13424 * sparc-nat.c (sparc_fetch_inferior_registers)
13425 (sparc_store_inferior_registers) Remove obsolete comment.
13426 * sparc-nat.c (sparc_fetch_inferior_registers)
13427 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13428 * sparc-nat.c (sparc_fetch_inferior_registers)
13429 (sparc_store_inferior_registers) Use gdb_ptrace.
13430
13431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13432
13433 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13434 it to the ptrace call.
13435 * sh-nbsd-nat.c (store_registers): Likewise.
13436
13437 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13438
13439 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13440 nbsd_nat_target instead of inf_ptrace_target.
13441 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13442 nbsd_nat_target.
13443
13444 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13445
13446 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13447
13448 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13449
13450 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13451 <sys/sysctl.h>.
13452 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13453
13454 2020-03-17 Tom de Vries <tdevries@suse.de>
13455
13456 PR gdb/23710
13457 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13458 fields.
13459 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13460 fields.
13461 (process_imported_unit_die): Skip import of c++ CUs.
13462
13463 2020-03-16 Tom Tromey <tom@tromey.com>
13464
13465 * p-valprint.c (pascal_object_print_value): Initialize
13466 base_value.
13467
13468 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13469 Shahab Vahedi <shahab@synopsys.com>
13470
13471 * Makefile.in: Add arch/arc.o
13472 * configure.tgt: Likewise.
13473 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13474 (_initialize_arc_tdep): Don't initialize old target descriptions.
13475 (arc_read_description): New function to cache target descriptions.
13476 * arc-tdep.h (arc_read_description): Add proto type.
13477 * arch/arc.c: New file.
13478 * arch/arc.h: Likewise.
13479 * features/Makefile: Replace old target descriptions with new.
13480 * features/arc-arcompact.c: Remove.
13481 * features/arc-arcompact.xml: Likewise.
13482 * features/arc-v2.c: Likewise
13483 * features/arc-v2.xml: Likewise
13484 * features/arc/aux-arcompact.xml: New file.
13485 * features/arc/aux-v2.xml: Likewise.
13486 * features/arc/core-arcompact.xml: Likewise.
13487 * features/arc/core-v2.xml: Likewise.
13488 * features/arc/aux-arcompact.c: Generate.
13489 * features/arc/aux-v2.c: Likewise.
13490 * features/arc/core-arcompact.c: Likewise.
13491 * features/arc/core-v2.c: Likewise.
13492 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13493
13494 2020-03-16 Tom Tromey <tromey@adacore.com>
13495
13496 PR gdb/25663:
13497 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13498 putting value into bcache.
13499
13500 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13501
13502 PR gdb/21500
13503 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13504 to...
13505 (amd64_windows_init_abi_common): ... this. Don't set size of
13506 long type.
13507 (amd64_windows_init_abi): New function.
13508 (amd64_cygwin_init_abi): New function.
13509 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13510 the Cygwin OS ABI.
13511 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13512 comment.
13513
13514 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13515
13516 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13517 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13518 (pe_import_directory_entry): New struct type.
13519 (is_linked_with_cygwin_dll): New function.
13520 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13521 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13522 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13523
13524 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13525
13526 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13527 i386_cygwin_core_osabi_sniffer.
13528
13529 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13530
13531 * i386-cygwin-tdep.c: Rename to...
13532 * i386-windows-tdep.c: ... this.
13533 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13534 i386-windows-tdep.c.
13535 * configure.tgt: Likewise.
13536
13537 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13538
13539 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13540 * osabi.c (gdb_osabi_names): Add "Windows".
13541 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13542 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13543 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13544 i386_cygwin_osabi_sniffer.
13545 (_initialize_i386_cygwin_tdep): Register OS ABI
13546 GDB_OSABI_WINDOWS for i386.
13547 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13548 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13549 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13550 for x86-64.
13551 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13552 when the target matches '*-*-mingw*'.
13553
13554 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13555
13556 * defs.h (enum gdb_osabi): Move to...
13557 * osabi.h (enum gdb_osabi): ... here.
13558 * gdbarch.sh: Include osabi.h in gdbarch.h.
13559 * gdbarch.h: Re-generate.
13560
13561 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13562
13563 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13564 function.
13565 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13566
13567 2020-03-14 Tom Tromey <tom@tromey.com>
13568
13569 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13570 for C++.
13571 (c_type_print_modifier): Likewise. Add "language" parameter.
13572 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13573 (c_type_print_base_1): Update.
13574 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13575 constants.
13576 * type-stack.c (type_stack::insert): Handle tp_atomic and
13577 tp_restrict.
13578 (type_stack::follow_type_instance_flags): Likewise.
13579 (type_stack::follow_types): Likewise. Merge type-following code.
13580 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13581 (space_identifier, cv_with_space_id)
13582 (const_or_volatile_or_space_identifier_noopt)
13583 (const_or_volatile_or_space_identifier): Remove.
13584 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13585 rules.
13586 (ptr_operator, typebase): Update.
13587 (enum token_flag) <FLAG_C>: New constant.
13588 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13589 "_Atomic".
13590 (lex_one_token): Handle FLAG_C.
13591
13592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13593
13594 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13595 it to the ptrace call.
13596 * m68k-bsd-nat.c (store_registers): Likewise.
13597
13598 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13599
13600 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13601 gdb_byte *.
13602 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13603 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13604 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13605
13606 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13607
13608 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13609 nbsd_nat_target instead of inf_ptrace_target.
13610 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13611 nbsd_nat_target.
13612
13613 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13614
13615 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13616 register_t.
13617
13618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13619
13620 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13621 it to the ptrace call.
13622 * alpha-bsd-nat.c (store_registers): Likewise.
13623
13624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13625
13626 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13627 includes.
13628 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13629 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13630 fill_fpregset): Likewise.
13631
13632 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13633
13634 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13635 nbsd_nat_target instead of inf_ptrace_target.
13636 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13637 nbsd_nat_target.
13638
13639 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13640
13641 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13642 register_t.
13643
13644 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13645
13646 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13647 it to the ptrace call.
13648 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13649 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13650 * arm-nbsd-nat.c (store_register): Likewise.
13651 * arm-nbsd-nat.c (store_regs): Likewise.
13652 * arm-nbsd-nat.c (store_fp_register): Likewise.
13653 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13654
13655 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13656
13657 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13658 nbsd_nat_target instead of inf_ptrace_target.
13659 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13660 nbsd_nat_target.
13661
13662 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13663
13664 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13665 it to the ptrace call.
13666 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13667
13668 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13669
13670 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13671 it to the ptrace call.
13672 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13673
13674 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13675
13676 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13677 gdb_byte *.
13678 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13679
13680 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13681
13682 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13683 instead of inf_ptrace_target.
13684 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13685 nbsd_nat_target.
13686
13687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13688
13689 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13690 register_t.
13691
13692 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13693
13694 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13695 register_t.
13696
13697 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13698
13699 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13700 register_t.
13701
13702 2020-03-13 Tom Tromey <tom@tromey.com>
13703
13704 * value.h (val_print): Don't declare.
13705 * valprint.h (val_print_array_elements)
13706 (val_print_scalar_formatted, generic_val_print): Don't declare.
13707 * valprint.c (generic_val_print_array): Take a struct value.
13708 (generic_val_print_ptr, generic_val_print_memberptr)
13709 (generic_val_print_bool, generic_val_print_int)
13710 (generic_val_print_char, generic_val_print_complex)
13711 (generic_val_print): Remove.
13712 (generic_value_print): Update.
13713 (do_val_print): Remove unused parameters. Don't call
13714 la_val_print.
13715 (val_print): Remove.
13716 (common_val_print): Update. Don't call value_check_printable.
13717 (val_print_scalar_formatted, val_print_array_elements): Remove.
13718 * rust-lang.c (rust_val_print): Remove.
13719 (rust_language_defn): Update.
13720 * p-valprint.c (pascal_val_print): Remove.
13721 (pascal_value_print_inner): Update.
13722 (pascal_object_print_val_fields, pascal_object_print_val):
13723 Remove.
13724 (pascal_object_print_static_field): Update.
13725 * p-lang.h (pascal_val_print): Don't declare.
13726 * p-lang.c (pascal_language_defn): Update.
13727 * opencl-lang.c (opencl_language_defn): Update.
13728 * objc-lang.c (objc_language_defn): Update.
13729 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13730 * m2-lang.h (m2_val_print): Don't declare.
13731 * m2-lang.c (m2_language_defn): Update.
13732 * language.h (struct language_defn) <la_val_print>: Remove.
13733 * language.c (unk_lang_value_print_inner): Rename. Change
13734 argument types.
13735 (unknown_language_defn, auto_language_defn): Update.
13736 * go-valprint.c (go_val_print): Remove.
13737 * go-lang.h (go_val_print): Don't declare.
13738 * go-lang.c (go_language_defn): Update.
13739 * f-valprint.c (f_val_print): Remove.
13740 * f-lang.h (f_value_print): Don't declare.
13741 * f-lang.c (f_language_defn): Update.
13742 * d-valprint.c (d_val_print): Remove.
13743 * d-lang.h (d_value_print): Don't declare.
13744 * d-lang.c (d_language_defn): Update.
13745 * cp-valprint.c (cp_print_value_fields)
13746 (cp_print_value_fields_rtti, cp_print_value): Remove.
13747 (cp_print_static_field): Update.
13748 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13749 (c_val_print_struct, c_val_print_union, c_val_print_int)
13750 (c_val_print_memberptr, c_val_print): Remove.
13751 * c-lang.h (c_val_print_array, cp_print_value_fields)
13752 (cp_print_value_fields_rtti): Don't declare.
13753 * c-lang.c (c_language_defn, cplus_language_defn)
13754 (asm_language_defn, minimal_language_defn): Update.
13755 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13756 (ada_val_print_enum): Take a struct value.
13757 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13758 (ada_val_print): Remove.
13759 (ada_value_print_1): Update.
13760 (printable_val_type): Remove.
13761 * ada-lang.h (ada_val_print): Don't declare.
13762 * ada-lang.c (ada_language_defn): Update.
13763
13764 2020-03-13 Tom Tromey <tom@tromey.com>
13765
13766 * valprint.c (do_val_print): Update.
13767 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13768 a struct value.
13769 (value_to_value_object_no_release): Declare.
13770 * python/py-value.c (value_to_value_object_no_release): New
13771 function.
13772 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13773 struct value.
13774 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13775 function.
13776 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13777 a struct value.
13778 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13779 Declare.
13780 (gdbscm_apply_val_pretty_printer): Take a struct value.
13781 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13782 value.
13783 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13784 value.
13785 * extension-priv.h (struct extension_language_ops)
13786 <apply_val_pretty_printer>: Take a struct value.
13787 * cp-valprint.c (cp_print_value): Create a struct value.
13788 (cp_print_value): Update.
13789
13790 2020-03-13 Tom Tromey <tom@tromey.com>
13791
13792 * ada-valprint.c (print_field_values): Call common_val_print.
13793
13794 2020-03-13 Tom Tromey <tom@tromey.com>
13795
13796 * ada-valprint.c (val_print_packed_array_elements): Remove
13797 bitoffset and val parameters. Call common_val_print.
13798 (ada_val_print_string): Remove offset, address, and original_value
13799 parameters.
13800 (ada_val_print_array): Update.
13801 (ada_value_print_array): New function.
13802 (ada_value_print_1): Call it.
13803
13804 2020-03-13 Tom Tromey <tom@tromey.com>
13805
13806 * ada-valprint.c (ada_value_print): Use common_val_print.
13807
13808 2020-03-13 Tom Tromey <tom@tromey.com>
13809
13810 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13811
13812 2020-03-13 Tom Tromey <tom@tromey.com>
13813
13814 * ada-valprint.c (ada_value_print_num): New function.
13815 (ada_value_print_1): Use it.
13816
13817 2020-03-13 Tom Tromey <tom@tromey.com>
13818
13819 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13820
13821 2020-03-13 Tom Tromey <tom@tromey.com>
13822
13823 * ada-valprint.c (ada_value_print_ptr): New function.
13824 (ada_value_print_1): Use it.
13825
13826 2020-03-13 Tom Tromey <tom@tromey.com>
13827
13828 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13829 call common_val_print.
13830 (ada_val_print_1): Update.
13831 (ada_value_print_1): New function.
13832 (ada_value_print_inner): Rewrite.
13833
13834 2020-03-13 Tom Tromey <tom@tromey.com>
13835
13836 * cp-valprint.c (cp_print_value_fields): Update.
13837 (cp_print_value): New function.
13838
13839 2020-03-13 Tom Tromey <tom@tromey.com>
13840
13841 * m2-valprint.c (m2_value_print_inner): Use
13842 cp_print_value_fields.
13843 * cp-valprint.c (cp_print_value_fields): New function.
13844 * c-valprint.c (c_value_print_struct): New function.
13845 (c_value_print_inner): Use c_value_print_struct.
13846 * c-lang.h (cp_print_value_fields): Declare.
13847
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * c-valprint.c (c_value_print_array): New function.
13851 (c_value_print_inner): Use it.
13852
13853 2020-03-13 Tom Tromey <tom@tromey.com>
13854
13855 * c-valprint.c (c_value_print_memberptr): New function.
13856 (c_value_print_inner): Use it.
13857
13858 2020-03-13 Tom Tromey <tom@tromey.com>
13859
13860 * c-valprint.c (c_value_print_int): New function.
13861 (c_value_print_inner): Use it.
13862
13863 2020-03-13 Tom Tromey <tom@tromey.com>
13864
13865 * c-valprint.c (c_value_print_ptr): New function.
13866 (c_value_print_inner): Use it.
13867
13868 2020-03-13 Tom Tromey <tom@tromey.com>
13869
13870 * c-valprint.c (c_value_print_inner): Rewrite.
13871
13872 2020-03-13 Tom Tromey <tom@tromey.com>
13873
13874 * valprint.c (generic_value_print_complex): New function.
13875 (generic_value_print): Use it.
13876
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13878
13879 * valprint.c (generic_val_print_float): Don't call
13880 val_print_scalar_formatted.
13881 (generic_val_print, generic_value_print): Update.
13882
13883 2020-03-13 Tom Tromey <tom@tromey.com>
13884
13885 * valprint.c (generic_value_print_char): New function
13886 (generic_value_print): Use it.
13887
13888 2020-03-13 Tom Tromey <tom@tromey.com>
13889
13890 * valprint.c (generic_value_print_int): New function.
13891 (generic_value_print): Use it.
13892
13893 2020-03-13 Tom Tromey <tom@tromey.com>
13894
13895 * valprint.c (generic_value_print_bool): New function.
13896 (generic_value_print): Use it.
13897
13898 2020-03-13 Tom Tromey <tom@tromey.com>
13899
13900 * valprint.c (generic_val_print_func): Simplify.
13901 (generic_val_print, generic_value_print): Update.
13902
13903 2020-03-13 Tom Tromey <tom@tromey.com>
13904
13905 * valprint.c (generic_val_print_flags): Remove.
13906 (generic_val_print, generic_value_print): Update.
13907 (val_print_type_code_flags): Add original_value parameter.
13908
13909 2020-03-13 Tom Tromey <tom@tromey.com>
13910
13911 * valprint.c (generic_val_print): Update.
13912 (generic_value_print): Update.
13913 * valprint.c (generic_val_print_enum): Don't call
13914 val_print_scalar_formatted.
13915
13916 2020-03-13 Tom Tromey <tom@tromey.com>
13917
13918 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13919 * valprint.c (generic_value_print_ptr): New function.
13920
13921 2020-03-13 Tom Tromey <tom@tromey.com>
13922
13923 * valprint.c (generic_value_print): Rewrite.
13924
13925 2020-03-13 Tom Tromey <tom@tromey.com>
13926
13927 * p-valprint.c (pascal_object_print_value_fields)
13928 (pascal_object_print_value): New functions.
13929
13930 2020-03-13 Tom Tromey <tom@tromey.com>
13931
13932 * p-valprint.c (pascal_value_print_inner): Rewrite.
13933
13934 2020-03-13 Tom Tromey <tom@tromey.com>
13935
13936 * f-valprint.c (f_value_print_innner): Rewrite.
13937
13938 2020-03-13 Tom Tromey <tom@tromey.com>
13939
13940 * m2-valprint.c (m2_print_unbounded_array): New overload.
13941 (m2_print_unbounded_array): Update.
13942 (m2_print_array_contents): Take a struct value.
13943 (m2_value_print_inner): Rewrite.
13944
13945 2020-03-13 Tom Tromey <tom@tromey.com>
13946
13947 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13948 (d_value_print_inner): New function.
13949 * d-lang.h (d_value_print_inner): Declare.
13950 * d-lang.c (d_language_defn): Use d_value_print_inner.
13951
13952 2020-03-13 Tom Tromey <tom@tromey.com>
13953
13954 * go-valprint.c (go_value_print_inner): New function.
13955 * go-lang.h (go_value_print_inner): Declare.
13956 * go-lang.c (go_language_defn): Use go_value_print_inner.
13957
13958 2020-03-13 Tom Tromey <tom@tromey.com>
13959
13960 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13961 API.
13962 (rust_val_print): Rewrite.
13963 (rust_value_print_inner): New function, from rust_val_print.
13964 (rust_language_defn): Use rust_value_print_inner.
13965
13966 2020-03-13 Tom Tromey <tom@tromey.com>
13967
13968 * ada-valprint.c (ada_value_print_inner): New function.
13969 * ada-lang.h (ada_value_print_inner): Declare.
13970 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13971
13972 2020-03-13 Tom Tromey <tom@tromey.com>
13973
13974 * f-valprint.c (f_value_print_innner): New function.
13975 * f-lang.h (f_value_print_innner): Declare.
13976 * f-lang.c (f_language_defn): Use f_value_print_innner.
13977
13978 2020-03-13 Tom Tromey <tom@tromey.com>
13979
13980 * p-valprint.c (pascal_value_print_inner): New function.
13981 * p-lang.h (pascal_value_print_inner): Declare.
13982 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13983
13984 2020-03-13 Tom Tromey <tom@tromey.com>
13985
13986 * m2-valprint.c (m2_value_print_inner): New function.
13987 * m2-lang.h (m2_value_print_inner): Declare.
13988 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13989
13990 2020-03-13 Tom Tromey <tom@tromey.com>
13991
13992 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13993 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13994 * c-valprint.c (c_value_print_inner): New function.
13995 * c-lang.h (c_value_print_inner): Declare.
13996 * c-lang.c (c_language_defn, cplus_language_defn)
13997 (asm_language_defn, minimal_language_defn): Use
13998 c_value_print_inner.
13999
14000 2020-03-13 Tom Tromey <tom@tromey.com>
14001
14002 * p-valprint.c (pascal_object_print_value_fields): Now static.
14003 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14004
14005 2020-03-13 Tom Tromey <tom@tromey.com>
14006
14007 * c-valprint.c (c_val_print_array): Simplify.
14008
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14010
14011 * valprint.c (value_print_array_elements): New function.
14012 * valprint.h (value_print_array_elements): Declare.
14013
14014 2020-03-13 Tom Tromey <tom@tromey.com>
14015
14016 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14017 * mips-tdep.c (mips_print_register): Use
14018 value_print_scalar_formatted.
14019
14020 2020-03-13 Tom Tromey <tom@tromey.com>
14021
14022 * valprint.h (value_print_scalar_formatted): Declare.
14023 * valprint.c (value_print_scalar_formatted): New function.
14024
14025 2020-03-13 Tom Tromey <tom@tromey.com>
14026
14027 * valprint.h (generic_value_print): Declare.
14028 * valprint.c (generic_value_print): New function.
14029
14030 2020-03-13 Tom Tromey <tom@tromey.com>
14031
14032 * valprint.c (do_val_print): Call la_value_print_inner, if
14033 available.
14034 * rust-lang.c (rust_language_defn): Update.
14035 * p-lang.c (pascal_language_defn): Update.
14036 * opencl-lang.c (opencl_language_defn): Update.
14037 * objc-lang.c (objc_language_defn): Update.
14038 * m2-lang.c (m2_language_defn): Update.
14039 * language.h (struct language_defn) <la_value_print_inner>: New
14040 member.
14041 * language.c (unknown_language_defn, auto_language_defn): Update.
14042 * go-lang.c (go_language_defn): Update.
14043 * f-lang.c (f_language_defn): Update.
14044 * d-lang.c (d_language_defn): Update.
14045 * c-lang.c (c_language_defn, cplus_language_defn)
14046 (asm_language_defn, minimal_language_defn): Update.
14047 * ada-lang.c (ada_language_defn): Update.
14048
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14050
14051 * c-valprint.c (c_value_print): Use common_val_print.
14052
14053 2020-03-13 Tom Tromey <tom@tromey.com>
14054
14055 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14056
14057 2020-03-13 Tom Tromey <tom@tromey.com>
14058
14059 * f-valprint.c (f77_print_array_1, f_val_print): Use
14060 common_val_print.
14061
14062 2020-03-13 Tom Tromey <tom@tromey.com>
14063
14064 * riscv-tdep.c (riscv_print_one_register_info): Use
14065 common_val_print.
14066
14067 2020-03-13 Tom Tromey <tom@tromey.com>
14068
14069 * mi/mi-main.c (output_register): Use common_val_print.
14070
14071 2020-03-13 Tom Tromey <tom@tromey.com>
14072
14073 * infcmd.c (default_print_one_register_info): Use
14074 common_val_print.
14075
14076 2020-03-13 Tom Tromey <tom@tromey.com>
14077
14078 * valprint.h (common_val_print_checked): Declare.
14079 * valprint.c (common_val_print_checked): New function.
14080 * stack.c (print_frame_arg): Use common_val_print_checked.
14081
14082 2020-03-13 Tom Tromey <tom@tromey.com>
14083
14084 * valprint.c (do_val_print): New function, from val_print.
14085 (val_print): Use do_val_print.
14086 (common_val_print): Use do_val_print.
14087
14088 2020-03-13 Tom Tromey <tom@tromey.com>
14089
14090 * valprint.c (value_print): Use scoped_value_mark.
14091
14092 2020-03-13 Tom de Vries <tdevries@suse.de>
14093
14094 PR symtab/25646
14095 * psymtab.c (partial_symtab::partial_symtab): Don't set
14096 globals_offset and statics_offset. Push element onto
14097 current_global_psymbols and current_static_psymbols stacks.
14098 (concat): New function.
14099 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14100 element from current_global_psymbols and current_static_psymbols
14101 stacks. Concat popped elements to global_psymbols and
14102 static_symbols.
14103 (add_psymbol_to_list): Use current_global_psymbols and
14104 current_static_psymbols stacks.
14105 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14106 current_static_psymbols fields.
14107
14108 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14109
14110 * corelow.c (sniff_core_bfd): Remove.
14111 (class core_target) <m_core_vec>: Remove.
14112 (core_target::core_target): Update.
14113 (core_file_fns): Remove.
14114 (deprecated_add_core_fns): Remove.
14115 (default_core_sniffer): Remove.
14116 (sniff_core_bfd): Remove.
14117 (default_check_format): Remove.
14118 (gdb_check_format): Remove.
14119 (core_target_open): Update.
14120 (core_target::get_core_register_section): Update.
14121 (get_core_registers_cb): Update.
14122 (core_target::fetch_registers): Update.
14123 * gdbcore.h (struct core_fns): Remove.
14124 (deprecated_add_core_fns): Remove.
14125 (default_core_sniffer): Remove.
14126 (default_check_format): Remove.
14127
14128 2020-03-12 Tom Tromey <tom@tromey.com>
14129
14130 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14131 CORE_ADDR.
14132 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14133
14134 2020-03-12 Tom Tromey <tom@tromey.com>
14135
14136 * remote.c (remote_target::download_tracepoint)
14137 (remote_target::enable_tracepoint)
14138 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14139 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14140 sprintf_vma.
14141
14142 2020-03-12 Tom Tromey <tom@tromey.com>
14143
14144 * symfile-mem.c: Update CORE_ADDR size assert.
14145
14146 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14147
14148 * selftest.m4: Move to gdbsupport/.
14149 * acinclude.m4: Update path to selftest.m4.
14150
14151 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14152
14153 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14154 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14155 gdbarch-selfselftests.c and selftest-arch.c.
14156 (SUBDIR_UNITTESTS_OBS): Rename to...
14157 (SELFTESTS_OBS): ... this.
14158 (COMMON_SFILES): Remove disasm-selftests.c and
14159 gdbarch-selftests.c.
14160 * configure.ac: Don't add selftest-arch.{c,o} to
14161 CONFIG_{SRCS,OBS}.
14162 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14163 preprocessor conditions.
14164
14165 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14166
14167 * configure.ac: Don't source bfd/development.sh.
14168 * selftest.m4: Modify comment.
14169 * configure: Re-generate.
14170
14171 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14172
14173 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14174 not "true" or "false".
14175 * configure: Re-generate.
14176
14177 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14178
14179 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14180 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14181 renamed to arm_nbsd_supply_gregset.
14182 (fetch_register): Update to call arm_nbsd_supply_gregset.
14183 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14184 (arm_netbsd_nat_target::fetch_registers): Update.
14185 (fetch_elfcore_registers): Removed.
14186 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14187 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14188 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14189 not require NetBSD system headers.
14190 (arm_nbsd_regset): New struct.
14191 (arm_nbsd_iterate_over_regset_sections): New function.
14192 (arm_netbsd_init_abi_common): Updated to call
14193 set_gdbarch_iterate_over_regset_sections.
14194 * arm-nbsd-tdep.h: New file.
14195
14196 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14197
14198 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14199 recursion.
14200
14201 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14202
14203 * configure: Re-generate.
14204
14205 2020-03-11 Tom Tromey <tromey@adacore.com>
14206
14207 * ada-typeprint.c (print_choices): Fix comment.
14208
14209 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14210
14211 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14212 previous item in the list, when the list has no items.
14213
14214 2020-03-11 Tom de Vries <tdevries@suse.de>
14215
14216 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14217 PROP_LOCLIST handling code.
14218
14219 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14220
14221 * buildsym-legacy.c (record_line): Pass extra parameter to
14222 record_line.
14223 * buildsym.c (buildsym_compunit::record_line): Take an extra
14224 parameter, reduce duplication in the line table, and record the
14225 is_stmt flag in the line table.
14226 * buildsym.h (buildsym_compunit::record_line): Add extra
14227 parameter.
14228 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14229 non-statement lines.
14230 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14231 this to the symtab builder.
14232 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14233 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14234 through to dwarf_record_line_1.
14235 * infrun.c (process_event_stop_test): When stepping, don't stop at
14236 a non-statement instruction, and only refresh the step info when
14237 we land in the middle of a line's range. Also add an extra
14238 comment.
14239 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14240 field.
14241 * record-btrace.c (btrace_find_line_range): Only record lines
14242 marked as is-statement.
14243 * stack.c (frame_show_address): Show the frame address if we are
14244 in a non-statement sal.
14245 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14246 (maintenance_print_one_line_table): Print a header for the is_stmt
14247 column, and include is_stmt information in the output.
14248 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14249 preference to non-statements.
14250 (find_pcs_for_symtab_line): Prefer is-statement entries.
14251 (find_line_common): Likewise.
14252 * symtab.h (struct linetable_entry): Add is_stmt field.
14253 (struct symtab_and_line): Likewise.
14254 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14255 arranging the line table.
14256
14257 2020-03-07 Tom de Vries <tdevries@suse.de>
14258
14259 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14260 DIE.
14261
14262 2020-03-07 Tom Tromey <tom@tromey.com>
14263
14264 * valops.c (value_literal_complex): Remove obsolete comment.
14265 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14266 comment.
14267
14268 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14269
14270 * infrun.h: Forward-declare thread_info.
14271 (set_step_info): Add thread_info parameter, add doc.
14272 * infrun.c (set_step_info): Add thread_info parameter, move doc
14273 to header.
14274 * infrun.c (process_event_stop_test): Pass thread to
14275 set_step_info call.
14276 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14277 set_step_info.
14278 (prepare_one_step): Add thread_info parameter, pass it to
14279 set_step_frame and prepare_one_step (recursive) call.
14280 (step_1): Pass thread to prepare_one_step call.
14281 (step_command_fsm::should_stop): Pass thread to
14282 prepare_one_step.
14283 (until_next_fsm): Pass thread to set_step_frame call.
14284 (finish_command): Pass thread to set_step_info call.
14285
14286 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14287
14288 * windows-tdep.c (windows_solib_create_inferior_hook):
14289 Check if inferior is running.
14290
14291 2020-03-06 Tom de Vries <tdevries@suse.de>
14292
14293 * NEWS: Fix "the the".
14294 * ctfread.c: Same.
14295
14296 2020-03-06 Tom de Vries <tdevries@suse.de>
14297
14298 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14299
14300 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14301
14302 * .dir-locals.el: Add a comment referencing the other copies of
14303 this file.
14304
14305 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14306
14307 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14308 psargs.
14309
14310 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14311
14312 * .gitattributes: New file.
14313
14314 2020-03-04 Tom Tromey <tom@tromey.com>
14315
14316 * symmisc.c (print_symbol_bcache_statistics)
14317 (print_objfile_statistics): Update.
14318 * symfile.c (allocate_symtab): Use intern.
14319 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14320 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14321 macro_cache>: Remove.
14322 <string_cache>: New member.
14323 (struct objfile) <intern>: New methods.
14324 * elfread.c (elf_symtab_read): Use intern.
14325 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14326 (dwarf2_compute_name, dwarf2_physname)
14327 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14328 names.
14329 (guess_partial_die_structure_name): Update.
14330 (partial_die_info::fixup): Intern name.
14331 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14332 name.
14333 (dwarf2_name): Intern name. Update.
14334 * buildsym.c (buildsym_compunit::get_macro_table): Use
14335 string_cache.
14336
14337 2020-03-04 Tom Tromey <tom@tromey.com>
14338
14339 * jit.c (bfd_open_from_target_memory): Make "target" const.
14340 * corefile.c (gnutarget): Now const.
14341 * gdbcore.h (gnutarget): Now const.
14342
14343 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14344
14345 * NEWS: Mention support for WOW64 processes.
14346 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14347 (amd64_windows_segment_register_p): Remove static.
14348 (_initialize_amd64_windows_nat): Update.
14349 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14350 * i386-windows-nat.c (context_offset): Update.
14351 (i386_mappings): Rename and remove static.
14352 (i386_windows_segment_register_p): Remove static.
14353 (_initialize_i386_windows_nat): Update.
14354 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14355 (STATUS_WX86_SINGLE_STEP): New macro.
14356 (EnumProcessModulesEx): New macro.
14357 (Wow64SuspendThread): New macro.
14358 (Wow64GetThreadContext): New macro.
14359 (Wow64SetThreadContext): New macro.
14360 (Wow64GetThreadSelectorEntry): New macro.
14361 (windows_set_context_register_offsets): Add static.
14362 (windows_set_segment_register_p): Likewise.
14363 (windows_add_thread): Adapt for WOW64 processes.
14364 (windows_fetch_one_register): Likewise.
14365 (windows_nat_target::fetch_registers): Likewise.
14366 (windows_store_one_register): Likewise.
14367 (display_selector): Likewise.
14368 (display_selectors): Likewise.
14369 (handle_exception): Likewise.
14370 (windows_continue): Likewise.
14371 (windows_nat_target::resume): Likewise.
14372 (windows_add_all_dlls): Likewise.
14373 (do_initial_windows_stuff): Likewise.
14374 (windows_nat_target::attach): Likewise.
14375 (windows_get_exec_module_filename): Likewise.
14376 (windows_nat_target::create_inferior): Likewise.
14377 (windows_xfer_siginfo): Likewise.
14378 (_initialize_loadable): Initialize Wow64SuspendThread,
14379 Wow64GetThreadContext, Wow64SetThreadContext,
14380 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14381 * windows-nat.h (windows_set_context_register_offsets):
14382 Remove declaration.
14383 (windows_set_segment_register_p): Likewise.
14384 (i386_windows_segment_register_p): Add declaration.
14385 (amd64_windows_segment_register_p): Likewise.
14386
14387 2020-03-04 Luis Machado <luis.machado@linaro.org>
14388
14389 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14390 in "info registers" for AArch64/ARM.
14391
14392 The change caused "info registers" to not print GPR's.
14393
14394 gdb/ChangeLog:
14395
14396 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14397
14398 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14399 when reg->group is empty and reggroup is not.
14400
14401 2020-03-03 Tom Tromey <tromey@adacore.com>
14402
14403 * dwarf2/frame.c (struct dwarf2_frame_cache)
14404 <checked_tailcall_bottom, entry_cfa_sp_offset,
14405 entry_cfa_sp_offset_p>: Remove members.
14406 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14407 (dwarf2_frame_prev_register): Don't call
14408 dwarf2_tailcall_sniffer_first.
14409 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14410 * frame-unwind.c (add_unwinder): New fuction.
14411 (frame_unwind_init): Use it. Add tailcall unwinder.
14412
14413 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14414 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14415
14416 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14417 value should be printed as true.
14418
14419 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14420
14421 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14422 (windows_init_abi): Set and use windows_so_ops.
14423
14424 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14425
14426 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14427 when verifying if dealing with a convenience variable.
14428
14429 2020-03-03 Luis Machado <luis.machado@linaro.org>
14430
14431 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14432
14433 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14434
14435 * infrun.c (gdbarch_supports_displaced_stepping): New.
14436 (use_displaced_stepping): Break up conditions in smaller pieces.
14437 Use gdbarch_supports_displaced_stepping.
14438 (displaced_step_prepare_throw): Use
14439 gdbarch_supports_displaced_stepping.
14440
14441 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14442
14443 * NEWS: Mention new behaviour of the history filename.
14444 * top.c (write_history_p): Add comment.
14445 (show_write_history_p): Add header comment, give a different
14446 message when history writing is on, but the history filename is
14447 empty.
14448 (history_filename): Add comment.
14449 (history_filename_empty): New function.
14450 (show_history_filename): Add header comment, give a different
14451 message when the filename is empty.
14452 (init_history): Compare history_filename against nullptr, and only
14453 read history if the filename is not empty.
14454 (set_history_filename): Add header comment, and only make
14455 non-empty filenames absolute.
14456 (init_main): Make the filename argument to 'set history filename'
14457 optional.
14458
14459 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14460
14461 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14462 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14463 (fetch_fp_register): Update.
14464 (fetch_fp_regs): Update.
14465 (store_fp_register): Update.
14466 (store_fp_regs): Update.
14467 (arm_netbsd_nat_target::read_description): New function.
14468 (fetch_elfcore_registers): Update.
14469
14470 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14471
14472 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14473 general_thread if the stop reply is missing a thread-id.
14474 (remote_target::process_stop_reply): Use the first non-exited
14475 thread if the target didn't pass a thread-id.
14476 * infrun.c (do_target_wait): Move call to
14477 switch_to_inferior_no_thread to ....
14478 (do_target_wait_1): ... here.
14479
14480 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14481
14482 * debuginfod-support.c: Include defs.h first.
14483
14484 2020-02-28 Tom de Vries <tdevries@suse.de>
14485
14486 * symfile.c (set_initial_language): Use default language for lookup.
14487
14488 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14489
14490 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14491 reader variable, pass `this` to read_cutu_die_from_dwo.
14492
14493 2020-02-27 Aaron Merey <amerey@redhat.com>
14494
14495 * source.c (open_source_file): Check for nullptr when computing
14496 srcpath.
14497
14498 2020-02-27 Tom Tromey <tromey@adacore.com>
14499
14500 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14501 member.
14502 (dwarf2_add_field): Don't update nfields.
14503 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14504
14505 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14506
14507 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14508 abs.
14509
14510 2020-02-26 Tom Tromey <tom@tromey.com>
14511
14512 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14513 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14514 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14515 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14516 per_cu_data.
14517
14518 2020-02-26 Tom Tromey <tom@tromey.com>
14519
14520 * dwarf2/index-write.c (psym_index_map): Change type.
14521 (add_address_entry_worker, write_one_signatured_type)
14522 (recursively_count_psymbols, recursively_write_psymbols)
14523 (class debug_names, psyms_seen_size, write_gdbindex)
14524 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14525
14526 2020-02-26 Aaron Merey <amerey@redhat.com>
14527
14528 * Makefile.in: Handle optional debuginfod support.
14529 * NEWS: Update.
14530 * README: Add --with-debuginfod summary.
14531 * config.in: Regenerate.
14532 * configure: Regenerate.
14533 * configure.ac: Handle optional debuginfod support.
14534 * debuginfod-support.c: debuginfod helper functions.
14535 * debuginfod-support.h: Ditto.
14536 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14537 summary.
14538 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14539 when a dwz file cannot be found.
14540 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14541 debuginfo file cannot be found.
14542 * source.c (open_source_file): Query debuginfod servers when a
14543 source file cannot be found.
14544 * top.c (print_gdb_configuration): Include
14545 --{with,without}-debuginfod in the output.
14546
14547 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14548
14549 * thread.c (thr_try_catch_cmd): Print thread name.
14550
14551 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14552
14553 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14554 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14555 dwarf2_fetch_die_type_sect_off): Move to...
14556 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14557 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14558 dwarf2_fetch_die_type_sect_off): ... here.
14559 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14560 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14561 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14562
14563 2020-02-26 Tom de Vries <tdevries@suse.de>
14564
14565 PR gdb/25603
14566 * symfile.c (set_initial_language): Exit-early if
14567 language_mode == language_mode_manual.
14568
14569 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14570
14571 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14572 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14573 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14574
14575 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14576
14577 * gdbtypes.c (create_array_type_with_stride): Handle negative
14578 array strides.
14579 * valarith.c (value_subscripted_rvalue): Likewise.
14580
14581 2020-02-25 Luis Machado <luis.machado@linaro.org>
14582
14583 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14584
14585 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14586
14587 * loc.h (dwarf2_get_die_type): Move to...
14588 * read.h (dwarf2_get_die_type): ... here.
14589 * read.c (dwarf2_get_die_type): Move doc to header.
14590
14591 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14592
14593 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14594 'gnulib/Makefile.in' to the list.
14595
14596 2020-02-24 Tom Tromey <tom@tromey.com>
14597
14598 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14599 Remove.
14600 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14601 XOBNEWVEC.
14602
14603 2020-02-24 Tom Tromey <tom@tromey.com>
14604
14605 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14606 New method.
14607 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14608 (dw2_do_instantiate_symtab, dw2_get_file_names)
14609 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14610
14611 2020-02-24 Tom Tromey <tom@tromey.com>
14612
14613 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14614 make_scoped_restore.
14615 (dwarf2_psymtab::read_symtab): Don't clear
14616 reading_partial_symbols.
14617
14618 2020-02-24 Tom de Vries <tdevries@suse.de>
14619
14620 PR gdb/25592
14621 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14622
14623 2020-02-24 Tom de Vries <tdevries@suse.de>
14624
14625 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14626 commands layout next/prev/regs.
14627
14628 2020-02-22 Tom Tromey <tom@tromey.com>
14629
14630 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14631 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14632
14633 2020-02-22 Tom Tromey <tom@tromey.com>
14634
14635 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14636
14637 2020-02-22 Tom Tromey <tom@tromey.com>
14638
14639 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14640 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14641 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14642 * tui/tui.c (_initialize_tui): Add usage text.
14643
14644 2020-02-22 Tom Tromey <tom@tromey.com>
14645
14646 * tui/tui-win.c (tui_set_focus_command)
14647 (tui_set_win_height_command): Use error_no_arg.
14648 (_initialize_tui_win): Update help text.
14649 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14650
14651 2020-02-22 Tom Tromey <tom@tromey.com>
14652
14653 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14654 * tui/tui-disasm.h (struct tui_disasm_window)
14655 <display_start_addr>: Declare.
14656 * tui/tui-source.h (struct tui_source_window)
14657 <display_start_addr>: Declare.
14658 * tui/tui-winsource.h (struct tui_source_window_base)
14659 <show_source_line, display_start_addr>: New methods.
14660 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14661 Rename and move to protected section.
14662 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14663 (tui_source_window_base::do_erase_source_content): Update.
14664 (tui_source_window_base::show_source_line): Now a method.
14665 (tui_source_window_base::show_source_content)
14666 (tui_source_window_base::tui_source_window_base)
14667 (tui_source_window_base::rerender)
14668 (tui_source_window_base::refill)
14669 (tui_source_window_base::do_scroll_horizontal)
14670 (tui_source_window_base::set_is_exec_point_at)
14671 (tui_source_window_base::update_breakpoint_info)
14672 (tui_source_window_base::update_exec_info): Update.
14673 * tui/tui-source.c (tui_source_window::set_contents)
14674 (tui_source_window::showing_source_p)
14675 (tui_source_window::do_scroll_vertical)
14676 (tui_source_window::location_matches_p)
14677 (tui_source_window::line_is_displayed): Update.
14678 (tui_source_window::display_start_addr): New method.
14679 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14680 (tui_disasm_window::do_scroll_vertical)
14681 (tui_disasm_window::location_matches_p): Update.
14682 (tui_disasm_window::display_start_addr): New method.
14683
14684 2020-02-22 Tom Tromey <tom@tromey.com>
14685
14686 * NEWS: Add entry for gdb.register_window_type.
14687 * tui/tui-layout.h (window_factory): New typedef.
14688 (tui_register_window): Declare.
14689 * tui/tui-layout.c (saved_tui_windows): New global.
14690 (tui_apply_current_layout): Use it.
14691 (tui_register_window): New function.
14692 * python/python.c (do_start_initialization): Call
14693 gdbpy_initialize_tui.
14694 (python_GdbMethods): Add "register_window_type" function.
14695 * python/python-internal.h (gdbpy_register_tui_window)
14696 (gdbpy_initialize_tui): Declare.
14697 * python/py-tui.c: New file.
14698 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14699
14700 2020-02-22 Tom Tromey <tom@tromey.com>
14701
14702 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14703
14704 2020-02-22 Tom Tromey <tom@tromey.com>
14705
14706 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14707 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14708 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14709 (tui_set_win_focus_to): Move from tui-win.c.
14710
14711 2020-02-22 Tom Tromey <tom@tromey.com>
14712
14713 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14714 functions.
14715 (known_window_types): New global.
14716 (tui_get_window_by_name): Reimplement.
14717 (initialize_known_windows): New function.
14718 (validate_window_name): Rewrite.
14719 (_initialize_tui_layout): Call initialize_known_windows.
14720
14721 2020-02-22 Tom Tromey <tom@tromey.com>
14722
14723 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14724 Remove constants.
14725 * tui/tui-winsource.h (struct tui_source_window_base)
14726 <tui_source_window_base>: Remove parameter.
14727 * tui/tui-winsource.c
14728 (tui_source_window_base::tui_source_window_base): Remove
14729 parameter.
14730 (tui_source_window_base::refill): Update.
14731 * tui/tui-stack.h (struct tui_locator_window)
14732 <tui_locator_window>: Update.
14733 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14734 Default the constructor.
14735 * tui/tui-regs.h (struct tui_data_item_window)
14736 <tui_data_item_window>: Default the constructor.
14737 (struct tui_data_window) <tui_data_window>: Likewise.
14738 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14739 Default the constructor.
14740 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14741 Default the constructor.
14742 <type>: Remove.
14743 (struct tui_win_info) <tui_win_info>: Default the constructor.
14744 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14745 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14746 Default the constructor.
14747
14748 2020-02-22 Tom Tromey <tom@tromey.com>
14749
14750 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14751 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14752 * tui/tui-win.c (tui_resize_all): Don't call
14753 tui_delete_invisible_windows.
14754 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14755 done.
14756 (tui_set_layout): Update.
14757 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14758 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14759 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14760
14761 2020-02-22 Tom Tromey <tom@tromey.com>
14762
14763 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14764 correctly.
14765
14766 2020-02-22 Tom Tromey <tom@tromey.com>
14767
14768 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14769
14770 2020-02-22 Tom Tromey <tom@tromey.com>
14771
14772 * tui/tui-winsource.h (struct tui_source_window_iterator)
14773 <inner_iterator>: New etytypedef.
14774 <tui_source_window_iterator>: Take "end" parameter.
14775 <tui_source_window_iterator>: Take iterator.
14776 <operator*, advance>: Update.
14777 <m_iter>: Change type.
14778 <m_end>: New field.
14779 (struct tui_source_windows) <begin, end>: Update.
14780 * tui/tui-layout.c (tui_windows): New global.
14781 (tui_apply_current_layout): Clear tui_windows.
14782 (tui_layout_window::apply): Update tui_windows.
14783 * tui/tui-data.h (tui_windows): Declare.
14784 (all_tui_windows): Now inline function.
14785 (class tui_window_iterator, struct all_tui_windows): Remove.
14786
14787 2020-02-22 Tom Tromey <tom@tromey.com>
14788
14789 PR tui/17850:
14790 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14791 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14792 "height" argument.
14793 (class tui_layout_window) <get_sizes>: Likewise.
14794 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14795 argument.
14796 <get_sizes>: Add "height" argument.
14797 <m_vertical>: New field.
14798 * tui/tui-layout.c (tui_layout_split::clone): Update.
14799 (tui_layout_split::get_sizes): Add "height" argument.
14800 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14801 (tui_new_layout_command): Parse "-horizontal".
14802 (_initialize_tui_layout): Update help string.
14803 (tui_layout_split::specification): Add "-horizontal" when needed.
14804 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14805 argument.
14806 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14807 New methods.
14808
14809 2020-02-22 Tom Tromey <tom@tromey.com>
14810
14811 * tui/tui-layout.h (enum tui_adjust_result): New.
14812 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14813 (class tui_layout_window) <adjust_size>: Return
14814 tui_adjust_result. Rewrite.
14815 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14816 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14817
14818 2020-02-22 Tom Tromey <tom@tromey.com>
14819
14820 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14821 parameter and return types.
14822 (class tui_layout_base) <specification>: Add "depth".
14823 (class tui_layout_window) <specification>: Add "depth".
14824 (class tui_layout_split) <specification>: Add "depth".
14825 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14826 and return types.
14827 (tui_new_layout_command): Parse sub-layouts.
14828 (_initialize_tui_layout): Update help string.
14829 (tui_layout_window::specification): Add "depth".
14830 (add_layout_command): Update.
14831
14832 2020-02-22 Tom Tromey <tom@tromey.com>
14833
14834 * NEWS: Add "tui new-layout" item.
14835 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14836 Add new-layout command to help text.
14837 (validate_window_name): New function.
14838 (tui_new_layout_command): New function.
14839 (_initialize_tui_layout): Register "new-layout".
14840 (tui_layout_window::specification): New method.
14841 (tui_layout_window::specification): New method.
14842 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14843 method.
14844 (class tui_layout_window) <specification>: New method.
14845 (class tui_layout_split) <specification>: New method.
14846
14847 2020-02-22 Tom Tromey <tom@tromey.com>
14848
14849 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14850 * tui/tui-win.c (window_name_completer): Update comment.
14851 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14852 Declare method.
14853 (class tui_layout_window) <replace_window>: Likewise.
14854 (class tui_layout_split) <replace_window>: Likewise.
14855 (tui_set_layout): Don't declare.
14856 (tui_set_initial_layout): Declare function.
14857 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14858 (asm_regs_layout): New globals.
14859 (tui_current_layout, show_layout): Remove.
14860 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14861 (find_layout, tui_apply_layout): New function.
14862 (layout_completer): Remove.
14863 (tui_next_layout): Reimplement.
14864 (tui_next_layout_command): New function.
14865 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14866 (tui_regs_layout): Reimplement.
14867 (tui_regs_layout_command): New function.
14868 (extract_display_start_addr): Rewrite.
14869 (next_layout, prev_layout): Remove.
14870 (tui_layout_window::replace_window): New method.
14871 (tui_layout_split::replace_window): New method.
14872 (destroy_layout): New function.
14873 (layout_list): New global.
14874 (add_layout_command): New function.
14875 (initialize_layouts): Update.
14876 (tui_layout_command): New function.
14877 (_initialize_tui_layout): Install "layout" commands.
14878 * tui/tui-data.h (enum tui_layout_type): Remove.
14879 (tui_current_layout): Don't declare.
14880
14881 2020-02-22 Tom Tromey <tom@tromey.com>
14882
14883 * tui/tui-regs.c (tui_reg_layout): Remove.
14884 (tui_reg_command): Use tui_regs_layout.
14885 * tui/tui-layout.h (tui_reg_command): Declare.
14886 * tui/tui-layout.c (tui_reg_command): New function.
14887
14888 2020-02-22 Tom Tromey <tom@tromey.com>
14889
14890 * tui/tui.c (tui_rl_delete_other_windows): Call
14891 tui_remove_some_windows.
14892 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14893 Declare method.
14894 (class tui_layout_window) <remove_windows>: New method.
14895 (class tui_layout_split) <remove_windows>: Declare.
14896 (tui_remove_some_windows): Declare.
14897 * tui/tui-layout.c (tui_remove_some_windows): New function.
14898 (tui_layout_split::remove_windows): New method.
14899
14900 2020-02-22 Tom Tromey <tom@tromey.com>
14901
14902 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14903 * tui/tui-layout.h (tui_next_layout): Declare.
14904 * tui/tui-layout.c (tui_next_layout): New function.
14905
14906 2020-02-22 Tom Tromey <tom@tromey.com>
14907
14908 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14909 correct coordinates.
14910
14911 2020-02-22 Tom Tromey <tom@tromey.com>
14912
14913 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14914 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14915 DATA_WIN case.
14916
14917 2020-02-22 Tom Tromey <tom@tromey.com>
14918
14919 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14920 TUI_DISASM_WIN, not tui_win_list.
14921
14922 2020-02-22 Tom Tromey <tom@tromey.com>
14923
14924 * valprint.c (generic_val_print_enum_1)
14925 (val_print_type_code_flags): Style member names.
14926 * rust-lang.c (val_print_struct, rust_print_enum)
14927 (rust_print_struct_def, rust_internal_print_type): Style member
14928 names.
14929 * p-valprint.c (pascal_object_print_value_fields): Style member
14930 names. Only call fprintf_symbol_filtered for static members.
14931 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14932 * f-valprint.c (f_val_print): Style member names.
14933 * f-typeprint.c (f_type_print_base): Style member names.
14934 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14935 call fprintf_symbol_filtered for static members.
14936 (cp_print_class_member): Style member names.
14937 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14938 member names.
14939 * ada-valprint.c (ada_print_scalar): Style enum names.
14940 (ada_val_print_enum): Likewise.
14941 * ada-typeprint.c (print_enum_type): Style enum names.
14942
14943 2020-02-21 Tom Tromey <tom@tromey.com>
14944
14945 * psympriv.h (struct partial_symtab): Update comment.
14946
14947 2020-02-21 Tom Tromey <tromey@adacore.com>
14948
14949 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14950 type is CORE_ADDR.
14951
14952 2020-02-21 Tom de Vries <tdevries@suse.de>
14953
14954 PR gdb/25534
14955 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14956 if dependencies[i]->user != NULL.
14957
14958 2020-02-21 Ali Tamur <tamur@google.com>
14959
14960 * dwarf2/read.c (dwarf2_name): Add null check.
14961
14962 2020-02-20 Tom Tromey <tom@tromey.com>
14963
14964 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14965 ">=", in binary search.
14966 (dwarf2_find_containing_comp_unit): New overload.
14967 (run_test): New self-test.
14968 (_initialize_dwarf2_read): Register new test.
14969
14970 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14971
14972 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14973 * riscv-tdep.h: Likewise.
14974 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14975 rv32-only CSR.
14976 * features/riscv/64bit-csr.xml: Regenerated.
14977
14978 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14979 Tom Tromey <tom@tromey.com>
14980
14981 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14982 of 'fputc_unfiltered'.
14983 (putchar_unfiltered): Call 'fputc_unfiltered'.
14984 (fputc_unfiltered): Call 'fputs_unfiltered'.
14985
14986 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14987
14988 * config.in: Regenerate.
14989 * configure: Regenerate.
14990 * configure.ac: Add --with-python-libdir option.
14991 * main.c: Use WITH_PYTHON_LIBDIR.
14992
14993 2020-02-19 Tom Tromey <tom@tromey.com>
14994
14995 * symtab.c (general_symbol_info::compute_and_set_names): Use
14996 obstack_strndup. Simplify call to symbol_set_demangled_name.
14997
14998 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14999
15000 * dwarf2/read.c (allocate_signatured_type_table,
15001 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15002 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15003 Remove objfile parameter, update all callers.
15004
15005 2020-02-19 Doug Evans <dje@google.com>
15006
15007 PR rust/25535
15008 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15009 rust_enum_variant calculation.
15010
15011 2020-02-19 Tom Tromey <tromey@adacore.com>
15012
15013 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15014
15015 2020-02-19 Tom Tromey <tromey@adacore.com>
15016
15017 * ada-lang.c (cache_symbol): Use obstack_strdup.
15018
15019 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15020
15021 * configure: Regenerate.
15022
15023 2020-02-19 Tom Tromey <tromey@adacore.com>
15024
15025 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15026 NULL check.
15027
15028 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15029
15030 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15031
15032 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15033
15034 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15035 if GDBSERVER is not defined.
15036 (riscv_tdesc_cache): Likewise, also store const target_desc.
15037 (STATIC_IN_GDB): Define.
15038 (riscv_create_target_description): Update declaration with
15039 STATIC_IN_GDB.
15040 (riscv_lookup_target_description): New function, only define if
15041 GDBSERVER is not defined.
15042 * arch/riscv.h (riscv_create_target_description): Declare only
15043 when GDBSERVER is defined.
15044 (riscv_lookup_target_description): New declaration when GDBSERVER
15045 is not defined.
15046 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15047 (riscv_linux_read_features): ...this, and return
15048 riscv_gdbarch_features instead of target_desc.
15049 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15050 (riscv_linux_read_description): Rename to...
15051 (riscv_linux_read_features): ...this.
15052 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15053 Update to use riscv_gdbarch_features and
15054 riscv_lookup_target_description.
15055 * riscv-tdep.c (riscv_find_default_target_description): Use
15056 riscv_lookup_target_description instead of
15057 riscv_create_target_description.
15058
15059 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15060
15061 * valprint.c (generic_val_print_enum_1): When printing a flag
15062 enum with value 0 and there is no enumerator with value 0, print
15063 just "0" instead of "(unknown: 0x0)".
15064
15065 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15066
15067 * valprint.c (generic_val_print_enum_1): Print unknown part of
15068 flag enum in hex.
15069
15070 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15071
15072 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15073 flag enums to contain duplicate enumerators.
15074 * valprint.c (generic_val_print_enum_1): Update comment.
15075
15076 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15077
15078 * dwarf2/read.c: Include "count-one-bits.h".
15079 (update_enumeration_type_from_children): If an enumerator has
15080 multiple bits set, don't treat the enumeration as a "flag enum".
15081 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15082 of flag enums have 0 or 1 bit set.
15083
15084 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15085
15086 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15087 conversion.
15088 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15089 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15090 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15091 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15092 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15093
15094 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15095
15096 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15097
15098 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15099
15100 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15101 displaced_step_closure_up.
15102 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15103 (struct displaced_step_closure_up):
15104 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15105 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15106 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15107 Likewise.
15108 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15109 * gdbarch.c, gdbarch.h: Re-generate.
15110 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15111 displaced_step_closure_up.
15112 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15113 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15114 * infrun.h (displaced_step_closure_up): New type alias.
15115 (struct displaced_step_inferior_state) <step_closure>: Change
15116 type to displaced_step_closure_up.
15117 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15118 displaced_step_closure_up.
15119 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15120
15121 2020-02-14 Tom Tromey <tom@tromey.com>
15122
15123 * minidebug.c (gnu_debug_key): New global.
15124 (find_separate_debug_file_in_section): Use it.
15125
15126 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15127
15128 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15129 std::unique_ptr.
15130 * gdbarch.c: Re-generate.
15131 * gdbarch.h: Re-generate.
15132 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15133 change.
15134 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15135 type to std::unique_ptr.
15136 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15137 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15138 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15139 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15140 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15141 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15142 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15143 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15144 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15145
15146 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15147
15148 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15149 std::unique_ptr.
15150 (displaced_step_clear): Rename to...
15151 (displaced_step_reset): ... this. Just call displaced->reset ().
15152 (displaced_step_clear_cleanup): Rename to...
15153 (displaced_step_reset_cleanup): ... this.
15154 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15155 (displaced_step_fixup): Likewise.
15156 (resume_1): Likewise.
15157 (handle_inferior_event): Restore child's memory before calling
15158 displaced_step_fixup on the parent.
15159 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15160 to std::unique_ptr.
15161 <step_closure>: Change type to std::unique_ptr.
15162
15163 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15164
15165 * arm-tdep.c: Include count-one-bits.h.
15166 (cleanup_block_store_pc): Use count_one_bits.
15167 (cleanup_block_load_pc): Use count_one_bits.
15168 (arm_copy_block_xfer): Use count_one_bits.
15169 (thumb2_copy_block_xfer): Use count_one_bits.
15170 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15171 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15172 (thumb_get_next_pcs_raw): Use count_one_bits.
15173 (arm_get_next_pcs_raw): Use count_one_bits_l.
15174 * arch/arm.c (bitcount): Remove.
15175 * arch/arm.h (bitcount): Remove.
15176
15177 2020-02-14 Tom Tromey <tromey@adacore.com>
15178
15179 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15180 Update.
15181 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15182 * dwarf2/loc.c (call_site_find_chain_1): Return
15183 unique_xmalloc_ptr.
15184 (call_site_find_chain): Likewise.
15185
15186 2020-02-14 Richard Biener <rguenther@suse.de>
15187
15188 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15189 on expression with division operators.
15190
15191 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15192
15193 * MAINTAINERS (Write After Approval): Adding myself.
15194
15195 2020-02-12 Tom Tromey <tom@tromey.com>
15196
15197 * event-loop.c (event_data, gdb_event, event_handler_func):
15198 Remove.
15199
15200 2020-02-12 Tom Tromey <tom@tromey.com>
15201
15202 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15203 (dwarf2_frame_objfile_data): Add comment.
15204 (find_comp_unit, set_comp_unit): New functions.
15205 (dwarf2_frame_find_fde): Use find_comp_unit.
15206 (dwarf2_build_frame_info): Use set_comp_unit.
15207
15208 2020-02-12 Tom Tromey <tom@tromey.com>
15209
15210 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15211 (comp_unit): Don't initialize objfile.
15212 (execute_cfa_program): Add text_offset parameter.
15213 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15214 (dwarf2_frame_cache): Update.
15215 (dwarf2_build_frame_info): Don't set "objfile" member.
15216
15217 2020-02-12 Tom Tromey <tom@tromey.com>
15218
15219 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15220 (decode_frame_entry): Likewise.
15221 (dwarf2_build_frame_info): Update.
15222
15223 2020-02-12 Tom Tromey <tom@tromey.com>
15224
15225 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15226 (decode_frame_entry_1): Use the comp_unit obstack.
15227
15228 2020-02-12 Tom Tromey <tom@tromey.com>
15229
15230 * dwarf2/frame.c (struct comp_unit): Add initializers and
15231 constructor.
15232 (dwarf2_frame_objfile_data): Store a comp_unit.
15233 (dwarf2_frame_find_fde): Update.
15234 (dwarf2_build_frame_info): Use "new".
15235
15236 2020-02-12 Tom Tromey <tom@tromey.com>
15237
15238 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15239 (dwarf2_fde_table): Typedef for std::vector.
15240 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15241 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15242 (decode_frame_entry): Update.
15243 (dwarf2_build_frame_info): Use "new".
15244
15245 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15246
15247 * arm-tdep.c (arm_gdbarch_init): Update.
15248 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15249 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15250 have_neon, is_m>: Change to bool.
15251
15252 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15253
15254 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15255
15256 2020-02-12 Tom Tromey <tom@tromey.com>
15257
15258 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15259
15260 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15261
15262 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15263 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15264
15265 2020-02-11 Tom Tromey <tom@tromey.com>
15266
15267 * psymtab.h: Update comment.
15268
15269 2020-02-11 Tom Tromey <tom@tromey.com>
15270
15271 * gdb_obstack.h (struct auto_obstack): Use
15272 DISABLE_COPY_AND_ASSIGN.
15273
15274 2020-02-11 Tom Tromey <tom@tromey.com>
15275
15276 * dwarf2/frame.h (struct objfile): Don't forward declare.
15277
15278 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15279
15280 * cris-tdep.c (cris_supply_gregset): Change signature to match
15281 what struct regset expects.
15282 (cris_regset): New struct.
15283 (fetch_core_registers): Remove.
15284 (cris_iterate_over_regset_sections): New function.
15285 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15286 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15287
15288 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15289
15290 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15291 registers.
15292
15293 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15294
15295 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15296
15297 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15298
15299 * configure: Re-generate.
15300
15301 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15302
15303 * configure: Re-generate.
15304
15305 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15306
15307 * acinclude: Update warning.m4 path.
15308 * warning.m4: Move to gdbsupport.
15309
15310 2020-02-11 Tom Tromey <tromey@adacore.com>
15311
15312 * remote.c (remote_console_output): Update.
15313 * printcmd.c (printf_command): Update.
15314 * event-loop.c (gdb_wait_for_event): Update.
15315 * linux-nat.c (sigchld_handler): Update.
15316 * remote-sim.c (gdb_os_write_stdout): Update.
15317 (gdb_os_flush_stdout): Update.
15318 (gdb_os_flush_stderr): Update.
15319 (gdb_os_write_stderr): Update.
15320 * exceptions.c (print_exception): Update.
15321 * remote-fileio.c (remote_fileio_func_read): Update.
15322 (remote_fileio_func_write): Update.
15323 * tui/tui.c (tui_enable): Update.
15324 * tui/tui-interp.c (tui_interp::init): Update.
15325 * utils.c (init_page_info): Update.
15326 (putchar_unfiltered, fputc_unfiltered): Update.
15327 (gdb_flush): Update.
15328 (emit_style_escape): Update.
15329 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15330 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15331 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15332 (stderr_file::write): Update.
15333 (stderr_file::puts): Update.
15334 * ui-file.h (ui_file_isatty, ui_file_write)
15335 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15336 (ui_file_puts): Don't declare.
15337
15338 2020-02-10 Tom de Vries <tdevries@suse.de>
15339
15340 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15341 sentinel to char *.
15342
15343 2020-02-09 Tom de Vries <tdevries@suse.de>
15344
15345 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15346 filename if it matches "<artificial>".
15347
15348 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15349
15350 * windows-tdep.c (struct enum_value_name): New struct.
15351 (create_enum): New function.
15352 (windows_get_siginfo_type): Create and use enum types.
15353
15354 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15355
15356 * NEWS: Mention $_siginfo support for Windows.
15357 * windows-nat.c (handle_exception): Set siginfo_er.
15358 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15359 (windows_xfer_siginfo): New function.
15360 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15361 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15362 (init_windows_gdbarch_data): New function.
15363 (get_windows_gdbarch_data): New function.
15364 (windows_get_siginfo_type): New function.
15365 (windows_init_abi): Register windows_get_siginfo_type.
15366 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15367
15368 2020-02-08 Tom Tromey <tom@tromey.com>
15369
15370 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15371 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15372 <keep>: Declare method.
15373 <m_keep>: Remove member.
15374 <~cutu_reader>: Remove.
15375 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15376 (cutu_reader::cutu_reader): Update.
15377 (cutu_reader::keep): Rename from ~cutu_reader.
15378 (process_psymtab_comp_unit, build_type_psymtabs_1)
15379 (process_skeletonless_type_unit, load_partial_comp_unit)
15380 (load_full_comp_unit, dwarf2_read_addr_index)
15381 (read_signatured_type): Update.
15382
15383 2020-02-08 Tom Tromey <tom@tromey.com>
15384
15385 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15386 "want_partial_unit" parameter.
15387 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15388 Inline check for DW_TAG_partial_unit.
15389 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15390
15391 2020-02-08 Tom Tromey <tom@tromey.com>
15392
15393 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15394 read.c.
15395 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15396 read.c.
15397
15398 2020-02-08 Tom Tromey <tom@tromey.com>
15399
15400 * dwarf2/read.c (read_address): Move to comp-unit.c.
15401 (dwarf2_rnglists_process, dwarf2_ranges_process)
15402 (read_attribute_value, dwarf_decode_lines_1)
15403 (var_decode_location, decode_locdesc): Update.
15404 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15405 read.c. Remove "cu" parameter.
15406 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15407 method.
15408
15409 2020-02-08 Tom Tromey <tom@tromey.com>
15410
15411 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15412 (read_indirect_line_string): Update.
15413 * dwarf2/comp-unit.c (read_offset): Remove.
15414 (read_comp_unit_head): Update.
15415 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15416 method.
15417 (read_offset): Don't declare.
15418
15419 2020-02-08 Tom Tromey <tom@tromey.com>
15420
15421 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15422 * dwarf2/read.c (struct comp_unit_head): Move to
15423 dwarf2/comp-unit.h.
15424 (enum class rcuh_kind): Move to comp-unit.h.
15425 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15426 (read_comp_unit_head, error_check_comp_unit_head)
15427 (read_and_check_comp_unit_head): Move to comp-unit.c.
15428 (read_offset, dwarf_unit_type_name): Likewise.
15429 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15430 (cutu_reader::cutu_reader, read_call_site_scope)
15431 (find_partial_die, follow_die_offset): Update.
15432 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15433
15434 2020-02-08 Tom Tromey <tom@tromey.com>
15435
15436 * dwarf2/read.c (read_offset_1): Move to leb.c.
15437 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15438 (dwarf_decode_macro_bytes): Update.
15439 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15440 * dwarf2/leb.h (read_offset): Declare.
15441
15442 2020-02-08 Tom Tromey <tom@tromey.com>
15443
15444 * dwarf2/read.c (dwarf2_section_size): Remove.
15445 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15446 Update.
15447 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15448
15449 2020-02-08 Tom Tromey <tom@tromey.com>
15450
15451 * dwarf2/read.c (read_initial_length): Move to leb.c.
15452 * dwarf2/leb.h (read_initial_length): Declare.
15453 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15454 handle_nonstd parameter.
15455 * dwarf2/frame.c (read_initial_length): Remove.
15456 (decode_frame_entry_1): Update.
15457
15458 2020-02-08 Tom Tromey <tom@tromey.com>
15459
15460 * dwarf2/loc.c (dwarf2_find_location_expression)
15461 (dwarf_evaluate_loc_desc::get_tls_address)
15462 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15463 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15464 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15465 (dwarf2_compile_property_to_c)
15466 (dwarf2_loc_desc_get_symbol_read_needs)
15467 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15468 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15469 (loclist_describe_location, loclist_tracepoint_var_ref)
15470 (loclist_generate_c_location): Update.
15471 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15472 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15473 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15474 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15475 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15476 (dwarf2_per_cu_data::addr_size)
15477 (dwarf2_per_cu_data::ref_addr_size)
15478 (dwarf2_per_cu_data::text_offset)
15479 (dwarf2_per_cu_data::addr_type): Now methods.
15480 (per_cu_header_read_in): Make per_cu "const".
15481 (dwarf2_version): Remove.
15482 (dwarf2_per_cu_data::int_type): Now a method.
15483 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15484 (set_die_type, read_array_type, read_subrange_index_type)
15485 (read_tag_string_type, read_subrange_type): Update.
15486 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15487 offset_size, ref_addr_size, text_offset, addr_type, version,
15488 objfile, int_type, addr_sized_int_type>: Declare methods.
15489
15490 2020-02-08 Tom Tromey <tom@tromey.com>
15491
15492 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15493 Move earlier.
15494
15495 2020-02-08 Tom Tromey <tom@tromey.com>
15496
15497 * dwarf2/read.h (dwarf_line_debug): Declare.
15498 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15499 * dwarf2/read.c: Move line_header code to new files.
15500 (dwarf_line_debug): No longer static.
15501 * dwarf2/line-header.c: New file.
15502 * dwarf2/line-header.h: New file.
15503
15504 2020-02-08 Tom Tromey <tom@tromey.com>
15505
15506 * dwarf2/read.c (struct line_header) <file_full_name,
15507 file_file_name>: Return unique_xmalloc_ptr.
15508 (line_header::file_file_name): Update.
15509 (line_header::file_full_name): Update.
15510 (dw2_get_file_names_reader): Update.
15511 (macro_start_file): Update.
15512
15513 2020-02-08 Tom Tromey <tom@tromey.com>
15514
15515 * dwarf2/read.c (struct line_header) <file_full_name,
15516 file_file_name>: Declare methods.
15517 (dw2_get_file_names_reader): Update.
15518 (file_file_name): Now a method.
15519 (file_full_name): Likewise.
15520 (macro_start_file): Update.
15521
15522 2020-02-08 Tom Tromey <tom@tromey.com>
15523
15524 * dwarf2/read.c (dwarf_always_disassemble)
15525 (show_dwarf_always_disassemble): Move to loc.c.
15526 (_initialize_dwarf2_read): Move "always-disassemble" registration
15527 to loc.c.
15528 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15529 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15530 static.
15531 (show_dwarf_always_disassemble): Move from read.c.
15532 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15533
15534 2020-02-08 Tom Tromey <tom@tromey.com>
15535
15536 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15537 (create_quick_file_names_table): Return htab_up.
15538 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15539 Update.
15540 * dwarf2/read.h (struct dwarf2_per_objfile)
15541 <quick_file_names_table>: Now htab_up.
15542
15543 2020-02-08 Tom Tromey <tom@tromey.com>
15544
15545 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15546
15547 2020-02-08 Tom Tromey <tom@tromey.com>
15548
15549 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15550 Rewrite.
15551 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15552 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15553 (abbrev_table::abbrev_table): No longer inline.
15554 (ABBREV_HASH_SIZE): Remove.
15555 (abbrev_table::m_abbrevs): Now an htab_up.
15556
15557 2020-02-08 Tom Tromey <tom@tromey.com>
15558
15559 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15560 (cutu_reader): Update.
15561 (build_type_psymtabs_1): Update.
15562 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15563 (abbrev_table::alloc_abbrev): Update.
15564 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15565 (abbrev_table::read): New static method, renamed from
15566 abbrev_table_read_table.
15567 (abbrev_table::alloc_abbrev)
15568 (abbrev_table::add_abbrev): Now private.
15569 (abbrev_table::abbrev_table): Now private.
15570 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15571
15572 2020-02-08 Tom Tromey <tom@tromey.com>
15573
15574 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15575 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15576 htab_up.
15577
15578 2020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15581 htab_up.
15582 (lookup_dwo_unit_in_dwp): Update.
15583 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15584 on obstack.
15585
15586 2020-02-08 Tom Tromey <tom@tromey.com>
15587
15588 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15589 obstack.
15590
15591 2020-02-08 Tom Tromey <tom@tromey.com>
15592
15593 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15594 line_header_hash.
15595 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15596 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15597 Change type to htab_up.
15598
15599 2020-02-08 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15602 htab_up. Don't allocate on obstack.
15603 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15604 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15605 Change type to htab_up.
15606
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15608
15609 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15610 Change type to htab_up.
15611 * dwarf2/read.c (create_signatured_type_table_from_index)
15612 (create_signatured_type_table_from_debug_names)
15613 (create_all_type_units, add_type_unit)
15614 (lookup_dwo_signatured_type, lookup_signatured_type)
15615 (process_skeletonless_type_unit): Update.
15616 (create_debug_type_hash_table, create_debug_types_hash_table):
15617 Change type of types_htab.
15618 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15619 htab_up. Don't allocate on obstack.
15620 (create_cus_hash_table): Change type of cus_htab parameter.
15621 (struct dwo_file) <cus, tus>: Now htab_up.
15622 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15623 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15624 (queue_and_load_all_dwo_tus): Update.
15625 * dwarf2/index-write.c (write_gdbindex): Update.
15626 (write_debug_names): Update.
15627
15628 2020-02-08 Tom Tromey <tom@tromey.com>
15629
15630 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15631 dwarf2/read.c. Remove "next" member. Add constructor ntad
15632 destructor.
15633 (struct dwarf2_per_objfile) <queue>: New member.
15634 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15635 dwarf2/read.h.
15636 (dwarf2_queue, dwarf2_queue_tail): Remove.
15637 (class dwarf2_queue_guard): Add parameter to constructor. Use
15638 DISABLE_COPY_AND_ASSIGN.
15639 <m_per_objfile>: New member.
15640 <~dwarf2_queue_guard>: Rewrite.
15641 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15642 Update.
15643 (~dwarf2_queue_item): New.
15644
15645 2020-02-08 Tom Tromey <tom@tromey.com>
15646
15647 * dwarf2/read.c (struct die_info) <has_children>: New member.
15648 (dw2_get_file_names_reader): Remove has_children.
15649 (dw2_get_file_names): Update.
15650 (read_cutu_die_from_dwo): Remove has_children.
15651 (cutu_reader::init_tu_and_read_dwo_dies)
15652 (cutu_reader::cutu_reader): Update.
15653 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15654 Remove has_children.
15655 (build_type_psymtabs_1, process_skeletonless_type_unit)
15656 (load_partial_comp_unit, load_full_comp_unit): Update.
15657 (create_dwo_cu_reader): Remove has_children.
15658 (create_cus_hash_table, read_die_and_children): Update.
15659 (read_full_die_1,read_full_die): Remove has_children.
15660 (read_signatured_type): Update.
15661 (class cutu_reader) <has_children>: Remove.
15662
15663 2020-02-08 Tom Tromey <tom@tromey.com>
15664
15665 * dwarf2/expr.c: Rename from dwarf2expr.c.
15666 * dwarf2/expr.h: Rename from dwarf2expr.h.
15667 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15668 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15669 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15670 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15671 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15672 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15673 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15674 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15675 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15676 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15677 * dwarf2/loc.c: Rename from dwarf2loc.c.
15678 * dwarf2/loc.h: Rename from dwarf2loc.h.
15679 * dwarf2/read.c: Rename from dwarf2read.c.
15680 * dwarf2/read.h: Rename from dwarf2read.h.
15681 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15682 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15683 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15684 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15685 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15686 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15687 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15688 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15689 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15690 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15691 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15692 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15693 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15694 Update.
15695 * Makefile.in (COMMON_SFILES): Update.
15696 (HFILES_NO_SRCDIR): Update.
15697
15698 2020-02-08 Tom Tromey <tom@tromey.com>
15699
15700 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15701 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15702
15703 2020-02-08 Tom Tromey <tom@tromey.com>
15704
15705 * dwarf2read.h (struct die_info): Don't declare.
15706
15707 2020-02-08 Tom Tromey <tom@tromey.com>
15708
15709 * dwarf2read.h (die_info_ptr): Remove typedef.
15710
15711 2020-02-08 Tom Tromey <tom@tromey.com>
15712
15713 * dwarf2read.c (read_call_site_scope)
15714 (handle_data_member_location, dwarf2_add_member_fn)
15715 (mark_common_block_symbol_computed, read_common_block)
15716 (attr_to_dynamic_prop, partial_die_info::read)
15717 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15718 (dwarf2_symbol_mark_computed, set_die_type): Update.
15719 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15720 method.
15721 (attr_form_is_block): Don't declare.
15722 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15723
15724 2020-02-08 Tom Tromey <tom@tromey.com>
15725
15726 * dwarf2read.c (dwarf2_find_base_address, )
15727 (read_call_site_scope, rust_containing_type)
15728 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15729 (handle_data_member_location, dwarf2_add_member_fn)
15730 (get_alignment, read_structure_type, process_structure_scope)
15731 (mark_common_block_symbol_computed, read_common_block)
15732 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15733 (partial_die_info::read, read_attribute_value, new_symbol)
15734 (lookup_die_type, dwarf2_get_ref_die_offset)
15735 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15736 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15737 (dwarf2_symbol_mark_computed): Update.
15738 * dwarf2/attribute.h (struct attribute) <value_as_address,
15739 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15740 methods.
15741 (value_as_address, attr_form_is_section_offset)
15742 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15743 * dwarf2/attribute.c (attribute::value_as_address)
15744 (attribute::form_is_section_offset, attribute::form_is_constant)
15745 (attribute::form_is_ref): Now methods.
15746
15747 2020-02-08 Tom Tromey <tom@tromey.com>
15748
15749 * dwarf2read.c (struct attribute, DW_STRING)
15750 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15751 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15752 (attr_form_is_block, attr_form_is_section_offset)
15753 (attr_form_is_constant, attr_form_is_ref): Move.
15754 * dwarf2/attribute.h: New file.
15755 * dwarf2/attribute.c: New file, from dwarf2read.c.
15756 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15757
15758 2020-02-08 Tom Tromey <tom@tromey.com>
15759
15760 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15761 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15762 Move.
15763 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15764 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15765 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15766 abbrev.c.
15767 * dwarf2/abbrev.h: New file.
15768 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15769 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15770
15771 2020-02-08 Tom Tromey <tom@tromey.com>
15772
15773 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15774 (dwarf2_section_size, dwarf2_get_section_info)
15775 (create_signatured_type_table_from_debug_names)
15776 (create_addrmap_from_aranges, read_debug_names_from_section)
15777 (get_gdb_index_contents_from_section, read_comp_unit_head)
15778 (error_check_comp_unit_head, read_abbrev_offset)
15779 (create_debug_type_hash_table, init_cu_die_reader)
15780 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15781 (read_comp_units_from_section, create_cus_hash_table)
15782 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15783 (create_dwp_v2_section, dwarf2_rnglists_process)
15784 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15785 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15786 (read_indirect_string_from_dwz, read_addr_index_1)
15787 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15788 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15789 (fill_in_loclist_baton): Update.
15790 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15791 get_containing_section, get_bfd_owner, get_bfd_section,
15792 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15793 (dwarf2_read_section, get_section_name, get_section_file_name)
15794 (get_containing_section, get_section_bfd_owner)
15795 (get_section_bfd_section, get_section_name, get_section_file_name)
15796 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15797 declare.
15798 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15799 (dwarf2_section_info::get_bfd_owner)
15800 (dwarf2_section_info::get_bfd_section)
15801 (dwarf2_section_info::get_name)
15802 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15803 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15804 (dwarf2_section_info::read): Now methods.
15805 * dwarf-index-write.c (class debug_names): Update.
15806
15807 2020-02-08 Tom Tromey <tom@tromey.com>
15808
15809 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15810 Move to dwarf2/section.h.
15811 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15812 (get_section_bfd_section, get_section_name)
15813 (get_section_file_name, get_section_id, get_section_flags)
15814 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15815 dwarf2/section.c.
15816 * dwarf2/section.h: New file.
15817 * dwarf2/section.c: New file, from dwarf2read.c.
15818 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15819
15820 2020-02-08 Tom Tromey <tom@tromey.com>
15821
15822 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15823 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15824 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15825 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15826 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15827 * dwarf2/leb.h: New file, from dwarf2read.c.
15828 * dwarf2/leb.c: New file, from dwarf2read.c.
15829 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15830 Remove.
15831 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15832 (COMMON_SFILES): Add dwarf2/leb.c.
15833
15834 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15835
15836 GDB 9.1 released.
15837
15838 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15839
15840 PR gdb/25190:
15841 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15842 * gdb/remote.c (remote_console_output): Update.
15843 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15844 (ui_file_puts): ...this.
15845 * gdb/ui-file.h (ui_file_puts): Add declaration.
15846 * gdb/utils.c (emit_style_escape): Update.
15847 (flush_wrap_buffer): Update.
15848 (fputs_maybe_filtered): Update.
15849 (fputs_unfiltered): Add function.
15850
15851 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15852
15853 * gdb/event-loop.c (gdb_wait_for_event): Update.
15854 * gdb/printcmd.c (printf_command): Update.
15855 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15856 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15857 (gdb_os_flush_stderr): Update.
15858 * gdb/remote.c (remote_console_output): Update.
15859 * gdb/ui-file.c (gdb_flush): Rename to...
15860 (ui_file_flush): ...this.
15861 (stderr_file::write): Update.
15862 (stderr_file::puts): Update.
15863 * gdb/ui-file.h (gdb_flush): Rename to...
15864 (ui_file_flush): ...this.
15865 * gdb/utils.c (gdb_flush): Add function.
15866 * gdb/utils.h (gdb_flush): Add declaration.
15867
15868 2020-02-07 Tom Tromey <tromey@adacore.com>
15869
15870 PR breakpoints/24915:
15871 * source.c (find_and_open_source): Do not check basenames_may_differ.
15872
15873 2020-02-07 Tom Tromey <tom@tromey.com>
15874
15875 * README: Update gdbserver documentation.
15876 * gdbserver: Move to top level.
15877 * configure.tgt (build_gdbserver): Remove.
15878 * configure.ac: Remove --enable-gdbserver.
15879 * configure: Rebuild.
15880 * Makefile.in (distclean): Don't mention gdbserver.
15881
15882 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15883
15884 * source-cache.c (source_cache::ensure): Surround
15885 get_plain_source_lines with a try/catch.
15886 (source_cache::get_line_charpos): Get rid of try/catch
15887 and only check for the return value of "ensure".
15888 * tui/tui-source.c (tui_source_window::set_contents):
15889 Simplify "nlines" calculation.
15890
15891 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15892
15893 * MAINTAINERS (Write After Approval): Add myself.
15894
15895 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15896
15897 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15898 function call.
15899
15900 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15901
15902 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15903
15904 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15905
15906 * nat/riscv-linux-tdesc.h: New file.
15907 * nat/riscv-linux-tdesc.c: New file, taking code from...
15908 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15909 ... here.
15910 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15911 NATDEPFILES.
15912
15913 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15914
15915 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15916 we don't set the fake simulator ptid to the null_ptid.
15917
15918 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15919
15920 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15921 * gdbthread.h (class thread_info) <resumed>: Likewise.
15922 * infrun.c (resume_1): Likewise.
15923 (proceed): Likewise.
15924 (infrun_thread_stop_requested): Likewise.
15925 (stop_all_threads): Likewise.
15926 (handle_inferior_event): Likewise.
15927 (restart_threads): Likewise.
15928 (finish_step_over): Likewise.
15929 (keep_going_stepped_thread): Likewise.
15930 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15931 (linux_handle_extended_wait): Likewise.
15932 * record-btrace.c (get_thread_current_frame_id): Likewise.
15933 * record-full.c (record_full_wait_1): Likewise.
15934 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15935 * target.c (target_resume): Likewise.
15936 * thread.c (set_running_thread): Likewise.
15937
15938 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15939
15940 * f-valprint.c (f77_print_array_1): Changed datatype of index
15941 variable to LONGEST from int to enable it to contain bound
15942 values correctly.
15943
15944 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15945
15946 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15947 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15948 offsets according to FLEN determined.
15949 (riscv_linux_nat_target::read_description): Determine FLEN
15950 dynamically.
15951 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15952 according to FLEN determined.
15953 (riscv_linux_nat_target::store_registers): Likewise.
15954
15955 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15956
15957 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15958 when reg->group is empty and reggroup is not.
15959
15960 2020-01-31 Tom Tromey <tromey@adacore.com>
15961
15962 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15963 Call beneath target's mourn_inferior after unpushing.
15964
15965 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15966
15967 PR tui/9765
15968 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15969 have enough lines to fill the screen, still return the lowest
15970 address we found.
15971
15972 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15973
15974 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15975 '-', '<', and '>' commands.
15976
15977 2020-01-29 Pedro Alves <palves@redhat.com>
15978 Sergio Durigan Junior <sergiodj@redhat.com>
15979
15980 * infcmd.c (construct_inferior_arguments): Assert that
15981 'argc' is greater than 0.
15982
15983 2020-01-29 Luis Machado <luis.machado@linaro.org>
15984
15985 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15986 (BRK_INSN_MASK): Define to 0xd4200000.
15987 (aarch64_program_breakpoint_here_p): New function.
15988 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15989 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15990 breakpoint.c.
15991 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15992 breakpoint.h
15993 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15994 call gdbarch_program_breakpoint_here_p.
15995 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15996 default_program_breakpoint_here_p, changed return type to bool and
15997 simplified.
15998 * breakpoint.h (program_breakpoint_here): Moved prototype to
15999 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16000 return type to bool.
16001 * gdbarch.c: Regenerate.
16002 * gdbarch.h: Regenerate.
16003 * gdbarch.sh (program_breakpoint_here_p): New method.
16004 * infrun.c (handle_signal_stop): Call
16005 gdbarch_program_breakpoint_here_p.
16006
16007 2020-01-26 Tom Tromey <tom@tromey.com>
16008
16009 * ctfread.c (struct ctf_fp_info): Reindent.
16010 (_initialize_ctfread): Remove.
16011
16012 2020-01-26 Tom Tromey <tom@tromey.com>
16013
16014 * psymtab.c (partial_map_expand_apply)
16015 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16016 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16017 (psym_print_stats, psym_expand_symtabs_for_function)
16018 (psym_map_symbol_filenames, psym_map_matching_symbols)
16019 (psym_expand_symtabs_matching)
16020 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16021 (maintenance_check_psymtabs): Use new methods.
16022 * psympriv.h (struct partial_symtab) <readin_p,
16023 get_compunit_symtab>: New methods.
16024 <readin, compunit_symtab>: Remove members.
16025 (struct standard_psymtab): New.
16026 (struct legacy_psymtab): Derive from standard_psymtab.
16027 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16028 standard_psymtab.
16029 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16030
16031 2020-01-26 Tom Tromey <tom@tromey.com>
16032
16033 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16034 read_dependencies. Add assert.
16035 * psymtab.c (partial_symtab::read_dependencies): New method.
16036 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16037 method.
16038 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16039 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16040 read_dependencies.
16041 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16042 Add assert.
16043
16044 2020-01-26 Tom Tromey <tom@tromey.com>
16045
16046 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16047 Call expand_psymtab.
16048 (xcoff_read_symtab): Call expand_psymtab.
16049 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16050 legacy_expand_psymtab.
16051 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16052 method.
16053 (struct legacy_psymtab) <expand_psymtab>: Implement.
16054 <legacy_expand_psymtab>: New member.
16055 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16056 (parse_partial_symbols): Set legacy_expand_psymtab.
16057 (psymtab_to_symtab_1): Change argument order. Call
16058 expand_psymtab.
16059 (new_psymtab): Set legacy_expand_psymtab.
16060 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16061 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16062 expand_psymtab.
16063 (dwarf2_psymtab::expand_psymtab): Rename from
16064 psymtab_to_symtab_1. Call expand_psymtab.
16065 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16066 (dbx_end_psymtab): Likewise.
16067 (dbx_psymtab_to_symtab_1): Change argument order. Call
16068 expand_psymtab.
16069 (dbx_read_symtab): Call expand_psymtab.
16070 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16071 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16072 (ctf_psymtab::read_symtab): Call expand_psymtab.
16073
16074 2020-01-26 Tom Tromey <tom@tromey.com>
16075
16076 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16077 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16078 messages.
16079 * mdebugread.c (mdebug_read_symtab): Remove prints.
16080 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16081 assert.
16082 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16083
16084 2020-01-26 Tom Tromey <tom@tromey.com>
16085
16086 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16087 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16088 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16089 legacy_symtab.
16090 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16091 * psymtab.c (psymtab_to_symtab): Call method.
16092 (dump_psymtab): Update.
16093 * psympriv.h (struct partial_symtab): Add virtual destructor.
16094 <read_symtab>: New method.
16095 (struct legacy_symtab): New.
16096 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16097 (struct pst_map) <pst>: Now a legacy_psymtab.
16098 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16099 (new_psymtab): Use legacy_psymtab.
16100 * dwarf2read.h (struct dwarf2_psymtab): New.
16101 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16102 * dwarf2read.c (dwarf2_create_include_psymtab)
16103 (dwarf2_build_include_psymtabs, create_type_unit_group)
16104 (create_partial_symtab, process_psymtab_comp_unit_reader)
16105 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16106 (set_partial_user): Use dwarf2_psymtab.
16107 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16108 (psymtab_to_symtab_1, process_full_comp_unit)
16109 (process_full_type_unit, dwarf2_ranges_read)
16110 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16111 (dwarf_decode_lines): Use dwarf2_psymtab.
16112 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16113 (add_address_entry_worker, write_one_signatured_type)
16114 (recursively_count_psymbols, recursively_write_psymbols)
16115 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16116 (write_debug_names): Likewise.
16117 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16118 <pst>: Now a legacy_psymtab.
16119 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16120 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16121 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16122 * ctfread.c (struct ctf_psymtab): New.
16123 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16124 ctf_psymtab.
16125 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16126 (create_partial_symtab): Return a ctf_psymtab.
16127 (scan_partial_symbols): Update.
16128
16129 2020-01-26 Tom Tromey <tom@tromey.com>
16130
16131 * xcoffread.c (xcoff_start_psymtab): Use new.
16132 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16133 renamed from start_psymtab_common.
16134 * psympriv.h (struct partial_symtab): Add new constructor.
16135 (start_psymtab_common): Don't declare.
16136 * mdebugread.c (parse_partial_symbols): Use new.
16137 * dwarf2read.c (create_partial_symtab): Use new.
16138 * dbxread.c (start_psymtab): Use new.
16139 * ctfread.c (create_partial_symtab): Use new.
16140
16141 2020-01-26 Tom Tromey <tom@tromey.com>
16142
16143 * xcoffread.c (xcoff_end_psymtab): Use new.
16144 * psymtab.c (start_psymtab_common): Use new.
16145 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16146 Update.
16147 * psympriv.h (struct partial_symtab): Add parameters to
16148 constructor. Don't inline.
16149 (allocate_psymtab): Don't declare.
16150 * mdebugread.c (new_psymtab): Use new.
16151 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16152 * dbxread.c (dbx_end_psymtab): Use new.
16153
16154 2020-01-26 Tom Tromey <tom@tromey.com>
16155
16156 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16157 allocate_psymtab. Update documentation.
16158 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16159 allocate_psymtab. Do not use new.
16160 (allocate_psymtab): Use new. Update.
16161
16162 2020-01-26 Tom Tromey <tom@tromey.com>
16163
16164 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16165 * psymtab.c (psym_print_stats): Update.
16166 * psympriv.h (struct partial_symtab) <readin,
16167 psymtabs_addrmap_supported, anonymous>: Now bool.
16168 * mdebugread.c (psymtab_to_symtab_1): Update.
16169 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16170 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16171 (process_full_comp_unit, process_full_type_unit): Update.
16172 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16173 * ctfread.c (psymtab_to_symtab): Update.
16174
16175 2020-01-26 Tom Tromey <tom@tromey.com>
16176
16177 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16178 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16179 * psymtab.c (psymtab_storage): Delete psymtabs.
16180 (psymtab_storage::allocate_psymtab): Use new.
16181 (psymtab_storage::discard_psymtab): Use delete.
16182 * psympriv.h (struct partial_symtab): Add constructor and
16183 initializers.
16184
16185 2020-01-26 Tom Tromey <tom@tromey.com>
16186
16187 * machoread.c: Do not include psympriv.h.
16188
16189 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16190
16191 * NEWS: Mention the new option and the set/show commands.
16192
16193 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16194
16195 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16196 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16197 (validate_exec_file): New variables, enums, functions.
16198 (exec_file_locate_attach, print_section_info): Style the filenames.
16199 (_initialize_exec): Install show_exec_file_mismatch_command and
16200 set_exec_file_mismatch_command.
16201 * gdbcore.h (validate_exec_file): Declare.
16202 * infcmd.c (attach_command): Call validate_exec_file.
16203 * remote.c ( remote_target::remote_add_inferior): Likewise.
16204
16205 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16206
16207 * frame.c (find_frame_sal): Move call to get_next_frame into more
16208 inner scope.
16209 * inline-frame.c (inilne_state) <inline_state>: Update argument
16210 types.
16211 (inilne_state) <skipped_symbol>: Rename to...
16212 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16213 (skip_inline_frames): Build vector of skipped symbols and use this
16214 to reate the inline_state.
16215 (inline_skipped_symbol): Add a comment and some assertions, fetch
16216 skipped symbol from the list.
16217
16218 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16219
16220 * buildsym.c (lte_is_less_than): Delete.
16221 (buildsym_compunit::end_symtab_with_blockvector): Create local
16222 lambda function to sort line table entries, and use
16223 std::stable_sort instead of std::sort.
16224 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16225 markers when looking for a previous line.
16226
16227 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16228
16229 * dwarf2read.c (lnp_state_machine::record_line): Include
16230 end_sequence parameter in debug print out. Record the line if we
16231 are at an end_sequence marker even if it's not the start of a
16232 statement.
16233 * symmisc.c (maintenance_print_one_line_table): Print end of
16234 sequence markers with 'END' not '0'.
16235
16236 2020-01-24 Pedro Alves <palves@redhat.com>
16237
16238 PR gdb/25410
16239 * thread.c (scoped_restore_current_thread::restore): Use
16240 switch_to_inferior_no_thread.
16241 * exec.c: Include "progspace-and-thread.h".
16242 (add_target_sections, remove_target_sections):
16243 scoped_restore_current_pspace_and_thread instead of
16244 scoped_restore_current_thread.
16245 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16246 and aspace to the inferior before calling clone_program_space.
16247 Remove stale comment.
16248
16249 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16250
16251 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16252 (arm_netbsd_nat_target::fetch_registers): ...this.
16253 (arm_nbsd_nat_target::store_registers): Rename to...
16254 (arm_netbsd_nat_target::store_registers): ...this.
16255
16256 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16257
16258 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16259 register_t.
16260
16261 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16262
16263 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16264 Update comment.
16265 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16266 Likewise.
16267 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16268 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16269 the correct replacement (iterate_over_regset_sections).
16270 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16271 Update comment.
16272
16273 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16274
16275 PR gdb/23718
16276 * gdb/python/python.c (execute_gdb_command): Call
16277 async_enable_stdin in catch block.
16278
16279 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16280
16281 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16282 SWITCH_THRU_ALL_UIS.
16283
16284 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16285
16286 PR tui/9765
16287 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16288 comment, add extra parameter, and update to store previous symbol
16289 when appropriate.
16290 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16291 add extra parameter.
16292 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16293 remove unneeded parameter, add try/catch around gdb_print_insn,
16294 rewrite to add items to asm_lines vector.
16295 (tui_find_backward_disassembly_start_address): New function.
16296 (tui_find_disassembly_address): Updated throughout.
16297 (tui_disasm_window::set_contents): Update for changes to
16298 tui_disassemble.
16299 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16300 number of lines to scroll.
16301
16302 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16303
16304 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16305 (SECT_OFF_DATA): Likewise.
16306 (SECT_OFF_RODATA): Likewise.
16307 (SECT_OFF_TEXT): Likewise.
16308 (SECT_OFF_BSS): Likewise.
16309 (struct objfile) <text_section_offset, data_section_offset>: New
16310 methods.
16311 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16312 objfile::text_section_offset.
16313 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16314 * coffread.c (coff_symtab_read): Likewise.
16315 (enter_linenos): Likewise.
16316 (process_coff_symbol): Likewise.
16317 * ctfread.c (get_objfile_text_range): Likewise.
16318 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16319 Use objfile::data_section_offset.
16320 * dwarf2-frame.c (execute_cfa_program): Use
16321 objfile::text_section_offset.
16322 (dwarf2_frame_find_fde): Likewise.
16323 * dwarf2read.c (create_addrmap_from_index): Likewise.
16324 (create_addrmap_from_aranges): Likewise.
16325 (dw2_find_pc_sect_compunit_symtab): Likewise.
16326 (process_psymtab_comp_unit_reader): Likewise.
16327 (add_partial_symbol): Likewise.
16328 (add_partial_subprogram): Likewise.
16329 (process_full_comp_unit): Likewise.
16330 (read_file_scope): Likewise.
16331 (read_func_scope): Likewise.
16332 (read_lexical_block_scope): Likewise.
16333 (read_call_site_scope): Likewise.
16334 (dwarf2_rnglists_process): Likewise.
16335 (dwarf2_ranges_process): Likewise.
16336 (dwarf2_ranges_read): Likewise.
16337 (dwarf_decode_lines_1): Likewise.
16338 (new_symbol): Likewise.
16339 (dwarf2_fetch_die_loc_sect_off): Likewise.
16340 (dwarf2_per_cu_text_offset): Likewise.
16341 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16342 * hppa-tdep.c (read_unwind_info): Likewise.
16343 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16344 * psympriv.h (struct partial_symtab): Likewise.
16345 * psymtab.c (find_pc_sect_psymtab): Likewise.
16346 * solib-svr4.c (enable_break): Likewise.
16347 * stap-probe.c (relocate_address): Use
16348 objfile::data_section_offset.
16349 * xcoffread.c (enter_line_range): Use
16350 objfile::text_section_offset.
16351 (read_xcoff_symtab): Likewise.
16352
16353 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16354
16355 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16356 declaration to narrower scopes.
16357
16358 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16359
16360 * darwin-nat.h (struct darwin_exception_msg, enum
16361 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16362 Move up.
16363 (class darwin_nat_target) <wait_1, check_new_threads,
16364 decode_exception_message, decode_message, stop_inferior,
16365 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16366 * darwin-nat.c (darwin_check_new_threads): Rename to...
16367 (darwin_nat_target::check_new_threads): ... this.
16368 (darwin_suspend_inferior_it): Remove.
16369 (darwin_decode_exception_message): Rename to...
16370 (darwin_nat_target::decode_exception_message): ... this.
16371 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16372 (darwin_decode_message): Rename to...
16373 (darwin_nat_target::decode_message): ... this.
16374 (cancel_breakpoint): Rename to...
16375 (darwin_nat_target::cancel_breakpoint): ... this.
16376 (darwin_wait): Rename to...
16377 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16378 instead of iterate_over_inferiors.
16379 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16380 (darwin_stop_inferior): Rename to...
16381 (darwin_nat_target::stop_inferior): ... this.
16382 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16383 (darwin_init_thread_list): Rename to...
16384 (darwin_nat_target::init_thread_list): ... this.
16385 (darwin_ptrace_him): Rename to...
16386 (darwin_nat_target::ptrace_him): ... this.
16387 (darwin_nat_target::create_inferior): Pass lambda function to
16388 fork_inferior.
16389 (darwin_nat_target::detach): Call stop_inferior instead of
16390 darwin_stop_inferior.
16391 * fork-inferior.h (fork_inferior): Change init_trace_fun
16392 parameter to gdb::function_view.
16393 * fork-inferior.c (fork_inferior): Likewise.
16394
16395 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16396
16397 * i386-cygwin-tdep.c (core_process_module_section): Update.
16398 * windows-nat.c (struct lm_info_windows): Add text_offset.
16399 (windows_xfer_shared_libraries): Update.
16400 * windows-tdep.c (windows_xfer_shared_library):
16401 Add text_offset_cached argument.
16402 * windows-tdep.h (windows_xfer_shared_library): Update.
16403
16404 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16405
16406 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16407
16408 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16409
16410 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16411 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16412 replace with range-based for.
16413 (gdbsim_interrupt_inferior): Remove.
16414 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16415 with a range-based for. Inline code from
16416 gdbsim_interrupt_inferior.
16417
16418 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16419
16420 * infrun.c (proceed): Fix indentation.
16421
16422 2020-01-21 Tom Tromey <tromey@adacore.com>
16423
16424 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16425 * python/python.c (python_extension_ops): Update.
16426 (gdbpy_colorize): New function.
16427 * python/lib/gdb/__init__.py (colorize): New function.
16428 * extension.h (ext_lang_colorize): Declare.
16429 * extension.c (ext_lang_colorize): New function.
16430 * extension-priv.h (struct extension_language_ops) <colorize>: New
16431 member.
16432 * cli/cli-style.c (_initialize_cli_style): Update help text.
16433
16434 2020-01-21 Luis Machado <luis.machado@linaro.org>
16435
16436 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16437 <cond>: Change type to bool.
16438 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16439 (aarch64_displaced_step_cb): Likewise.
16440 (aarch64_displaced_step_tb): Likewise.
16441
16442 2020-01-21 Luis Machado <luis.machado@linaro.org>
16443
16444 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16445 output.
16446
16447 2020-01-21 Luis Machado <luis.machado@linaro.org>
16448
16449 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16450 <pc_adjust>: Adjust the documentation.
16451 (aarch64_displaced_step_fixup): Check if PC really moved before
16452 adjusting it.
16453
16454 2020-01-19 Tom Tromey <tom@tromey.com>
16455
16456 * disasm.c (~gdb_disassembler): New destructor.
16457 (gdb_buffered_insn_length): Call disassemble_free_target.
16458 * disasm.h (class gdb_disassembler): Declare destructor. Use
16459 DISABLE_COPY_AND_ASSIGN.
16460
16461 2020-01-19 Tom Tromey <tom@tromey.com>
16462
16463 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16464 (die_reader_func_ftype): Remove.
16465 (cutu_reader): New class.
16466 (dw2_get_file_names_reader): Remove "data" parameter.
16467 (dw2_get_file_names): Use cutu_reader.
16468 (create_debug_type_hash_table): Update.
16469 (read_cutu_die_from_dwo): Update comment.
16470 (lookup_dwo_unit): Add dwo_name parameter.
16471 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16472 die_reader_func_ftype and data parameters.
16473 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16474 Remove die_reader_func_ftype and data parameters.
16475 (~cutu_reader): New; from init_cutu_and_read_dies.
16476 (cutu_reader::cutu_reader): Rename from
16477 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16478 and data parameters.
16479 (init_cutu_and_read_dies_simple): Remove.
16480 (struct process_psymtab_comp_unit_data): Remove.
16481 (process_psymtab_comp_unit_reader): Remove data parameter; add
16482 want_partial_unit and pretend_language parameters.
16483 (process_psymtab_comp_unit): Use cutu_reader.
16484 (build_type_psymtabs_reader): Remove data parameter.
16485 (build_type_psymtabs_1): Use cutu_reader.
16486 (process_skeletonless_type_unit): Likewise.
16487 (load_partial_comp_unit_reader): Remove.
16488 (load_partial_comp_unit): Use cutu_reader.
16489 (load_full_comp_unit_reader): Remove.
16490 (load_full_comp_unit): Use cutu_reader.
16491 (struct create_dwo_cu_data): Remove.
16492 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16493 dwo_unit parameters.
16494 (create_cus_hash_table): Use cutu_reader.
16495 (struct dwarf2_read_addr_index_data): Remove.
16496 (dwarf2_read_addr_index_reader): Remove.
16497 (dwarf2_read_addr_index): Use cutu_reader.
16498 (read_signatured_type_reader): Remove.
16499 (read_signatured_type): Use cutu_reader.
16500
16501 2020-01-19 Tom Tromey <tom@tromey.com>
16502
16503 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16504 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16505 (tui_wrefresh): Declare.
16506 * tui/tui-wingeneral.c (suppress_output): New global.
16507 (tui_suppress_output, ~tui_suppress_output): New constructor and
16508 destructor.
16509 (tui_wrefresh): New function.
16510 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16511 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16512 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16513 method.
16514 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16515 tui_wrefresh.
16516 (tui_data_window::no_refresh): New method.
16517 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16518 (tui_reg_command): Use tui_suppress_output
16519 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16520 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16521 method.
16522 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16523
16524 2020-01-19 Tom Tromey <tom@tromey.com>
16525
16526 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16527 Handle case where symtab is null.
16528
16529 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16530
16531 * linux-fork.c (one_fork_p): Simplify.
16532
16533 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16534
16535 * top.c (struct qt_args): Remove.
16536 (kill_or_detach): Change return type to void, replace `void *`
16537 parameter with a proper one.
16538 (print_inferior_quit_action): Likewise.
16539 (quit_confirm): Use range-based for loop to iterate over inferiors.
16540 (quit_force): Likewise.
16541
16542 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16543
16544 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16545 `void *` parameter with proper parameters.
16546 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16547 (print_one_inferior): Change return type to void, replace `void *`
16548 parameter with proper parameters.
16549 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16550 inferiors.
16551 (get_other_inferior): Remove.
16552 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16553 inferiors.
16554
16555 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16556
16557 * mi/mi-interp.c (report_initial_inferior): Remove.
16558 (mi_interp::init): Use range-based for to iterate over inferiors.
16559
16560 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16561
16562 * python/py-inferior.c (build_inferior_list): Remove.
16563 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16564
16565 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16566
16567 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16568 (btrace_stitch_trace): Likewise.
16569 * charset.c (intermediate_encoding): Likewise (vaild).
16570 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16571 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16572 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16573
16574 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16575
16576 * windows-tdep.c (windows_get_tlb_type):
16577 Add rtl_user_process_parameters type.
16578
16579 2020-01-16 Pedro Alves <palves@redhat.com>
16580 Norbert Lange <nolange79@gmail.com>
16581
16582 PR build/24805
16583 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16584 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16585 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16586 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16587 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16588 (ps_plog): Redeclare exported functions with default visibility.
16589
16590 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16591
16592 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16593 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16594
16595 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16596
16597 * infcmd.c (post_create_inferior): Use get_thread_regcache
16598 instead of get_current_regcache.
16599
16600 2020-01-14 Tom Tromey <tom@tromey.com>
16601
16602 PR symtab/12535:
16603 * python/python.c (gdbpy_decode_line): Treat empty string the same
16604 as no argument.
16605
16606 2020-01-14 Tom Tromey <tom@tromey.com>
16607
16608 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16609
16610 2020-01-14 Tom Tromey <tom@tromey.com>
16611
16612 * nat/linux-btrace.c: Don't include <config.h>.
16613 * nat/linux-ptrace.c: Don't include <config.h>.
16614 * nat/x86-linux-dregs.c: Don't include <config.h>.
16615
16616 2020-01-14 Tom Tromey <tom@tromey.com>
16617
16618 * configure: Rebuild.
16619 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16620
16621 2020-01-14 Tom Tromey <tom@tromey.com>
16622
16623 * nat/x86-linux-dregs.c: Include configh.h.
16624 * nat/linux-ptrace.c: Include configh.h.
16625 * nat/linux-btrace.c: Include configh.h.
16626 * defs.h: Include config.h, bfd.h.
16627 * configure.ac: Don't source common.host.
16628 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16629 * configure: Rebuild.
16630 * acinclude.m4: Update path.
16631 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16632 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16633 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16634 (CLIBS): Add LIBSUPPORT.
16635 (CDEPS): Likewise.
16636 (COMMON_SFILES): Remove gdbsupport files.
16637 (HFILES_NO_SRCDIR): Likewise.
16638 (stamp-version): Update path to create-version.sh.
16639 (ALLDEPFILES): Remove gdbsupport files.
16640
16641 2020-01-14 Tom Tromey <tom@tromey.com>
16642
16643 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16644 USE_WIN32API when needed.
16645 * configure.ac (USE_WIN32API): Don't define.
16646 (WIN32LIBS): Use WIN32APILIBS.
16647 * configure: Rebuild.
16648
16649 2020-01-14 Tom Tromey <tom@tromey.com>
16650
16651 * configure: Rebuild.
16652 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16653
16654 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16655
16656 * skip.c (skip_function_command): Make skip w/o arguments use the
16657 name of the inlined function if pc is inside any inlined function.
16658
16659 2020-01-14 Luis Machado <luis.machado@linaro.org>
16660
16661 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16662 * infrun.c (resume_1): Likewise.
16663 (handle_inferior_event): Remove stale comment.
16664 * linux-nat.c (linux_nat_target::resume): Update comments.
16665 (save_stop_reason): Likewise.
16666 (linux_nat_filter_event): Likewise.
16667 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16668
16669 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16670
16671 * elfread.c (record_minimal_symbol): Set section index to 0 for
16672 non-allocatable sections.
16673
16674
16675 2020-01-13 Ali Tamur <tamur@google.com>
16676
16677 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16678 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16679 to gdb::optional. Update comments.
16680 (dwo_file): Update comments.
16681 (read_attribute): Update API to take an additional out parameter,
16682 need_reprocess. This is used to mark attributes that need other
16683 attributes (e.g. str_offsets_base) for correct computation which may not
16684 have been read yet.
16685 (read_attribute_reprocess): New function declaration.
16686 (read_addr_index): Likewise.
16687 (read_dwo_str_index): Likewise.
16688 (read_stub_str_index): Likewise.
16689 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16690 (lookup_addr_base): New function definition.
16691 (lookup_ranges_base): Likewise.
16692 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16693 lookup_ranges_base.
16694 (init_cutu_and_read_dies): Update comments.
16695 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16696 unit. This is used to inherit parent's str_offsets_base and addr_base.
16697 Update comments.
16698 (init_cutu_and_read_dies_simple): Reflect API changes.
16699 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16700 (create_cus_hash_table): Change API to take parent compile unit.
16701 Reflect API changes.
16702 (open_and_init_dwo_file): Reflect API changes.
16703 (dwarf2_get_pc_bounds): Update comments.
16704 (dwarf2_record_block_ranges): Likewise.
16705 (read_full_die_1): Change implementation to reprocess attributes that
16706 need str_offsets_base and addr_base.
16707 (partial_die_info::read): Likewise.
16708 (read_attribute_reprocess): New function definition.
16709 (read_attribute_value): Change API to take an additional out parameter,
16710 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16711 when a non-dwo compile unit has index based attributes.
16712 (read_attribute): Reflect API changes.
16713 (read_addr_index_1): Reflect API changes. Update comments.
16714 (dwarf2_read_addr_index_data): Reflect API changes.
16715 (dwarf2_read_addr_index): Likewise.
16716 (read_str_index): Change API and implementation. This becomes a helper
16717 to be used by the new string index related methods. Update error
16718 message and comments.
16719 (read_dwo_str_index): New function definition.
16720 (read_stub_str_index): Likewise.
16721 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16722 * symfile.h (dwarf2_debug_sections): Likewise.
16723 * xcoffread.c (dwarf2_debug_sections): Likewise.
16724
16725 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16726
16727 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16728 core_reg_sect type to gdb_byte *.
16729 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16730 * cris-tdep.c (fetch_core_registers): Likewise.
16731 * corelow.c (core_target::get_core_register_section): Change
16732 type of `contents` to gdb::byte_vector.
16733
16734 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16735
16736 * tui/tui-wingeneral.c (box_win): Position the title in the center
16737 of the border.
16738
16739 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16740
16741 * corelow.c (core_target::get_core_register_section): Use
16742 std::vector instead of alloca.
16743
16744 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16745
16746 * warning.m4: Add -Wmissing-declarations to build_warnings.
16747 * configure: Re-generate.
16748
16749 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16750
16751 * python/python.c (init__gdb_module): Add declaration.
16752
16753 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16754
16755 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16756 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16757 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16758 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16759 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16760 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16761 * ada-exp.y (_initialize_ada_exp): Add declaration.
16762 * ada-lang.c (_initialize_ada_language): Add declaration.
16763 * ada-tasks.c (_initialize_tasks): Add declaration.
16764 * agent.c (_initialize_agent): Add declaration.
16765 * aix-thread.c (_initialize_aix_thread): Add declaration.
16766 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16767 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16768 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16769 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16770 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16771 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16772 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16773 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16774 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16775 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16776 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16777 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16778 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16779 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16780 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16781 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16782 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16783 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16784 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16785 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16786 * annotate.c (_initialize_annotate): Add declaration.
16787 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16788 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16789 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16790 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16791 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16792 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16793 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16794 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16795 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16796 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16797 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16798 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16799 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16800 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16801 * auto-load.c (_initialize_auto_load): Add declaration.
16802 * auxv.c (_initialize_auxv): Add declaration.
16803 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16804 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16805 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16806 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16807 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16808 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16809 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16810 * breakpoint.c (_initialize_breakpoint): Add declaration.
16811 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16812 * btrace.c (_initialize_btrace): Add declaration.
16813 * charset.c (_initialize_charset): Add declaration.
16814 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16815 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16816 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16817 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16818 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16819 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16820 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16821 * coffread.c (_initialize_coffread): Add declaration.
16822 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16823 * compile/compile.c (_initialize_compile): Add declaration.
16824 * complaints.c (_initialize_complaints): Add declaration.
16825 * completer.c (_initialize_completer): Add declaration.
16826 * copying.c (_initialize_copying): Add declaration.
16827 * corefile.c (_initialize_core): Add declaration.
16828 * corelow.c (_initialize_corelow): Add declaration.
16829 * cp-abi.c (_initialize_cp_abi): Add declaration.
16830 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16831 * cp-support.c (_initialize_cp_support): Add declaration.
16832 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16833 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16834 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16835 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16836 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16837 * ctfread.c (_initialize_ctfread): Add declaration.
16838 * d-lang.c (_initialize_d_language): Add declaration.
16839 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16840 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16841 * dbxread.c (_initialize_dbxread): Add declaration.
16842 * dcache.c (_initialize_dcache): Add declaration.
16843 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16844 * disasm.c (_initialize_disasm): Add declaration.
16845 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16846 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16847 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16848 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16849 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16850 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16851 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16852 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16853 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16854 * elfread.c (_initialize_elfread): Add declaration.
16855 * exec.c (_initialize_exec): Add declaration.
16856 * extension.c (_initialize_extension): Add declaration.
16857 * f-lang.c (_initialize_f_language): Add declaration.
16858 * f-valprint.c (_initialize_f_valprint): Add declaration.
16859 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16860 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16861 * filesystem.c (_initialize_filesystem): Add declaration.
16862 * findcmd.c (_initialize_mem_search): Add declaration.
16863 * findvar.c (_initialize_findvar): Add declaration.
16864 * fork-child.c (_initialize_fork_child): Add declaration.
16865 * frame-base.c (_initialize_frame_base): Add declaration.
16866 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16867 * frame.c (_initialize_frame): Add declaration.
16868 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16869 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16870 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16871 * gcore.c (_initialize_gcore): Add declaration.
16872 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16873 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16874 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16875 * gdbarch.c (_initialize_gdbarch): Add declaration.
16876 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16877 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16878 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16879 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16880 * go-lang.c (_initialize_go_language): Add declaration.
16881 * go32-nat.c (_initialize_go32_nat): Add declaration.
16882 * guile/guile.c (_initialize_guile): Add declaration.
16883 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16884 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16885 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16886 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16887 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16888 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16889 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16890 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16891 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16892 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16893 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16894 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16895 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16896 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16897 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16898 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16899 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16900 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16901 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16902 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16903 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16904 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16905 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16906 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16907 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16908 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16909 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16910 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16911 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16912 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16913 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16914 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16915 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16916 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16917 * infcall.c (_initialize_infcall): Add declaration.
16918 * infcmd.c (_initialize_infcmd): Add declaration.
16919 * inflow.c (_initialize_inflow): Add declaration.
16920 * infrun.c (_initialize_infrun): Add declaration.
16921 * interps.c (_initialize_interpreter): Add declaration.
16922 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16923 * jit.c (_initialize_jit): Add declaration.
16924 * language.c (_initialize_language): Add declaration.
16925 * linux-fork.c (_initialize_linux_fork): Add declaration.
16926 * linux-nat.c (_initialize_linux_nat): Add declaration.
16927 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16928 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16929 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16930 * m2-lang.c (_initialize_m2_language): Add declaration.
16931 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16932 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16933 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16934 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16935 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16936 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16937 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16938 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16939 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16940 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16941 * machoread.c (_initialize_machoread): Add declaration.
16942 * macrocmd.c (_initialize_macrocmd): Add declaration.
16943 * macroscope.c (_initialize_macroscope): Add declaration.
16944 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16945 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16946 * maint.c (_initialize_maint_cmds): Add declaration.
16947 * mdebugread.c (_initialize_mdebugread): Add declaration.
16948 * memattr.c (_initialize_mem): Add declaration.
16949 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16950 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16951 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16952 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16953 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16954 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16955 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16956 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16957 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16958 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16959 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16960 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16961 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16962 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16963 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16964 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16965 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16966 * mipsread.c (_initialize_mipsread): Add declaration.
16967 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16968 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16969 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16970 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16971 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16972 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16973 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16974 * nto-procfs.c (_initialize_procfs): Add declaration.
16975 * objc-lang.c (_initialize_objc_language): Add declaration.
16976 * observable.c (_initialize_observer): Add declaration.
16977 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16978 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16979 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16980 * osabi.c (_initialize_gdb_osabi): Add declaration.
16981 * osdata.c (_initialize_osdata): Add declaration.
16982 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16983 * parse.c (_initialize_parse): Add declaration.
16984 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16985 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16986 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16987 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16988 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16989 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16990 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16991 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16992 * printcmd.c (_initialize_printcmd): Add declaration.
16993 * probe.c (_initialize_probe): Add declaration.
16994 * proc-api.c (_initialize_proc_api): Add declaration.
16995 * proc-events.c (_initialize_proc_events): Add declaration.
16996 * proc-service.c (_initialize_proc_service): Add declaration.
16997 * procfs.c (_initialize_procfs): Add declaration.
16998 * producer.c (_initialize_producer): Add declaration.
16999 * psymtab.c (_initialize_psymtab): Add declaration.
17000 * python/python.c (_initialize_python): Add declaration.
17001 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17002 * record-btrace.c (_initialize_record_btrace): Add declaration.
17003 * record-full.c (_initialize_record_full): Add declaration.
17004 * record.c (_initialize_record): Add declaration.
17005 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17006 * regcache.c (_initialize_regcache): Add declaration.
17007 * reggroups.c (_initialize_reggroup): Add declaration.
17008 * remote-notif.c (_initialize_notif): Add declaration.
17009 * remote-sim.c (_initialize_remote_sim): Add declaration.
17010 * remote.c (_initialize_remote): Add declaration.
17011 * reverse.c (_initialize_reverse): Add declaration.
17012 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17013 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17014 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17015 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17016 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17017 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17018 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17019 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17020 Add declaration.
17021 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17022 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17023 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17024 * rust-exp.y (_initialize_rust_exp): Add declaration.
17025 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17026 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17027 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17028 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17029 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17030 * score-tdep.c (_initialize_score_tdep): Add declaration.
17031 * ser-go32.c (_initialize_ser_dos): Add declaration.
17032 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17033 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17034 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17035 * ser-uds.c (_initialize_ser_socket): Add declaration.
17036 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17037 * serial.c (_initialize_serial): Add declaration.
17038 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17039 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17040 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17041 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17042 * skip.c (_initialize_step_skip): Add declaration.
17043 * sol-thread.c (_initialize_sol_thread): Add declaration.
17044 * solib-aix.c (_initialize_solib_aix): Add declaration.
17045 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17046 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17047 * solib-frv.c (_initialize_frv_solib): Add declaration.
17048 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17049 * solib-target.c (_initialize_solib_target): Add declaration.
17050 * solib.c (_initialize_solib): Add declaration.
17051 * source-cache.c (_initialize_source_cache): Add declaration.
17052 * source.c (_initialize_source): Add declaration.
17053 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17054 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17055 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17056 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17057 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17058 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17059 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17060 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17061 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17062 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17063 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17064 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17065 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17066 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17067 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17068 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17069 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17070 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17071 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17072 * stabsread.c (_initialize_stabsread): Add declaration.
17073 * stack.c (_initialize_stack): Add declaration.
17074 * stap-probe.c (_initialize_stap_probe): Add declaration.
17075 * std-regs.c (_initialize_frame_reg): Add declaration.
17076 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17077 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17078 * symfile.c (_initialize_symfile): Add declaration.
17079 * symmisc.c (_initialize_symmisc): Add declaration.
17080 * symtab.c (_initialize_symtab): Add declaration.
17081 * target.c (_initialize_target): Add declaration.
17082 * target-connection.c (_initialize_target_connection): Add
17083 declaration.
17084 * target-dcache.c (_initialize_target_dcache): Add declaration.
17085 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17086 * thread.c (_initialize_thread): Add declaration.
17087 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17088 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17089 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17090 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17091 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17092 * tracectf.c (_initialize_ctf): Add declaration.
17093 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17094 * tracefile.c (_initialize_tracefile): Add declaration.
17095 * tracepoint.c (_initialize_tracepoint): Add declaration.
17096 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17097 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17098 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17099 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17100 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17101 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17102 * tui/tui.c (_initialize_tui): Add declaration.
17103 * typeprint.c (_initialize_typeprint): Add declaration.
17104 * ui-style.c (_initialize_ui_style): Add declaration.
17105 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17106 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17107 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17108 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17109 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17110 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17111 * unittests/filtered_iterator-selftests.c
17112 (_initialize_filtered_iterator_selftests): Add declaration.
17113 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17114 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17115 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17116 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17117 * unittests/main-thread-selftests.c
17118 (_initialize_main_thread_selftests): Add declaration.
17119 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17120 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17121 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17122 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17123 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17124 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17125 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17126 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17127 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17128 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17129 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17130 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17131 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17132 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17133 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17134 declaration.
17135 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17136 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17137 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17138 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17139 * user-regs.c (_initialize_user_regs): Add declaration.
17140 * utils.c (_initialize_utils): Add declaration.
17141 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17142 * valops.c (_initialize_valops): Add declaration.
17143 * valprint.c (_initialize_valprint): Add declaration.
17144 * value.c (_initialize_values): Add declaration.
17145 * varobj.c (_initialize_varobj): Add declaration.
17146 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17147 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17148 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17149 * windows-nat.c (_initialize_windows_nat): Add declaration.
17150 (_initialize_check_for_gdb_ini): Add declaration.
17151 (_initialize_loadable): Add declaration.
17152 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17153 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17154 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17155 * xcoffread.c (_initialize_xcoffread): Add declaration.
17156 * xml-support.c (_initialize_xml_support): Add declaration.
17157 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17158 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17159 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17160 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17161
17162 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17163
17164 * regformats/regdat.sh: Generate declaration for init function.
17165
17166 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17167
17168 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17169 up.
17170 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17171 close_one_inferior>: New methods.
17172 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17173 pass down target to find_inferior_pid.
17174 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17175 Pass down target to find_inferior_ptid.
17176 (gdbsim_target::create_inferior): Pass down target to
17177 add_thread_silent.
17178 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17179 target down to find_inferior_ptid and switch_to_thread.
17180 (gdbsim_target::close): Update to call close_one_inferior.
17181 (struct resume_data): Remove.
17182 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17183 directly, rather than through a void pointer.
17184 (gdbsim_target::resume): Update to call resume_one_inferior.
17185
17186 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17187
17188 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17189
17190 2020-01-12 Pedro Alves <palves@redhat.com>
17191
17192 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17193 directly for the current inferior instead of
17194 discard_all_inferiors.
17195 (discard_all_inferiors): Delete.
17196
17197 2020-01-11 Tom Tromey <tom@tromey.com>
17198
17199 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17200 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17201 deprecated_safe_get_selected_frame.
17202
17203 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17204
17205 * inferior.c (print_inferior): Switch inferior before printing it.
17206
17207 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17208 Pedro Alves <palves@redhat.com>
17209
17210 * progspace-and-thread.c (switch_to_program_space_and_thread):
17211 Assert there's an inferior for PSPACE. Use
17212 switch_to_inferior_no_thread to switch the inferior too.
17213 * progspace.c (program_space::~program_space): Call
17214 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17215 (program_space::free_all_objfiles): Don't call clear_symtab_users
17216 here.
17217 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17218
17219 2020-01-10 Pedro Alves <palves@redhat.com>
17220
17221 * NEWS: Mention multi-target debugging, "info connections", and
17222 "add-inferior -no-connection".
17223
17224 2020-01-10 Pedro Alves <palves@redhat.com>
17225
17226 * infrun.c: Include "target-connection.h".
17227 (check_multi_target_resumption): New.
17228 (proceed): Call it.
17229 * target-connection.c (make_target_connection_string): Make
17230 extern.
17231 * target-connection.h (make_target_connection_string): Declare.
17232
17233 2020-01-10 Pedro Alves <palves@redhat.com>
17234
17235 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17236 * inferior.c (uiout_field_connection): New function.
17237 (print_inferior): Add new "connection-id" column.
17238 (add_inferior_command): Show connection number/string of added
17239 inferior.
17240 * process-stratum-target.h
17241 (process_stratum_target::connection_string): New virtual method.
17242 (process_stratum_target::connection_number): New field.
17243 * remote.c (remote_target::connection_string): New override.
17244 * target-connection.c: New file.
17245 * target-connection.h: New file.
17246 * target.c (decref_target): Remove process_stratum targets from
17247 the connection list.
17248 (target_stack::push): Add process_stratum targets to the
17249 connection list.
17250
17251 2020-01-10 Pedro Alves <palves@redhat.com>
17252
17253 Revert:
17254 2016-04-12 Pedro Alves <palves@redhat.com>
17255 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17256 Remove references to name.
17257 * serial.h (struct serial) <name>: Delete.
17258
17259 2020-01-10 Pedro Alves <palves@redhat.com>
17260
17261 * gdbarch-selftests.c (register_to_value_test): Remove "target
17262 already pushed" check.
17263
17264 2020-01-10 Pedro Alves <palves@redhat.com>
17265 John Baldwin <jhb@FreeBSD.org>
17266
17267 * aarch64-linux-nat.c
17268 (aarch64_linux_nat_target::thread_architecture): Adjust.
17269 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17270 (task_command_1): Likewise.
17271 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17272 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17273 (aix_thread_target::store_registers)
17274 (aix_thread_target::thread_alive): Adjust.
17275 * amd64-fbsd-tdep.c: Include "inferior.h".
17276 (amd64fbsd_get_thread_local_address): Pass down target.
17277 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17278 thread's gdbarch instead of target_gdbarch.
17279 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17280 get_last_target_status.
17281 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17282 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17283 inferiors.
17284 (update_inserted_breakpoint_locations): Skip if inferiors with no
17285 execution.
17286 (update_global_location_list): When handling moribund locations,
17287 find representative inferior for location's pspace, and use thread
17288 count of its process_stratum target.
17289 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17290 * bsd-uthread.c (bsd_uthread_target::wait): Use
17291 as_process_stratum_target and adjust thread_change_ptid and
17292 add_thread calls.
17293 (bsd_uthread_target::update_thread_list): Use
17294 as_process_stratum_target and adjust find_thread_ptid,
17295 thread_change_ptid and add_thread calls.
17296 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17297 find_thread_ptid call.
17298 * corelow.c (add_to_thread_list): Adjust add_thread call.
17299 (core_target_open): Adjust add_thread_silent and thread_count
17300 calls.
17301 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17302 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17303 * event-top.c (async_disconnect): Pop targets from all inferiors.
17304 * exec.c (add_target_sections): Push exec target on all inferiors
17305 sharing the program space.
17306 (remove_target_sections): Remove the exec target from all
17307 inferiors sharing the program space.
17308 (exec_on_vfork): New.
17309 * exec.h (exec_on_vfork): Declare.
17310 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17311 Pass it down.
17312 (fbsd_nat_target::update_thread_list): Adjust.
17313 (fbsd_nat_target::resume): Adjust.
17314 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17315 down.
17316 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17317 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17318 get_thread_arch_regcache call.
17319 * fork-child.c (gdb_startup_inferior): Pass target down to
17320 startup_inferior and set_executing.
17321 * gdbthread.h (struct process_stratum_target): Forward declare.
17322 (add_thread, add_thread_silent, add_thread_with_info)
17323 (in_thread_list): Add process_stratum_target parameter.
17324 (find_thread_ptid(inferior*, ptid_t)): New overload.
17325 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17326 parameter.
17327 (all_threads()): Delete overload.
17328 (all_threads, all_non_exited_threads): Add process_stratum_target
17329 parameter.
17330 (all_threads_safe): Use brace initialization.
17331 (thread_count): Add process_stratum_target parameter.
17332 (set_resumed, set_running, set_stop_requested, set_executing)
17333 (threads_are_executing, finish_thread_state): Add
17334 process_stratum_target parameter.
17335 (switch_to_thread): Use is_current_thread.
17336 * i386-fbsd-tdep.c: Include "inferior.h".
17337 (i386fbsd_get_thread_local_address): Pass down target.
17338 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17339 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17340 have_inferiors check.
17341 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17342 (inf_ptrace_target::attach): Adjust.
17343 * infcall.c (run_inferior_call): Adjust.
17344 * infcmd.c (run_command_1): Pass target to
17345 scoped_finish_thread_state.
17346 (proceed_thread_callback): Skip inferiors with no execution.
17347 (continue_command): Rename 'all_threads' local to avoid hiding
17348 'all_threads' function. Adjust get_last_target_status call.
17349 (prepare_one_step): Adjust set_running call.
17350 (signal_command): Use user_visible_resume_target. Compare thread
17351 pointers instead of inferior_ptid.
17352 (info_program_command): Adjust to pass down target.
17353 (attach_command): Mark target's 'thread_executing' flag.
17354 (stop_current_target_threads_ns): New, factored out from ...
17355 (interrupt_target_1): ... this. Switch inferior before making
17356 target calls.
17357 * inferior-iter.h
17358 (struct all_inferiors_iterator, struct all_inferiors_range)
17359 (struct all_inferiors_safe_range)
17360 (struct all_non_exited_inferiors_range): Filter on
17361 process_stratum_target too. Remove explicit.
17362 * inferior.c (inferior::inferior): Push dummy target on target
17363 stack.
17364 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17365 Add process_stratum_target parameter, and pass it down.
17366 (have_live_inferiors): Adjust.
17367 (switch_to_inferior_and_push_target): New.
17368 (add_inferior_command, clone_inferior_command): Handle
17369 "-no-connection" parameter. Use
17370 switch_to_inferior_and_push_target.
17371 (_initialize_inferior): Mention "-no-connection" option in
17372 the help of "add-inferior" and "clone-inferior" commands.
17373 * inferior.h: Include "process-stratum-target.h".
17374 (interrupt_target_1): Use bool.
17375 (struct inferior) <push_target, unpush_target, target_is_pushed,
17376 find_target_beneath, top_target, process_target, target_at,
17377 m_stack>: New.
17378 (discard_all_inferiors): Delete.
17379 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17380 (all_inferiors, all_non_exited_inferiors): Add
17381 process_stratum_target parameter.
17382 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17383 (target_last_proc_target): New global.
17384 (follow_fork_inferior): Push target on new inferior. Pass target
17385 to add_thread_silent. Call exec_on_vfork. Handle target's
17386 reference count.
17387 (follow_fork): Adjust get_last_target_status call. Also consider
17388 target.
17389 (follow_exec): Push target on new inferior.
17390 (struct execution_control_state) <target>: New field.
17391 (user_visible_resume_target): New.
17392 (do_target_resume): Call target_async.
17393 (resume_1): Set target's threads_executing flag. Consider resume
17394 target.
17395 (commit_resume_all_targets): New.
17396 (proceed): Also consider resume target. Skip threads of inferiors
17397 with no execution. Commit resumtion in all targets.
17398 (start_remote): Pass current inferior to wait_for_inferior.
17399 (infrun_thread_stop_requested): Consider target as well. Pass
17400 thread_info pointer to clear_inline_frame_state instead of ptid.
17401 (infrun_thread_thread_exit): Consider target as well.
17402 (random_pending_event_thread): New inferior parameter. Use it.
17403 (do_target_wait): Rename to ...
17404 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17405 down.
17406 (threads_are_resumed_pending_p, do_target_wait): New.
17407 (prepare_for_detach): Adjust calls.
17408 (wait_for_inferior): New inferior parameter. Handle it. Use
17409 do_target_wait_1 instead of do_target_wait.
17410 (fetch_inferior_event): Adjust. Switch to representative
17411 inferior. Pass target down.
17412 (set_last_target_status): Add process_stratum_target parameter.
17413 Save target in global.
17414 (get_last_target_status): Add process_stratum_target parameter and
17415 handle it.
17416 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17417 (context_switch): Check inferior_ptid == null_ptid before calling
17418 inferior_thread().
17419 (get_inferior_stop_soon): Pass down target.
17420 (wait_one): Rename to ...
17421 (poll_one_curr_target): ... this.
17422 (struct wait_one_event): New.
17423 (wait_one): New.
17424 (stop_all_threads): Adjust.
17425 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17426 event's target.
17427 (switch_back_to_stepped_thread): Also consider target.
17428 (print_stop_event): Update.
17429 (normal_stop): Update. Also consider the resume target.
17430 * infrun.h (wait_for_inferior): Remove declaration.
17431 (user_visible_resume_target): New declaration.
17432 (get_last_target_status, set_last_target_status): New
17433 process_stratum_target parameter.
17434 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17435 process_stratum_target parameter, and use it.
17436 (clear_inline_frame_state (thread_info*)): New.
17437 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17438 process_stratum_target parameter.
17439 (clear_inline_frame_state (thread_info*)): Declare.
17440 * linux-fork.c (delete_checkpoint_command): Pass target down to
17441 find_thread_ptid.
17442 (checkpoint_command): Adjust.
17443 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17444 instead of just tweaking inferior_ptid.
17445 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17446 (exit_lwp): Pass target down to find_thread_ptid.
17447 (attach_proc_task_lwp_callback): Pass target down to
17448 add_thread/set_running/set_executing.
17449 (linux_nat_target::attach): Pass target down to
17450 thread_change_ptid.
17451 (get_detach_signal): Pass target down to find_thread_ptid.
17452 Consider last target status's target.
17453 (linux_resume_one_lwp_throw, resume_lwp)
17454 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17455 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17456 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17457 (linux_nat_target::async_wait_fd): New.
17458 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17459 target down.
17460 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17461 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17462 * linux-thread-db.c (struct thread_db_info::process_target): New
17463 field.
17464 (add_thread_db_info): Save target.
17465 (get_thread_db_info): New process_stratum_target parameter. Also
17466 match target.
17467 (delete_thread_db_info): New process_stratum_target parameter.
17468 Also match target.
17469 (thread_from_lwp): Adjust to pass down target.
17470 (thread_db_notice_clone): Pass down target.
17471 (check_thread_db_callback): Pass down target.
17472 (try_thread_db_load_1): Always push the thread_db target.
17473 (try_thread_db_load, record_thread): Pass target down.
17474 (thread_db_target::detach): Pass target down. Always unpush the
17475 thread_db target.
17476 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17477 target down. Always unpush the thread_db target.
17478 (find_new_threads_callback, thread_db_find_new_threads_2)
17479 (thread_db_target::update_thread_list): Pass target down.
17480 (thread_db_target::pid_to_str): Pass current inferior down.
17481 (thread_db_target::get_thread_local_address): Pass target down.
17482 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17483 target down.
17484 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17485 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17486 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17487 (procfs_init_inferior): Rename to ...
17488 (procfs_target::procfs_init_inferior): ... this and adjust.
17489 (procfs_target::create_inferior, procfs_notice_thread)
17490 (procfs_do_thread_registers): Adjust.
17491 * ppc-fbsd-tdep.c: Include "inferior.h".
17492 (ppcfbsd_get_thread_local_address): Pass down target.
17493 * proc-service.c (ps_xfer_memory): Switch current inferior and
17494 program space as well.
17495 (get_ps_regcache): Pass target down.
17496 * process-stratum-target.c
17497 (process_stratum_target::thread_address_space)
17498 (process_stratum_target::thread_architecture): Pass target down.
17499 * process-stratum-target.h
17500 (process_stratum_target::threads_executing): New field.
17501 (as_process_stratum_target): New.
17502 * ravenscar-thread.c
17503 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17504 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17505 down.
17506 * record-btrace.c (record_btrace_target::info_record): Adjust.
17507 (record_btrace_target::record_method)
17508 (record_btrace_target::record_is_replaying)
17509 (record_btrace_target::fetch_registers)
17510 (get_thread_current_frame_id, record_btrace_target::resume)
17511 (record_btrace_target::wait, record_btrace_target::stop): Pass
17512 target down.
17513 * record-full.c (record_full_wait_1): Switch to event thread.
17514 Pass target down.
17515 * regcache.c (regcache::regcache)
17516 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17517 process_stratum_target parameter and handle it.
17518 (current_thread_target): New global.
17519 (get_thread_regcache): Add process_stratum_target parameter and
17520 handle it. Switch inferior before calling target method.
17521 (get_thread_regcache): Pass target down.
17522 (get_thread_regcache_for_ptid): Pass target down.
17523 (registers_changed_ptid): Add process_stratum_target parameter and
17524 handle it.
17525 (registers_changed_thread, registers_changed): Pass target down.
17526 (test_get_thread_arch_aspace_regcache): New.
17527 (current_regcache_test): Define a couple local test_target_ops
17528 instances and use them for testing.
17529 (readwrite_regcache): Pass process_stratum_target parameter.
17530 (cooked_read_test, cooked_write_test): Pass mock_target down.
17531 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17532 (get_thread_arch_aspace_regcache): Add process_stratum_target
17533 parameter.
17534 (regcache::target): New method.
17535 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17536 (regcache::registers_changed_ptid): Add process_stratum_target
17537 parameter.
17538 (regcache::m_target): New field.
17539 (registers_changed_ptid): Add process_stratum_target parameter.
17540 * remote.c (remote_state::supports_vCont_probed): New field.
17541 (remote_target::async_wait_fd): New method.
17542 (remote_unpush_and_throw): Add remote_target parameter.
17543 (get_current_remote_target): Adjust.
17544 (remote_target::remote_add_inferior): Push target.
17545 (remote_target::remote_add_thread)
17546 (remote_target::remote_notice_new_inferior)
17547 (get_remote_thread_info): Pass target down.
17548 (remote_target::update_thread_list): Skip threads of inferiors
17549 bound to other targets. (remote_target::close): Don't discard
17550 inferiors. (remote_target::add_current_inferior_and_thread)
17551 (remote_target::process_initial_stop_replies)
17552 (remote_target::start_remote)
17553 (remote_target::remote_serial_quit_handler): Pass down target.
17554 (remote_target::remote_unpush_target): New remote_target
17555 parameter. Unpush the target from all inferiors.
17556 (remote_target::remote_unpush_and_throw): New remote_target
17557 parameter. Pass it down.
17558 (remote_target::open_1): Check whether the current inferior has
17559 execution instead of checking whether any inferior is live. Pass
17560 target down.
17561 (remote_target::remote_detach_1): Pass down target. Use
17562 remote_unpush_target.
17563 (extended_remote_target::attach): Pass down target.
17564 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17565 (remote_target::append_resumption): Pass down target.
17566 (remote_target::append_pending_thread_resumptions)
17567 (remote_target::remote_resume_with_hc, remote_target::resume)
17568 (remote_target::commit_resume): Pass down target.
17569 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17570 (remote_target::interrupt_query)
17571 (remote_target::remove_new_fork_children)
17572 (remote_target::check_pending_events_prevent_wildcard_vcont)
17573 (remote_target::remote_parse_stop_reply)
17574 (remote_target::process_stop_reply): Pass down target.
17575 (first_remote_resumed_thread): New remote_target parameter. Pass
17576 it down.
17577 (remote_target::wait_as): Pass down target.
17578 (unpush_and_perror): New remote_target parameter. Pass it down.
17579 (remote_target::readchar, remote_target::remote_serial_write)
17580 (remote_target::getpkt_or_notif_sane_1)
17581 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17582 down target.
17583 (remote_target::mourn_inferior): Pass down target. Use
17584 remote_unpush_target.
17585 (remote_target::core_of_thread)
17586 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17587 (remote_target::pid_to_exec_file)
17588 (remote_target::thread_handle_to_thread_info): Pass down target.
17589 (remote_target::async_wait_fd): New.
17590 * riscv-fbsd-tdep.c: Include "inferior.h".
17591 (riscv_fbsd_get_thread_local_address): Pass down target.
17592 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17593 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17594 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17595 Adjust.
17596 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17597 * solib-svr4.c (enable_break): Pass down target.
17598 * spu-multiarch.c (parse_spufs_run): Pass down target.
17599 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17600 * target-delegates.c: Regenerate.
17601 * target.c (g_target_stack): Delete.
17602 (current_top_target): Return the current inferior's top target.
17603 (target_has_execution_1): Refer to the passed-in inferior's top
17604 target.
17605 (target_supports_terminal_ours): Check whether the initial
17606 inferior was already created.
17607 (decref_target): New.
17608 (target_stack::push): Incref/decref the target.
17609 (push_target, push_target, unpush_target): Adjust.
17610 (target_stack::unpush): Defref target.
17611 (target_is_pushed): Return bool. Adjust to refer to the current
17612 inferior's target stack.
17613 (dispose_inferior): Delete, and inline parts ...
17614 (target_preopen): ... here. Only dispose of the current inferior.
17615 (target_detach): Hold strong target reference while detaching.
17616 Pass target down.
17617 (target_thread_name): Add assertion.
17618 (target_resume): Pass down target.
17619 (target_ops::beneath, find_target_at): Adjust to refer to the
17620 current inferior's target stack.
17621 (get_dummy_target): New.
17622 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17623 has a thread running.
17624 (initialize_targets): Rename to ...
17625 (_initialize_target): ... this.
17626 * target.h: Include "gdbsupport/refcounted-object.h".
17627 (struct target_ops): Inherit refcounted_object.
17628 (target_ops::shortname, target_ops::longname): Make const.
17629 (target_ops::async_wait_fd): New method.
17630 (decref_target): Declare.
17631 (struct target_ops_ref_policy): New.
17632 (target_ops_ref): New typedef.
17633 (get_dummy_target): Declare function.
17634 (target_is_pushed): Return bool.
17635 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17636 (all_matching_threads_iterator::all_matching_threads_iterator):
17637 Handle filter target.
17638 * thread-iter.h (struct all_matching_threads_iterator, struct
17639 all_matching_threads_range, class all_non_exited_threads_range):
17640 Filter by target too. Remove explicit.
17641 * thread.c (threads_executing): Delete.
17642 (inferior_thread): Pass down current inferior.
17643 (clear_thread_inferior_resources): Pass down thread pointer
17644 instead of ptid_t.
17645 (add_thread_silent, add_thread_with_info, add_thread): Add
17646 process_stratum_target parameter. Use it for thread and inferior
17647 searches.
17648 (is_current_thread): New.
17649 (thread_info::deletable): Use it.
17650 (find_thread_ptid, thread_count, in_thread_list)
17651 (thread_change_ptid, set_resumed, set_running): New
17652 process_stratum_target parameter. Pass it down.
17653 (set_executing): New process_stratum_target parameter. Pass it
17654 down. Adjust reference to 'threads_executing'.
17655 (threads_are_executing): New process_stratum_target parameter.
17656 Adjust reference to 'threads_executing'.
17657 (set_stop_requested, finish_thread_state): New
17658 process_stratum_target parameter. Pass it down.
17659 (switch_to_thread): Also match inferior.
17660 (switch_to_thread): New process_stratum_target parameter. Pass it
17661 down.
17662 (update_threads_executing): Reimplement.
17663 * top.c (quit_force): Pop targets from all inferior.
17664 (gdb_init): Don't call initialize_targets.
17665 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17666 Declare.
17667 (windows_add_thread, windows_delete_thread): Adjust.
17668 (get_windows_debug_event): Rename to ...
17669 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17670 * tracefile-tfile.c (tfile_target_open): Pass down target.
17671 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17672 Forward declare.
17673 (switch_to_thread): Add process_stratum_target parameter.
17674 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17675 parameter. Use it.
17676 (mi_on_resume): Pass target down.
17677 * nat/fork-inferior.c (startup_inferior): Add
17678 process_stratum_target parameter. Pass it down.
17679 * nat/fork-inferior.h (startup_inferior): Add
17680 process_stratum_target parameter.
17681 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17682
17683 2020-01-10 Pedro Alves <palves@redhat.com>
17684
17685 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17686 directly. Instead find the first thread in the thread list and
17687 use switch_to_thread.
17688
17689 2020-01-10 Pedro Alves <palves@redhat.com>
17690
17691 * remote.c (remote_target::remote_add_inferior): Don't bind a
17692 process to the current inferior if the current inferior is already
17693 bound to a process.
17694
17695 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17696 Pedro Alves <palves@redhat.com>
17697
17698 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17699 If no process is specified, return null_ptid instead of
17700 inferior_ptid.
17701 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17702 TARGET_WAITKIND_SIGNALLED with no pid.
17703
17704 2020-01-10 Pedro Alves <palves@redhat.com>
17705
17706 * remote.c (first_remote_resumed_thread): New.
17707 (remote_target::wait_as): Use it as default event_ptid instead of
17708 inferior_ptid.
17709
17710 2020-01-10 Pedro Alves <palves@redhat.com>
17711
17712 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17713
17714 2020-01-10 Pedro Alves <palves@redhat.com>
17715
17716 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17717 not -1.
17718
17719 2020-01-10 Pedro Alves <palves@redhat.com>
17720
17721 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17722 ptid to get_last_target_status.
17723 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17724 ptid to get_last_target_status.
17725 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17726 get_last_target_status.
17727 (info_program_command): Don't pass a target_waitstatus to
17728 get_last_target_status.
17729 * infrun.c (init_wait_for_inferior): Use
17730 nullify_last_target_wait_ptid.
17731 (get_last_target_status): Handle nullptr arguments.
17732 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17733 (print_stop_event): Don't pass a ptid to get_last_target_status.
17734 (normal_stop): Don't pass a ptid to get_last_target_status.
17735 * infrun.h (get_last_target_status, set_last_target_status): Move
17736 comments here and update.
17737 (nullify_last_target_wait_ptid): Declare.
17738 * linux-fork.c (fork_load_infrun_state): Remove local extern
17739 declaration of nullify_last_target_wait_ptid.
17740 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17741 to get_last_target_status.
17742
17743 2020-01-10 Pedro Alves <palves@redhat.com>
17744
17745 * gdbthread.h (scoped_restore_current_thread)
17746 <dont_restore, restore, m_dont_restore>: Declare.
17747 * thread.c (thread_alive): Add assertion. Return bool.
17748 (switch_to_thread_if_alive): New.
17749 (prune_threads): Switch inferior/thread.
17750 (print_thread_info_1): Switch thread before calling target methods.
17751 (scoped_restore_current_thread::restore): New, factored out from
17752 ...
17753 (scoped_restore_current_thread::~scoped_restore_current_thread):
17754 ... this.
17755 (scoped_restore_current_thread::scoped_restore_current_thread):
17756 Add assertion.
17757 (thread_apply_all_command, thread_select): Use
17758 switch_to_thread_if_alive.
17759 * infrun.c (proceed, restart_threads, handle_signal_stop)
17760 (switch_back_to_stepped_thread): Switch current thread before
17761 calling target methods.
17762
17763 2020-01-10 Pedro Alves <palves@redhat.com>
17764
17765 * inferior.c (switch_to_inferior_no_thread): New function,
17766 factored out from ...
17767 (inferior_command): ... here.
17768 * inferior.h (switch_to_inferior_no_thread): Declare.
17769 * mi/mi-main.c (run_one_inferior): Use
17770 switch_to_inferior_no_thread.
17771
17772 2020-01-10 Pedro Alves <palves@redhat.com>
17773
17774 * infcmd.c (kill_command): Remove dead code.
17775
17776 2020-01-10 Pedro Alves <palves@redhat.com>
17777
17778 * remote.c (remote_target::mourn_inferior): No longer check
17779 whether the target is running.
17780
17781 2020-01-10 Pedro Alves <palves@redhat.com>
17782
17783 * corelow.c (core_target::has_execution): Change parameter type to
17784 inferior pointer.
17785 * inferior.c (number_of_live_inferiors): Use
17786 inferior::has_execution instead of target_has_execution_1.
17787 * inferior.h (inferior::has_execution): New.
17788 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17789 inferior::has_execution instead of target_has_execution_1.
17790 * process-stratum-target.c
17791 (process_stratum_target::has_execution): Change parameter type to
17792 inferior pointer. Check the inferior's PID instead of
17793 inferior_ptid.
17794 * process-stratum-target.h
17795 (process_stratum_target::has_execution): Change parameter type to
17796 inferior pointer.
17797 * record-full.c (record_full_core_target::has_execution): Change
17798 parameter type to inferior pointer.
17799 * target.c (target_has_execution_1): Change parameter type to
17800 inferior pointer.
17801 (target_has_execution_current): Adjust.
17802 * target.h (target_ops::has_execution): Change parameter type to
17803 inferior pointer.
17804 (target_has_execution_1): Change parameter type to inferior
17805 pointer. Change return type to bool.
17806 * tracefile.h (tracefile_target::has_execution): Change parameter
17807 type to inferior pointer.
17808
17809 2020-01-10 Pedro Alves <palves@redhat.com>
17810
17811 * exceptions.c (print_flush): Remove current_top_target() check.
17812
17813 2020-01-10 Pedro Alves <palves@redhat.com>
17814
17815 * remote.c (show_remote_exec_file): Show the current inferior's
17816 exec-file instead of the command variable's value.
17817
17818 2020-01-10 Pedro Alves <palves@redhat.com>
17819
17820 * record-full.c (record_full_resume_ptid): New global.
17821 (record_full_target::resume): Set it.
17822 (record_full_wait_1): Use record_full_resume_ptid instead of
17823 inferior_ptid.
17824
17825 2020-01-10 Pedro Alves <palves@redhat.com>
17826
17827 * gdbthread.h (scoped_restore_current_thread)
17828 <dont_restore, restore, m_dont_restore>: Declare.
17829 * thread.c (thread_alive): Add assertion. Return bool.
17830 (switch_to_thread_if_alive): New.
17831 (prune_threads): Switch inferior/thread.
17832 (print_thread_info_1): Switch thread before calling target methods.
17833 (scoped_restore_current_thread::restore): New, factored out from
17834 ...
17835 (scoped_restore_current_thread::~scoped_restore_current_thread):
17836 ... this.
17837 (scoped_restore_current_thread::scoped_restore_current_thread):
17838 Add assertion.
17839 (thread_apply_all_command, thread_select): Use
17840 switch_to_thread_if_alive.
17841
17842 2020-01-10 George Barrett <bob@bob131.so>
17843
17844 * stap-probe.c (stap_modify_semaphore): Don't check for null
17845 semaphores.
17846 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17847 for null semaphores.
17848
17849 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17850
17851 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17852 all source windows, and maintain horizontal scroll status while
17853 doing so.
17854
17855 2020-01-09 Tom Tromey <tom@tromey.com>
17856
17857 PR tui/18932:
17858 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17859 update_source_window, not print_source_lines.
17860
17861 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17862
17863 * tui/tui.c (tui_enable): Register tui hooks after calling
17864 tui_display_main.
17865
17866 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17867
17868 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17869
17870 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17871
17872 * thread.c (print_thread_info_1): Fix indentation.
17873
17874 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17875
17876 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17877 unique_xmalloc_ptr outside the if to always free the demangled name.
17878
17879 2020-01-08 Tom Tromey <tromey@adacore.com>
17880
17881 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17882 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17883 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17884 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17885 Remove.
17886 (section_offsets): New typedef.
17887 * symtab.c (fixup_section, get_msymbol_address): Update.
17888 * symmisc.c (dump_msymbols): Update.
17889 * symfile.h (relative_addr_info_to_section_offsets)
17890 (symfile_map_offsets_to_segments): Update.
17891 * symfile.c (build_section_addr_info_from_objfile)
17892 (init_objfile_sect_indices): Update.
17893 (struct place_section_arg): Change type of "offsets".
17894 (place_section): Update.
17895 (relative_addr_info_to_section_offsets): Change type of
17896 "section_offsets". Remove "num_sections" parameter.
17897 (default_symfile_offsets, syms_from_objfile_1)
17898 (set_objfile_default_section_offset): Update.
17899 (reread_symbols): No need to preserve section offsets by hand.
17900 (symfile_map_offsets_to_segments): Change type of "offsets".
17901 * stap-probe.c (relocate_address): Update.
17902 * stabsread.h (process_one_symbol): Update.
17903 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17904 (solib_target_relocate_section_addresses): Update.
17905 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17906 Update.
17907 * solib-frv.c (frv_relocate_main_executable): Update.
17908 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17909 * solib-aix.c (solib_aix_get_section_offsets): Change return
17910 type.
17911 (solib_aix_solib_create_inferior_hook): Update.
17912 * remote.c (remote_target::get_offsets): Update.
17913 * psymtab.c (find_pc_sect_psymtab): Update.
17914 * psympriv.h (struct partial_symbol) <address, text_low,
17915 text_high>: Update.
17916 * objfiles.h (obj_section_offset): Update.
17917 (struct objfile) <section_offsets>: Change type.
17918 <num_sections>: Remove.
17919 (objfile_relocate): Update.
17920 * objfiles.c (entry_point_address_query): Update
17921 (relocate_one_symbol): Change type of "section_offsets".
17922 (objfile_relocate1, objfile_relocate1): Change type of
17923 "new_offsets".
17924 (objfile_rebase1): Update.
17925 * mipsread.c (mipscoff_symfile_read): Update.
17926 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17927 parameter.
17928 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17929 (parse_external, psymtab_to_symtab_1): Update.
17930 * machoread.c (macho_symfile_offsets): Update.
17931 * ia64-tdep.c (ia64_find_unwind_table): Update.
17932 * hppa-tdep.c (read_unwind_info): Update.
17933 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17934 * dwarf2read.c (create_addrmap_from_index)
17935 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17936 (process_psymtab_comp_unit_reader, add_partial_symbol)
17937 (add_partial_subprogram, process_full_comp_unit)
17938 (read_file_scope, read_func_scope, read_lexical_block_scope)
17939 (read_call_site_scope, dwarf2_rnglists_process)
17940 (dwarf2_ranges_process, dwarf2_ranges_read)
17941 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17942 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17943 Update.
17944 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17945 Update.
17946 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17947 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17948 (process_one_symbol): Change type of "section_offsets".
17949 * ctfread.c (get_objfile_text_range): Update.
17950 * coffread.c (coff_symtab_read, enter_linenos)
17951 (process_coff_symbol): Update.
17952 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17953 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17954
17955 2020-01-08 Tom Tromey <tromey@adacore.com>
17956
17957 * dwarf2read.c (parse_macro_definition): Use std::string.
17958 (parse_macro_definition): Likewise.
17959
17960 2020-01-08 Tom Tromey <tromey@adacore.com>
17961
17962 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17963 (ATTR_ALLOC_CHUNK): Remove.
17964
17965 2020-01-08 Tom Tromey <tromey@adacore.com>
17966
17967 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17968
17969 2020-01-08 Tom Tromey <tromey@adacore.com>
17970
17971 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17972 (dwarf2_compute_name, open_dwo_file): Likewise.
17973 (process_enumeration_scope): Use std::vector.
17974 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17975 (partial_die_info::fixup, dwarf2_start_subfile)
17976 (guess_full_die_structure_name, dwarf2_name): Likewise.
17977 (determine_prefix): Update.
17978 (guess_full_die_structure_name): Make return type const.
17979 (partial_die_full_name): Return unique_xmalloc_ptr.
17980 (DW_FIELD_ALLOC_CHUNK): Remove.
17981
17982 2020-01-07 Tom Tromey <tromey@adacore.com>
17983
17984 PR build/24937:
17985 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17986
17987 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17988
17989 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17990
17991 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17992
17993 * stack.c (print_frame_info): Move disassemble_next_line code
17994 inside source_print block.
17995
17996 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17997
17998 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17999 gdb/signals.h, as we are now using native signal symbols.
18000
18001 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18002
18003 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18004 overflow by an early check of content vs threshold.
18005 * tui/tui-source.c (tui_source_window::line_is_displayed):
18006 Likewise.
18007
18008 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18009
18010 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18011
18012 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18013
18014 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18015 export table if no section contains it's RVA.
18016
18017 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18018
18019 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18020
18021 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18022
18023 * source.c (print_source_lines_base): Set last_line_listed.
18024
18025 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18026
18027 * tui/tui-disasm.c: Remove trailing spaces.
18028
18029 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18030 Pedro Alves <palves@redhat.com>
18031
18032 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18033 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18034 (windows_gdb_signal_to_target): New function, uses the above
18035 enumeration to convert GDB internal signal codes to equivalent
18036 Windows codes.
18037 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18038 * windows-nat.c: Include "gdb_wait.h".
18039 (get_windows_debug_event): Extract the fatal exception from the
18040 exit status and convert to the equivalent Posix signal number.
18041 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18042 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18043 * gdbsupport/gdb_wait.c: New file, implements
18044 windows_status_to_termsig.
18045 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18046 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18047
18048 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18049
18050 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18051 show_layout.
18052
18053 2020-01-05 Luis Machado <luis.machado@linaro.org>
18054
18055 * aarch64-linux-nat.c
18056 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18057 and bfd_mach_aarch64.
18058
18059 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18060
18061 * ui-file.c (stdio_file::can_emit_style_escape)
18062 (tee_file::can_emit_style_escape): Ensure style is used also on
18063 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18064 to gdb_stdout.
18065 * main.c (set_gdb_data_directory): Use file style to output the
18066 warning that the given pathname is not a directory.
18067 * top.c (show_history_filename, gdb_safe_append_history)
18068 (show_gdb_datadir): Use file style.
18069
18070 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18071
18072 * solib-target.c (struct lm_info_target):
18073 Change offsets to be a unique_xmalloc_ptr.
18074 (solib_target_relocate_section_addresses): Update.
18075
18076 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18077
18078 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18079
18080 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18081
18082 * MAINTAINERS (Write After Approval): Add myself.
18083
18084 2020-01-02 Luis Machado <luis.machado@linaro.org>
18085
18086 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18087 Cell BE architecture.
18088 * target.h (struct target_ops) <thread_architecture>: Likewise.
18089
18090 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18091
18092 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18093
18094 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18095
18096 * MAINTAINERS (Write After Approval): Add myself.
18097
18098 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18099
18100 * gdbarch.sh: Update copyright year range of generated files.
18101
18102 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18103
18104 Update copyright year range in all GDB files.
18105
18106 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18107
18108 * copyright.py: Convert to Python 3.
18109
18110 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18111
18112 * copyright.py: Adapt after move of gnulib directory from gdb
18113 directory to toplevel directory.
18114
18115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18116
18117 * copyright.py (main): Exit if run from the wrong directory.
18118
18119 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18120
18121 * top.c (print_gdb_version): Change copyright year to 2020.
18122
18123 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18124
18125 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18126
18127 For older changes see ChangeLog-2019.
18128 \f
18129 Local Variables:
18130 mode: change-log
18131 left-margin: 8
18132 fill-column: 74
18133 version-control: never
18134 coding: utf-8
18135 End:
This page took 0.941286 seconds and 5 git commands to generate.