]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[AArch64] SVE/FPSIMD fixup for big endian
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6afcd2d4
LM
12020-12-10 Luis Machado <luis.machado@linaro.org>
2
3 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
4 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
5 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
6 * arch/aarch64.h: ... here.
7 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
8 (aarch64_maybe_swab128): New function.
9 (aarch64_sve_regs_copy_to_reg_buf)
10 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
11 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
12 the data field.
13 (TF_REG_VALUE_BYTES): New enum value.
14 (trad_frame_value_bytes_p): New function.
15 (trad_frame_set_value_bytes): New function.
16 (trad_frame_set_reg_value_bytes): New function.
17 (trad_frame_get_prev_register): Handle register values saved as bytes.
18 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
19 (struct trad_frame_saved_reg) <data>: New field.
20 (trad_frame_set_value_bytes): New prototype.
21 (trad_frame_value_bytes_p): New prototype.
22
15cc148f
MS
232020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
24
25 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
26 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
27 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
28
12932e2c
TT
292020-12-09 Tom Tromey <tromey@adacore.com>
30
31 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
32
5cde1d82
TT
332020-12-09 Tom Tromey <tromey@adacore.com>
34
35 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
36 and "denominator" to gdb_mpz. Handle block forms.
37 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
38 "denominator" to gdb_mpz.
39 (finish_fixed_point_type): Update.
40 (has_zero_over_zero_small_attribute): Update.
41
d9c3a9c0
TT
422020-12-09 Tom Tromey <tromey@adacore.com>
43
44 * expprint.c (op_name): Update.
45 * expression.h (enum exp_opcode): Update.
46 * std-operator.def: Add more opcodes.
47 * ada-operator.def, fortran-operator.def: Remove, moving contents
48 into std-operator.def.
49
6ad368b8
SM
502020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
53 Return {} instead of false.
54 (get_discrete_bounds): Compute high bound only if low bound is
55 valid.
56
5b56203a
SM
572020-12-09 Simon Marchi <simon.marchi@efficios.com>
58
59 PR 26875, PR 26901
60 * gdbtypes.c (get_discrete_low_bound): Make non-static.
61 (get_discrete_high_bound): Make non-static.
62 * gdbtypes.h (get_discrete_low_bound): New declaration.
63 (get_discrete_high_bound): New declaration.
64 * valarith.c (value_subscript): Only fetch high bound if
65 necessary.
66
14c09924
SM
672020-12-09 Simon Marchi <simon.marchi@efficios.com>
68
69 * gdbtypes.c (get_discrete_bounds): Implement with
70 get_discrete_low_bound and get_discrete_high_bound.
71 (get_discrete_low_bound): New.
72 (get_discrete_high_bound): New.
73
1f8d2881
SM
742020-12-09 Simon Marchi <simon.marchi@efficios.com>
75
76 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
77 callers.
78 * gdbtypes.c (get_discrete_bounds): Return bool.
79
6244c119
SM
802020-12-09 Simon Marchi <simon.marchi@efficios.com>
81
82 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
83 (ada_value_slice): Adjust.
84 (pos_atr): Adjust.
85 * gdbtypes.c (get_discrete_bounds): Adjust.
86 (discrete_position): Return optional.
87 * gdbtypes.h (discrete_position): Return optional.
88
a4915e8d
TT
892020-12-07 Tom Tromey <tromey@adacore.com>
90
91 * maint.c (_initialize_maint_cmds): Use expression command
92 completer for "maint print type".
93
1f58f6c2
TBA
942020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
95
96 * completer.c (complete_explicit_location): Also add keywords
97 that start with '-' to the completion list.
98
5759831a
TBA
992020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
100
101 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
102 keyword may be followed by any keyword.
103 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
104 'toklen' in the case for "-force-condition".
105
21e051b3
TBA
1062020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
107
108 * main.c (catch_command_errors): Add a flag parameter; invoke
109 `bpstat_do_actions` if the flag is set.
110 (execute_cmdargs): Update a call to `catch_command_errors`.
111
f51f9f1d
TV
1122020-12-07 Tom de Vries <tdevries@suse.de>
113
114 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
115
00158a68
TT
1162020-12-06 Tom Tromey <tom@tromey.com>
117
118 PR ada/26999
119 * ada-lang.c (replace_operator_with_call): Rewrite.
120
296cfb88
GF
1212020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
122
123 PR breakpoints/27009
124 * s390-tdep.h (op_bc): Correct BC opcode value.
125
63c457b9
JB
1262020-12-06 Joel Brobecker <brobecker@adacore.com>
127
128 * gmp-utils.h (gdb_mpz::safe_export): New private method.
129 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
130 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
131 (gdb_mpz::safe_export): New method.
132 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
133 Update function description.
134 (check_as_integer_raises_out_of_range_error): New function.
135 (gdb_mpz_as_integer_out_of_range): New function.
136 (_initialize_gmp_utils_selftests): Register
137 gdb_mpz_as_integer_out_of_range as a selftest.
138
3c7ba803
JB
1392020-12-05 Joel Brobecker <brobecker@adacore.com>
140
141 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
142 TARGET_CHAR_BIT.
143 (gdb_mpz::write): Likewise.
144
372ff58f
SM
1452020-12-04 Simon Marchi <simon.marchi@efficios.com>
146
147 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
148 number of displaced step buffers.
149
480af54c
SM
1502020-12-04 Simon Marchi <simon.marchi@efficios.com>
151
152 * displaced-stepping.h (struct displaced_step_buffer): Rename
153 to...
154 (struct displaced_step_buffers): ... this.
155 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
156 <struct displaced_step_buffer>: New inner class.
157 <m_buffers>: New.
158 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
159 to...
160 (displaced_step_buffers::prepare): ... this, adjust for multiple
161 buffers.
162 (displaced_step_buffer::finish): Rename to...
163 (displaced_step_buffers::finish): ... this, adjust for multiple
164 buffers.
165 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
166 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
167 adjust for multiple buffers.
168 (displaced_step_buffer::restore_in_ptid): Rename to...
169 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
170 multiple buffers.
171 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
172 for num_disp_step_buffers.
173 * linux-tdep.c (struct linux_gdbarch_data)
174 <num_disp_step_buffers>: New field.
175 (struct linux_info) <disp_step_buf>: Rename to...
176 <disp_step_bufs>: ... this, change type to
177 displaced_step_buffers.
178 (linux_displaced_step_prepare): Use
179 linux_gdbarch_data::num_disp_step_buffers to create that number
180 of buffers.
181 (linux_displaced_step_finish): Adjust.
182 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
183 (linux_displaced_step_restore_all_in_ptid): Adjust.
184 (linux_init_abi): Change supports_displaced_step parameter for
185 num_disp_step_buffers, save it in linux_gdbarch_data.
186 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
187 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
188 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
189 supports_displaced_step parameter for num_disp_step_buffers.
190 (amd64_linux_init_abi): Adjust.
191 (amd64_x32_linux_init_abi): Adjust.
192 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
193 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
194 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
195 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
196 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
197 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
198 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
199 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
200 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
201 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
202 * m68k-linux-tdep.c (m68k_linux_init_abi):
203 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
204 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
205 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
206 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
207 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
208 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
209 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
210 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
211 Change type to displaced_step_buffers.
212 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
213 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
214 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
215 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
216 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
217 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
218 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
219
d9655058
SM
2202020-12-04 Simon Marchi <simon.marchi@efficios.com>
221
222 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
223 obkstack.
224 (_initialize_linux_tdep): Register pre-init gdb data instead of
225 post-init.
226
187b041e
SM
2272020-12-04 Simon Marchi <simon.marchi@efficios.com>
228
229 * displaced-stepping.h (struct
230 displaced_step_copy_insn_closure): Adjust comments.
231 (struct displaced_step_inferior_state) <step_thread,
232 step_gdbarch, step_closure, step_original, step_copy,
233 step_saved_copy>: Remove fields.
234 (struct displaced_step_thread_state): New.
235 (struct displaced_step_buffer): New.
236 * displaced-stepping.c (displaced_step_buffer::prepare): New.
237 (write_memory_ptid): Move from infrun.c.
238 (displaced_step_instruction_executed_successfully): New,
239 factored out of displaced_step_finish.
240 (displaced_step_buffer::finish): New.
241 (displaced_step_buffer::copy_insn_closure_by_addr): New.
242 (displaced_step_buffer::restore_in_ptid): New.
243 * gdbarch.sh (displaced_step_location): Remove.
244 (displaced_step_prepare, displaced_step_finish,
245 displaced_step_copy_insn_closure_by_addr,
246 displaced_step_restore_all_in_ptid): New.
247 * gdbarch.c: Re-generate.
248 * gdbarch.h: Re-generate.
249 * gdbthread.h (class thread_info) <displaced_step_state>: New
250 field.
251 (thread_step_over_chain_remove): New declaration.
252 (thread_step_over_chain_next): New declaration.
253 (thread_step_over_chain_length): New declaration.
254 * thread.c (thread_step_over_chain_remove): Make non-static.
255 (thread_step_over_chain_next): New.
256 (global_thread_step_over_chain_next): Use
257 thread_step_over_chain_next.
258 (thread_step_over_chain_length): New.
259 (global_thread_step_over_chain_enqueue): Add debug print.
260 (global_thread_step_over_chain_remove): Add debug print.
261 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
262 Remove.
263 * infrun.c (get_displaced_stepping_state): New.
264 (displaced_step_in_progress_any_inferior): Remove.
265 (displaced_step_in_progress_thread): Adjust.
266 (displaced_step_in_progress): Adjust.
267 (displaced_step_in_progress_any_thread): New.
268 (get_displaced_step_copy_insn_closure_by_addr): Remove.
269 (gdbarch_supports_displaced_stepping): Use
270 gdbarch_displaced_step_prepare_p.
271 (displaced_step_reset): Change parameter from inferior to
272 thread.
273 (displaced_step_prepare_throw): Implement using
274 gdbarch_displaced_step_prepare.
275 (write_memory_ptid): Move to displaced-step.c.
276 (displaced_step_restore): Remove.
277 (displaced_step_finish): Implement using
278 gdbarch_displaced_step_finish.
279 (start_step_over): Allow starting more than one displaced step.
280 (prepare_for_detach): Handle possibly multiple threads doing
281 displaced steps.
282 (handle_inferior_event): Handle possibility that fork event
283 happens while another thread displaced steps.
284 * linux-tdep.h (linux_displaced_step_prepare): New.
285 (linux_displaced_step_finish): New.
286 (linux_displaced_step_copy_insn_closure_by_addr): New.
287 (linux_displaced_step_restore_all_in_ptid): New.
288 (linux_init_abi): Add supports_displaced_step parameter.
289 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
290 (linux_displaced_step_prepare): New.
291 (linux_displaced_step_finish): New.
292 (linux_displaced_step_copy_insn_closure_by_addr): New.
293 (linux_displaced_step_restore_all_in_ptid): New.
294 (linux_init_abi): Add supports_displaced_step parameter,
295 register displaced step methods if true.
296 (_initialize_linux_tdep): Register inferior_execd observer.
297 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
298 supports_displaced_step parameter, adjust call to
299 linux_init_abi. Remove call to
300 set_gdbarch_displaced_step_location.
301 (amd64_linux_init_abi): Adjust call to
302 amd64_linux_init_abi_common.
303 (amd64_x32_linux_init_abi): Likewise.
304 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
305 linux_init_abi. Remove call to
306 set_gdbarch_displaced_step_location.
307 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
308 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
309 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
310 linux_init_abi.
311 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
312 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
313 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
314 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
315 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
316 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
317 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
318 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
319 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
320 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
321 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
322 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
323 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
324 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
325 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
326 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
327 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
328 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
329 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
330 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
331 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
332 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
333 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
334 linux_init_abi. Remove call to
335 set_gdbarch_displaced_step_location.
336 * arm-tdep.c (arm_pc_is_thumb): Call
337 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
338 get_displaced_step_copy_insn_closure_by_addr.
339 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
340 clear gdbarch methods.
341 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
342 (get_ppc_per_inferior): New function.
343 (ppc_displaced_step_prepare): New function.
344 (ppc_displaced_step_finish): New function.
345 (ppc_displaced_step_restore_all_in_ptid): New function.
346 (rs6000_gdbarch_init): Register new gdbarch methods.
347 * s390-tdep.c (s390_gdbarch_init): Don't call
348 set_gdbarch_displaced_step_location, set new gdbarch methods.
349
c7acb87b
SM
3502020-12-04 Simon Marchi <simon.marchi@efficios.com>
351
352 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
353 * aarch64-tdep.h: Include displaced-stepping.h.
354 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
355 Move here.
356 (displaced_step_copy_insn_closure_up): Move here.
357 (struct buf_displaced_step_copy_insn_closure): Move here.
358 (struct displaced_step_inferior_state): Move here.
359 (debug_displaced): Move here.
360 (displaced_debug_printf_1): Move here.
361 (displaced_debug_printf): Move here.
362 * displaced-stepping.c: New file.
363 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
364 * gdbarch.h: Re-generate.
365 * inferior.h: Include displaced-stepping.h.
366 * infrun.h (debug_displaced): Move to displaced-stepping.h.
367 (displaced_debug_printf_1): Likewise.
368 (displaced_debug_printf): Likewise.
369 (struct displaced_step_copy_insn_closure): Likewise.
370 (displaced_step_copy_insn_closure_up): Likewise.
371 (struct buf_displaced_step_copy_insn_closure): Likewise.
372 (struct displaced_step_inferior_state): Likewise.
373 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
374 (displaced_debug_printf_1): Likewise.
375 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
376 Likewise.
377 (_initialize_infrun): Don't register "set/show debug displaced".
378
94b24c74
SM
3792020-12-04 Simon Marchi <simon.marchi@efficios.com>
380
381 * linux-tdep.c (get_linux_inferior_data): Add inferior
382 parameter.
383 (linux_vsyscall_range): Pass current inferior.
384
bab37966
SM
3852020-12-04 Simon Marchi <simon.marchi@efficios.com>
386
387 * infrun.c (displaced_step_prepare_throw): Change return type to
388 displaced_step_prepare_status.
389 (displaced_step_prepare): Likewise.
390 (displaced_step_finish): Change return type to
391 displaced_step_finish_status.
392 (resume_1): Adjust.
393 (stop_all_threads): Adjust.
394 * displaced-stepping.h: New file.
395
7def77a1
SM
3962020-12-04 Simon Marchi <simon.marchi@efficios.com>
397
398 * infrun.c (displaced_step_fixup): Rename to...
399 (displaced_step_finish): ... this, update all callers.
400
1152d984
SM
4012020-12-04 Simon Marchi <simon.marchi@efficios.com>
402
403 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
404 (get_displaced_step_copy_insn_closure_by_addr): ... this.
405 Update all users.
406 (displaced_step_closure): Rename to...
407 (displaced_step_copy_insn_closure): ... this. Update all users.
408 (displaced_step_closure_up): Rename to...
409 (displaced_step_copy_insn_closure_up). ... this. Update all
410 users.
411 (buf_displaced_step_closure): Rename to...
412 (buf_displaced_step_copy_insn_closure): ... this. Update all
413 users.
414 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
415 (get_displaced_step_copy_insn_closure_by_addr): ... this.
416 Update all users.
417 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
418 (aarch64_displaced_step_copy_insn_closure): ... this. Update
419 all users.
420 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
421 (amd64_displaced_step_copy_insn_closure): ... this. Update all
422 users.
423 * arm-tdep.h (arm_displaced_step_closure): Rename to...
424 (arm_displaced_step_copy_insn_closure): ... this. Update all
425 users.
426 * i386-tdep.h (i386_displaced_step_closure): Rename to...
427 (i386_displaced_step_copy_insn_closure): ... this. Update all
428 users.
429 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
430 (ppc_displaced_step_copy_insn_closure): ... this. Update all
431 users.
432 * s390-tdep.c (s390_displaced_step_closure): Rename to...
433 (s390_displaced_step_copy_insn_closure): ... this. Update all
434 users.
435 * gdbarch.h: Re-generate.
436 * gdbarch.c: Re-generate.
437
28d5518b
SM
4382020-12-04 Simon Marchi <simon.marchi@efficios.com>
439
440 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
441 (global_thread_step_over_chain_enqueue): ... this. Update all
442 users.
443 (thread_step_over_chain_remove): Rename to...
444 (global_thread_step_over_chain_remove): ... this. Update all
445 users.
446 (thread_step_over_chain_next): Rename to...
447 (global_thread_step_over_chain_next): ... this. Update all
448 users.
449 * infrun.h (step_over_queue_head): Rename to...
450 (global_thread_step_over_chain_head): ... this. Update all
451 users.
452 * infrun.c (step_over_queue_head): Rename to...
453 (global_thread_step_over_chain_head): ... this. Update all
454 users.
455 * thread.c (step_over_chain_remove): Rename to...
456 (thread_step_over_chain_remove): ... this. Update all users.
457 (thread_step_over_chain_next): Rename to...
458 (global_thread_step_over_chain_next): ... this. Update all
459 users.
460 (thread_step_over_chain_enqueue): Rename to...
461 (global_thread_step_over_chain_enqueue): ... this. Update all
462 users.
463 (thread_step_over_chain_remove): Rename to...
464 (global_thread_step_over_chain_remove): ... this. Update all
465 users.
466
f5f01699
SM
4672020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * infrun.c (get_displaced_stepping_state): Remove, change
470 callers to access the field directly.
471
c0aba012
SM
4722020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * infrun.c (handle_inferior_event): Restore displaced step
475 buffer bytes in child process when handling fork, even if fork
476 happened in another thread than the displaced-stepping one.
477
3b7a962d
SM
4782020-12-04 Simon Marchi <simon.marchi@efficios.com>
479
480 * infrun.c (infrun_inferior_execd): New function.
481 (_initialize_infrun): Attach inferior_execd observer.
482
42a4fec5
SM
4832020-12-04 Simon Marchi <simon.marchi@efficios.com>
484
485 * observable.h (inferior_execd): Declare new observable.
486 * observable.c (inferior_execd): Declare new observable.
487 * infrun.c (follow_exec): Notify inferior_execd observer.
488 * jit.c (jit_inferior_created_hook): Make static.
489 (_initialize_jit): Register inferior_execd observer.
490 * jit.h (jit_inferior_created_hook): Remove declaration.
491 * solib.c (_initialize_solib): Register inferior_execd observer.
492
aafdfb4e
TV
4932020-12-04 Tom de Vries <tdevries@suse.de>
494
495 PR gdb/27003
496 * completer.c (completion_tracker::build_completion_result): Don't
497 access match_list[0][-1].
498
f99b5177
TT
4992020-12-04 Tom Tromey <tromey@adacore.com>
500
501 * linespec.c (struct linespec_token): Rename; remove typedef.
502 * guile/scm-block.c (struct block_smob): Remove typedef.
503 (struct block_syms_progress_smob): Likewise.
504 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
505 * guile/scm-symtab.c (symtab_smob): Remove typedef.
506 (struct sal_smob): Remove typedef.
507 * guile/scm-param.c (struct param_smob): Remove typedef.
508 * guile/scm-progspace.c (struct pspace_smob): Rename.
509 * guile/scm-objfile.c (struct objfile_smob): Rename.
510 * guile/scm-iterator.c (struct iterator_smob): Rename.
511 * guile/scm-frame.c (struct frame_smob): Rename.
512 * guile/scm-arch.c (struct arch_smob): Rename.
513 * guile/scm-type.c (struct field_smob): Remove typedef.
514 (struct type_smob): Rename.
515 * guile/scm-cmd.c (struct command_smob): Remove typedef.
516 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
517 * guile/scm-value.c (struct value_smob): Remove typedef.
518 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
519 * guile/guile-internal.h (struct scheme_variable)
520 (struct scheme_function, struct scheme_integer_constant)
521 (struct gdb_smob, struct chained_gdb_smob)
522 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
523 (objfile_smob, pspace_smob, type_smob): Remove typedef.
524 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
525 (struct pretty_printer_worker_smob): Remove typedef.
526 * guile/scm-exception.c (struct exception_smob): Remove typedef.
527 * python/py-block.c (struct block_object): Remove typedef.
528 (block_syms_iterator_object): Update.
529 (set_block): Update.
530 (block_syms_iterator_object): Remove typedef.
531 * python/py-inferior.c (struct membuf_object): Remove typedef.
532 * python/py-symtab.c (struct symtab_object): Remove typedef.
533 (set_symtab): Update.
534 (sal_object): Remove typedef.
535 (set_sal): Update.
536 * python/py-frame.c (frame_object): Remove typedef.
537 * python/py-record-btrace.c (struct btpy_list_object): Remove
538 typedef.
539 * python/py-arch.c (struct arch_object): Remove typedef.
540 * python/py-linetable.c (struct linetable_entry_object)
541 (linetable_object, struct ltpy_iterator_object): Remove typedef.
542 * python/py-events.h (eventregistry_object): Remove typedef.
543 (struct events_object): Remove typedef.
544 * python/python-internal.h (gdbpy_breakpoint_object): Remove
545 typedef.
546 (thread_object): Remove typedef.
547 * python/py-progspace.c (pspace_object): Remove typedef.
548 * python/py-value.c (struct value_object): Remove typedef.
549 * python/py-record.h (recpy_record_object): Remove typedef.
550 (struct recpy_element_object): Remove typedef.
551 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
552 * python/py-objfile.c (objfile_object): Remove typedef.
553 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
554 * python/py-type.c (type_object): Remove typedef.
555 (typy_iterator_object): Update.
556 (set_type): Update.
557 (field_object): Remove typedef.
558 (typy_iterator_object): Remove typedef.
559 * python/py-registers.c (register_descriptor_iterator_object):
560 Remove typedef.
561 (struct register_descriptor_object)
562 (struct reggroup_iterator_object, struct reggroup_object): Remove
563 typedef.
564 * python/py-record.c (recpy_gap_object): Remove typedef.
565 * python/py-symbol.c (symbol_object): Remove typedef.
566 (set_symbol): Update.
567 * python/py-event.h (event_object): Remove typedef.
568 * python/py-param.c (parmpy_object): Remove typedef.
569 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
570 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
571 (unwind_info_object, struct cached_frame_info): Likewise.
572
91f87213
TT
5732020-12-04 Tom Tromey <tromey@adacore.com>
574
575 * value.c (value_internal_function_name): Make return type const.
576 * value.h (value_internal_function_name): Make return type const.
577
5382f971
LM
5782020-12-04 Luis Machado <luis.machado@linaro.org>
579
580 * aarch64-tdep.c (submask, bit, bits): Remove.
581 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
582 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
583 (aarch64_decode_cb, aarch64_decode_tb)
584 (aarch64_decode_ldr_literal): Use sbits to extract a signed
585 immediate.
586 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
587
b6a6aa07
TV
5882020-12-04 Tom de Vries <tdevries@suse.de>
589
590 PR tdep/27007
591 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
592
0bc2e38d
SM
5932020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
594
595 PR gdb/26876
596 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
597 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
598
25428040
AB
5992020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * arch/riscv.c: Include 'rv32e-xregs.c'.
602 (riscv_create_target_description): Update to handle rv32e.
603 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
604 member variable.
605 <operator==>: Update to account for new field.
606 <hash>: Likewise.
607 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
608 * features/riscv/rv32e-xregs.c: Generated.
609 * features/riscv/rv32e-xregs.xml: New file.
610 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
611 file.
612 (riscv_debug_infcall): Likewise.
613 (riscv_debug_unwinder): Likewise.
614 (riscv_debug_gdbarch): Likewise.
615 (enum riscv_register_required_status): Delete.
616 (struct riscv_register_feature): Add constructor, delete default
617 constructor, copy, and assign constructors.
618 (struct riscv_register_feature::register_info) <required>: Delete.
619 <check>: Update comment and arguments.
620 (struct riscv_register_feature) <name>: Change to member function.
621 <prefer_first_name>: Delete.
622 <tdesc_feature>: New member function.
623 <registers>: Rename to...
624 <m_registers>: ...this.
625 <m_feature_name>: New member variable.
626 (riscv_register_feature::register_info::check): Update arguments.
627 (riscv_xreg_feature): Rewrite as class, create a single static
628 instance of the class.
629 (riscv_freg_feature): Likewise.
630 (riscv_virtual_feature): Likewise.
631 (riscv_csr_feature): Likewise.
632 (riscv_create_csr_aliases): Has become a member function inside
633 riscv_csr_feature class.
634 (riscv_abi_embedded): New function definition.
635 (riscv_register_name): Adjust to use new feature objects.
636 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
637 and adjust available argument registers.
638 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
639 (riscv_check_tdesc_feature): Delete.
640 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
641 (riscv_gdbarch_init): Delete target description checking code, and
642 instead call to the new feature objects to perform the checks.
643 Reorder handling of no abi information case, allows small code
644 simplification.
645 (_initialize_riscv_tdep): Remove call, this is now done in the
646 riscv_csr_feature constructor.
647 * riscv-tdep.h (riscv_abi_embedded): Declare.
648
533b2ae0
AB
6492020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
652 DECLARE_CSR_ALIAS.
653
e4502042
AB
6542020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * riscv-tdep.c (riscv_is_unknown_csr): New function,
657 implementation moved from riscv_register_reggroup_p.
658 (riscv_register_reggroup_p): Update group handling for unknown
659 CSRs.
660
2bf3b79d
SDJ
6612020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
662
663 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
664 (dwarf2_get_dwz_file): Convert 'filename' to a
665 std::string. Use dwz_search_other_debugdirs to search for DWZ
666 files in the debug-file-directories provided by the user as well.
667
77bf7e99
TT
6682020-12-01 Tom Tromey <tom@tromey.com>
669
670 * parse.c (expr_builder::expr_builder): Initialize expout.
671 (expr_builder::release): Use expression::resize.
672 (expression::expression, expression::~expression)
673 (expression::resize): New methods.
674 (write_exp_elt): Use expression::resize.
675 (prefixify_expression): Update.
676 (increase_expout_size): Use expression::resize.
677 * expression.h (struct expression): Add constructor, destructor.
678 <resize>: New method.
679 (expression_up): Change type.
680
539d71e8
RA
6812020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
682 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
683 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
684 set region.
685
7ce05d21
TV
6862020-11-30 Tom de Vries <tdevries@suse.de>
687
688 PR symtab/26905
689 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
690 is_reference parameter.
691 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
692
88b91969
TT
6932020-11-30 Tom Tromey <tom@tromey.com>
694
695 * rust-lang.c (rust_op_name): Remove.
696 (exp_descriptor_rust): Update.
697 * parser-defs.h (op_name_standard): Don't declare.
698 (struct exp_descriptor) <op_name>: Remove.
699 * parse.c (exp_descriptor_standard): Update.
700 * opencl-lang.c (exp_descriptor_opencl): Update.
701 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
702 * f-lang.c (op_name_f): Remove.
703 (f_language::exp_descriptor_tab): Update.
704 * expression.h (op_name): Update.
705 * expprint.c (op_name): Rewrite.
706 (op_name_standard): Remove.
707 (dump_raw_expression, dump_subexp): Update.
708 * c-lang.c (exp_descriptor_c): Update.
709 * ax-gdb.c (gen_expr): Update.
710 * ada-lang.c (ada_op_name): Remove.
711 (ada_exp_descriptor): Update.
712
1cd49c43
TT
7132020-11-30 Tom Tromey <tom@tromey.com>
714
715 * eval.c (init_array_element): Remove.
716 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
717
96fb9086
HD
7182020-11-29 Hannes Domani <ssbssa@yahoo.de>
719
720 PR tui/26973
721 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
722 static locator win info.
723
b4132322
AR
7242020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
725
726 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
727 program.
728
3df8c6af
AB
7292020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
730
731 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
732 is always initialized.
733
0ae45769
RA
7342020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
735 * MAINTAINERS (Write After Approval): Add myself.
736
239ca5e4
PW
7372020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
738
739 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
740 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
741
cbfa382a
TT
7422020-11-25 Tom Tromey <tom@tromey.com>
743
744 * eval.c (evaluate_subexp_standard): Remove unnecessary
745 variables.
746
af30c400
TT
7472020-11-25 Tom Tromey <tom@tromey.com>
748
749 * d-lang.c: Include parser-defs.h.
750 * rust-lang.c: Include parser-defs.h.
751 * c-lang.h: Do not include parser-defs.h.
752
1c64f6cb
SM
7532020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * regcache.h (struct cached_reg): Remove typedef.
756
2c20a601
JB
7572020-11-24 Joel Brobecker <brobecker@adacore.com>
758
759 * README: Fix the URL of the MPFR library.
760
c609df64
JB
7612020-11-24 Joel Brobecker <brobecker@adacore.com>
762
763 * README: Document the --with-libgmp-prefix configure option.
764
fa123c32
JB
7652020-11-24 Joel Brobecker <brobecker@adacore.com>
766
767 * NEWS: Add entry documenting support for DWARF-based fixed
768 point types.
769
0fb8bb02
JB
7702020-11-24 Joel Brobecker <brobecker@adacore.com>
771
772 * NEWS: Document that building GDB now requires GMP.
773
4afa9fd9
JB
7742020-11-24 Joel Brobecker <brobecker@adacore.com>
775
776 * typeprint.c (print_type_scalar): Add handling of
777 TYPE_CODE_FIXED_POINT.
778
af619ce9
JB
7792020-11-24 Joel Brobecker <brobecker@adacore.com>
780
781 * valarith.c (fixed_point_binop): Replace the
782 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
783 users accordingly.
784
e6fcee3a
JB
7852020-11-24 Joel Brobecker <brobecker@adacore.com>
786
787 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
788 replacing fixed_point_scaling_factor. All callers updated
789 throughout this project.
790 (fixed_point_scaling_factor): Delete declaration.
791 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
792 fixed_point_scaling_factor. Adjust implementation accordingly.
793
d19937a7
JB
7942020-11-24 Joel Brobecker <brobecker@adacore.com>
795
796 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
797 replacing the fixed_point_type_base_type function. All callers
798 updated throughout this project.
799 (fixed_point_type_base_type): Remove declaration.
800 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
801 fixed_point_type_base_type. Adjust implementation accordingly.
802
2a12c336
JB
8032020-11-24 Joel Brobecker <brobecker@adacore.com>
804
805 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
806 New methods.
807 (INIT_FIXED_POINT_SPECIFIC): Adjust.
808 (TYPE_FIXED_POINT_INFO): Delete macro.
809 (allocate_fixed_point_type_info): Change return type to void.
810 * gdbtypes.c (copy_type_recursive): Replace the use of
811 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
812 (fixed_point_scaling_factor): Likewise.
813 (allocate_fixed_point_type_info): Change return type to void.
814 Adjust implementation accordingly.
815 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
816 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
817
c9f0b43f
JB
8182020-11-24 Joel Brobecker <brobecker@adacore.com>
819
820 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
821 into one single gdb::array_view parameter.
822 (gdb_mpz::write): Likewise.
823 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
824 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
825 into one single gdb::array_view parameter.
826 Adjust implementation accordingly.
827 (gdb_mpz::write): Likewise.
828 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
829 * unittests/gmp-utils-selftests.c: Adapt following changes above.
830 * valarith.c, valops.c, valprint.c, value.c: Likewise.
831
987b6703
JB
8322020-11-24 Joel Brobecker <brobecker@adacore.com>
833
834 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
835 Change return type to std::string. Update all callers.
836 * gmp-utils.c (gmp_string_printf): Likewise.
837
4fbb7cce
JB
8382020-11-24 Joel Brobecker <brobecker@adacore.com>
839
840 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
841 instead of mpq_set_ui to initialize our GMP rational.
842
d6ab69dd
TV
8432020-11-23 Tom de Vries <tdevries@suse.de>
844
845 * debuginfod-support.c (debuginfod_source_query)
846 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
847
dab72643
TT
8482020-11-21 Tom Tromey <tom@tromey.com>
849
850 * breakpoint.c (watchpoint_exp_is_const): Return bool.
851
c0ad05d5
SM
8522020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
855 Pass 2.0 to pow.
856 (gdb_mpz_write_all_from_small): Likewise.
857
a43b29c9
SM
8582020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
859
860 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
861 of abs.
862
ae41200b
NA
8632020-11-20 Nick Alcock <nick.alcock@oracle.com>
864
865 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
866 ctf_arc_open_by_name.
867
139633c3
NA
8682020-11-20 Nick Alcock <nick.alcock@oracle.com>
869
870 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
871 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
872
cbbcd7a7
PA
8732020-11-20 Pedro Alves <pedro@palves.net>
874
875 * language.c (language_arch_info::lookup_primitive_type): Use
876 gdb::function_view instead of gdb::function.
877 (template language_lookup_primitive_type): Rename to ...
878 (language_lookup_primitive_type_1): ... this, and make static.
879 (language_lookup_primitive_type(const struct language_defn *,
880 struct gdbarch *, const char *): Make non-template.
881 (language_lookup_primitive_type(const struct language_defn *,
882 struct gdbarch *, std::function<bool (struct type *)>): Make
883 non-template and use gdb::function_view.
884 * language.h (language_arch_info::lookup_primitive_type): Use
885 gdb::function_view instead of std::function.
886 (language_lookup_primitive_type): No longer template.
887 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
888 lambda instead of a std::function.
889
d5ef21c3
AA
8902020-11-19 Andreas Arnez <arnez@linux.ibm.com>
891
892 PR tdep/26916
893 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
894 and STOCFH.
895
a5adb8f3
SM
8962020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
899
70125a45
SM
9002020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
903 in `loop_cb` parameter.
904 * gdbarch.c: Re-generate.
905 * gdbarch.h: Re-generate.
906 * arch-utils.c (default_read_core_file_mappings): Remove `other`
907 parameter.
908 * arch-utils.h (default_read_core_file_mappings): Likewise.
909 * corelow.c (core_target::build_file_mappings): Likewise.
910 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
911 (linux_core_info_proc_mappings): Likewise.
912
a5c641b5
AB
9132020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
916 * NEWS: Mention new options.
917 * f-array-walker.h: New file.
918 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
919 (repack_array_slices): New static global.
920 (show_repack_array_slices): New function.
921 (fortran_array_slicing_debug): New static global.
922 (show_fortran_array_slicing_debug): New function.
923 (value_f90_subarray): Delete.
924 (skip_undetermined_arglist): Delete.
925 (class fortran_array_repacker_base_impl): New class.
926 (class fortran_lazy_array_repacker_impl): New class.
927 (class fortran_array_repacker_impl): New class.
928 (fortran_value_subarray): Complete rewrite.
929 (set_fortran_list): New static global.
930 (show_fortran_list): Likewise.
931 (_initialize_f_language): Register new commands.
932 (fortran_adjust_dynamic_array_base_address_hack): New function.
933 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
934 Declare.
935 * f-valprint.c: Include 'f-array-walker.h'.
936 (class fortran_array_printer_impl): New class.
937 (f77_print_array_1): Delete.
938 (f77_print_array): Delete.
939 (fortran_print_array): New.
940 (f_value_print_inner): Update to call fortran_print_array.
941 * gdbtypes.c: Include 'f-lang.h'.
942 (resolve_dynamic_type_internal): Call
943 fortran_adjust_dynamic_array_base_address_hack.
944
a15a5258
AB
9452020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * breakpoint.c (struct watch_options): New struct.
948 (watch_option_defs): New static global.
949 (make_watch_options_def_group): New function.
950 (watch_maybe_just_location): Convert option parsing.
951 (watch_command_completer): New function.
952 (_initialize_breakpoint): Build help text using options mechanism.
953
2e362716
AB
9542020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
955
956 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
957 (watch_command_1): Update parameter types. Convert locals to
958 bool.
959 (watch_command_wrapper): Change parameter type.
960 (watch_maybe_just_location): Change locals to bool.
961 (rwatch_command_wrapper): Update parameter type.
962 (awatch_command_wrapper): Update parameter type.
963 * breakpoint.h (watch_command_wrapper): Change parameter type.
964 (rwatch_command_wrapper): Update parameter type.
965 (awatch_command_wrapper): Update parameter type.
966 * eval.c (fetch_subexp_value): Change parameter type.
967 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
968 'false' not '0'.
969 * value.h (fetch_subexp_value): Change parameter type in
970 declaration.
971
b3ff61f8
AB
9722020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
975 skip_spaces.
976
5b7d45d3
KS
9772020-11-18 Keith Seitz <keiths@redhat.com>
978
979 * linux-tdep.c (dump_note_entry_p): Return true instead of
980 checking `filename'.
981
c44191f8
TV
9822020-11-18 Tom de Vries <tdevries@suse.de>
983
984 * debuginfod-support.c (debuginfod_source_query)
985 (debuginfod_debuginfo_query): Also do early exit if
986 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
987
5d8254e1
TV
9882020-11-18 Tom de Vries <tdevries@suse.de>
989
990 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
991 warning.
992
584903d3
SM
9932020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * gdbtypes.h (get_array_bounds): Return bool, adjust some
996 callers. Move doc here.
997 * gdbtypes.c (get_array_bounds): Return bool
998
6f2643db
AB
9992020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1002 assert.
1003 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1004 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1005 case to the default.
1006
037d7135
AB
10072020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * printcmd.c: Include 'safe-ctype.c'.
1010 (skip_over_slash_fmt): New function.
1011 (print_command_completer): Call skip_over_slash_fmt.
1012 (display_and_x_command_completer): New function.
1013 (_initialize_printcmd): Add command completion for 'x' and
1014 'display'.
1015
2b3cb400
PA
10162020-11-16 Pedro Alves <pedro@palves.net>
1017
1018 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1019 (get_prev_frame_always_1): ... to here.
1020 * inline-frame.c (inline_frame_this_id): Mention
1021 get_prev_frame_always_1 in comment.
1022
b74dbc20
JB
10232020-11-15 Joel Brobecker <brobecker@adacore.com>
1024
1025 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1026 handling.
1027 (value_less): Add fixed-point handling.
1028
0a12719e
JB
10292020-11-15 Joel Brobecker <brobecker@adacore.com>
1030
1031 * eval.c (binop_promote): Add fixed-point type handling.
1032 * valarith.c (fixed_point_binop): New function.
1033 (scalar_binop): Add fixed-point type handling.
1034 (value_neg): Add fixed-point type handling.
1035 * valops.c (value_cast_to_fixed_point): New function.
1036 (value_cast): Add fixed-point type handling.
1037
0c9150e4
JB
10382020-11-15 Joel Brobecker <brobecker@adacore.com>
1039
1040 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1041 range types.
1042 * c-typeprint.c (c_type_print_varspec_prefix)
1043 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1044 TYPE_CODE_FIXED_POINT handling.
1045 * p-typeprint.c (pascal_type_print_varspec_prefix)
1046 (pascal_type_print_varspec_suffix): Likewise.
1047 * typeprint.c (print_type_fixed_point): New function.
1048 * typeprint.h (print_type_fixed_point): Add declaration.
1049
b26daff9
JB
10502020-11-15 Joel Brobecker <brobecker@adacore.com>
1051
1052 * printcmd.c (print_scalar_formatted): Add fixed-point type
1053 handling when options->format is set.
1054
09584414
JB
10552020-11-15 Joel Brobecker <brobecker@adacore.com>
1056
1057 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1058 * dwarf2/read.c (get_dwarf2_rational_constant)
1059 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1060 (has_zero_over_zero_small_attribute): New functions.
1061 read_base_type, set_die_type): Add fixed-point type handling.
1062 * gdb-gdb.py.in: Add fixed-point type handling.
1063 * gdbtypes.c: #include "gmp-utils.h".
1064 (create_range_type, set_type_code): Add fixed-point type handling.
1065 (init_fixed_point_type): New function.
1066 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1067 (print_fixed_point_type_info): New function.
1068 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1069 handling.
1070 (fixed_point_type_storage): New typedef.
1071 (fixed_point_objfile_key): New static global.
1072 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1073 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1074 functions.
1075 * gdbtypes.h: #include "gmp-utils.h".
1076 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1077 (union type_specific) <fixed_point_info>: New field.
1078 (struct fixed_point_type_info): New struct.
1079 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1080 (init_fixed_point_type, is_fixed_point_type)
1081 (fixed_point_type_base_type, fixed_point_scaling_factor)
1082 (allocate_fixed_point_type_info): Add declarations.
1083 * valprint.c (generic_val_print_fixed_point): New function.
1084 (generic_value_print): Add fixed-point type handling.
1085 * value.c (value_as_address, unpack_long): Add fixed-point type
1086 handling.
1087
e55c6530
JB
10882020-11-15 Joel Brobecker <brobecker@adacore.com>
1089
1090 * utils.h (uinteger_pow): Add declaration.
1091 * utils.c (uinteger_pow): Moved here (without changes)...
1092 * valarith.c (uinteger_pow): ... from here.
1093
b34c74ab
JB
10942020-11-15 Joel Brobecker <brobecker@adacore.com>
1095
40d9d2fd 1096 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1097 * unittests/gmp-utils-selftests.c: New file.
1098 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1099 unittests/gmp-utils-selftests.c.
1100 (COMMON_SFILES) Add gmp-utils.c.
1101 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1102
1b4ac058
JB
11032020-11-15 Joel Brobecker <brobecker@adacore.com>
1104
1105 * configure.ac: Generate an error if a usable GMP library
1106 could not be found.
1107 * configure: Regenerate.
1108
2c947d9b
JB
11092020-11-15 Joel Brobecker <brobecker@adacore.com>
1110
1111 * configure.ac: Add support for --with-libgmp-prefix.
1112 * Makefile.in (LIBGMP): New variable.
1113 (CLIBS): Include $(LIBGMP).
1114 * configure, config.in: Regenerate
1115
9dd02fc0
AB
11162020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 PR cli/26879
1119 * f-exp.y (COMPLETE): New token.
1120 (exp): Two new rules for tab-completion.
1121 (saw_name_at_eof): New static global.
1122 (last_was_structop): Likewise.
1123 (yylex): Set new variables, and return COMPLETE token at the end
1124 of the input stream in some cases.
1125
758cb810
TT
11262020-11-14 Tom Tromey <tom@tromey.com>
1127
1128 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1129
749065b7
TT
11302020-11-14 Tom Tromey <tom@tromey.com>
1131
1132 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1133
2c5b1849
SM
11342020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1137
e8b2f0d9
TT
11382020-11-13 Tom Tromey <tom@tromey.com>
1139
1140 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1141 (convert_escape, parse_one_string): Constify.
1142
25f4c262
KS
11432020-11-13 Keith Seitz <keiths@redhat.com>
1144
1145 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1146 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1147 outside of ELF segments" warning for debugin
1148
9d3ab915
KS
11492020-11-13 Keith Seitz <keiths@redhat.com>
1150
1151 PR gdb/23034
1152 * elfread.c (elf_symfile_segments): Output a BFD file name
1153 for the "Loadable section ... outside of ELF segments" warning.
1154
9ecab40c
SM
11552020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1156
1157 PR gdb/26835
1158 * arm-tdep.c (class arm_instruction_reader): New.
1159 (target_arm_instruction_reader): New.
1160 (arm_analyze_prologue): Add instruction reader parameter and use
1161 it. Use arm_expand_immediate.
1162 (class target_arm_instruction_reader): Adjust.
1163 (arm_skip_prologue): Adjust.
1164 (arm_expand_immediate): New.
1165 (arm_scan_prologue): Adjust.
1166 (arm_analyze_prologue_test): New.
1167 (class test_arm_instruction_reader): New.
1168
5a7cf527
AB
11692020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1170
1171 * f-lang.c (fortran_argument_convert): Add declaration. Add
1172 header comment, taken from f-lang.h. Make static.
1173 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1174 (fortran_argument_convert): Delete declaration.
1175
7bea47f0
AB
11762020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * ada-exp.y (find_primitive_type): Make parameter const.
1179 * ada-lang.c (enum ada_primitive_types): Delete.
1180 (ada_language::language_arch_info): Update.
1181 * c-lang.c (enum c_primitive_types): Delete.
1182 (c_language_arch_info): Update.
1183 (enum cplus_primitive_types): Delete.
1184 (cplus_language::language_arch_info): Update.
1185 * d-lang.c (enum d_primitive_types): Delete.
1186 (d_language::language_arch_info): Update.
1187 * f-lang.c (enum f_primitive_types): Delete.
1188 (f_language::language_arch_info): Update.
1189 * go-lang.c (enum go_primitive_types): Delete.
1190 (go_language::language_arch_info): Update.
1191 * language.c (auto_or_unknown_language::language_arch_info):
1192 Update.
1193 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1194 (language_string_char_type): Add header comment, call function in
1195 language_arch_info.
1196 (language_bool_type): Likewise
1197 (language_arch_info::bool_type): Define.
1198 (language_lookup_primitive_type_1): Delete.
1199 (language_lookup_primitive_type): Rewrite as a templated function
1200 to call function in language_arch_info, then instantiate twice.
1201 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1202 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1203 (language_arch_info::lookup_primitive_type): Define twice with
1204 different signatures.
1205 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1206 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1207 member function in language_arch_info.
1208 * language.h (language_arch_info): Complete rewrite.
1209 (language_lookup_primitive_type): Make templated.
1210 * m2-lang.c (enum m2_primitive_types): Delete.
1211 (m2_language::language_arch_info): Update.
1212 * opencl-lang.c (OCL_P_TYPE): Delete.
1213 (enum opencl_primitive_types): Delete.
1214 (opencl_type_data): Delete.
1215 (builtin_opencl_type): Delete.
1216 (lookup_opencl_vector_type): Update.
1217 (opencl_language::language_arch_info): Update, lots of content
1218 moved from...
1219 (build_opencl_types): ...here. This function is now deleted.
1220 (_initialize_opencl_language): Delete.
1221 * p-lang.c (enum pascal_primitive_types): Delete.
1222 (pascal_language::language_arch_info): Update.
1223 * rust-lang.c (enum rust_primitive_types): Delete.
1224 (rust_language::language_arch_info): Update.
1225
bf6e5d01
SM
12262020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1229 dwarf2_queue_guard.
1230
1350c3b4
SM
12312020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1234 comment.
1235
6f738b01
SM
12362020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1237
1238 * dwarf2/read.c (dwarf_read_debug_printf,
1239 dwarf_read_debug_printf_v): New macros, use throughout the file.
1240
10c19fad
SV
12412020-11-12 Shahab Vahedi <shahab@synopsys.com>
1242
10806efd 1243 PR tdep/27015
10c19fad
SV
1244 * arc-linux-tdep.c (collect_register): Populate "eret" by
1245 "pc" value from the regcache when asked for "pc" value.
1246
1f2624a3
TT
12472020-11-12 Tom Tromey <tom@tromey.com>
1248
1249 PR rust/26799:
1250 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1251 exist.
1252
ab33b152
AB
12532020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * features/Makefile (XMLTOC): Add rx.xml.
1256 (FEATURE_XMLFILES): Remove rx.xml.
1257 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1258 * features/rx.c: Regenerate.
1259 * features/rx.xml: Wrap in `target` tags, and reindent.
1260 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1261 structure.
1262 (maint_print_c_tdesc_opt_def): New typedef.
1263 (maint_print_c_tdesc_opt_defs): New static global.
1264 (make_maint_print_c_tdesc_options_def_group): New function.
1265 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1266 print single feature C file for target descriptions containing a
1267 single feature.
1268 (maint_print_c_tdesc_cmd_completer): New function.
1269 (_initialize_target_descriptions): Update call to register command
1270 completer, and include command line flag in help text.
1271
550820e1
AB
12722020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1275 numbers.
1276 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1277 enum values.
1278
baf20f76
TT
12792020-11-10 Tom Tromey <tom@tromey.com>
1280
1281 * value.h (internalvar_name): Update.
1282 * value.c (internalvar_name): Make return type const.
1283
caaece0e
TT
12842020-11-10 Tom Tromey <tom@tromey.com>
1285
1286 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1287 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1288 const.
1289
8e20b4be
TT
12902020-11-10 Tom Tromey <tom@tromey.com>
1291
1292 * objc-lang.h (value_nsstring): Update.
1293 * objc-lang.c (value_nsstring): Make "ptr" const.
1294
86775fab
AB
12952020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * expprint.c (print_subexp_funcall): Increment expression position
1298 after reading argument count.
1299 * f-lang.c (print_subexp_f): Skip over opcode before calling
1300 common function.
1301 (dump_subexp_body_f): Likewise.
1302
3fed4c0b
RG
13032020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1304
1305 PR python/26832
1306 * configure: Regenerate.
1307 * configure.ac: Check for python modules ctypes instead of
1308 itertools.
1309
ac3d4064
PA
13102020-11-06 Pedro Alves <pedro@palves.net>
1311
1312 * macroexp.c (struct macro_buffer): Split in two classes. Add
1313 uses adjusted.
1314 (struct shared_macro_buffer): New, factored out from struct
1315 macro_buffer.
1316 (struct growable_macro_buffer): New, factored out from struct
1317 macro_buffer.
1318 (set_token, get_comment, get_identifier, get_pp_number)
1319 (get_character_constant, get_string_literal, get_punctuator)
1320 (get_next_token_for_substitution): Constify parameters.
1321 (substitute_args): Constify locals.
1322
606decb2
TT
13232020-11-05 Tom Tromey <tom@tromey.com>
1324
1325 * dwarf2/read.c (read_cutu_die_from_dwo)
1326 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1327 (build_type_psymtabs_1): Update.
1328 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1329 parameter.
1330 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1331 Don't read section. Add assert.
1332
9c91c725
TT
13332020-11-04 Tom Tromey <tromey@adacore.com>
1334
1335 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1336
8d9fd3a1
TT
13372020-11-04 Tom Tromey <tromey@adacore.com>
1338
1339 * ada-typeprint.c (ada_print_type): Handle __T types.
1340
d8f62e84
TT
13412020-11-04 Tom Tromey <tromey@adacore.com>
1342
1343 * dwarf2/read.c (add_partial_symbol, process_die):
1344 Handle DW_TAG_array_type.
1345 (is_type_tag_for_partial): Add "lang" parameter.
1346 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1347
7ff5b937
TT
13482020-11-04 Tom Tromey <tromey@adacore.com>
1349
1350 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1351
10f6a3ad
TT
13522020-11-04 Tom Tromey <tromey@adacore.com>
1353
1354 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1355 array.
1356
b72795a8
TT
13572020-11-04 Tom Tromey <tromey@adacore.com>
1358
1359 * gdbtypes.c (update_static_array_size): Handle bit stride.
1360
24aa1b02
TT
13612020-11-04 Tom Tromey <tromey@adacore.com>
1362
1363 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1364
c9a28cbe
TT
13652020-11-04 Tom Tromey <tromey@adacore.com>
1366
1367 * ada-lang.c (ada_is_any_packed_array_type): New function.
1368 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1369
57567375
TT
13702020-11-04 Tom Tromey <tromey@adacore.com>
1371
1372 * dwarf2/read.c (recognize_bound_expression)
1373 (quirk_ada_thick_pointer): New functions.
1374 (read_array_type): Call quirk_ada_thick_pointer.
1375 (set_die_type): Add "skip_data_location" parameter.
1376 (quirk_ada_thick_pointer): New function.
1377 (process_structure_scope): Call quirk_ada_thick_pointer.
1378 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1379 (decode_packed_array_bitsize): Handle thick pointers without
1380 parallel types.
1381 (ada_is_gnat_encoded_packed_array_type): Rename from
1382 ada_is_packed_array_type.
1383 (ada_is_constrained_packed_array_type): Update.
1384 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1385 (ada_value_print_1): Use ada_get_decoded_value.
1386
a7400e44
TT
13872020-11-04 Tom Tromey <tromey@adacore.com>
1388
1389 * ada-lang.c (recursively_update_array_bitsize): New function.
1390 (decode_constrained_packed_array_type): Call it.
1391
75fd6a26
TT
13922020-11-04 Tom Tromey <tromey@adacore.com>
1393
1394 * ada-lang.c (to_fixed_array_type): Error if
1395 decode_constrained_packed_array_type returns NULL.
1396
93f9561e
TT
13972020-11-04 Tom Tromey <tromey@adacore.com>
1398
1399 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1400
257e02d8
TT
14012020-11-02 Tom Tromey <tromey@adacore.com>
1402
1403 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1404 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1405 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1406 * amd64-ravenscar-thread.c: New file.
1407 * amd64-ravenscar-thread.h: New file.
1408 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1409 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1410
74d877e5
AB
14112020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * main.c (execute_cmdargs): New function.
1414 (captured_main_1): Make use of execute_cmdargs.
1415
64aaad63
AB
14162020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * NEWS: Mention changes to config file search path.
1419 * main.c
1420
5b3d3560
TT
14212020-11-02 Tom Tromey <tromey@adacore.com>
1422
1423 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1424 (python_GdbModuleDef): Move earlier. Now static.
1425 (do_start_initialization): Consolidate some IS_PY3K blocks.
1426
dda83cd7
SM
14272020-11-02 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * aarch64-linux-tdep.c: Fix indentation.
1430 * aarch64-ravenscar-thread.c: Fix indentation.
1431 * aarch64-tdep.c: Fix indentation.
1432 * aarch64-tdep.h: Fix indentation.
1433 * ada-lang.c: Fix indentation.
1434 * ada-lang.h: Fix indentation.
1435 * ada-tasks.c: Fix indentation.
1436 * ada-typeprint.c: Fix indentation.
1437 * ada-valprint.c: Fix indentation.
1438 * ada-varobj.c: Fix indentation.
1439 * addrmap.c: Fix indentation.
1440 * addrmap.h: Fix indentation.
1441 * agent.c: Fix indentation.
1442 * aix-thread.c: Fix indentation.
1443 * alpha-bsd-nat.c: Fix indentation.
1444 * alpha-linux-tdep.c: Fix indentation.
1445 * alpha-mdebug-tdep.c: Fix indentation.
1446 * alpha-nbsd-tdep.c: Fix indentation.
1447 * alpha-obsd-tdep.c: Fix indentation.
1448 * alpha-tdep.c: Fix indentation.
1449 * amd64-bsd-nat.c: Fix indentation.
1450 * amd64-darwin-tdep.c: Fix indentation.
1451 * amd64-linux-nat.c: Fix indentation.
1452 * amd64-linux-tdep.c: Fix indentation.
1453 * amd64-nat.c: Fix indentation.
1454 * amd64-obsd-tdep.c: Fix indentation.
1455 * amd64-tdep.c: Fix indentation.
1456 * amd64-windows-tdep.c: Fix indentation.
1457 * annotate.c: Fix indentation.
1458 * arc-tdep.c: Fix indentation.
1459 * arch-utils.c: Fix indentation.
1460 * arch/arm-get-next-pcs.c: Fix indentation.
1461 * arch/arm.c: Fix indentation.
1462 * arm-linux-nat.c: Fix indentation.
1463 * arm-linux-tdep.c: Fix indentation.
1464 * arm-nbsd-tdep.c: Fix indentation.
1465 * arm-pikeos-tdep.c: Fix indentation.
1466 * arm-tdep.c: Fix indentation.
1467 * arm-tdep.h: Fix indentation.
1468 * arm-wince-tdep.c: Fix indentation.
1469 * auto-load.c: Fix indentation.
1470 * auxv.c: Fix indentation.
1471 * avr-tdep.c: Fix indentation.
1472 * ax-gdb.c: Fix indentation.
1473 * ax-general.c: Fix indentation.
1474 * bfin-linux-tdep.c: Fix indentation.
1475 * block.c: Fix indentation.
1476 * block.h: Fix indentation.
1477 * blockframe.c: Fix indentation.
1478 * bpf-tdep.c: Fix indentation.
1479 * break-catch-sig.c: Fix indentation.
1480 * break-catch-syscall.c: Fix indentation.
1481 * break-catch-throw.c: Fix indentation.
1482 * breakpoint.c: Fix indentation.
1483 * breakpoint.h: Fix indentation.
1484 * bsd-uthread.c: Fix indentation.
1485 * btrace.c: Fix indentation.
1486 * build-id.c: Fix indentation.
1487 * buildsym-legacy.h: Fix indentation.
1488 * buildsym.c: Fix indentation.
1489 * c-typeprint.c: Fix indentation.
1490 * c-valprint.c: Fix indentation.
1491 * c-varobj.c: Fix indentation.
1492 * charset.c: Fix indentation.
1493 * cli/cli-cmds.c: Fix indentation.
1494 * cli/cli-decode.c: Fix indentation.
1495 * cli/cli-decode.h: Fix indentation.
1496 * cli/cli-script.c: Fix indentation.
1497 * cli/cli-setshow.c: Fix indentation.
1498 * coff-pe-read.c: Fix indentation.
1499 * coffread.c: Fix indentation.
1500 * compile/compile-cplus-types.c: Fix indentation.
1501 * compile/compile-object-load.c: Fix indentation.
1502 * compile/compile-object-run.c: Fix indentation.
1503 * completer.c: Fix indentation.
1504 * corefile.c: Fix indentation.
1505 * corelow.c: Fix indentation.
1506 * cp-abi.h: Fix indentation.
1507 * cp-namespace.c: Fix indentation.
1508 * cp-support.c: Fix indentation.
1509 * cp-valprint.c: Fix indentation.
1510 * cris-linux-tdep.c: Fix indentation.
1511 * cris-tdep.c: Fix indentation.
1512 * darwin-nat-info.c: Fix indentation.
1513 * darwin-nat.c: Fix indentation.
1514 * darwin-nat.h: Fix indentation.
1515 * dbxread.c: Fix indentation.
1516 * dcache.c: Fix indentation.
1517 * disasm.c: Fix indentation.
1518 * dtrace-probe.c: Fix indentation.
1519 * dwarf2/abbrev.c: Fix indentation.
1520 * dwarf2/attribute.c: Fix indentation.
1521 * dwarf2/expr.c: Fix indentation.
1522 * dwarf2/frame.c: Fix indentation.
1523 * dwarf2/index-cache.c: Fix indentation.
1524 * dwarf2/index-write.c: Fix indentation.
1525 * dwarf2/line-header.c: Fix indentation.
1526 * dwarf2/loc.c: Fix indentation.
1527 * dwarf2/macro.c: Fix indentation.
1528 * dwarf2/read.c: Fix indentation.
1529 * dwarf2/read.h: Fix indentation.
1530 * elfread.c: Fix indentation.
1531 * eval.c: Fix indentation.
1532 * event-top.c: Fix indentation.
1533 * exec.c: Fix indentation.
1534 * exec.h: Fix indentation.
1535 * expprint.c: Fix indentation.
1536 * f-lang.c: Fix indentation.
1537 * f-typeprint.c: Fix indentation.
1538 * f-valprint.c: Fix indentation.
1539 * fbsd-nat.c: Fix indentation.
1540 * fbsd-tdep.c: Fix indentation.
1541 * findvar.c: Fix indentation.
1542 * fork-child.c: Fix indentation.
1543 * frame-unwind.c: Fix indentation.
1544 * frame-unwind.h: Fix indentation.
1545 * frame.c: Fix indentation.
1546 * frv-linux-tdep.c: Fix indentation.
1547 * frv-tdep.c: Fix indentation.
1548 * frv-tdep.h: Fix indentation.
1549 * ft32-tdep.c: Fix indentation.
1550 * gcore.c: Fix indentation.
1551 * gdb_bfd.c: Fix indentation.
1552 * gdbarch.sh: Fix indentation.
1553 * gdbarch.c: Re-generate
1554 * gdbarch.h: Re-generate.
1555 * gdbcore.h: Fix indentation.
1556 * gdbthread.h: Fix indentation.
1557 * gdbtypes.c: Fix indentation.
1558 * gdbtypes.h: Fix indentation.
1559 * glibc-tdep.c: Fix indentation.
1560 * gnu-nat.c: Fix indentation.
1561 * gnu-nat.h: Fix indentation.
1562 * gnu-v2-abi.c: Fix indentation.
1563 * gnu-v3-abi.c: Fix indentation.
1564 * go32-nat.c: Fix indentation.
1565 * guile/guile-internal.h: Fix indentation.
1566 * guile/scm-cmd.c: Fix indentation.
1567 * guile/scm-frame.c: Fix indentation.
1568 * guile/scm-iterator.c: Fix indentation.
1569 * guile/scm-math.c: Fix indentation.
1570 * guile/scm-ports.c: Fix indentation.
1571 * guile/scm-pretty-print.c: Fix indentation.
1572 * guile/scm-value.c: Fix indentation.
1573 * h8300-tdep.c: Fix indentation.
1574 * hppa-linux-nat.c: Fix indentation.
1575 * hppa-linux-tdep.c: Fix indentation.
1576 * hppa-nbsd-nat.c: Fix indentation.
1577 * hppa-nbsd-tdep.c: Fix indentation.
1578 * hppa-obsd-nat.c: Fix indentation.
1579 * hppa-tdep.c: Fix indentation.
1580 * hppa-tdep.h: Fix indentation.
1581 * i386-bsd-nat.c: Fix indentation.
1582 * i386-darwin-nat.c: Fix indentation.
1583 * i386-darwin-tdep.c: Fix indentation.
1584 * i386-dicos-tdep.c: Fix indentation.
1585 * i386-gnu-nat.c: Fix indentation.
1586 * i386-linux-nat.c: Fix indentation.
1587 * i386-linux-tdep.c: Fix indentation.
1588 * i386-nto-tdep.c: Fix indentation.
1589 * i386-obsd-tdep.c: Fix indentation.
1590 * i386-sol2-nat.c: Fix indentation.
1591 * i386-tdep.c: Fix indentation.
1592 * i386-tdep.h: Fix indentation.
1593 * i386-windows-tdep.c: Fix indentation.
1594 * i387-tdep.c: Fix indentation.
1595 * i387-tdep.h: Fix indentation.
1596 * ia64-libunwind-tdep.c: Fix indentation.
1597 * ia64-libunwind-tdep.h: Fix indentation.
1598 * ia64-linux-nat.c: Fix indentation.
1599 * ia64-linux-tdep.c: Fix indentation.
1600 * ia64-tdep.c: Fix indentation.
1601 * ia64-tdep.h: Fix indentation.
1602 * ia64-vms-tdep.c: Fix indentation.
1603 * infcall.c: Fix indentation.
1604 * infcmd.c: Fix indentation.
1605 * inferior.c: Fix indentation.
1606 * infrun.c: Fix indentation.
1607 * iq2000-tdep.c: Fix indentation.
1608 * language.c: Fix indentation.
1609 * linespec.c: Fix indentation.
1610 * linux-fork.c: Fix indentation.
1611 * linux-nat.c: Fix indentation.
1612 * linux-tdep.c: Fix indentation.
1613 * linux-thread-db.c: Fix indentation.
1614 * lm32-tdep.c: Fix indentation.
1615 * m2-lang.c: Fix indentation.
1616 * m2-typeprint.c: Fix indentation.
1617 * m2-valprint.c: Fix indentation.
1618 * m32c-tdep.c: Fix indentation.
1619 * m32r-linux-tdep.c: Fix indentation.
1620 * m32r-tdep.c: Fix indentation.
1621 * m68hc11-tdep.c: Fix indentation.
1622 * m68k-bsd-nat.c: Fix indentation.
1623 * m68k-linux-nat.c: Fix indentation.
1624 * m68k-linux-tdep.c: Fix indentation.
1625 * m68k-tdep.c: Fix indentation.
1626 * machoread.c: Fix indentation.
1627 * macrocmd.c: Fix indentation.
1628 * macroexp.c: Fix indentation.
1629 * macroscope.c: Fix indentation.
1630 * macrotab.c: Fix indentation.
1631 * macrotab.h: Fix indentation.
1632 * main.c: Fix indentation.
1633 * mdebugread.c: Fix indentation.
1634 * mep-tdep.c: Fix indentation.
1635 * mi/mi-cmd-catch.c: Fix indentation.
1636 * mi/mi-cmd-disas.c: Fix indentation.
1637 * mi/mi-cmd-env.c: Fix indentation.
1638 * mi/mi-cmd-stack.c: Fix indentation.
1639 * mi/mi-cmd-var.c: Fix indentation.
1640 * mi/mi-cmds.c: Fix indentation.
1641 * mi/mi-main.c: Fix indentation.
1642 * mi/mi-parse.c: Fix indentation.
1643 * microblaze-tdep.c: Fix indentation.
1644 * minidebug.c: Fix indentation.
1645 * minsyms.c: Fix indentation.
1646 * mips-linux-nat.c: Fix indentation.
1647 * mips-linux-tdep.c: Fix indentation.
1648 * mips-nbsd-tdep.c: Fix indentation.
1649 * mips-tdep.c: Fix indentation.
1650 * mn10300-linux-tdep.c: Fix indentation.
1651 * mn10300-tdep.c: Fix indentation.
1652 * moxie-tdep.c: Fix indentation.
1653 * msp430-tdep.c: Fix indentation.
1654 * namespace.h: Fix indentation.
1655 * nat/fork-inferior.c: Fix indentation.
1656 * nat/gdb_ptrace.h: Fix indentation.
1657 * nat/linux-namespaces.c: Fix indentation.
1658 * nat/linux-osdata.c: Fix indentation.
1659 * nat/netbsd-nat.c: Fix indentation.
1660 * nat/x86-dregs.c: Fix indentation.
1661 * nbsd-nat.c: Fix indentation.
1662 * nbsd-tdep.c: Fix indentation.
1663 * nios2-linux-tdep.c: Fix indentation.
1664 * nios2-tdep.c: Fix indentation.
1665 * nto-procfs.c: Fix indentation.
1666 * nto-tdep.c: Fix indentation.
1667 * objfiles.c: Fix indentation.
1668 * objfiles.h: Fix indentation.
1669 * opencl-lang.c: Fix indentation.
1670 * or1k-tdep.c: Fix indentation.
1671 * osabi.c: Fix indentation.
1672 * osabi.h: Fix indentation.
1673 * osdata.c: Fix indentation.
1674 * p-lang.c: Fix indentation.
1675 * p-typeprint.c: Fix indentation.
1676 * p-valprint.c: Fix indentation.
1677 * parse.c: Fix indentation.
1678 * ppc-linux-nat.c: Fix indentation.
1679 * ppc-linux-tdep.c: Fix indentation.
1680 * ppc-nbsd-nat.c: Fix indentation.
1681 * ppc-nbsd-tdep.c: Fix indentation.
1682 * ppc-obsd-nat.c: Fix indentation.
1683 * ppc-ravenscar-thread.c: Fix indentation.
1684 * ppc-sysv-tdep.c: Fix indentation.
1685 * ppc64-tdep.c: Fix indentation.
1686 * printcmd.c: Fix indentation.
1687 * proc-api.c: Fix indentation.
1688 * producer.c: Fix indentation.
1689 * producer.h: Fix indentation.
1690 * prologue-value.c: Fix indentation.
1691 * prologue-value.h: Fix indentation.
1692 * psymtab.c: Fix indentation.
1693 * python/py-arch.c: Fix indentation.
1694 * python/py-bpevent.c: Fix indentation.
1695 * python/py-event.c: Fix indentation.
1696 * python/py-event.h: Fix indentation.
1697 * python/py-finishbreakpoint.c: Fix indentation.
1698 * python/py-frame.c: Fix indentation.
1699 * python/py-framefilter.c: Fix indentation.
1700 * python/py-inferior.c: Fix indentation.
1701 * python/py-infthread.c: Fix indentation.
1702 * python/py-objfile.c: Fix indentation.
1703 * python/py-prettyprint.c: Fix indentation.
1704 * python/py-registers.c: Fix indentation.
1705 * python/py-signalevent.c: Fix indentation.
1706 * python/py-stopevent.c: Fix indentation.
1707 * python/py-stopevent.h: Fix indentation.
1708 * python/py-threadevent.c: Fix indentation.
1709 * python/py-tui.c: Fix indentation.
1710 * python/py-unwind.c: Fix indentation.
1711 * python/py-value.c: Fix indentation.
1712 * python/py-xmethods.c: Fix indentation.
1713 * python/python-internal.h: Fix indentation.
1714 * python/python.c: Fix indentation.
1715 * ravenscar-thread.c: Fix indentation.
1716 * record-btrace.c: Fix indentation.
1717 * record-full.c: Fix indentation.
1718 * record.c: Fix indentation.
1719 * reggroups.c: Fix indentation.
1720 * regset.h: Fix indentation.
1721 * remote-fileio.c: Fix indentation.
1722 * remote.c: Fix indentation.
1723 * reverse.c: Fix indentation.
1724 * riscv-linux-tdep.c: Fix indentation.
1725 * riscv-ravenscar-thread.c: Fix indentation.
1726 * riscv-tdep.c: Fix indentation.
1727 * rl78-tdep.c: Fix indentation.
1728 * rs6000-aix-tdep.c: Fix indentation.
1729 * rs6000-lynx178-tdep.c: Fix indentation.
1730 * rs6000-nat.c: Fix indentation.
1731 * rs6000-tdep.c: Fix indentation.
1732 * rust-lang.c: Fix indentation.
1733 * rx-tdep.c: Fix indentation.
1734 * s12z-tdep.c: Fix indentation.
1735 * s390-linux-tdep.c: Fix indentation.
1736 * score-tdep.c: Fix indentation.
1737 * ser-base.c: Fix indentation.
1738 * ser-mingw.c: Fix indentation.
1739 * ser-uds.c: Fix indentation.
1740 * ser-unix.c: Fix indentation.
1741 * serial.c: Fix indentation.
1742 * sh-linux-tdep.c: Fix indentation.
1743 * sh-nbsd-tdep.c: Fix indentation.
1744 * sh-tdep.c: Fix indentation.
1745 * skip.c: Fix indentation.
1746 * sol-thread.c: Fix indentation.
1747 * solib-aix.c: Fix indentation.
1748 * solib-darwin.c: Fix indentation.
1749 * solib-frv.c: Fix indentation.
1750 * solib-svr4.c: Fix indentation.
1751 * solib.c: Fix indentation.
1752 * source.c: Fix indentation.
1753 * sparc-linux-tdep.c: Fix indentation.
1754 * sparc-nbsd-tdep.c: Fix indentation.
1755 * sparc-obsd-tdep.c: Fix indentation.
1756 * sparc-ravenscar-thread.c: Fix indentation.
1757 * sparc-tdep.c: Fix indentation.
1758 * sparc64-linux-tdep.c: Fix indentation.
1759 * sparc64-nbsd-tdep.c: Fix indentation.
1760 * sparc64-obsd-tdep.c: Fix indentation.
1761 * sparc64-tdep.c: Fix indentation.
1762 * stabsread.c: Fix indentation.
1763 * stack.c: Fix indentation.
1764 * stap-probe.c: Fix indentation.
1765 * stubs/ia64vms-stub.c: Fix indentation.
1766 * stubs/m32r-stub.c: Fix indentation.
1767 * stubs/m68k-stub.c: Fix indentation.
1768 * stubs/sh-stub.c: Fix indentation.
1769 * stubs/sparc-stub.c: Fix indentation.
1770 * symfile-mem.c: Fix indentation.
1771 * symfile.c: Fix indentation.
1772 * symfile.h: Fix indentation.
1773 * symmisc.c: Fix indentation.
1774 * symtab.c: Fix indentation.
1775 * symtab.h: Fix indentation.
1776 * target-float.c: Fix indentation.
1777 * target.c: Fix indentation.
1778 * target.h: Fix indentation.
1779 * tic6x-tdep.c: Fix indentation.
1780 * tilegx-linux-tdep.c: Fix indentation.
1781 * tilegx-tdep.c: Fix indentation.
1782 * top.c: Fix indentation.
1783 * tracefile-tfile.c: Fix indentation.
1784 * tracepoint.c: Fix indentation.
1785 * tui/tui-disasm.c: Fix indentation.
1786 * tui/tui-io.c: Fix indentation.
1787 * tui/tui-regs.c: Fix indentation.
1788 * tui/tui-stack.c: Fix indentation.
1789 * tui/tui-win.c: Fix indentation.
1790 * tui/tui-winsource.c: Fix indentation.
1791 * tui/tui.c: Fix indentation.
1792 * typeprint.c: Fix indentation.
1793 * ui-out.h: Fix indentation.
1794 * unittests/copy_bitwise-selftests.c: Fix indentation.
1795 * unittests/memory-map-selftests.c: Fix indentation.
1796 * utils.c: Fix indentation.
1797 * v850-tdep.c: Fix indentation.
1798 * valarith.c: Fix indentation.
1799 * valops.c: Fix indentation.
1800 * valprint.c: Fix indentation.
1801 * valprint.h: Fix indentation.
1802 * value.c: Fix indentation.
1803 * value.h: Fix indentation.
1804 * varobj.c: Fix indentation.
1805 * vax-tdep.c: Fix indentation.
1806 * windows-nat.c: Fix indentation.
1807 * windows-tdep.c: Fix indentation.
1808 * xcoffread.c: Fix indentation.
1809 * xml-syscall.c: Fix indentation.
1810 * xml-tdesc.c: Fix indentation.
1811 * xstormy16-tdep.c: Fix indentation.
1812 * xtensa-config.c: Fix indentation.
1813 * xtensa-linux-nat.c: Fix indentation.
1814 * xtensa-linux-tdep.c: Fix indentation.
1815 * xtensa-tdep.c: Fix indentation.
1816
e1f57067
AB
18172020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1818 Craig Blackmore <craig.blackmore@embecosm.com>
1819
1820 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1821 as an unsigned value.
1822
ae7754b2
TT
18232020-11-01 Tom Tromey <tom@tromey.com>
1824
1825 * dbxread.c (dbx_end_psymtab): Update.
1826 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1827 (build_type_psymtabs_reader): Update.
1828 * xcoffread.c (xcoff_end_psymtab): Update.
1829 * ctfread.c (scan_partial_symbols): Update.
1830 * psymtab.c (sort_pst_symbols): Remove.
1831 (partial_symtab::end): Rename from end_psymtab_common. Inline
1832 sort_pst_symbols.
1833 * psympriv.h (struct partial_symtab) <end>: New method.
1834 (end_psymtab_common): Don't declare.
1835
0684bb51
TT
18362020-11-01 Tom Tromey <tom@tromey.com>
1837
1838 * symmisc.c (count_psyms): New function.
1839 (print_objfile_statistics): Use it.
1840 * psymtab.c (append_psymbol_to_list): Remove.
1841 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1842 * objfiles.h (struct objstats) <n_psyms>: Remove.
1843
089002bb
TT
18442020-11-01 Tom Tromey <tom@tromey.com>
1845
1846 * dbxread.c (dbx_end_psymtab): Update.
1847 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1848 (build_type_psymtabs_reader): Update.
1849 * xcoffread.c (xcoff_end_psymtab): Update.
1850 * ctfread.c (scan_partial_symbols): Update.
1851 * psympriv.h (end_psymtab_common): Update.
1852 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1853 (sort_pst_symbols): Likewise.
1854
525454d6
TT
18552020-11-01 Tom Tromey <tom@tromey.com>
1856
1857 * dbxread.c (dbx_symfile_read): Update.
1858 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1859 * xcoffread.c (xcoff_initial_scan): Update.
1860 * psympriv.h (init_psymbol_list): Don't declare.
1861 * psymtab.c (init_psymbol_list): Remove.
1862
60bd1d53
JB
18632020-11-01 Joel Brobecker <brobecker@adacore.com>
1864
1865 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1866 gnat_encoded_fixed_type_info. Update all callers.
1867
db99d0d0
JB
18682020-11-01 Joel Brobecker <brobecker@adacore.com>
1869
1870 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1871 line too long.
1872
75f24e86
JB
18732020-11-01 Joel Brobecker <brobecker@adacore.com>
1874
1875 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1876 cast_from_fixed. Update all callers.
1877 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1878 Update all callers.
1879 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1880 Update all callers.
1881 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1882 ada_scaling_factor.
1883 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1884 to print_gnat_encoded_fixed_point_type.
1885 * ada-valprint.c: Likewise.
1886
4f0469cd
AB
18872020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1890 (debug_prefixed_printf): Add check of debug_displaced flag.
1891 * linux-nat.c (linux_nat_debug_printf): Add check of
1892 debug_linux_nat flag.
1893
17417fb0
SM
18942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * infrun.c (infrun_debug_printf_1): Remove.
1897 (displaced_debug_printf_1): Remove.
1898 (stop_all_threads): Use debug_prefixed_printf.
1899 * infrun.h (infrun_debug_printf_1): Remove.
1900 (infrun_debug_printf): Use debug_prefixed_printf.
1901 (displaced_debug_printf_1): Remove.
1902 (displaced_debug_printf): Use debug_prefixed_printf.
1903 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1904 (linux_nat_debug_printf): Use debug_prefixed_printf.
1905
ad6dba1c
SM
19062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * configure: Re-generate.
1909 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1910 AC_LANG_PROGRAM.
1911
b6fb30ed
SM
19122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * configure: Re-generate.
1915
5164c117
SM
19162020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * configure: Re-generate.
1919
864ca435
SM
19202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * configure: Re-generate.
1923
b9442ec1
SM
19242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * configure: Re-generate.
1927
294f2697
SM
19282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * acinclude.m4: Modernize.
1931 * configure: Re-generate.
1932
5593a99a
SM
19332020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * configure.ac: Modernize.
1936 * configure: Re-generate.
1937
e41fda1d
SM
19382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1939
1940 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1941 * configure: Re-generate.
1942 * configure.ac: Remove AM_PROG_CC_STDC.
1943
91e1a0ed
SM
19442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1947 AC_CANONICAL_SYSTEM.
1948 * configure: Re-generate.
1949
136821d9
SM
19502020-10-30 Simon Marchi <simon.marchi@efficios.com>
1951
1952 * infrun.h (displaced_debug_printf): New macro. Replace
1953 displaced debug prints throughout to use it.
1954 (displaced_debug_printf_1): New declaration.
1955 (displaced_step_dump_bytes): Return string, remove ui_file
1956 parameter, update all callers.
1957 * infrun.c (displaced_debug_printf_1): New function.
1958 (displaced_step_dump_bytes): Return string, remove ui_file
1959 parameter
1960
aa2045e7
SM
19612020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1964
b1ec2735
TT
19652020-10-30 Tom Tromey <tromey@adacore.com>
1966
1967 * Makefile.in (stamp-init): Depend on config.status.
1968
b78b3a29
TBA
19692020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1970
1971 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1972
d70bdd3c
PA
19732020-10-30 Pedro Alves <pedro@palves.net>
1974
1975 * thread.c (lookup_selected_frame): Move ...
1976 * frame.c (lookup_selected_frame): ... here.
1977
79952e69
PA
19782020-10-30 Pedro Alves <pedro@palves.net>
1979
1980 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1981 * frame.c
1982 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1983 Use save_selected_frame. Save language as well.
1984 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1985 Use restore_selected_frame, and restore language as well.
1986 (selected_frame_id, selected_frame_level): New.
1987 (selected_frame): Update comments.
1988 (save_selected_frame, restore_selected_frame): New.
1989 (get_selected_frame): Use lookup_selected_frame.
1990 (get_selected_frame_if_set): Delete.
1991 (select_frame): Record selected_frame_level and selected_frame_id.
1992 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1993 fields.
1994 (get_selected_frame): Make 'message' parameter optional.
1995 (get_selected_frame_if_set): Delete declaration.
1996 (select_frame): Update comments.
1997 (save_selected_frame, restore_selected_frame)
1998 (lookup_selected_frame): Declare.
1999 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2000 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2001 New field.
2002 (save_infcall_control_state): Use save_selected_frame.
2003 (restore_selected_frame): Delete.
2004 (restore_infcall_control_state): Use restore_selected_frame.
2005 * stack.c (select_frame_command_core, frame_command_core): Use
2006 get_selected_frame.
2007 * thread.c (restore_selected_frame): Rename to ...
2008 (lookup_selected_frame): ... this and make extern. Select the
2009 current frame if the frame level is -1.
2010 (scoped_restore_current_thread::restore): Also restore the
2011 language.
2012 (scoped_restore_current_thread::~scoped_restore_current_thread):
2013 Don't try/catch.
2014 (scoped_restore_current_thread::scoped_restore_current_thread):
2015 Save the language as well. Use save_selected_frame.
2016
58103c33
SM
20172020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2020 documentation.
2021 * gdbarch.h: Re-generate.
2022
40a53766
SM
20232020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2026 parameter.
2027 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2028 Likewise.
2029 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2030 Likewise.
2031 * arch-utils.c (default_displaced_step_hw_singlestep):
2032 Likewise.
2033 * arch-utils.h (default_displaced_step_hw_singlestep):
2034 Likewise.
2035 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2036 Likewise.
2037 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2038 Likewise.
2039 * gdbarch.c: Re-generate.
2040 * gdbarch.h: Re-generate.
2041 * infrun.c (resume_1): Adjust.
2042
8407f91b
TT
20432020-10-29 Tom Tromey <tom@tromey.com>
2044
2045 * progspace.c (program_space::~program_space): Don't call
2046 exec_close.
2047
5008b3b2
TT
20482020-10-29 Tom Tromey <tom@tromey.com>
2049
2050 * exec.c (exec_target::close): Don't change current program
2051 space.
2052
d9eebde0
TT
20532020-10-29 Tom Tromey <tom@tromey.com>
2054
2055 * symfile.c (add_symbol_file_command): Update.
2056 * exec.c (program_space::add_target_sections): Rename.
2057 * symfile-mem.c (symbol_file_add_from_memory): Update.
2058 * progspace.h (struct program_space) <add_target_sections>:
2059 Declare new overload.
2060 * exec.h (add_target_sections_of_objfile): Don't declare.
2061
3769e227
TT
20622020-10-29 Tom Tromey <tom@tromey.com>
2063
2064 * solib.c (solib_map_sections): Update.
2065 * exec.c (program_space::add_target_sections): Now a method.
2066 (exec_file_attach): Update.
2067 * exec.h (add_target_sections): Don't declare.
2068 * progspace.h (struct program_space) <add_target_sections>:
2069 Declare.
2070
2a3f84af
TT
20712020-10-29 Tom Tromey <tom@tromey.com>
2072
2073 * progspace.h (struct program_space) <remove_target_sections>:
2074 Declare.
2075 * exec.c (program_space::remove_target_sections): Now a method.
2076 * exec.h (remove_target_sections): Don't declare.
2077
004eecfd
TT
20782020-10-29 Tom Tromey <tom@tromey.com>
2079
2080 * inferior.c (delete_inferior): Update.
2081 * progspace.c (program_space::empty): Rename from
2082 program_space_empty_p. Return bool.
2083 * progspace.h (struct program_space) <empty>: New method.
2084 (program_space_empty_p): Don't declare.
2085
e39fb971
TT
20862020-10-29 Tom Tromey <tom@tromey.com>
2087
2088 * progspace.c (program_space::~program_space): Don't call
2089 clear_program_space_solib_cache.
2090 (program_space::clear_solib_cache): Rename from
2091 clear_solib_cache.
2092 * solib.c (handle_solib_event): Update.
2093 * progspace.h (struct program_space) <clear_solib_cache>: New
2094 method.
2095 (clear_program_space_solib_cache): Don't declare.
2096
a42d7dd8
TT
20972020-10-29 Tom Tromey <tom@tromey.com>
2098
2099 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2100 * target.c (info_target_command): Update.
2101 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2102 (symbol_file_clear, reread_symbols): Update.
2103 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2104 * stabsread.c (scan_file_globals): Update.
2105 * solib.c (update_solib_list): Update.
2106 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2107 (svr4_fetch_objfile_link_map, enable_break)
2108 (svr4_relocate_main_executable)
2109 (svr4_iterate_over_objfiles_in_search_order): Update.
2110 * solib-frv.c (lm_base, enable_break)
2111 (frv_relocate_main_executable): Update.
2112 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2113 (frv_fetch_objfile_link_map): Update.
2114 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2115 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2116 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2117 * remote.c (remote_target::get_offsets): Update.
2118 (remote_target::start_remote)
2119 (extended_remote_target::post_attach): Update.
2120 * objfiles.c (entry_point_address_query): Update.
2121 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2122 * minsyms.c (get_symbol_leading_char): Update.
2123 * frame.c (inside_main_func): Update.
2124 * progspace.h (symfile_objfile): Remove macro.
2125
19f6550e
TT
21262020-10-29 Tom Tromey <tom@tromey.com>
2127
2128 * exec.c (exec_file_attach): Update.
2129 * progspace.c (program_space::exec_close): Update.
2130 * progspace.h (struct program_space) <ebfd>: Now a
2131 gdb_bfd_ref_ptr.
2132 <set_exec_bfd>: Change argument type.
2133 <exec_bfd>: Update.
2134
7e10abd1
TT
21352020-10-29 Tom Tromey <tom@tromey.com>
2136
2137 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2138 * symfile.c (reread_symbols): Update.
2139 * symfile-mem.c (add_symbol_file_from_memory_command)
2140 (add_vsyscall_page): Update.
2141 * source-cache.c (source_cache::get_plain_source_lines): Update.
2142 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2143 (svr4_current_sos_direct, svr4_exec_displacement)
2144 (svr4_relocate_main_executable): Update.
2145 (svr4_iterate_over_objfiles_in_search_order): Update.
2146 * solib-frv.c (enable_break2, enable_break): Update.
2147 * solib-dsbt.c (lm_base, enable_break): Update.
2148 * solib-darwin.c (find_program_interpreter)
2149 (darwin_solib_create_inferior_hook): Update.
2150 * sol-thread.c (rw_common, ps_pdmodel): Update.
2151 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2152 * remote.c (compare_sections_command)
2153 (remote_target::trace_set_readonly_regions): Update.
2154 * remote-sim.c (get_sim_inferior_data)
2155 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2156 (gdbsim_target_open, gdbsim_target::files_info): Update.
2157 * exec.h (exec_bfd): Remove macro.
2158 * progspace.c (initialize_progspace): Update.
2159 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2160 Update.
2161 * nto-procfs.c (nto_procfs_target::post_attach)
2162 (nto_procfs_target::create_inferior): Update.
2163 * maint.c (maintenance_info_sections): Update.
2164 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2165 Update.
2166 * infcmd.c (post_create_inferior): Update.
2167 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2168 (objfile_find_memory_regions): Update.
2169 * exec.c (validate_exec_file, exec_file_attach)
2170 (exec_read_partial_read_only, print_section_info): Update.
2171 * corelow.c (core_target_open): Update.
2172 * corefile.c (reopen_exec_file, validate_files): Update.
2173 * arm-tdep.c (gdb_print_insn_arm): Update.
2174 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2175 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2176 methods.
2177
b55221ab
TT
21782020-10-29 Tom Tromey <tom@tromey.com>
2179
2180 * progspace.h (current_target_sections): Remove macro.
2181 * solib-svr4.c (scan_dyntag): Update.
2182 * solib-dsbt.c (scan_dyntag): Update.
2183 * exec.c (exec_target::close): Update.
2184 (add_target_sections, add_target_sections_of_objfile)
2185 (remove_target_sections, exec_target::get_section_table)
2186 (exec_target::files_info, set_section_command)
2187 (exec_set_section_address, exec_target::has_memory)
2188 (exec_target::has_memory): Update.
2189
5a36e715
TT
21902020-10-29 Tom Tromey <tom@tromey.com>
2191
2192 * source-cache.c (source_cache::get_plain_source_lines): Use
2193 current_program_space.
2194 * corefile.c (reopen_exec_file): Use current_program_space.
2195 * exec.c (exec_file_attach): Use current_program_space.
2196 * exec.h (exec_bfd_mtime): Remove.
2197
784c8592
TT
21982020-10-29 Tom Tromey <tom@tromey.com>
2199
2200 * gcore.c (default_gcore_mach): Remove.
2201 (create_gcore_bfd): Update.
2202
8a4f1402
TT
22032020-10-29 Tom Tromey <tom@tromey.com>
2204
2205 * progspace.c (program_space::exec_close): New method, from
2206 exec_close in exec.c.
2207 * exec.c (exec_close): Move to progspace.c.
2208 (exec_target::close, exec_file_attach): Update.
2209 * progspace.h (struct program_space) <exec_close>: Declare
2210 method.
2211
c20cb686
TT
22122020-10-29 Tom Tromey <tom@tromey.com>
2213
2214 * progspace.h (struct program_space) <exec_filename>: Rename from
2215 pspace_exec_filename. Now a unique_xmalloc_ptr.
2216 * inferior.c (print_selected_inferior): Update.
2217 (print_inferior): Update.
2218 * mi/mi-main.c (print_one_inferior): Update.
2219 * exec.h (exec_filename): Remove macro.
2220 * corefile.c (get_exec_file): Update.
2221 * exec.c (exec_close): Update.
2222 (exec_file_attach): Update.
2223 * progspace.c (clone_program_space): Update.
2224 (print_program_space): Update.
2225
6be2a9ab
TT
22262020-10-29 Tom Tromey <tom@tromey.com>
2227
2228 * target-section.h (struct target_section): Add constructor.
2229 * exec.c (build_section_table, add_target_sections_of_objfile):
2230 Update.
2231 * corelow.c (core_target::build_file_mappings): Update.
2232
cfaa8f76
TBA
22332020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2234
2235 PR gdb/19318
2236 * inferior.c (detach_inferior_command): Restore the current thread.
2237 (kill_inferior_command): Ditto.
2238
1b00ef06
TV
22392020-10-28 Tom de Vries <tdevries@suse.de>
2240
2241 PR symtab/26772
2242 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2243 map, check it in the "best match" loop.
2244
7f40ce1a
SM
22452020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * m32c-tdep.c: Remove unused includes.
2248
5eb9e3f5
SM
22492020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 * xtensa-tdep.c: Remove includes.
2252
b1d4d8d1
TBA
22532020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2254
2255 * breakpoint.c (struct condition_command_opts): New struct.
2256 (condition_command_option_defs): New static global.
2257 (make_condition_command_options_def_group): New function.
2258 (condition_completer): Update to consider the '-force' flag.
2259 (condition_command): Use gdb::option for the '-force' flag.
2260
bd24c5d6
TV
22612020-10-27 Tom de Vries <tdevries@suse.de>
2262
2263 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2264 symbols in section check.
2265
61eb46a4
TV
22662020-10-27 Tom de Vries <tdevries@suse.de>
2267
2268 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2269
733d554a
TBA
22702020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2271
2272 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2273 * breakpoint.c: Update the help text of the 'condition' and 'break'
2274 commands.
2275 (set_breakpoint_condition): Take a new bool parameter
2276 to control whether condition definition should be forced even when
2277 the condition expression is invalid in all of the current locations.
2278 (condition_command): Update the call to 'set_breakpoint_condition'.
2279 (find_condition_and_thread): Take the "-force-condition" flag into
2280 account.
2281 * linespec.c (linespec_keywords): Add "-force-condition" as an
2282 element.
2283 (FORCE_KEYWORD_INDEX): New #define.
2284 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2285 as a keyword.
2286 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2287 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2288 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2289 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2290
b5fa468f
TBA
22912020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2292
2293 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2294 * breakpoint.c (set_breakpoint_location_condition): New function.
2295 (set_breakpoint_condition): Disable a breakpoint location if parsing
2296 the condition string gives an error.
2297 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2298 (build_target_condition_list): Ditto.
2299 (build_target_command_list): Ditto.
2300 (build_bpstat_chain): Ditto.
2301 (print_one_breakpoint_location): Ditto.
2302 (print_one_breakpoint): Ditto.
2303 (breakpoint_1): Ditto.
2304 (bp_location::bp_location): Ditto.
2305 (locations_are_equal): Ditto.
2306 (update_breakpoint_locations): Ditto.
2307 (enable_disable_bp_num_loc): Ditto.
2308 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2309 (find_condition_and_thread_for_sals): New static function.
2310 (create_breakpoint): Call find_condition_and_thread_for_sals.
2311 (location_to_sals): Call find_condition_and_thread_for_sals instead
2312 of find_condition_and_thread.
2313
1c47ec3e
TV
23142020-10-26 Tom de Vries <tdevries@suse.de>
2315
2316 * dwarf2/read.c (process_full_comp_unit): Call
2317 dwarf2_find_base_address.
2318
6390859c
TT
23192020-10-26 Tom Tromey <tromey@adacore.com>
2320
2321 * gdbtypes.c (create_range_type): Revert previous patch. Add
2322 comment.
2323
d744f0f9
PA
23242020-10-26 Pedro Alves <pedro@palves.net>
2325
2326 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2327 (my_waitpid): Use gdb::handle_eintr.
2328
006811bc
SM
23292020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * acinclude.m4: Update ptrace.m4 path.
2332 * ptrace.m4: Moved to gdbsupport.
2333
c75e31a1
SM
23342020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2337 instead of target_gdbarch.
2338
32495661
SM
23392020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * jit.c (jit_reader_load_command): Pass current inferior.
2342 (jit_inferior_init): Change parameter type to inferior, use it.
2343 (jit_inferior_created): Remove.
2344 (jit_inferior_created_hook): Pass inferior parameter down.
2345 (_initialize_jit): Use jit_inferior_created_hook instead of
2346 jit_inferior_created.
2347 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2348 * infrun.c (follow_exec): Pass inferior to
2349 jit_inferior_created_hook.
2350
3f66685e
SM
23512020-10-24 Simon Marchi <simon.marchi@efficios.com>
2352
2353 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2354 parameter and use it.
2355 (thread_db_inferior_created): Pass inferior argument.
2356
a0ff652f
SM
23572020-10-24 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * aix-thread.c (aix_thread_inferior_created): Add inferior
2360 parameter.
2361 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2362 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2363 * jit.c (jit_inferior_created): Likewise.
2364 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2365 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2366 * observable.h (inferior_created): Likewise.
2367 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2368 * symfile-mem.c (add_vsyscall_page): Likewise.
2369 * infcmd.c (post_create_inferior): Pass inferior argument.
2370
3c67532c
JB
23712020-10-24 Joel Brobecker <brobecker@adacore.com>
2372
2373 GDB 10.1 released.
2374
8747316e
JB
23752020-10-23 Joel Brobecker <brobecker@adacore.com>
2376
2377 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2378 to ada_check_typedef.
2379
1a0ea399
AB
23802020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * f-exp.y (f_parse): Rename to...
2383 (f_language::parser): ...this.
2384 * f-lang.c (f_get_encoding): Rename to...
2385 (f_language::get_encoding): ...this.
2386 (f_op_print_tab): Rename to...
2387 (f_language::op_print_tab): ...this.
2388 (exp_descriptor_f): Rename to...
2389 (f_language::exp_descriptor_tab): ...this.
2390 (class f_language): Moved to f-lang.h.
2391 (f_language::language_arch_info): New function, moved out of class
2392 declaration.
2393 (f_language::search_name_hash): Likewise.
2394 (f_language::lookup_symbol_nonlocal): Likewise.
2395 (f_language::get_symbol_name_matcher_inner): Likewise.
2396 * f-lang.h: Add 'valprint.h' include.
2397 (class f_language): Moved here from f-lang.c.
2398 * f-typeprint.c (f_type_print_args): Delete commented out
2399 declaration.
2400 (f_print_typedef): Rename to...
2401 (f_language::print_typedef): ...this.
2402 (f_print_type): Rename to...
2403 (f_language::print_type): ...this.
2404 (f_type_print_varspec_prefix): Delete declaration and rename to...
2405 (f_language::f_type_print_varspec_prefix): ...this.
2406 (f_type_print_varspec_suffix): Delete declaration and rename to...
2407 (f_language::f_type_print_varspec_suffix): ...this.
2408 (f_type_print_base): Delete declaration and rename to...
2409 (f_language::f_type_print_base): ...this.
2410 * f-valprint.c (f_value_print_inner): Rename to...
2411 (f_language::value_print_inner): ...this.
2412 * parse.c: Delete 'f-lang.h' include.
2413
88cefd9b
AB
24142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * language.h (language_defn::print_type): Add variable names in
2417 declaration, and update header comment.
2418
5399db93
AB
24192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * ada-lang.c (ada_language::demangle): Rename to...
2422 (ada_language::demangle_symbol): ...this.
2423 * c-lang.c (cplus_language::demangle): Rename to...
2424 (cplus_language::demangle_symbol): ...this.
2425 * d-lang.c (d_language::demangle): Rename to...
2426 (d_language::demangle_symbol): ...this.
2427 * f-lang.c (f_language::demangle): Rename to...
2428 (f_language::demangle_symbol): ...this.
2429 * go-lang.c (go_language::demangle): Rename to...
2430 (go_language::demangle_symbol): ...this.
2431 * language.c (language_demangle): Update call to demangle_symbol.
2432 (auto_or_unknown_language::demangle): Rename to...
2433 (auto_or_unknown_language::demangle_symbol): ...this.
2434 * language.h (language_defn::demangle): Rename to...
2435 (language_defn::demangle_symbol): ...this.
2436 * objc-lang.c (objc_language::demangle): Rename to...
2437 (objc_language::demangle_symbol): ...this.
2438 * rust-lang.c (rust_language::demangle): Rename to...
2439 (rust_language::demangle_symbol): ...this.
2440
4b2f86ef
AB
24412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2444 (iterate_over_file_blocks): Replace use of macro with the macros
2445 definition.
2446
e74b39de
AB
24472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2450 * valprint.c (maybe_print_array_index): Replace use of macro with
2451 the macros definition.
2452
00c696a6
AB
24532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * ada-lang.c (ada_language::print_array_index): Call value_print
2456 directly.
2457 * language.c (language_defn::print_array_index): Likewise.
2458 * language.h (LA_VALUE_PRINT): Delete.
2459 * valprint.c (value_print): Call value_print on the
2460 current_language directly.
2461
d3b67c56
AB
24622020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * language.h (LA_PRINT_TYPEDEF): Delete.
2465 * typeprint.c (typedef_print): Call print_typedef directly on the
2466 current_language object.
2467
790e2a12
AB
24682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2469
2470 * m2-exp.y (m2_parse): Rename to...
2471 (m2_language::parser): ...this. Update function signature.
2472 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2473 (m2_op_print): Rename to...
2474 (m2_language::op_print_tab): ...this, and make const.
2475 (exp_descriptor_modula2): Rename to...
2476 (m2_language::exp_descriptor_modula2): ...this.
2477 (class m2_language): Move to m2-lang.h.
2478 (m2_language::language_arch_info): New function, moved out of
2479 class declaration.
2480 (m2_language::printchar): New function, body from m2_printchar.
2481 (m2_language::printstr): New function, moved out of class
2482 declaration.
2483 (m2_language::emitchar): Likewise.
2484 * m2-lang.h (m2_parse): Delete declaration.
2485 (m2_print_typedef): Delete declaration.
2486 (m2_value_print_inner): Delete declaration.
2487 (class m2_language): Class declaration moved from m2-lang.c,
2488 larger functions are left in m2-lang.c.
2489 * m2-typeprint.c (m2_print_typedef): Rename to...
2490 (m2_language::print_typedef): ...this, and update function
2491 signature.
2492 * m2-valprint.c (m2_value_print_inner): Rename to...
2493 (m2_language::value_print_inner): ...this, replace use of
2494 LA_PRINT_STRING with a direct call to printstr member function,
2495 and update recursive call.
2496
b01175fc
AB
24972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2498
2499 * language.c (default_is_string_type_p): Delete, implementation
2500 moved into auto_or_unknown_language::is_string_type_p.
2501 (unk_op_print_tab): Moved into
2502 auto_or_unknown_language::opcode_print_table.
2503 (unknown_language_arch_info): Delete, implementation moved into
2504 auto_or_unknown_language::language_arch_info.
2505 (class auto_or_unknown_language): New class, member functions
2506 copied from unknown_language class, with some updates.
2507 (class unknown_language): Most member functions moved into
2508 auto_or_unknown_language class. Inherit from
2509 auto_or_unknown_language class.
2510 (class auto_language): Inherit from auto_or_unknown_language.
2511 Delete most member functions.
2512
1a97fe8c
HD
25132020-10-22 Hannes Domani <ssbssa@yahoo.de>
2514
2515 * stabsread.c (read_member_functions): Remove gdb_assert.
2516
6b9d0dfd
HD
25172020-10-22 Hannes Domani <ssbssa@yahoo.de>
2518
2519 * gdbtypes.c (init_complex_type): Check target type name.
2520
4b4bb603
SM
25212020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * target-debug.h (target_debug_print_struct_target_ops_p):
2524 Remove.
2525 (target_debug_print_async_callback_ftype_p): Remove.
2526 (target_debug_print_struct_trace_state_variable_p): Remove.
2527 (target_debug_print_struct_traceframe_info_p): Remove.
2528 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2529 (target_debug_print_enum_btrace_format): Remove.
2530 (target_debug_print_enum_info_proc_what): Remove.
2531 (target_debug_print_thread_info_pp): Remove.
2532
24f5300a
SM
25332020-10-22 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * target.h (struct target_ops) <make_corefile_notes>:
2536 Change return type to unique pointer.
2537 * target.c (dummy_make_corefile_notes): Likewise.
2538 * exec.c (struct exec_target) <make_corefile_notes>:
2539 Likewise.
2540 (exec_target::make_corefile_notes): Likewise.
2541 * procfs.c (class procfs_target) <make_corefile_notes>:
2542 Likewise.
2543 (procfs_do_thread_registers): Adjust to unique pointer.
2544 (struct procfs_corefile_thread_data): Add constructor.
2545 <note_data>: Change type to unique pointer.
2546 (procfs_corefile_thread_callback): Adjust to unique pointer.
2547 (procfs_target::make_corefile_notes): Change return type to
2548 unique pointer.
2549 * target-delegates.c: Re-generate.
2550 * gcore.c (write_gcore_file_1): Adjust.
2551 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2552 New.
2553
5fb4027f
TV
25542020-10-22 Tom de Vries <tdevries@suse.de>
2555
2556 * block.c (find_block_in_blockvector): Make sure the returned block
2557 contains pc.
2558
4a636814
SM
25592020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 PR gdb/26693
2562 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2563 parameter.
2564 (load_cu): Pass existing CU.
2565 (process_imported_unit_die): Likewise.
2566 (follow_die_offset): Likewise.
2567
1bd57575
LM
25682020-10-22 Luis Machado <luis.machado@linaro.org>
2569
2570 * corelow.c (core_target::xfer_partial): Also check for an empty
2571 m_core_unavailable_mappings vector.
2572
6b4c676c
AB
25732020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2576 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2577 * f-exp.y (arglist): Allow for a series of subranges.
2578 (subrange): Add cases for subranges with strides.
2579 * f-lang.c (value_f90_subarray): Catch use of array strides and
2580 throw an error.
2581 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2582
f2d8e4c5
AB
25832020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * expprint.c (print_subexp_standard): Change enum range_type to
2586 range_flag and rename variables to match.
2587 (dump_subexp_body_standard): Likewise.
2588 * expression.h (enum range_type): Rename to...
2589 (enum range_flag): ...this.
2590 (range_types): Rename to...
2591 (range_flags): ...this.
2592 * f-lang.c (value_f90_subarray): Change enum range_type to
2593 range_flag and rename variables to match.
2594 * parse.c (operator_length_standard): Likewise.
2595 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2596 range_type to range_flag.
2597 * rust-lang.c (rust_evaluate_funcall): Likewise.
2598 (rust_range): Likewise.
2599 (rust_compute_range): Likewise.
2600 (rust_subscript): Likewise.
2601
2f1b18db
AB
26022020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * expprint.c (print_subexp_standard): Update to reflect changes to
2605 enum range_type.
2606 (dump_subexp_body_standard): Likewise.
2607 * expression.h (enum range_type): Convert to a bit field enum, and
2608 make the enum unsigned.
2609 * f-exp.y (subrange): Update to reflect changes to enum
2610 range_type.
2611 * f-lang.c (value_f90_subarray): Likewise.
2612 * parse.c (operator_length_standard): Likewise.
2613 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2614 * rust-lang.c (rust_range): Likewise.
2615 (rust_compute_range): Likewise.
2616 (rust_subscript): Likewise.
2617
a46d1843
SM
26182020-10-21 Simon Marchi <simon.marchi@efficios.com>
2619
2620 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2621 (displaced_step_in_progress): Fix comment.
2622
c21f37a8
SM
26232020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2624
2625 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2626 * gdbarch.c: Re-generate.
2627 * gdbarch.h: Re-generate.
2628 * gcore.c (write_gcore_file_1): Adjust.
2629 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2630 constructor.
2631 <note_data>: Change type to unique pointer.
2632 <abort_iteration>: Change type to bool.
2633 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2634 (fbsd_collect_thread_registers): Return void, adjust.
2635 (struct fbsd_corefile_thread_data): Add construtor.
2636 <note_data>: Change type to unique pointer.
2637 (fbsd_corefile_thread): Adjust.
2638 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2639 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2640 to unique pointer, adjust.
2641 (struct linux_collect_regset_section_cb_data): Add constructor.
2642 <note_data>: Change type to unique pointer.
2643 <abort_iteration>: Change type to bool.
2644 (linux_collect_thread_registers): Return void, adjust.
2645 (struct linux_corefile_thread_data): Add constructor.
2646 <note_data>: Change type to unique pointer.
2647 (linux_corefile_thread): Adjust.
2648 (linux_make_corefile_notes): Return unique pointer, adjust.
2649
07fbbd01
SM
26502020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2651
2652 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2653 * gdbarch.c: Re-generate.
2654 * gdbarch.h: Re-generate.
2655 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2656 bool.
2657 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2658 Likewise.
2659 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2660 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2661 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2662 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2663
39535193
SM
26642020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2665
2666 * gdbarch.sh: Make generated predicates return bool.
2667 * gdbarch.c: Re-generate.
2668 * gdbarch.h: Re-generate.
2669
ad523d01
TT
26702020-10-20 Tom Tromey <tom@tromey.com>
2671
2672 * varobj-iter.h (struct varobj_item): Remove typedef.
2673
c4464ade
SM
26742020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 * infrun.c (currently_stepping): Change int to bool
2677 (maybe_software_singlestep): Likewise.
2678 (show_stop_on_solib_events): Likewise.
2679 (stepping_past_nonsteppable_watchpoint): Likewise.
2680 (displaced_step_in_progress_any_inferior): Likewise.
2681 (displaced_step_in_progress_thread): Likewise.
2682 (keep_going_stepped_thread): Likewise.
2683 (thread_still_needs_step_over): Likewise.
2684 (start_step_over): Likewise.
2685 (do_target_resume): Likewise.
2686 (resume_1): Likewise.
2687 (clear_proceed_status): Likewise.
2688 (thread_still_needs_step_over_bp): Likewise.
2689 (proceed): Likewise.
2690 (switch_back_to_stepped_thread): Likewise.
2691 (adjust_pc_after_break): Likewise.
2692 (stepped_in_from): Likewise.
2693 (handle_stop_requested): Likewise.
2694 (handle_syscall_event): Likewise.
2695 (handle_no_resumed): Likewise.
2696 (handle_inferior_event): Likewise.
2697 (finish_step_over): Likewise.
2698 (handle_signal_stop): Likewise.
2699 (process_event_stop_test): Likewise.
2700
2eb20436
SM
27012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2702
2703 * infrun.c (get_displaced_stepping_state): Fix comment.
2704
e0c45ded
AS
27052020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2706
2707 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2708
22cc388e
TT
27092020-10-19 Tom Tromey <tromey@adacore.com>
2710
2711 PR tui/26719
2712 * tui/tui-winsource.h (struct tui_source_window_base)
2713 <refresh_window>: Rename from refresh_pad.
2714 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2715 Rename from refresh_pad.
2716 (tui_source_window_base::show_source_content)
2717 (tui_source_window_base::do_scroll_horizontal): Update.
2718
3c6eb4d4
TBA
27192020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2720
2721 * thread.c (_initialize_thread): Fine-tune the help text of
2722 'info threads'.
2723
26703721
TBA
27242020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2725
2726 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2727
61c26be8
MS
27282020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2729
2730 * breakpoint.c (handle_jit_event): Add an argument, change how
2731 `jit_event_handler` is called.
2732
932539d7
TT
27332020-10-17 Tom Tromey <tom@tromey.com>
2734
2735 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2736 (scan_xcoff_symtab): Update.
2737 * psymtab.h (class psymtab_storage) <global_psymbols,
2738 static_psymbols, current_global_psymbols,
2739 current_static_psymbols>: Remove.
2740 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2741 (match_partial_symbol, lookup_partial_symbol): Update.
2742 (print_partial_symbols): Change parameters.
2743 (dump_psymtab, recursively_search_psymtabs)
2744 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2745 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2746 (concat): Remove.
2747 (end_psymtab_common): Simplify.
2748 (append_psymbol_to_list): Change parameters.
2749 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2750 (init_psymbol_list): Simplify.
2751 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2752 * psympriv.h (struct partial_symtab) <empty>: New method.
2753 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2754 Remove.
2755 <global_psymbols, static_psymbols>: New members.
2756 <add_psymbol>: New methods.
2757 (add_psymbol_to_list): Don't declare.
2758 (psymbol_placement): Move earlier.
2759 * mdebugread.c (parse_partial_symbols): Update.
2760 (handle_psymbol_enumerators): Change parameters.
2761 (mdebug_expand_psymtab): Update.
2762 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2763 (add_partial_symbol): Update.
2764 * dwarf2/index-write.c (write_psymbols): Change parameters.
2765 (write_one_signatured_type): Update.
2766 (recursively_count_psymbols): Update.
2767 (recursively_write_psymbols): Update.
2768 (class debug_names) <recursively_write_psymbols>: Update.
2769 <write_psymbols>: Change parameters.
2770 <write_one_signatured_type>: Update.
2771 * dbxread.c (read_dbx_symtab): Update.
2772 (dbx_end_psymtab): Use partial_symtab::empty.
2773 * ctfread.c (struct ctf_context) <pst>: New member.
2774 (create_partial_symtab): Set it.
2775 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2776 (scan_partial_symbols): Use the psymtab's context. Update.
2777
cfabbd35
TT
27782020-10-17 Tom Tromey <tom@tromey.com>
2779
2780 * valprint.c (generic_value_print): Remove comment.
2781 * m2-valprint.c (m2_value_print_inner): Remove comment.
2782 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2783 type.
2784
520596f2
TV
27852020-10-17 Tom de Vries <tdevries@suse.de>
2786
2787 PR symtab/26317
2788 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2789 symbol main.
2790
76547ab3
TV
27912020-10-14 Tom de Vries <tdevries@suse.de>
2792
2793 PR gdb/26733
2794 * solib.c (solib_contains_address_p): Handle
2795 'solib->sections == nullptr'.
2796
d3a07122
SM
27972020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 PR gdb/26642
2800 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2801 target can't do async.
2802 * target.c (target_wait): Assert that we don't pass
2803 TARGET_WNOHANG to a target that can't async.
2804
1b71cfcf
KR
28052020-10-13 Kamil Rytarowski <n54@gmx.com>
2806
2807 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2808 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2809 * alpha-bsd-nat.c: Adjust include.
2810 * alpha-bsd-tdep.h: Adjust comment.
2811 * alpha-nbsd-tdep.c: Rename to ...
2812 * alpha-netbsd-tdep.c: ... this, adjust include.
2813 * amd64-nbsd-nat.c: Rename to ...
2814 * amd64-netbsd-nat.c: ... this, adjust include.
2815 * amd64-nbsd-tdep.c: Rename to ...
2816 * amd64-netbsd-tdep.c: ... this, adjust include.
2817 * amd64-tdep.h: Adjust include.
2818 * arm-nbsd-nat.c: Rename to ...
2819 * arm-netbsd-nat.c: ... this, adjust include.
2820 * arm-nbsd-tdep.c: Rename to ...
2821 * arm-netbsd-tdep.c: ... this, adjust include.
2822 * arm-nbsd-tdep.h: Rename to ...
2823 * arm-netbsd-tdep.h: ... this, adjust include.
2824 * configure.nat: Adjust file lists.
2825 * configure.tgt: Likewise.
2826 * hppa-nbsd-nat.c: Rename to ...
2827 * hppa-netbsd-nat.c: ... this, adjust include.
2828 * hppa-nbsd-tdep.c: Rename to ...
2829 * hppa-netbsd-tdep.c: ... this, adjust include.
2830 * i386-nbsd-nat.c: Rename to ...
2831 * i386-netbsd-nat.c: ... this, adjust include.
2832 * i386-nbsd-tdep.c: Rename to ...
2833 * i386-netbsd-tdep.c: ... this, adjust include.
2834 * m68k-bsd-nat.c: Adjust include.
2835 * mips-nbsd-nat.c: Rename to ...
2836 * mips-netbsd-nat.c: ... this, adjust include.
2837 * mips-nbsd-tdep.c: Rename to ...
2838 * mips-netbsd-tdep.c: ... this, adjust include.
2839 * mips-nbsd-tdep.h: Rename to ...
2840 * mips-netbsd-tdep.h: ... this.
2841 * nbsd-nat.c: Rename to ...
2842 * netbsd-nat.c: ... this, adjust include.
2843 * nbsd-nat.h: Rename to ...
2844 * netbsd-nat.h: ... this, adjust include.
2845 * nbsd-tdep.c: Rename to ...
2846 * netbsd-tdep.c: ... this, adjust include.
2847 * nbsd-tdep.h: Rename to ...
2848 * netbsd-tdep.h: ... this.
2849 * ppc-nbsd-nat.c: Rename to ...
2850 * ppc-netbsd-nat.c: ... this, adjust include.
2851 * ppc-nbsd-tdep.c: Rename to ...
2852 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2853 * ppc-nbsd-tdep.h: Rename to ...
2854 * ppc-netbsd-tdep.h: ... this.
2855 * sh-nbsd-nat.c: Rename to ...
2856 * sh-netbsd-nat.c: ... this, adjust include.
2857 * sh-nbsd-tdep.c: Rename to ...
2858 * sh-netbsd-tdep.c: ... this, adjust include.
2859 * sparc-nbsd-nat.c: Rename to ...
2860 * sparc-netbsd-nat.c: ... this.
2861 * sparc-nbsd-tdep.c: Rename to ...
2862 * sparc-netbsd-tdep.c: ... this, adjust include.
2863 * sparc64-nbsd-nat.c: Rename to ...
2864 * sparc64-netbsd-nat.c: ... this.
2865 * sparc64-nbsd-tdep.c: Rename to ...
2866 * sparc64-netbsd-tdep.c: ... this, adjust include.
2867 * sparc64-tdep.h: Adjust comment.
2868 * vax-bsd-nat.c: Adjust include.
2869 * vax-nbsd-tdep.c: Rename to ...
2870 * vax-netbsd-tdep.c: ... this, adjust include.
2871
d7a78e5c
TT
28722020-10-12 Tom Tromey <tom@tromey.com>
2873
2874 * target.h (struct target_ops) <get_section_table>: Update.
2875 (target_get_section_table): Update.
2876 * target.c (target_get_section_table, target_section_by_addr)
2877 (memory_xfer_partial_1): Update.
2878 * target-section.h (target_section_table): Now an alias.
2879 * target-delegates.c: Rebuild.
2880 * target-debug.h (target_debug_print_target_section_table_p):
2881 Rename from target_debug_print_struct_target_section_table_p.
2882 * symfile.c (build_section_addr_info_from_section_table): Update.
2883 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2884 * solib-svr4.c (scan_dyntag): Update.
2885 * solib-dsbt.c (scan_dyntag): Update.
2886 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2887 Update.
2888 * record-full.c (record_full_core_target::xfer_partial): Update.
2889 * progspace.h (struct program_space) <target_sections>: Update.
2890 * exec.h (print_section_info): Update.
2891 * exec.c (exec_target::close, build_section_table)
2892 (add_target_sections, add_target_sections_of_objfile)
2893 (remove_target_sections, exec_on_vfork)
2894 (section_table_available_memory)
2895 (section_table_xfer_memory_partial)
2896 (exec_target::get_section_table, exec_target::xfer_partial)
2897 (print_section_info, set_section_command)
2898 (exec_set_section_address, exec_target::has_memory): Update.
2899 * corelow.c (core_target::build_file_mappings)
2900 (core_target::xfer_partial, core_target::info_proc_mappings)
2901 (core_target::info_proc_mappings): Update.
2902 * bfd-target.c (class target_bfd): Update
2903
eda214ce
TT
29042020-10-12 Tom Tromey <tom@tromey.com>
2905
2906 * progspace.c (program_space::~program_space): Don't call
2907 clear_section_table.
2908 * exec.h (clear_section_table): Don't declare.
2909 * exec.c (exec_target::close): Update.
2910 (clear_section_table): Remove.
2911
91840ee3
TT
29122020-10-12 Tom Tromey <tom@tromey.com>
2913
2914 * exec.c (add_target_sections_of_objfile): Simplify.
2915
2d128614
TT
29162020-10-12 Tom Tromey <tom@tromey.com>
2917
2918 * solib.c (solib_map_sections): Update.
2919 * record-full.c (record_full_core_open_1): Update.
2920 * exec.h (build_section_table): Return a target_section_table.
2921 * exec.c (exec_file_attach): Update.
2922 (build_section_table): Return a target_section_table.
2923 * corelow.c (core_target::core_target): Update.
2924 * bfd-target.c (target_bfd::target_bfd): Update.
2925
bb2a6777
TT
29262020-10-12 Tom Tromey <tom@tromey.com>
2927
2928 * target.c (target_section_by_addr, memory_xfer_partial_1):
2929 Update.
2930 * target-section.h (struct target_section_table): Use
2931 std::vector.
2932 * symfile.h (build_section_addr_info_from_section_table): Take a
2933 target_section_table.
2934 * symfile.c (build_section_addr_info_from_section_table): Take a
2935 target_section_table.
2936 * solist.h (struct so_list) <sections>: Change type.
2937 <sections_end>: Remove.
2938 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2939 (solib_contains_address_p): Update.
2940 * solib-svr4.c (scan_dyntag): Update.
2941 * solib-dsbt.c (scan_dyntag): Update.
2942 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2943 Update.
2944 * record-full.c (record_full_core_start, record_full_core_end):
2945 Remove.
2946 (record_full_core_sections): New global.
2947 (record_full_core_open_1, record_full_core_target::xfer_partial):
2948 Update.
2949 * exec.h (build_section_table, section_table_xfer_memory_partial)
2950 (add_target_sections): Take a target_section_table.
2951 * exec.c (exec_file_attach, clear_section_table): Update.
2952 (resize_section_table): Remove.
2953 (build_section_table, add_target_sections): Take a
2954 target_section_table.
2955 (add_target_sections_of_objfile, remove_target_sections)
2956 (exec_on_vfork): Update.
2957 (section_table_available_memory): Take a target_section_table.
2958 (section_table_read_available_memory): Update.
2959 (section_table_xfer_memory_partial): Take a target_section_table.
2960 (print_section_info, set_section_command)
2961 (exec_set_section_address, exec_target::has_memory): Update.
2962 * corelow.c (class core_target) <m_core_section_table,
2963 m_core_file_mappings>: Remove braces.
2964 <~core_target>: Remove.
2965 (core_target::core_target): Update.
2966 (core_target::~core_target): Remove.
2967 (core_target::build_file_mappings)
2968 (core_target::xfer_memory_via_mappings)
2969 (core_target::xfer_partial, core_target::info_proc_mappings):
2970 Update.
2971 * bfd-target.c (target_bfd::xfer_partial): Update.
2972 (target_bfd::target_bfd): Update.
2973 (target_bfd::~target_bfd): Remove.
2974
7b466b10
TT
29752020-10-12 Tom Tromey <tom@tromey.com>
2976
2977 * target.h (struct target_section, struct target_section_table):
2978 Move to target-section.h.
2979 * target-section.h: New file.
2980
87a37e5e
PA
29812020-10-12 Pedro Alves <pedro@palves.net>
2982
2983 PR exp/26602
2984 * valops.c (struct struct_field_searcher): New.
2985 (update_search_result): Rename to ...
2986 (struct_field_searcher::update_result): ... this. Simplify
2987 prototype. Record all found fields.
2988 (do_search_struct_field): Rename to ...
2989 (struct_field_searcher::search): ... this. Simplify prototype.
2990 Maintain stack of visited baseclass path. Call update_result for
2991 fields too. Keep searching fields in baseclasses instead of
2992 stopping at the first found field.
2993 (search_struct_field): Use struct_field_searcher. When looking
2994 for fields, report ambiguous access attempts.
2995
9370fd51
AB
29962020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2997
2998 * frame.c (inside_main_func): Check full symbols as well as
2999 minimal symbols.
3000
59c8a30b
JB
30012020-10-09 Joel Brobecker <brobecker@adacore.com>
3002
3003 * ada-lang.c (advance_wild_match): Rewrite the function's
3004 description. Change the type of target0, t0 and t1 to char.
3005
7c184d33
TT
30062020-10-09 Tom Tromey <tromey@adacore.com>
3007
3008 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3009
5c4258f4
TT
30102020-10-09 Tom Tromey <tromey@adacore.com>
3011
3012 * ada-lang.h (ada_encode): Return std::string.
3013 * ada-lang.c (ada_encode_1): Return std::string.
3014 (ada_encode): Likewise.
3015 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3016 Update.
3017 * ada-exp.y (block_lookup, write_var_or_type): Update.
3018
3d87245c
HD
30192020-10-09 Hannes Domani <ssbssa@yahoo.de>
3020
3021 PR exp/26714
3022 * printcmd.c (print_formatted): Handle void results as
3023 unformatted prints.
3024
bbb826f5
AB
30252020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * arch/aarch32.c (aarch32_create_target_description): Release the
3028 target_desc_up as late as possible.
3029 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3030 * arch/amd64.c (amd64_create_target_description): Likewise.
3031 * arch/arc.c (arc_create_target_description): Return a
3032 target_desc_up, don't release it.
3033 * arch/arc.h (arc_create_target_description): Update declaration.
3034 (arc_lookup_target_description): Move target_desc_up into the
3035 cache, and return a borrowed pointer.
3036 * arch/arm.c (arm_create_target_description): Release the
3037 target_desc_up as late as possible.
3038 * arch/i386.c (i386_create_target_description): Likewise.
3039 * arch/riscv.h (riscv_create_target_description): Update
3040 declaration to match definition.
3041 * arch/tic6x.c (tic6x_create_target_description): Release the
3042 target_desc_up as late as possible.
3043
361cb219
AB
30442020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3047 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3048
f5c4b229
JV
30492020-10-09 Jan Vrany <jan.vrany@labware.com>
3050
3051 * source.c (directory_command): Notify observers that "directories"
3052 parameter has changed.
3053
b2701685
TT
30542020-10-08 Tom Tromey <tom@tromey.com>
3055
3056 * cli/cli-cmds.c (print_disassembly): Style function name and
3057 addresses. Add _() wrappers.
3058
ada508b6
SV
30592020-10-08 Shahab Vahedi <shahab@synopsys.com>
3060
3061 * NEWS: Mention ARC support in GDBserver.
3062
51a948fd
AB
30632020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * arch/aarch32.c (aarch32_create_target_description): Release
3066 unique_ptr returned from allocate_target_description.
3067 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3068 * arch/amd64.c (amd64_create_target_description): Likewise.
3069 * arch/arc.c (arc_create_target_description): Likewise.
3070 * arch/arm.c (arm_create_target_description): Likewise.
3071 * arch/i386.c (i386_create_target_description): Likewise.
3072 * arch/riscv.c (riscv_create_target_description): Update return
3073 type. Handle allocate_target_description returning a unique_ptr.
3074 (riscv_lookup_target_description): Update to handle unique_ptr.
3075 * arch/tic6x.c (tic6x_create_target_description): Release
3076 unique_ptr returned from allocate_target_description.
3077 * features/microblaze-with-stack-protect.c: Regenerate.
3078 * features/microblaze.c: Regenerate.
3079 * features/mips-dsp-linux.c: Regenerate.
3080 * features/mips-linux.c: Regenerate.
3081 * features/mips64-dsp-linux.c: Regenerate.
3082 * features/mips64-linux.c: Regenerate.
3083 * features/nds32.c: Regenerate.
3084 * features/nios2.c: Regenerate.
3085 * features/or1k.c: Regenerate.
3086 * features/rs6000/powerpc-32.c: Regenerate.
3087 * features/rs6000/powerpc-32l.c: Regenerate.
3088 * features/rs6000/powerpc-403.c: Regenerate.
3089 * features/rs6000/powerpc-403gc.c: Regenerate.
3090 * features/rs6000/powerpc-405.c: Regenerate.
3091 * features/rs6000/powerpc-505.c: Regenerate.
3092 * features/rs6000/powerpc-601.c: Regenerate.
3093 * features/rs6000/powerpc-602.c: Regenerate.
3094 * features/rs6000/powerpc-603.c: Regenerate.
3095 * features/rs6000/powerpc-604.c: Regenerate.
3096 * features/rs6000/powerpc-64.c: Regenerate.
3097 * features/rs6000/powerpc-64l.c: Regenerate.
3098 * features/rs6000/powerpc-7400.c: Regenerate.
3099 * features/rs6000/powerpc-750.c: Regenerate.
3100 * features/rs6000/powerpc-860.c: Regenerate.
3101 * features/rs6000/powerpc-altivec32.c: Regenerate.
3102 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3103 * features/rs6000/powerpc-altivec64.c: Regenerate.
3104 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3105 * features/rs6000/powerpc-e500.c: Regenerate.
3106 * features/rs6000/powerpc-e500l.c: Regenerate.
3107 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3108 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3109 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3110 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3111 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3112 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3113 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3114 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3115 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3116 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3117 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3118 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3119 * features/rs6000/powerpc-vsx32.c: Regenerate.
3120 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3121 * features/rs6000/powerpc-vsx64.c: Regenerate.
3122 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3123 * features/rs6000/rs6000.c: Regenerate.
3124 * features/rx.c: Regenerate.
3125 * features/s390-gs-linux64.c: Regenerate.
3126 * features/s390-linux32.c: Regenerate.
3127 * features/s390-linux32v1.c: Regenerate.
3128 * features/s390-linux32v2.c: Regenerate.
3129 * features/s390-linux64.c: Regenerate.
3130 * features/s390-linux64v1.c: Regenerate.
3131 * features/s390-linux64v2.c: Regenerate.
3132 * features/s390-te-linux64.c: Regenerate.
3133 * features/s390-tevx-linux64.c: Regenerate.
3134 * features/s390-vx-linux64.c: Regenerate.
3135 * features/s390x-gs-linux64.c: Regenerate.
3136 * features/s390x-linux64.c: Regenerate.
3137 * features/s390x-linux64v1.c: Regenerate.
3138 * features/s390x-linux64v2.c: Regenerate.
3139 * features/s390x-te-linux64.c: Regenerate.
3140 * features/s390x-tevx-linux64.c: Regenerate.
3141 * features/s390x-vx-linux64.c: Regenerate.
3142 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3143 from allocate_target_description.
3144 * target-descriptions.c (allocate_target_description): Update
3145 return type.
3146 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3147 allocate_target_description.
3148
485c47e5
TT
31492020-10-07 Tom Tromey <tromey@adacore.com>
3150
3151 * unittests/search-memory-selftests.c: New file.
3152 * Makefile.in (SELFTESTS_SRCS): Add
3153 unittests/search-memory-selftests.c.
3154
3a135a91
TT
31552020-10-07 Tom Tromey <tromey@adacore.com>
3156
3157 PR gdb/16930:
3158 * findcmd.c (_initialize_mem_search): Mention that the range is
3159 inclusive.
3160
4a72de73
TT
31612020-10-07 Tom Tromey <tromey@adacore.com>
3162
3163 * target.h (simple_search_memory): Don't declare.
3164 * target.c (simple_search_memory): Move to gdbsupport.
3165 (default_search_memory): Update.
3166 * remote.c (remote_target::search_memory): Update.
3167
a038ffd8
SM
31682020-10-07 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * Makefile.in (COMPILE): Add CXXFLAGS.
3171 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3172 (check-headers): Add CXXFLAGS.
3173
cc463201
AK
31742020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3175
3176 * arc-linux-tdep.h: New file.
3177 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3178 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3179 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3180 arc_linux_gregset, arc_linux_v2_regset,
3181 arc_linux_iterate_over_regset_sections,
3182 arc_linux_core_read_description): Implement.
3183 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3184 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3185 (arc_gdbarch_features_create): Add.
3186 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3187
e4bd363f
SV
31882020-10-07 Shahab Vahedi <shahab@synopsys.com>
3189
3190 * arch/arc.h: Rename "arc_gdbarch_features" to
3191 "arc_arch_features".
3192 * arc-tdep.h: Likewise.
3193 * arc-tdep.c: Likewise.
3194
b68bef99
TBA
31952020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3196
3197 * infcmd.c (attach_command): Remove the redundant call to
3198 `clear_proceed_status`.
3199
4641551a
KR
32002020-10-07 Kamil Rytarowski <n54@gmx.com>
3201
3202 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3203
91e5e8db
KR
32042020-10-07 Kamil Rytarowski <n54@gmx.com>
3205
3206 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3207 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3208 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3209
64c03bdb
SM
32102020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3213 (_initialize_break_catch_sig): Don't allocate array.
3214
31a8f60f
AB
32152020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3216
3217 * symtab.c (find_pc_line): Return unmapped addresses when the
3218 requested address is also unmapped.
3219
9e6dbd8b
SM
32202020-10-05 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3223 tui/tui-out.h.
3224
a1d217e8
SM
32252020-10-05 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3228 type::is_vector instead of TYPE_VECTOR.
3229
7d144117
SM
32302020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * auto-load.c (auto_load_objfile_script_1): Don't use
3233 debugfile_holder as temporary variable when stripping drive
3234 letter.
3235
cd096ec8
HD
32362020-10-05 Hannes Domani <ssbssa@yahoo.de>
3237
3238 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3239 Add TYPE_CODE_COMPLEX.
3240 (amd64_windows_return_value): Fix types returned via XMM0.
3241
b58e7f72
AH
32422020-10-05 Alan Hayward <alan.hayward@arm.com>
3243
3244 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3245 AArch64/ARM maintainers.
3246
8d378f27
SM
32472020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * NEWS: Mention set/show debug event-loop.
3250
d5519913
TT
32512020-10-02 Tom Tromey <tromey@adacore.com>
3252
3253 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3254 REG_EXTENDED.
3255
18b67edc
SM
32562020-10-02 Simon Marchi <simon.marchi@efficios.com>
3257
3258 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3259 * procfs.c (procfs_inferior_created): Remove.
3260 (_initialize_procfs): Don't register procfs_inferior_created.
3261
6b01403b
SM
32622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * async-event.c (invoke_async_signal_handlers): Add debug
3265 print.
3266 (check_async_event_handlers): Likewise.
3267 * event-top.c (show_debug_event_loop): New function.
3268 (_initialize_event_top): Register "set debug event-loop"
3269 setting.
3270
ba988419
SM
32712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3272
3273 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3274 * debug.h: Remove.
3275 * infrun.c: Include gdbsupport/common-debug.h.
3276 * linux-nat.c: Likewise.
3277
db20ebdf
SM
32782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3279
3280 * async-event.h (create_async_signal_handler): Add name
3281 parameter.
3282 (create_async_event_handler): Likewise.
3283 * async-event.c (struct async_signal_handler) <name>: New field.
3284 (struct async_event_handler) <name>: New field.
3285 (create_async_signal_handler): Assign name.
3286 (create_async_event_handler): Assign name.
3287 * event-top.c (async_init_signals): Pass name when creating
3288 handler.
3289 * infrun.c (_initialize_infrun): Likewise.
3290 * record-btrace.c (record_btrace_push_target): Likewise.
3291 * record-full.c (record_full_open): Likewise.
3292 * remote-notif.c (remote_notif_state_allocate): Likewise.
3293 * remote.c (remote_target::open_1): Likewise.
3294 * tui/tui-win.c (tui_initialize_win): Likewise.
3295
2554f6f5
SM
32962020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * async-event.c (initialize_async_signal_handlers): Pass name to
3299 add_file_handler
3300 * event-top.c (ui_register_input_event_handler): Likewise.
3301 * linux-nat.c (linux_nat_target::async): Likewise.
3302 * run-on-main-thread.c (_initialize_run_on_main_thread):
3303 Likewise
3304 * ser-base.c (reschedule): Likewise.
3305 (ser_base_async): Likewise.
3306 * tui/tui-io.c: Likewise.
3307 * top.h (struct ui) <num>: New field.
3308 * top.c (highest_ui_num): New variable.
3309 (ui::ui): Initialize num.
3310
a7aba266
SM
33112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * observable.h <inferior_created>: Remove parameters. Update all
3314 listeners.
3315 * inferior.h (post_create_inferior): Remove target parameter.
3316 Update all callers.
3317
048fde1e 33182020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3319
3320 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3321 and DW_MACRO_undef_strx.
3322 (dwarf_decode_macros): Likewise
3323 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3324 which is the value of DW_AT_str_offsets_base.
3325 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3326 str_offsets_base.
3327
064280be
KR
33282020-10-01 Kamil Rytarowski <n54@gmx.com>
3329
3330 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3331
6ff33035
KR
33322020-10-01 Kamil Rytarowski <n54@gmx.com>
3333
3334 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3335 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3336
1eb6eb79
KR
33372020-10-01 Kamil Rytarowski <n54@gmx.com>
3338
3339 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3340
95eb9e54
TV
33412020-09-30 Tom de Vries <tdevries@suse.de>
3342
3343 PR symtab/26683
3344 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3345
cae21f8e
TT
33462020-09-30 Tom Tromey <tromey@adacore.com>
3347
3348 * dwarf2/read.c (handle_variant): Use constant_value.
3349
529908cb
TT
33502020-09-29 Tom Tromey <tom@tromey.com>
3351
3352 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3353 (read_file_scope, dwarf2_get_pc_bounds)
3354 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3355 (read_structure_type, handle_struct_member_die)
3356 (read_enumeration_type, read_array_type, read_set_type)
3357 (read_tag_pointer_type, read_tag_reference_type)
3358 (read_subroutine_type, read_base_type, read_subrange_type)
3359 (read_full_die_1, partial_die_info::read)
3360 (partial_die_info::read, by, new_symbol)
3361 (dwarf2_const_value_data, dwarf2_const_value_attr)
3362 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3363 (prepare_one_comp_unit): Update.
3364 * dwarf2/attribute.h (DW_UNSND): Remove.
3365
c45bc3f8
TT
33662020-09-29 Tom Tromey <tom@tromey.com>
3367
3368 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3369 (read_subroutine_type, partial_die_info::read)
3370 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3371 (dwarf2_add_member_fn): Update.
3372 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3373 * dwarf2/attribute.c (attribute::as_boolean): New method.
3374
23dca5c3
TT
33752020-09-29 Tom Tromey <tom@tromey.com>
3376
3377 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3378 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3379 method.
3380 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3381
52c14d11
TT
33822020-09-29 Tom Tromey <tom@tromey.com>
3383
3384 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3385 the attribute's form.
3386
e8e5c158
TT
33872020-09-29 Tom Tromey <tom@tromey.com>
3388
3389 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3390 (dwarf2_add_member_fn): Update.
3391 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3392 * dwarf2/attribute.c (attribute::defaulted): New method, from
3393 is_valid_DW_AT_defaulted.
3394
d4df075e
TT
33952020-09-29 Tom Tromey <tom@tromey.com>
3396
3397 * dwarf2/read.c (dw2_get_file_names_reader)
3398 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3399 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3400 (dwarf2_symbol_mark_computed): Use as_unsigned.
3401 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3402 method.
3403 <form_is_section_offset>: Update comment.
3404
bf23a268
TT
34052020-09-29 Tom Tromey <tom@tromey.com>
3406
3407 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3408 dwarf2_default_access_attribute. Look up attribute.
3409 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3410 Update.
3411
7a5f294d
TT
34122020-09-29 Tom Tromey <tom@tromey.com>
3413
3414 * dwarf2/read.c (skip_one_die): Update.
3415 (read_full_die_1): Change how reprocessing is done.
3416 (partial_die_info::read): Update.
3417 (read_attribute_value): Remove need_reprocess parameter.
3418 (read_attribute): Likewise.
3419 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3420 New method.
3421
36d378cf
TT
34222020-09-29 Tom Tromey <tom@tromey.com>
3423
3424 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3425 (dwarf2_const_value_attr, dump_die_shallow)
3426 (dwarf2_fetch_constant_bytes): Update.
3427 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3428 comment.
3429 <set_address>: New method.
3430 (DW_ADDR): Remove.
3431 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3432 (attribute::as_string, attribute::as_address): Add assert.
3433
fe56917a
TT
34342020-09-29 Tom Tromey <tom@tromey.com>
3435
3436 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3437 (read_attribute_reprocess, read_attribute_value): Update.
3438 (read_attribute): Clear requires_reprocessing.
3439 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3440 form_requires_reprocessing>: New methods.
3441 <string_init>: Clear requires_reprocessing.
3442 <set_unsigned_reprocess>: New method.
3443 <name>: Shrink by one bit.
3444 <requires_reprocessing>: New member.
3445 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3446 method.
3447
414ad644
TT
34482020-09-29 Tom Tromey <tom@tromey.com>
3449
3450 * dwarf2/read.c (read_attribute_value): Update.
3451 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3452 set_unsigned>: New methods.
3453 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3454
1bc397c5
TT
34552020-09-29 Tom Tromey <tom@tromey.com>
3456
3457 * dwarf2/read.c (get_alignment, read_array_order)
3458 (read_attribute_value, dwarf2_const_value_attr)
3459 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3460 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3461 New methods.
3462 (DW_SND): Remove.
3463
630ed6b9
TT
34642020-09-29 Tom Tromey <tom@tromey.com>
3465
3466 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3467 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3468 Update.
3469 * dwarf2/attribute.h (struct attribute) <as_signature,
3470 set_signature>: New methods.
3471 (DW_SIGNATURE): Remove.
3472
9d2246fc
TT
34732020-09-29 Tom Tromey <tom@tromey.com>
3474
3475 * dwarf2/read.c (read_call_site_scope)
3476 (handle_data_member_location, dwarf2_add_member_fn)
3477 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3478 (partial_die_info::read, read_attribute_value)
3479 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3480 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3481 (dwarf2_symbol_mark_computed): Update.
3482 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3483 methods.
3484 (DW_BLOCK): Remove.
3485 * dwarf2/attribute.c (attribute::form_is_block): Add
3486 DW_FORM_data16.
3487
c6481205
TT
34882020-09-29 Tom Tromey <tom@tromey.com>
3489
3490 * dwarf2/read.c (read_cutu_die_from_dwo)
3491 (read_attribute_reprocess, read_attribute_value, read_attribute)
3492 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3493 (dwarf2_fetch_constant_bytes): Update.
3494 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3495 <set_string_noncanonical, set_string_canonical>: New methods.
3496 <string_is_canonical>: Update comment.
3497 <canonical_string_p>: Add assert.
3498 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3499 * dwarf2/attribute.c (attribute::form_is_string): New method.
3500 (attribute::string): Use it.
3501
3b64bf15
TT
35022020-09-29 Tom Tromey <tom@tromey.com>
3503
3504 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3505 (dump_die_shallow): Use canonical_string_p.
3506 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3507 method.
3508
2c830f54
TT
35092020-09-29 Tom Tromey <tom@tromey.com>
3510
3511 * dwarf2/read.c (partial_die_info::read)
3512 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3513 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3514 attribute::as_string.
3515
6c412691
TT
35162020-09-29 Tom Tromey <tom@tromey.com>
3517
3518 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3519 DW_ADDR.
3520 (attribute::string): Don't use DW_STRING.
3521 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3522 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3523
95f982e5
TT
35242020-09-29 Tom Tromey <tom@tromey.com>
3525
3526 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3527 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3528 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3529 * dwarf2/attribute.h (struct attribute): Rename methods.
3530 * dwarf2/attribute.c (attribute::as_address): Rename from
3531 value_as_address.
3532 (attribute::as_string): Rename from value_as_string.
3533
f800b00e
TT
35342020-09-29 Tom Tromey <tom@tromey.com>
3535
3536 * dwarf2/read.c (partial_die_info::read) <case
3537 DW_AT_linkage_name>: Use value_as_string.
3538 (dwarf2_string_attr): Use value_as_string.
3539 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3540 method.
3541 * dwarf2/attribute.c (attribute::value_as_string): New method.
3542
de38d64a
PA
35432020-09-29 Pedro Alves <pedro@palves.net>
3544
3545 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3546 defined before using '#pragma GCC diagnostic' instead of checking
3547 __clang__.
3548
9aed480c
TT
35492020-09-28 Tom Tromey <tom@tromey.com>
3550
3551 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3552 (handle_signal_stop): Update.
3553 * procfs.c (procfs_target::insert_watchpoint): Update.
3554 * target.h (target_have_steppable_watchpoint): Now a function.
3555
8a3ecb79
TT
35562020-09-28 Tom Tromey <tom@tromey.com>
3557
3558 * infrun.c (set_schedlock_func): Update.
3559 * target.h (target_can_lock_scheduler): Now a function.
3560
55f6301a
TT
35612020-09-28 Tom Tromey <tom@tromey.com>
3562
3563 * inferior.h (class inferior) <has_execution>: Update.
3564 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3565 * valops.c (find_function_in_inferior)
3566 (value_allocate_space_in_inferior): Update.
3567 * top.c (kill_or_detach): Update.
3568 * target.c (target_preopen, set_target_permissions): Update.
3569 (target_has_execution_current): Remove.
3570 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3571 Update.
3572 * solib.c (update_solib_list, reload_shared_libraries): Update.
3573 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3574 * solib-dsbt.c (enable_break): Update.
3575 * score-tdep.c (score7_fetch_inst): Update.
3576 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3577 Update.
3578 * remote.c (remote_target::start_remote)
3579 (remote_target::remote_check_symbols, remote_target::open_1)
3580 (remote_target::remote_detach_1, remote_target::verify_memory)
3581 (remote_target::xfer_partial, remote_target::read_description)
3582 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3583 * record-full.c (record_full_open_1): Update.
3584 * record-btrace.c (record_btrace_target_open): Update.
3585 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3586 (value_nsstring): Update.
3587 * linux-thread-db.c (add_thread_db_info)
3588 (thread_db_find_new_threads_silently, check_thread_db_callback)
3589 (try_thread_db_load_1, record_thread): Update.
3590 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3591 Update.
3592 * linux-fork.c (checkpoint_command): Update.
3593 * infrun.c (set_non_stop, set_observer_mode)
3594 (check_multi_target_resumption, for_each_just_stopped_thread)
3595 (maybe_remove_breakpoints, normal_stop)
3596 (class infcall_suspend_state): Update.
3597 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3598 (info_program_command, attach_command): Update.
3599 * infcall.c (call_function_by_hand_dummy): Update.
3600 * inf-loop.c (inferior_event_handler): Update.
3601 * gcore.c (gcore_command, derive_heap_segment): Update.
3602 * exec.c (exec_file_command): Update.
3603 * eval.c (evaluate_subexp): Update.
3604 * compile/compile.c (compile_to_object): Update.
3605 * cli/cli-dump.c (restore_command): Update.
3606 * breakpoint.c (update_watchpoint)
3607 (update_inserted_breakpoint_locations)
3608 (insert_breakpoint_locations, get_bpstat_thread): Update.
3609 * target.h (target_has_execution): Remove macro.
3610 (target_has_execution_current): Don't declare.
3611 (target_has_execution): Rename from target_has_execution_1. Add
3612 argument default.
3613
05374cfd
TT
36142020-09-28 Tom Tromey <tom@tromey.com>
3615
3616 * mi/mi-main.c (exec_reverse_continue)
3617 (mi_cmd_list_target_features): Update.
3618 * infrun.c (set_exec_direction_func): Update.
3619 * target.c (default_execution_direction): Update.
3620 * reverse.c (exec_reverse_once): Update.
3621 * target.h (target_can_execute_reverse): Now a function.
3622
9dccd06e
TT
36232020-09-28 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-regs.c (tui_get_register)
3626 (tui_data_window::show_registers): Update.
3627 * thread.c (scoped_restore_current_thread::restore)
3628 (scoped_restore_current_thread::scoped_restore_current_thread):
3629 Update.
3630 * regcache-dump.c (regcache_print): Update.
3631 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3632 Update.
3633 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3634 * mep-tdep.c (current_me_module, current_options): Update.
3635 * linux-thread-db.c (thread_db_load): Update.
3636 * infcmd.c (registers_info, info_vector_command)
3637 (info_float_command): Update.
3638 * ia64-tdep.c (ia64_frame_prev_register)
3639 (ia64_sigtramp_frame_prev_register): Update.
3640 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3641 * gcore.c (derive_stack_segment): Update.
3642 * frame.c (get_current_frame, has_stack_frames): Update.
3643 * findvar.c (language_defn::read_var_value): Update.
3644 * arm-tdep.c (arm_pc_is_thumb): Update.
3645 * target.c (target_has_registers): Rename from
3646 target_has_registers_1.
3647 * target.h (target_has_registers): Remove macro.
3648 (target_has_registers): Rename from target_has_registers_1.
3649
841de120
TT
36502020-09-28 Tom Tromey <tom@tromey.com>
3651
3652 * windows-tdep.c (tlb_make_value): Update.
3653 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3654 * thread.c (scoped_restore_current_thread::restore)
3655 (scoped_restore_current_thread::scoped_restore_current_thread)
3656 (thread_command): Update.
3657 * stack.c (backtrace_command_1, frame_apply_level_command)
3658 (frame_apply_all_command, frame_apply_command): Update.
3659 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3660 Update.
3661 * gcore.c (derive_stack_segment): Update.
3662 * frame.c (get_current_frame, has_stack_frames): Update.
3663 * auxv.c (info_auxv_command): Update.
3664 * ada-tasks.c (ada_build_task_list): Update.
3665 * target.c (target_has_stack): Rename from target_has_stack_1.
3666 * target.h (target_has_stack): Remove macro.
3667 (target_has_stack): Rename from target_has_stack_1.
3668
a739972c
TT
36692020-09-28 Tom Tromey <tom@tromey.com>
3670
3671 * target.c (target_has_memory): Rename from target_has_memory_1.
3672 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3673 * thread.c (scoped_restore_current_thread::restore)
3674 (scoped_restore_current_thread::scoped_restore_current_thread):
3675 Update.
3676 * frame.c (get_current_frame, has_stack_frames): Update.
3677 * target.h (target_has_memory): Remove macro.
3678 (target_has_memory): Rename from target_has_memory_1.
3679
5b8a4776
TT
36802020-09-28 Tom Tromey <tom@tromey.com>
3681
3682 * target.c (target_has_all_memory_1): Remove.
3683 * target.h (target_has_all_memory): Remove define.
3684 (target_has_all_memory_1): Don't declare.
3685
bd356ec6
SM
36862020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3687
3688 * ser-base.c: Adjust comments formatting.
3689
2c72d5e5
TT
36902020-09-27 Tom Tromey <tom@tromey.com>
3691
3692 PR tui/25342:
3693 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3694
35a98237
TT
36952020-09-27 Tom Tromey <tom@tromey.com>
3696
3697 PR tui/25342:
3698 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3699
9e820dec
TT
37002020-09-27 Tom Tromey <tom@tromey.com>
3701
3702 * unittests/tui-selftests.c: Update.
3703 * tui/tui-winsource.h (struct tui_source_window_base)
3704 <extra_margin, show_line_number, refresh_pad>: New methods.
3705 <m_max_length, m_pad>: New members.
3706 (tui_copy_source_line): Update.
3707 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3708 first_col, line_width, ndigits parameters. Add length.
3709 (tui_source_window_base::show_source_line): Write to pad. Line
3710 number now 0-based.
3711 (tui_source_window_base::refresh_pad): New method.
3712 (tui_source_window_base::show_source_content): Write to pad. Call
3713 refresh_pad.
3714 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3715 not refill.
3716 (tui_source_window_base::update_exec_info): Call
3717 show_line_number.
3718 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3719 method.
3720 <m_digits>: New member.
3721 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3722 and m_max_length.
3723 (tui_source_window::show_line_number): New method.
3724 * tui/tui-io.h (tui_puts): Fix comment.
3725 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3726 m_max_length.
3727
c15c15c8
TT
37282020-09-27 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-winsource.c
3731 (tui_source_window_base::set_is_exec_point_at): Don't call
3732 show_source_line.
3733
149830c1
TT
37342020-09-27 Tom Tromey <tom@tromey.com>
3735
3736 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3737 method.
3738 <erase>: Update.
3739 <cursor_x, cursor_y>: Remove.
3740 <m_inner_window>: New member.
3741 (tui_py_window::rerender): Create inner window.
3742 (tui_py_window::output): Write to inner window.
3743
8f9929bb
GR
37442020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3745
3746 PR python/26586
3747 * cli/cli-script.c (execute_control_commands): don't set
3748 instream to nullptr here as this breaks the from_tty argument
3749 to gdb.execute in Python.
3750 (execute_user_command): set instream to nullptr here instead.
3751
956bdb59
SM
37522020-09-25 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * infrun.h (infrun_debug_printf): Fix formatting.
3755 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3756
3b93626b
SJ
37572020-09-25 Saagar Jha <saagar@saagarjha.com>
3758
3759 * compile/compile-object-load.h (struct munmap_list): Add
3760 explicitly-defined move constructor.
3761
b551a89f
TT
37622020-09-24 Tom Tromey <tromey@adacore.com>
3763
3764 PR tui/26638:
3765 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3766 method.
3767 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3768 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3769 (tui_prev_win): Rewrite.
3770
99bb393f
HD
37712020-09-23 Hannes Domani <ssbssa@yahoo.de>
3772
3773 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3774 in WOW64 processes as SIGINT.
3775 * nat/windows-nat.h: Make wow64_process a shared variable.
3776 * windows-nat.c: Remove static wow64_process variable.
3777
20a5fcbd
TT
37782020-09-23 Tom Tromey <tom@tromey.com>
3779
3780 PR symtab/25470:
3781 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3782 offset and bit size.
3783 * printcmd.c (print_scalar_formatted): Handle zero-length
3784 integer.
3785 (print_scalar_formatted): Use bit_size_differs_p.
3786 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3787 constant.
3788 (union type_specific): <int_stuff>: New member.
3789 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3790 methods.
3791 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3792 TYPE_SPECIFIC_FIELD.
3793 (recursive_dump_type, copy_type_recursive): Update.
3794 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3795 DW_AT_data_bit_offset.
3796
bac51ab7
TT
37972020-09-23 Tom Tromey <tom@tromey.com>
3798
3799 * utils.h (class gdb_argv): Add move operators.
3800 <append>: New methods.
3801 * compile/compile.c (build_argc_argv): Remove.
3802 (compile_args_argc): Remove.
3803 (compile_args_argv): Change type.
3804 (set_compile_args): Simplify.
3805 (append_args): Remove.
3806 (filter_args): Remove argcp parameter.
3807 (get_args): Return gdb_argv. Simplify.
3808 (compile_to_object): Update.
3809
92677124
TT
38102020-09-23 Tom Tromey <tom@tromey.com>
3811
3812 * compile/compile-object-run.c (do_module_cleanup)
3813 <~do_module_cleanup> :Remove.
3814 (do_module_cleanup): Update.
3815 * compile/compile-object-load.h (struct munmap_list): Add move
3816 assignment operator.
3817 <source_file>: Now a std::string.
3818 <munmap_list>: Rename. No longer a pointer.
3819 * compile/compile-object-load.c (struct setup_sections_data): Add
3820 constructor.
3821 <setup_one_section>: Declare.
3822 <munmap_list>: Move earlier.
3823 <m_bfd>: New member.
3824 <m_last_size, m_last_section_first, m_last_prot,
3825 m_last_max_alignment>: Rename, add initializers where needed.
3826 (setup_sections_data::setup_one_section): Rename from
3827 setup_sections. Update.
3828 (compile_object_load): Update. Don't use bfd_map_over_sections.
3829
e616f60a
TT
38302020-09-23 Tom Tromey <tom@tromey.com>
3831
3832 * compile/compile-object-run.c (struct do_module_cleanup): Add
3833 parameters to constructor. Update destructor.
3834 <source_file, scope, scope_data, out_value_type, out_value_addr,
3835 munmap_list_head, objfile_name_string>: Remove.
3836 <module>: New member.
3837 (do_module_cleanup): Update.
3838 (compile_object_run): Update.
3839
e947a848
TT
38402020-09-23 Tom Tromey <tom@tromey.com>
3841
3842 * compile/compile.c (eval_compile_command): Update.
3843 * compile/compile-object-run.h (compile_object_run): Take a
3844 compile_module_up.
3845 * compile/compile-object-run.c (compile_object_run): Take a
3846 compile_module_up.
3847 * compile/compile-object-load.h (struct compile_module): Add
3848 constructor, destructor.
3849 (compile_module_up): New typedef.
3850 (compile_object_load): Return compile_object_up.
3851 * compile/compile-object-load.c (compile_object_load): Return
3852 compile_module_up.
3853
0dbf6ee6
TT
38542020-09-23 Tom Tromey <tom@tromey.com>
3855
3856 * compile/compile-object-run.c (struct do_module_cleanup): Add
3857 constructor, destructor.
3858 <objfile_name_string>: Don't use struct hack.
3859 (do_module_cleanup): Use delete.
3860 (compile_object_run): Use new.
3861
ebe824f5
TT
38622020-09-23 Tom Tromey <tom@tromey.com>
3863
3864 * compile/compile-cplus-types.c
3865 (compile_cplus_convert_struct_or_union): Use std::vector.
3866 (compile_cplus_convert_func): Likewise.
3867 * compile/compile-c-types.c (convert_func): Use std::vector.
3868
5dd918d9
TT
38692020-09-21 Tom Tromey <tromey@adacore.com>
3870
3871 * sparc-tdep.c (sparc32_skip_prologue): Use
3872 skip_prologue_using_sal.
3873
5486c517
TT
38742020-09-19 Tom Tromey <tom@tromey.com>
3875
3876 * symfile.c (add_section_size_callback): Remove.
3877 (load_one_section): Rename from load_section_callback. Change
3878 parameters.
3879 (generic_load): Use foreach.
3880
8a6bb1d1
TT
38812020-09-19 Tom Tromey <tom@tromey.com>
3882
3883 * exec.c (add_to_section_table): Remove.
3884 (build_section_table): Use foreach.
3885
08f93a1a
TT
38862020-09-19 Tom Tromey <tom@tromey.com>
3887
3888 * elfread.c (elf_locate_sections): Change parameters.
3889 (elf_symfile_read): Use foreach.
3890
03cd72b8
TT
38912020-09-19 Tom Tromey <tom@tromey.com>
3892
3893 * cli/cli-dump.c (struct callback_data): Remove.
3894 (restore_one_section): Rename from restore_section_callback.
3895 Change parameters.
3896 (restore_binary_file): Change parameters.
3897 (restore_command): Use foreach.
3898
f4f2b85f
TT
38992020-09-19 Tom Tromey <tom@tromey.com>
3900
3901 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3902 (gcore_copy_callback): Likewise.
3903 (gcore_memory_sections): Use foreach.
3904
b35c1d1c
TT
39052020-09-19 Tom Tromey <tom@tromey.com>
3906
3907 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3908 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3909 parameters.
3910 (generic_elf_osabi_sniffer): Use foreach.
3911 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3912 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3913
5bb6e9dd
TT
39142020-09-19 Tom Tromey <tom@tromey.com>
3915
3916 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3917 (dwarf2_get_dwz_file): Use foreach.
3918 (dwarf2_locate_dwo_sections): Change parameters.
3919 (open_and_init_dwo_file): Use foreach.
3920 (dwarf2_locate_common_dwp_sections): Change parameters.
3921 (open_and_init_dwp_file): Use foreach.
3922
ad7277da
TT
39232020-09-19 Tom Tromey <tom@tromey.com>
3924
3925 * symfile.h: (find_lowest_section): Don't declare.
3926 * symfile.c (find_lowest_section): Now static. Change
3927 parameters.
3928 (struct place_section_arg): Remove.
3929 (place_section): Change parameters.
3930 (addr_info_make_relative): Use foreach.
3931 (symfile_dummy_outputs): Remove.
3932 (default_symfile_relocate): Use foreach.
3933
cb814f2e
TT
39342020-09-19 Tom Tromey <tom@tromey.com>
3935
3936 * objfiles.c (add_to_objfile_sections): Rename from
3937 add_to_objfile_sections_full.
3938 (add_to_objfile_sections): Remove.
3939 (build_objfile_section_table): Use foreach.
3940
3cabfd26
TT
39412020-09-19 Tom Tromey <tom@tromey.com>
3942
3943 * stap-probe.c (get_stap_base_address_1): Remove.
3944 (get_stap_base_address): Use foreach.
3945
1ce51eb5
TT
39462020-09-19 Tom Tromey <tom@tromey.com>
3947
3948 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3949 parameters.
3950 (gdb_bfd_close_or_warn): Use foreach.
3951
a190fabb
TT
39522020-09-19 Tom Tromey <tom@tromey.com>
3953
3954 * corelow.c (add_to_thread_list): Change parameters.
3955 (core_target_open): Use foreach.
3956
cafb0d81
TT
39572020-09-19 Tom Tromey <tom@tromey.com>
3958
3959 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3960 existing function.
3961
c8d5abea
AB
39622020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3965 for arrays.
3966
6d816919
AB
39672020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * eval.c: Remove 'f-lang.h' include.
3970 (value_f90_subarray): Moved to f-lang.c.
3971 (eval_call): Renamed to...
3972 (evaluate_subexp_do_call): ...this, is no longer static, header
3973 comment moved into header file.
3974 (evaluate_funcall): Update call to eval_call.
3975 (skip_undetermined_arglist): Moved to f-lang.c.
3976 (fortran_value_subarray): Likewise.
3977 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3978 moved to evaluate_subexp_f.
3979 (calc_f77_array_dims): Moved to f-lang.c
3980 * expprint.c (print_subexp_funcall): New function.
3981 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3982 moved to print_subexp_f, OP_FUNCALL uses new function.
3983 (dump_subexp_body_funcall): New function.
3984 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3985 moved to dump_subexp_f, OP_FUNCALL uses new function.
3986 * expression.h (evaluate_subexp_do_call): Declare.
3987 * f-lang.c (value_f90_subarray): Moved from eval.c.
3988 (skip_undetermined_arglist): Likewise.
3989 (calc_f77_array_dims): Likewise.
3990 (fortran_value_subarray): Likewise.
3991 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3992 (operator_length_f): Likewise.
3993 (print_subexp_f): Likewise.
3994 (dump_subexp_body_f): Likewise.
3995 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3996 declaration of this operation to here.
3997 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3998 support moved to operator_length_f.
3999 * parser-defs.h (dump_subexp_body_funcall): Declare.
4000 (print_subexp_funcall): Declare.
4001 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4002 fortran-operator.def.
4003
8c37706a
AB
40042020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4005
4006 * eval.c (fortran_value_subarray): New function, content is taken
4007 from...
4008 (evaluate_subexp_standard): ...here, in two places. Now arrays
4009 and strings both call the new function.
4010 (calc_f77_array_dims): Add header comment, handle strings.
4011
14f9473c
VC
40122020-09-18 Victor Collod <vcollod@nvidia.com>
4013
4014 PR gdb/26635
4015 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4016 (i386_analyze_prologue): Call i386_skip_endbr.
4017
b60cea74
TT
40182020-09-18 Tom Tromey <tromey@adacore.com>
4019
4020 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4021 (windows_nat_target::wait): Update.
4022 * target/wait.h (enum target_wait_flag): New. Use
4023 DEF_ENUM_FLAGS_TYPE.
4024 * target/target.h (target_wait): Change type of options.
4025 * target.h (target_options_to_string, default_target_wait):
4026 Update.
4027 (struct target_ops) <wait>: Change type of options.
4028 * target.c (target_wait, default_target_wait, do_option): Change
4029 type of "options".
4030 (target_options_to_string): Likewise.
4031 * target-delegates.c: Rebuild.
4032 * target-debug.h (target_debug_print_target_wait_flags): Rename
4033 from target_debug_print_options.
4034 * sol-thread.c (class sol_thread_target) <wait>: Update.
4035 (sol_thread_target::wait): Update.
4036 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4037 (rs6000_nat_target::wait): Update.
4038 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4039 Update.
4040 (remote_target::wait_ns, remote_target::wait_as): Change type of
4041 "options".
4042 (remote_target::wait): Update.
4043 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4044 (gdbsim_target::wait): Update.
4045 * record-full.c (class record_full_base_target) <wait>: Update.
4046 (record_full_wait_1): Change type of "options".
4047 (record_full_base_target::wait): Update.
4048 * record-btrace.c (class record_btrace_target) <wait>: Update.
4049 (record_btrace_target::wait): Update.
4050 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4051 Update.
4052 (ravenscar_thread_target::wait): Update.
4053 * procfs.c (class procfs_target) <wait>: Update.
4054 (procfs_target::wait): Update.
4055 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4056 * obsd-nat.c (obsd_nat_target::wait): Update.
4057 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4058 (nto_procfs_target::wait): Update.
4059 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4060 * nbsd-nat.c (nbsd_wait): Change type of "options".
4061 (nbsd_nat_target::wait): Update.
4062 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4063 (thread_db_target::wait): Update.
4064 * linux-nat.h (class linux_nat_target) <wait>: Update.
4065 * linux-nat.c (linux_nat_target::wait): Update.
4066 (linux_nat_wait_1): Update.
4067 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4068 "options".
4069 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4070 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4071 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4072 (go32_nat_target::wait): Update.
4073 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4074 * gnu-nat.c (gnu_nat_target::wait): Update.
4075 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4076 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4077 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4078 * darwin-nat.c (darwin_nat_target::wait): Update.
4079 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4080 (bsd_uthread_target::wait): Update.
4081 * aix-thread.c (class aix_thread_target) <wait>: Update.
4082 (aix_thread_target::wait): Update.
4083
0295dde6
AB
40842020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4085
4086 * compile/compile-object-run.c (create_copied_type_recursive): New
4087 function.
4088 (compile_object_run): Use new function.
4089
d3483b43
JT
40902020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4091
4092 * NEWS: Mention x86_64 Cygwin core file support.
4093
e7d612ad
JT
40942020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4095
4096 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4097 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4098
aff9d387
JT
40992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4100
62a5151b
JT
4101 * windows-tdep.h: Add prototypes.
4102 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4103 (i386_windows_core_pid_to_str): Move and rename ...
4104 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4105 (windows_core_pid_to_str): ... and here.
4106 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4107
41082020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4109 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4110 (amd64_windows_init_abi_common): ... and register.
4111
7d155da3
JT
41122020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4113
4114 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4115 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4116
e8ef12b9
PA
41172020-09-18 Pedro Alves <pedro@palves.net>
4118
4119 PR gdb/26631
4120 * thread.c (thread_find_command): Switch inferior before calling
4121 target methods.
4122
c1e1314d
TT
41232020-09-17 Tom Tromey <tromey@adacore.com>
4124
4125 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4126 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4127 (tdesc_arch_data_up): New typedef.
4128 (tdesc_use_registers, tdesc_data_alloc): Update.
4129 (tdesc_data_cleanup): Don't declare.
4130 * target-descriptions.c (tdesc_data_alloc): Return a
4131 tdesc_arch_data_up.
4132 (tdesc_arch_data_deleter::operator()): Rename from
4133 tdesc_data_cleanup. Change argument type.
4134 (tdesc_use_registers): Change early_data to an rvalue reference.
4135 (tdesc_use_registers): Don't use delete.
4136 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4137 * s390-tdep.c (s390_gdbarch_init): Update.
4138 * rx-tdep.c (rx_gdbarch_init): Update.
4139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4140 * riscv-tdep.c (riscv_gdbarch_init): Update.
4141 * or1k-tdep.c (or1k_gdbarch_init): Update.
4142 * nios2-tdep.c (nios2_gdbarch_init): Update.
4143 * nds32-tdep.c (nds32_gdbarch_init): Update.
4144 * mips-tdep.c (mips_gdbarch_init): Update.
4145 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4146 * m68k-tdep.c (m68k_gdbarch_init): Update.
4147 * i386-tdep.c (i386_gdbarch_init): Update.
4148 * arm-tdep.c (arm_gdbarch_init): Update.
4149 * arc-tdep.c (arc_tdesc_init): Update.
4150 (arc_gdbarch_init): Update.
4151 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4152
0363df3d
HD
41532020-09-17 Hannes Domani <ssbssa@yahoo.de>
4154
4155 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4156 for WOW64 processes.
4157
280a9412
TT
41582020-09-17 Tom Tromey <tom@tromey.com>
4159
4160 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4161
6108fd18
TT
41622020-09-17 Tom Tromey <tom@tromey.com>
4163
4164 * value.c (preserve_values): Update.
4165 * python/py-type.c (save_objfile_types): Update.
4166 * guile/scm-type.c (save_objfile_types): Update.
4167 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4168 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4169 * compile/compile-object-run.c (compile_object_run): Update.
4170
fa9b1164
TT
41712020-09-17 Tom Tromey <tom@tromey.com>
4172
4173 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4174 Remove.
4175 <m_table>: Now htab_up.
4176 * typeprint.c (typedef_hash_table::recursively_update)
4177 (typedef_hash_table::add_template_parameters)
4178 (typedef_hash_table::typedef_hash_table): Update.
4179 (typedef_hash_table::~typedef_hash_table): Remove.
4180 (typedef_hash_table::typedef_hash_table)
4181 (typedef_hash_table::find_global_typedef)
4182 (typedef_hash_table::find_typedef): Update.
4183
eb53f105
TT
41842020-09-17 Tom Tromey <tom@tromey.com>
4185
4186 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4187
7a8a5d47
TT
41882020-09-17 Tom Tromey <tom@tromey.com>
4189
4190 * linespec.c (class decode_compound_collector)
4191 <~decode_compound_collector>: Remove.
4192 <m_unique_syms>: Now htab_up.
4193 (decode_compound_collector::operator ()): Update.
4194 (class symtab_collector) <~symtab_collector>: Remove.
4195 <m_symtab_table>: Now htab_up.
4196 (symtab_collector::operator ()): Update.
4197
99032cfc
TT
41982020-09-17 Tom Tromey <tom@tromey.com>
4199
4200 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4201 (filename_seen_cache::clear): Update.
4202 (~filename_seen_cache): Remove.
4203 (filename_seen_cache::seen): Update.
4204 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4205 htab_up.
4206 <~filename_seen_cache>: Remove.
4207 <traverse>: Update.
4208
32580f6d
TT
42092020-09-17 Tom Tromey <tom@tromey.com>
4210
4211 * completer.c (completion_tracker::discard_completions)
4212 (completion_tracker::~completion_tracker)
4213 (completion_tracker::maybe_add_completion)
4214 (completion_tracker::remove_completion)
4215 (completion_tracker::recompute_lowest_common_denominator)
4216 (completion_tracker::build_completion_result): Update.
4217 * completer.h (class completion_tracker) <have_completions>:
4218 Update.
4219 <m_entries_hash>: Now htab_up.
4220
c1fb9836
TT
42212020-09-17 Tom Tromey <tom@tromey.com>
4222
4223 * breakpoint.c (ambiguous_names_p): Use htab_up.
4224
88f07206
TT
42252020-09-17 Tom Tromey <tom@tromey.com>
4226
4227 * auto-load.c (struct auto_load_pspace_info)
4228 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4229 <loaded_script_files, loaded_script_texts>: Change type to
4230 htab_up.
4231 (~auto_load_pspace_info) Remove.
4232 (init_loaded_scripts_info, maybe_add_script_file)
4233 (maybe_add_script_text, auto_load_info_scripts): Update.
4234
9519b2ee
TT
42352020-09-17 Tom Tromey <tromey@adacore.com>
4236
4237 * c-exp.y (name_obstack): Now static.
4238
d2cd4113
CC
42392020-09-17 Chungyi Chi <demonic@csie.io>
4240
4241 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4242
b650a282
SM
42432020-09-16 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4246 (add_solib_catchpoint): Likewise.
4247 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4248 to bool.
4249 (add_solib_catchpoint): Change int parameter/variable to bool.
4250 (catch_load_or_unload): Likewise.
4251 (init_catchpoint): Likewise.
4252 (create_fork_vfork_event_catchpoint): Likewise.
4253 (catch_fork_command_1): Likewise.
4254 (catch_exec_command_1): Likewise.
4255
4d0bcfcf
SM
42562020-09-16 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4259 Change instance_flags to m_instance_flags.
4260
fe830662
TT
42612020-09-16 Tom Tromey <tromey@adacore.com>
4262
4263 PR gdb/26598:
4264 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4265
fe5ddfc3
JB
42662020-09-16 John Baldwin <jhb@FreeBSD.org>
4267
4268 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4269 PL_FLAG_EXEC.
4270 (fbsd_nat_target::insert_exec_catchpoint)
4271 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4272 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4273 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4274
e911c666
JB
42752020-09-16 John Baldwin <jhb@FreeBSD.org>
4276
4277 * configure.ac: Remove check for kinfo_getvmmap().
4278 * configure, config.in: Regenerate.
4279 * fbsd-nat.c (fbsd_read_mapping): Remove
4280 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4281 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4282 kinfo_get_vmmap() are always present.
4283
1f17d372
JB
42842020-09-16 John Baldwin <jhb@FreeBSD.org>
4285
4286 * fbsd-nat.c: Always include support for
4287 TARGET_OBJECT_SIGNAL_INFO.
4288
bcb1da7f
JB
42892020-09-16 John Baldwin <jhb@FreeBSD.org>
4290
4291 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4292 sysctl and remove procfs fallback.
4293
5515f729
JB
42942020-09-16 John Baldwin <jhb@FreeBSD.org>
4295
4296 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4297 * fbsd-nat.h: Likewise.
4298
da1df1db
TBA
42992020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4300
4301 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4302 argument.
4303
0e25e767
AB
43042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4305
4306 * ada-lang.c (ada_language_data): Delete.
4307 (ada_language): Remove references to ada_language_data.
4308 * c-lang.c (c_language_data): Delete.
4309 (c_language): Remove references to c_language_data.
4310 (cplus_language_data): Delete.
4311 (cplus_language): Remove references to cplus_language_data.
4312 (asm_language_data): Delete.
4313 (asm_language): Remove references to asm_language_data.
4314 (minimal_language_data): Delete.
4315 (minimal_language): Remove references to minimal_language_data.
4316 * d-lang.c (d_language_data): Delete.
4317 (d_language): Remove references to d_language_data.
4318 * f-lang.c (f_language_data): Delete.
4319 (f_language): Remove references to f_language_data.
4320 * go-lang.c (go_language_data): Delete.
4321 (go_language): Remove references to go_language_data.
4322 * language.c (unknown_language_data): Delete.
4323 (unknown_language): Remove references to unknown_language_data.
4324 (auto_language_data): Delete.
4325 (auto_language): Remove references to auto_language_data.
4326 * language.h (language_data): Delete struct.
4327 (language_defn): No longer inherit from language_data.
4328 * m2-lang.c (m2_language_data): Delete.
4329 (m2_language): Remove references to m2_language_data.
4330 * objc-lang.c (objc_language_data): Delete.
4331 (objc_language): Remove references to objc_language_data.
4332 * opencl-lang.c (opencl_language_data): Delete.
4333 (opencl_language): Remove references to opencl_language_data.
4334 * p-lang.c (pascal_language_data): Delete.
4335 (pascal_language): Remove references to pascal_language_data.
4336 * rust-lang.c (rust_language_data): Delete.
4337 (rust_language): Remove references to rust_language_data.
4338
b7c6e27d
AB
43392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4342 initializer.
4343 (ada_language::opcode_print_table): New member function.
4344 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4345 (c_language::opcode_print_table): New member function.
4346 (cplus_language_data): Remove la_op_print_tab initializer.
4347 (cplus_language::opcode_print_table): New member function.
4348 (asm_language_data): Remove la_op_print_tab initializer.
4349 (asm_language::opcode_print_table): New member function.
4350 (minimal_language_data): Remove la_op_print_tab initializer.
4351 (minimal_language::opcode_print_table): New member function.
4352 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4353 (d_language::opcode_print_table): New member function.
4354 * expprint.c (print_subexp_standard): Update call to
4355 opcode_print_table.
4356 (op_string): Likewise.
4357 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4358 (f_language::opcode_print_table): New member function.
4359 * go-lang.c (go_language_data): Remove la_op_print_tab
4360 initializer.
4361 (go_language::opcode_print_table): New member function.
4362 * language.c (unknown_language_data): Remove la_op_print_tab
4363 initializer.
4364 (unknown_language::opcode_print_table): New member function.
4365 (auto_language_data): Remove la_op_print_tab initializer.
4366 (auto_language::opcode_print_table): New member function.
4367 * language.h (language_data): Remove la_op_print_tab field.
4368 (language_defn::opcode_print_table): Declare new member function.
4369 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4370 initializer.
4371 (m2_language::opcode_print_table): New member function.
4372 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4373 initializer.
4374 (objc_language::opcode_print_table): New member function.
4375 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4376 initializer.
4377 (opencl_language::opcode_print_table): New member function.
4378 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4379 initializer.
4380 (pascal_language::opcode_print_table): New member function.
4381 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4382 initializer.
4383 (rust_language::opcode_print_table): New member function.
4384
5aba6ebe
AB
43852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4388 (ada_language::expression_ops): New member function.
4389 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4390 (c_language::expression_ops): New member function.
4391 (cplus_language_data): Remove la_exp_desc initializer.
4392 (cplus_language::expression_ops): New member function.
4393 (asm_language_data): Remove la_exp_desc initializer.
4394 (asm_language::expression_ops): New member function.
4395 (minimal_language_data): Remove la_exp_desc initializer.
4396 (minimal_language::expression_ops): New member function.
4397 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4398 (d_language::expression_ops): New member function.
4399 * eval.c (evaluate_subexp): Update call to expression_ops.
4400 * expprint.c (print_subexp): Likewise.
4401 (op_name): Likewise.
4402 (dump_subexp_body): Likewise.
4403 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4404 (f_language::expression_ops): New member function.
4405 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4406 (go_language::expression_ops): New member function.
4407 * language.c (language_defn::expression_ops): New function.
4408 (unknown_language_data): Remove la_exp_desc initializer.
4409 (auto_language_data): Likewise.
4410 * language.h (language_data): Remove la_exp_desc field.
4411 (language_defn::expression_ops): Declare new member function.
4412 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4413 (m2_language::expression_ops): New member function.
4414 * objc-lang.c (objc_language_data): Remove la_exp_desc
4415 initializer.
4416 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4417 initializer.
4418 (opencl_language::expression_ops): New member function.
4419 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4420 * parse.c (operator_length): Update call to expression_ops.
4421 (exp_iterate): Likewise.
4422 * rust-lang.c (rust_language_data): Remove la_exp_desc
4423 initializer.
4424 (ruse_language::expression_ops): New member function.
4425
b63a3f3f
AB
44262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4429 initializer.
4430 (ada_language::varobj_ops): New member function.
4431 * c-lang.c (c_language_data): Remove la_varobj_ops
4432 initializer.
4433 (cplus_language_data): Likewise.
4434 (cplus_language::varobj_ops): New member function.
4435 (asm_language_data): Remove la_varobj_ops initializer.
4436 (minimal_language_data): Likewise.
4437 * d-lang.c (d_language_data): Likewise.
4438 * f-lang.c (f_language_data): Likewise.
4439 * go-lang.c (go_language_data): Likewise.
4440 * language.c (language_defn::varobj_ops): New function.
4441 (unknown_language_data): Remove la_varobj_ops
4442 initializer.
4443 (auto_language_data): Likewise.
4444 * language.h (language_data): Remove la_varobj_ops field.
4445 (language_defn::varobj_ops): Declare new member function.
4446 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4447 * objc-lang.c (objc_language_data): Likewise.
4448 * opencl-lang.c (opencl_language_data): Likewise.
4449 * p-lang.c (pascal_language_data): Likewise.
4450 * rust-lang.c (rust_language_data): Likewise.
4451 * varobj.c (varobj_create): Update call to varobj_ops.
4452 * varobj.h (default_varobj_ops): Delete define.
4453
1ac14a04
AB
44542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4457 initializer.
4458 * c-lang.c (c_language_data): Likewise.
4459 (c_language::macro_expansion): New member function.
4460 (cplus_language_data): Likewise.
4461 (cplus_language::macro_expansion): New member function.
4462 (asm_language_data): Likewise.
4463 (asm_language::macro_expansion): New member function.
4464 (minimal_language_data): Likewise.
4465 (minimal_language::macro_expansion): New member function.
4466 * d-lang.c (d_language_data): Remove la_macro_expansion
4467 initializer.
4468 * f-lang.c (f_language_data): Likewise.
4469 * go-lang.c (go_language_data): Likewise.
4470 * language.c (unknown_language_data): Likewise.
4471 (auto_language_data): Likewise.
4472 * language.h (language_data): Remove la_macro_expansion field.
4473 (language_defn::macro_expansion): New member function.
4474 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4475 initializer.
4476 * objc-lang.c (objc_language_data): Likewise.
4477 (objc_language::macro_expansion): New member function.
4478 * opencl-lang.c (opencl_language_data): Likewise.
4479 (opencl_language::macro_expansion): New member function.
4480 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4481 initializer.
4482 * rust-lang.c (rust_language_data): Likewise.
4483 * symtab.c (default_collect_symbol_completion_matches_break_on):
4484 Update call to macro_expansion.
4485
3a3440fb
AB
44862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4487
4488 * ada-lang.c (ada_language_data): Remove la_array_ordering
4489 initializer.
4490 * c-lang.c (c_language_data): Likewise.
4491 (cplus_language_data): Likewise.
4492 (asm_language_data): Likewise.
4493 (minimal_language_data): Likewise.
4494 * d-lang.c (d_language_data): Likewise.
4495 * dwarf2/read.c (read_array_order): Update for call to
4496 array_ordering.
4497 * f-lang.c (f_language_data): Remove la_array_ordering
4498 initializer.
4499 (f_language::array_ordering): New member function.
4500 * go-lang.c (go_language_data): Remove la_array_ordering
4501 initializer.
4502 * language.c (unknown_language_data): Likewise.
4503 (auto_language_data): Likewise.
4504 * language.h (language_data): Delete la_array_ordering field.
4505 (language_defn::array_ordering): New member function.
4506 * m2-lang.c (m2_language_data): Remove la_array_ordering
4507 initializer.
4508 * objc-lang.c (objc_language_data): Likewise.
4509 * opencl-lang.c (opencl_language_data): Likewise.
4510 * p-lang.c (pascal_language_data): Likewise.
4511 * rust-lang.c (rust_language_data): Likewise.
4512
0d201fa4
AB
45132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4514
4515 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4516 initializer.
4517 * c-lang.c (c_language_data): Likewise.
4518 (cplus_language_data): Likewise.
4519 (asm_language_data): Likewise.
4520 (minimal_language_data): Likewise.
4521 * d-lang.c (d_language_data): Likewise.
4522 * f-lang.c (f_language_data): Likewise.
4523 (f_language::case_sensitivity): New member function.
4524 * go-lang.c (go_language_data): Remove la_case_sensitivity
4525 initializer.
4526 * language.c (enum case_mode): Moved here from language.h.
4527 (case_mode): Make static.
4528 (show_case_command): Update for case_sensitivity being a method.
4529 (set_case_command): Likewise.
4530 (set_range_case): Likewise.
4531 (unknown_language_data): Remove la_case_sensitivity initializer.
4532 (auto_language_data): Likewise.
4533 * language.h (case_mode): Delete, move enum declaration to
4534 language.c.
4535 (language_data): Delete la_case_sensitivity field.
4536 (language_defn::case_sensitivity): New member function.
4537 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4538 initializer.
4539 * objc-lang.c (objc_language_data): Likewise.
4540 * opencl-lang.c (opencl_language_data): Likewise.
4541 * p-lang.c (pascal_language_data): Likewise.
4542 * rust-lang.c (rust_language_data): Likewise.
4543
efdf6a73
AB
45442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * ada-lang.c (ada_language_data): Remove la_range_check
4547 initializer.
4548 * c-lang.c (c_language_data): Likewise.
4549 (cplus_language_data): Likewise.
4550 (asm_language_data): Likewise.
4551 (minimal_language_data): Likewise.
4552 * d-lang.c (d_language_data): Likewise.
4553 * f-lang.c (f_language_data): Likewise.
4554 (f_language::range_checking_on_by_default): New member function.
4555 * go-lang.c (go_language_data): Remove la_range_check initializer.
4556 * language.c (enum range_mode): Moved here from language.h.
4557 (range_mode): Made static.
4558 (show_range_command): Update to use
4559 range_checking_on_by_default.
4560 (set_range_command): Likewise.
4561 (set_range_case): Likewise.
4562 (unknown_language_data): Remove la_range_check initializer.
4563 (auto_language_data): Likewise.
4564 * language.h (range_mode): Delete. Enum definition moved to
4565 language.c.
4566 (language_data): Remove la_range_check field.
4567 (language_defn::range_checking_on_by_default): New member
4568 function.
4569 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4570 (m2_language::range_checking_on_by_default): New member function.
4571 * objc-lang.c (objc_language_data): Remove la_range_check
4572 initializer.
4573 * opencl-lang.c (opencl_language_data): Likewise.
4574 * p-lang.c (pascal_language_data): Likewise.
4575 (pascal_language::range_checking_on_by_default): New member
4576 function.
4577 * rust-lang.c (rust_language_data): Remove la_range_check
4578 initializer.
4579 (rust_language::range_checking_on_by_default): New member
4580 function.
4581
bf92aec5
AB
45822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 * dwarf2/read.c (dwarf2_physname): Remove special case for
4585 language_go.
4586 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4587 member function.
4588
d3355e4d
AB
45892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 * ada-lang.c (ada_language_data): Remove
4592 la_store_sym_names_in_linkage_form_p initializer.
4593 (ada_language::store_sym_names_in_linkage_form_p): New member
4594 function.
4595 * c-lang.c (c_language_data): Remove
4596 la_store_sym_names_in_linkage_form_p initializer.
4597 (c_language::store_sym_names_in_linkage_form_p): New member
4598 function.
4599 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4600 initializer.
4601 (asm_language_data): Likewise.
4602 (asm_language::store_sym_names_in_linkage_form_p): New member
4603 function.
4604 (minimal_language_data): Remove
4605 la_store_sym_names_in_linkage_form_p initializer.
4606 (minimal_language::store_sym_names_in_linkage_form_p): New member
4607 function.
4608 * d-lang.c (d_language_data): Remove
4609 la_store_sym_names_in_linkage_form_p initializer.
4610 * dwarf2/read.c (dwarf2_physname): Update call to
4611 store_sym_names_in_linkage_form_p.
4612 * f-lang.c (f_language_data): Remove
4613 la_store_sym_names_in_linkage_form_p initializer.
4614 * go-lang.c (go_language_data): Remove
4615 la_store_sym_names_in_linkage_form_p initializer.
4616 * language.c (unknown_language_data): Remove
4617 la_store_sym_names_in_linkage_form_p initializer.
4618 (unknown_language::store_sym_names_in_linkage_form_p): New member
4619 function.
4620 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4621 initializer.
4622 (auto_language::store_sym_names_in_linkage_form_p): New member
4623 function.
4624 * language.h (language_data): Remove
4625 la_store_sym_names_in_linkage_form_p member variable.
4626 (language_defn::store_sym_names_in_linkage_form_p): New member
4627 function.
4628 * m2-lang.c (m2_language_data): Remove
4629 la_store_sym_names_in_linkage_form_p initializer.
4630 * objc-lang.c (objc_language_data): Likewise.
4631 * opencl-lang.c (opencl_language_data): Likewise.
4632 * p-lang.c (pascal_language_data): Likewise.
4633 * rust-lang.c (rust_language_data): Likewise.
4634
22c12a6c
AB
46352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * ada-lang.c (ada_language_data): Remove string_lower_bound
4638 initializer.
4639 * c-lang.c (c_language_data): Likewise.
4640 (cplus_language_data): Likewise.
4641 (asm_language_data): Likewise.
4642 (minimal_language_data): Likewise.
4643 * d-lang.c (d_language_data): Likewise.
4644 * f-lang.c (f_language_data): Likewise.
4645 * go-lang.c (go_language_data): Likewise.
4646 * language.c (unknown_language_data): Likewise.
4647 (auto_language_data): Likewise.
4648 * language.h (language_data): Remove string_lower_bound field.
4649 (language_defn::string_lower_bound): New member function.
4650 * m2-lang.c (m2_language_data): Remove string_lower_bound
4651 initializer.
4652 (m2_language::string_lower_bound): New member function.
4653 * objc-lang.c (objc_language_data): Remove string_lower_bound
4654 initializer.
4655 * opencl-lang.c (opencl_language_data): Likewise.
4656 * p-lang.c (pascal_language_data): Likewise.
4657 * rust-lang.c (rust_language_data): Likewise.
4658 * valops.c (value_cstring): Update call to string_lower_bound.
4659 (value_string): Likewise.
4660 * value.c (allocate_repeated_value): Likewise.
4661
1c236ddd
AB
46622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * valops.c (value_repeat): Fix incorrect argument name in comment.
4665
67bd3fd5
AB
46662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * ada-lang.c (ada_language_data): Remove c_style_arrays
4669 initializer.
4670 (ada_language::c_style_arrays_p): New member fuction.
4671 * c-lang.c (c_language_data): Remove c_style_arrays
4672 initializer.
4673 (cplus_language_data): Likewise.
4674 (asm_language_data): Likewise.
4675 (minimal_language_data): Likewise.
4676 * d-lang.c (d_language_data): Likewise.
4677 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4678 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4679 (f_language::c_style_arrays_p): New member function.
4680 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4681 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4682 * language.c (unknown_language_data): Remove c_style_arrays
4683 initializer.
4684 (auto_language_data): Likewise.
4685 * language.h (language_data): Remove c_style_arrays field.
4686 (language_defn::c_style_arrays_p): New member function.
4687 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4688 (m2_language::c_style_arrays_p): New member function.
4689 * objc-lang.c (objc_language_data): Remove c_style_arrays
4690 initializer.
4691 * opencl-lang.c (opencl_language_data): Likewise.
4692 * p-lang.c (pascal_language_data): Likewise.
4693 * rust-lang.c (rust_language_data): Likewise.
4694 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4695 and update local variable to a bool.
4696 * valops.c (value_cast): Update call to c_style_arrays_p.
4697 (value_array): Likewise.
4698 * value.c (coerce_array): Likewise.
4699
85967615
AB
47002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4701
4702 * ada-lang.c (ada_language_data): Remove la_language initializer.
4703 * c-lang.c (c_language_data): Likewise.
4704 (cplus_language_data): Likewise.
4705 (asm_language_data): Likewise.
4706 (minimal_language_data): Likewise.
4707 * d-lang.c (d_language_data): Likewise.
4708 * f-lang.c (f_language_data): Likewise.
4709 * go-lang.c (go_language_data): Likewise.
4710 * language.c (unknown_language_data): Likewise.
4711 (auto_language_data): Likewise.
4712 * language.h (language_data): Remove la_language field.
4713 (language_defn::language_defn): Initialise la_language field.
4714 (language_defn::la_language): New member variable.
4715 * m2-lang.c (m2_language_data): Remove la_language field.
4716 * objc-lang.c (objc_language_data): Likewise.
4717 * opencl-lang.c (opencl_language_data): Likewise.
4718 * p-lang.c (pascal_language_data): Likewise.
4719 * rust-lang.c (rust_language_data): Likewise.
4720
e171d6f1
AB
47212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4722
4723 * ada-lang.c (ada_extensions): Delete, moved into
4724 ada_language::filename_extensions.
4725 (ada_language_data): Remove la_filename_extensions initializer.
4726 (ada_language::filename_extensions): New member function.
4727 * c-lang.c (c_extensions): Delete, moved into
4728 c_language::filename_extensions.
4729 (c_language_data): Remove la_filename_extensions initializer.
4730 (c_language::filename_extensions): New member function.
4731 (cplus_extensions): Delete, moved into
4732 cplus_language::filename_extensions.
4733 (cplus_language_data): Remove la_filename_extensions initializer.
4734 (cplus_language::filename_extensions): New member function.
4735 (asm_extensions): Delete, moved into
4736 asm_language::filename_extensions.
4737 (asm_language_data): Remove la_filename_extensions initializer.
4738 (asm_language::filename_extensions): New member function.
4739 (minimal_language_data): Remove la_filename_extensions
4740 initializer.
4741 * d-lang.c (d_extensions): Delete, moved into
4742 d_language::filename_extensions.
4743 (d_language_data): Remove la_filename_extensions initializer.
4744 (d_language::filename_extensions): New member function.
4745 * f-lang.c (f_extensions): Delete, moved into
4746 f_language::filename_extensions.
4747 (f_language_data): Remove la_filename_extensions initializer.
4748 (f_language::filename_extensions): New member function.
4749 * go-lang.c (go_language_data): Remove la_filename_extensions
4750 initializer.
4751 * language.c (add_set_language_command): Update now that
4752 filename_extensions returns a vector.
4753 (unknown_language_data): Remove la_filename_extensions
4754 initializer.
4755 (auto_language_data): Likewise.
4756 * language.h (language_data): Remove la_filename_extensions field.
4757 (language_defn::filename_extensions): New member function.
4758 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4759 initializer.
4760 * objc-lang.c (objc_extensions): Delete, moved into
4761 objc_language::filename_extensions.
4762 (objc_language_data): Remove la_filename_extensions initializer.
4763 (objc_language::filename_extensions): New member function.
4764 * opencl-lang.c (opencl_language_data): Remove
4765 la_filename_extensions initializer.
4766 * p-lang.c (pascal_extensions): Delete, moved into
4767 pascal_language::filename_extensions.
4768 (pascal_language_data): Remove la_filename_extensions initializer.
4769 (pascal_language::filename_extensions): New member function.
4770 * rust-lang.c (rust_extensions): Delete, moved into
4771 rust_language::filename_extensions.
4772 (rust_language_data): Remove la_filename_extensions initializer.
4773 (rust_language::filename_extensions): New member function.
4774 * symfile.c (add_filename_language): Add new assert.
4775
6f7664a9
AB
47762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 * ada-lang.c (ada_language_data): Remove la_name and
4779 la_natural_name initializers.
4780 (ada_language::name): New member function.
4781 (ada_language::natural_name): New member function.
4782 * c-lang.c (c_language_data): Remove la_name and
4783 la_natural_name initializers.
4784 (c_language::name): New member function.
4785 (c_language::natural_name): New member function.
4786 (cplus_language_data): Remove la_name and
4787 la_natural_name initializers.
4788 (cplus_language::name): New member function.
4789 (cplus_language::natural_name): New member function.
4790 (asm_language_data): Remove la_name and
4791 la_natural_name initializers.
4792 (asm_language::name): New member function.
4793 (asm_language::natural_name): New member function.
4794 (minimal_language_data): Remove la_name and
4795 la_natural_name initializers.
4796 (minimal_language::name): New member function.
4797 (minimal_language::natural_name): New member function.
4798 * compile/compile.c (compile_to_object): Update call to
4799 lanugage_defn::name.
4800 * d-lang.c (d_language_data): Remove la_name and
4801 la_natural_name initializers.
4802 (d_language::name): New member function.
4803 (d_language::natural_name): New member function.
4804 * expprint.c (print_subexp_standard): Update call to
4805 language_defn::name.
4806 (dump_raw_expression): Likewise
4807 (dump_prefix_expression): Likewise.
4808 * f-lang.c (f_language_data): Remove la_name and
4809 la_natural_name initializers.
4810 (f_language::name): New member function.
4811 (f_language::natural_name): New member function.
4812 * go-lang.c (go_language_data): Remove la_name and
4813 la_natural_name initializers.
4814 (go_language::name): New member function.
4815 (go_language::natural_name): New member function.
4816 * language.c (show_language_command): Update call to
4817 language_defn::name.
4818 (set_language_command): Likewise.
4819 (language_enum): Likewise.
4820 (language_str): Likewise.
4821 (add_set_language_command): Likewise, use
4822 language_defn::natural_name in the doc string.
4823 (unknown_language_data): Remove la_name and
4824 la_natural_name initializers.
4825 (unknown_language::name): New member function.
4826 (unknown_language::natural_name): New member function.
4827 (auto_language_data): Remove la_name and
4828 la_natural_name initializers.
4829 (auto_language::name): New member function.
4830 (auto_language::natural_name): New member function.
4831 (language_lookup_primitive_type_as_symbol): Update call to
4832 language_defn::name.
4833 * language.h (language_data): Remove la_name and la_natural_name
4834 member variables.
4835 (language_defn::name): New member function.
4836 (language_defn::natural_name): New member function.
4837 * m2-lang.c (m2_language_data): Remove la_name and
4838 la_natural_name initializers.
4839 (m2_language::name): New member function.
4840 (m2_language::natural_name): New member function.
4841 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4842 language_defn::natural_name.
4843 * objc-lang.c (objc_language_data): Remove la_name and
4844 la_natural_name initializers.
4845 (objc_language::name): New member function.
4846 (objc_language::natural_name): New member function.
4847 * opencl-lang.c (opencl_language_data): Remove la_name and
4848 la_natural_name initializers.
4849 (opencl_language::name): New member function.
4850 (opencl_language::natural_name): New member function.
4851 * p-lang.c (pascal_language_data): Remove la_name and
4852 la_natural_name initializers.
4853 (pascal_language::name): New member function.
4854 (pascal_language::natural_name): New member function.
4855 * rust-lang.c (rust_language_data): Remove la_name and
4856 la_natural_name initializers.
4857 (rust_language::name): New member function.
4858 (rust_language::natural_name): New member function.
4859 * symtab.c (lookup_language_this): Update call to
4860 language_defn::name.
4861
5bae7c4e
AB
48622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4863
4864 * ada-lang.c (ada_language_data): Remove la_name_of_this
4865 initializer.
4866 * ax-gdb.c (gen_expr): Update call to name_of_this.
4867 * c-exp.y (classify_name): Likewise.
4868 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4869 (cplus_language_data): Likewise.
4870 (cplus_language::name_of_this): New member function.
4871 (asm_language_data): Remove la_name_of_this initializer.
4872 (minimal_language_data): Likewise.
4873 * d-lang.c (d_language_data): Likewise.
4874 (d_language::name_of_this): New member function.
4875 * expprint.c (print_subexp_standard): Update call to name_of_this.
4876 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4877 * go-lang.c (go_language_data): Likewise.
4878 * language.c (unknown_language_data): Likewise.
4879 (unknown_language::name_of_this): New member function.
4880 (auto_language_data): Remove la_name_of_this initializer.
4881 (auto_language::name_of_this): New member function.
4882 * language.h (language_data): Delete la_name_of_this member
4883 variable.
4884 (language_defn::name_of_this): New member function.
4885 * m2-lang.c (m2_language_data): Remove la_name_of_this
4886 initializer.
4887 * objc-lang.c (objc_language_data): Likewise.
4888 (objc_language::name_of_this): New member function.
4889 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4890 initializer.
4891 * p-lang.c (pascal_language_data): Likewise.
4892 (pascal_language::name_of_this): New member function.
4893 * rust-lang.c (rust_language_data): Remove la_name_of_this
4894 initializer.
4895 * symtab.c (lookup_language_this): Update call to name_of_this.
4896 (lookup_symbol_aux): Likewise.
4897 * valops.c (value_of_this): Likewise.
4898
22e3f3ed
AB
48992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * ada-lang.c (ada_language_data): Remove
4902 la_struct_too_deep_ellipsis initializer.
4903 (ada_language::struct_too_deep_ellipsis): New member function.
4904 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4905 initializer.
4906 (cplus_language_data): Likewise.
4907 (asm_language_data): Likewise.
4908 (minimal_language_data): Likewise.
4909 * cp-valprint.c (cp_print_value): Update call to
4910 struct_too_deep_ellipsis.
4911 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4912 initializer.
4913 * f-lang.c (f_language_data): Likewise.
4914 (f_language::struct_too_deep_ellipsis): New member function.
4915 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4916 initializer.
4917 * language.c (unknown_language_data): Likewise.
4918 (auto_language_data): Likewise.
4919 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4920 member variable.
4921 (language_defn::struct_too_deep_ellipsis): New member function.
4922 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4923 initializer.Q
4924 * objc-lang.c (objc_language_data): Likewise.
4925 * opencl-lang.c (opencl_language_data): Likewise.
4926 * p-lang.c (pascal_language_data): Likewise.
4927 * rust-lang.c (rust_language_data): Likewise.
4928 * valprint.c (val_print_check_max_depth): Update call to
4929 struct_too_deep_ellipsis.
4930
ed29e1c7
FW
49312020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4932
4933 * MAINTAINERS (Write After Approval): Add myself.
4934
12d8f940
TT
49352020-09-15 Tom Tromey <tom@tromey.com>
4936
4937 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4938 Remove.
4939
6b5a7bc7
TT
49402020-09-15 Tom Tromey <tom@tromey.com>
4941
4942 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4943 and TYPE_CODE_METHODPTR cases.
4944 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4945 (c_value_print_inner): Update.
4946 * valprint.c (generic_value_print_memberptr): New function, from
4947 c_value_print_memberptr.
4948 (generic_value_print): Use it. Call cplus_print_method_ptr.
4949
47f0e2ff
TT
49502020-09-15 Tom Tromey <tromey@adacore.com>
4951
4952 * python/python-internal.h (PyInt_FromLong): Remove define.
4953 * python/py-value.c (convert_value_from_python): Use
4954 gdb_py_object_from_longest.
4955 * python/py-type.c (typy_get_code): Use
4956 gdb_py_object_from_longest.
4957 * python/py-symtab.c (salpy_get_line): Use
4958 gdb_py_object_from_longest.
4959 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4960 gdb_py_object_from_longest.
4961 * python/py-record.c (recpy_gap_reason_code): Use
4962 gdb_py_object_from_longest.
4963 * python/py-record-btrace.c (recpy_bt_insn_size)
4964 (recpy_bt_func_level, btpy_list_count): Use
4965 gdb_py_object_from_longest.
4966 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4967 gdb_py_object_from_longest. Fix error handling.
4968 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4969 gdb_py_object_from_longest.
4970 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4971 gdb_py_object_from_longest.
4972 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4973 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4974 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4975
512116ce
TT
49762020-09-15 Tom Tromey <tromey@adacore.com>
4977
4978 * python/python.c (gdbpy_parameter_value): Use
4979 gdb_py_object_from_ulongest.
4980
4ab1029c
TT
49812020-09-15 Tom Tromey <tromey@adacore.com>
4982
4983 * python/py-infevents.c (create_register_changed_event_object):
4984 Use gdb_py_object_from_longest.
4985 * python/py-exitedevent.c (create_exited_event_object): Use
4986 gdb_py_object_from_longest.
4987
062534d4
TT
49882020-09-15 Tom Tromey <tromey@adacore.com>
4989
4990 * python/python.c (gdbpy_parameter_value): Use
4991 gdb_py_object_from_longest.
4992 * python/py-type.c (convert_field, typy_range): Use
4993 gdb_py_object_from_longest.
4994 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4995 gdb_py_object_from_longest.
4996 * python/py-lazy-string.c (stpy_get_length): Use
4997 gdb_py_object_from_longest.
4998 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4999 gdb_py_object_from_longest.
5000 * python/py-infevents.c (create_memory_changed_event_object): Use
5001 gdb_py_object_from_longest.
5002 * python/py-inferior.c (infpy_get_num): Use
5003 gdb_py_object_from_longest.
5004 (infpy_get_pid): Likewise.
5005
d1cab987
TT
50062020-09-15 Tom Tromey <tromey@adacore.com>
5007
5008 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5009 defines.
5010 * python/py-value.c (valpy_long): Use
5011 gdb_py_object_from_ulongest.
5012 * python/py-symtab.c (salpy_get_pc): Use
5013 gdb_py_object_from_ulongest.
5014 (salpy_get_last): Likewise.
5015 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5016 gdb_py_object_from_ulongest.
5017 * python/py-lazy-string.c (stpy_get_address): Use
5018 gdb_py_object_from_ulongest.
5019 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5020 * python/py-arch.c (archpy_disassemble): Use
5021 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5022 error handling.
5023
4bde49dc
TT
50242020-09-15 Tom Tromey <tromey@adacore.com>
5025
5026 * python/python-internal.h (gdb_py_long_from_longest): Remove
5027 defines.
5028 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5029 * python/py-type.c (convert_field, typy_get_sizeof): Use
5030 gdb_py_object_from_longest.
5031 * python/py-record-btrace.c (btpy_list_index): Use
5032 gdb_py_object_from_longest.
5033
37431074
TT
50342020-09-15 Tom Tromey <tromey@adacore.com>
5035
5036 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5037 * python/py-record.c (recpy_element_number): Use
5038 gdb_py_object_from_longest.
5039 (recpy_gap_number): Likewise.
5040
cbe25684
TT
50412020-09-15 Tom Tromey <tromey@adacore.com>
5042
5043 * top.c (ui::ui): Update.
5044 (highest_ui_num): Remove.
5045 * top.h (struct ui) <num>: Remove.
5046
db92ac45
TT
50472020-09-15 Tom Tromey <tromey@adacore.com>
5048
5049 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5050 * ui-style.c (ansi_regex_text): Now array.
5051 * rust-exp.y (number_regex_text): Now array.
5052 * linespec.c (linespec_quote_characters): Now array.
5053 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5054 Now arrays.
5055
d2b31b67
SM
50562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5057
5058 * debuginfod-support.c (debuginfod_client_deleter): New.
5059 (debuginfod_client_up): New.
5060 (debuginfod_init): Return debuginfod_client_up.
5061 (debuginfod_source_query): Adjust.
5062 (debuginfod_debuginfo_query): Adjust.
5063
3246bd8e
SM
50642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * debuginfod-support.c (debuginfod_source_query): Use
5067 make_unique_xstrdup.
5068
10242f36
SM
50692020-09-14 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5072 with `type::instance_flags`.
5073
e1044e6a
MM
50742020-09-14 Michael Mullin <masmullin@gmail.com>
5075
5076 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5077 Remove baton parameter.
5078
04902b09
PA
50792020-09-14 Pedro Alves <pedro@palves.net>
5080
5081 * Makefile.in (SELFTESTS_SRCS): Add
5082 unittests/enum-flags-selftests.c.
5083 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5084 btrace_function_flags instead of enum btrace_function_flag.
5085 * compile/compile-c-types.c (convert_qualified): Use
5086 enum_flags::raw.
5087 * compile/compile-cplus-symbols.c (convert_one_symbol)
5088 (convert_symbol_bmsym):
5089 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5090 (compile_cplus_convert_struct_or_union_methods)
5091 (compile_cplus_instance::convert_qualified_base):
5092 * go-exp.y (parse_string_or_char): Add cast to int.
5093 * unittests/enum-flags-selftests.c: New file.
5094 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5095 type to btrace_thread_flags from btrace_thread_flag.
5096 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5097 local's type to btrace_thread_flags from btrace_thread_flag. Add
5098 cast in DEBUG call.
5099
69896a2c
PA
51002020-09-14 Pedro Alves <pedro@palves.net>
5101
5102 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5103 * gdbtypes.c (address_space_name_to_int): Rename to ...
5104 (address_space_name_to_type_instance_flags): ... this.
5105 (address_space_int_to_name): Rename to ...
5106 (address_space_type_instance_flags_to_name): ... this.
5107 * gdbtypes.h (address_space_name_to_int): Rename to ...
5108 (address_space_name_to_type_instance_flags): ... this.
5109 (address_space_int_to_name): Rename to ...
5110 (address_space_type_instance_flags_to_name): ... this.
5111 * type-stack.c (type_stack::insert): Adjust to rename.
5112 * type-stack.h (type_stack::insert): Likewise.
5113
314ad88d
PA
51142020-09-14 Pedro Alves <pedro@palves.net>
5115 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * avr-tdep.c (avr_address_class_type_flags): Return
5118 type_instance_flags.
5119 (avr_address_class_type_flags_to_name): Take a
5120 type_instance_flags.
5121 (avr_address_class_name_to_type_flags): Return bool and take a
5122 type_instance_flags.
5123 * d-lang.c (build_d_types): Use type::set_instance_flags.
5124 * ft32-tdep.c (ft32_address_class_type_flags): Return
5125 type_instance_flags.
5126 (ft32_address_class_type_flags_to_name): Take a
5127 type_instance_flags.
5128 (ft32_address_class_name_to_type_flags): Return bool and take a
5129 type_instance_flags.
5130 (ft32_gdbarch_init): Use type::set_instance_flags.
5131 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5132 * gdbarch.h, gdbarch.c: Regenerate.
5133 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5134 (address_class_name_to_type_flags): Use type_instance_flags and
5135 bool.
5136 * gdbtypes.c (address_space_name_to_int)
5137 (address_space_int_to_name, make_qualified_type): Use
5138 type_instance_flags.
5139 (make_qualified_type): Use type_instance_flags and
5140 type::set_instance_flags.
5141 (make_type_with_address_space, make_cv_type, make_vector_type)
5142 (check_typedef): Use type_instance_flags.
5143 (recursive_dump_type): Cast type_instance_flags to unsigned for
5144 printing.
5145 (copy_type_recursive): Use type::set_instance_flags.
5146 (gdbtypes_post_init): Use type::set_instance_flags.
5147 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5148 <m_instance_flags>: ... this.
5149 <instance_flags, set_instance_flags>: New methods.
5150 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5151 (SET_TYPE_INSTANCE_FLAGS): New.
5152 (address_space_name_to_int, address_space_int_to_name)
5153 (make_type_with_address_space): Pass flags using
5154 type_instance_flags instead of int.
5155 * stabsread.c (cleanup_undefined_types_noname): Use
5156 type::set_instance_flags.
5157 * s390-tdep.c (s390_address_class_type_flags): Return
5158 type_instance_flags.
5159 (s390_address_class_type_flags_to_name): Take a
5160 type_instance_flags.
5161 (s390_address_class_name_to_type_flags): Return bool and take a
5162 type_instance_flags.
5163 * type-stack.c (type_stack::follow_types): Use
5164 type_instance_flags.
5165 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5166
27087b7f
TT
51672020-09-14 Tom Tromey <tromey@adacore.com>
5168
5169 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5170 * x86-tdep.c (x86_is_thunk_register_name)
5171 (x86_in_indirect_branch_thunk): Update.
5172 * sparc64-tdep.c (sparc64_fpu_register_names)
5173 (sparc64_cp0_register_names, sparc64_register_names)
5174 (sparc64_pseudo_register_names): Now const.
5175 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5176 cp0_registers_num>: Now const.
5177 * sparc-tdep.c (sparc_core_register_names)
5178 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5179 (sparc32_pseudo_register_names): Now const.
5180 (validate_tdesc_registers): Update.
5181 * rust-lang.c (rust_extensions): Now const.
5182 * p-lang.c (p_extensions): Now const.
5183 * objc-lang.c (objc_extensions): Now const.
5184 * nto-tdep.c (nto_thread_state_str): Now const.
5185 * moxie-tdep.c (moxie_register_names): Now const.
5186 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5187 Now const.
5188 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5189 (mips_linux_reg_names): Now const.
5190 (mips_gdbarch_init): Update.
5191 * microblaze-tdep.c (microblaze_register_names): Now const.
5192 * m68k-tdep.c (m68k_register_names): Now const.
5193 * m32r-tdep.c (m32r_register_names): Now const.
5194 * ia64-tdep.c (ia64_register_names): Now const.
5195 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5196 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5197 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5198 ymm_avx512_register_names, pkeys_register_names>: Now const.
5199 * i386-tdep.c (i386_register_names, i386_zmm_names)
5200 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5201 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5202 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5203 * f-lang.c (f_extensions): Now const.
5204 * d-lang.c (d_extensions): Now const.
5205 * csky-tdep.c (csky_register_names): Now const.
5206 * charset.c (default_charset_names, charset_enum): Now const.
5207 (_initialize_charset): Update.
5208 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5209 const.
5210 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5211 (bsd_uthread_solib_loaded): Update.
5212 (bsd_uthread_state): Now const.
5213 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5214 (amd64_ymm_avx512_names, amd64_ymmh_names)
5215 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5216 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5217 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5218 (amd64_dword_names): Now const.
5219 * agent.c (can_use_agent_enum): Now const.
5220 * ada-tasks.c (task_states, long_task_states): Now const.
5221 * ada-lang.c (known_runtime_file_name_patterns)
5222 (known_auxiliary_function_name_patterns, attribute_names)
5223 (standard_exc, ada_extensions): Now const.
5224
89806626
SM
52252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5226
5227 * bcache.h (struct bcache) <bcache>: Remove constructor.
5228 <m_hash_function, m_compare_function>: Remove.
5229 <~bcache>: Make virtual.
5230 <compare>: Remove static method, introduce virtual method.
5231 <default_hash>: Remove.
5232 <hash>: New virtual method.
5233 * bcache.c (bcache::expand_hash_table): Update.
5234 (bcache::insert): Update.
5235 (bcache::hash): New.
5236 (bcache::compare): Update comment and parameter names.
5237 * gdbtypes.c (types_deeply_equal): Update.
5238 * psymtab.h (struct psymbol_bcache): New struct.
5239 (class psymtab_storage) <psymtab_storage>: Make default.
5240 <psymbol_cache>: Change type to psymbol_bcache.
5241 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5242 (psymbol_hash): Change to...
5243 (psymbol_bcache::hash): ... this.
5244 (psymbol_compare): Change to...
5245 (psymbol_bcache::compare): ... this.
5246
677c92fe
SM
52472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5250 checking for initial lwp.
5251
3eba3a01
TT
52522020-09-14 Tom Tromey <tromey@adacore.com>
5253
5254 * m68k-tdep.c (m68k_extract_return_value): Use
5255 pointer_result_regnum.
5256 (m68k_store_return_value): Likewise.
5257 (m68k_reg_struct_return_p): Handle vectors and arrays.
5258 (m68k_return_value): Handle arrays.
5259 (m68k_svr4_return_value): Fix single-element aggregate handling.
5260 Handle long double. Adjust for embedded ABI.
5261 (m68k_svr4_init_abi): Set pointer_result_regnum.
5262 (m68k_embedded_init_abi): New function.
5263 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5264 (m68k_osabi_sniffer): New function.
5265 (_initialize_m68k_tdep): Register osabi sniffer.
5266 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5267 member.
5268
33f4dd48
SM
52692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5270
5271 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5272 with gdb::unique_xmalloc_ptr<char>.
5273
8400a90d
SM
52742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * xml-support.h (xml_fetch_another): Change type to be a
5277 function_view.
5278 (xml_process_xincludes): Remove baton parameter.
5279 (xml_fetch_content_from_file): Change baton parameter to
5280 dirname.
5281 * xml-support.c (struct xinclude_parsing_data)
5282 <xinclude_parsing_data>: Remove baton parameter.
5283 <fetcher_baton>: Remove.
5284 (xinclude_start_include): Adjust.
5285 (xml_process_xincludes): Adjust.
5286 (xml_fetch_content_from_file): Replace baton parameter with
5287 dirname.
5288 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5289 (xml_init_syscalls_info): Use a lambda.
5290 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5291 (file_read_description_xml): Use a lambda.
5292 (fetch_available_features_from_target): Change baton parameter
5293 to target_ops.
5294 (target_read_description_xml): Use a lambda.
5295 (target_fetch_description_xml): Use a lambda.
5296 (string_read_description_xml): Update.
5297
04f5bab2
SM
52982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5299
5300 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5301 uses with type::endianity_is_not_default.
5302
db558e34
SM
53032020-09-14 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * gdbtypes.h (struct type) <endianity_is_not_default,
5306 set_endianity_is_not_default>: New methods.
5307 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5308 type::endianity_is_not_default, change all write call sites to
5309 use type::set_endianity_is_not_default.
5310
22c4c60c
SM
53112020-09-14 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5314 uses with type::is_fixed_instance.
5315
9cdd0d12
SM
53162020-09-14 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (struct type) <is_fixed_instance,
5319 set_is_fixed_instance>: New methods.
5320 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5321 write call sites to use type::set_is_fixed_instance.
5322
0becda7a
SM
53232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5326 uses with type::is_gnu_ifunc.
5327
03cc7249
SM
53282020-09-14 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5331 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5332 use type::set_is_gnu_ifunc.
5333
3f46044c
SM
53342020-09-14 Simon Marchi <simon.marchi@efficios.com>
5335
5336 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5337 uses with type::stub_is_supported.
5338
9baccff6
SM
53392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5340
5341 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5342 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5343 use type::set_stub_is_supported.
5344
bd63c870
SM
53452020-09-14 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5348 uses with type::is_vector.
5349
2062087b
SM
53502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5353 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5354 use type::set_is_vector.
5355
a409645d
SM
53562020-09-14 Simon Marchi <simon.marchi@efficios.com>
5357
5358 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5359 uses with type::has_varargs.
5360
1d6286ed
SM
53612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5362
5363 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5364 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5365 use type::set_has_varargs.
5366
7f9f399b
SM
53672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5370 uses with type::is_prototyped.
5371
27e69b7a
SM
53722020-09-14 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5375 New methods.
5376 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5377 call sites to use type::set_is_prototyped.
5378
d2183968
SM
53792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5382 uses with type::target_is_stub.
5383
8f53807e
SM
53842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5385
5386 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5387 New methods.
5388 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5389 sites to use type::set_target_is_stub.
5390
e46d3488
SM
53912020-09-14 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * gdbtypes.h (TYPE_STUB): Remove, replace all
5394 uses with type::is_stub.
5395
b4b73759
SM
53962020-09-14 Simon Marchi <simon.marchi@efficios.com>
5397
5398 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5399 (TYPE_STUB): Use type::is_stub, change all write call sites to
5400 use type::set_is_stub.
5401
20ce4123
SM
54022020-09-14 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5405 type::has_no_signedness.
5406
15152a54
SM
54072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5408
5409 * gdbtypes.h (struct type) <has_no_signedness,
5410 set_has_no_signedness>: New methods.
5411 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5412 call sites to use type::set_has_no_signedness.
5413
c6d940a9
SM
54142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5415
5416 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5417 type::is_unsigned.
5418
653223d3
SM
54192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5422 methods.
5423 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5424 sites to use type::set_is_unsigned.
5425
55ea94da 54262020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5427 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5428
e851246a
SM
5429 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5430 pointer and stack frame offset when unwinding.
55ea94da 5431
6791b117
PA
54322020-09-13 Pedro Alves <pedro@palves.net>
5433
5434 * NEWS: Document "-break-insert --qualified".
5435 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5436
77f2120b
PA
54372020-09-13 Pedro Alves <pedro@palves.net>
5438
5439 * linespec.c (classify_mtype, compare_msyms): Delete.
5440 (search_minsyms_for_name): Remove classification logic. Instead
5441 filter out trampoline symbols if we also found an external
5442 function of the same name.
5443
ed6a896c
JB
54442020-09-13 Joel Brobecker <brobecker@adacore.com>
5445
5446 * NEWS: Create a new section for the next release branch.
5447 Rename the section of the current branch, now that it has
5448 been cut.
5449
32aea73e
JB
54502020-09-13 Joel Brobecker <brobecker@adacore.com>
5451
5452 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5453 * version.in: Bump version to 11.0.50.DATE-git.
5454
8087c3fa
JB
54552020-09-12 Joel Brobecker <brobecker@adacore.com>
5456
5457 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5458
2a67f09d
FW
54592020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5460 Felix Willgerodt <Felix.Willgerodt@intel.com>
5461
5462 * gdbarch.sh: Added bfloat16 type.
5463 * gdbarch.c: Regenerated.
5464 * gdbarch.h: Regenerated.
5465 * gdbtypes.c (floatformats_bfloat16): New struct.
5466 (gdbtypes_post_init): Add builtin_bfloat16.
5467 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5468 (floatformats_bfloat16): New struct.
5469 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5470 (i386_ymm_type): Add field "v16_bfloat16"
5471 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5472 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5473 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5474 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5475 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5476 * features/i386/64bit-avx512.c: Regenerated.
5477 * features/i386/64bit-sse.xml: Add bfloat16 type.
5478 * features/i386/64bit-sse.c: Regenerated.
5479
1347d111
FW
54802020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5481
5482 * i386-tdep.c (i386_zmm_type): Fix field names.
5483 (i386_ymm_type): Fix field names.
5484
7a4e8e7d
TBA
54852020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5486
5487 * breakpoint.c: Fix typo in the help message of the
5488 "set breakpoint condition-evaluation" command.
5489
cf4ac4be
KR
54902020-09-10 Kamil Rytarowski <n54@gmx.com>
5491
5492 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5493 * (nbsd_nat_target::pid_to_exec_file)
5494 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5495 (nbsd_nat_target::post_startup_inferior)
5496 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5497 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5498 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5499 * (nbsd_thread_lister): Remove.
5500
f404573e
KR
55012020-09-10 Kamil Rytarowski <n54@gmx.com>
5502
5503 * fork-inferior.c (startup_inferior): Avoid double free.
5504
1ccb2c17
KR
55052020-09-10 Kamil Rytarowski <n54@gmx.com>
5506
5507 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5508 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5509
feedfcc7
KR
55102020-09-10 Kamil Rytarowski <n54@gmx.com>
5511
5512 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5513 * netbsd-nat.c: Include <sys/ptrace.h>.
5514 * (netbsd_nat::enable_proc_events): Add.
5515
c489f8c6
KR
55162020-09-10 Kamil Rytarowski <n54@gmx.com>
5517
5518 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5519 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5520 (netbsd_nat::for_each_thread): Add.
5521 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5522 "gdbsupport/common-debug.h".
5523 * (netbsd_nat::netbsd_thread_lister)
5524 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5525 (netbsd_nat::for_each_thread): Add.
5526
330662f6
KR
55272020-09-10 Kamil Rytarowski <n54@gmx.com>
5528
5529 * netbsd-nat.h: Include <unistd.h>.
5530 * (netbsd_nat::pid_to_exec_file): Add.
5531 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5532 * (netbsd_nat::pid_to_exec_file) Add.
5533
70b67307
KR
55342020-09-10 Kamil Rytarowski <n54@gmx.com>
5535
5536 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5537
99cf6da6
KR
55382020-09-10 Kamil Rytarowski <n54@gmx.com>
5539
5540 * netbsd-nat.h: New file.
5541 * netbsd-nat.c: Likewise.
5542
1b788fb6
TT
55432020-09-09 Tom Tromey <tromey@adacore.com>
5544
5545 * ada-lang.c (remove_extra_symbols): Do not increment when
5546 removing an element
5547
03b0a45f
TT
55482020-09-08 Tom Tromey <tromey@adacore.com>
5549
5550 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5551
3cae4447
TT
55522020-09-08 Tom Tromey <tromey@adacore.com>
5553
5554 PR win32/25302:
5555 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5556 (gdb_bfd_init_data): New function.
5557 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5558
7f08fd51
TBA
55592020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5560
5561 * infrun.c (fetch_inferior_event): Use
5562 `switch_to_target_no_thread` to switch the target.
5563
3e6ff933
TT
55642020-09-06 Tom Tromey <tom@tromey.com>
5565
5566 * symfile.h (dwarf2_free_objfile): Don't declare.
5567
e56798df
AKS
55682020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5569
5570 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5571 to match 16 byte real/complex type generated by Flang compiler.
5572
8f5c6526
TV
55732020-09-03 Tom de Vries <tdevries@suse.de>
5574
5575 PR breakpoint/26546
5576 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5577 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5578
c5065df0
SM
55792020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * maint.c (index_digits): New function.
5582 (struct maint_print_section_data): Remove.
5583 (print_bfd_section_info): Remove print_data parameter, add arg
5584 and index_digits.
5585 (print_objfile_section_info): Likewise.
5586 (print_bfd_section_info_maybe_relocated): Likewise (plus
5587 objfile).
5588 (maintenance_info_sections): Adjust calls.
5589
02c6f3f1
TT
55902020-09-02 Tom Tromey <tromey@adacore.com>
5591
5592 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5593 for null pointers.
5594 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5595
ef5e5b0b
SM
55962020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5597
5598 * bcache.h (struct bcache) <insert>: Change type of `added` to
5599 pointer to bool.
5600 * bcache.c (bcache::insert): Likewise.
5601 * gdbtypes.c (check_types_worklist): Adjust.
5602 * psymtab.c (add_psymbol_to_bcache): Adjust.
5603
973695d6
KB
56042020-08-31 Kevin Buettner <kevinb@redhat.com>
5605
5606 * corelow.c (unordered_set): Include.
5607 (class core_target): Add field 'm_core_unavailable_mappings'.
5608 (core_target::build_file_mappings): Print only one warning
5609 per inaccessible file. Add unavailable/broken mappings
5610 to m_core_unavailable_mappings.
5611 (core_target::xfer_partial): Call...
5612 (core_target::xfer_memory_via_mappings): New method.
5613
264fc0e2
SM
56142020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5617 type to bool.
5618
2de01bdb
SM
56192020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * dwarf2/read.c (struct field_info): Fix indentation.
5622
f3bd50f1
SM
56232020-08-31 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5626 ordering in comment.
5627 * frame.c (frame_id_eq): Fix indentation.
5628
22b9b4b0
SL
56292020-08-31 Scott Linder <scott@scottlinder.com>
5630 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5633 inline frame ids in outer frame.
5634
84154d16
SM
56352020-08-31 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5638 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5639 (outer_frame_id): Use FID_STACK_OUTER instead of
5640 FID_STACK_INVALID.
5641 (frame_id_p): Don't check for outer_frame_id.
5642
8efaf6b3
SM
56432020-08-31 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5646 regnum/frame in value. Call allocate_value_lazy.
5647 * frame.c (frame_unwind_register_value): Use
5648 val_print_not_saved.
5649
fe1fe7ea
SM
56502020-08-31 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5653
f7c7700d
PA
56542020-08-29 Pedro Alves <pedro@palves.net>
5655
5656 * progspace.c (print_program_space): Use all_inferiors. Switch to
5657 the inferior before calling target_pid_to_str.
5658
e0814aae
TT
56592020-08-28 Tom Tromey <tom@tromey.com>
5660
5661 * xcoffread.c (xcoff_end_psymtab): Update comment.
5662 * dbxread.c (dbx_end_psymtab): Update comment.
5663
626d2320
TV
56642020-08-28 Tom de Vries <tdevries@suse.de>
5665
5666 PR breakpoint/26544
5667 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5668 event_location.
5669 (create_breakpoint): Same.
5670 (base_breakpoint_decode_location): Same.
5671 (bkpt_create_sals_from_location): Same.
5672 (bkpt_decode_location): Same.
5673 (bkpt_probe_create_sals_from_location): Same.
5674 (bkpt_probe_decode_location): Same.
5675 (tracepoint_create_sals_from_location): Same.
5676 (tracepoint_decode_location): Same.
5677 (tracepoint_probe_decode_location): Same.
5678 (strace_marker_create_sals_from_location): Same.
5679 (strace_marker_decode_location): Same.
5680 (create_sals_from_location_default): Same.
5681 (decode_location_default): Same.
5682 * breakpoint.h (struct breakpoint_ops): Same.
5683 (create_breakpoint): Same.
5684 * linespec.h (decode_line_full): Same.
5685 * linespec.c (decode_line_full): Same. Throw error if
5686 result.size () == 0.
5687
df631783
PA
56882020-08-27 Pedro Alves <pedro@palves.net>
5689
5690 PR gdb/26524
5691 * breakpoint.c (until_break_fsm) <location_breakpoint,
5692 caller_breakpoint>: Delete fields.
5693 <breakpoints>: New field.
5694 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5695 two individual breakpoints.
5696 (until_break_fsm::should_stop): Loop over breakpoints in the
5697 breakpoint vector.
5698 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5699 vector.
5700 (until_break_command): Handle location expanding into multiple
5701 sals.
5702
b2b38aa4
PA
57032020-08-27 Pedro Alves <pedro@palves.net>
5704
5705 PR gdb/26523
5706 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5707 bp_until breakpoints user-specified locations. Update intro
5708 comment.
5709
b886559f
SM
57102020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5711
5712 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5713 gdb_bfd_sections): New.
5714 * maint.c (print_bfd_section_info): Change param type to
5715 maint_print_section_data.
5716 (print_objfile_section_info): Likewise.
5717 (print_bfd_section_info_maybe_relocated): Likewise.
5718 (maintenance_info_sections): Use gdb_bfd_sections.
5719
4c6e63bf
SV
57202020-08-25 Shahab Vahedi <shahab@synopsys.com>
5721
5722 * MAINTAINERS: Add ARC target and maintainer.
5723
8d7f0635
AK
57242020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5725
5726 * configure.tgt: ARC support for GNU/Linux.
5727 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5728 * arc-linux-tdep.c: New file.
5729 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5730 * arc-tdep.c (arc_write_pc): Use it.
5731
fdd8731b
SV
57322020-08-25 Shahab Vahedi <shahab@synopsys.com>
5733
5734 * arc-tdep.c (arc_check_for_hardware_loop): New.
5735 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5736
22459524
SV
57372020-08-25 Shahab Vahedi <shahab@synopsys.com>
5738
5739 * arc-tdep.h: Include "gdbarch.h".
5740
995d3a19
SV
57412020-08-25 Shahab Vahedi <shahab@synopsys.com>
5742
5743 * arch/arc.h
5744 (arc_gdbarch_features): New class to stir the selection of target XML.
5745 (arc_create_target_description): Use FEATURES to choose XML target.
5746 (arc_lookup_target_description): Use arc_create_target_description
5747 to create _new_ target descriptions or return the already created
5748 ones if the FEATURES is the same.
5749 * arch/arc.c: Implementation of prototypes described above.
5750 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5751 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5752 * arc-tdep.c (*_feature_name): Make feature names consistent.
5753 (arc_register_feature): A new struct to hold information about
5754 registers of a particular target/feature.
5755 (arc_check_tdesc_feature): Check if XML provides registers in
5756 compliance with ARC_REGISTER_FEATURE structs.
5757 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5758 (determine_*_reg_feature_set): Which feature name to look for.
5759 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5760 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5761 to expected ISA enums to be used in arc_gdbarch_features structs.
5762 * features/Makefile (FEATURE_XMLFILES): Add new files.
5763 * gdb/features/arc/v1-aux.c: New file.
5764 * gdb/features/arc/v1-aux.xml: Likewise.
5765 * gdb/features/arc/v1-core.c: Likewise.
5766 * gdb/features/arc/v1-core.xml: Likewise.
5767 * gdb/features/arc/v2-aux.c: Likewise.
5768 * gdb/features/arc/v2-aux.xml: Likewise.
5769 * gdb/features/arc/v2-core.c: Likewise.
5770 * gdb/features/arc/v2-core.xml: Likewise.
5771 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5772
3945d2d7
GM
57732020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5774 Andrew Burgess <andrew.burgess@embecosm.com>
5775
5776 PR m2/26372
fc5d6901 5777 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5778 an assert. Remove single element array indexing pattern as the
5779 MULTI_SUBSCRIPT support will handle this case too.
5780
2677f2d3
SM
57812020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * value.h (valprint_check_validity): Move declaration from
5784 here...
5785 * valprint.h (valprint_check_validity): ... to here.
5786
c426fddb
SM
57872020-08-24 Simon Marchi <simon.marchi@efficios.com>
5788
5789 * debug.h: New file.
5790 * debug.c (debug_prefixed_vprintf): New function.
5791 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5792 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5793
1eb8556f
SM
57942020-08-24 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * infrun.h (infrun_debug_printf_1): New function declaration.
5797 (infrun_debug_printf): New macro.
5798 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5799 throughout.
5800 (infrun_debug_printf): New function.
5801 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5802 (handle_jit_event): Likewise.
5803
b8fff44e
MW
58042020-08-21 Mark Wielaard <mark@klomp.org>
5805
5806 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5807
d19c3068
SM
58082020-08-22 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * frame.c (enum class frame_id_status): New.
5811 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5812 (fprintf_frame): Update.
5813 (compute_frame_id): Set frame id status to "computing" on entry.
5814 Set it back to "not_computed" on failure and to "computed" on
5815 success.
5816 (get_frame_id): Assert the frame id is not being computed.
5817 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5818 (create_new_frame): Likewise.
5819 (frame_cleanup_after_sniffer): Update assert.
5820
b70e516e
SM
58212020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5822
5823 * regcache.c (pid_ptid_regcache_map): New type.
5824 (target_ptid_regcache_map): Remove.
5825 (target_pid_ptid_regcache_map): New type.
5826 (regcaches): Change type to target_pid_ptid_regcache_map.
5827 (get_thread_arch_aspace_regcache): Update.
5828 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5829 case.
5830 (regcaches_size): Update.
5831 (regcache_count): Update.
5832 (registers_changed_ptid_target_pid_test): New.
5833 (_initialize_regcache): Register new test.
5834
cdd9148a
SM
58352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * regcache.c (regcache_count): New.
5838 (struct regcache_test_data): New.
5839 (regcache_test_data_up): New.
5840 (populate_regcaches_for_test): New.
5841 (regcaches_test): Remove.
5842 (get_thread_arch_aspace_regcache_test): New.
5843 (registers_changed_ptid_all_test): New.
5844 (registers_changed_ptid_target_test): New.
5845 (registers_changed_ptid_target_ptid_test): New.
5846 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5847 (_initialize_regcache): Register new tests.
5848
dd125343
SM
58492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5852 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5853 gdbarch and aspace parameter. Use current inferior's aspace.
5854 Validate regcache's arch value.
5855 (regcaches_test): Update.
5856
3ee93972
SM
58572020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * regcache.c (regcaches_test): Call registers_changed.
5860
33bf4c5c
TBA
58612020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5862
5863 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5864
c2fd7fae
AKS
58652020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5866
5867 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5868 to find the end of prologue for flang compiled binaries.
5869 * arm-tdep.c (arm_skip_prologue): Likewise.
5870 * i386-tdep.c (i386_skip_prologue): Likewise.
5871 * producer.c (producer_is_llvm): New function.
5872 (producer_parsing_tests): Added new tests for clang/flang.
5873 * producer.h (producer_is_llvm): New declaration.
5874
9327494e
SM
58752020-08-18 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * linux-nat.c (linux_nat_debug_printf): New function.
5878 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5879
d138725a
AM
58802020-08-18 Aaron Merey <amerey@redhat.com>
5881
5882 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5883 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5884 (CLIBS): Add DEBUGINFOD_LIBS.
5885
f9b11e6b
ST
58862020-08-17 Sergei Trofimovich <siarheit@google.com>
5887
5888 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5889 'gdbarch_num_regs'.
5890
3ae7ab99
TT
58912020-08-17 Tom Tromey <tromey@adacore.com>
5892
5893 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5894 ada_get_decoded_value returns NULL.
5895
b017825f
TT
58962020-08-17 Tom Tromey <tromey@adacore.com>
5897
5898 * python/py-inferior.c (infpy_search_memory): Use
5899 gdb_py_object_from_ulongest.
5900 * python/py-infevents.c (create_inferior_call_event_object)
5901 (create_memory_changed_event_object): Use
5902 gdb_py_object_from_ulongest.
5903 * python/py-linetable.c (ltpy_entry_get_pc): Use
5904 gdb_py_object_from_ulongest.
5905
7635cf79
SM
59062020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * loc.c (class symbol_needs_eval_context): Fix indentation.
5909
f54be24b
SM
59102020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5913 bool.
5914
53d5a2a5
TV
59152020-08-17 Tom de Vries <tdevries@suse.de>
5916
5917 PR gdb/26393
5918 * gdbtypes.c (dump_dynamic_prop): New function.
5919 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5920
547ce8f0
TV
59212020-08-15 Tom de Vries <tdevries@suse.de>
5922
5923 PR backtrace/26390
5924 * stack.c (print_frame_args): Temporarily set the selected
5925 frame to FRAME while printing the frame's arguments.
5926
6ea815e7
PFC
59272020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5928
5929 PR breakpoints/26385
5930 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5931 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5932
6e562fa3
PFC
59332020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5934
5935 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5936 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5937 and >= to check return value instead of == -1 and != -1.
5938
d369b608
SM
59392020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * utils.h (class gdb_argv) <as_array_view>: New method.
5942 * utils.c (gdb_argv_as_array_view_test): New.
5943 (_initialize_utils): Register selftest.
5944 * maint.c (maintenance_selftest): Use the new method.
5945
b31488a3
KR
59462020-08-13 Kamil Rytarowski <n54@gmx.com>
5947
5948 * target.h (supports_dumpcore, dumpcore): New
5949 function declarations.
5950 * target.c (supports_dumpcore, dumpcore): New
5951 functions.
5952 * target-delegates.c: Rebuild.
5953 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5954 and target_dumpcore ().
5955
002a3166
AM
59562020-08-13 Aaron Merey <amerey@redhat.com>
5957
5958 * debuginfod-support.c: Replace global variables with user_data.
5959
ece5bc8a
SM
59602020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * maint.c (maintenance_selftest): Split args and pass array_view
5963 to run_tests.
5964
6d8a0a5e
LM
59652020-08-12 Luis Machado <luis.machado@linaro.org>
5966
5967 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5968 type's length.
5969 Use %s and pulongest to print the length.
5970
7cf663a9
PA
59712020-08-12 Pedro Alves <palves@redhat.com>
5972
5973 * NEWS: Move "Multi-target debugging support" item to the
5974 "Changes since GDB 9" section.
5975
27c7b875
PA
59762020-08-12 Pedro Alves <palves@redhat.com>
5977
5978 PR gdb/26336
5979 * progspace.c (program_space::remove_objfile): Invalidate the
5980 frame cache.
5981
1796a2a1
TV
59822020-08-11 Tom de Vries <tdevries@suse.de>
5983
5984 * MAINTAINERS: Mark ms1 as deleted.
5985
f8e3fe0d
LM
59862020-08-10 Luis Machado <luis.machado@linaro.org>
5987
5988 PR gdb/26310
5989
5990 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5991 act accordingly.
5992 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5993 movz/str/stur/stp skipping behavior.
5994
cc308722
LM
59952020-08-10 Luis Machado <luis.machado@linaro.org>
5996
5997 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5998 struct user_sve_header instead of struct sve_context.
5999
041d9819
SM
60002020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * read.h (dwarf2_fetch_die_loc_sect_off,
6003 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6004 `void *` parameter with function_view.
6005 * read.c (dwarf2_fetch_die_loc_sect_off,
6006 dwarf2_fetch_die_loc_cu_off): Likewise.
6007 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6008 (per_cu_dwarf_call): Adjust.
6009 (get_frame_address_in_block_wrapper): Remove.
6010 (indirect_synthetic_pointer): Adjust.
6011 (get_ax_pc): Remove.
6012 (dwarf2_compile_expr_to_ax): Adjust.
6013
38f8aa06
TV
60142020-08-08 Tom de Vries <tdevries@suse.de>
6015
6016 PR build/26344
6017 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6018 constructor.
6019 * regcache.c (get_thread_arch_aspace_regcache): Same.
6020
a52b3ae2
TT
60212020-08-07 Tom Tromey <tromey@adacore.com>
6022
6023 * ravenscar-thread.c
6024 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6025 New method.
6026 (ravenscar_thread_target::wait): Check
6027 runtime_initialized.
6028 (ravenscar_thread_target::prepare_to_store)
6029 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6030 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6031 (ravenscar_thread_target::stopped_by_watchpoint)
6032 (ravenscar_thread_target::stopped_data_address)
6033 (ravenscar_thread_target::core_of_thread): Use
6034 scoped_restore_current_thread and
6035 set_base_thread_from_ravenscar_task.
6036
0e29517d
TT
60372020-08-07 Tom Tromey <tromey@adacore.com>
6038
6039 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6040
592f9bd7
TT
60412020-08-07 Tom Tromey <tromey@adacore.com>
6042
6043 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6044 update_inferior_ptid before update_thread_list.
6045 (temporarily_change_regcache_ptid): New class.
6046 (ravenscar_thread_target::fetch_registers)
6047 (ravenscar_thread_target::store_registers)
6048 (ravenscar_thread_target::prepare_to_store): Use base thread when
6049 forwarding operation.
6050
39e2018a
TT
60512020-08-07 Tom Tromey <tromey@adacore.com>
6052
6053 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6054 "is_pid" case.
6055
2080266b
TT
60562020-08-07 Tom Tromey <tromey@adacore.com>
6057
6058 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6059 New methods.
6060 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6061 first.
6062 (ravenscar_thread_target::add_thread): Rename from
6063 ravenscar_add_thread.
6064 (ravenscar_thread_target::update_thread_list): Use a lambda.
6065 (ravenscar_thread_target::xfer_partial): New method.
6066
78c02f21
TT
60672020-08-07 Tom Tromey <tromey@adacore.com>
6068
6069 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6070 gdb::function_view.
6071 (iterate_over_live_ada_tasks): Change type of argument.
6072 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6073 of argument.
6074
d5d833af
TT
60752020-08-07 Tom Tromey <tromey@adacore.com>
6076
6077 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6078 Remove.
6079 (ravenscar_thread_target::extra_thread_info): Remove.
6080 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6081 defer to target beneath for non-Ravenscar threads.
6082
a8ac85bb
TT
60832020-08-07 Tom Tromey <tromey@adacore.com>
6084
6085 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6086 get_base_thread_from_ravenscar_task>: Now methods.
6087 <m_cpu_map>: New member.
6088 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6089 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6090 (ravenscar_thread_target::task_is_currently_active): Update.
6091 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6092 Now a method.
6093 (ravenscar_thread_target::add_active_thread): Put initial thread
6094 into the m_cpu_map.
6095
550ab58d
TT
60962020-08-07 Tom Tromey <tromey@adacore.com>
6097
6098 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6099 event_ptid.
6100
e9546579
TT
61012020-08-07 Tom Tromey <tromey@adacore.com>
6102
6103 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6104 runtime_initialized.
6105
3d4470e5
TT
61062020-08-07 Tom Tromey <tromey@adacore.com>
6107
6108 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6109 add_active_thread.
6110 (ravenscar_thread_target::add_active_thread): Now public.
6111 (ravenscar_inferior_created): Call add_active_thread after pushing
6112 the target.
6113
888bdb2b
SM
61142020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6115
6116 * regcache.c (ptid_regcache_map): New type.
6117 (target_ptid_regcache_map): New type.
6118 (regcaches): Change type to target_ptid_regcache_map.
6119 (get_thread_arch_aspace_regcache): Update to regcaches' new
6120 type.
6121 (regcache_thread_ptid_changed): Likewise.
6122 (registers_changed_ptid): Likewise.
6123 (regcaches_size): Likewise.
6124 (regcaches_test): Update.
6125 (regcache_thread_ptid_changed): Update.
6126 * regcache.h (regcache_up): New type.
6127 * gdbsupport/ptid.h (hash_ptid): New struct.
6128
b161a60d
SM
61292020-08-07 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * observable.h (thread_ptid_changed): Add parameter
6132 `process_stratum_target *`.
6133 * infrun.c (infrun_thread_ptid_changed): Add parameter
6134 `process_stratum_target *` and use it.
6135 (selftests): New namespace.
6136 (infrun_thread_ptid_changed): New function.
6137 (_initialize_infrun): Register selftest.
6138 * regcache.c (regcache_thread_ptid_changed): Add parameter
6139 `process_stratum_target *` and use it.
6140 (regcache_thread_ptid_changed): New function.
6141 (_initialize_regcache): Register selftest.
6142 * thread.c (thread_change_ptid): Pass target to
6143 thread_ptid_changed observable.
6144
d2854d8d
CT
61452020-08-06 Caroline Tice <cmtice@google.com>
6146
fe4c3d43
SM
6147 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6148 (struct dwp_sections): Update field comments. Add loclists and
6149 rnglists fields.
6150 (struct virtual_v2_dwo_sections): Rename struct to
6151 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6152 size & offset fields for loclists and rnglists.
6153 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6154 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6155 skipping dummy type units.
6156 (create_dwp_hash_table): Update the large comment above the function to
6157 discuss Version 5 DWP files as well, with references. Update all the
6158 version checks in the function to check for version 5 as well. Add new
6159 section at the end to create dwp hash table for version 5.
6160 (create_dwp_v2_section): Rename function to
6161 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6162 Add V5 to error message text.
6163 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6164 into calls to create_dwp_v2_or_v5_section.
6165 (create_dwo_unit_in_dwp_v5): New function.
6166 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6167 check for version2; add else clause to handle version 5.
6168 (open_and_init_dwo_file): Add code to check dwarf version & only call
6169 create_debug_types_hash_table (with sections.types) if version is not 5;
6170 else call create_debug_type_hash_table, with sections.info.
6171 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6172 version 5.
6173 (dwarf2_locate_v5_dwp_sections): New function.
6174 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6175 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6176
159ed7d9
SM
61772020-08-06 Simon Marchi <simon.marchi@efficios.com>
6178
6179 * regcache.h (class regcache): Remove friend
6180 registers_changed_ptid.
6181 <regcache_thread_ptid_changed>: Remove.
6182 <regcaches>: Remove.
6183 * regcache.c (regcache::regcaches): Rename to...
6184 (regcaches): ... this. Make static.
6185 (get_thread_arch_aspace_regcache): Update.
6186 (regcache::regcache_thread_ptid_changed): Rename to...
6187 (regcache_thread_ptid_changed): ... this. Update.
6188 (class regcache_access): Remove.
6189 (regcaches_test): Update.
6190 (_initialize_regcache): Update.
6191 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6192 <forward_list>.
6193
174981ae
SM
61942020-08-06 Simon Marchi <simon.marchi@efficios.com>
6195
6196 * regcache.h (class regcache) <current_regcache>: Rename to...
6197 <regcaches>: ... this. Move doc here.
6198 * regcache.c (regcache::current_regcache) Rename to...
6199 (regcache::regcaches): ... this. Move doc to header.
6200 (get_thread_arch_aspace_regcache): Update.
6201 (regcache::regcache_thread_ptid_changed): Update.
6202 (registers_changed_ptid): Update.
6203 (class regcache_access) <current_regcache_size>: Rename to...
6204 <regcaches_size>: ... this.
6205 (current_regcache_test): Rename to...
6206 (regcaches_test): ... this.
6207 (_initialize_regcache): Update.
6208
ed908db6
VC
62092020-08-06 Victor Collod <vcollod@nvidia.com>
6210
6211 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6212
b5582ab7
KB
62132020-08-05 Kevin Buettner <kevinb@redhat.com>
6214
6215 * corelow.c (core_target::build_file_mappings): Don't output
6216 null pathname in warning.
6217
ea946b86
SM
62182020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6219
6220 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6221 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6222 gdb.dwarf2/dw2-single-line-discriminators.exp,
6223 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6224
57d02173
TT
62252020-08-05 Tom Tromey <tromey@adacore.com>
6226
6227 PR rust/26197:
6228 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6229 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6230 Fix off-by-one and type size errors in ordinary case.
6231
5555c86d
TV
62322020-08-05 Tom de Vries <tdevries@suse.de>
6233
6234 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6235 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6236
97916bfe
SM
62372020-08-04 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * frame.h (frame_id_p): Return bool.
6240 (frame_id_artificial_p): Return bool.
6241 (frame_id_eq): Return bool.
6242 (has_stack_frames): Return bool.
6243 (get_selected_frame): Fix typo in comment.
6244 (get_frame_pc_if_available): Return bool.
6245 (get_frame_address_in_block_if_available): Return bool.
6246 (get_frame_func_if_available): Return bool.
6247 (read_frame_register_unsigned): Return bool.
6248 (get_frame_register_bytes): Return bool.
6249 (safe_frame_unwind_memory): Return bool.
6250 (deprecated_frame_register_read): Return bool.
6251 (frame_unwinder_is): Return bool.
6252 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6253 bool.
6254 <this_id::p>: Likewise.
6255 <prev_p>: Likewise.
6256 (frame_stash_add): Return bool.
6257 (get_frame_id): Use bool.
6258 (frame_id_build_special) Use bool.
6259 (frame_id_build_unavailable_stack): Use bool.
6260 (frame_id_build): Use bool.
6261 (frame_id_p): Return bool, use true/false instead of 1/0.
6262 (frame_id_artificial_p): Likewise.
6263 (frame_id_eq): Likewise.
6264 (frame_id_inner): Likewise.
6265 (get_frame_func_if_available): Likewise.
6266 (read_frame_register_unsigned): Likewise.
6267 (deprecated_frame_register_read): Likewise.
6268 (get_frame_register_bytes): Likewise.
6269 (has_stack_frames): Likewise.
6270 (inside_main_func): Likewise.
6271 (inside_entry_func): Likewise.
6272 (get_frame_pc_if_available): Likewise.
6273 (get_frame_address_in_block_if_available): Likewise.
6274 (frame_unwinder_is): Likewise.
6275 (safe_frame_unwind_memory): Likewise.
6276 (frame_unwind_arch): Likewise.
6277
fedfee88
SM
62782020-08-04 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6281 type to cached_copy_status.
6282 (fprintf_frame): Adjust.
6283 (get_frame_func_if_available): Adjust.
6284 (frame_cleanup_after_sniffer): Adjust.
6285
6cfa9b59
MW
62862020-08-04 Mark Wielaard <mark@klomp.org>
6287
6288 * MAINTAINERS (Write After Approval): Update email address.
6289
66d6346b
SM
62902020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6293 dynamic_prop::const_val.
6294
8a6d5e35
SM
62952020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6298 dynamic_prop::kind.
6299
51d6067d
SM
63002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6301
6302 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6303
b26e2ae7
JM
63042020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6305
6306 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6307
39791af2
JM
63082020-08-04 Weimin Pan <weimin.pan@oracle.com>
6309 Jose E. Marchesi <jose.marchesi@oracle.com>
6310
6311 * configure.tgt: Add entry for bpf-*-*.
6312 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6313 (ALLDEPFILES): Add bpf-tdep.c.
6314 * bpf-tdep.c: New file.
6315 * MAINTAINERS: Add bpf target and maintainer.
6316 * NEWS: Mention the support for the new target.
6317
521894aa
TV
63182020-08-04 Tom de Vries <tdevries@suse.de>
6319
6320 PR symtab/23270
6321 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6322 Error.
6323
5d6356e9
JB
63242020-08-03 John Baldwin <jhb@FreeBSD.org>
6325
6326 * syscalls/freebsd.xml: Regenerate.
6327
0cf82b81
JB
63282020-08-03 John Baldwin <jhb@FreeBSD.org>
6329
6330 * syscalls/update-freebsd.sh: Fix usage and year range.
6331
8f34b746
TV
63322020-08-03 Tom de Vries <tdevries@suse.de>
6333
6334 PR symtab/26333
6335 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6336 DW_LNE_lo_user/DW_LNE_hi_user range.
6337
5e500d33
SM
63382020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6339
6340 PR ada/26318
6341 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6342 kind.
6343
78319c15
TBA
63442020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6345
6346 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6347
4c55e970
TBA
63482020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6349
6350 * breakpoint.c (set_breakpoint_condition): Update the condition
6351 expressions after checking that the input condition string parses
6352 successfully and does not contain junk at the end.
6353
1e620590
TBA
63542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6355
6356 * breakpoint.c (set_breakpoint_condition): Update the
6357 condition string after parsing the new condition successfully.
6358
c8693053
RO
63592020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6360
6361 * proc-api.c (_STRUCTURED_PROC): Don't define.
6362 * proc-events.c: Likewise.
6363 * proc-flags.c: Likewise.
6364 * proc-why.c: Likewise.
6365 * procfs.c: Likewise.
6366
6367 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6368 * configure, config.in: Regenerate.
6369
5a99adb8
TV
63702020-07-30 Tom de Vries <tdevries@suse.de>
6371
6372 PR build/26320
6373 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6374 m_red/m_green/m_blue in a union.
6375
8ba83e91
TV
63762020-07-29 Tom de Vries <tdevries@suse.de>
6377
6378 PR tdep/26280
6379 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6380
f75a0693
AB
63812020-07-28 Tom Tromey <tromey@adacore.com>
6382
6383 PR symtab/26270:
6384 * symtab.h (find_pc_partial_function_sym): Declare.
6385 * cli/cli-cmds.c (disassemble_command): Use
6386 find_pc_partial_function_sym. Check asm_demangle.
6387 * blockframe.c (cache_pc_function_sym): New global.
6388 (cache_pc_function_name): Remove.
6389 (clear_pc_function_cache): Update.
6390 (find_pc_partial_function_sym): New function, from
6391 find_pc_partial_function.
6392 (find_pc_partial_function): Rewrite using
6393 find_pc_partial_function_sym.
6394
16f3242c
TT
63952020-07-28 Tom Tromey <tromey@adacore.com>
6396
6397 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6398 help. Add usage.
6399
4888741a
TT
64002020-07-28 Tom Tromey <tromey@adacore.com>
6401
6402 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6403 <DW_OP_GNU_variable_value>: Cast to address type.
6404
4d46f402
KR
64052020-07-28 Kamil Rytarowski <n54@gmx.com>
6406
6407 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6408 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6409 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6410 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6411 (nbsd_get_siginfo_type): New.
6412 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6413 (_initialize_nbsd_tdep): New.
6414
d70f978b
L
64152020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6416
6417 PR binutils/26301
6418 * configure: Regenerated.
6419
377170fa
L
64202020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6421
6422 PR binutils/26301
6423 * configure: Regenerated.
6424
43d5901d
AB
64252020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6426
6427 * python/py-frame.c: Remove 'user-regs.h' include.
6428 (frapy_read_register): Rewrite to make use of
6429 gdbpy_parse_register_id.
6430 * python/py-registers.c (gdbpy_parse_register_id): New function,
6431 moved here from python/py-unwind.c. Updated the return type, and
6432 also accepts register descriptor objects.
6433 * python/py-unwind.c: Remove 'user-regs.h' include.
6434 (pyuw_parse_register_id): Moved to python/py-registers.c.
6435 (unwind_infopy_add_saved_register): Update to use
6436 gdbpy_parse_register_id.
6437 (pending_framepy_read_register): Likewise.
6438 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6439
14fa8fb3
AB
64402020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 * python/py-registers.c: Add 'user-regs.h' include.
6443 (register_descriptor_iter_find): New function.
6444 (register_descriptor_iterator_object_methods): New static global
6445 methods array.
6446 (register_descriptor_iterator_object_type): Add pointer to methods
6447 array.
6448
ddce1758
JB
64492020-07-27 John Baldwin <jhb@FreeBSD.org>
6450
6451 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6452 for all architectures on FreeBSD 11.3 and later.
6453
a4089f52
TT
64542020-07-27 Tom Tromey <tromey@adacore.com>
6455
6456 * gcore.h (load_corefile): Don't declare.
6457
95420d30
TV
64582020-07-27 Tom de Vries <tdevries@suse.de>
6459
6460 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6461 * config.in: Regenerate.
6462 * configure: Regenerate.
6463
05a6b8c2
EZ
64642020-07-26 Eli Zaretskii <eliz@gnu.org>
6465
6466 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6467 ws2tcpip.h. When checking whether socklen_t type is defined, use
6468 ws2tcpip.h if it is available and sys/socket.h isn't.
6469 * configure: Regenerate.
6470 * config.in: Regenerate.
6471
e79eb02f
AB
64722020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6473
6474 PR fortran/23051
6475 PR fortran/26139
6476 * valops.c (value_ind): Pass address to
6477 readjust_indirect_value_type.
6478 * value.c (readjust_indirect_value_type): Make parameter
6479 non-const, and add extra address parameter. Resolve original type
6480 before using it.
6481 * value.h (readjust_indirect_value_type): Update function
6482 signature and comment.
6483
876518dd
TV
64842020-07-25 Tom de Vries <tdevries@suse.de>
6485
6486 PR symtab/26243
6487 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6488 entries.
6489
f6720b1c
AM
64902020-07-24 Aaron Merey <amerey@redhat.com>
6491
6492 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6493 * configure: Rebuild.
6494
513487e1
KB
64952020-07-23 Kevin Buettner <kevinb@redhat.com>
6496
6497 PR corefiles/26294
6498 * corelow.c (_initialize_corelow): Add period to help text
6499 for "maintenance print core-file-backed-mappings".
6500
e7bc9db8
PA
65012020-07-23 Pedro Alves <pedro@palves.net>
6502
6503 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6504 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6505 meanwhile.
6506 * frame.c (frame_cache_generation, get_frame_cache_generation):
6507 New.
6508 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6509 (get_prev_frame_if_no_cycle): On exception, don't touch
6510 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6511 * frame.h (get_frame_cache_generation): Declare.
6512
90fcc466
TV
65132020-07-23 Tom de Vries <tdevries@suse.de>
6514
6515 PR tui/26282
6516 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6517 New default constructor.
6518
78344df7
AB
65192020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6522 exclude non-statement entries.
6523
b089853a
KB
65242020-07-22 Kevin Buettner <kevinb@redhat.com>
6525
6526 * NEWS (New commands): Mention new command
6527 "maintenance print core-file-backed-mappings".
6528
09c2f5d4
KB
65292020-07-22 Kevin Buettner <kevinb@redhat.com>
6530
6531 * corelow.c (gdbcmd.h): Include.
6532 (core_target::info_proc_mappings): New method.
6533 (get_current_core_target): New function.
6534 (maintenance_print_core_file_backed_mappings): New function.
6535 (_initialize_corelow): Add core-file-backed-mappings to
6536 "maint print" commands.
6537
9c5ec5c2 65382020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6539
9c5ec5c2
KB
6540 * linux-tdep.c (dump_note_entry_p): New function.
6541 (linux_dump_mapping_p_ftype): New typedef.
6542 (linux_find_memory_regions_full): Add new parameter,
6543 should_dump_mapping_p.
6544 (linux_find_memory_regions): Adjust call to
6545 linux_find_memory_regions_full.
6546 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6547 call to linux_find_memory_regions_full.
6548
db082f59
KB
65492020-07-22 Kevin Buettner <kevinb@redhat.com>
6550
6551 * corelow.c (solist.h, unordered_map): Include.
6552 (class core_target): Add field m_core_file_mappings and
6553 method build_file_mappings.
6554 (core_target::core_target): Call build_file_mappings.
6555 (core_target::~core_target): Free memory associated with
6556 m_core_file_mappings.
6557 (core_target::build_file_mappings): New method.
6558 (core_target::xfer_partial): Use m_core_file_mappings
6559 for memory transfers.
6560 * linux-tdep.c (linux_read_core_file_mappings): New
6561 function.
6562 (linux_core_info_proc_mappings): Rewrite to use
6563 linux_read_core_file_mappings.
6564 (linux_init_abi): Register linux_read_core_file_mappings.
6565
7e183d27
KB
65662020-07-22 Kevin Buettner <kevinb@redhat.com>
6567
6568 * arch-utils.c (default_read_core_file_mappings): New function.
6569 * arch-utils.c (default_read_core_file_mappings): Declare.
6570 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6571 * gdbarch.h, gdbarch.c: Regenerate.
6572
2735d421
KB
65732020-07-22 Kevin Buettner <kevinb@redhat.com>
6574
6575 PR corefiles/25631
6576 * corelow.c (core_target:xfer_partial): Revise
6577 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6578 case after first checking the stratum beneath the core
6579 target.
6580 (has_all_memory): Return true.
6581 * target.c (raw_memory_xfer_partial): Revise comment
6582 regarding use of has_all_memory.
6583
e56cb451
KB
65842020-07-22 Kevin Buettner <kevinb@redhat.com>
6585
6586 * exec.h (section_table_xfer_memory): Revise declaration,
6587 replacing section name parameter with an optional callback
6588 predicate.
6589 * exec.c (section_table_xfer_memory): Likewise.
6590 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6591 of section_table_xfer_memory.
6592
32fa152e
TT
65932020-07-22 Tom Tromey <tromey@adacore.com>
6594
6595 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6596 lookup_symbol_search_name.
6597
a67a1c41
AB
65982020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6601 redundant local variable.
6602 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6603 reference, not pointer, update code accordingly.
6604
a7b4ff4f
SM
66052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6606 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6607
6608 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6609 * jit.c (jit_breakpoint_re_set_internal): Use the
6610 `skip_jit_symbol_lookup` field.
6611
2340e834
SM
66122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6613 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6614
6615 * jit.c (jit_read_descriptor): Define the descriptor address once,
6616 use twice.
6617 (jit_breakpoint_deleted): Move the declaration of the loop variable
6618 `iter` into the loop header.
6619 (jit_breakpoint_re_set_internal): Move the declaration of the local
6620 variable `objf_data` to the first point of definition.
6621 (jit_event_handler): Move the declaration of local variables
6622 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6623 Rename `objf` to `jited`.
6624
c1072906
SM
66252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6628 Remove.
6629 * jit.c (get_jiter_objfile_data): Update.
6630
c8474dc3
TBA
66312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6632 Simon Marchi <simon.marchi@polymtl.ca>
6633
6634 * jit.c (struct jit_program_space_data): Remove.
6635 (jit_program_space_key): Remove.
6636 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6637 stuff.
6638 (get_jit_program_space_data): Remove.
6639 (jit_breakpoint_deleted): Iterate on all of the program space's
6640 objfiles.
6641 (jit_inferior_init): Likewise.
6642 (jit_breakpoint_re_set_internal): Likewise. Also change return
6643 type to void.
6644 (jit_breakpoint_re_set): Pass current_program_space to
6645 jit_breakpoint_re_set_internal.
6646
77208eb7
SM
66472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6648
6649 * jit.h (struct jiter_objfile_data) <cached_code_address,
6650 jit_breakpoint>: Move to here from ...
6651 * jit.c (jit_program_space_data): ... here.
6652 (jiter_objfile_data::~jiter_objfile_data): Update.
6653 (jit_breakpoint_deleted): Update.
6654 (jit_breakpoint_re_set_internal): Update.
6655
8c1c720f
SM
66562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6657
6658 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6659 checks.
6660 (jit_read_descriptor): Remove NULL check.
6661 (jit_event_handler): Add an assertion.
6662
0e74a041
SM
66632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6664
6665 * jit.h (struct jit_objfile_data): Split into...
6666 (struct jiter_objfile_data): ... this ...
6667 (struct jited_objfile_data): ... and this.
6668 * objfiles.h (struct objfile) <jit_data>: Remove.
6669 <jiter_data, jited_data>: New fields.
6670 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6671 (jiter_objfile_data::~jiter_objfile_data): ... this.
6672 (get_jit_objfile_data): Rename to ...
6673 (get_jiter_objfile_data): ... this.
6674 (add_objfile_entry): Update.
6675 (jit_read_descriptor): Use get_jiter_objfile_data.
6676 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6677 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6678 (jit_inferior_exit_hook): Use objfile's jited_data field.
6679
238b5c9f
SM
66802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * jit.h: Forward-declare `struct minimal_symbol`.
6683 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6684 constructor, destructor, and an objfile* field.
6685 * jit.c (jit_objfile_data): Remove.
6686 (struct jit_objfile_data): Migrate from here to jit.h.
6687 (jit_objfile_data::~jit_objfile_data): New destructor
6688 implementation with code moved from free_objfile_data.
6689 (free_objfile_data): Delete.
6690 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6691 (jit_find_objf_with_entry_addr): Ditto.
6692 (jit_inferior_exit_hook): Ditto.
6693 (_initialize_jit): Remove the call to
6694 register_objfile_data_with_cleanup.
6695 * objfiles.h (struct objfile) <jit_data>: New field.
6696
fe053b9e
TBA
66972020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6698
6699 * jit.h: Forward-declare `struct objfile`.
6700 (jit_event_handler): Add a second parameter, the JITer objfile.
6701 * jit.c (jit_read_descriptor): Change the signature to take the
6702 JITer objfile as an argument instead of the jit_program_space_data.
6703 (jit_inferior_init): Update the call to jit_read_descriptor.
6704 (jit_event_handler): Use the new JITer objfile argument when calling
6705 jit_read_descriptor.
6706 * breakpoint.c (handle_jit_event): Update the call to
6707 jit_event_handler to pass the JITer objfile.
6708
4cec0c66
JB
67092020-07-21 John Baldwin <jhb@FreeBSD.org>
6710
6711 * gdbarch.c: Regenerate.
6712 * gdbarch.h: Regenerate.
6713 * gdbarch.sh (handle_segmentation_fault): Remove method.
6714 * infrun.c (handle_segmentation_fault): Remove.
6715 (print_signal_received_reason): Remove call to
6716 handle_segmentation_fault.
6717
0e42f66a
JB
67182020-07-21 John Baldwin <jhb@FreeBSD.org>
6719
6720 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6721 Rename to sparc64_linux_report_signal_info and add siggnal
6722 argument.
6723 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6724 instead of sparc64_linux_handle_segmentation_fault.
6725
77bdfeb2
JB
67262020-07-21 John Baldwin <jhb@FreeBSD.org>
6727
6728 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6729 i386_linux_report_signal_info instead of
6730 i386_linux_handle_segmentation_fault.
6731 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6732 to i386_linux_report_signal_info and add siggnal argument.
6733 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6734 of i386_linux_handle_segmentation_fault.
6735 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6736 to i386_linux_report_signal_info and add siggnal argument.
6737
ad97bfc5
JB
67382020-07-21 John Baldwin <jhb@FreeBSD.org>
6739
6740 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6741 hook if present.
6742
272bb05c
JB
67432020-07-21 John Baldwin <jhb@FreeBSD.org>
6744
6745 * gdbarch.c: Regenerate.
6746 * gdbarch.h: Regenerate.
6747 * gdbarch.sh (report_signal_info): New method.
6748 * infrun.c (print_signal_received_reason): Invoke gdbarch
6749 report_signal_info hook if present.
6750
baf8791e
AB
67512020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6752
6753 * python/py-registers.c : Add 'unordered_map' include.
6754 (gdbpy_new_reggroup): Renamed to...
6755 (gdbpy_get_reggroup): ...this. Update to only create register
6756 group descriptors when needed.
6757 (gdbpy_reggroup_iter_next): Update.
6758
f7306dac
AB
67592020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * python/py-registers.c (gdbpy_register_object_data): New static
6762 global.
6763 (gdbpy_register_object_data_init): New function.
6764 (gdbpy_new_register_descriptor): Renamed to...
6765 (gdbpy_get_register_descriptor): ...this, and update to reuse
6766 existing register descriptors where possible.
6767 (gdbpy_register_descriptor_iter_next): Update.
6768 (gdbpy_initialize_registers): Register new gdbarch data.
6769
05c309a8
SM
67702020-07-21 Simon Marchi <simon.marchi@efficios.com>
6771
6772 * linux-nat.c (stopped_pids): Make static.
6773
d1fd641e
SM
67742020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6775
6776 PR ada/26235
6777 * gdbtypes.c (ada_discrete_type_low_bound,
6778 ada_discrete_type_high_bound): Handle undefined bounds.
6779
1de14d77
KR
67802020-07-21 Kamil Rytarowski <n54@gmx.com>
6781
6782 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6783 declaration.
6784 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6785 function.
6786
ed810cc7
JB
67872020-07-20 John Baldwin <jhb@FreeBSD.org>
6788
6789 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6790 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6791 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6792 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6793 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6794 method.
6795
ae5369e7
LC
67962020-07-20 Ludovic Courtès <ludo@gnu.org>
6797
6798 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6799 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6800 which are deprecated in Guile 3.0.
6801 * configure.ac (try_guile_versions): Add "guile-3.0".
6802 * configure (try_guile_versions): Regenerate.
6803 * NEWS: Update entry.
6804
68cf161c
LC
68052020-07-20 Ludovic Courtès <ludo@gnu.org>
6806 Doug Evans <dje@google.com>
6807
6808 PR gdb/21104
6809 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6810 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6811 USING_GUILE_BEFORE_2_2.
6812 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6813 Change type to 'scm_t_port_type *'.
6814 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6815 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6816 parameter and honor it. Update callers.
6817 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6818 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6819 functions.
6820 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6821 USING_GUILE_BEFORE_2_2.
6822 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6823 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6824 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6825 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6826 and 'SCM_PORT_TYPE'.
6827 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6828 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6829 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6830 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6831 [!USING_GUILE_BEFORE_2_2]: New functions.
6832 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6833 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6834 'gdbscm_memory_port_read'.
6835 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6836 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6837 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6838 function.
6839 (ioscm_init_memory_port): Remove.
6840 (ioscm_init_memory_port_stream): New function
6841 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6842 function.
6843 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6844 Return scm_from_uint (0).
6845 (gdbscm_set_memory_port_read_buffer_size_x)
6846 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6847 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6848 Return scm_from_uint (0).
6849 (gdbscm_set_memory_port_write_buffer_size_x)
6850 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6851 * configure.ac (try_guile_versions): Add "guile-2.2".
6852 * configure: Regenerate.
6853 * NEWS: Add entry.
6854
aee91db3
TT
68552020-07-18 Tom Tromey <tom@tromey.com>
6856
6857 * linux-nat.c (linux_multi_process): Remove.
6858 (linux_nat_target::supports_multi_process): Return true.
6859
0e267416
AB
68602020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6863 (riscv_lookup_target_description): Return pointer out of
6864 unique_ptr.
6865 * target-descriptions.c (allocate_target_description): Add
6866 comment.
6867 (target_desc_deleter::operator()): Likewise.
6868 * target-descriptions.h (struct target_desc_deleter): Moved to
6869 gdbsupport/tdesc.h.
6870 (target_desc_up): Likewise.
6871
f80c8ec4
TT
68722020-07-17 Tom Tromey <tromey@adacore.com>
6873
6874 * linux-nat.c (linux_nat_target::supports_non_stop)
6875 (linux_nat_target::always_non_stop_p): Use "true".
6876 (linux_nat_target::supports_disable_randomization): Use "true" and
6877 "false".
6878
d0ce17d8
CT
68792020-07-16 Caroline Tice <cmtice@google.com>
6880
6881 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6882 (RNGLIST_HEADER_SIZE64): New constant definition.
6883 (struct dwop_section_names): Add rnglists_dwo.
6884 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6885 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6886 (struct dwo_sections): Add rnglists field.
6887 (read_attribut_reprocess): Add tag parameter.
6888 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6889 (cu_debug_rnglists_section): New function (decl & definition).
6890 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6891 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6892 die whose range is being checked; get rnglist section from
6893 cu_debug_rnglists_section, to get from either objfile or dwo file as
6894 appropriate. Add cases for DW_RLE_base_addressx,
6895 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6896 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6897 test inside if-condition and updating complaint message.
6898 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6899 dwarf2_rnglists_process.
6900 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6901 dwarf2_ranges_process.
6902 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6903 need_ranges_base and update comment appropriately. Also pass die tag
6904 to dwarf2_ranges_read.
6905 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6906 need_ranges_base and update comment appropriately. Also pass die tag
6907 to dwarf2_ranges_process.
6908 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6909 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6910 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6911 need_ranges_base and update comment appropriately. Also pass die tag
6912 to read_attribute_reprocess and dwarf2_ranges_read.
6913 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6914 and update function comment appropriately.
6915 (read_loclist_index): Call read_loclists_rnglists_header instead of
6916 read_loclist_header.
6917 (read_rnglist_index): New function.
6918 (read_attribute_reprocess): Add tag parameter. Add code for
6919 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6920 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6921
3dcc261c
AB
69222020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6925 being resolved.
6926
ccb9eba6
AB
69272020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6928
6929 * arch-utils.c (show_architecture): Update formatting of messages.
6930
cf88be68
SM
69312020-07-12 Simon Marchi <simon.marchi@efficios.com>
6932
6933 * gdbtypes.h (struct type) <bounds>: Handle array and string
6934 types.
6935 * ada-lang.c (assign_aggregate): Use type::bounds on
6936 array/string type.
6937 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6938 * c-varobj.c (c_number_of_children): Likewise.
6939 (c_describe_child): Likewise.
6940 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6941 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6942 (f_type_print_base): Likewise.
6943 * f-valprint.c (f77_array_offset_tbl): Likewise.
6944 (f77_get_upperbound): Likewise.
6945 (f77_print_array_1): Likewise.
6946 * guile/scm-type.c (gdbscm_type_range): Likewise.
6947 * m2-typeprint.c (m2_array): Likewise.
6948 (m2_is_long_set_of_type): Likewise.
6949 * m2-valprint.c (get_long_set_bounds): Likewise.
6950 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6951 * python/py-type.c (typy_range): Likewise.
6952 * rust-lang.c (rust_internal_print_type): Likewise.
6953 * type-stack.c (type_stack::follow_types): Likewise.
6954 * valarith.c (value_subscripted_rvalue): Likewise.
6955 * valops.c (value_cast): Likewise.
6956
509971ae
SM
69572020-07-12 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6960 callers to use the equivalent accessor methods.
6961
107406b7
SM
69622020-07-12 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6965 (struct type) <bit_stride>: New method.
6966 (TYPE_BIT_STRIDE): Remove.
6967 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6968
bb789949
SM
69692020-07-12 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6972 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6973 callers to use the equivalent accessor methods instead.
6974
39498edb
SM
69752020-07-12 Simon Marchi <simon.marchi@efficios.com>
6976
6977 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6978 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6979 callers to use the equivalent accessor methods instead.
6980
3b606f38
SM
69812020-07-12 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6984 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6985 to use dynamic_prop::kind.
6986
064d9cb9
SM
69872020-07-12 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6990 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6991 to get the bound property's kind and check against
6992 PROP_UNDEFINED.
6993
5537ddd0
SM
69942020-07-12 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6997 all callers to use type::range_bounds followed by
6998 dynamic_prop::{low,high}.
6999
8c2e4e06
SM
70002020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7001
7002 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7003 const_val, set_const_val, baton, set_locexpr, set_loclist,
7004 set_addr_offset, variant_parts, set_variant_parts,
7005 original_type, set_original_type>: New methods.
7006 <kind>: Rename to...
7007 <m_kind>: ... this. Update all users to use the new methods
7008 instead.
7009 <data>: Rename to...
7010 <m_data>: ... this. Update all users to use the new methods
7011 instead.
7012
7c6f2712
SM
70132020-07-12 Simon Marchi <simon.marchi@efficios.com>
7014
7015 * gdbtypes.c (get_discrete_bounds): Return failure if
7016 the range type's bounds are not both defined and constant
7017 values.
7018 (get_array_bounds): Update comment. Remove undefined bound check.
7019
599088e3
SM
70202020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7021
7022 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7023 the type::bounds method directly.
7024
c4dfcb36
SM
70252020-07-12 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7028 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7029 are used to set the range type's bounds to use set_bounds.
7030
0a278aa7
PW
70312020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7032
7033 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7034
cce20f10
PA
70352020-07-10 Pedro Alves <pedro@palves.net>
7036
7037 * gdbthread.h (inferior_ref): Define.
7038 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7039 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7040 * thread.c
7041 (scoped_restore_current_thread::restore):
7042 Adjust to gdb::ref_ptr.
7043 (scoped_restore_current_thread::~scoped_restore_current_thread):
7044 Remove manual decref handling.
7045 (scoped_restore_current_thread::scoped_restore_current_thread):
7046 Adjust to use
7047 inferior_ref::new_reference/thread_info_ref::new_reference.
7048 Incref the thread before calling get_frame_id instead of after.
7049 Let TARGET_CLOSE_ERROR propagate.
7050
6d7aa592
PA
70512020-07-10 Pedro Alves <pedro@palves.net>
7052
7053 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7054 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7055 NOT_AVAILABLE_ERROR.
7056 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7057 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7058
b3e3a4c1
SM
70592020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7060 Pedro Alves <pedro@palves.net>
7061
7062 PR gdb/26199
7063 * infrun.c (threads_are_resumed_pending_p): Delete.
7064 (do_target_wait): Remove threads_are_executing and
7065 threads_are_resumed_pending_p checks from the inferior_matches
7066 lambda. Update comments.
7067
d6cc5d98
PA
70682020-07-10 Pedro Alves <pedro@palves.net>
7069
7070 PR gdb/26199
7071 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7072 executing threads.
7073
7d3badc6
PA
70742020-07-10 Pedro Alves <pedro@palves.net>
7075
7076 PR gdb/26199
7077 * infrun.c (handle_no_resumed): Handle multiple targets.
7078
42bd97a6
PA
70792020-07-10 Pedro Alves <pedro@palves.net>
7080
7081 PR gdb/26199
7082 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7083 target_is_async_p.
7084
43667cc6
PA
70852020-07-10 Pedro Alves <pedro@palves.net>
7086
7087 PR gdb/26199
7088 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7089 threads, not all threads.
7090
96118d11
PA
70912020-07-10 Pedro Alves <pedro@palves.net>
7092
7093 PR gdb/26199
7094 * remote.c (remote_target::open_1): Pass remote target pointer as
7095 data to create_async_event_handler.
7096 (remote_async_inferior_event_handler): Mark async event handler
7097 before returning if the remote target still has either pending
7098 events or unacknowledged notifications.
7099
54904d81
JB
71002020-07-10 John Baldwin <jhb@FreeBSD.org>
7101
7102 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7103 declaration.
7104 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7105 function.
7106
f37e5866
JB
71072020-07-09 John Baldwin <jhb@FreeBSD.org>
7108
7109 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7110 inferior_ptid.
7111
fc238d4a
JB
71122020-07-09 John Baldwin <jhb@FreeBSD.org>
7113
7114 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7115 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7116 AT_FREEBSD_PS_STRINGS.
7117
6e2469ff
HD
71182020-07-08 Hannes Domani <ssbssa@yahoo.de>
7119
7120 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7121 of debugfile path on Windows.
7122
d1076c41
JB
71232020-07-08 John Baldwin <jhb@FreeBSD.org>
7124
7125 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7126 argument to 'data'.
7127
15f3b077
TT
71282020-07-08 Tom Tromey <tromey@adacore.com>
7129
7130 * ada-lang.c (ada_exception_message_1): Use read_memory.
7131
9fc501fd
AB
71322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7133
7134 PR python/22748
7135 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7136 special handling for inline frames.
7137 * findvar.c (value_of_register_lazy): Skip inline frames when
7138 creating lazy register values.
7139 * frame.c (frame_id_computed_p): Delete definition.
7140 * frame.h (frame_id_computed_p): Delete declaration.
7141
64cb3757
AB
71422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * NEWS: Mention additions to Python API.
7145 * python/py-arch.c (archpy_register_groups): New function.
7146 (arch_object_methods): Add 'register_groups' method.
7147 * python/py-registers.c (reggroup_iterator_object): New struct.
7148 (reggroup_object): New struct.
7149 (gdbpy_new_reggroup): New function.
7150 (gdbpy_reggroup_to_string): New function.
7151 (gdbpy_reggroup_name): New function.
7152 (gdbpy_reggroup_iter): New function.
7153 (gdbpy_reggroup_iter_next): New function.
7154 (gdbpy_new_reggroup_iterator): New function
7155 (gdbpy_initialize_registers): Register new types.
7156 (reggroup_iterator_object_type): Define new Python type.
7157 (gdbpy_reggroup_getset): New static global.
7158 (reggroup_object_type): Define new Python type.
7159 * python/python-internal.h
7160
0f767f94
AB
71612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7162
7163 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7164 * python/py-arch.c (archpy_registers): New function.
7165 (arch_object_methods): Add 'registers' method.
7166 * python/py-registers.c: New file.
7167 * python/python-internal.h
7168 (gdbpy_new_register_descriptor_iterator): Declare.
7169 (gdbpy_initialize_registers): Declare.
7170 * python/python.c (do_start_initialization): Call
7171 gdbpy_initialize_registers.
7172 * NEWS: Mention additions to the Python API.
7173
87dbc774
AB
71742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7175
7176 * NEWS: Mention new Python API method.
7177 * python/py-unwind.c (pending_framepy_architecture): New function.
7178 (pending_frame_object_methods): Add architecture method.
7179
3bc98c0c
AB
71802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * gdbarch.c: Regenerate.
7183 * gdbarch.h: Regenerate.
7184 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7185 (gdbarch_data): Use internal_error for the case where
7186 deprecated_set_gdbarch_data was originally needed.
7187 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7188 and use passed in obstack.
7189 (libunwind_frame_set_descr): Should no longer get back NULL from
7190 gdbarch_data.
7191 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7192 type.
7193 * user-regs.c (user_regs_init): Update parameters, and use passed
7194 in obstack.
7195 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7196 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7197
d8cc8af6
TV
71982020-07-06 Tom de Vries <tdevries@suse.de>
7199
7200 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7201 End-Of-Sequence in lte_is_less_than.
7202 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7203 "gdb: Don't reorder line table entries too much when sorting".
7204
947f7597
TV
72052020-07-06 Tom de Vries <tdevries@suse.de>
7206
7207 PR tui/26205
7208 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7209
1e7c1b22
TV
72102020-07-05 Tom de Vries <tdevries@suse.de>
7211
7212 PR build/26187
7213 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7214 std::uncaught_exceptions instead of deprecated
7215 std::uncaught_exception.
7216
a36158ec
SM
72172020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7218
7219 * macroexp.h (macro_stringify): Return
7220 gdb::unique_xmalloc_ptr<char>.
7221 * macroexp.c (macro_stringify): Likewise.
7222 * macrotab.c (fixup_definition): Update.
7223
14d960c8
SM
72242020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7225
7226 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7227 (lex_one_token): Update.
7228 * macroexp.c (struct macro_buffer) <release>: Return
7229 gdb::unique_xmalloc_ptr<char>.
7230 (macro_stringify): Update.
7231 (macro_expand): Update.
7232 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7233 * macroexp.h (macro_expand_next): Likewise.
7234
211d5b1c
SM
72352020-07-02 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * macroexp.h (macro_lookup_ftype): Remove.
7238 (macro_expand, macro_expand_once, macro_expand_next): Remove
7239 lookup function parameters, add scope parameter.
7240 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7241 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7242 * macroscope.h (standard_macro_lookup): Change parameter type
7243 to macro_scope.
7244 * macroscope.c (standard_macro_lookup): Likewise.
7245 * c-exp.y (lex_one_token): Update.
7246 * macrocmd.c (macro_expand_command): Likewise.
7247 (macro_expand_once_command): Likewise.
7248
b1a35af2
SM
72492020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7250
7251 * inf-loop.c (inferior_event_handler): Remove client_data param.
7252 * inf-loop.h (inferior_event_handler): Likewise.
7253 * infcmd.c (step_1): Adjust.
7254 * infrun.c (proceed): Adjust.
7255 (fetch_inferior_event): Remove client_data param.
7256 (infrun_async_inferior_event_handler): Adjust.
7257 * infrun.h (fetch_inferior_event): Remove `void *` param.
7258 * linux-nat.c (handle_target_event): Adjust.
7259 * record-btrace.c (record_btrace_handle_async_inferior_event):
7260 Adjust.
7261 * record-full.c (record_full_async_inferior_event_handler):
7262 Adjust.
7263 * remote.c (remote_async_inferior_event_handler): Adjust.
7264
1cdf9e33
TT
72652020-07-01 Tom Tromey <tom@tromey.com>
7266
7267 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7268 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7269
32c1e210
TT
72702020-07-01 Tom Tromey <tom@tromey.com>
7271
7272 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7273 tui_gen_win_info.
7274 (tui_win_info::make_window): Merge with
7275 tui_gen_win_info::make_window.
7276 (tui_win_info::make_visible): Move from tui_gen_win_info.
7277 * tui/tui-win.c (tui_win_info::max_width): Move from
7278 tui_gen_win_info.
7279 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7280 type.
7281 <window_factory>: Likewise.
7282 * tui/tui-layout.c (tui_win_info::resize): Move from
7283 tui_gen_win_info.
7284 (make_standard_window): Change return type.
7285 (get_locator_window, tui_get_window_by_name): Likewise.
7286 (tui_layout_window::apply): Remove a cast.
7287 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7288 (struct tui_win_info): Merge with tui_gen_win_info.
7289 (struct tui_gen_win_info): Remove.
7290
a30cb6da
TT
72912020-07-01 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-stack.h (struct tui_locator_window): Derive from
7294 tui_win_info.
7295 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7296 <can_box>: New method.
7297
1eb2161f
TT
72982020-07-01 Tom Tromey <tom@tromey.com>
7299
7300 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7301
7134f2eb
TT
73022020-07-01 Tom Tromey <tom@tromey.com>
7303
7304 * tui/tui-regs.c (tui_data_window::display_registers_from)
7305 (tui_data_window::display_registers_from)
7306 (tui_data_window::first_data_item_displayed)
7307 (tui_data_window::delete_data_content_windows): Update.
7308 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7309 Remove.
7310 (tui_data_window::check_register_values): Update.
7311 (tui_data_item_window::rerender): Add parameters. Update.
7312 (tui_data_item_window::refresh_window): Remove.
7313 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7314 virtual.
7315 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7316 tui_gen_win_info.
7317 <refresh_window, max_height, min_height>: Remove.
7318 <rerender>: Add parameters.
7319 <x, y, visible>: New members.
7320 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7321 <m_item_width>: New member.
7322
22b7b041
TT
73232020-07-01 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-regs.c (tui_data_window::show_register_group)
7326 (tui_data_window::check_register_values): Update.
7327 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7328 from item_no.
7329
c9753adb
TT
73302020-07-01 Tom Tromey <tom@tromey.com>
7331
7332 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7333 useless "if".
7334
9ab26b4a
TT
73352020-07-01 Tom Tromey <tom@tromey.com>
7336
7337 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7338 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7339
e555083f
TT
73402020-07-01 Tom Tromey <tom@tromey.com>
7341
7342 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7343 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7344 (struct tui_line_or_address): Move from tui-data.h.
7345 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7346 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7347 (tui_cmd_window, tui_source_window_base, tui_source_window)
7348 (tui_disasm_window): Don't declare.
7349 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7350 to tui-winsource.h.
7351 (SINGLE_KEY): Move to tui-stack.c.
7352
7a02bab7
TT
73532020-07-01 Tom Tromey <tom@tromey.com>
7354
7355 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7356 std::string.
7357 * tui/tui-regs.c (class tab_expansion_file): New.
7358 (tab_expansion_file::write): New method.
7359 (tui_register_format): Change return type. Use
7360 tab_expansion_file.
7361 (tui_get_register, tui_data_window::display_registers_from)
7362 (tui_data_item_window::rerender): Update.
7363 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7364 * tui/tui-io.c (tui_expand_tabs): Remove.
7365
ea68593b
TT
73662020-07-01 Tom Tromey <tom@tromey.com>
7367
7368 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7369
a8caed5d
FS
73702020-07-01 Fangrui Song <maskray@google.com>
7371
7372 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7373
9cdf9820
AKS
73742020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7375
7376 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7377 forms for DW_AT_associated and DW_AT_allocated attributes,
7378 which is already checked in function attr_to_dynamic_prop.
7379
a1520ad8
TT
73802020-06-30 Tom Tromey <tromey@adacore.com>
7381
7382 * dwarf2/read.c (quirk_rust_enum): Correctly call
7383 alloc_rust_variant for default-less enum.
7384
5ac58899
TT
73852020-06-30 Tom Tromey <tromey@adacore.com>
7386
7387 PR build/26183:
7388 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7389 gdb::to_string.
7390
19b187a9
SM
73912020-06-29 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7394 * gdbarch.h: Re-generate.
7395
cd4c4c07
TT
73962020-06-28 Tom Tromey <tom@tromey.com>
7397
7398 * command.h (cmd_types): Remove.
7399 (cmd_type): Don't declare.
7400 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7401 typedef.
7402 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7403 * cli/cli-decode.c (cmd_type): Remove.
7404
05779d57
PA
74052020-06-27 Pedro Alves <palves@redhat.com>
7406
7407 * fork-child.c (prefork_hook): Adjust.
7408 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7409 Delete.
7410 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7411 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7412 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7413 Remove declarations.
7414 (struct inferior) <set_tty, tty>: New methods.
7415 (struct inferior) <terminal>: Rename to ...
7416 (struct inferior) <m_terminal>: ... this and make private.
7417 * main.c (captured_main_1): Adjust.
7418 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7419 (mi_cmd_inferior_tty_show): Adjust.
7420 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7421 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7422
1776e3e5
NA
74232020-06-26 Nick Alcock <nick.alcock@oracle.com>
7424
7425 * configure.ac: Add --enable-libctf: handle --disable-static
7426 properly.
7427 * acinclude.m4: sinclude ../config/enable.m4.
7428 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7429 (LIBCTF): Substitute in.
7430 (CTF_DEPS): New, likewise.
7431 (CLIBS): libctf needs symbols from libbfd: move earlier.
7432 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7433 flags.
7434 * ctfread.c: Surround in ENABLE_LIBCTF.
7435 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7436 * configure: Regenerate.
7437 * config.in: Likewise.
7438
58373b80
SM
74392020-06-25 Simon Marchi <simon.marchi@efficios.com>
7440
7441 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7442
277474ee
SM
74432020-06-25 Simon Marchi <simon.marchi@efficios.com>
7444
7445 * inferior.h (struct inferior) <terminal>: Change type to
7446 gdb::unique_xmalloc_ptr<char>.
7447 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7448 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7449 field, adjust to unique pointer.
7450 (get_inferior_io_terminal): Adjust to unique pointer.
7451
6d74da72
AB
74522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7453
7454 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7455 registers, not just the known core set of registers.
7456
2e52d038
AB
74572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7458
7459 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7460 fflags, frm, and fcsr registers.
7461 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7462 restore groups.
7463 (riscv_tdesc_unknown_reg): New function.
7464 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7465 tdesc_use_registers.
7466 * riscv-tdep.h (struct gdbarch_tdep): Add
7467 unknown_csrs_first_regnum, unknown_csrs_count,
7468 duplicate_fflags_regnum, duplicate_frm_regnum, and
7469 duplicate_fcsr_regnum fields.
7470
be64fd07
AB
74712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7472
7473 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7474 callback, use the callback (when not null) to help number unknown
7475 registers.
7476 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7477 (tdesc_use_registers): Add extra parameter to declaration.
7478
3b9fce96
AB
74792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7480
7481 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7482 in the file.
7483 (class riscv_pending_register_alias): Likewise.
7484 (riscv_register_feature::register_info): Change 'required_p' field
7485 to 'required', and change its type. Add 'check' member function.
7486 (riscv_register_feature::register_info::check): Define new member
7487 function.
7488 (riscv_xreg_feature): Change initialisation of 'required' field.
7489 (riscv_freg_feature): Likewise.
7490 (riscv_virtual_feature): Likewise.
7491 (riscv_csr_feature): Likewise.
7492 (riscv_check_tdesc_feature): Take extra parameter, the csr
7493 tdesc_feature, rewrite the function to use the new
7494 riscv_register_feature::register_info::check function.
7495 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7496
865bad26
AB
74972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7498
7499 * features/Makefile: Remove all references to the deleted files
7500 below.
7501 * features/riscv/32bit-csr.c: Deleted.
7502 * features/riscv/32bit-csr.xml: Deleted.
7503 * features/riscv/64bit-csr.c: Deleted.
7504 * features/riscv/64bit-csr.xml: Deleted.
7505 * features/riscv/rebuild-csr-xml.sh: Deleted.
7506
ed69cbc8
AB
75072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7508
7509 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7510 whitespace error for declaration of names member variable.
7511 (struct riscv_register_feature): Add new prefer_first_name member
7512 variable, and fix whitespace error in declaration of registers.
7513 (riscv_xreg_feature): Initialize prefer_first_name field.
7514 (riscv_freg_feature): Likewise.
7515 (riscv_virtual_feature): Likewise.
7516 (riscv_csr_feature): Likewise.
7517 (riscv_register_name): Expand on comments. Remove register name
7518 modifications for CSR and virtual registers.
7519
4445e8f5
AB
75202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7521
7522 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7523 errors.
7524
767a879e
AB
75252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7528 riscv-opc.h.
7529 (class riscv_pending_register_alias): New class.
7530 (riscv_check_tdesc_feature): Take vector of pending aliases and
7531 populate it as appropriate.
7532 (riscv_setup_register_aliases): Delete.
7533 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7534 to riscv_check_tdesc_feature in all cases. Use the vector to
7535 create the register aliases.
7536
bb6e55f3
RO
75372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7538
7539 * sol2-tdep.c (sol2_static_transform_name): Remove.
7540 (sol2_init_abi): Don't register it.
7541 * gdbarch.sh (static_transform_name): Remove.
7542 * gdbarch.c, gdbarch.h: Regenerate.
7543
7544 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7545 gdbarch_static_transform_name.
7546 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7547 * stabsread.c (define_symbol) <'X'>: Remove.
7548 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7549 handling.
7550 <'V'>: Likewise.
7551 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7552 <'S'>: Remove call to gdbarch_static_transform_name.
7553
c6d36836
RO
75542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7555
7556 * procfs.c (procfs_pre_trace): New function.
7557 (procfs_target::create_inferior): Pass it to fork_inferior.
7558
a7e6196b
RO
75592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7560
7561 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7562 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7563 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7564 sol2-tdep.o, sparc-sol2-tdep.o.
7565 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7566 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7567 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7568 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7569
d412e696
RO
75702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7571
7572 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7573 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7574 Call sol2_init_abi.
7575 Remove calls to set_gdbarch_skip_solib_resolver,
7576 set_gdbarch_core_pid_to_str.
7577 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7578 (i386_sol2_static_transform_name): Remove.
7579 (i386_sol2_init_abi): Call sol2_init_abi.
7580 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7581 set_gdbarch_static_transform_name,
7582 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7583 Use sol2_sigtramp_p.
7584 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7585 (sol2_sigtramp_p): New function.
7586 (sol2_static_transform_name): New function.
7587 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7588 (sol2_init_abi): New function.
7589 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7590 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7591 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7592 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7593 (sparc_sol2_static_transform_name): Remove.
7594 (sparc32_sol2_init_abi): Call sol2_init_abi.
7595 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7596 set_gdbarch_static_transform_name,
7597 set_gdbarch_skip_solib_resolver,
7598 set_gdbarch_core_pid_to_str.
7599 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7600 (sparc_sol2_static_transform_name): Remove
7601 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7602 call sol2_sigtramp_p.
7603 (sparc64_sol2_init_abi): Call sol2_init_abi.
7604 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7605 set_gdbarch_static_transform_name,
7606 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7607
a8654e7d
PW
76082020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7609
7610 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7611 * exec.c (validate_exec_file): If from_tty, set both
7612 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7613 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7614 and from_tty, unconditionally ask a confirmation.
7615
caa7fd04
AB
76162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7617
7618 * target-descriptions.c (tdesc_architecture_name): Protect against
7619 NULL pointer dereference.
7620 (maint_print_xml_tdesc_cmd): New function.
7621 (_initialize_target_descriptions): Register new 'maint print
7622 xml-tdesc' command and give it the filename completer.
7623 * NEWS: Mention new 'maint print xml-tdesc' command.
7624
fbf42f4e
AB
76252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * target-descriptions.c (class tdesc_compatible_info): New class.
7628 (struct target_desc): Change type of compatible vector.
7629 (tdesc_compatible_p): Update for change in type of
7630 target_desc::compatible.
7631 (tdesc_compatible_info_list): New function.
7632 (tdesc_compatible_info_arch_name): New function.
7633 (tdesc_add_compatible): Update for change in type of
7634 target_desc::compatible.
7635 (print_c_tdesc::visit_pre): Likewise.
7636
20821f4e
AB
76372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7640 whitespace to underscore.
7641 (maint_print_c_tdesc_cmd): Use fake filename for target
7642 descriptions that came from the target.
7643 (_initialize_target_descriptions): Add filename command completion
7644 for 'maint print c-tdesc'.
7645
1fb5ee62
SM
76462020-06-23 Simon Marchi <simon.marchi@efficios.com>
7647
7648 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7649 lines.
7650
fc3ecb3e
SM
76512020-06-23 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7654 lines.
7655 (dwarf2_find_location_expression): Likewise.
7656 (call_site_parameter_matches): Likewise.
7657 (dwarf2_compile_expr_to_ax): Likewise.
7658 (disassemble_dwarf_expression): Likewise.
7659 (loclist_describe_location): Likewise.
7660
236ef034
PA
76612020-06-23 Pedro Alves <palves@redhat.com>
7662
7663 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7664 progspace-and-thread.h. Include scoped-mock-context.h instead.
7665 (register_to_value_test): Use scoped_mock_context.
7666 * regcache.c: Include "scoped-mock-context.h".
7667 (cooked_read_test): Don't error out if a target is already pushed.
7668 Use scoped_mock_context. Adjust.
7669 * scoped-mock-context.h: New file.
7670
39e7ecca
AB
76712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7674 initializer.
7675 (ada_language::is_string_type_p): New member function.
7676 * c-lang.c (c_language_data): Delete la_is_string_type_p
7677 initializer.
7678 (cplus_language_data): Likewise.
7679 (asm_language_data): Likewise.
7680 (minimal_language_data): Likewise.
7681 * d-lang.c (d_language_data): Likewise.
7682 * f-lang.c (f_is_string_type_p): Delete function, implementation
7683 moved to f_language::is_string_type_p.
7684 (f_language_data): Delete la_is_string_type_p initializer.
7685 (f_language::is_string_type_p): New member function,
7686 implementation from f_is_string_type_p.
7687 * go-lang.c (go_is_string_type_p): Delete function, implementation
7688 moved to go_language::is_string_type_p.
7689 (go_language_data): Delete la_is_string_type_p initializer.
7690 (go_language::is_string_type_p): New member function,
7691 implementation from go_is_string_type_p.
7692 * language.c (language_defn::is_string_type_p): Define new member
7693 function.
7694 (default_is_string_type_p): Make static, add comment copied from
7695 header file.
7696 (unknown_language_data): Delete la_is_string_type_p initializer.
7697 (unknown_language::is_string_type_p): New member function.
7698 (auto_language_data): Delete la_is_string_type_p initializer.
7699 (auto_language::is_string_type_p): New member function.
7700 * language.h (language_data): Delete la_is_string_type_p field.
7701 (language_defn::is_string_type_p): Declare new function.
7702 (default_is_string_type_p): Delete desclaration, move comment to
7703 definition.
7704 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7705 moved to m2_language::is_string_type_p.
7706 (m2_language_data): Delete la_is_string_type_p initializer.
7707 (m2_language::is_string_type_p): New member function,
7708 implementation from m2_is_string_type_p.
7709 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7710 initializer.
7711 * opencl-lang.c (opencl_language_data): Likewise.
7712 * p-lang.c (pascal_is_string_type_p): Delete function,
7713 implementation moved to pascal_language::is_string_type_p.
7714 (pascal_language_data): Delete la_is_string_type_p initializer.
7715 (pascal_language::is_string_type_p): New member function,
7716 implementation from pascal_is_string_type_p.
7717 * rust-lang.c (rust_is_string_type_p): Delete function,
7718 implementation moved to rust_language::is_string_type_p.
7719 (rust_language_data): Delete la_is_string_type_p initializer.
7720 (rust_language::is_string_type_p): New member function,
7721 implementation from rust_is_string_type_p.
7722 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7723 is_string_type_p.
7724
4ffc13fb
AB
77252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7726
7727 * ada-lang.c (ada_language_data): Delete la_print_typedef
7728 initializer.
7729 (ada_language::print_typedef): New member function.
7730 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7731 (cplus_language_data): Likewise.
7732 (asm_language_data): Likewise.
7733 (minimal_language_data): Likewise.
7734 * d-lang.c (d_language_data): Likewise.
7735 * f-lang.c (f_language_data): Likewise.
7736 (f_language::print_typedef): New member function.
7737 * go-lang.c (go_language_data): Delete la_print_typedef
7738 initializer.
7739 * language.c (language_defn::print_typedef): Define member
7740 function.
7741 (unknown_language_data): Delete la_print_typedef initializer.
7742 (unknown_language::print_typedef): New member function.
7743 (auto_language_data): Delete la_print_typedef initializer.
7744 (auto_language::print_typedef): New member function.
7745 * language.h (language_data): Delete la_print_typedef field.
7746 (language_defn::print_typedef): Declare new member function.
7747 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7748 (default_print_typedef): Delete declaration.
7749 * m2-lang.c (m2_language_data): Delete la_print_typedef
7750 initializer.
7751 (m2_language::print_typedef): New member function.
7752 * objc-lang.c (objc_language_data): Delete la_print_typedef
7753 initializer.
7754 * opencl-lang.c (opencl_language_data): Likewise.
7755 * p-lang.c (pascal_language_data): Likewise.
7756 (pascal_language::print_typedef): New member function.
7757 * rust-lang.c (rust_print_typedef): Delete function,
7758 implementation moved to rust_language::print_typedef.
7759 (rust_language): Delete la_print_typedef initializer.
7760 (rust_language::print_typedef): New member function,
7761 implementation from rust_print_typedef.
7762 * typeprint.c (default_print_typedef): Delete.
7763
d711ee67
AB
77642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7767 (ada_language::printstr): New member function.
7768 * c-lang.c (c_language_data): Delete la_printstr initializer.
7769 (cplus_language_data): Likewise.
7770 (asm_language_data): Likewise.
7771 (minimal_language_data): Likewise.
7772 * d-lang.c (d_language_data): Likewise.
7773 * f-lang.c (f_printstr): Rename to f_language::printstr.
7774 (f_language_data): Delete la_printstr initializer.
7775 (f_language::printstr): New member function, implementation from
7776 f_printstr.
7777 * go-lang.c (go_language_data): Delete la_printstr initializer.
7778 * language.c (language_defn::printstr): Define new member
7779 function.
7780 (unk_lang_printstr): Delete.
7781 (unknown_language_data): Delete la_printstr initializer.
7782 (unknown_language::printstr): New member function.
7783 (auto_language_data): Delete la_printstr initializer.
7784 (auto_language::printstr): New member function.
7785 * language.h (language_data): Delete la_printstr field.
7786 (language_defn::printstr): Declare new member function.
7787 (LA_PRINT_STRING): Update call to printstr.
7788 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7789 (m2_language_data): Delete la_printstr initializer.
7790 (m2_language::printstr): New member function, implementation from
7791 m2_printstr.
7792 * objc-lang.c (objc_language_data): Delete la_printstr
7793 initializer.
7794 * opencl-lang.c (opencl_language_data): Likewise.
7795 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7796 (pascal_language_data): Delete la_printstr initializer.
7797 (pascal_language::printstr): New member function, implementation
7798 from pascal_printstr.
7799 * p-lang.h (pascal_printstr): Delete declaration.
7800 * rust-lang.c (rust_printstr): Update header comment.
7801 (rust_language_data): Delete la_printstr initializer.
7802 (rust_language::printstr): New member function.
7803
52b50f2c
AB
78042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7807 (ada_language::printchar): New member function.
7808 * c-lang.c (c_language_data): Delete la_printchar initializer.
7809 (cplus_language_data): Likewise.
7810 (asm_language_data): Likewise.
7811 (minimal_language_data): Likewise.
7812 * d-lang.c (d_language_data): Likewise.
7813 * f-lang.c (f_printchar): Rename to f_language::printchar.
7814 (f_language_data): Delete la_printchar initializer.
7815 (f_language::printchar): New member function, implementation from
7816 f_printchar.
7817 * go-lang.c (go_language_data): Delete la_printchar initializer.
7818 * language.c (unk_lang_printchar): Delete.
7819 (language_defn::printchar): Define new member function.
7820 (unknown_language_data): Delete la_printchar initializer.
7821 (unknown_language::printchar): New member function.
7822 (auto_language_data): Delete la_printchar initializer.
7823 (auto_language::printchar): New member function.
7824 * language.h (language_data): Delete la_printchar field.
7825 (language_defn::printchar): Declare new member function.
7826 (LA_PRINT_CHAR): Update call to printchar.
7827 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7828 (m2_language::printchar): New member function.
7829 * objc-lang.c (objc_language_data): Delete la_printchar
7830 initializer.
7831 * opencl-lang.c (opencl_language_data): Likewise.
7832 * p-lang.c (pascal_language_data): Delete la_printchar
7833 initializer.
7834 (pascal_language::printchar): New member function.
7835 * rust-lang.c (rust_printchar): Rename to
7836 rust_language::printchar.
7837 (rust_language_data): Delete la_printchar initializer.
7838 (rust_language::printchar): New member function, implementation
7839 from rust_printchar.
7840
ec8cec5b
AB
78412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7844 (ada_language_data): Delete la_emitchar initializer.
7845 (ada_language::emitchar): New member function, implementation from
7846 emit_char.
7847 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7848 (cplus_language_data): Likewise.
7849 (asm_language_data): Likewise.
7850 (minimal_language_data): Likewise.
7851 * d-lang.c (d_language_data): Likewise.
7852 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7853 (f_language_data): Delete la_emitchar initializer.
7854 (f_language::emitchar): New member function, implementation from
7855 f_emit_char.
7856 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7857 * language.c (unk_lang_emit_char): Delete.
7858 (language_defn::emitchar): New member function definition.
7859 (unknown_language_data): Delete la_emitchar initializer.
7860 (unknown_language::emitchar): New member function.
7861 (auto_language_data): Delete la_emitchar initializer.
7862 (auto_language::emitchar): New member function.
7863 * language.h (language_data): Delete la_emitchar field.
7864 (language_defn::emitchar): New member field declaration.
7865 (LA_EMIT_CHAR): Update call to emitchar.
7866 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7867 (m2_language_data): Delete la_emitchar initializer.
7868 (m2_language::emitchar): New member function, implementation from
7869 m2_emit_char.
7870 * objc-lang.c (objc_language_data): Delete la_emitchar
7871 initializer.
7872 * opencl-lang.c (opencl_language_data): Likewise.
7873 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7874 (pascal_language_data): Delete la_emitchar initializer.
7875 (pascal_language::emitchar): New member function, implementation
7876 from pascal_emit_char.
7877 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7878 (rust_language_data): Delete la_emitchar initializer.
7879 (rust_language::emitchar): New member function, implementation
7880 from rust_emitchar.
7881
1bf9c363
AB
78822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7885 (ada_language_data): Delete la_post_parser initializer.
7886 (ada_language::post_parser): New member function.
7887 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7888 (cplus_language_data): Likewise.
7889 (asm_language_data): Likewise.
7890 (minimal_language_data): Likewise.
7891 * d-lang.c (d_language_data): Likewise.
7892 * f-lang.c (f_language_data): Likewise.
7893 * go-lang.c (go_language_data): Likewise.
7894 * language.c (unknown_language_data): Likewise.
7895 (auto_language_data): Likewise.
7896 * language.h (language_data): Delete la_post_parser field.
7897 (language_defn::post_parser): New member function.
7898 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7899 * objc-lang.c (objc_language_data): Likewise.
7900 * opencl-lang.c (opencl_language_data): Likewise.
7901 * p-lang.c (pascal_language_data): Likewise.
7902 * parse.c (parse_exp_in_context): Update call to post_parser.
7903 (null_post_parser): Delete definition.
7904 * parser-defs.h (null_post_parser): Delete declaration.
7905 * rust-lang.c (rust_language_data): Delete la_post_parser
7906 initializer.
7907
87afa652
AB
79082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7909
7910 * ada-lang.c (parse): Rename to ada_language::parser.
7911 (ada_language_data): Delete la_parser initializer.
7912 (ada_language::parser): New member function, implementation from
7913 parse.
7914 * c-lang.c (c_language_data): Delete la_parser initializer.
7915 (cplus_language_data): Likewise.
7916 (asm_language_data): Likewise.
7917 (minimal_language_data): Likewise.
7918 * d-lang.c (d_language_data): Likewise.
7919 (d_language::parser): New member function.
7920 * f-lang.c (f_language_data): Delete la_parser initializer.
7921 (f_language::parser): New member function.
7922 * go-lang.c (go_language_data): Delete la_parser initializer.
7923 (go_language::parser): New member function.
7924 * language.c (unk_lang_parser): Delete.
7925 (language_defn::parser): Define new member function.
7926 (unknown_language_data): Delete la_parser initializer.
7927 (unknown_language::parser): New member function.
7928 (auto_language_data): Delete la_parser initializer.
7929 (auto_language::parser): New member function.
7930 * language.h (language_data): Delete la_parser field.
7931 (language_defn::parser): Declare new member function.
7932 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7933 (m2_language::parser): New member function.
7934 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7935 * opencl-lang.c (opencl_language_data): Likewise.
7936 * p-lang.c (pascal_language_data): Likewise.
7937 (pascal_language::parser): New member function.
7938 * parse.c (parse_exp_in_context): Update call to parser.
7939 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7940 (rust_language::parser): New member function.
7941
37825800
AB
79422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * top.c (print_gdb_configuration): Print --with-python-libdir
7945 configuration value.
7946
5b860c93
PW
79472020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7948
7949 * NEWS: Mention change to the alias command.
7950
cf00cd6f
PW
79512020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7952
7953 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7954 (alias_command_completer)
7955 (make_alias_options_def_group): New functions.
7956 (alias_opts, alias_option_defs): New struct and array.
7957 (alias_usage_error): Update usage.
7958 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7959 Use option framework.
7960 (_initialize_cli_cmds): Update alias command help.
7961 Update aliases command help.
7962 (show_user):
7963 Add NULL for new default_args lookup_cmd argument.
7964 (valid_command_p): Rename to validate_aliased_command.
7965 Add NULL for new default_args lookup_cmd argument. Verify that the
7966 aliased_command has no default args.
7967 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7968 (lookup_cmd_1, lookup_cmd): New argument default_args.
7969 (add_alias_cmd):
7970 Add NULL for new default_args lookup_cmd argument.
7971 (print_help_for_command): Show default args under the layout
7972 alias some_alias = some_aliased_cmd some_alias_default_arg.
7973 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7974 xfree default_args in destructor.
7975 * cli/cli-script.c (process_next_line, do_define_command):
7976 Add NULL for new default_args lookup_cmd argument.
7977 * command.h: Declare new default_args argument in lookup_cmd
7978 and lookup_cmd_1.
7979 * completer.c (complete_line_internal_1):
7980 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7981 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7982 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7983 Likewise.
7984 * infcmd.c (_initialize_infcmd): Likewise.
7985 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7986 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7987 * python/py-param.c (add_setshow_generic): Likewise.
7988 * remote.c (_initialize_remote): Likewise.
7989 * top.c (execute_command): Prepend default_args if command has some.
7990 (set_verbose):
7991 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7992 * tracepoint.c (validate_actionline, encode_actions_1):
7993 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7994
bd920864
TBA
79952020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7996
7997 * jit.c (jit_read_descriptor): Use bool as the return type.
7998 (jit_breakpoint_re_set_internal): Use bool as the return type.
7999 Invert the return value logic; return true if the jit breakpoint
8000 has been successfully initialized.
8001 (jit_inferior_init): Update the call to
8002 jit_breakpoint_re_set_internal.
8003
f8098322
PA
80042020-06-22 Pedro Alves <palves@redhat.com>
8005
8006 PR gdb/25939
8007 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8008 Use the current inferior instead. Don't return
8009 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8010 wait again.
8011 * sol-thread.c (sol_thread_target::wait): Don't reference
8012 inferior_ptid.
8013 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8014 (sol_update_thread_list_callback): Use the current inferior's pid
8015 instead of inferior_ptid.
8016
196535a6
RO
80172020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8018
8019 * procfs.c: Cleanup many comments.
8020
8021 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8022 (AFTER_WATCHFLAG): Replace by value.
8023
8024 (MAIN_PROC_NAME_FORMAT): Inline ...
8025 (create_procinfo): ... here.
8026
8027 (procfs_debug_inferior): Remove SYS_exec handling.
8028 (syscall_is_exec): Likewise.
8029 (procfs_set_exec_trap): Likewise.
8030
8031 (syscall_is_lwp_exit): Inline in callers.
8032 (syscall_is_exit): Likewise.
8033 (syscall_is_exec): Likewise.
8034 (syscall_is_lwp_create): Likewise.
8035
8036 (invalidate_cache): Remove #if 0 code.
8037
8038 (make_signal_thread_runnable): Remove.
8039 (procfs_target::resume): Remove #if 0 code.
8040
cf6f3e86
RO
80412020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8042
8043 PR gdb/25939
8044 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8045 call ...
8046 (procfs_target::create_inferior): ... here.
8047
48e9cc84
PW
80482020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8049
8050 * exec.c (validate_exec_file): Ensure the build-id is up to
8051 date by calling reopen_exec_file (that checks file timestamp
8052 to decide to re-read the file).
8053
3922b302
PA
80542020-06-18 Pedro Alves <palves@redhat.com>
8055
8056 PR gdb/25412
8057 * gdbthread.h (delete_thread, delete_thread_silent)
8058 (find_thread_ptid): Update comments.
8059 * thread.c (current_thread_): New global.
8060 (is_current_thread): Move higher, and reimplement.
8061 (inferior_thread): Reimplement.
8062 (set_thread_exited): Use bool. Add assertions.
8063 (add_thread_silent): Simplify thread-reuse handling by always
8064 calling delete_thread.
8065 (delete_thread): Remove intro comment.
8066 (find_thread_ptid): Skip exited threads.
8067 (switch_to_thread_no_regs): Write to current_thread_.
8068 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8069 INFERIOR_PTID. Clear current_thread_.
8070
6dbdab44
PA
80712020-06-18 Pedro Alves <palves@redhat.com>
8072
8073 * aix-thread.c (pd_update): Use switch_to_thread.
8074
2da4b788
PA
80752020-06-18 Pedro Alves <palves@redhat.com>
8076
8077 * ravenscar-thread.c (ravenscar_thread_target): Update.
8078 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8079 (ravenscar_thread_target::add_active_thread): ... this. Don't
8080 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8081 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8082
50838d1b
PA
80832020-06-18 Pedro Alves <palves@redhat.com>
8084
8085 * nat/windows-nat.c (current_windows_thread): Remove.
8086 * nat/windows-nat.h (current_windows_thread): Remove.
8087 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8088 Adjust.
8089 (display_selectors): Adjust to fetch the current
8090 windows_thread_info based on inferior_ptid.
8091 (fake_create_process): No longer write to current_windows_thread.
8092 (windows_nat_target::get_windows_debug_event):
8093 Don't set inferior_ptid or current_windows_thread.
8094 (windows_nat_target::wait): Adjust to not rely on
8095 current_windows_thread.
8096 (do_initial_windows_stuff): Now a method of windows_nat_target.
8097 Switch to the last_ptid thread.
8098 (windows_nat_target::attach): Adjust.
8099 (windows_nat_target::detach): Use switch_to_no_thread instead of
8100 writing to inferior_ptid directly.
8101 (windows_nat_target::create_inferior): Adjust.
8102
31ce04e9
PA
81032020-06-18 Pedro Alves <palves@redhat.com>
8104
8105 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8106
1ee1a363
PA
81072020-06-18 Pedro Alves <palves@redhat.com>
8108
8109 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8110 after creating it, instead of writing to inferior_ptid. Don't
8111 write to inferior_ptid.
8112
6d350754
PA
81132020-06-18 Pedro Alves <palves@redhat.com>
8114
8115 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8116
5d971d48
PA
81172020-06-18 Pedro Alves <palves@redhat.com>
8118
8119 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8120 it, instead of writing to inferior_ptid.
8121
86e57d1b
PA
81222020-06-18 Pedro Alves <palves@redhat.com>
8123
8124 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8125 to inferior_ptid.
8126
f2e1c129
PA
81272020-06-18 Pedro Alves <palves@redhat.com>
8128
8129 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8130 instead of writing to inferior_ptid directly.
8131
60db1b85
PA
81322020-06-18 Pedro Alves <palves@redhat.com>
8133
8134 * corelow.c (core_target::close): Use switch_to_no_thread instead
8135 of writing to inferior_ptid directly.
8136 (add_to_thread_list, core_target_open): Use switch_to_thread
8137 instead of writing to inferior_ptid directly.
8138
fe7d6a8d
PA
81392020-06-18 Pedro Alves <palves@redhat.com>
8140
8141 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8142 inferior_ptid.
8143 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8144 inferior_ptid.
8145 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8146 inferior_ptid directly.
8147 (darwin_nat_target::init_thread_list): Switch to thread, instead
8148 of writing to inferior_ptid.
8149 (darwin_nat_target::attach): Don't write to inferior_ptid.
8150 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8151
975f8708
PA
81522020-06-18 Pedro Alves <palves@redhat.com>
8153
8154 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8155 thread.
8156 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8157 Instead use switch_to_thread.
8158 (gnu_nat_target::detach): Use switch_to_no_thread
8159 instead of writing to inferior_ptid directly. Used passed-in
8160 inferior instead of looking up the inferior by pid.
8161
1a204730
PA
81622020-06-18 Pedro Alves <palves@redhat.com>
8163
8164 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8165 inferior_ptid.
8166
ebe84f23
PA
81672020-06-18 Pedro Alves <palves@redhat.com>
8168
8169 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8170 inferior_ptid.
8171 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8172 thread.
8173 (nto_procfs_target::detach): Avoid referencing
8174 inferior_ptid. Use switch_to_no_thread instead of writing to
8175 inferior_ptid directly.
8176 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8177 instead of writing to inferior_ptid directly.
8178 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8179 to thread.
8180
191f02e5
PA
81812020-06-18 Pedro Alves <palves@redhat.com>
8182
8183 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8184 after creating it, instead of writing to inferior_ptid.
8185 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8186 to inferior_ptid directly.
8187 (gdbsim_target::wait): Don't write to inferior_ptid.
8188
0ac55310
PA
81892020-06-18 Pedro Alves <palves@redhat.com>
8190
8191 * remote.c (remote_target::remote_notice_new_inferior): Use
8192 switch_to_thread instead of writing to inferior_ptid directly.
8193 (remote_target::add_current_inferior_and_thread): Use
8194 switch_to_no_thread instead of writing to inferior_ptid directly.
8195 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8196 and switch_to_thread instead of using set_current_inferior or
8197 writing to inferior_ptid directly.
8198
5233f39b
PA
81992020-06-18 Pedro Alves <palves@redhat.com>
8200
8201 * tracectf.c (ctf_target_open): Switch to added thread instead of
8202 writing to inferior_ptid directly.
8203 (ctf_target::close): Use switch_to_no_thread instead of writing to
8204 inferior_ptid directly.
8205
087e161b
PA
82062020-06-18 Pedro Alves <palves@redhat.com>
8207
8208 * tracefile-tfile.c (tfile_target_open): Don't write to
8209 inferior_ptid directly, instead switch to added thread.
8210 (tfile_target::close): Use switch_to_no_thread instead of writing
8211 to inferior_ptid directly.
8212
7fb43e53
PA
82132020-06-18 Pedro Alves <palves@redhat.com>
8214
8215 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8216 (procfs_target::detach): Use switch_to_no_thread
8217 instead of writing to inferior_ptid directly.
8218 (do_attach): Change return type to void. Switch to the added
8219 thread.
8220 (procfs_target::create_inferior): Switch to the added thread.
8221 (procfs_do_thread_registers): Don't write to inferior_ptid.
8222
18493a00
PA
82232020-06-18 Pedro Alves <palves@redhat.com>
8224
8225 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8226 of writing to inferior_ptid.
8227 (scoped_restore_exited_inferior): Delete.
8228 (handle_vfork_child_exec_or_exit): Simplify using
8229 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8230 instead of writing to inferior_ptid.
8231 (THREAD_STOPPED_BY): Delete.
8232 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8233 (thread_stopped_by_hw_breakpoint): Delete.
8234 (save_waitstatus): Use
8235 scoped_restore_current_thread+switch_to_thread, and call
8236 target_stopped_by_watchpoint instead of
8237 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8238 instead of thread_stopped_by_sw_breakpoint, and
8239 target_stopped_by_hw_breakpoint instead of
8240 thread_stopped_by_hw_breakpoint.
8241 (handle_inferior_event)
8242 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8243 inferior_ptid directly, nor
8244 set_current_inferior/set_current_program_space. Use
8245 switch_to_thread / switch_to_inferior_no_thread instead.
8246
a0776b13
PA
82472020-06-18 Pedro Alves <palves@redhat.com>
8248
8249 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8250 instead of writing to inferior_ptid.
8251
6155c136
PA
82522020-06-18 Pedro Alves <palves@redhat.com>
8253
8254 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8255 added thread.
8256 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8257 to the added thread.
8258 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8259 instead of writing to inferior_ptid.
8260
c5316fc6
PA
82612020-06-18 Pedro Alves <palves@redhat.com>
8262
8263 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8264 (register_to_value_test): Mock a program_space too. Heap-allocate
8265 the address space. Don't write to inferior_ptid. Use
8266 switch_to_thread instead.
8267
8df01799
PA
82682020-06-18 Pedro Alves <palves@redhat.com>
8269
8270 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8271 Delete.
8272 (find_signalled_thread()): New, factored out from
8273 linux_make_corefile_notes and adjusted to handle exited threads.
8274 (linux_make_corefile_notes): Adjust to use the new
8275 find_signalled_thread.
8276
41792d68
PA
82772020-06-18 Pedro Alves <palves@redhat.com>
8278
8279 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8280 of saving/restoring inferior_ptid.
8281
612f258a
TT
82822020-06-17 Tom Tromey <tom@tromey.com>
8283
8284 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8285 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8286 declare.
8287 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8288
efb763a5
SM
82892020-06-15 Simon Marchi <simon.marchi@efficios.com>
8290
8291 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8292 of partial symtabs.
8293
2951f6c0
SM
82942020-06-17 Simon Marchi <simon.marchi@efficios.com>
8295
8296 * regformats/reg-arm.dat: Remove.
8297 * regformats/reg-bfin.dat: Remove.
8298 * regformats/reg-cris.dat: Remove.
8299 * regformats/reg-crisv32.dat: Remove.
8300 * regformats/reg-m32r.dat: Remove.
8301 * regformats/reg-tilegx.dat: Remove.
8302 * regformats/reg-tilegx32.dat: Remove.
8303
7d458ea5
SM
83042020-06-17 Simon Marchi <simon.marchi@efficios.com>
8305
8306 * features/Makefile (WHICH): Remove arm files.
8307 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8308 * regformats/arm/arm-with-neon.dat: Remove.
8309 * regformats/arm/arm-with-vfpv2.dat: Remove.
8310 * regformats/arm/arm-with-vfpv3.dat: Remove.
8311
3af96c0d
SM
83122020-06-17 Simon Marchi <simon.marchi@efficios.com>
8313
8314 * features/Makefile (XMLTOC): Remove rx.xml.
8315
b25e22fd
PA
83162020-06-17 Pedro Alves <palves@redhat.com>
8317
8318 * gdbthread.h (thread_control_state) <trap_expected> Update
8319 comments.
8320
a78a19b1
AB
83212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8322
8323 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8324 ada_language::lookup_symbol_nonlocal.
8325 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8326 (ada_language::lookup_symbol_nonlocal): New member function,
8327 implementation from ada_lookup_symbol_nonlocal.
8328 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8329 initializer.
8330 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8331 initializer.
8332 (cplus_language::lookup_symbol_nonlocal): New member function.
8333 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8334 (minimal_language_data) Likewise.
8335 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8336 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8337 initializer.
8338 (d_language::lookup_symbol_nonlocal): New member function.
8339 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8340 initializer.
8341 (f_language::lookup_symbol_nonlocal): New member function.
8342 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8343 initializer.
8344 * language.c (unknown_language_data): Likewise.
8345 (auto_language_data): Likewise.
8346 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8347 field.
8348 (language_defn::lookup_symbol_nonlocal): New member function.
8349 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8350 initializer.
8351 * objc-lang.c (objc_language_data): Likewise.
8352 * opencl-lang.c (opencl_language_data): Likewise.
8353 * p-lang.c (pascal_language_data): Likewise.
8354 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8355 rust_language::lookup_symbol_nonlocal.
8356 (rust_language_data): Delete la_lookup_symbol_nonlocal
8357 initializer.
8358 (rust_language::lookup_symbol_nonlocal): New member function,
8359 implementation from rust_lookup_symbol_nonlocal.
8360 * symtab.c (lookup_symbol_aux): Update call to
8361 lookup_symbol_nonlocal.
8362 (basic_lookup_symbol_nonlocal): Rename to...
8363 (language_defn::lookup_symbol_nonlocal): ...this, and update
8364 header comment. Remove language_defn parameter, and replace with
8365 uses of `this'.
8366 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8367
ebe2334e
AB
83682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8369
8370 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8371 initializer.
8372 (ada_language::value_print_inner): New member function.
8373 * c-lang.c (c_language_data): Delete la_value_print_inner
8374 initializer.
8375 (cplus_language_data): Likewise.
8376 (asm_language_data): Likewise.
8377 (minimal_language_data): Likewise.
8378 * d-lang.c (d_language_data): Likewise.
8379 (d_language::value_print_inner): New member function.
8380 * f-lang.c (f_language_data): Delete la_value_print_inner
8381 initializer.
8382 (f_language::value_print_inner): New member function.
8383 * f-lang.h (f_value_print_innner): Rename to...
8384 (f_value_print_inner): ...this (note spelling of 'inner').
8385 * f-valprint.c (f_value_print_innner): Rename to...
8386 (f_value_print_inner): ...this (note spelling of 'inner').
8387 * go-lang.c (go_language_data): Delete la_value_print_inner
8388 initializer.
8389 (go_language::value_print_inner): New member function.
8390 * language.c (language_defn::value_print_inner): Define new member
8391 function.
8392 (unk_lang_value_print_inner): Delete.
8393 (unknown_language_data): Delete la_value_print_inner initializer.
8394 (unknown_language::value_print_inner): New member function.
8395 (auto_language_data): Delete la_value_print_inner initializer.
8396 (auto_language::value_print_inner): New member function.
8397 * language.h (language_data): Delete la_value_print_inner field.
8398 (language_defn::value_print_inner): Delcare new member function.
8399 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8400 initializer.
8401 (m2_language::value_print_inner): New member function.
8402 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8403 initializer.
8404 * opencl-lang.c (opencl_language_data): Likewise.
8405 * p-lang.c (pascal_language_data): Likewise.
8406 (pascal_language::value_print_inner): New member function.
8407 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8408 initializer.
8409 (rust_language::value_print_inner): New member function.
8410 * valprint.c (do_val_print): Update call to value_print_inner.
8411
a1d1fa3e
AB
84122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * ada-lang.c (ada_language_data): Delete la_value_print
8415 initializer.
8416 (ada_language::value_print): New member function.
8417 * c-lang.c (c_language_data): Delete la_value_print initializer.
8418 (cplus_language_data): Likewise.
8419 (asm_language_data): Likewise.
8420 (minimal_language_data): Likewise.
8421 * d-lang.c (d_language_data): Likewise.
8422 * f-lang.c (f_language_data): Likewise.
8423 * go-lang.c (go_language_data): Likewise.
8424 * language.c (unk_lang_value_print): Delete.
8425 (language_defn::value_print): Define new member function.
8426 (unknown_language_data): Delete la_value_print initializer.
8427 (unknown_language::value_print): New member function.
8428 (auto_language_data): Delete la_value_print initializer.
8429 (auto_language::value_print): New member function.
8430 * language.h (language_data): Delete la_value_print field.
8431 (language_defn::value_print): Declare new member function.
8432 (LA_VALUE_PRINT): Update call to value_print.
8433 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8434 * objc-lang.c (objc_language_data): Likewise.
8435 * opencl-lang.c (opencl_language_data): Likewise.
8436 * p-lang.c (pascal_language_data): Likewise.
8437 (pascal_language::value_print): New member function.
8438 * rust-lang.c (rust_language_data): Delete la_value_print
8439 initializer.
8440
f16a9f57
AB
84412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8442
8443 * ada-lang.c (ada_watch_location_expression): Rename to
8444 ada_language::watch_location_expression.
8445 (ada_language_data): Delete la_watch_location_expression
8446 initializer.
8447 (ada_language::watch_location_expression): New member function,
8448 implementation from ada_watch_location_expression.
8449 * breakpoint.c (watch_command_1): Update call to
8450 watch_location_expression.
8451 * c-lang.c (c_watch_location_expression): Rename to
8452 language_defn::watch_location_expression.
8453 (c_language_data): Delete la_watch_location_expression
8454 initializer.
8455 (cplus_language_data): Likewise.
8456 (asm_language_data): Likewise.
8457 (minimal_language_data): Likewise.
8458 * c-lang.h (c_watch_location_expression): Delete declaration.
8459 * d-lang.c (d_language_data): Delete la_watch_location_expression
8460 initializer.
8461 * f-lang.c (f_language_data): Likewise.
8462 * go-lang.c (go_language_data): Likewise.
8463 * language.c (language_defn::watch_location_expression): Member
8464 function implementation from c_watch_location_expression.
8465 (unknown_language_data): Delete la_watch_location_expression
8466 initializer.
8467 (auto_language_data): Likewise.
8468 * language.h (language_data): Delete la_watch_location_expression
8469 field.
8470 (language_defn::watch_location_expression): Declare new member
8471 function.
8472 * m2-lang.c (m2_language_data): Delete
8473 la_watch_location_expression initializer.
8474 * objc-lang.c (objc_language_data): Likewise.
8475 * opencl-lang.c (opencl_language_data): Likewise.
8476 * p-lang.c (pascal_language_data): Likewise.
8477 * rust-lang.c (rust_watch_location_expression): Rename to
8478 rust_language::watch_location_expression.
8479 (rust_language_data): Delete la_watch_location_expression
8480 initializer.
8481 (rust_language::watch_location_expression): New member function,
8482 implementation from rust_watch_location_expression.
8483
7e56227d
AB
84842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8485
8486 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8487 ada_language::collect_symbol_completion_matches.
8488 (ada_language_data): Delete la_collect_symbol_completion_matches
8489 initializer.
8490 (ada_language::collect_symbol_completion_matches): New member
8491 function, implementation from
8492 ada_collect_symbol_completion_matches.
8493 * c-lang.c (c_language_data): Delete
8494 la_collect_symbol_completion_matches initializer.
8495 (cplus_language_data): Likewise.
8496 (asm_language_data): Likewise.
8497 (minimal_language_data): Likewise.
8498 * d-lang.c (d_language_data): Likewise.
8499 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8500 f_language::collect_symbol_completion_matches.
8501 (f_language_data): Delete la_collect_symbol_completion_matches
8502 initializer.
8503 (f_language::collect_symbol_completion_matches) New member
8504 function, implementation from f_collect_symbol_completion_matches.
8505 * go-lang.c (go_language_data): Delete
8506 la_collect_symbol_completion_matches initializer.
8507 * language.c (unknown_language_data): Likewise.
8508 (auto_language_data): Likewise.
8509 * language.h (language_data): Delete
8510 la_collect_symbol_completion_matches field.
8511 (language_defn::collect_symbol_completion_matches): New member
8512 function.
8513 * m2-lang.c (m2_language_data): Delete
8514 la_collect_symbol_completion_matches initializer.
8515 * objc-lang.c (objc_language_data): Likewise.
8516 * opencl-lang.c (opencl_language_data): Likewise.
8517 * p-lang.c (pascal_language_data): Likewise.
8518 * rust-lang.c (rust_language_data): Likewise.
8519 * symtab.c (default_collect_symbol_completion_matches): Delete.
8520 (collect_symbol_completion_matches): Update call to
8521 collect_symbol_completion_matches.
8522 (collect_symbol_completion_matches_type): Likewise.
8523 * symtab.h (default_collect_symbol_completion_matches): Delete
8524 declaration.
8525
53fc67f8
AB
85262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8527
8528 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8529 (ada_language_data): Delete la_word_break_characters initializer.
8530 (ada_language::word_break_characters): New member function.
8531 * c-lang.c (c_language_data): Delete la_word_break_characters
8532 initializer.
8533 (cplus_language_data): Likewise.
8534 (asm_language_data): Likewise.
8535 (minimal_language_data): Likewise.
8536 * completer.c: Update global comment.
8537 (advance_to_expression_complete_word_point): Update call to
8538 word_break_characters.
8539 (complete_files_symbols): Likewise.
8540 (complete_line_internal_1): Likewise.
8541 (default_completer_handle_brkchars): Likewise.
8542 (skip_quoted_chars): Likewise.
8543 * d-lang.c (d_language_data): Delete la_word_break_characters
8544 initializer.
8545 * f-lang.c (f_word_break_characters): Delete.
8546 (f_language_data): Delete la_word_break_characters initializer.
8547 (f_language::word_break_characters): New member function.
8548 * go-lang.c (go_language_data): Delete la_word_break_characters
8549 initializer.
8550 * language.c (unknown_language_data): Likewise.
8551 (auto_language_data): Likewise.
8552 * language.h (default_word_break_characters): Move declaration to
8553 earlier in the file.
8554 (language_data): Delete la_word_break_characters field.
8555 (language_defn::word_break_characters): New member function.
8556 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8557 initializer.
8558 * objc-lang.c (objc_language_data): Likewise.
8559 * opencl-lang.c (opencl_language_data): Likewise.
8560 * p-lang.c (pascal_language_data): Likewise.
8561 * rust-lang.c (rust_language_data): Likewise.
8562
c9debfb9
AB
85632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8564
8565 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8566 (ada_language_data): Delete la_get_symbol_name_matcher
8567 initializer.
8568 (language_defn::get_symbol_name_matcher_inner): New member
8569 function.
8570 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8571 initializer.
8572 (cplus_language_data): Likewise.
8573 (cplus_language::get_symbol_name_matcher_inner): New member
8574 function.
8575 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8576 (minimal_language_data): Likewise.
8577 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8578 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8579 initializer.
8580 * dictionary.c (iter_match_first_hashed): Update call to
8581 get_symbol_name_matcher.
8582 (iter_match_next_hashed): Likewise.
8583 (iter_match_next_linear): Likewise.
8584 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8585 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8586 initializer.
8587 (f_language::get_symbol_name_matcher_inner): New member function.
8588 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8589 initializer.
8590 * language.c (default_symbol_name_matcher): Update header comment,
8591 make static.
8592 (language_defn::get_symbol_name_matcher): New definition.
8593 (language_defn::get_symbol_name_matcher_inner): Likewise.
8594 (get_symbol_name_matcher): Delete.
8595 (unknown_language_data): Delete la_get_symbol_name_matcher
8596 initializer.
8597 (auto_language_data): Likewise.
8598 * language.h (language_data): Delete la_get_symbol_name_matcher
8599 field.
8600 (language_defn::get_symbol_name_matcher): New member function.
8601 (language_defn::get_symbol_name_matcher_inner): Likewise.
8602 (default_symbol_name_matcher): Delete declaration.
8603 * linespec.c (find_methods): Update call to
8604 get_symbol_name_matcher.
8605 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8606 initializer.
8607 * minsyms.c (lookup_minimal_symbol): Update call to
8608 get_symbol_name_matcher.
8609 (iterate_over_minimal_symbols): Likewise.
8610 * objc-lang.c (objc_language_data): Delete
8611 la_get_symbol_name_matcher initializer.
8612 * opencl-lang.c (opencl_language_data): Likewise.
8613 * p-lang.c (pascal_language_data): Likewise.
8614 * psymtab.c (psymbol_name_matches): Update call to
8615 get_symbol_name_matcher.
8616 * rust-lang.c (rust_language_data): Delete
8617 la_get_symbol_name_matcher initializer.
8618 * symtab.c (symbol_matches_search_name): Update call to
8619 get_symbol_name_matcher.
8620 (compare_symbol_name): Likewise.
8621
9a49ad8c
AB
86222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * ada-lang.c (ada_language_data): Delete la_compute_program
8625 initializer.
8626 * c-lang.c (c_language_data): Likewise.
8627 (c_language::compute_program): New member function.
8628 (cplus_language_data): Delete la_compute_program initializer.
8629 (cplus_language::compute_program): New member function.
8630 (asm_language_data): Delete la_compute_program initializer.
8631 (minimal_language_data): Likewise.
8632 * c-lang.h (c_compute_program): Update comment.
8633 (cplus_compute_program): Likewise.
8634 * compile/compile-c-support.c (c_compute_program): Likewise.
8635 (cplus_compute_program): Likewise.
8636 * compile/compile.c (compile_to_object): Update call to
8637 la_compute_program.
8638 * d-lang.c (d_language_data): Delete la_compute_program
8639 initializer.
8640 * f-lang.c (f_language_data): Likewise.
8641 * go-lang.c (go_language_data): Likewise.
8642 * language.c (unknown_language_data): Likewise.
8643 (auto_language_data): Likewise.
8644 * language.h (language_data): Delete la_compute_program field.
8645 (language_defn::compute_program): New member function.
8646 * m2-lang.c (m2_language_data): Delete la_compute_program
8647 initializer.
8648 * objc-lang.c (objc_language_data): Likewise.
8649 * opencl-lang.c (opencl_language_data): Likewise.
8650 * p-lang.c (pascal_language_data): Likewise.
8651 * rust-lang.c (rust_language_data): Likewise.
8652
eff93b4d
AB
86532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8654
8655 * ada-lang.c (ada_language_data) Delete
8656 la_class_name_from_physname initializer.
8657 * c-lang.c (c_language_data): Likewise.
8658 (cplus_language_data): Likewise.
8659 (cplus_language::class_name_from_physname): New member function.
8660 (asm_language_data): Delete la_class_name_from_physname
8661 initializer.
8662 (minimal_language_data): Likewise.
8663 * d-lang.c (d_language_data): Likewise.
8664 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8665 method on language_defn class.
8666 (guess_full_die_structure_name): Likewise.
8667 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8668 initializer.
8669 * go-lang.c (go_language_data): Likewise.
8670 * language.c (language_class_name_from_physname): Delete.
8671 (unk_lang_class_name): Delete.
8672 (unknown_language_data): Delete la_class_name_from_physname
8673 initializer.
8674 (auto_language_data): Likewise.
8675 * language.h (language_data): Delete la_class_name_from_physname
8676 field.
8677 (language_defn::class_name_from_physname): New function.
8678 (language_class_name_from_physname): Delete declaration.
8679 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8680 initializer.
8681 * objc-lang.c (objc_language_data): Likewise.
8682 * opencl-lang.c (opencl_language_data): Likewise.
8683 * p-lang.c (pascal_language_data): Likewise.
8684 * rust-lang.c (rust_language_data): Likewise.
8685
de543742
TT
86862020-06-16 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-data.h (STATUS_NAME): New macro.
8689 * tui/tui-layout.c (tui_remove_some_windows)
8690 (initialize_known_windows, tui_register_window)
8691 (tui_layout_split::remove_windows, initialize_layouts)
8692 (tui_new_layout_command): Don't use hard-coded window names.
8693
a350efd4
TT
86942020-06-16 Tom Tromey <tom@tromey.com>
8695
8696 PR tui/25348:
8697 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8698 tui_initialize_readline. Only run once. Call rl_initialize.
8699 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8700 tui_initialize_readline.
8701 * tui/tui-io.c (tui_setup_io): Call
8702 tui_ensure_readline_initialized.
8703 * tui/tui-interp.c (tui_interp::init): Update.
8704
39ec0490
TT
87052020-06-16 Tom Tromey <tom@tromey.com>
8706
8707 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8708 Also preserve the status window.
8709
d2d1ea20
TT
87102020-06-16 Tom Tromey <tom@tromey.com>
8711
8712 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8713 where m_window==nullptr.
8714
66920317
TT
87152020-06-15 Tom Tromey <tromey@adacore.com>
8716
8717 * windows-nat.c (windows_nat::handle_output_debug_string):
8718 Update.
8719 (windows_nat::handle_ms_vc_exception): Update.
8720 * target.h (target_read_string): Change API.
8721 * target.c (target_read_string): Change API.
8722 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8723 Update.
8724 * solib-frv.c (frv_current_sos): Update.
8725 * solib-dsbt.c (dsbt_current_sos): Update.
8726 * solib-darwin.c (darwin_current_sos): Update.
8727 * linux-thread-db.c (inferior_has_bug): Update.
8728 * expprint.c (print_subexp_standard): Update.
8729 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8730 (ada_exception_message_1): Update.
8731
a5d871dd
TT
87322020-06-15 Tom Tromey <tromey@adacore.com>
8733
8734 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8735
670e35fa
TT
87362020-06-15 Tom Tromey <tromey@adacore.com>
8737
8738 * valprint.c (read_string): Update comment.
8739 * target.c (MIN): Remove.
8740 (target_read_string): Rewrite.
8741
f5272a3b
TT
87422020-06-15 Tom Tromey <tromey@adacore.com>
8743
8744 * corefile.c (read_memory_string): Remove.
8745 * ada-valprint.c (ada_value_print_ptr): Update.
8746 * ada-lang.h (ada_tag_name): Change return type.
8747 * ada-lang.c (type_from_tag): Update.
8748 (ada_tag_name_from_tsd): Change return type. Use
8749 target_read_string.
8750 (ada_tag_name): Likewise.
8751 * gdbcore.h (read_memory_string): Don't declare.
8752
2c074f49
HD
87532020-06-14 Hannes Domani <ssbssa@yahoo.de>
8754
8755 * symtab.c (rbreak_command): Ignore Windows drive colon.
8756
6a17d503
SM
87572020-06-12 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * NEWS: Mention removed GDBserver host support.
8760
453c733f
NC
87612020-06-12 Nelson Chu <nelson.chu@sifive.com>
8762
8763 * features/riscv/rebuild-csr-xml.sh: Updated.
8764
2b4e6a3f
TT
87652020-06-11 Tom Tromey <tom@tromey.com>
8766
8767 PR gdb/18318:
8768 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8769
4412332f
JG
87702020-06-09 Jonny Grant <jg@jguk.org>
87712020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8772
8773 * main.c (captured_main_1): Don't print new line after help.
8774 (print_gdb_help): add mailing list and IRC channel information
8775 to --help. Add new lines between items in the footer. Remove
8776 quotes around bug url.
8777
2f33032a
KS
87782020-06-11 Keith Seitz <keiths@redhat.com>
8779
8780 PR gdb/21356
8781 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8782 Resolve typedefs for type length calculations.
8783
7ab96794
TV
87842020-06-10 Tom de Vries <tdevries@suse.de>
8785
8786 PR ada/24713
8787 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8788 (write_psymbols): Enable .gdb_index for ada.
8789 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8790 ada.
8791
e5f3ece2
TV
87922020-06-10 Tom de Vries <tdevries@suse.de>
8793
8794 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8795 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8796 namei" instead of "const char *name" argument.
8797 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8798 dw2_symtab_iter_init.
8799
940da03e
SM
88002020-06-08 Simon Marchi <simon.marchi@efficios.com>
8801
8802 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8803 to use type::field and field::type instead.
8804
b6cdac4b
SM
88052020-06-08 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8808 to use field::type instead.
8809
5d14b6e5
SM
88102020-06-08 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * gdbtypes.h (struct field) <type, set_type>: New methods.
8813 Rename `type` field to...
8814 <m_type>: ... this. Change references throughout to use type or
8815 set_type methods.
8816 (FIELD_TYPE): Use field::type. Change call sites that modify
8817 the field's type to use field::set_type instead.
8818
3d967001
SM
88192020-06-08 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8822 to use type::index_type instead.
8823
262abc0d
SM
88242020-06-08 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8827 methods.
8828 (TYPE_INDEX_TYPE): Use type::index_type.
8829 * gdbtypes.c (create_array_type_with_stride): Likewise.
8830
82836c92
TT
88312020-06-07 Tom Tromey <tom@tromey.com>
8832
8833 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8834 parameter.
8835 (generic_value_print): Update.
8836
940dace9
AB
88372020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8838
8839 Revert commit 982a38f60b0.
8840 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8841
982a38f6
AB
88422020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8843
8844 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8845 avoid use after free.
8846
82f06518
TV
88472020-06-05 Tom de Vries <tdevries@suse.de>
8848
8849 * NEWS: Fix typos.
8850
f8c41851
SM
88512020-06-04 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8854 the per_bfd object.
8855 (dwarf2_read_debug_names): Likewise.
8856 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8857 object when re-using a per_bfd object with an index.
8858
f9b5d5ea
TV
88592020-06-03 Tom de Vries <tdevries@suse.de>
8860
8861 PR symtab/26046
8862 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8863 children for C++.
8864 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8865 DW_TAG_subprogram.
8866
f6eee2d0
AB
88672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8868
8869 * ada-lang.c (ada_language_data): Delete skip_trampoline
8870 initializer.
8871 * c-lang.c (c_language_data): Likewise.
8872 (cplus_language_data): Likewise.
8873 (cplus_language::skip_trampoline): New member function.
8874 (asm_language_data): Delete skip_trampoline initializer.
8875 (minimal_language_data): Likewise.
8876 * d-lang.c (d_language_data): Likewise.
8877 * f-lang.c (f_language_data): Likewise.
8878 * go-lang.c (go_language_data): Likewise.
8879 * language.c (unk_lang_trampoline): Delete function.
8880 (skip_language_trampoline): Update.
8881 (unknown_language_data): Delete skip_trampoline initializer.
8882 (auto_language_data): Likewise.
8883 * language.h (language_data): Delete skip_trampoline field.
8884 (language_defn::skip_trampoline): New function.
8885 * m2-lang.c (m2_language_data): Delete skip_trampoline
8886 initializer.
8887 * objc-lang.c (objc_skip_trampoline): Delete function, move
8888 implementation to objc_language::skip_trampoline.
8889 (objc_language_data): Delete skip_trampoline initializer.
8890 (objc_language::skip_trampoline): New member function with
8891 implementation from objc_skip_trampoline.
8892 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8893 initializer.
8894 * p-lang.c (pascal_language_data): Likewise.
8895 * rust-lang.c (rust_language_data): Likewise.
8896
0a50df5d
AB
88972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8900 (ada_language::demangle): New member function.
8901 * c-lang.c (c_language_data): Delete la_demangle initializer.
8902 (cplus_language_data): Delete la_demangle initializer.
8903 (cplus_language::demangle): New member function.
8904 (asm_language_data): Delete la_demangle initializer.
8905 (minimal_language_data): Delete la_demangle initializer.
8906 * d-lang.c (d_language_data): Delete la_demangle initializer.
8907 (d_language::demangle): New member function.
8908 * f-lang.c (f_language_data): Delete la_demangle initializer.
8909 (f_language::demangle): New member function.
8910 * go-lang.c (go_language_data): Delete la_demangle initializer.
8911 (go_language::demangle): New member function.
8912 * language.c (language_demangle): Update.
8913 (unk_lang_demangle): Delete.
8914 (unknown_language_data): Delete la_demangle initializer.
8915 (unknown_language::demangle): New member function.
8916 (auto_language_data): Delete la_demangle initializer.
8917 (auto_language::demangle): New member function.
8918 * language.h (language_data): Delete la_demangle field.
8919 (language_defn::demangle): New function.
8920 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8921 * objc-lang.c (objc_language_data): Delete la_demangle
8922 initializer.
8923 (objc_language::demangle): New member function.
8924 * opencl-lang.c (opencl_language_data): Delete la_demangle
8925 initializer.
8926 * p-lang.c (pascal_language_data): Likewise.
8927 * rust-lang.c (rust_language_data): Likewise.
8928 (rust_language::demangle): New member function.
8929
fbfb0a46
AB
89302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8931
8932 * ada-lang.c (ada_language_data): Delete la_print_type
8933 initializer.
8934 (ada_language::print_type): New member function.
8935 * c-lang.c (c_language_data): Delete la_print_type initializer.
8936 (c_language::print_type): New member function.
8937 (cplus_language_data): Delete la_print_type initializer.
8938 (cplus_language::print_type): New member function.
8939 (asm_language_data): Delete la_print_type initializer.
8940 (asm_language::print_type): New member function.
8941 (minimal_language_data): Delete la_print_type initializer.
8942 (minimal_language::print_type): New member function.
8943 * d-lang.c (d_language_data): Delete la_print_type initializer.
8944 (d_language::print_type): New member function.
8945 * f-lang.c (f_language_data): Delete la_print_type initializer.
8946 (f_language::print_type): New member function.
8947 * go-lang.c (go_language_data): Delete la_print_type initializer.
8948 (go_language::print_type): New member function.
8949 * language.c (unk_lang_print_type): Delete.
8950 (unknown_language_data): Delete la_print_type initializer.
8951 (unknown_language::print_type): New member function.
8952 (auto_language_data): Delete la_print_type initializer.
8953 (auto_language::print_type): New member function.
8954 * language.h (language_data): Delete la_print_type field.
8955 (language_defn::print_type): New function.
8956 (LA_PRINT_TYPE): Update.
8957 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8958 (m2_language::print_type): New member function.
8959 * objc-lang.c (objc_language_data): Delete la_print_type
8960 initializer.
8961 (objc_language::print_type): New member function.
8962 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8963 to opencl_language::print_type.
8964 (opencl_language_data): Delete la_print_type initializer.
8965 (opencl_language::print_type): New member function, implementation
8966 from opencl_print_type.
8967 * p-lang.c (pascal_language_data): Delete la_print_type
8968 initializer.
8969 (pascal_language::print_type): New member function.
8970 * rust-lang.c (rust_print_type): Delete, implementation moved to
8971 rust_language::print_type.
8972 (rust_language_data): Delete la_print_type initializer.
8973 (rust_language::print_type): New member function, implementation
8974 from rust_print_type.
8975
6f827019
AB
89762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8977
8978 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8979 implementation moves to...
8980 (ada_language::sniff_from_mangled_name): ...here. Update return
8981 type.
8982 (ada_language_data): Delete la_sniff_from_mangled_name
8983 initializer.
8984 * c-lang.c (c_language_data): Likewise.
8985 (cplus_language_data): Likewise.
8986 (cplus_language::sniff_from_mangled_name): New member function,
8987 implementation taken from gdb_sniff_from_mangled_name.
8988 (asm_language_data): Delete la_sniff_from_mangled_name
8989 initializer.
8990 (minimal_language_data): Likewise.
8991 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8992 implementation moves to cplus_language::sniff_from_mangled_name.
8993 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8994 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8995 moves to...
8996 (d_language::sniff_from_mangled_name): ...here.
8997 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8998 * f-lang.c (f_language_data): Likewise.
8999 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9000 moves to...
9001 (go_language::sniff_from_mangled_name): ...here.
9002 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9003 * language.c (language_sniff_from_mangled_name): Delete.
9004 (unknown_language_data): Delete la_sniff_from_mangled_name
9005 initializer.
9006 (auto_language_data): Likewise.
9007 * language.h (language_data): Delete la_sniff_from_mangled_name
9008 field.
9009 (language_defn::sniff_from_mangled_name): New function.
9010 (language_sniff_from_mangled_name): Delete declaration.
9011 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9012 field.
9013 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9014 implementation moves to...
9015 (objc_language::sniff_from_mangled_name): ...here.
9016 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9017 * opencl-lang.c (opencl_language_data): Likewise.
9018 * p-lang.c (pascal_language_data): Likewise.
9019 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9020 implementation moves to...
9021 (rust_language::sniff_from_mangled_name): ...here.
9022 (rust_language_data): Delete la_sniff_from_mangled_name
9023 initializer.
9024 * symtab.c (symbol_find_demangled_name): Call
9025 sniff_from_mangled_name member function.
9026
fb8006fd
AB
90272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9030 initializer.
9031 * c-lang.c (c_language_data): Likewise.
9032 (cplus_language_data): Likewise.
9033 (cplus_language::search_name_hash): New member function.
9034 (asm_language_data): Delete la_search_name_hash initializer.
9035 (minimal_language_data): Likewise.
9036 * d-lang.c (d_language_data): Likewise.
9037 * dictionary.c (default_search_name_hash): Rename to...
9038 (language_defn::search_name_hash): ...this.
9039 * f-lang.c (f_language_data): Likewise.
9040 (f_language::search_name_hash): New member function.
9041 * go-lang.c (go_language_data): Delete la_search_name_hash
9042 initializer.
9043 * language.c (unknown_language_data): Likewise.
9044 (auto_language_data): Likewise.
9045 * language.h (struct language_data): Delete la_search_name_hash
9046 field.
9047 (language_defn::search_name_hash): Declare new member function.
9048 (default_search_name_hash): Delete declaration.
9049 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9050 initializer.
9051 * objc-lang.c (objc_language_data): Likewise.
9052 * opencl-lang.c (opencl_language_data): Likewise.
9053 * p-lang.c (pascal_language_data): Likewise.
9054 * rust-lang.c (rust_language_data): Likewise.
9055 * symtab.c (search_name_hash): Update call.
9056
8e25bafe
AB
90572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9058
9059 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9060 initializer.
9061 * c-lang.c (class compile_instance): Declare.
9062 (c_language_data): Delete la_get_compile_instance initializer.
9063 (c_language::get_compile_instance): New member function.
9064 (cplus_language_data): Delete la_get_compile_instance initializer.
9065 (cplus_language::get_compile_instance): New member function.
9066 (asm_language_data): Delete la_get_compile_instance initializer.
9067 (minimal_language_data): Likewise.
9068 * c-lang.h (c_get_compile_context): Update comment.
9069 (cplus_get_compile_context): Update comment.
9070 * compile/compile.c (compile_to_object): Update calls, don't rely
9071 on function pointer being NULL.
9072 * d-lang.c (d_language_data): Delete la_get_compile_instance
9073 initializer.
9074 * f-lang.c (f_language_data): Likewise.
9075 * go-lang.c (go_language_data): Likewise.
9076 * language.c (unknown_language_data): Likewise.
9077 (auto_language_data): Likewise.
9078 * language.h (language_data): Delete la_get_compile_instance field.
9079 (language_defn::get_compile_instance): New member function.
9080 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9081 initializer.
9082 * objc-lang.c (objc_language_data): Likewise.
9083 * opencl-lang.c (opencl_language_data): Likewise.
9084 * p-lang.c (pascal_language_data): Likewise.
9085 * rust-lang.c (rust_language_data): Likewise.
9086
4009ee92
AB
90872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9088
9089 * ada-lang.c (ada_add_all_symbols): Update comment.
9090 (ada_iterate_over_symbols): Delete, move implementation to...
9091 (ada_language::iterate_over_symbols): ...here, a new member
9092 function, rewrite to use range based for loop.
9093 (ada_language_data): Delete la_iterate_over_symbols initializer.
9094 * c-lang.c (c_language_data): Likewise.
9095 (cplus_language_data): Likewise.
9096 (asm_language_data): Likewise.
9097 (minimal_language_data): Likewise.
9098 * d-lang.c (d_language_data): Likewise.
9099 * f-lang.c (f_language_data): Likewise.
9100 * go-lang.c (go_language_data): Likewise.
9101 * language.c (unknown_language_data): Likewise.
9102 (auto_language_data): Likewise.
9103 * language.h (language_data): Delete la_iterate_over_symbols field.
9104 (language_defn::iterate_over_symbols): New member function.
9105 (LA_ITERATE_OVER_SYMBOLS): Update.
9106 * linespec.c (iterate_over_all_matching_symtabs): Update.
9107 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9108 initializer.
9109 * objc-lang.c (objc_language_data): Likewise.
9110 * opencl-lang.c (opencl_language_data): Likewise.
9111 * p-lang.c (pascal_language_data): Likewise.
9112 * rust-lang.c (rust_language_data): Likewise.
9113
54f4ca46
AB
91142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * ada-lang.c (ada_language_data): Delete
9117 la_lookup_transparent_type initializer.
9118 * c-lang.c (c_language_data): Likewise.
9119 (cplus_language_data): Likewise.
9120 (cplus_language::lookup_transparent_type): New member function.
9121 (asm_language_data): Delete la_lookup_transparent_type
9122 initializer.
9123 (minimal_language_data): Likewise.
9124 * d-lang.c (d_language_data): Likewise.
9125 * f-lang.c (f_language_data): Likewise.
9126 * go-lang.c (go_language_data): Likewise.
9127 * language.c (unknown_language_data): Likewise.
9128 (auto_language_data): Likewise.
9129 * language.h (struct language_data): Delete
9130 la_lookup_transparent_type field.
9131 (language_defn::lookup_transparent_type): New member function.
9132 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9133 initializer.
9134 * objc-lang.c (objc_language_data): Likewise.
9135 * opencl-lang.c (opencl_language_data): Likewise.
9136 * p-lang.c (pascal_language_data): Likewise.
9137 * rust-lang.c (rust_language_data): Likewise.
9138 * symtab.c (symbol_matches_domain): Update call.
9139
1fb314aa
AB
91402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9141
9142 * ada-lang.c (ada_language_arch_info): Delete function, move
9143 implementation to...
9144 (ada_language::language_arch_info): ...here, a new member
9145 function.
9146 (ada_language_data): Delete la_language_arch_info.
9147 * c-lang.c (c_language_data): Likewise.
9148 (c_language::language_arch_info): New member function.
9149 (cplus_language_arch_info): Delete function, move
9150 implementation to...
9151 (cplus_language::language_arch_info): ...here, a new member
9152 function.
9153 (cplus_language_data): Delete la_language_arch_info.
9154 (asm_language_data): Likewise.
9155 (asm_language::language_arch_info): New member function.
9156 (minimal_language_data): Delete la_language_arch_info.
9157 (minimal_language::language_arch_info): New member function.
9158 * d-lang.c (d_language_arch_info): Delete function, move
9159 implementation to...
9160 (d_language::language_arch_info): ...here, a new member
9161 function.
9162 (d_language_data): Delete la_language_arch_info.
9163 * f-lang.c (f_language_arch_info): Delete function, move
9164 implementation to...
9165 (f_language::language_arch_info): ...here, a new member
9166 function.
9167 (f_language_data): Delete la_language_arch_info.
9168 * go-lang.c (go_language_arch_info): Delete function, move
9169 implementation to...
9170 (go_language::language_arch_info): ...here, a new member
9171 function.
9172 (go_language_data): Delete la_language_arch_info.
9173 * language.c (unknown_language_data): Likewise.
9174 (unknown_language::language_arch_info): New member function.
9175 (auto_language_data): Delete la_language_arch_info.
9176 (auto_language::language_arch_info): New member function.
9177 (language_gdbarch_post_init): Update call to
9178 la_language_arch_info.
9179 * language.h (language_data): Delete la_language_arch_info
9180 function pointer.
9181 (language_defn::language_arch_info): New function.
9182 * m2-lang.c (m2_language_arch_info): Delete function, move
9183 implementation to...
9184 (m2_language::language_arch_info): ...here, a new member
9185 function.
9186 (m2_language_data): Delete la_language_arch_info.
9187 * objc-lang.c (objc_language_arch_info): Delete function, move
9188 implementation to...
9189 (objc_language::language_arch_info): ...here, a new member
9190 function.
9191 (objc_language_data): Delete la_language_arch_info.
9192 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9193 implementation to...
9194 (opencl_language::language_arch_info): ...here, a new member
9195 function.
9196 (opencl_language_data): Delete la_language_arch_info.
9197 * p-lang.c (pascal_language_arch_info): Delete function, move
9198 implementation to...
9199 (pascal_language::language_arch_info): ...here, a new member
9200 function.
9201 (pascal_language_data): Delete la_language_arch_info.
9202 * rust-lang.c (rust_language_arch_info): Delete function, move
9203 implementation to...
9204 (rust_language::language_arch_info): ...here, a new member
9205 function.
9206 (rust_language_data): Delete la_language_arch_info.
9207
48448202
AB
92082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9209
9210 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9211 initializer.
9212 * c-lang.c (c_language_data): Likewise.
9213 (cplus_language_data): Likewise.
9214 (cplus_language::pass_by_reference_info): New method.
9215 (asm_language_data): Delete la_pass_by_reference initializer.
9216 (minimal_language_data): Likewise.
9217 * cp-abi.c (cp_pass_by_reference): Remove use of
9218 default_pass_by_reference.
9219 * d-lang.c (d_language_data): Likewise.
9220 * f-lang.c (f_language_data): Likewise.
9221 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9222 default_pass_by_reference.
9223 * go-lang.c (go_language_data): Likewise.
9224 * language.c (language_pass_by_reference): Update.
9225 (default_pass_by_reference): Delete.
9226 (unknown_language_data): Delete la_pass_by_reference
9227 initializer.
9228 (auto_language_data): Likewise.
9229 * language.h (struct language_data): Delete la_pass_by_reference
9230 field.
9231 (language_defn::pass_by_reference_info): New member function.
9232 (default_pass_by_reference): Delete declaration.
9233 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9234 initializer.
9235 * objc-lang.c (objc_language_data): Likewise.
9236 * opencl-lang.c (opencl_language_data): Likewise.
9237 * p-lang.c (pascal_language_data): Likewise.
9238 * rust-lang.c (rust_language_data): Likewise.
9239
15e5fd35
AB
92402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 * ada-lang.c (ada_read_var_value): Delete function, move
9243 implementation to...
9244 (ada_language::read_var_value): ...here.
9245 (ada_language_data): Delete la_read_var_value initializer.
9246 * c-lang.c (c_language_data): Likewise.
9247 (cplus_language_data): Likewise.
9248 (minimal_language_data): Likewise.
9249 * d-lang.c (d_language_data): Likewise.
9250 * f-lang.c (f_language_data): Likewise.
9251 * findvar.c (default_read_var_value): Rename to...
9252 (language_defn::read_var_value): ...this.
9253 * findvar.c (read_var_value): Update header comment, and change to
9254 call member function instead of function pointer.
9255 * go-lang.c (go_language_data): Likewise.
9256 * language.c (unknown_language_data): Delete la_read_var_value
9257 initializer.
9258 (auto_language_data): Likewise.
9259 * language.h (struct language_data): Delete la_read_var_value
9260 field.
9261 (language_defn::read_var_value): New member function.
9262 (default_read_var_value): Delete declaration.
9263 * m2-lang.c (m2_language_data): Delete la_read_var_value
9264 initializer.
9265 * objc-lang.c (objc_language_data): Likewise.
9266 * opencl-lang.c (opencl_language_data): Likewise.
9267 * p-lang.c (pascal_language_data): Likewise.
9268 * rust-lang.c (rust_language_data): Likewise.
9269 * value.h (default_read_var_value): Delete declaration.
9270
5bd40f2a
AB
92712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9272
9273 * ada-lang.c (ada_print_array_index): Delete function, move
9274 implementation to...
9275 (ada_language::print_array_index): ...here.
9276 (ada_language_data): Delete la_print_array_index initializer.
9277 * c-lang.c (c_language_data): Likewise.
9278 (cplus_language_data): Likewise.
9279 (minimal_language_data): Likewise.
9280 * d-lang.c (d_language_data): Likewise.
9281 * f-lang.c (f_language_data): Likewise.
9282 * go-lang.c (go_language_data): Likewise.
9283 * language.c (default_print_array_index): Delete function, move
9284 implementation to...
9285 (language_defn::print_array_index): ...here.
9286 (unknown_language_data): Delete la_print_array_index initializer.
9287 (auto_language_data): Likewise.
9288 * language.h (struct language_data): Delete la_print_array_index
9289 field.
9290 (language_defn::print_array_index): New member function.
9291 (LA_PRINT_ARRAY_INDEX): Update.
9292 (default_print_array_index): Delete declaration.
9293 * m2-lang.c (m2_language_data): Delete la_print_array_index
9294 initializer.
9295 * objc-lang.c (objc_language_data): Likewise.
9296 * opencl-lang.c (opencl_language_data): Likewise.
9297 * p-lang.c (pascal_language_data): Likewise.
9298 * rust-lang.c (rust_language_data): Likewise.
9299
0874fd07
AB
93002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 * gdb/ada-lang.c (ada_language_defn): Convert to...
9303 (ada_language_data): ...this.
9304 (class ada_language): New class.
9305 (ada_language_defn): New static global.
9306 * gdb/c-lang.c (c_language_defn): Convert to...
9307 (c_language_data): ...this.
9308 (class c_language): New class.
9309 (c_language_defn): New static global.
9310 (cplus_language_defn): Convert to...
9311 (cplus_language_data): ...this.
9312 (class cplus_language): New class.
9313 (cplus_language_defn): New static global.
9314 (asm_language_defn): Convert to...
9315 (asm_language_data): ...this.
9316 (class asm_language): New class.
9317 (asm_language_defn): New static global.
9318 (minimal_language_defn): Convert to...
9319 (minimal_language_data): ...this.
9320 (class minimal_language): New class.
9321 (minimal_language_defn): New static global.
9322 * gdb/d-lang.c (d_language_defn): Convert to...
9323 (d_language_data): ...this.
9324 (class d_language): New class.
9325 (d_language_defn): New static global.
9326 * gdb/f-lang.c (f_language_defn): Convert to...
9327 (f_language_data): ...this.
9328 (class f_language): New class.
9329 (f_language_defn): New static global.
9330 * gdb/go-lang.c (go_language_defn): Convert to...
9331 (go_language_data): ...this.
9332 (class go_language): New class.
9333 (go_language_defn): New static global.
9334 * gdb/language.c (unknown_language_defn): Remove declaration.
9335 (current_language): Initialize to nullptr, real initialization is
9336 moved to _initialize_language.
9337 (languages): Delete global.
9338 (language_defn::languages): Define.
9339 (set_language_command): Use language_defn::languages.
9340 (set_language): Likewise.
9341 (range_error): Likewise.
9342 (language_enum): Likewise.
9343 (language_def): Likewise.
9344 (add_set_language_command): Use language_def::languages for the
9345 language list, and language_def to lookup language pointers.
9346 (skip_language_trampoline): Use language_defn::languages.
9347 (unknown_language_defn): Convert to...
9348 (unknown_language_data): ...this.
9349 (class unknown_language): New class.
9350 (unknown_language_defn): New static global.
9351 (auto_language_defn): Convert to...
9352 (auto_language_data): ...this.
9353 (class auto_language): New class.
9354 (auto_language_defn): New static global.
9355 (language_gdbarch_post_init): Use language_defn::languages.
9356 (_initialize_language): Initialize current_language.
9357 * gdb/language.h (struct language_defn): Rename to...
9358 (struct language_data): ...this.
9359 (struct language_defn): New.
9360 (auto_language_defn): Delete.
9361 (unknown_language_defn): Delete.
9362 (minimal_language_defn): Delete.
9363 (ada_language_defn): Delete.
9364 (asm_language_defn): Delete.
9365 (c_language_defn): Delete.
9366 (cplus_language_defn): Delete.
9367 (d_language_defn): Delete.
9368 (f_language_defn): Delete.
9369 (go_language_defn): Delete.
9370 (m2_language_defn): Delete.
9371 (objc_language_defn): Delete.
9372 (opencl_language_defn): Delete.
9373 (pascal_language_defn): Delete.
9374 (rust_language_defn): Delete.
9375 * gdb/m2-lang.c (m2_language_defn): Convert to...
9376 (m2_language_data): ...this.
9377 (class m2_language): New class.
9378 (m2_language_defn): New static global.
9379 * gdb/objc-lang.c (objc_language_defn): Convert to...
9380 (objc_language_data): ...this.
9381 (class objc_language): New class.
9382 (objc_language_defn): New static global.
9383 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9384 (opencl_language_data): ...this.
9385 (class opencl_language): New class.
9386 (opencl_language_defn): New static global.
9387 * gdb/p-lang.c (pascal_language_defn): Convert to...
9388 (pascal_language_data): ...this.
9389 (class pascal_language): New class.
9390 (pascal_language_defn): New static global.
9391 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9392 language pointer, update comment format.
9393 * gdb/rust-lang.c (rust_language_defn): Convert to...
9394 (rust_language_data): ...this.
9395 (class rust_language): New class.
9396 (rust_language_defn): New static global.
9397
1313c56e
AB
93982020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9399
9400 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9401 member variable.
9402 <m_stmt_at_address>: New member variable.
9403 (lnp_state_machine::record_line): Don't record some lines, update
9404 tracking of is_stmt at the same address.
9405 (lnp_state_machine::lnp_state_machine): Initialise new member
9406 variables.
9407
b7ed9f3d
ST
94082020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9409
9410 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9411 "-include gnu-nat-mig.h".
9412 * gnu-nat-mig.h: New file.
9413 * gnu-nat.c: Include "gnu-nat-mig.h".
9414 (exc_server, msg_reply_server, notify_server,
9415 process_reply_server): Remove declarations.
9416
14a8ad62
ST
94172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9418
9419 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9420 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9421 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9422 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9423 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9424 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9425 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9426 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9427 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9428 to gnu_nat_target class.
9429 * gnu-nat.c: Likewise.
9430 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9431 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9432 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9433 object.
9434 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9435 instead of `gnu_target'.
9436
0af5e106
ST
94372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9438
9439 * i386-gnu-tdep.c: Include "gdbcore.h"
9440 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9441 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9442 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9443 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9444 i386_gnu_sigcontext_addr): New functions
9445 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9446 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9447 tdep.
9448
078f2fc9
ST
94492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9450
9451 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9452 before fork_inferior call. Avoid calling it if target_is_pushed returns
9453 true.
9454
53dff92c
ST
94552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9456
9457 * gnu-nat.h (gnu_target): New variable declaration.
9458 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9459 gnu_target.
9460 * gnu-nat.c (gnu_target): New variable.
9461 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9462 add_thread_silent, and add_thread calls.
9463 (gnu_nat_target::create_inferior): Pass gnu_target to
9464 add_thread_silent, thread_change_ptid call.
9465 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9466 call.
9467
5a8b8627
ST
94682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9469
9470 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9471 (gnu_nat_target::find_memory_regions): Remove unused
9472 `old_address' variable.
9473
366f550a
ST
94742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9475
9476 * gnu-nat.c: Include "gdbarch.h".
9477
f14871bf
ST
94782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9479
9480 * reply_mig_hack.awk (Error return): Cast function through
9481 void *, to bypass compiler function call check.
9482
c6887cfb
ST
94832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9484
9485 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9486 $(srcdir)/reply_mig_hack.awk.
9487
6930bffe
ST
94882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9489
9490 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9491
112c22ed
JG
94922020-05-30 Jonny Grant <jg@jguk.org>
9493
9494 * configure.ac (ACX_BUGURL): change bug URL to https.
9495
f68f85b5
PA
94962020-05-30 Pedro Alves <palves@redhat.com>
9497
9498 * cp-support.c (replace_typedefs_template): New.
9499 (replace_typedefs_qualified_name): Handle
9500 DEMANGLE_COMPONENT_TEMPLATE.
9501
976ca316
SM
95022020-05-29 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9505 dwarf2/index-cache.h, dwarf2/index-write.c,
9506 dwarf2/index-write.h, dwarf2/line-header.c,
9507 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9508 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9509 variables and fields from `dwarf2_per_objfile` to just
9510 `per_objfile` throughout.
9511
989ade05
SM
95122020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9513
9514 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9515 <push_dwarf_reg_entry_value>: Add comment.
9516
c47bae85
KB
95172020-05-28 Kevin Buettner <kevinb@redhat.com>
9518 Keith Seitz <keiths@redhat.com>
9519
9520 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9521 instead of PyEval_ReleaseLock.
9522 (class gdbpy_gil): Move to earlier in file.
9523 (finalize_python): Set gdb_python_initialized.
9524 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9525 when not initialized.
9526
44486dcf
SM
95272020-05-28 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9530 <push_dwarf_reg_entry_value>: Remove assert. Override
9531 per_objfile with caller_per_objfile.
9532
f030440d
TV
95332020-05-28 Tom de Vries <tdevries@suse.de>
9534
9535 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9536 PR gold/15646 workaround to symbol kind "type".
9537
f0fbb768
TT
95382020-05-27 Tom Tromey <tromey@adacore.com>
9539
9540 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9541
af0b2a3e
TT
95422020-05-27 Tom Tromey <tromey@adacore.com>
9543
9544 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9545 Use htab_find_with_hash.
9546 <add_abbrev>: Remove "abbrev_number" parameter.
9547 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9548 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9549 (hash_abbrev): Add comment.
9550 (abbrev_table::lookup_abbrev): Move to header file.
9551 (abbrev_table::read): Update.
9552
7d00ffec
TT
95532020-05-27 Tom Tromey <tromey@adacore.com>
9554
9555 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9556 method.
9557 <canonical_name>: New member.
9558 <raw_name>: Rename from "name".
9559 (partial_die_info): Initialize canonical_name.
9560 (scan_partial_symbols): Check raw_name.
9561 (partial_die_parent_scope, partial_die_full_name)
9562 (add_partial_symbol, add_partial_subprogram)
9563 (add_partial_enumeration, load_partial_dies): Use "name" method.
9564 (partial_die_info::name): New method.
9565 (partial_die_info::read, guess_partial_die_structure_name)
9566 (partial_die_info::fixup): Update.
9567
697bba18
TT
95682020-05-27 Tom Tromey <tromey@adacore.com>
9569
9570 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9571 <get_ref_die_offset>: Inline.
9572 <get_ref_die_offset_complaint>: New method.
9573 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9574 (attribute::get_ref_die_offset_complaint): Rename from
9575 get_ref_die_offset. Just issue complaint.
9576
c17ace43
HD
95772020-05-27 Hannes Domani <ssbssa@yahoo.de>
9578
9579 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9580
96445f0b
HD
95812020-05-27 Hannes Domani <ssbssa@yahoo.de>
9582
9583 * exec.c (exec_file_attach): Use errno value of first openp failure.
9584
ac637ec3
HD
95852020-05-27 Hannes Domani <ssbssa@yahoo.de>
9586
9587 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9588 Don't close thread handle.
9589
17ee85fc
TT
95902020-05-27 Tom Tromey <tom@tromey.com>
9591 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9594 shared_ptr.
9595 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9596 member.
9597 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9598 dwarf2_per_bfd_objfile_data_key>: New globals.
9599 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9600 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9601 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9602 shared.
9603 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9604 short-circuit when sharing.
9605 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9606 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9607
39b16f87
SM
96082020-05-27 Simon Marchi <simon.marchi@efficios.com>
9609
9610 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9611 to...
9612 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9613 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9614
fcf23d5b
SM
96152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9618 build_name_components, find_name_components_bounds>:
9619 Add per_objfile parameter.
9620 (struct mapped_index) <symbol_name_at>: Likewise.
9621 (struct mapped_debug_names): Remove constructor.
9622 <dwarf2_per_objfile>: Remove field.
9623 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9624 (mapped_index_base::find_name_components_bounds,
9625 mapped_index_base::build_name_components,
9626 dw2_expand_symtabs_matching_symbol): Likewise.
9627 (class mock_mapped_index) <symbol_name_at>: Likewise.
9628 (check_match): Likewise.
9629 (check_find_bounds_finds): Likewise.
9630 (test_mapped_index_find_name_component_bounds): Update.
9631 (CHECK_MATCH): Update.
9632 (dw2_expand_symtabs_matching): Update.
9633 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9634 per_objfile parameter.
9635 <find_vec_in_debug_names>: Likewise.
9636 <m_per_objfile>: New field.
9637 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9638 parameter.
9639 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9640 (dw2_debug_names_iterator::next): Update.
9641 (dw2_debug_names_lookup_symbol): Update.
9642 (dw2_debug_names_expand_symtabs_for_function): Update.
9643 (dw2_debug_names_map_matching_symbols): Update.
9644 (dw2_debug_names_expand_symtabs_matching): Update.
9645 (dwarf2_read_debug_names): Update.
9646
7188ed02
SM
96472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9648
9649 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9650 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9651 move to dwarf2_per_objfile.
9652 <read_in_chain>: Remove.
9653 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9654 remove_all_cus, age_comp_units>: New methods.
9655 <m_dwarf2_cus>: New member.
9656 (struct dwarf2_per_cu_data) <cu>: Remove.
9657 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9658 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9659 moved to methods of dwarf2_per_objfile.
9660 (dwarf2_clear_marks): Remove.
9661 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9662 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9663 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9664 (dwarf2_per_objfile::remove_all_cus): New.
9665 (class free_cached_comp_units) <~free_cached_comp_units>:
9666 Update.
9667 (load_cu): Update.
9668 (dw2_do_instantiate_symtab): Adjust.
9669 (fill_in_sig_entry_from_dwo_entry): Adjust.
9670 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9671 (cutu_reader::cutu_reader): Likewise.
9672 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9673 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9674 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9675 and dwarf2_per_objfile::age_comp_units.
9676 (load_partial_comp_unit): Update.
9677 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9678 (process_queue): Likewise.
9679 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9680 backlink.
9681 (dwarf2_read_addr_index): Likewise.
9682 (follow_die_offset): Likewise.
9683 (dwarf2_fetch_die_loc_sect_off): Likewise.
9684 (dwarf2_fetch_constant_bytes): Likewise.
9685 (dwarf2_fetch_die_type_sect_off): Likewise.
9686 (follow_die_sig_1): Likewise.
9687 (load_full_type_unit): Likewise.
9688 (read_signatured_type): Likewise.
9689 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9690 (dwarf2_cu::~dwarf2_cu): Remove.
9691 (dwarf2_per_objfile::get_cu): New.
9692 (dwarf2_per_objfile::set_cu): New.
9693 (age_cached_comp_units): Rename to...
9694 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9695 to std::unordered_map.
9696 (free_one_cached_comp_unit): Rename to...
9697 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9698 to std::unordered_map.
9699 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9700 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9701 a dwarf2_per_objfile in data.
9702 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9703 (dwarf2_clear_marks): Remove.
9704
2e671100
SM
97052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9708 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9709 (init_tu_and_read_dwo_dies): Likewise.
9710 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9711 (cutu_reader::cutu_reader): Likewise.
9712 (load_partial_comp_unit): Likewise.
9713 (process_psymtab_comp_unit): Update.
9714 (build_type_psymtabs_1): Update.
9715 (process_skeletonless_type_unit): Update.
9716 (load_full_comp_unit): Update.
9717 (find_partial_die): Update.
9718 (dwarf2_read_addr_index): Update.
9719 (read_signatured_type): Update.
9720
2e6a9f79
SM
97212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9722
9723 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9724 m_header_read_in>: New fields.
9725 <get_header>: New method.
9726 * dwarf2/read.c (per_cu_header_read_in): Remove.
9727 (dwarf2_per_cu_data::get_header): New.
9728 (dwarf2_per_cu_data::addr_size): Update.
9729 (dwarf2_per_cu_data::offset_size): Update.
9730 (dwarf2_per_cu_data::ref_addr_size): Update.
9731
1b555f17
SM
97322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9733
9734 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9735 (dw2_do_instantiate_symtab): Update.
9736 (queue_and_load_all_dwo_tus): Change parameter from
9737 dwarf2_per_cu_data to dwarf2_cu.
9738 (dwarf2_fetch_die_loc_sect_off): Update.
9739 (dwarf2_fetch_constant_bytes): Update.
9740 (dwarf2_fetch_die_type_sect_off): Update.
9741
8fc0b21d
SM
97422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9743
9744 * dwarf2/read.c (process_full_comp_unit,
9745 process_full_type_unit): Remove per_cu, per_objfile paramters.
9746 Add dwarf2_cu parameter.
9747 (process_queue): Update.
9748
168c9250
SM
97492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9750
9751 * dwarf2/read.c (create_cu_from_index_list): Replace
9752 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9753 (create_cus_from_index_list): Likewise.
9754 (create_cus_from_index): Likewise.
9755 (create_signatured_type_table_from_index): Likewise.
9756 (create_cus_from_debug_names_list): Likewise.
9757 (create_cus_from_debug_names): Likewise.
9758 (dwarf2_read_gdb_index): Update.
9759 (dwarf2_read_debug_names): Update.
9760
e286671b
TT
97612020-05-27 Tom Tromey <tom@tromey.com>
9762 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * dwarf2/read.h (struct dwarf2_per_objfile)
9765 <get_type_for_signatured_type, set_type_for_signatured_type>:
9766 New methods.
9767 <m_type_map>: New member.
9768 (struct signatured_type) <type>: Remove.
9769 * dwarf2/read.c
9770 (dwarf2_per_objfile::get_type_for_signatured_type,
9771 dwarf2_per_objfile::set_type_for_signatured_type): New.
9772 (get_signatured_type): Use new methods.
9773
8adb8487
TT
97742020-05-27 Tom Tromey <tom@tromey.com>
9775 Simon Marchi <simon.marchi@efficios.com>
9776
9777 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9778 (struct dwarf2_per_objfile) <type_units>: New member.
9779 <get_type_unit_group_unshareable>: New method.
9780 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9781 num_symtabs, symtabs>: Remove; move to
9782 type_unit_group_unshareable.
9783 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9784 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9785 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9786
127bbf4b
SM
97872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * dwarf2/read.h (struct dwarf2_per_cu_data):
9790 <dwarf2_per_objfile>: Remove.
9791 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9792 dwarf2_per_objfile.
9793 (create_signatured_type_table_from_index): Likewise.
9794 (create_signatured_type_table_from_debug_names): Likewise.
9795 (create_debug_type_hash_table): Likewise.
9796 (fill_in_sig_entry_from_dwo_entry): Likewise.
9797 (create_type_unit_group): Likewise.
9798 (read_comp_units_from_section): Likewise.
9799 (create_cus_hash_table): Likewise.
9800
f6e649dd
SM
98012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9802
9803 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9804 dwarf2_per_cu_data::dwarf2_per_objfile.
9805 (compute_compunit_symtab_includes): Likewise.
9806 (dwarf2_cu::start_symtab): Likewise.
9807
aa66c379
SM
98082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9809
9810 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9811 parameter.
9812 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9813 (read_namespace_alias): Update.
9814 (lookup_die_type): Update.
9815 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9816 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9817 Update.
9818 (disassemble_dwarf_expression): Update.
9819
120ce1b5
SM
98202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * dwarf2/read.h (struct dwarf2_queue_item): Add
9823 dwarf2_per_objfile parameter, assign new parameter.
9824 <per_objfile>: New field.
9825 * dwarf2/read.c (free_one_cached_comp_unit): Add
9826 dwarf2_per_objfile parameter.
9827 (queue_comp_unit): Likewise.
9828 (dw2_do_instantiate_symtab): Update.
9829 (process_psymtab_comp_unit): Update.
9830 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9831 (process_imported_unit_die): Update.
9832 (queue_and_load_dwo_tu): Update.
9833 (follow_die_offset): Update.
9834 (follow_die_sig_1): Update.
9835
9f47c707
SM
98362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9839 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9840 (read_call_site_scope): Assign per_objfile.
9841 (dwarf2_per_cu_data::objfile): Remove.
9842 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9843 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9844 dwarf2_per_objfile parameter.
9845 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9846 dwarf2_per_objfile parameter.
9847 (dwarf_expr_reg_to_entry_parameter): Add output
9848 dwarf2_per_objfile parameter.
9849 (locexpr_get_frame_base): Update.
9850 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9851 <push_dwarf_reg_entry_value>: Update.
9852 <call_site_to_target_addr>: Update.
9853 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9854 parameter.
9855 (value_of_dwarf_reg_entry): Update.
9856 (rw_pieced_value): Update.
9857 (indirect_synthetic_pointer): Update.
9858 (dwarf2_evaluate_property): Update.
9859 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9860 parameter.
9861 (locexpr_read_variable): Update.
9862 (locexpr_get_symbol_read_needs): Update.
9863 (loclist_read_variable): Update.
9864
14095eb3
SM
98652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9868 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9869 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9870 parameter.
9871 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9872 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9873 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9874 parameter.
9875 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9876 sect_variable_value): Add dwarf2_per_objfile parameter.
9877 (class dwarf_evaluate_loc_desc) <dwarf_call,
9878 dwarf_variable_value>: Update.
9879 (fetch_const_value_from_synthetic_pointer): Add
9880 dwarf2_per_objfile parameter.
9881 (fetch_const_value_from_synthetic_pointer): Update.
9882 (coerced_pieced_ref): Update.
9883 (class symbol_needs_eval_context) <dwarf_call,
9884 dwarf_variable_value>: Update.
9885 (dwarf2_compile_expr_to_ax): Update.
9886
3c3cd3d4
SM
98872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9890 parameter.
9891 (dwarf2_evaluate_loc_desc_full): Update.
9892
82ca3f51
SM
98932020-05-27 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9896 parameter.
9897 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9898 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9899 dwarf2_per_objfile parameter.
9900 (decode_debug_loc_dwo_addresses): Likewise.
9901 (dwarf2_find_location_expression): Update.
9902 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9903 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9904 parameter.
9905 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9906 parameter.
9907 (locexpr_describe_location_1): Likewise.
9908 (locexpr_describe_location): Update.
9909
4b167ea1
SM
99102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9913 Remove.
9914 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9915 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9916 (dwarf2_compile_property_to_c): Update.
9917 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9918 use text offset from objfile.
9919 (locexpr_tracepoint_var_ref): Update.
9920 (locexpr_generate_c_location): Update.
9921 (loclist_describe_location): Update.
9922 (loclist_tracepoint_var_ref): Update.
9923 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9924 dwarf2_per_objfile parameter.
9925 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9926 use text offset from objfile.
9927 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9928
89b07335
SM
99292020-05-27 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * dwarf2/expr.h (struct dwarf_expr_context)
9932 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9933 <offset>: Remove.
9934 <per_objfile>: New member.
9935 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9936 dwarf2_per_objfile parameter. Don't set offset, set
9937 per_objfile.
9938 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9939 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9940 a dwarf2_per_objfile object instead of an offset.
9941 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9942 constructor.
9943 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9944 to dwarf2_expr_executor constructor. Don't set offset.
9945 (dwarf2_fetch_cfa_info): Update.
9946 (struct dwarf2_frame_cache) <text_offset>: Remove.
9947 <per_objfile>: New field.
9948 (dwarf2_frame_cache): Update.
9949 (dwarf2_frame_prev_register): Update.
9950 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9951 <dwarf_evaluate_loc_desc>: Add constructor.
9952 (dwarf2_evaluate_loc_desc_full): Update.
9953 (dwarf2_locexpr_baton_eval): Update.
9954 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9955 Add constructor.
9956 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9957
293e7e51
SM
99582020-05-27 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9961 addr_sized_int_type>: Move to dwarf2_cu.
9962 <int_type>: Move to dwarf2_per_objfile.
9963 (struct dwarf2_per_objfile) <int_type>: Move here.
9964 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9965 addr_sized_int_type>: Move here.
9966 (read_func_scope): Update.
9967 (read_array_type): Update.
9968 (read_tag_string_type): Update.
9969 (attr_to_dynamic_prop): Update.
9970 (dwarf2_per_cu_data::int_type): Rename to...
9971 (dwarf2_per_objfile::int_type): ... this.
9972 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9973 (dwarf2_cu::addr_sized_int_type): ... this.
9974 (read_subrange_type): Update.
9975 (dwarf2_per_cu_data::addr_type): Rename to...
9976 (dwarf2_cu::addr_type): ... this.
9977 (set_die_type): Update.
9978
64874a40
SM
99792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9980
9981 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9982 data through per_cu->cu.
9983
4ab09049
SM
99842020-05-27 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9987 dwarf2_per_cu_data parameter fo dwarf2_cu.
9988 (lookup_dwo_type_unit): Likewise.
9989 (read_cutu_die_from_dwo): Likewise.
9990 (lookup_dwo_unit): Likewise.
9991 (open_and_init_dwo_file): Likewise.
9992 (lookup_dwo_cutu): Likewise.
9993 (lookup_dwo_comp_unit): Likewise.
9994 (lookup_dwo_type_unit): Likewise.
9995 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9996 (cutu_reader::cutu_reader): Update.
9997
47b14e86
SM
99982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10001 parameter.
10002 (process_full_type_unit): Likewise.
10003 (process_queue): Update.
10004
43182c09
SM
100052020-05-27 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * dwarf2/read.c (recursively_compute_inclusions): Add
10008 dwarf2_per_objfile parameter.
10009 (compute_compunit_symtab_includes): Likewise.
10010 (process_cu_includes): Update.
10011
7aa104c4
SM
100122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10013
10014 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10015 parameter.
10016 (create_type_unit_group): Update.
10017 (process_psymtab_comp_unit_reader): Update.
10018 (build_type_psymtabs_reader): Update.
10019
e3beb21d
SM
100202020-05-27 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10023 object through m_this_cu->cu.
10024
d460f660
SM
100252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10026
10027 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10028 the info parameter.
10029 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10030
ab432490
SM
100312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10032
10033 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10034 per_objfile parameter.
10035 (load_full_type_unit): Add per_objfile parameter.
10036 (read_signatured_type): Likewise.
10037 (load_full_comp_unit): Likewise.
10038 (load_cu): Likewise.
10039 (dw2_do_instantiate_symtab): Likewise.
10040 (dw2_get_file_names): Likewise.
10041 (dw2_map_symtabs_matching_filename): Update.
10042 (dw_expand_symtabs_matching_file_matcher): Update.
10043 (dw2_map_symbol_filenames): Update.
10044 (process_psymtab_comp_unit): Add per_objfile parameter.
10045 (build_type_psymtabs_1): Update.
10046 (process_skeletonless_type_unit): Update.
10047 (dwarf2_build_psymtabs_hard): Update.
10048 (load_partial_comp_unit): Add per_objfile parameter.
10049 (scan_partial_symbols): Update.
10050 (load_full_comp_unit): Add per_objfile parameter.
10051 (process_imported_unit_die): Update.
10052 (create_cus_hash_table): Update.
10053 (find_partial_die): Update.
10054 (dwarf2_read_addr_index): Update.
10055 (follow_die_offset): Update.
10056 (dwarf2_fetch_die_loc_sect_off): Update.
10057 (dwarf2_fetch_constant_bytes): Update.
10058 (dwarf2_fetch_die_type_sect_off): Update.
10059 (follow_die_sig_1): Update.
10060 (load_full_type_unit): Add per_objfile parameter.
10061 (read_signatured_type): Likewise.
10062
313bad1b
SM
100632020-05-27 Simon Marchi <simon.marchi@efficios.com>
10064
10065 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10066 of objfile_name.
10067
c3699833
SM
100682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10069
10070 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10071 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10072 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10073 field.
10074 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10075 (create_cus_from_index): Update.
10076 (dwarf2_read_gdb_index): Update.
10077 (create_cus_from_debug_names): Update.
10078 (dwarf2_read_debug_names): Update.
10079 (get_abbrev_section_for_cu): Update.
10080 (create_all_comp_units): Update.
10081 (read_attribute_value): Update.
10082 (get_debug_line_section): Update.
10083 * dwarf2/index-cache.c (index_cache::store): Update.
10084 * dwarf2/index-write.c (save_gdb_index_command): Update.
10085 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10086
1859c670
SM
100872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10088
10089 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10090 member.
10091 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10092 dwarf2_per_cu_data::per_bfd.
10093 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10094 (create_type_unit_group): Likewise.
10095 (queue_comp_unit): Remove reference to
10096 per_cu->dwarf2_per_objfile.
10097 (maybe_queue_comp_unit): Likewise.
10098 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10099 (create_cus_hash_table): Assign new field.
10100
5e22e966
SM
101012020-05-27 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * dwarf2/read.c: Replace
10104 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10105 dwarf2_cu->per_objfile throughout.
10106
97a1449a
SM
101072020-05-27 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10110 parameter, don't use per_cu->dwarf2_per_objfile.
10111 (dw2_instantiate_symtab): Likewise.
10112 (dw2_find_last_source_symtab): Update.
10113 (dw2_map_expand_apply): Update.
10114 (dw2_lookup_symbol): Update.
10115 (dw2_expand_symtabs_for_function): Update.
10116 (dw2_expand_all_symtabs): Update.
10117 (dw2_expand_symtabs_with_fullname): Update.
10118 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10119 don't use per_cu->dwarf2_per_objfile.
10120 (dw2_expand_marked_cus): Update.
10121 (dw2_find_pc_sect_compunit_symtab): Update.
10122 (dw2_debug_names_lookup_symbol): Update.
10123 (dw2_debug_names_expand_symtabs_for_function): Update.
10124 (dw2_debug_names_map_matching_symbols): Update.
10125 (dwarf2_psymtab::expand_psymtab): Update.
10126
9e021579
SM
101272020-05-27 Simon Marchi <simon.marchi@efficios.com>
10128
10129 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10130 <per_objfile>: New member.
10131 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10132 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10133 call to dwarf2_cu.
10134 (cutu_reader::cutu_reader): Update.
10135 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10136
ae090bdb
SM
101372020-05-27 Simon Marchi <simon.marchi@efficios.com>
10138
10139 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10140 struct dwarf2_per_objfile.
10141 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10142 dwarf2_per_bfd.
10143 * dwarf2/read.c (set_die_type): Update.
10144 (get_die_type_at_offset): Update.
10145
af758d11
SM
101462020-05-27 Tom Tromey <tom@tromey.com>
10147 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10150 method.
10151 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10152 get_symtab, set_symtab>: New methods.
10153 <m_symtabs>: New field.
10154 (struct dwarf2_psymtab): Derive from partial_symtab.
10155 <readin_p, get_compunit_symtab>: Declare methods.
10156 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10157 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10158 New methods.
10159 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10160 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10161 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10162 (dw2_symtab_iter_next, dw2_print_stats)
10163 (dw2_expand_symtabs_with_fullname)
10164 (dw2_expand_symtabs_matching_one)
10165 (dw_expand_symtabs_matching_file_matcher)
10166 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10167 (dw2_debug_names_iterator::next)
10168 (dw2_debug_names_map_matching_symbols)
10169 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10170 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10171 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10172 New methods.
10173 (get_compunit_symtab, process_full_comp_unit)
10174 (process_full_type_unit): Update.
10175 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10176
5989a64e
SM
101772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10178
10179 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10180 then introduce a new dwarf2_per_objfile type.
10181 <read_line_string>: Move to the new dwarf2_per_objfile type.
10182 <objfile>: Likewise.
10183 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10184 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10185 dwarf2_per_objfile->per_bfd.
10186 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10187 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10188 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10189 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10190 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10191 (dwarf2_per_objfile::locate_sections): Rename to...
10192 (dwarf2_per_bfd::locate_sections): ... this.
10193 (dwarf2_per_objfile::get_cutu): Rename to...
10194 (dwarf2_per_bfd::get_cutu): ... this.
10195 (dwarf2_per_objfile::get_cu): Rename to...
10196 (dwarf2_per_bfd::get_cu): ... this.
10197 (dwarf2_per_objfile::get_tu): Rename to...
10198 (dwarf2_per_bfd::get_tu): ... this.
10199 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10200 (dwarf2_per_bfd::allocate_per_cu): ... this.
10201 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10202 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10203 (get_gdb_index_contents_ftype): Change parameter from
10204 dwarf2_per_objfile to dwarf2_per_bfd.
10205 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10206 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10207
a50264ba
TT
102082020-05-27 Tom Tromey <tom@tromey.com>
10209 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10212 (allocate_piece_closure): Set "per_objfile" member.
10213 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10214 (locexpr_describe_location, loclist_describe_location): Use new
10215 member.
10216 * dwarf2/read.c (read_call_site_scope)
10217 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10218 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10219 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10220 handle_data_member_location): Set per_objfile member.
10221 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10222 member.
10223 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10224
d3473f0c
TT
102252020-05-27 Tom Tromey <tom@tromey.com>
10226
10227 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10228 allocate_signatured_type>: Declare new methods.
10229 <m_num_psymtabs>: New member.
10230 (struct dwarf2_per_cu_data) <index>: New member.
10231 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10232 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10233 (create_cu_from_index_list): Use allocate_per_cu.
10234 (create_signatured_type_table_from_index)
10235 (create_signatured_type_table_from_debug_names)
10236 (create_debug_type_hash_table, add_type_unit)
10237 (read_comp_units_from_section): Use allocate_signatured_type.
10238
5717c425
TT
102392020-05-27 Tom Tromey <tom@tromey.com>
10240
10241 * psymtab.c (partial_map_expand_apply)
10242 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10243 (psym_lookup_global_symbol_language)
10244 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10245 (psym_print_stats, psym_expand_symtabs_for_function)
10246 (psym_map_symbol_filenames, psym_map_matching_symbols)
10247 (psym_expand_symtabs_matching)
10248 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10249 (maintenance_check_psymtabs): Update.
10250 * psympriv.h (struct partial_symtab) <readin_p,
10251 get_compunit_symtab>: Add objfile parameter.
10252 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10253 Likewise.
10254 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10255 get_compunit_symtab>: Likewise.
10256 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10257
45940949
TT
102582020-05-27 Tom Tromey <tom@tromey.com>
10259
10260 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10261 member.
10262 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10263 (create_cu_from_index_list)
10264 (create_signatured_type_table_from_index)
10265 (create_signatured_type_table_from_debug_names)
10266 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10267 (dwarf2_create_include_psymtab)
10268 (create_debug_type_hash_table, add_type_unit)
10269 (create_type_unit_group, read_comp_units_from_section)
10270 (dwarf2_compute_name, create_cus_hash_table)
10271 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10272 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10273 obstack.
10274 (dw2_get_real_path): Likewise. Change argument to
10275 dwarf2_per_objfile.
10276
f8c6d152
LM
102772020-05-27 Luis Machado <luis.machado@linaro.org>
10278
10279 PR tdep/26000
10280 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10281 for ldrd (immediate).
10282
e98d2e6d
PW
102832020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10284
10285 * command.h: Add comment giving the name of class_tui.
10286 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10287 create the fake command for the help for class_tui.
10288
53a47a3e
TT
102892020-05-26 Tom Tromey <tromey@adacore.com>
10290
10291 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10292 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10293 (val_atr): New function.
10294 (value_val_atr): Use it.
10295 * ada-valprint.c (print_optional_low_bound): Change low bound
10296 handling for enums.
10297 (val_print_packed_array_elements): Don't call discrete_position.
10298 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10299 discrete_position for enum types.
10300 * language.c (default_print_array_index): Change type.
10301 * language.h (struct language_defn) <la_print_array_index>: Add
10302 index_type parameter, change type of index_value.
10303 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10304 (default_print_array_index): Update.
10305 * valprint.c (maybe_print_array_index): Don't call
10306 value_from_longest. Update.
10307 (value_print_array_elements): Don't call discrete_position.
10308
0bc2354b
TT
103092020-05-26 Tom Tromey <tromey@adacore.com>
10310
10311 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10312 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10313
1218a4bf
CDA
103142020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10315
10316 PR gdb/13519
10317 * avr-tdep.c (avr_integer_to_address): Return data or code
10318 address accordingly to the second 'type' argument of the
10319 function.
10320
92651b1d
MW
103212020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10322
10323 * infcmd.c, inferior.h: (construct_inferior_arguments):
10324 Moved function from here to gdbsupport/common-inferior.{h,cc}
10325
0a4f5f8c
TT
103262020-05-23 Tom Tromey <tom@tromey.com>
10327
10328 Revert commit eca1f90c:
10329 * NEWS: Remove entry for completion styling.
10330 * completer.c (_rl_completion_prefix_display_length): Move
10331 declaration later.
10332 (gdb_fnprint): Revert.
10333 (gdb_display_match_list_1): Likewise.
10334 * cli/cli-style.c (completion_prefix_style)
10335 (completion_difference_style, completion_suffix_style): Remove.
10336 (_initialize_cli_style): Revert.
10337 * cli/cli-style.h (completion_prefix_style)
10338 (completion_difference_style, completion_suffix_style): Don't
10339 declare.
10340
e08bd6c5
PA
103412020-05-24 Pedro Alves <palves@redhat.com>
10342
10343 * symtab.c (completion_list_add_name): Return boolean indication
10344 of whether the symbol matched.
10345 (completion_list_add_symbol): Don't try to remove C++ aliases if
10346 the symbol didn't match in the first place.
10347 * symtab.h (completion_list_add_name): Return bool.
10348
ceacbf6e
SM
103492020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10350
10351 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10352 type::field.
10353
26f16254
JB
103542020-05-23 Joel Brobecker <brobecker@adacore.com>
10355
10356 GDB 9.2 released.
10357
eca1f90c
TT
103582020-05-23 Tom Tromey <tom@tromey.com>
10359
10360 * NEWS: Add entry for completion styling.
10361 * completer.c (_rl_completion_prefix_display_length): Move
10362 declaration earlier.
10363 (gdb_fnprint): Use completion_style.
10364 (gdb_display_match_list_1): Likewise.
10365 * cli/cli-style.c (completion_prefix_style)
10366 (completion_difference_style, completion_suffix_style): New
10367 globals.
10368 (_initialize_cli_style): Register new globals.
10369 * cli/cli-style.h (completion_prefix_style)
10370 (completion_difference_style, completion_suffix_style): Declare.
10371
51e2cfa2
PA
103722020-05-23 Pedro Alves <palves@redhat.com>
10373
10374 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10375 (parse_escape): Use ISDIGIT instead of isdigit.
10376 (puts_debug): Use gdb_isprint instead of isprint.
10377 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10378 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10379 ISSPACE instead of isspace.
10380 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10381 instead of isspace.
10382 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10383 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10384 instead of isxdigit and ISDIGIT instead of isdigit.
10385
80fc5e77
SM
103862020-05-22 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * gdbtypes.h (struct type) <field>: New method.
10389 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10390 or type::field.
10391
3cabb6b0
SM
103922020-05-22 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10395 (TYPE_FIELDS): Use type::fields. Change all call sites that
10396 modify the propery to use type::set_fields instead.
10397
1f704f76
SM
103982020-05-22 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10401 type::num_fields instead.
10402
5e33d5f4
SM
104032020-05-22 Simon Marchi <simon.marchi@efficios.com>
10404
10405 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10406 methods.
10407 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10408 that modify the number of fields to use type::set_num_fields
10409 instead.
10410
9392ebb3
TT
104112020-05-22 Tom Tromey <tromey@adacore.com>
10412
10413 * compile/compile-object-load.h (munmap_list_free): Don't
10414 declare.
10415
7c13f4e8
AB
104162020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10417
10418 * annotate.c (annotate_source_line): Update return type, add call
10419 to update current symtab and line.
10420 * annotate.h (annotate_source_line): Update return type, and
10421 extend header comment.
10422 * source.c (info_line_command): Check annotation_level before
10423 calling annotate_source_line.
10424 * stack.c (print_frame_info): If calling annotate_source_line
10425 returns true, then don't print any other source line information.
10426
aa370940
SM
104272020-05-21 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10430
84d53fa9
SM
104312020-05-21 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * coffread.c (patch_type): Remove NULL check before xfree.
10434 * corefile.c (set_gnutarget): Likewise.
10435 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10436 * exec.c (build_section_table): Likewise.
10437 * remote.c (remote_target::pass_signals): Likewise.
10438 * utils.c (n_spaces): Likewise.
10439 * cli/cli-script.c (document_command): Likewise.
10440 * i386-windows-tdep.c (core_process_module_section): Likewise.
10441 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10442
9d428aae
SM
104432020-05-20 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * symfile.c (reread_symbols): Clear objfile's section_offsets
10446 vector and section indices, re-compute them by calling
10447 sym_offsets.
10448
250106a7
TT
104492020-05-20 Tom Tromey <tromey@adacore.com>
10450
10451 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10452 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10453
9a0bacfb
TV
104542020-05-20 Tom de Vries <tdevries@suse.de>
10455
10456 PR symtab/25833
10457 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10458
7b958a48
AM
104592020-05-20 Alan Modra <amodra@gmail.com>
10460
10461 PR 25993
10462 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10463 bfd_set_filename.
10464 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10465 passed to bfd_set_filename.
10466 * symfile-mem.c (add_vsyscall_page): Likewise for string
10467 passed to symbol_file_add_from_memory.
10468 (symbol_file_add_from_memory): Make name param a const char* and
10469 don't strdup.
10470
c7e97679
AM
104712020-05-20 Alan Modra <amodra@gmail.com>
10472
10473 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10474 rather than accessing bfd->filename directly.
10475 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10476 and use bfd_section_name.
10477 * dwarf2/frame.c (decode_frame_entry): Likewise.
10478 * exec.c (exec_set_section_address): Likewise.
10479 * solib-aix.c (solib_aix_bfd_open): Likewise.
10480 * stap-probe.c (get_stap_base_address): Likewise.
10481 * symfile.c (reread_symbols): Likewise.
10482
563c591b
TT
104832020-05-19 Tom Tromey <tromey@adacore.com>
10484
10485 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10486
f408d82c
SM
104872020-05-19 Simon Marchi <simon.marchi@efficios.com>
10488
10489 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10490
98c59b52
PA
104912020-05-19 Pedro Alves <palves@redhat.com>
10492
10493 * NEWS (set exec-file-mismatch): Adjust entry.
10494 * exec.c: Include "build-id.h".
10495 (validate_exec_file): Try to match build IDs instead of filenames.
10496 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10497 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10498 and pass down 'warn_if_slow'.
10499 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10500 gdb_bfd_open_closure to pass it down.
10501 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10502
4111f652
PA
105032020-05-19 Pedro Alves <palves@redhat.com>
10504
10505 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10506 * target.c (target_fileio_open_1): Rename to target_fileio_open
10507 and make extern. Use bool.
10508 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10509 (target_fileio_read_alloc_1): Adjust.
10510 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10511 (target_fileio_open_warn_if_slow): Delete declaration.
10512
ad80db5b
PA
105132020-05-19 Pedro Alves <palves@redhat.com>
10514
10515 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10516 Adjust all callers.
10517
1d6ce4d3
YS
105182020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10519
10520 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10521 whether disp is negative.
10522
9005fbbb
SM
105232020-05-19 Simon Marchi <simon.marchi@efficios.com>
10524
10525 * symfile.h (struct symfile_segment_data)
10526 <~symfile_segment_data>: Remove.
10527 <segment_info>: Change to std::vector.
10528 * symfile.c (default_symfile_segments): Update.
10529 * elfread.c (elf_symfile_segments): Update.
10530
68b888ff
SM
105312020-05-19 Simon Marchi <simon.marchi@efficios.com>
10532
10533 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10534 <segments>: New.
10535 <segment_bases, segment_sizes>: Remove.
10536 * symfile.c (default_symfile_segments): Update.
10537 * elfread.c (elf_symfile_segments): Update.
10538 * remote.c (remote_target::get_offsets): Update.
10539 * solib-target.c (solib_target_relocate_section_addresses):
10540 Update.
10541
62982abd
SM
105422020-05-19 Simon Marchi <simon.marchi@efficios.com>
10543
10544 * symfile.h (struct symfile_segment_data): Initialize fields.
10545 <~symfile_segment_data>: Add.
10546 (symfile_segment_data_up): New.
10547 (struct sym_fns) <sym_segments>: Return a
10548 symfile_segment_data_up.
10549 (default_symfile_segments): Return a symfile_segment_data_up.
10550 (free_symfile_segment_data): Remove.
10551 (get_symfile_segment_data): Return a symfile_segment_data_up.
10552 * symfile.c (default_symfile_segments): Likewise.
10553 (get_symfile_segment_data): Likewise.
10554 (free_symfile_segment_data): Remove.
10555 (symfile_find_segment_sections): Update.
10556 * elfread.c (elf_symfile_segments): Return a
10557 symfile_segment_data_up.
10558 * remote.c (remote_target::get_offsets): Update.
10559 * solib-target.c (solib_target_relocate_section_addresses):
10560 Update.
10561 * symfile-debug.c (debug_sym_segments): Return a
10562 symfile_segment_data_up.
10563
7f204339
RO
105642020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10565
e52a0f1b
RO
10566 PR build/25981
10567 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10568 Hardcode register numbers.
10569
7f204339
RO
10570 PR build/25981
10571 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10572 procfs_find_LDT_entry): Remove.
10573 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10574 procfs_find_LDT_entry): Remove.
10575 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10576 Remove.
10577
7f32a4d5
PA
105782020-05-17 Pedro Alves <palves@redhat.com>
10579 Andrew Burgess <andrew.burgess@embecosm.com>
10580 Keno Fischer <keno@juliacomputing.com>
10581
10582 PR gdb/25741
10583 * breakpoint.c (build_target_condition_list): Update comments.
10584 (build_target_command_list): Update comments and skip matching
10585 locations.
10586 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10587 a separate function. Simplify "set breakpoint auto-hw off"
10588 handling.
10589 (insert_breakpoints): Update comment.
10590 (tracepoint_locations_match): New parameter. For breakpoints,
10591 compare location types too, if the caller wants to.
10592 (handle_automatic_hardware_breakpoints): New functions.
10593 (bp_location_is_less_than): Also sort by location type and
10594 hardware breakpoint length.
10595 (update_global_location_list): Handle "set breakpoint auto-hw on"
10596 here.
10597 (update_breakpoint_locations): Ask breakpoint_locations_match to
10598 ignore location types.
10599
7d93a1e0
SM
106002020-05-16 Simon Marchi <simon.marchi@efficios.com>
10601
10602 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10603 type::name instead.
10604
d0e39ea2
SM
106052020-05-16 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * gdbtypes.h (struct type) <name, set_name>: New methods.
10608 (TYPE_CODE): Use type::name. Change all call sites used to set
10609 the name to use type::set_name instead.
10610
2dab0c7b
TT
106112020-05-16 Tom Tromey <tom@tromey.com>
10612
10613 * top.c (quit_force): Update.
10614 * infrun.c (handle_no_resumed): Update.
10615 * top.h (all_uis): New function.
10616 (ALL_UIS): Remove.
10617
59f7bd8d
SM
106182020-05-16 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10621
9bf058f0
PA
106222020-05-16 Pedro Alves <palves@redhat.com>
10623
10624 * ia64-linux-nat.c
10625 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10626 Declare method.
10627 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10628
8f86ae1a
SM
106292020-05-15 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10632 (sparc64_adi_info): Likewise.
10633
d6bc0792
TT
106342020-05-15 Tom Tromey <tom@tromey.com>
10635
10636 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10637 block_objfile.
10638 (lookup_objfile_from_block): Remove.
10639 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10640 (lookup_global_symbol): Use block_objfile.
10641 * symtab.h (lookup_objfile_from_block): Don't declare.
10642 * printcmd.c (clear_dangling_display_expressions): Use
10643 block_objfile.
10644 * parse.c (operator_check_standard): Use block_objfile.
10645
8c14c3a3
TT
106462020-05-15 Tom Tromey <tom@tromey.com>
10647
10648 * language.c (language_alloc_type_symbol): Set
10649 SYMBOL_SECTION.
10650 * symtab.c (initialize_objfile_symbol): Remove.
10651 (allocate_symbol): Remove.
10652 (allocate_template_symbol): Remove.
10653 * dwarf2/read.c (fixup_go_packaging): Use "new".
10654 (new_symbol): Use "new".
10655 (read_variable): Don't call initialize_objfile_symbol. Use
10656 "new".
10657 (read_func_scope): Use "new".
10658 * xcoffread.c (process_xcoff_symbol): Don't call
10659 initialize_objfile_symbol.
10660 (SYMBOL_DUP): Remove.
10661 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10662 "new".
10663 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10664 (allocate_template_symbol): Don't declare.
10665 (struct symbol): Add copy constructor. Change defaults.
10666 * jit.c (finalize_symtab): Use "new".
10667 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10668 Use "new".
10669 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10670 (common_block_end): Use "new".
10671 * mdebugread.c (parse_symbol): Use "new".
10672 (new_symbol): Likewise.
10673
5b4a1a8d
PW
106742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10675
10676 * NEWS: Mention changes to help and apropos.
10677
57b4f16e
PW
106782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10679
10680 * command.h (enum command_class): Improve comments, document
10681 that class_alias is for user-defined aliases, give the class
10682 name for each class, remove unused class_xdb.
10683 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10684 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10685 by a precise class.
10686 * infcmd.c (_initialize_infcmd): Likewise.
10687 * reverse.c (_initialize_reverse): Likewise.
10688 * stack.c (_initialize_stack): Likewise.
10689 * symfile.c (_initialize_symfile): Likewise.
10690 * tracepoint.c (_initialize_tracepoint): Likewise.
10691
7c05caf7
PW
106922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10693
10694 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10695 when their aliased command is traversed.
10696 (help_cmd): Add fput_command_names_styled call to
10697 output command name and aliases when command has an alias.
10698
3b3aaacb
PW
106992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10700
10701 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10702 * cli/cli-decode.c (help_cmd_list): Declare as static,
10703 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10704 a command together with the command.
10705 (fput_command_name_styled, fput_command_names_styled): New functions.
10706 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10707 fput_command_name_styled.
10708 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10709 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10710
7aa1b46f
PW
107112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10712
10713 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10714 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10715 * command.h (cmd_show_list): Likewise.
10716 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10717 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10718
89bcba74
PW
107192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10720
10721 * unittests/command-def-selftests.c (traverse_command_structure):
10722 Verify all commands of a list have the same prefix command and
10723 that only the top cmdlist commands have a null prefix.
10724
3f4d92eb
PW
107252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10726
10727 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10728 as prefix, not one of its aliases.
10729 (set_cmd_prefix): Remove.
10730 (do_add_cmd): Centralize the setting of the prefix of a command, when
10731 command is defined after its full chain of prefix commands.
10732 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10733 (add_setshow_cmd_full): Likewise.
10734 (update_prefix_field_of_prefixed_commands): New function.
10735 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10736 update_prefix_field_of_prefixed_commands.
10737 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10738 addresses of remote_set_cmdlist and remote_show_cmdlist given
10739 as argument, not the address of an argument.
10740 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10741 * gdb/remote.c (_initialize_remote): Likewise.
10742
0605465f
PW
107432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10744
10745 * cli/cli-cmds.c (alias_command): Check for an existing alias
10746 using lookup_cmd_composition, as valid_command_p is too strict
10747 and forbids aliases that are the prefix of an existing alias
10748 or command.
10749 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10750 command is properly recognised as a valid command.
10751
58e6ac70
PW
107522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10753
10754 * unittests/help-doc-selftests.c: Rename to
10755 unittests/command-def-selftests.c
10756 * unittests/command-def-selftests.c (help_doc_tests): Update some
10757 comments.
10758 (command_structure_tests, traverse_command_structure): New namespace
10759 and function.
10760 (command_structure_invariants_tests): New function.
10761 (_initialize_command_def_selftests) Renamed from
10762 _initialize_help_doc_selftests, register command_structure_invariants
10763 selftest.
10764
a7b9ceb8
PW
107652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766
10767 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10768 an alias of 'show'.
10769
b2188a06
JB
107702020-05-15 Joel Brobecker <brobecker@adacore.com>
10771
10772 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10773 ada_is_fixed_point_type. Update all callers.
10774 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10775 all callers.
10776 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10777 Update all callers.
10778 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10779 print_fixed_point_type. Update all callers.
10780 * ada-valprint.c (ada_value_print_num): Replace call to
10781 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10782
a51951c2
KB
107832020-05-14 Kevin Buettner <kevinb@redhat.com>
10784
10785 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10786 processors.
10787 (cpu_supports_bts): Add CV_AMD case.
10788
29d6859f
LM
107892020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10790 Simon Marchi <simon.marchi@efficios.com>
10791
10792 * infrun.c (stop_all_threads): Collect multiple wait events at
10793 each pass.
10794
78134374
SM
107952020-05-14 Simon Marchi <simon.marchi@efficios.com>
10796
10797 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10798 type::code instead.
10799
67607e24
SM
108002020-05-14 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * gdbtypes.h (struct type) <code, set_code>: New methods.
10803 (TYPE_CODE): Use type::code. Change all call sites used to set
10804 the code to use type::set_code instead.
10805
a05575d3
TBA
108062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10807 Tom de Vries <tdevries@suse.de>
10808 Pedro Alves <palves@redhat.com>
10809
10810 PR threads/25478
10811 * infrun.c (stop_all_threads): Do NOT ignore
10812 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10813 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10814 received.
10815 (handle_no_resumed): Remove code handling a live inferior with no
10816 threads.
10817 * remote.c (has_single_non_exited_thread): New.
10818 (remote_target::update_thread_list): Do not delete a thread if is
10819 the last thread of the process.
10820 * thread.c (thread_select): Call delete_exited_threads instead of
10821 prune_threads.
10822
6ad82919
TBA
108232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10824
10825 * infrun.c (stop_all_threads): Enable/disable thread events of all
10826 targets. Move a debug message denoting the end of the function
10827 into the SCOPED_EXIT block.
10828
d890404b
TBA
108292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10830
10831 * process-stratum-target.h: Include <set>.
10832 (all_non_exited_process_targets, switch_to_target_no_thread): New
10833 function declarations.
10834 * process-stratum-target.c (all_non_exited_process_targets)
10835 (switch_to_target_no_thread): New function implementations.
10836
293b3ebc
TBA
108372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10838
10839 * infrun.c (handle_inferior_event): Extract out a piece of code
10840 into...
10841 (mark_non_executing_threads): ...this new function.
10842
7ca9b62a
TBA
108432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10844
10845 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10846 use.
10847
fc75c28b
TBA
108482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10849
10850 * regcache.c (regcache_read_pc_protected): New function
10851 implementation that returns 0 if the PC cannot read via
10852 'regcache_read_pc'.
10853 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10854 instead of 'regcache_read_pc'.
10855 (keep_going_pass_signal): Ditto.
10856
a89febbd
TT
108572020-05-13 Tom Tromey <tromey@adacore.com>
10858
10859 * ada-lang.c (align_value): Remove.
10860 (ada_template_to_fixed_record_type_1): Use align_up.
10861
f7e23710
TBA
108622020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10863
10864 * async-event.c: Update the copyright year.
10865 * async-event.h: Update the copyright year.
10866
02ff80c2
SM
108672020-05-12 Simon Marchi <simon.marchi@efficios.com>
10868
10869 * objfiles.h (is_addr_in_objfile,
10870 shared_objfile_contains_address_p): Return bool.
10871 * objfile.c (is_addr_in_objfile,
10872 shared_objfile_contains_address_p): Return bool.
10873
4fd6c7e8
TT
108742020-05-11 Tom Tromey <tromey@adacore.com>
10875
10876 * cli/cli-cmds.c (info_command): Restore.
10877 (_initialize_cli_cmds): Use add_prefix_command for "info".
10878 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10879
5eb68a39
TT
108802020-05-11 Tom Tromey <tromey@adacore.com>
10881
10882 * ada-lang.c (ada_value_primitive_field): Now public.
10883 * ada-lang.h (ada_value_primitive_field): Declare.
10884 * ada-valprint.c (print_field_values): Use
10885 ada_value_primitive_field for wrapper fields.
10886
7666722f
TV
108872020-05-11 Tom de Vries <tdevries@suse.de>
10888
10889 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10890 MODULE_DOMAIN.
10891
3ee6bb11
TV
108922020-05-11 Tom de Vries <tdevries@suse.de>
10893
10894 PR symtab/25941
10895 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10896 with length 0, if not gdb-produced.
10897 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10898
43434996
TV
108992020-05-09 Tom de Vries <tdevries@suse.de>
10900
10901 PR gdb/25955
10902 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10903 calculation.
10904
2f78cffc
TT
109052020-05-09 Tom Tromey <tom@tromey.com>
10906
10907 * top.c (server_command): Now bool.
10908 * top.h (server_command): Now bool.
10909
4f7bc5ed
TT
109102020-05-08 Tom Tromey <tromey@adacore.com>
10911
10912 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10913 already being processed.
10914
8be4b118
TT
109152020-05-08 Tom Tromey <tom@tromey.com>
10916
10917 * printcmd.c (struct display) <next>: Remove.
10918 <display>: New constructor.
10919 <exp_string>: Now a std::string.
10920 <enabled_p>: Now a bool.
10921 (display_number): Move definition earlier.
10922 (displays): Rename from display_chain. Now a std::vector.
10923 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10924 (display_command): Update.
10925 (do_one_display, disable_display)
10926 (enable_disable_display_command, do_enable_disable_display):
10927 Update.
10928 (free_display): Remove.
10929 (clear_displays): Rewrite.
10930 (delete_display): Update.
10931 (map_display_numbers): Use function_view. Remove "data"
10932 parameter. Update.
10933 (do_delete_display): Remove.
10934 (undisplay_command): Update.
10935 (do_one_display, do_displays, disable_display)
10936 (info_display_command): Update.
10937 (do_enable_disable_display): Remove.
10938 (enable_disable_display_command)
10939 (clear_dangling_display_expressions): Update.
10940
94c93c35
TT
109412020-05-08 Tom Tromey <tom@tromey.com>
10942
10943 * symtab.c (set_symbol_cache_size)
10944 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10945 (maintenance_print_symbol_cache_statistics): Update.
10946 * symmisc.c (print_symbol_bcache_statistics)
10947 (print_objfile_statistics, maintenance_print_objfiles)
10948 (maintenance_info_symtabs, maintenance_check_symtabs)
10949 (maintenance_expand_symtabs, maintenance_info_line_tables):
10950 Update.
10951 * symfile-debug.c (set_debug_symfile): Update.
10952 * source.c (forget_cached_source_info): Update.
10953 * python/python.c (gdbpy_progspaces): Update.
10954 * psymtab.c (maintenance_info_psymtabs): Update.
10955 * probe.c (parse_probes): Update.
10956 * linespec.c (iterate_over_all_matching_symtabs)
10957 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10958 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10959 * exec.c (exec_target::close): Update.
10960 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10961 * breakpoint.c (print_one_breakpoint_location)
10962 (create_longjmp_master_breakpoint)
10963 (create_std_terminate_master_breakpoint): Update.
10964 * progspace.c (program_spaces): Now a std::vector.
10965 (maybe_new_address_space): Update.
10966 (add_program_space): Remove.
10967 (program_space::program_space): Update.
10968 (remove_program_space): Update.
10969 (number_of_program_spaces): Remove.
10970 (print_program_space, update_address_spaces): Update.
10971 * progspace.h (program_spaces): Change type.
10972 (ALL_PSPACES): Remove.
10973 (number_of_program_spaces): Don't declare.
10974 (struct program_space) <next>: Remove.
10975
a1fd1ac9
TT
109762020-05-08 Tom Tromey <tom@tromey.com>
10977
10978 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10979 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10980 (enable_break): Update.
10981 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10982 (frv_fdpic_find_canonical_descriptor): Update.
10983 (frv_fetch_objfile_link_map): Update.
10984 * progspace.c (program_space::free_all_objfiles): Update.
10985 (program_space::solibs): New method.
10986 * progspace.h (struct program_space) <solibs>: New method.
10987 * solist.h (master_so_list): Don't declare.
10988 (ALL_SO_LIBS): Remove.
10989 * solib.h (so_list_head): Remove.
10990 (update_solib_list): Update comment.
10991 * solib.c (master_so_list): Remove.
10992 (solib_used, update_solib_list, solib_add)
10993 (info_sharedlibrary_command, clear_solib)
10994 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10995
38eae084
TT
109962020-05-08 Tom Tromey <tom@tromey.com>
10997
10998 * extension.c (extension_languages): Now a std::array.
10999 (ALL_EXTENSION_LANGUAGES): Remove.
11000 (get_ext_lang_defn, get_ext_lang_of_file)
11001 (eval_ext_lang_from_control_command): Update.
11002 (finish_ext_lang_initialization)
11003 (auto_load_ext_lang_scripts_for_objfile)
11004 (ext_lang_type_printers::ext_lang_type_printers)
11005 (apply_ext_lang_type_printers)
11006 (ext_lang_type_printers::~ext_lang_type_printers)
11007 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11008 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11009 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11010 (get_matching_xmethod_workers, ext_lang_colorize)
11011 (ext_lang_before_prompt): Update.
11012 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11013
596dc4ad
TT
110142020-05-08 Tom Tromey <tom@tromey.com>
11015
11016 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11017 overload.
11018 <swap_string, m_string>: Remove.
11019 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11020 Update.
11021 * stabsread.c (define_symbol, read_type): Update.
11022 * linespec.c (find_linespec_symbols): Update.
11023 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11024 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11025 * dbxread.c (read_dbx_symtab): Update.
11026 * cp-support.h (cp_canonicalize_string_full)
11027 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11028 Return unique_xmalloc_ptr.
11029 * cp-support.c (inspect_type): Update.
11030 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11031 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11032 Likewise.
11033 * c-typeprint.c (print_name_maybe_canonical): Update.
11034 * break-catch-throw.c (check_status_exception_catchpoint):
11035 Update.
11036
bf4cb9be
TV
110372020-05-08 Tom de Vries <tdevries@suse.de>
11038
11039 * infrun.c (follow_fork): Copy current_line and current_symtab to
11040 child thread.
11041
a1b68f28
SM
110422020-05-07 Simon Marchi <simon.marchi@efficios.com>
11043
11044 * async-event.c (struct async_signal_handler, struct
11045 async_event_handler): Reformat, remove typedef.
11046
98d48915
SM
110472020-05-07 Simon Marchi <simon.marchi@efficios.com>
11048
11049 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11050 access thistype->main_type->dyn_prop_list directly.
11051
7aa91313
SM
110522020-05-07 Simon Marchi <simon.marchi@efficios.com>
11053
11054 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11055 (remove_dyn_prop): Remove. Update all users to use
11056 type::remove_dyn_prop.
11057 * gdbtypes.c (remove_dyn_prop): Rename to...
11058 (type::remove_dyn_prop): ... this.
11059
5c54719c
SM
110602020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11061
11062 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11063 (add_dyn_prop): Remove. Update all users to use
11064 type::add_dyn_prop.
11065 * gdbtypes.c (add_dyn_prop): Rename to...
11066 (type::add_dyn_prop): ... this.
11067
24e99c6c
SM
110682020-05-07 Simon Marchi <simon.marchi@efficios.com>
11069
11070 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11071 (get_dyn_prop): Remove. Update all users to use
11072 type::dyn_prop.
11073 * gdbtypes.c (get_dyn_prop): Rename to...
11074 (type::dyn_prop): ... this.
11075
0d4bf016
SM
110762020-05-06 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11079
ac4a4f1c
SM
110802020-05-06 Simon Marchi <simon.marchi@efficios.com>
11081
11082 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11083 instruction, skip it if it's there.
11084
a3bbacc1
SM
110852020-05-05 Simon Marchi <simon.marchi@efficios.com>
11086
11087 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11088
c3236f84
SM
110892020-05-04 Simon Marchi <simon.marchi@efficios.com>
11090
11091 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11092 * gdbtypes.c (recursive_dump_type): Remove use of
11093 TYPE_INCOMPLETE.
11094
3b6acaee
TT
110952020-05-03 Tom Tromey <tom@tromey.com>
11096
11097 * breakpoint.c (catch_command, tcatch_command): Remove.
11098 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11099 add_show_prefix_cmd.
11100 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11101 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11102 Remove.
11103 (add_internal_problem_command): Use add_basic_prefix_cmd,
11104 add_show_prefix_cmd.
11105 * mips-tdep.c (set_mipsfpu_command): Remove.
11106 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11107 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11108 (_initialize_index_cache): Use add_basic_prefix_cmd.
11109 * memattr.c (dummy_cmd): Remove.
11110 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11111 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11112 (_initialize_tui_win): Use add_basic_prefix_cmd,
11113 add_show_prefix_cmd.
11114 * cli/cli-logging.c (set_logging_command): Remove.
11115 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11116 add_show_prefix_cmd.
11117 (show_logging_command): Remove.
11118 * target.c (target_command): Remove.
11119 (add_target): Use add_basic_prefix_cmd.
11120
a51119cd
HD
111212020-05-02 Hannes Domani <ssbssa@yahoo.de>
11122
11123 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11124
652fc23a 111252020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11126
652fc23a
PW
11127 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11128 info_command.
11129
117539e6
KR
111302020-04-30 Kamil Rytarowski <n54@gmx.com>
11131
11132 * nbsd-nat.c (nbsd_enable_proc_events)
11133 (nbsd_nat_target::post_startup_inferior): Add.
11134 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11135 (nbsd_nat_target::update_thread_list): Rewrite.
11136 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11137 "PTRACE_LWP_CREATE".
11138 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11139
102e38eb 111402020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11141
102e38eb
PW
11142 * stack.c (_initialize_stack): Remove duplicated creation
11143 of "frame" command and "f" alias.
11144
ee9d1e5f
HD
111452020-04-30 Hannes Domani <ssbssa@yahoo.de>
11146
11147 PR gdb/18706
11148 * gdbtypes.c (check_typedef): Calculate size of array of
11149 stubbed type.
11150
627c7fb8
HD
111512020-04-30 Hannes Domani <ssbssa@yahoo.de>
11152
11153 PR gdb/15559
11154 * i386-tdep.c (i386_push_dummy_call): Call
11155 i386_thiscall_push_dummy_call.
11156 (i386_thiscall_push_dummy_call): New function.
11157 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11158 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11159 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11160
ffc2844e
SM
111612020-04-29 Simon Marchi <simon.marchi@efficios.com>
11162
11163 * gdbarch.sh (do_read): Add shellcheck disable directive for
11164 warning SC2162.
11165
1207375d
SM
111662020-04-29 Simon Marchi <simon.marchi@efficios.com>
11167
11168 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11169 "referenced but not assigned" warning.
11170
9fdb2916
SM
111712020-04-29 Simon Marchi <simon.marchi@efficios.com>
11172
11173 * gdbarch.sh: Remove code that sets fallbackdefault.
11174
759cea5e
SM
111752020-04-29 Simon Marchi <simon.marchi@efficios.com>
11176
11177 * gdbarch.sh: Use shell operators && and || instead of
11178 -a and -o.
11179
cb02ab24
SM
111802020-04-29 Simon Marchi <simon.marchi@efficios.com>
11181
11182 * gdbarch.sh: Use $(...) instead of `...`.
11183
a6fc5ffc
SM
111842020-04-29 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * gdbarch.sh: Use double quotes around variables.
11187
8d113d13
SM
111882020-04-29 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * gdbarch.sh: Use %s with printf, instead of variables in the
11191 format string.
11192
ed6acedd
TT
111932020-04-29 Tom Tromey <tromey@adacore.com>
11194
11195 PR ada/25875:
11196 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11197 type fields here.
11198 (read_enumeration_type): Call
11199 update_enumeration_type_from_children later. Update comments.
11200 (process_enumeration_scope): Don't create type fields.
11201
b68b1b58
KR
112022020-04-29 Kamil Rytarowski <n54@gmx.com>
11203
11204 * nbsd-tdep.c: Include "xml-syscall.h".
11205 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11206
f94b2e03
KR
112072020-04-29 Kamil Rytarowski <n54@gmx.com>
11208
11209 * nbsd-nat.c: Include "sys/wait.h".
11210 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11211 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11212 (nbsd_nat_target::remove_exec_catchpoint)
11213 (nbsd_nat_target::set_syscall_catchpoint): Add.
11214 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11215 (nbsd_nat_target::insert_exec_catchpoint)
11216 (nbsd_nat_target::remove_exec_catchpoint)
11217 (nbsd_nat_target::set_syscall_catchpoint): Add.
11218 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11219 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11220 `nbsd_get_syscall_number'.
11221
fc49bc72
TT
112222020-04-29 Tom Tromey <tom@tromey.com>
11223
11224 * stack.c (print_block_frame_labels): Remove.
11225
d642b692
HD
112262020-04-29 Hannes Domani <ssbssa@yahoo.de>
11227
11228 PR gdb/17320
11229 * ada-valprint.c (val_print_packed_array_elements): Move array
11230 end bracket to new line.
11231 (ada_val_print_string): Remove extra spaces before first array
11232 element.
11233 * c-valprint.c (c_value_print_array): Likewise.
11234 * m2-valprint.c (m2_print_array_contents): Likewise.
11235 (m2_value_print_inner): Likewise.
11236 * p-valprint.c (pascal_value_print_inner): Likewise.
11237 * valprint.c (generic_val_print_array): Likewise.
11238 (value_print_array_elements): Move first array element and array
11239 end bracket to new line.
11240
ea90f227
TV
112412020-04-29 Tom de Vries <tdevries@suse.de>
11242
11243 PR symtab/25889
11244 * linespec.c (find_method): Fix ix calculation.
11245
4498ef4f
KR
112462020-04-28 Kamil Rytarowski <n54@gmx.com>
11247
11248 * syscalls/update-netbsd.sh: New file.
11249 * syscalls/netbsd.xml: Regenerate.
11250 * data-directory/Makefile.in: Register `netbsd.xml' in
11251 `SYSCALLS_FILES'.
11252
a55e30b5
SM
112532020-04-28 Simon Marchi <simon.marchi@efficios.com>
11254
11255 * syscalls/update-freebsd.sh: Add double quotes.
11256
2b2fbab8
TT
112572020-04-28 Tom Tromey <tom@tromey.com>
11258
11259 * NEWS: Update.
11260 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11261 (cmdpy_init): Allow class_tui.
11262
a65189c9
TV
112632020-04-28 Mark Williams <mark@myosotissp.com>
11264
11265 PR gdb/24480
11266 * dwarf2read.c: Add missing assingments to list_in_scope when
11267 start_symtab was already called.
11268
1b95cdb7
SM
112692020-04-28 Simon Marchi <simon.marchi@efficios.com>
11270
11271 PR gdb/25881
11272 * dwarf2/read.c (offset_map_type): Use
11273 gdb:hash_enum<sect_offset> as hash function.
11274
15cd93d0
TV
112752020-04-28 Tom de Vries <tdevries@suse.de>
11276
11277 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11278 with DW_AT_signature.
11279
1eb39914
SM
112802020-04-27 Simon Marchi <simon.marchi@efficios.com>
11281
11282 * configure.ac: Remove check for fs_base/gs_base in
11283 user_regs_struct.
11284 * configure: Re-generate.
11285 * config.in: Re-generate.
11286 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11287 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11288 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11289
991a3e2e
LM
112902020-04-27 Luis Machado <luis.machado@linaro.org>
11291
11292 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11293 problematic inline frame unwinding situation.
11294 * frame.c (frame_id_computed_p): New function.
11295 * frame.h (frame_id_computed_p): New prototype.
11296
361ba0e8
TT
112972020-04-26 Tom Tromey <tom@tromey.com>
11298
11299 * command.h (enum command_class) <class_pseudo>: Remove.
11300
bc3609fd
PW
113012020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11302
11303 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11304 and whitespace.
11305
b9771db7
KR
113062020-04-25 Kamil Rytarowski <n54@gmx.com>
11307
ec16513e
SM
11308 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11309 `PT_GET_PROCESS_STATE' block.
b9771db7 11310
7151c1af
TT
113112020-04-24 Tom Tromey <tom@tromey.com>
11312
11313 * symtab.h (symbol_get_demangled_name): Don't declare.
11314 * symtab.c (symbol_get_demangled_name): Remove.
11315 (general_symbol_info::natural_name)
11316 (general_symbol_info::demangled_name): Update.
11317
906bb4c5
TT
113182020-04-24 Tom Tromey <tom@tromey.com>
11319
11320 PR rust/25025:
11321 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11322
bcfe6157
TT
113232020-04-24 Tom Tromey <tom@tromey.com>
11324
11325 PR symtab/12707:
11326 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11327 exists.
11328 (new_symbol): Likewise.
11329 * compile/compile-object-load.c (get_out_value_type): Use
11330 symbol_matches_search_name.
11331
f049a313
TT
113322020-04-24 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf2/read.c (add_partial_symbol): Do not call
11335 compute_and_set_names.
11336
76e288d1
TT
113372020-04-24 Tom Tromey <tom@tromey.com>
11338
11339 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11340 overload.
11341
2467f4f6
TT
113422020-04-24 Tom Tromey <tom@tromey.com>
11343
11344 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11345 (add_psymbol_to_list): New overload. Make old overload call new
11346 one.
11347 * psympriv.h (add_psymbol_to_list): New overload.
11348
e61108c9
TT
113492020-04-24 Tom Tromey <tom@tromey.com>
11350
11351 * dwarf2/read.c (partial_die_info::read) <case
11352 DW_AT_linkage_name>: Use value_as_string.
11353 (dwarf2_string_attr): Use value_as_string.
11354 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11355 method.
11356 * dwarf2/attribute.c (attribute::value_as_string): New method.
11357
8c87a452
TT
113582020-04-24 Tom Tromey <tom@tromey.com>
11359
11360 * symtab.c (general_symbol_info::natural_name)
11361 (general_symbol_info::demangled_name): Check for language_rust.
11362
787de330
TT
113632020-04-24 Tom Tromey <tom@tromey.com>
11364
11365 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11366 (dwarf2_physname): ... from here.
11367 (partial_die_info::read): Add Rust "{" hack.
11368
ff985671
TT
113692020-04-24 Tom Tromey <tom@tromey.com>
11370
11371 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11372 method.
11373 (symbol_set_demangled_name): Don't declare.
11374 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11375 symbol_set_demangled_name.
11376 (general_symbol_info::set_language)
11377 (general_symbol_info::compute_and_set_names): Update.
11378 * minsyms.c (minimal_symbol_reader::install): Update.
11379 * dwarf2/read.c (new_symbol): Update.
11380
1acda803
TT
113812020-04-24 Tom Tromey <tromey@adacore.com>
11382
11383 PR python/23662:
11384 * python/py-type.c (convert_field): Handle
11385 FIELD_LOC_KIND_DWARF_BLOCK.
11386 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11387 (typy_get_dynamic): Nw function.
11388 (type_object_getset): Add "dynamic".
11389 * NEWS: Add entry.
11390
d656f129
TT
113912020-04-24 Tom Tromey <tromey@adacore.com>
11392
11393 * ada-typeprint.c (print_choices, print_variant_part)
11394 (print_record_field_types_dynamic): New functions.
11395 (print_record_field_types): Use print_record_field_types_dynamic.
11396
7d79de9a
TT
113972020-04-24 Tom Tromey <tromey@adacore.com>
11398
11399 * dwarf2/read.c (handle_data_member_location): New overload.
11400 (dwarf2_add_field): Use it.
11401 (decode_locdesc): Add "computed" parameter. Update comment.
11402 * gdbtypes.c (is_dynamic_type_internal): Also look for
11403 FIELD_LOC_KIND_DWARF_BLOCK.
11404 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11405 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11406 virtual base classes.
11407 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11408 FIELD_LOC_KIND_DWARF_BLOCK.
11409
f8e89861
TT
114102020-04-24 Tom Tromey <tromey@adacore.com>
11411
11412 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11413 * gdbtypes.c (is_dynamic_type_internal): Check
11414 TYPE_HAS_DYNAMIC_LENGTH.
11415 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11416 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11417 New macros.
11418 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11419 constant.
11420
9c6a1327
TT
114212020-04-24 Tom Tromey <tromey@adacore.com>
11422
11423 * dwarf2/read.c (struct variant_field): Rewrite.
11424 (struct variant_part_builder): New.
11425 (struct nextfield): Remove "variant" field. Add "offset".
11426 (struct field_info): Add "current_variant_part" and
11427 "variant_parts".
11428 (alloc_discriminant_info): Remove.
11429 (alloc_rust_variant): New function.
11430 (quirk_rust_enum): Update.
11431 (dwarf2_add_field): Set "offset" member. Don't handle
11432 DW_TAG_variant_part.
11433 (offset_map_type): New typedef.
11434 (convert_variant_range, create_one_variant)
11435 (create_one_variant_part, create_variant_parts)
11436 (add_variant_property): New functions.
11437 (dwarf2_attach_fields_to_type): Call add_variant_property.
11438 (read_structure_type): Don't handle DW_TAG_variant_part.
11439 (handle_variant_part, handle_variant): New functions.
11440 (handle_struct_member_die): Use them.
11441 (process_structure_scope): Don't handle variant parts.
11442 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11443 (struct discriminant_info): Remove.
11444 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11445 (struct main_type) <flag_discriminated_union>: Remove.
11446 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11447 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11448 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11449 Update.
11450 * valops.c (value_union_variant): Remove.
11451 * value.h (value_union_variant): Don't declare.
11452
b249d2c2
TT
114532020-04-24 Tom Tromey <tromey@adacore.com>
11454
11455 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11456 (ada_value_primitive_packed_val): Update.
11457 * ada-valprint.c (ada_value_print_1): Update.
11458 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11459 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11460 just an address. Use evaluate_for_locexpr_baton.
11461 (dwarf2_evaluate_property): Update.
11462 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11463 array_view.
11464 * findvar.c (default_read_var_value): Update.
11465 * gdbtypes.c (compute_variant_fields_inner)
11466 (resolve_dynamic_type_internal): Update.
11467 (resolve_dynamic_type): Change type of valaddr parameter.
11468 * gdbtypes.h (resolve_dynamic_type): Update.
11469 * valarith.c (value_subscripted_rvalue): Update.
11470 * value.c (value_from_contents_and_address): Update.
11471
61122aa9
TT
114722020-04-24 Tom Tromey <tromey@adacore.com>
11473
11474 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11475 "push_initial_value" parameter.
11476 (dwarf2_evaluate_property): Likewise.
11477 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11478
ef83a141
TT
114792020-04-24 Tom Tromey <tromey@adacore.com>
11480
11481 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11482 (variant::matches, compute_variant_fields_recurse)
11483 (compute_variant_fields_inner, compute_variant_fields): New
11484 functions.
11485 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11486 Use resolved_type after type is made.
11487 (operator==): Add new cases.
11488 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11489 (struct discriminant_range, struct variant, struct variant_part):
11490 New.
11491 (union dynamic_prop_data) <variant_parts, original_type>: New
11492 members.
11493 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11494 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11495 constants.
11496 * value.c (unpack_bits_as_long): Now public.
11497 * value.h (unpack_bits_as_long): Declare.
11498
675127ec
TT
114992020-04-24 Tom Tromey <tromey@adacore.com>
11500
11501 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11502 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11503
9852ceef
HD
115042020-04-24 Hannes Domani <ssbssa@yahoo.de>
11505
11506 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11507
7632c6ce
KR
115082020-04-24 Kamil Rytarowski <n54@gmx.com>
11509
11510 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11511 (remove_fork_catchpoint, post_startup_inferior)
11512 (post_attach): Move...
11513 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11514 (remove_fork_catchpoint, post_startup_inferior)
11515 (post_attach): ...here.
11516 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11517 (remove_fork_catchpoint, post_startup_inferior)
11518 (post_attach): Move...
11519 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11520 (remove_fork_catchpoint, post_startup_inferior)
11521 (post_attach): ...here.
11522
7be2bb4f
TT
115232020-04-24 Tom Tromey <tromey@adacore.com>
11524
11525 * nat/windows-nat.h (struct windows_thread_info)
11526 <pc_adjusted>: New member.
11527 * windows-nat.c (windows_fetch_one_register): Check
11528 pc_adjusted.
11529 (windows_nat_target::get_windows_debug_event)
11530 (windows_nat_target::wait): Set pc_adjusted.
11531
f80cb3b4
TV
115322020-04-24 Tom de Vries <tdevries@suse.de>
11533
11534 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11535 Run gdb-add-index inside temp dir.
11536
29514b87
TT
115372020-04-23 Tom Tromey <tromey@adacore.com>
11538
11539 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11540 in loop.
11541
5939967b
LM
115422020-04-23 Luis Machado <luis.machado@linaro.org>
11543
11544 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11545 get_frame_register instead of gdbarch_unwind_pc.
11546
70bc38f5
TV
115472020-04-23 Tom de Vries <tdevries@suse.de>
11548
11549 * symtab.c (lookup_global_symbol): Prefer def over decl.
11550
de82891c
TV
115512020-04-23 Tom de Vries <tdevries@suse.de>
11552
11553 PR symtab/25807
11554 * block.c (best_symbol, better_symbol): Promote to external.
11555 * block.h (best_symbol, better_symbol): Declare.
11556 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11557 decl.
11558
ecc6c606
TT
115592020-04-23 Tom Tromey <tromey@adacore.com>
11560
11561 PR ada/25837:
11562 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11563 "const char *", not a "const std::string &".
11564 <name_and_matcher::operator==>: Update.
11565 * unittests/lookup_name_info-selftests.c: Change type of
11566 "result".
11567
740480b8
TT
115682020-04-23 Tom Tromey <tom@tromey.com>
11569
11570 * inferior.h (iterate_over_inferiors): Don't declare.
11571 * inferior.c (iterate_over_inferiors): Remove.
11572 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11573 Remove.
11574 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11575 use iterate_over_inferiors.
11576 (darwin_resume_inferior_it)
11577 (struct resume_inferior_threads_param)
11578 (darwin_resume_inferior_threads_it): Remove.
11579 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11580
ae3ab1f0
TV
115812020-04-23 Tom de Vries <tdevries@suse.de>
11582
11583 * blockframe.c (find_pc_partial_function): Use
11584 find_pc_sect_compunit_symtab rather than
11585 objfile->sf->qf->find_pc_sect_compunit_symtab.
11586
317d2668
TV
115872020-04-22 Tom de Vries <tdevries@suse.de>
11588
11589 PR symtab/25764
11590 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11591 in psymtabs.
11592
eea9e357
TV
115932020-04-22 Tom de Vries <tdevries@suse.de>
11594
11595 PR symtab/25801
11596 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11597 symtabs.
11598
3d5afab3
TV
115992020-04-22 Tom de Vries <tdevries@suse.de>
11600
11601 PR symtab/25700
11602 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11603 CU if already created.
11604
d43b7a2d
TBA
116052020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11606
11607 * infrun.c (displaced_step_fixup): Switch to the event_thread
11608 before calling displaced_step_restore, not after.
11609
d89edf9b
MM
116102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11611
11612 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11613 its inferior is not recorded by us.
11614 (record_btrace_target_open): Replace call to
11615 all_non_exited_threads () with call to current_inferior
11616 ()->non_exited_threads ().
11617 (record_btrace_target::stop_recording): Likewise.
11618 (record_btrace_target::close): Likewise.
11619 (record_btrace_target::wait): Likewise.
11620 (record_btrace_target::record_stop_replaying): Likewise.
11621
5897fd49
MM
116222020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11623
11624 * btrace.c (btrace_enable): Throw an error on double enables and
11625 when enabling recording fails.
11626 (btrace_disable): Throw an error if the thread is not recorded.
11627
1a476b6d
MM
116282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11629
11630 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11631 request if we do not have a thread_info.
11632
4778a5f8
TV
116332020-04-21 Tom de Vries <tdevries@suse.de>
11634
11635 PR gdb/25471
11636 * thread.c
11637 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11638 exception in get_frame_id.
11639
0fa7617d
TT
116402020-04-20 Tom Tromey <tromey@adacore.com>
11641
11642 * python/python.c (struct gdbpy_event): Mark move constructor as
11643 noexcept.
11644 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11645 constructor as noexcept.
11646 * completer.h (struct completion_result): Mark move constructor as
11647 noexcept.
11648 * completer.c (completion_result::completion_result): Use
11649 initialization style. Don't call reset_match_list.
11650
ad23bda0
MS
116512020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11652
11653 * MAINTAINERS (Write After Approval): Add myself.
11654
45e1f031
TT
116552020-04-18 Tom Tromey <tom@tromey.com>
11656
11657 * windows-tdep.c (init_w32_command_list)
11658 (w32_prefix_command_valid): Restore.
11659 (_initialize_windows_tdep): Call init_w32_command_list.
11660
08feed99
TT
116612020-04-18 Tom Tromey <tom@tromey.com>
11662
11663 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11664 * value.c (value_fn_field): Update.
11665 * valops.c (find_function_in_inferior)
11666 (value_allocate_space_in_inferior): Update.
11667 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11668 Update.
11669 * tui/tui-source.c (tui_source_window::set_contents): Update.
11670 * symtab.c (lookup_global_or_static_symbol)
11671 (find_function_start_sal_1, skip_prologue_sal)
11672 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11673 * symmisc.c (dump_msymbols, dump_symtab_1)
11674 (maintenance_print_one_line_table): Update.
11675 * symfile.c (init_entry_point_info, section_is_mapped)
11676 (list_overlays_command, simple_read_overlay_table)
11677 (simple_overlay_update_1): Update.
11678 * stap-probe.c (handle_stap_probe): Update.
11679 * stabsread.c (dbx_init_float_type, define_symbol)
11680 (read_one_struct_field, read_enum_type, read_range_type): Update.
11681 * source.c (info_line_command): Update.
11682 * python/python.c (gdbpy_source_objfile_script)
11683 (gdbpy_execute_objfile_script): Update.
11684 * python/py-type.c (save_objfile_types): Update.
11685 * python/py-objfile.c (py_free_objfile): Update.
11686 * python/py-inferior.c (python_new_objfile): Update.
11687 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11688 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11689 (maintenance_check_psymtabs): Update.
11690 * printcmd.c (info_address_command): Update.
11691 * objfiles.h (struct objfile) <arch>: New method, from
11692 get_objfile_arch.
11693 (get_objfile_arch): Don't declare.
11694 * objfiles.c (get_objfile_arch): Remove.
11695 (filter_overlapping_sections): Update.
11696 * minsyms.c (msymbol_is_function): Update.
11697 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11698 (output_nondebug_symbol): Update.
11699 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11700 (mdebug_expand_psymtab): Update.
11701 * machoread.c (macho_add_oso_symfile): Update.
11702 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11703 Update.
11704 * linux-fork.c (checkpoint_command): Update.
11705 * linespec.c (convert_linespec_to_sals): Update.
11706 * jit.c (finalize_symtab): Update.
11707 * infrun.c (insert_exception_resume_from_probe): Update.
11708 * ia64-tdep.c (ia64_find_unwind_table): Update.
11709 * hppa-tdep.c (internalize_unwinds): Update.
11710 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11711 Update.
11712 * gcore.c (call_target_sbrk): Update.
11713 * elfread.c (record_minimal_symbol, elf_symtab_read)
11714 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11715 (elf_gnu_ifunc_resolve_by_got): Update.
11716 * dwarf2/read.c (create_addrmap_from_index)
11717 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11718 (read_debug_names_from_section)
11719 (process_psymtab_comp_unit_reader, add_partial_symbol)
11720 (add_partial_subprogram, process_full_comp_unit)
11721 (read_file_scope, read_func_scope, read_lexical_block_scope)
11722 (read_call_site_scope, dwarf2_ranges_read)
11723 (dwarf2_record_block_ranges, dwarf2_add_field)
11724 (mark_common_block_symbol_computed, read_tag_pointer_type)
11725 (read_tag_string_type, dwarf2_init_float_type)
11726 (dwarf2_init_complex_target_type, read_base_type)
11727 (partial_die_info::read, partial_die_info::read)
11728 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11729 (dwarf2_fetch_die_loc_sect_off): Update.
11730 * dwarf2/loc.c (dwarf2_find_location_expression)
11731 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11732 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11733 (dwarf2_loc_desc_get_symbol_read_needs)
11734 (locexpr_describe_location_piece, locexpr_describe_location_1)
11735 (loclist_describe_location): Update.
11736 * dwarf2/index-write.c (write_debug_names): Update.
11737 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11738 * dtrace-probe.c (dtrace_process_dof): Update.
11739 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11740 (process_one_symbol): Update.
11741 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11742 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11743 (coff_read_enum_type): Update.
11744 * cli/cli-cmds.c (edit_command, list_command): Update.
11745 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11746 * breakpoint.c (create_overlay_event_breakpoint)
11747 (create_longjmp_master_breakpoint)
11748 (create_std_terminate_master_breakpoint)
11749 (create_exception_master_breakpoint, get_sal_arch): Update.
11750 * block.c (block_gdbarch): Update.
11751 * annotate.c (annotate_source_line): Update.
11752
0743fc83
TT
117532020-04-17 Tom Tromey <tromey@adacore.com>
11754
11755 * auto-load.c (show_auto_load_cmd): Remove.
11756 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11757 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11758 (maintenance_print_arc_command): Remove.
11759 * tui/tui-win.c (tui_command): Remove.
11760 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11761 * tui/tui-layout.c (tui_layout_command): Remove.
11762 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11763 * python/python.c (user_set_python, user_show_python): Remove.
11764 (_initialize_python): Use add_basic_prefix_cmd,
11765 add_show_prefix_cmd.
11766 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11767 (install_gdb_commands): Use add_basic_prefix_cmd,
11768 add_show_prefix_cmd.
11769 (info_guile_command): Remove.
11770 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11771 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11772 add_show_prefix_cmd.
11773 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11774 Remove do_set and do_show parameters.
11775 * cli/cli-style.c (set_style, show_style): Remove.
11776 (_initialize_cli_style): Use add_basic_prefix_cmd,
11777 add_show_prefix_cmd.
11778 (cli_style_option::add_setshow_commands): Remove do_set and
11779 do_show parameters.
11780 (cli_style_option::add_setshow_commands): Use
11781 add_basic_prefix_cmd, add_show_prefix_cmd.
11782 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11783 (set_style_name): Remove.
11784 * cli/cli-dump.c (dump_command, append_command): Remove.
11785 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11786 (tekhex_dump_command, binary_dump_command)
11787 (binary_append_command): Remove.
11788 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11789 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11790 (init_w32_command_list): Remove; move into ...
11791 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11792 * valprint.c (set_print, show_print, set_print_raw)
11793 (show_print_raw): Remove.
11794 (_initialize_valprint): Use add_basic_prefix_cmd,
11795 add_show_prefix_cmd.
11796 * typeprint.c (set_print_type, show_print_type): Remove.
11797 (_initialize_typeprint): Use add_basic_prefix_cmd,
11798 add_show_prefix_cmd.
11799 * record.c (set_record_command, show_record_command): Remove.
11800 (_initialize_record): Use add_basic_prefix_cmd,
11801 add_show_prefix_cmd.
11802 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11803 add_show_prefix_cmd.
11804 (info_command, show_command, set_debug, show_debug): Remove.
11805 * top.h (set_history, show_history): Don't declare.
11806 * top.c (set_history, show_history): Remove.
11807 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11808 (unset_tdesc_cmd): Remove.
11809 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11810 add_show_prefix_cmd.
11811 * symtab.c (info_module_command): Remove.
11812 (_initialize_symtab): Use add_basic_prefix_cmd.
11813 * symfile.c (overlay_command): Remove.
11814 (_initialize_symfile): Use add_basic_prefix_cmd.
11815 * sparc64-tdep.c (info_adi_command): Remove.
11816 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11817 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11818 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11819 add_show_prefix_cmd.
11820 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11821 (_initialize_serial): Use add_basic_prefix_cmd,
11822 add_show_prefix_cmd.
11823 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11824 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11825 add_show_prefix_cmd.
11826 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11827 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11828 add_show_prefix_cmd.
11829 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11830 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11831 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11832 add_show_prefix_cmd.
11833 * remote.c (remote_command, set_remote_cmd): Remove.
11834 (_initialize_remote): Use add_basic_prefix_cmd.
11835 * record-full.c (set_record_full_command)
11836 (show_record_full_command): Remove.
11837 (_initialize_record_full): Use add_basic_prefix_cmd,
11838 add_show_prefix_cmd.
11839 * record-btrace.c (cmd_set_record_btrace)
11840 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11841 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11842 (cmd_show_record_btrace_pt): Remove.
11843 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11844 add_show_prefix_cmd.
11845 * ravenscar-thread.c (set_ravenscar_command)
11846 (show_ravenscar_command): Remove.
11847 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11848 add_show_prefix_cmd.
11849 * mips-tdep.c (show_mips_command, set_mips_command)
11850 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11851 add_show_prefix_cmd.
11852 * maint.c (maintenance_command, maintenance_info_command)
11853 (maintenance_check_command, maintenance_print_command)
11854 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11855 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11856 add_show_prefix_cmd.
11857 (show_per_command_cmd): Remove.
11858 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11859 Remove.
11860 (maintenance_show_test_settings_cmd): Remove.
11861 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11862 add_show_prefix_cmd.
11863 * maint-test-options.c (maintenance_test_options_command):
11864 Remove.
11865 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11866 * macrocmd.c (macro_command): Remove
11867 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11868 * language.c (set_check, show_check): Remove.
11869 (_initialize_language): Use add_basic_prefix_cmd,
11870 add_show_prefix_cmd.
11871 * infcmd.c (unset_command): Remove.
11872 (_initialize_infcmd): Use add_basic_prefix_cmd.
11873 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11874 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11875 add_show_prefix_cmd.
11876 * go32-nat.c (go32_info_dos_command): Remove.
11877 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11878 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11879 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11880 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11881 (_initialize_frame): Use add_basic_prefix_cmd,
11882 add_show_prefix_cmd.
11883 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11884 (_initialize_dcache): Use add_basic_prefix_cmd,
11885 add_show_prefix_cmd.
11886 * cp-support.c (maint_cplus_command): Remove.
11887 (_initialize_cp_support): Use add_basic_prefix_cmd.
11888 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11889 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11890 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11891 add_basic_prefix_cmd, add_show_prefix_cmd.
11892 * breakpoint.c (save_command): Remove.
11893 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11894 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11895 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11896 add_show_prefix_cmd.
11897 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11898 (set_ada_command, show_ada_command): Remove.
11899 (_initialize_ada_language): Use add_basic_prefix_cmd,
11900 add_show_prefix_cmd.
11901 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11902
3557f442
KR
119032020-04-16 Kamil Rytarowski <n54@gmx.com>
11904
11905 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11906 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11907
16197208
SM
119082020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11909
11910 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11911 warning messages.
11912
00ac85d3
SM
119132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11914
11915 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11916 import table is not at beginning of .idata section.
11917
381ce63f
PA
119182020-04-16 Pedro Alves <palves@redhat.com>
11919
11920 * inferior.c (delete_inferior): Use delete operator directly
11921 instead of delete_program_space.
11922 * progspace.c (add_program_space): New, factored out from
11923 program_space::program_space.
11924 (remove_program_space): New, factored out from
11925 delete_program_space.
11926 (program_space::program_space): Remove intro comment. Rewrite.
11927 (program_space::~program_space): Remove intro comment. Call
11928 remove_program_space.
11929 (delete_program_space): Delete.
11930 * progspace.h (program_space::program_space): Make explicit. Move
11931 intro comment here, adjusted.
11932 (program_space::~program_space): Move intro comment here,
11933 adjusted.
11934 (delete_program_space): Remove.
11935
a010605f
TT
119362020-04-16 Tom Tromey <tromey@adacore.com>
11937
11938 * windows-nat.c (windows_nat::handle_access_violation): New
11939 function.
11940 * nat/windows-nat.h (handle_access_violation): Declare.
11941 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11942 windows-nat.c. Call handle_access_violation.
11943
efba5c23
TV
119442020-04-16 Tom de Vries <tdevries@suse.de>
11945
11946 PR symtab/25791
11947 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11948 CUs without psymtab.
11949
97ed802d
KB
119502020-04-16 Kevin Buettner <kevinb@redhat.com>
11951
11952 * python/python.c (do_start_initialization): Don't call
11953 PyEval_InitThreads for Python 3.9 and beyond.
11954
c7d64809
KR
119552020-04-15 Kamil Rytarowski <n54@gmx.com>
11956
11957 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11958 thread functions.
11959 (obsd_nat_target::wait): Likewise.
11960
ce127a96
TT
119612020-04-15 Tom Tromey <tromey@adacore.com>
11962
11963 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11964 (DEBUG_EXCEPT): Use debug_printf.
11965
99f1bc6a
AB
119662020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11967
11968 * completer.c (class completion_tracker::completion_hash_entry)
11969 <hash_name>: New member function.
11970 (completion_tracker::discard_completions): New callback to hash a
11971 completion_hash_entry, pass this to htab_create_alloc.
11972
a0e9b532
JT
119732016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11974
11975 * windows-nat.c (windows_make_so): Warn rather than stopping with
11976 an error if realpath() fails.
11977
06ca5dd4
KR
119782020-04-14 Kamil Rytarowski <n54@gmx.com>
11979
11980 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11981 (nbsd_nat_target::info_proc): Add do_status.
11982
194d088f
TV
119832020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11984 Tom de Vries <tdevries@suse.de>
11985
11986 PR symtab/25718
11987 * psympriv.h (struct partial_symtab::read_symtab)
11988 (struct partial_symtab::expand_psymtab)
11989 (struct partial_symtab::read_dependencies): Update comments.
11990 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11991 read_symtab for includer.
11992 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11993 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11994 (struct dwarf2_include_psymtab::m_readin): Remove.
11995 (struct dwarf2_include_psymtab::includer): New member function.
11996 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11997
c1a66c06
TV
119982020-04-14 Tom de Vries <tdevries@suse.de>
11999
12000 PR symtab/25720
12001 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12002 with NULL symbol_matcher and lookup_name.
12003 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12004 and lookup_name.
12005 * dwarf2/read.c (dw2_expand_symtabs_matching)
12006 (dw2_debug_names_expand_symtabs_matching): Same.
12007 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12008 Make lookup_name a pointer. Update comment.
12009 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12010 lookup_name being a pointer.
12011 * symfile.c (expand_symtabs_matching): Same.
12012 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12013 * linespec.c (iterate_over_all_matching_symtabs): Same.
12014
400b5eca
TT
120152020-04-13 Tom Tromey <tom@tromey.com>
12016
12017 * run-on-main-thread.c: Update include.
12018 * unittests/main-thread-selftests.c: Update include.
12019 * tui/tui-win.c: Update include.
12020 * tui/tui-io.c: Update include.
12021 * tui/tui-interp.c: Update include.
12022 * tui/tui-hooks.c: Update include.
12023 * top.h: Update include.
12024 * top.c: Update include.
12025 * ser-base.c: Update include.
12026 * remote.c: Update include.
12027 * remote-notif.c: Update include.
12028 * remote-fileio.c: Update include.
12029 * record-full.c: Update include.
12030 * record-btrace.c: Update include.
12031 * python/python.c: Update include.
12032 * posix-hdep.c: Update include.
12033 * mingw-hdep.c: Update include.
12034 * mi/mi-main.c: Update include.
12035 * mi/mi-interp.c: Update include.
12036 * main.c: Update include.
12037 * linux-nat.c: Update include.
12038 * interps.c: Update include.
12039 * infrun.c: Update include.
12040 * inf-loop.c: Update include.
12041 * event-top.c: Update include.
12042 * event-loop.c: Move to ../gdbsupport/.
12043 * event-loop.h: Move to ../gdbsupport/.
12044 * async-event.h: Update include.
12045 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12046
93b54c8e
TT
120472020-04-13 Tom Tromey <tom@tromey.com>
12048
12049 * tui/tui-win.c: Include async-event.h.
12050 * remote.c: Include async-event.h.
12051 * remote-notif.c: Include async-event.h.
12052 * record-full.c: Include async-event.h.
12053 * record-btrace.c: Include async-event.h.
12054 * infrun.c: Include async-event.h.
12055 * event-top.c: Include async-event.h.
12056 * event-loop.h: Move some declarations to async-event.h.
12057 * event-loop.c: Don't include ser-event.h or top.h. Move some
12058 code to async-event.c.
12059 * async-event.h: New file.
12060 * async-event.c: New file.
12061 * Makefile.in (COMMON_SFILES): Add async-event.c.
12062 (HFILES_NO_SRCDIR): Add async-event.h.
12063
c1cd3163
TT
120642020-04-13 Tom Tromey <tom@tromey.com>
12065
12066 * utils.c (flush_streams): New function.
12067 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12068
29f2bf4f
TT
120692020-04-13 Tom Tromey <tom@tromey.com>
12070
12071 * event-loop.c (handle_file_event): Use warning, not
12072 printf_unfiltered.
12073
98029d02
TT
120742020-04-13 Tom Tromey <tom@tromey.com>
12075
12076 * event-loop.c: Include <chrono>.
12077
06cc9596
TT
120782020-04-13 Tom Tromey <tom@tromey.com>
12079
12080 * gdb_select.h: Move to ../gdbsupport/.
12081 * event-loop.c: Update include path.
12082 * top.c: Update include path.
12083 * ser-base.c: Update include path.
12084 * ui-file.c: Update include path.
12085 * ser-tcp.c: Update include path.
12086 * guile/scm-ports.c: Update include path.
12087 * posix-hdep.c: Update include path.
12088 * ser-unix.c: Update include path.
12089 * gdb_usleep.c: Update include path.
12090 * mingw-hdep.c: Update include path.
12091 * inflow.c: Update include path.
12092 * infrun.c: Update include path.
12093 * event-top.c: Update include path.
12094
8ae8e197
TT
120952020-04-13 Tom Tromey <tom@tromey.com>
12096
12097 * configure: Rebuild.
12098 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12099
58cf28e8
TT
121002020-04-13 Tom Tromey <tom@tromey.com>
12101
12102 * event-loop.h (start_event_loop): Don't declare.
12103 * event-loop.c (start_event_loop): Move...
12104 * main.c (start_event_loop): ...here. Now static.
12105
b7f999ae
SDJ
121062020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12107
12108 * MAINTAINERS: Update my email address.
12109
1085dfd4
KR
121102020-04-12 Kamil Rytarowski <n54@gmx.com>
12111
12112 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12113 IP_ALL.
12114
49d1d1f5
KR
121152020-04-12 Kamil Rytarowski <n54@gmx.com>
12116
12117 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12118 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12119
b4848d2a
KR
121202020-04-12 Kamil Rytarowski <n54@gmx.com>
12121
12122 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12123 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12124
51c133d5
KR
121252020-04-12 Kamil Rytarowski <n54@gmx.com>
12126
12127 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12128
54b8cbd0
KR
121292020-04-11 Kamil Rytarowski <n54@gmx.com>
12130
12131 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12132 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12133 (nbsd_nat_target::info_proc): New functions.
12134 * nbsd-nat.c (kinfo_get_vmmap): New function.
12135 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12136 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12137 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12138 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12139 functions.
12140 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12141 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12142 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12143 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12144 (KINFO_VME_FLAG_GROWS_DOWN): New.
12145
cf83625d
AS
121462020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12147
12148 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12149 bit shift.
12150
0c4311ab
TT
121512020-04-10 Tom Tromey <tromey@adacore.com>
12152
12153 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12154
3e65b3e9
TT
121552020-04-10 Tom Tromey <tromey@adacore.com>
12156
12157 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12158 separate debug files.
12159
13302e95
HD
121602020-04-10 Hannes Domani <ssbssa@yahoo.de>
12161
12162 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12163 Move to...
12164 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12165 ... here.
12166 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12167 Check for STATUS_WX86_BREAKPOINT.
12168 (windows_nat_target::wait): Same.
12169
bdfc1e8a
TV
121702020-04-10 Tom de Vries <tdevries@suse.de>
12171
12172 PR cli/25808
12173 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12174
f4460aec
SM
121752020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12176
12177 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12178 (Write After Approval): Remove Tom de Vries.
12179
a25198bb
BE
121802020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12181
12182 revert partially:
12183 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12184
aac66a4c
SM
12185 * buildsym.c (record_line): Fix undefined behavior and preserve
12186 lines at eof.
a25198bb 12187
206c98a6
KR
121882020-04-09 Kamil Rytarowski <n54@gmx.com>
12189
12190 * auxv.h (svr4_auxv_parse): New.
12191 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12192 and generic_auxv_parse.
12193 (svr4_auxv_parse): Add.
12194 * obsd-tdep.c: Include "auxv.h".
12195 (obsd_auxv_parse): Remove.
12196 (obsd_init_abi): Remove comment.
12197 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12198 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12199 * nbsd-tdep.c: Include "auxv.h".
12200 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12201
71fbdbaf
TT
122022020-04-08 Tom Tromey <tromey@adacore.com>
12203
12204 * nat/windows-nat.h (last_wait_event): Don't declare.
12205 (wait_for_debug_event): Update comment.
12206 * nat/windows-nat.c (last_wait_event): Now static.
12207
2c1d95e8
TT
122082020-04-08 Tom Tromey <tromey@adacore.com>
12209
12210 * windows-nat.c (wait_for_debug_event): Move to
12211 nat/windows-nat.c.
12212 * nat/windows-nat.h (wait_for_debug_event): Declare.
12213 * nat/windows-nat.c (wait_for_debug_event): Move from
12214 windows-nat.c. No longer static.
12215
d2977bc4
TT
122162020-04-08 Tom Tromey <tromey@adacore.com>
12217
12218 * windows-nat.c (get_windows_debug_event): Use
12219 fetch_pending_stop.
12220 * nat/windows-nat.h (fetch_pending_stop): Declare.
12221 * nat/windows-nat.c (fetch_pending_stop): New function.
12222
e758e19c
TT
122232020-04-08 Tom Tromey <tromey@adacore.com>
12224
12225 * windows-nat.c (windows_continue): Use matching_pending_stop and
12226 continue_last_debug_event.
12227 * nat/windows-nat.h (matching_pending_stop)
12228 (continue_last_debug_event): Declare.
12229 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12230 (matching_pending_stop, continue_last_debug_event): New
12231 functions.
12232
8d30e395
TT
122332020-04-08 Tom Tromey <tromey@adacore.com>
12234
12235 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12236 (handle_exception_result): Move to nat/windows-nat.h.
12237 (DEBUG_EXCEPTION_SIMPLE): Remove.
12238 (windows_nat::handle_ms_vc_exception): New function.
12239 (handle_exception): Move to nat/windows-nat.c.
12240 (get_windows_debug_event): Update.
12241 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12242 nat/windows-nat.c.
12243 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12244 (handle_exception_result): Move from windows-nat.c.
12245 (handle_exception): Declare.
12246 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12247 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12248 windows-nat.c.
12249
29de418d
TT
122502020-04-08 Tom Tromey <tromey@adacore.com>
12251
12252 * windows-nat.c (exception_count, event_count): Remove.
12253 (handle_exception, get_windows_debug_event)
12254 (do_initial_windows_stuff): Update.
12255
a816ba18
TT
122562020-04-08 Tom Tromey <tromey@adacore.com>
12257
12258 * windows-nat.c (windows_nat::handle_load_dll)
12259 (windows_nat::handle_unload_dll): Rename. No longer static.
12260 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12261 Declare.
12262
a00caa12
TT
122632020-04-08 Tom Tromey <tromey@adacore.com>
12264
12265 * complaints.h (stop_whining): Declare at top-level.
12266 (complaint): Don't declare stop_whining.
12267
d41b524f
TT
122682020-04-08 Tom Tromey <tromey@adacore.com>
12269
12270 * windows-nat.c (windows_nat::handle_output_debug_string):
12271 Rename. No longer static.
12272 * nat/windows-nat.h (handle_output_debug_string): Declare.
12273
3c76026d
TT
122742020-04-08 Tom Tromey <tromey@adacore.com>
12275
12276 * windows-nat.c (current_process_handle, current_process_id)
12277 (main_thread_id, last_sig, current_event, last_wait_event)
12278 (current_windows_thread, desired_stop_thread_id, pending_stops)
12279 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12280 (display_selectors, fake_create_process)
12281 (get_windows_debug_event): Update.
12282 * nat/windows-nat.h (current_process_handle, current_process_id)
12283 (main_thread_id, last_sig, current_event, last_wait_event)
12284 (current_windows_thread, desired_stop_thread_id, pending_stops)
12285 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12286 * nat/windows-nat.c (current_process_handle, current_process_id)
12287 (main_thread_id, last_sig, current_event, last_wait_event)
12288 (current_windows_thread, desired_stop_thread_id, pending_stops)
12289 (siginfo_er): New globals. Move from windows-nat.c.
12290
9d8679cc
TT
122912020-04-08 Tom Tromey <tromey@adacore.com>
12292
12293 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12294 (handle_load_dll): Update.
12295 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12296
28688adf
TT
122972020-04-08 Tom Tromey <tromey@adacore.com>
12298
12299 * windows-nat.c (enum thread_disposition_type): Move to
12300 nat/windows-nat.h.
12301 (windows_nat::thread_rec): Rename from thread_rec. No longer
12302 static.
12303 (windows_add_thread, windows_nat_target::fetch_registers)
12304 (windows_nat_target::store_registers, handle_exception)
12305 (windows_nat_target::resume, get_windows_debug_event)
12306 (windows_nat_target::get_tib_address)
12307 (windows_nat_target::thread_name)
12308 (windows_nat_target::thread_alive): Update.
12309 * nat/windows-nat.h (enum thread_disposition_type): Move from
12310 windows-nat.c.
12311 (thread_rec): Declare.
12312
4834dad0
TT
123132020-04-08 Tom Tromey <tromey@adacore.com>
12314
12315 * windows-nat.c: Add "using namespace".
12316 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12317 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12318
65bafd5b
TT
123192020-04-08 Tom Tromey <tromey@adacore.com>
12320
12321 * nat/windows-nat.h (struct windows_thread_info): Declare
12322 destructor.
12323 * nat/windows-nat.c (~windows_thread_info): New.
12324
0a4afda3
TT
123252020-04-08 Tom Tromey <tromey@adacore.com>
12326
12327 PR gdb/22992
12328 * windows-nat.c (current_event): Update comment.
12329 (last_wait_event, desired_stop_thread_id): New globals.
12330 (struct pending_stop): New.
12331 (pending_stops): New global.
12332 (windows_nat_target) <stopped_by_sw_breakpoint>
12333 <supports_stopped_by_sw_breakpoint>: New methods.
12334 (windows_fetch_one_register): Add assertions. Adjust PC.
12335 (windows_continue): Handle pending stops. Suspend other threads
12336 when stepping. Use last_wait_event
12337 (wait_for_debug_event): New function.
12338 (get_windows_debug_event): Use wait_for_debug_event. Handle
12339 pending stops. Queue spurious stops.
12340 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12341 (windows_nat_target::kill): Use wait_for_debug_event.
12342 * nat/windows-nat.h (struct windows_thread_info)
12343 <stopped_at_software_breakpoint>: New field.
12344 * nat/windows-nat.c (windows_thread_info::resume): Clear
12345 stopped_at_software_breakpoint.
12346
8e61ebec
TT
123472020-04-08 Tom Tromey <tromey@adacore.com>
12348
12349 * windows-nat.c (enum thread_disposition_type): New.
12350 (thread_rec): Replace "get_context" parameter with "disposition";
12351 change type.
12352 (windows_add_thread, windows_nat_target::fetch_registers)
12353 (windows_nat_target::store_registers, handle_exception)
12354 (windows_nat_target::resume, get_windows_debug_event)
12355 (windows_nat_target::get_tib_address)
12356 (windows_nat_target::thread_name)
12357 (windows_nat_target::thread_alive): Update.
12358
98a03287
TT
123592020-04-08 Tom Tromey <tromey@adacore.com>
12360
12361 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12362 (windows_continue): Use windows_continue::resume.
12363 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12364 resume>: Declare new methods.
12365 * nat/windows-nat.c: New file.
12366 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12367
7c7411bc
TT
123682020-04-08 Tom Tromey <tromey@adacore.com>
12369
12370 * windows-nat.c (windows_add_thread, windows_delete_thread)
12371 (windows_nat_target::fetch_registers)
12372 (windows_nat_target::store_registers, fake_create_process)
12373 (windows_nat_target::resume, windows_nat_target::resume)
12374 (get_windows_debug_event, windows_nat_target::wait)
12375 (windows_nat_target::pid_to_str)
12376 (windows_nat_target::get_tib_address)
12377 (windows_nat_target::get_ada_task_ptid)
12378 (windows_nat_target::thread_name)
12379 (windows_nat_target::thread_alive): Use lwp, not tid.
12380
2950fdf7
TT
123812020-04-08 Tom Tromey <tromey@adacore.com>
12382
12383 * windows-nat.c (handle_exception)
12384 (windows_nat_target::thread_name): Update.
12385 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12386 <name>: Now unique_xmalloc_ptr.
12387
62fe396b
TT
123882020-04-08 Tom Tromey <tromey@adacore.com>
12389
12390 * windows-nat.c (thread_rec)
12391 (windows_nat_target::fetch_registers): Update.
12392 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12393 Update comment.
12394 <debug_registers_changed, reload_context>: Now bool.
12395
e9534bd2
TT
123962020-04-08 Tom Tromey <tromey@adacore.com>
12397
12398 * windows-nat.c (windows_add_thread): Use new.
12399 (windows_init_thread_list, windows_delete_thread): Use delete.
12400 (get_windows_debug_event): Update.
12401 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12402 destructor, and initializers.
12403
ae1f8880
TT
124042020-04-08 Tom Tromey <tromey@adacore.com>
12405
12406 * windows-nat.c (struct windows_thread_info): Remove.
12407 * nat/windows-nat.h: New file.
12408
55a1e039
TT
124092020-04-08 Tom Tromey <tromey@adacore.com>
12410
12411 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12412 (thread_rec, windows_add_thread, windows_delete_thread)
12413 (windows_continue): Update.
12414
93366324
TT
124152020-04-08 Tom Tromey <tromey@adacore.com>
12416
12417 * windows-nat.c (struct windows_thread_info): Remove typedef.
12418 (thread_head): Remove.
12419 (thread_list): New global.
12420 (thread_rec, windows_add_thread, windows_init_thread_list)
12421 (windows_delete_thread, windows_continue): Update.
12422
0f2265e2
SM
124232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12424
12425 * windows-tdep.h (windows_init_abi): Add comment.
12426 (cygwin_init_abi): New declaration.
12427 * windows-tdep.c: Split signal enumeration in two, one for
12428 Windows and one for Cygwin.
12429 (windows_gdb_signal_to_target): Only deal with signal of the
12430 Windows OS ABI.
12431 (cygwin_gdb_signal_to_target): New function.
12432 (windows_init_abi): Rename to windows_init_abi_common, don't set
12433 gdb_signal_to_target gdbarch method. Add new new function with
12434 this name.
12435 (cygwin_init_abi): New function.
12436 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12437 comment. Don't call windows_init_abi.
12438 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12439 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12440 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12441 i386_windows_init_abi_common, don't call windows_init_abi. Add
12442 a new function of this name.
12443 (i386_cygwin_init_abi): New function.
12444 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12445 OS ABI Cygwin.
12446
3810f182
SM
124472020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12448
12449 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12450 parameter.c.
12451 (dwarf2_read_gdb_index): Update.
12452
063f8e80
KR
124532020-04-07 Kamil Rytarowski <n54@gmx.com>
12454
12455 * nbsd-tdep.c: Include "objfiles.h".
12456 (nbsd_skip_solib_resolver): New.
12457 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12458
85a9510c 124592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12460
12461 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12462 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12463 with DW_LLE_base_addressx are being emitted in DWARFv5.
12464 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12465 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12466 unsigned integer.
12467
9fc3eaae 124682020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12469
12470 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12471 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12472 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12473 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12474 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12475 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12476 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12477
12478
41144253 124792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12480
12481 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12482 (read_loclist_index): New function definition.
12483 (lookup_loclist_base): New function definition.
12484 (read_loclist_header): New function definition.
12485 (dwarf2_cu): Add loclist_base and loclist_header field.
12486 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12487 (read_full_die_1): Read the value of DW_AT_loclists_base.
12488 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12489 (read_attribute_value): Handle DW_FORM_loclistx.
12490 (skip_one_die): Handle DW_FORM_loclistx.
12491 (loclist_header): New structure declaration.
12492 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12493
9f4e76a4
SM
124942020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12495
12496 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12497 constructor. Remove `addr` parameter from other constructor and
12498 add `per_cu` parameter.
12499 * dwarf2/read.c (create_partial_symtab): Update.
12500
25c11aca
TV
125012020-04-07 Tom de Vries <tdevries@suse.de>
12502
12503 PR symtab/25796
12504 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12505 (partial_die_info::fixup): Inherit has_const_value.
12506
5707e24b
TV
125072020-04-07 Tom de Vries <tdevries@suse.de>
12508
12509 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12510 symbols without address.
12511
05f00e22
KR
125122020-04-06 Kamil Rytarowski <n54@gmx.com>
12513
12514 * nbsd-nat.h (struct thread_info): Add forward declaration.
12515 (nbsd_nat_target::thread_alive): Add.
12516 (nbsd_nat_target::thread_name): Likewise.
12517 (nbsd_nat_target::update_thread_list): Likewise.
12518 (update_thread_list::post_attach): Likewise.
12519 (post_attach::pid_to_str): Likewise.
12520 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12521 (nbsd_thread_lister): Add.
12522 (nbsd_nat_target::thread_alive): Likewise.
12523 (nbsd_nat_target::thread_name): Likewise.
12524 (nbsd_add_threads): Likewise.
12525 (update_thread_list::post_attach): Likewise.
12526 (nbsd_nat_target::update_thread_list): Likewise.
12527 (post_attach::pid_to_str): Likewise.
12528
6ee448cc
TT
125292020-04-06 Tom Tromey <tromey@adacore.com>
12530
12531 * ada-valprint.c (print_variant_part): Extract the variant field.
12532 (print_field_values): Use the field as the outer value when
12533 recursing.
12534
dea34e8c
TT
125352020-04-06 Tom Tromey <tromey@adacore.com>
12536
12537 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12538 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12539 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12540 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12541 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12542
93689ce9
TT
125432020-04-06 Tom Tromey <tromey@adacore.com>
12544
12545 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12546 TYPE_CODE_ERROR.
12547
79743962
KR
125482020-04-06 Kamil Rytarowski <n54@gmx.com>
12549
12550 * nbsd-tdep.c: Include "gdbarch.h".
12551 Define enum with NetBSD signal numbers.
12552 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12553 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12554 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12555 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12556 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12557 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12558 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12559 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12560 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12561 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12562 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12563 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12564
9e7c9a03
HD
125652020-04-03 Hannes Domani <ssbssa@yahoo.de>
12566
12567 PR gdb/25325
12568 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12569
d9e49b61
TT
125702020-04-03 Tom Tromey <tromey@adacore.com>
12571
12572 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12573 Read constant block.
12574
e0fc5c3f
SM
125752020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12576
12577 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12578 (gdb_bfd_get_full_section_contents): New declaration.
12579 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12580 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12581 gdb_bfd_get_full_section_contents.
12582
e2ff18a0
SM
125832020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12584
12585 * exec.c (build_section_table): Replace internal_error with
12586 gdb_assert.
12587 (section_table_xfer_memory_partial): Likewise.
12588 * mdebugread.c (parse_partial_symbols): Likewise.
12589 * psymtab.c (lookup_partial_symbol): Likewise.
12590 * utils.c (wrap_here): Likewise.
12591
0830d301
TT
125922020-04-02 Tom Tromey <tromey@adacore.com>
12593
12594 * f-lang.c (build_fortran_types): Use arch_type to initialize
12595 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12596
e7da7f8f
TT
125972020-04-02 Tom Tromey <tromey@adacore.com>
12598
12599 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12600 of attributes.
12601
c90d28ac
AB
126022020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12603 Bernd Edlinger <bernd.edlinger@hotmail.de>
12604 Tom Tromey <tromey@adacore.com>
12605
12606 * buildsym.c (buildsym_compunit::record_line): Remove
12607 deduplication code.
12608
1aa98955
TV
126092020-04-02 Tom de Vries <tdevries@suse.de>
12610
12611 PR ada/24671
12612 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12613
d3214198
TV
126142020-04-02 Tom de Vries <tdevries@suse.de>
12615
12616 * dwarf2/read.c (dwarf2_gdb_index_functions,
12617 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12618 NULL.
12619 * psymtab.c (psym_lookup_global_symbol_language): New function.
12620 (psym_functions): Init psym_lookup_global_symbol_language with
12621 psym_lookup_global_symbol_language.
12622 * symfile-debug.c (debug_sym_quick_functions): Init
12623 lookup_global_symbol_language with NULL.
12624 * symfile.c (set_initial_language): Remove fixme comment.
12625 * symfile.h (struct quick_symbol_functions): Add
12626 lookup_global_symbol_language.
12627 * symtab.c (find_quick_global_symbol_language): New function.
12628 (find_main_name): Use find_quick_global_symbol_language.
12629
2836752f
SM
126302020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12631
12632 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12633
64dc2d4b
BE
126342020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12635
12636 * buildsym.c (record_line): Fix undefined behavior and preserve
12637 lines at eof.
12638
bbe3dc41
BE
126392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12640
12641 * buildsym.c (record_line): Fix the resizing condition.
12642
6b4a335b
TT
126432020-04-01 Tom Tromey <tom@tromey.com>
12644
12645 * value.h (value_literal_complex): Add comment.
12646 * valops.c (value_literal_complex): Refer to value.h.
12647
3638a098
TT
126482020-04-01 Tom Tromey <tom@tromey.com>
12649
12650 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12651 (scalar_type): New rule, from typebase.
12652 (typebase): Use scalar_type. Recognize complex types.
12653 (field_name): Handle FLOAT_KEYWORD.
12654 (ident_tokens): Add _Complex and __complex__.
12655
c34e8714
TT
126562020-04-01 Tom Tromey <tom@tromey.com>
12657
12658 PR exp/25299:
12659 * valarith.c (promotion_type, complex_binop): New functions.
12660 (scalar_binop): Handle complex numbers. Use promotion_type.
12661 (value_pos, value_neg, value_complement): Handle complex numbers.
12662
fa649bb7
TT
126632020-04-01 Tom Tromey <tom@tromey.com>
12664
12665 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12666 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12667 (parse_number): Handle complex numbers.
12668
981c08ce
TT
126692020-04-01 Tom Tromey <tom@tromey.com>
12670
12671 * c-valprint.c (c_decorations): Change complex suffix to "i".
12672
4c99290d
TT
126732020-04-01 Tom Tromey <tom@tromey.com>
12674
12675 * valprint.c (generic_value_print_complex): Use accessors.
12676 * value.h (value_real_part, value_imaginary_part): Declare.
12677 * valops.c (value_real_part, value_imaginary_part): New
12678 functions.
12679 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12680
5b930b45
TT
126812020-04-01 Tom Tromey <tom@tromey.com>
12682
12683 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12684 (read_range_type): Update.
12685 * mdebugread.c (basic_type): Update.
12686 * go-lang.c (build_go_types): Use init_complex_type.
12687 * gdbtypes.h (struct main_type) <complex_type>: New member.
12688 (init_complex_type): Update.
12689 (arch_complex_type): Don't declare.
12690 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12691 Make name if none given. Use alloc_type_copy. Look for cached
12692 complex type.
12693 (arch_complex_type): Remove.
12694 (gdbtypes_post_init): Use init_complex_type.
12695 * f-lang.c (build_fortran_types): Use init_complex_type.
12696 * dwarf2/read.c (read_base_type): Update.
12697 * d-lang.c (build_d_types): Use init_complex_type.
12698 * ctfread.c (read_base_type): Update.
12699
53cccef1
TBA
127002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12701
12702 * infrun.c (stop_all_threads): Update assertion, plus when
12703 stopping threads, take into account that we might be trying
12704 to stop an all-stop target.
12705 (stop_waiting): Call 'stop_all_threads' if there exists a
12706 non-stop target.
12707
a0714d30
TBA
127082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12709
12710 * target.h (exists_non_stop_target): New function declaration.
12711 * target.c (exists_non_stop_target): New function.
12712
60e22c1e
HD
127132020-04-01 Hannes Domani <ssbssa@yahoo.de>
12714
12715 PR gdb/24789
12716 * eval.c (is_integral_or_integral_reference): New function.
12717 (evaluate_subexp_standard): Allow integer references in
12718 pointer arithmetic.
12719
e139a727
TBA
127202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12721
12722 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12723 check for no ptid in the stop reply when the target is non-stop.
12724
e0802d59
TT
127252020-04-01 Tom Tromey <tromey@adacore.com>
12726
12727 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12728 "name" parameter to rvalue reference. Initialize m_name_holder.
12729 <lookup_name_info>: New overloads.
12730 <name>: Return gdb::string_view.
12731 <c_str>: New method.
12732 <make_ignore_params>: Update.
12733 <search_name_hash>: Update.
12734 <language_lookup_name>: Return const char *.
12735 <m_name>: Change type.
12736 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12737 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12738 (lookup_name_info::match_any): Update.
12739 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12740 Update.
12741 * minsyms.c (linkage_name_str): Update.
12742 * language.c (default_symbol_name_matcher): Update.
12743 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12744 Update.
12745 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12746 (ada_lookup_name_info::ada_lookup_name_info): Update.
12747 (literal_symbol_name_matcher): Update.
12748
8c072cb6
TT
127492020-04-01 Tom Tromey <tromey@adacore.com>
12750
12751 * psymtab.c (psymtab_search_name): Remove function.
12752 (psym_lookup_symbol): Create search name and lookup name here.
12753 (lookup_partial_symbol): Remove "name" parameter; add
12754 lookup_name.
12755 (psym_expand_symtabs_for_function): Update.
12756
6f29a534
TT
127572020-03-31 Joel Jones <joelkevinjones@gmail.com>
12758
12759 PR tui/25597:
12760 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12761
af62665e
TT
127622020-03-31 Tom Tromey <tromey@adacore.com>
12763
12764 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12765 memcpy.
12766
d1a89da5
NC
127672020-03-30 Nelson Chu <nelson.chu@sifive.com>
12768
12769 * features/riscv/32bit-csr.xml: Regenerated.
12770 * features/riscv/64bit-csr.xml: Regenerated.
12771
d8af9068
TT
127722020-03-30 Tom Tromey <tromey@adacore.com>
12773
12774 * ada-valprint.c (print_variant_part): Update.
12775 * ada-lang.h (ada_which_variant_applies): Update.
12776 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12777 outer_valaddr parameters; replace with "outer" value parameter.
12778 (to_fixed_variant_branch_type): Update.
12779
227c0bf4
PFC
127802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12781
12782 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12783 <list>. Remove inclusion of observable.h.
12784 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12785 (struct arch_lwp_info): New struct.
12786 (class ppc_linux_dreg_interface): New class.
12787 (struct ppc_linux_process_info): New struct.
12788 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12789 <low_new_clone, low_forget_process, low_prepare_to_resume>
12790 <copy_thread_dreg_state, mark_thread_stale>
12791 <mark_debug_registers_changed, register_hw_breakpoint>
12792 <clear_hw_breakpoint, register_wp, clear_wp>
12793 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12794 <num_memory_accesses, get_trigger_type>
12795 <create_watchpoint_request, hwdebug_point_cmp>
12796 <init_arch_lwp_info, get_arch_lwp_info>
12797 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12798 methods.
12799 <struct ptid_hash>: New inner struct.
12800 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12801 members.
12802 (saved_dabr_value, hwdebug_info, max_slots_number)
12803 (struct hw_break_tuple, struct thread_points, ppc_threads)
12804 (have_ptrace_hwdebug_interface)
12805 (hwdebug_find_thread_points_by_tid)
12806 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12807 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12808 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12809 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12810 use m_dreg_interface.
12811 (hwdebug_point_cmp): Change to...
12812 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12813 reference arguments instead of pointers.
12814 (ppc_linux_nat_target::ranged_break_num_registers): Use
12815 m_dreg_interface.
12816 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12817 m_dreg_interface. Call register_hw_breakpoint.
12818 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12819 m_dreg_interface. Call clear_hw_breakpoint.
12820 (get_trigger_type): Change to...
12821 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12822 comment.
12823 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12824 use m_dreg_interface. Call register_hw_breakpoint.
12825 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12826 use m_dreg_interface. Call clear_hw_breakpoint.
12827 (can_use_watchpoint_cond_accel): Change to...
12828 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12829 method. Update comment, use m_dreg_interface and
12830 m_process_info.
12831 (calculate_dvc): Change to...
12832 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12833 m_dreg_interface.
12834 (num_memory_accesses): Change to...
12835 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12836 (check_condition): Change to...
12837 (ppc_linux_nat_target::check_condition): ...this method.
12838 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12839 comment, use m_dreg_interface.
12840 (create_watchpoint_request): Change to...
12841 (ppc_linux_nat_target::create_watchpoint_request): ...this
12842 method. Use m_dreg_interface.
12843 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12844 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12845 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12846 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12847 (ppc_linux_nat_target::low_forget_process)
12848 (ppc_linux_nat_target::low_new_fork)
12849 (ppc_linux_nat_target::low_new_clone)
12850 (ppc_linux_nat_target::low_delete_thread)
12851 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12852 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12853 only call mark_thread_stale.
12854 (ppc_linux_thread_exit): Remove.
12855 (ppc_linux_nat_target::stopped_data_address): Change to...
12856 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12857 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12858 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12859 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12860 comment. Call low_stopped_data_address.
12861 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12862 m_dreg_interface.
12863 (ppc_linux_nat_target::masked_watch_num_registers): Use
12864 m_dreg_interface.
12865 (ppc_linux_nat_target::copy_thread_dreg_state)
12866 (ppc_linux_nat_target::mark_thread_stale)
12867 (ppc_linux_nat_target::mark_debug_registers_changed)
12868 (ppc_linux_nat_target::register_hw_breakpoint)
12869 (ppc_linux_nat_target::clear_hw_breakpoint)
12870 (ppc_linux_nat_target::register_wp)
12871 (ppc_linux_nat_target::clear_wp)
12872 (ppc_linux_nat_target::init_arch_lwp_info)
12873 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12874 (_initialize_ppc_linux_nat): Remove observer callback.
12875
4db10d8f
PFC
128762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12877
12878 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12879 (ppc_linux_nat_target::auxv_parse)
12880 (ppc_linux_nat_target::read_description)
12881 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12882 Move up.
12883
1310c1b0
PFC
128842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12885
12886 * linux-nat.h (low_new_clone): New method.
12887 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12888
69b037c3
SM
128892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12890
12891 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12892 (dbx_expand_psymtab): ... this.
12893 (start_psymtab): Update.
12894 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12895 (mdebug_expand_psymtab): ... this.
12896 (parse_partial_symbols): Update.
12897 (new_psymtab): Update.
12898 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12899 (xcoff_expand_psymtab): ... this.
12900 (xcoff_start_psymtab): Update.
12901
48993951
SM
129022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12903
12904 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12905 <expand_dependencies>: ... this.
12906 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12907 (partial_symtab::expand_dependencies): ... this.
12908 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12909 Update.
12910 (dwarf2_psymtab::expand_psymtab): Update.
12911 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12912 * mdebugread.c (psymtab_to_symtab_1): Update.
12913 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12914
3ad83046
SM
129152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12916
12917 * psympriv.h (discard_psymtab): Remove.
12918 * dbxread.c (dbx_end_psymtab): Update.
12919 * xcoffread.c (xcoff_end_psymtab): Update.
12920
4d1b9ab6
TT
129212020-03-28 Tom Tromey <tom@tromey.com>
12922
12923 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12924 comment.
12925
f1749218
TT
129262020-03-28 Tom Tromey <tom@tromey.com>
12927
12928 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12929
ebea7626
HD
129302020-03-27 Hannes Domani <ssbssa@yahoo.de>
12931
12932 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12933
a879b4d5
JB
129342020-03-26 John Baldwin <jhb@FreeBSD.org>
12935
12936 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12937
0826b30a
TT
129382020-03-26 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12941 (mark_common_block_symbol_computed, read_tag_string_type)
12942 (attr_to_dynamic_prop, read_subrange_type): Update.
12943 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12944 to be methods on struct attribute.
12945 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12946 (read_call_site_scope, partial_die_info::read)
12947 (partial_die_info::read, lookup_die_type, follow_die_ref):
12948 Update.
12949 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12950 from dwarf2_get_ref_die_offset.
12951 (attribute::constant_value): New method, from
12952 dwarf2_get_attr_constant_value.
12953 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12954 Declare method.
12955 <constant_value>: New method.
12956
2b2558bf
TT
129572020-03-26 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12960 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12961 (dwarf_type_encoding_name): Move to stringify.c.
12962 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12963 * dwarf2/stringify.c: New file.
12964 * dwarf2/stringify.h: New file.
12965
eeb64781
TT
129662020-03-26 Tom Tromey <tom@tromey.com>
12967
12968 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12969 Rewrite.
12970
a39fdb41
TT
129712020-03-26 Tom Tromey <tom@tromey.com>
12972
12973 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12974 methods.
12975 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12976 (lookup_ranges_base): Likewise.
12977 (read_cutu_die_from_dwo, read_full_die_1): Update.
12978
436c571c
TT
129792020-03-26 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/read.c (read_import_statement, read_file_scope)
12982 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12983 (read_lexical_block_scope, read_call_site_scope)
12984 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12985 (handle_struct_member_die, process_structure_scope)
12986 (update_enumeration_type_from_children)
12987 (process_enumeration_scope, read_array_type, read_common_block)
12988 (read_namespace, read_module, read_subroutine_type): Update.
12989 (sibling_die): Remove.
12990
052c8bb8
TT
129912020-03-26 Tom Tromey <tom@tromey.com>
12992
12993 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12994 (build_type_psymtabs_reader, read_structure_type)
12995 (read_enumeration_type, read_full_die_1): Update.
12996 (dwarf2_attr_no_follow): Move to die.h.
12997 * dwarf2/die.h (struct die_info) <attr>: New method.
12998
2b24b6e4
TT
129992020-03-26 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13002 <base_address>: Now an optional.
13003 (dwarf2_find_base_address, dwarf2_rnglists_process)
13004 (dwarf2_ranges_process, fill_in_loclist_baton)
13005 (dwarf2_symbol_mark_computed): Update.
13006
c2d50fd0
TT
130072020-03-26 Tom Tromey <tom@tromey.com>
13008
13009 * dwarf2/read.c (struct die_info): Move to die.h.
13010 * dwarf2/die.h: New file.
13011
0df7ad3a
TT
130122020-03-26 Tom Tromey <tom@tromey.com>
13013
13014 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13015 * dwarf2/read.c
13016 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13017 Move to line-header.c.
13018 (read_checked_initial_length_and_offset, read_formatted_entries):
13019 Likewise.
13020 (dwarf_decode_line_header): Split into two.
13021 * dwarf2/line-header.c
13022 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13023 Move from read.c.
13024 (read_checked_initial_length_and_offset, read_formatted_entries):
13025 Likewise.
13026 (dwarf_decode_line_header): New function, split from read.c.
13027
86c0bb4c
TT
130282020-03-26 Tom Tromey <tom@tromey.com>
13029
13030 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13031 Declare method.
13032 * dwarf2/read.c (read_attribute_value): Update.
13033 (dwarf2_per_objfile::read_line_string): Rename from
13034 read_indirect_line_string.
13035 (read_formatted_entries): Update.
13036
2ef46c2f
TT
130372020-03-26 Tom Tromey <tom@tromey.com>
13038
13039 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13040 variable.
13041
4f9c1eda
TT
130422020-03-26 Tom Tromey <tom@tromey.com>
13043
13044 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13045 const.
13046 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13047 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13048 parameter const.
13049
5a0e026f
TT
130502020-03-26 Tom Tromey <tom@tromey.com>
13051
13052 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13053 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13054 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13055 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13056
8844c11b
TT
130572020-03-26 Tom Tromey <tom@tromey.com>
13058
13059 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13060 file_names_size, file_full_name, file_file_name>: Use const.
13061 <file_name_at, file_names>: Add const overload.
13062 * dwarf2/line-header.c (line_header::file_file_name)
13063 (line_header::file_full_name): Update.
13064
c90ec28a
TT
130652020-03-26 Tom Tromey <tom@tromey.com>
13066
13067 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13068 (macro_start_file, consume_improper_spaces)
13069 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13070 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13071 (dwarf_decode_macros): Move to macro.c.
13072 * dwarf2/macro.c: New file.
13073 * dwarf2/macro.h: New file.
13074 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13075
4f44ae6c
TT
130762020-03-26 Tom Tromey <tom@tromey.com>
13077
13078 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13079 method.
13080 * dwarf2/section.c: New method. From
13081 read_indirect_string_at_offset_from.
13082 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13083 (read_indirect_string_at_offset_from): Move to section.c.
13084 (read_indirect_string_at_offset): Rewrite.
13085 (read_indirect_line_string_at_offset): Remove.
13086 (read_indirect_string, read_indirect_line_string)
13087 (dwarf_decode_macro_bytes): Update.
13088
a0194fa8
TT
130892020-03-26 Tom Tromey <tom@tromey.com>
13090
13091 * dwarf2/section.h (struct dwarf2_section_info)
13092 <overload_complaint>: Declare.
13093 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13094 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13095 Rename from dwarf2_section_buffer_overflow_complaint.
13096 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13097 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13098
3d27bbdb
TT
130992020-03-26 Tom Tromey <tom@tromey.com>
13100
13101 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13102 Declare.
13103 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13104 Move from read.c.
13105 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13106 to section.c.
13107
9eac9650
TT
131082020-03-26 Tom Tromey <tom@tromey.com>
13109
13110 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13111
bf80d710
TT
131122020-03-26 Tom Tromey <tom@tromey.com>
13113
13114 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13115 "builder".
13116 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13117 parameter.
13118 (dwarf_decode_macros): Update.
13119
0314b390
TT
131202020-03-26 Tom Tromey <tom@tromey.com>
13121
13122 * dwarf2/read.c (read_attribute_value): Update.
13123 (read_indirect_string_from_dwz): Move to dwz.c; change into
13124 method.
13125 (dwarf_decode_macro_bytes): Update.
13126 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13127 * dwarf2/dwz.c: New file.
13128 * Makefile.in (COMMON_SFILES): Add dwz.c.
13129
9fda78b6
TT
131302020-03-26 Tom Tromey <tom@tromey.com>
13131
13132 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13133 * dwarf2/read.c: Add include.
13134 * dwarf2/index-write.c: Add include.
13135 * dwarf2/index-cache.c: Add include.
13136 * dwarf2/dwz.h: New file.
13137
33aa3c10
TT
131382020-03-25 Tom Tromey <tom@tromey.com>
13139
13140 * compile/compile-object-load.c (get_out_value_type): Mention
13141 correct symbol name in error message.
13142
d503b685
HD
131432020-03-25 Hannes Domani <ssbssa@yahoo.de>
13144
13145 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13146
7b1eff95
TV
131472020-03-25 Tom de Vries <tdevries@suse.de>
13148
13149 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13150 * symmisc.c (dump_symtab_1): Print user and includes fields.
13151 (maintenance_info_symtabs): Same.
13152
dd895392
AB
131532020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13154
13155 PR gdb/25534
13156 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13157 (riscv_regcache_cooked_write): New function.
13158 (riscv_push_dummy_call): Use new function.
13159 (riscv_return_value): Likewise.
13160
5ab2fbf1
SM
131612020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13162
13163 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13164 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13165 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13166 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13167 * infrun.c (follow_fork): Likewise.
13168 (follow_fork_inferior): Likewise.
13169 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13170 * linux-nat.h (class linux_nat_target): Likewise.
13171 * remote.c (class remote_target) <follow_fork>: Likewise.
13172 (remote_target::follow_fork): Likewise.
13173 * target-delegates.c: Re-generate.
13174 * target.c (default_follow_fork): Likewise.
13175 (target_follow_fork): Likewise.
13176 * target.h (struct target_ops) <follow_fork>: Likewise.
13177 (target_follow_fork): Likewise.
13178
a64fafb5
TV
131792020-03-24 Tom de Vries <tdevries@suse.de>
13180
13181 * psymtab.c (maintenance_info_psymtabs): Print user field.
13182
fe26d3a3
TT
131832020-03-20 Tom Tromey <tromey@adacore.com>
13184
13185 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13186 const.
13187 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13188 const.
13189
c884cc46
SM
131902020-03-20 Simon Marchi <simon.marchi@efficios.com>
13191
13192 * ptrace.m4: Don't check for ptrace declaration.
13193 * config.in: Re-generate.
13194 * configure: Re-generate.
13195 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13196 not defined.
13197
1ff700c2
KR
131982020-03-20 Kamil Rytarowski <n54@gmx.com>
13199
13200 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13201 `PTRACE_TYPE_RET'.
13202 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13203 * sparc-nat.c (gdb_ptrace): Likewise.
13204 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13205
f7d4f0b1
TT
132062020-03-20 Tom Tromey <tromey@adacore.com>
13207
13208 * c-exp.y (lex_one_token): Fix assert.
13209
f67210ff
TT
132102020-03-20 Tom Tromey <tromey@adacore.com>
13211
13212 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13213 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13214 strncpy call.
13215
1773be9e
TT
132162020-03-20 Tom Tromey <tromey@adacore.com>
13217
13218 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13219
70304be9
TT
132202020-03-20 Tom Tromey <tromey@adacore.com>
13221
13222 * ada-valprint.c (print_variant_part): Remove parameters; switch
13223 to value-based API.
13224 (print_field_values): Likewise.
13225 (ada_val_print_struct_union): Likewise.
13226 (ada_value_print_1): Update.
13227
9faa006d
KR
132282020-03-20 Kamil Rytarowski <n54@gmx.com>
13229
13230 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13231 nbsd_nat_target instead of inf_ptrace_target.
13232 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13233 nbsd_nat_target.
13234
4a90f062
KR
132352020-03-20 Kamil Rytarowski <n54@gmx.com>
13236
13237 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13238 it to the ptrace call.
13239 * (store_registers): Likewise.
13240
132412020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13242
13243 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13244 it to the ptrace call.
13245 * (store_registers): Likewise.
13246
2d07da27
LM
132472020-03-19 Luis Machado <luis.machado@linaro.org>
13248
13249 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13250 valid, fetch vg value from ptrace.
13251
f09db380
KR
132522020-03-19 Kamil Rytarowski <n54@gmx.com>
13253 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13254 * inf-ptrace.c: Likewise.
13255 * (gdb_ptrace): Add.
13256 * (inf_ptrace_target::resume): Update.
13257 * (inf_ptrace_target::xfer_partial): Likewise.
13258 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13259 * (inf_ptrace_peek_poke): Update.
13260
fcc7376e
KR
132612020-03-19 Kamil Rytarowski <n54@gmx.com>
13262
13263 * x86-bsd-nat.c (gdb_ptrace): New.
13264 * (x86bsd_dr_set): Add new argument `ptid'.
13265 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13266 x86bsd_dr_set_addr): Update.
13267
cada5fc9
AB
132682020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13269
13270 * remote.c (remote_target::process_stop_reply): Handle events for
13271 all threads differently.
13272
19a2740f
AB
132732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13274
13275 * completer.c (completion_tracker::remove_completion): Define new
13276 function.
13277 * completer.h (completion_tracker::remove_completion): Declare new
13278 function.
13279 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13280 when adding a C++ function symbol.
13281
724fd9ba
AB
132822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13283
13284 * completer.c (completion_tracker::completion_hash_entry): Define
13285 new class.
13286 (advance_to_filename_complete_word_point): Call
13287 recompute_lowest_common_denominator.
13288 (completion_tracker::completion_tracker): Call discard_completions
13289 to setup the hash table.
13290 (completion_tracker::discard_completions): Allow for being called
13291 from the constructor, pass new equal function, and element deleter
13292 when constructing the hash table. Initialise new class member
13293 variables.
13294 (completion_tracker::maybe_add_completion): Remove use of
13295 m_entries_vec, and store more information into m_entries_hash.
13296 (completion_tracker::recompute_lcd_visitor): New function, most
13297 content taken from...
13298 (completion_tracker::recompute_lowest_common_denominator):
13299 ...here, this now just visits each item in the hash calling the
13300 above visitor.
13301 (completion_tracker::build_completion_result): Remove use of
13302 m_entries_vec, call recompute_lowest_common_denominator.
13303 * completer.h (completion_tracker::have_completions): Remove use
13304 of m_entries_vec.
13305 (completion_tracker::completion_hash_entry): Declare new class.
13306 (completion_tracker::recompute_lowest_common_denominator): Change
13307 function signature.
13308 (completion_tracker::recompute_lcd_visitor): Declare new function.
13309 (completion_tracker::m_entries_vec): Delete.
13310 (completion_tracker::m_entries_hash): Initialize to NULL.
13311 (completion_tracker::m_lowest_common_denominator_valid): New
13312 member variable.
13313 (completion_tracker::m_lowest_common_denominator_max_length): New
13314 member variable.
13315
5a82b8a1
KR
133162020-03-17 Kamil Rytarowski <n54@gmx.com>
13317
13318 * regformats/regdef.h: Put reg in gdb namespace.
13319
fb516a69
KR
133202020-03-17 Kamil Rytarowski <n54@gmx.com>
13321
13322 * i386-bsd-nat.c (gdb_ptrace): New.
13323 * (i386bsd_fetch_inferior_registers,
13324 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13325 * (i386bsd_fetch_inferior_registers,
13326 i386bsd_store_inferior_registers) Use gdb_ptrace.
13327
1c0aa1fb
KR
133282020-03-17 Kamil Rytarowski <n54@gmx.com>
13329
13330 * amd64-bsd-nat.c (gdb_ptrace): New.
13331 * (amd64bsd_fetch_inferior_registers,
13332 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13333 * (amd64bsd_fetch_inferior_registers,
13334 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13335
5ccd2fb7
KR
133362020-03-17 Kamil Rytarowski <n54@gmx.com>
13337
13338 * user-regs.c (user_reg::read): Rename to...
13339 (user_reg::xread): ...this.
13340 * (append_user_reg): Rename argument `read' to `xread'.
13341 * (user_reg_add_builtin): Likewise.
13342 * (user_reg_add): Likewise.
13343 * (value_of_user_reg): Likewise.
13344
2108a63a
KR
133452020-03-17 Kamil Rytarowski <n54@gmx.com>
13346
13347 * sparc-nat.c (gdb_ptrace): New.
13348 * sparc-nat.c (sparc_fetch_inferior_registers)
13349 (sparc_store_inferior_registers) Remove obsolete comment.
13350 * sparc-nat.c (sparc_fetch_inferior_registers)
13351 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13352 * sparc-nat.c (sparc_fetch_inferior_registers)
13353 (sparc_store_inferior_registers) Use gdb_ptrace.
13354
a225c9a8
KR
133552020-03-17 Kamil Rytarowski <n54@gmx.com>
13356
13357 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13358 it to the ptrace call.
13359 * sh-nbsd-nat.c (store_registers): Likewise.
13360
98097623
KR
133612020-03-17 Kamil Rytarowski <n54@gmx.com>
13362
13363 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13364 nbsd_nat_target instead of inf_ptrace_target.
13365 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13366 nbsd_nat_target.
13367
9e38d619
KR
133682020-03-17 Kamil Rytarowski <n54@gmx.com>
13369
13370 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13371
a2ecbe9f
KR
133722020-03-17 Kamil Rytarowski <n54@gmx.com>
13373
13374 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13375 <sys/sysctl.h>.
13376 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13377
58990295
TV
133782020-03-17 Tom de Vries <tdevries@suse.de>
13379
13380 PR gdb/23710
13381 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13382 fields.
13383 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13384 fields.
13385 (process_imported_unit_die): Skip import of c++ CUs.
13386
771dd3a8
TT
133872020-03-16 Tom Tromey <tom@tromey.com>
13388
13389 * p-valprint.c (pascal_object_print_value): Initialize
13390 base_value.
13391
817a7585
AK
133922020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13393 Shahab Vahedi <shahab@synopsys.com>
13394
13395 * Makefile.in: Add arch/arc.o
13396 * configure.tgt: Likewise.
13397 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13398 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13399 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13400 * arc-tdep.h (arc_read_description): Add proto type.
13401 * arch/arc.c: New file.
13402 * arch/arc.h: Likewise.
13403 * features/Makefile: Replace old target descriptions with new.
13404 * features/arc-arcompact.c: Remove.
13405 * features/arc-arcompact.xml: Likewise.
13406 * features/arc-v2.c: Likewise
13407 * features/arc-v2.xml: Likewise
13408 * features/arc/aux-arcompact.xml: New file.
13409 * features/arc/aux-v2.xml: Likewise.
13410 * features/arc/core-arcompact.xml: Likewise.
13411 * features/arc/core-v2.xml: Likewise.
13412 * features/arc/aux-arcompact.c: Generate.
13413 * features/arc/aux-v2.c: Likewise.
13414 * features/arc/core-arcompact.c: Likewise.
13415 * features/arc/core-v2.c: Likewise.
13416 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13417
67430cd0
TT
134182020-03-16 Tom Tromey <tromey@adacore.com>
13419
13420 PR gdb/25663:
13421 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13422 putting value into bcache.
13423
30efb6c7
SM
134242020-03-16 Simon Marchi <simon.marchi@efficios.com>
13425
13426 PR gdb/21500
13427 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13428 to...
13429 (amd64_windows_init_abi_common): ... this. Don't set size of
13430 long type.
13431 (amd64_windows_init_abi): New function.
13432 (amd64_cygwin_init_abi): New function.
13433 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13434 the Cygwin OS ABI.
13435 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13436 comment.
13437
8db52437
SM
134382020-03-16 Simon Marchi <simon.marchi@efficios.com>
13439
13440 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13441 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13442 (pe_import_directory_entry): New struct type.
13443 (is_linked_with_cygwin_dll): New function.
13444 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13445 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13446 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13447
5982a56a
SM
134482020-03-16 Simon Marchi <simon.marchi@efficios.com>
13449
13450 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13451 i386_cygwin_core_osabi_sniffer.
13452
7a1998df
SM
134532020-03-16 Simon Marchi <simon.marchi@efficios.com>
13454
13455 * i386-cygwin-tdep.c: Rename to...
13456 * i386-windows-tdep.c: ... this.
13457 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13458 i386-windows-tdep.c.
13459 * configure.tgt: Likewise.
13460
053205cc
SM
134612020-03-16 Simon Marchi <simon.marchi@efficios.com>
13462
13463 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13464 * osabi.c (gdb_osabi_names): Add "Windows".
13465 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13466 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13467 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13468 i386_cygwin_osabi_sniffer.
13469 (_initialize_i386_cygwin_tdep): Register OS ABI
13470 GDB_OSABI_WINDOWS for i386.
13471 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13472 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13473 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13474 for x86-64.
13475 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13476 when the target matches '*-*-mingw*'.
13477
fe4b2ee6
SM
134782020-03-16 Simon Marchi <simon.marchi@efficios.com>
13479
13480 * defs.h (enum gdb_osabi): Move to...
13481 * osabi.h (enum gdb_osabi): ... here.
13482 * gdbarch.sh: Include osabi.h in gdbarch.h.
13483 * gdbarch.h: Re-generate.
13484
cb9b645d
SM
134852020-03-16 Simon Marchi <simon.marchi@efficios.com>
13486
13487 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13488 function.
13489 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13490
3293bbaf
TT
134912020-03-14 Tom Tromey <tom@tromey.com>
13492
13493 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13494 for C++.
13495 (c_type_print_modifier): Likewise. Add "language" parameter.
13496 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13497 (c_type_print_base_1): Update.
13498 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13499 constants.
13500 * type-stack.c (type_stack::insert): Handle tp_atomic and
13501 tp_restrict.
13502 (type_stack::follow_type_instance_flags): Likewise.
13503 (type_stack::follow_types): Likewise. Merge type-following code.
13504 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13505 (space_identifier, cv_with_space_id)
13506 (const_or_volatile_or_space_identifier_noopt)
13507 (const_or_volatile_or_space_identifier): Remove.
13508 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13509 rules.
13510 (ptr_operator, typebase): Update.
13511 (enum token_flag) <FLAG_C>: New constant.
13512 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13513 "_Atomic".
13514 (lex_one_token): Handle FLAG_C.
13515
154151a6
KR
135162020-03-14 Kamil Rytarowski <n54@gmx.com>
13517
13518 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13519 it to the ptrace call.
13520 * m68k-bsd-nat.c (store_registers): Likewise.
13521
bc107784
KR
135222020-03-14 Kamil Rytarowski <n54@gmx.com>
13523
13524 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13525 gdb_byte *.
13526 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13527 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13528 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13529
01a80117
KR
135302020-03-14 Kamil Rytarowski <n54@gmx.com>
13531
13532 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13533 nbsd_nat_target instead of inf_ptrace_target.
13534 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13535 nbsd_nat_target.
13536
f90280ca
KR
135372020-03-14 Kamil Rytarowski <n54@gmx.com>
13538
13539 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13540 register_t.
13541
6def66f1
KR
135422020-03-14 Kamil Rytarowski <n54@gmx.com>
13543
13544 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13545 it to the ptrace call.
13546 * alpha-bsd-nat.c (store_registers): Likewise.
13547
66eaca97
KR
135482020-03-14 Kamil Rytarowski <n54@gmx.com>
13549
13550 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13551 includes.
13552 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13553 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13554 fill_fpregset): Likewise.
13555
4fed520b
KR
135562020-03-14 Kamil Rytarowski <n54@gmx.com>
13557
13558 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13559 nbsd_nat_target instead of inf_ptrace_target.
13560 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13561 nbsd_nat_target.
13562
2190cf06
KR
135632020-03-14 Kamil Rytarowski <n54@gmx.com>
13564
13565 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13566 register_t.
13567
75c56d3d
KR
135682020-03-14 Kamil Rytarowski <n54@gmx.com>
13569
13570 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13571 it to the ptrace call.
13572 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13573 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13574 * arm-nbsd-nat.c (store_register): Likewise.
13575 * arm-nbsd-nat.c (store_regs): Likewise.
13576 * arm-nbsd-nat.c (store_fp_register): Likewise.
13577 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13578
6018d381
KR
135792020-03-14 Kamil Rytarowski <n54@gmx.com>
13580
13581 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13582 nbsd_nat_target instead of inf_ptrace_target.
13583 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13584 nbsd_nat_target.
13585
013f99f0
KR
135862020-03-14 Kamil Rytarowski <n54@gmx.com>
13587
13588 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13589 it to the ptrace call.
13590 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13591
12753073
KR
135922020-03-14 Kamil Rytarowski <n54@gmx.com>
13593
6227b330
KR
13594 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13595 it to the ptrace call.
13596 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13597
135982020-03-14 Kamil Rytarowski <n54@gmx.com>
13599
13600 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13601 gdb_byte *.
12753073
KR
13602 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13603
d5be5fa4
KR
136042020-03-14 Kamil Rytarowski <n54@gmx.com>
13605
13606 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13607 instead of inf_ptrace_target.
13608 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13609 nbsd_nat_target.
13610
8110f842
KR
136112020-03-14 Kamil Rytarowski <n54@gmx.com>
13612
13613 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13614 register_t.
13615
52feded7
KR
136162020-03-14 Kamil Rytarowski <n54@gmx.com>
13617
13618 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13619 register_t.
13620
25567eee
KR
136212020-03-14 Kamil Rytarowski <n54@gmx.com>
13622
13623 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13624 register_t.
13625
426a9c18
TT
136262020-03-13 Tom Tromey <tom@tromey.com>
13627
13628 * value.h (val_print): Don't declare.
13629 * valprint.h (val_print_array_elements)
13630 (val_print_scalar_formatted, generic_val_print): Don't declare.
13631 * valprint.c (generic_val_print_array): Take a struct value.
13632 (generic_val_print_ptr, generic_val_print_memberptr)
13633 (generic_val_print_bool, generic_val_print_int)
13634 (generic_val_print_char, generic_val_print_complex)
13635 (generic_val_print): Remove.
13636 (generic_value_print): Update.
13637 (do_val_print): Remove unused parameters. Don't call
13638 la_val_print.
13639 (val_print): Remove.
13640 (common_val_print): Update. Don't call value_check_printable.
13641 (val_print_scalar_formatted, val_print_array_elements): Remove.
13642 * rust-lang.c (rust_val_print): Remove.
13643 (rust_language_defn): Update.
13644 * p-valprint.c (pascal_val_print): Remove.
13645 (pascal_value_print_inner): Update.
13646 (pascal_object_print_val_fields, pascal_object_print_val):
13647 Remove.
13648 (pascal_object_print_static_field): Update.
13649 * p-lang.h (pascal_val_print): Don't declare.
13650 * p-lang.c (pascal_language_defn): Update.
13651 * opencl-lang.c (opencl_language_defn): Update.
13652 * objc-lang.c (objc_language_defn): Update.
13653 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13654 * m2-lang.h (m2_val_print): Don't declare.
13655 * m2-lang.c (m2_language_defn): Update.
13656 * language.h (struct language_defn) <la_val_print>: Remove.
13657 * language.c (unk_lang_value_print_inner): Rename. Change
13658 argument types.
13659 (unknown_language_defn, auto_language_defn): Update.
13660 * go-valprint.c (go_val_print): Remove.
13661 * go-lang.h (go_val_print): Don't declare.
13662 * go-lang.c (go_language_defn): Update.
13663 * f-valprint.c (f_val_print): Remove.
13664 * f-lang.h (f_value_print): Don't declare.
13665 * f-lang.c (f_language_defn): Update.
13666 * d-valprint.c (d_val_print): Remove.
13667 * d-lang.h (d_value_print): Don't declare.
13668 * d-lang.c (d_language_defn): Update.
13669 * cp-valprint.c (cp_print_value_fields)
13670 (cp_print_value_fields_rtti, cp_print_value): Remove.
13671 (cp_print_static_field): Update.
13672 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13673 (c_val_print_struct, c_val_print_union, c_val_print_int)
13674 (c_val_print_memberptr, c_val_print): Remove.
13675 * c-lang.h (c_val_print_array, cp_print_value_fields)
13676 (cp_print_value_fields_rtti): Don't declare.
13677 * c-lang.c (c_language_defn, cplus_language_defn)
13678 (asm_language_defn, minimal_language_defn): Update.
13679 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13680 (ada_val_print_enum): Take a struct value.
13681 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13682 (ada_val_print): Remove.
13683 (ada_value_print_1): Update.
13684 (printable_val_type): Remove.
13685 * ada-lang.h (ada_val_print): Don't declare.
13686 * ada-lang.c (ada_language_defn): Update.
13687
42331a1e
TT
136882020-03-13 Tom Tromey <tom@tromey.com>
13689
13690 * valprint.c (do_val_print): Update.
13691 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13692 a struct value.
13693 (value_to_value_object_no_release): Declare.
13694 * python/py-value.c (value_to_value_object_no_release): New
13695 function.
13696 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13697 struct value.
13698 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13699 function.
13700 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13701 a struct value.
13702 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13703 Declare.
13704 (gdbscm_apply_val_pretty_printer): Take a struct value.
13705 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13706 value.
13707 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13708 value.
13709 * extension-priv.h (struct extension_language_ops)
13710 <apply_val_pretty_printer>: Take a struct value.
13711 * cp-valprint.c (cp_print_value): Create a struct value.
13712 (cp_print_value): Update.
13713
3a916a97
TT
137142020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * ada-valprint.c (print_field_values): Call common_val_print.
13717
b59eac37
TT
137182020-03-13 Tom Tromey <tom@tromey.com>
13719
13720 * ada-valprint.c (val_print_packed_array_elements): Remove
13721 bitoffset and val parameters. Call common_val_print.
13722 (ada_val_print_string): Remove offset, address, and original_value
13723 parameters.
13724 (ada_val_print_array): Update.
13725 (ada_value_print_array): New function.
13726 (ada_value_print_1): Call it.
13727
03371129
TT
137282020-03-13 Tom Tromey <tom@tromey.com>
13729
13730 * ada-valprint.c (ada_value_print): Use common_val_print.
13731
2e088f8b
TT
137322020-03-13 Tom Tromey <tom@tromey.com>
13733
13734 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13735
39ef85a8
TT
137362020-03-13 Tom Tromey <tom@tromey.com>
13737
13738 * ada-valprint.c (ada_value_print_num): New function.
13739 (ada_value_print_1): Use it.
13740
b9fa6e07
TT
137412020-03-13 Tom Tromey <tom@tromey.com>
13742
13743 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13744
416595d6
TT
137452020-03-13 Tom Tromey <tom@tromey.com>
13746
13747 * ada-valprint.c (ada_value_print_ptr): New function.
13748 (ada_value_print_1): Use it.
13749
5b5e15ec
TT
137502020-03-13 Tom Tromey <tom@tromey.com>
13751
13752 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13753 call common_val_print.
13754 (ada_val_print_1): Update.
13755 (ada_value_print_1): New function.
13756 (ada_value_print_inner): Rewrite.
13757
fbf54e75
TT
137582020-03-13 Tom Tromey <tom@tromey.com>
13759
13760 * cp-valprint.c (cp_print_value_fields): Update.
13761 (cp_print_value): New function.
13762
64b653ca
TT
137632020-03-13 Tom Tromey <tom@tromey.com>
13764
13765 * m2-valprint.c (m2_value_print_inner): Use
13766 cp_print_value_fields.
13767 * cp-valprint.c (cp_print_value_fields): New function.
13768 * c-valprint.c (c_value_print_struct): New function.
13769 (c_value_print_inner): Use c_value_print_struct.
13770 * c-lang.h (cp_print_value_fields): Declare.
13771
6999f067
TT
137722020-03-13 Tom Tromey <tom@tromey.com>
13773
13774 * c-valprint.c (c_value_print_array): New function.
13775 (c_value_print_inner): Use it.
13776
ce80b8bd
TT
137772020-03-13 Tom Tromey <tom@tromey.com>
13778
13779 * c-valprint.c (c_value_print_memberptr): New function.
13780 (c_value_print_inner): Use it.
13781
2faac269
TT
137822020-03-13 Tom Tromey <tom@tromey.com>
13783
13784 * c-valprint.c (c_value_print_int): New function.
13785 (c_value_print_inner): Use it.
13786
da3e2c29
TT
137872020-03-13 Tom Tromey <tom@tromey.com>
13788
13789 * c-valprint.c (c_value_print_ptr): New function.
13790 (c_value_print_inner): Use it.
13791
50836231
TT
137922020-03-13 Tom Tromey <tom@tromey.com>
13793
13794 * c-valprint.c (c_value_print_inner): Rewrite.
13795
4f412b6e
TT
137962020-03-13 Tom Tromey <tom@tromey.com>
13797
13798 * valprint.c (generic_value_print_complex): New function.
13799 (generic_value_print): Use it.
13800
f5354008
TT
138012020-03-13 Tom Tromey <tom@tromey.com>
13802
13803 * valprint.c (generic_val_print_float): Don't call
13804 val_print_scalar_formatted.
13805 (generic_val_print, generic_value_print): Update.
13806
3eec3b05
TT
138072020-03-13 Tom Tromey <tom@tromey.com>
13808
13809 * valprint.c (generic_value_print_char): New function
13810 (generic_value_print): Use it.
13811
fdddfccb
TT
138122020-03-13 Tom Tromey <tom@tromey.com>
13813
13814 * valprint.c (generic_value_print_int): New function.
13815 (generic_value_print): Use it.
13816
6dde7521
TT
138172020-03-13 Tom Tromey <tom@tromey.com>
13818
13819 * valprint.c (generic_value_print_bool): New function.
13820 (generic_value_print): Use it.
13821
4112d2e6
TT
138222020-03-13 Tom Tromey <tom@tromey.com>
13823
13824 * valprint.c (generic_val_print_func): Simplify.
13825 (generic_val_print, generic_value_print): Update.
13826
65786af6
TT
138272020-03-13 Tom Tromey <tom@tromey.com>
13828
13829 * valprint.c (generic_val_print_flags): Remove.
13830 (generic_val_print, generic_value_print): Update.
13831 (val_print_type_code_flags): Add original_value parameter.
13832
40f3ce18
TT
138332020-03-13 Tom Tromey <tom@tromey.com>
13834
13835 * valprint.c (generic_val_print): Update.
13836 (generic_value_print): Update.
13837 * valprint.c (generic_val_print_enum): Don't call
13838 val_print_scalar_formatted.
13839
2a5b130b
TT
138402020-03-13 Tom Tromey <tom@tromey.com>
13841
13842 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13843 * valprint.c (generic_value_print_ptr): New function.
13844
abc66ce9
TT
138452020-03-13 Tom Tromey <tom@tromey.com>
13846
13847 * valprint.c (generic_value_print): Rewrite.
13848
07a32858
TT
138492020-03-13 Tom Tromey <tom@tromey.com>
13850
13851 * p-valprint.c (pascal_object_print_value_fields)
13852 (pascal_object_print_value): New functions.
13853
64d64d3a
TT
138542020-03-13 Tom Tromey <tom@tromey.com>
13855
13856 * p-valprint.c (pascal_value_print_inner): Rewrite.
13857
6a95a1f5
TT
138582020-03-13 Tom Tromey <tom@tromey.com>
13859
13860 * f-valprint.c (f_value_print_innner): Rewrite.
13861
59fcdac6
TT
138622020-03-13 Tom Tromey <tom@tromey.com>
13863
13864 * m2-valprint.c (m2_print_unbounded_array): New overload.
13865 (m2_print_unbounded_array): Update.
13866 (m2_print_array_contents): Take a struct value.
13867 (m2_value_print_inner): Rewrite.
13868
d133c3e1
TT
138692020-03-13 Tom Tromey <tom@tromey.com>
13870
13871 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13872 (d_value_print_inner): New function.
13873 * d-lang.h (d_value_print_inner): Declare.
13874 * d-lang.c (d_language_defn): Use d_value_print_inner.
13875
23b0f06b
TT
138762020-03-13 Tom Tromey <tom@tromey.com>
13877
13878 * go-valprint.c (go_value_print_inner): New function.
13879 * go-lang.h (go_value_print_inner): Declare.
13880 * go-lang.c (go_language_defn): Use go_value_print_inner.
13881
5f56f7cb
TT
138822020-03-13 Tom Tromey <tom@tromey.com>
13883
13884 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13885 API.
13886 (rust_val_print): Rewrite.
13887 (rust_value_print_inner): New function, from rust_val_print.
13888 (rust_language_defn): Use rust_value_print_inner.
13889
26792ee0
TT
138902020-03-13 Tom Tromey <tom@tromey.com>
13891
13892 * ada-valprint.c (ada_value_print_inner): New function.
13893 * ada-lang.h (ada_value_print_inner): Declare.
13894 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13895
24051bbe
TT
138962020-03-13 Tom Tromey <tom@tromey.com>
13897
13898 * f-valprint.c (f_value_print_innner): New function.
13899 * f-lang.h (f_value_print_innner): Declare.
13900 * f-lang.c (f_language_defn): Use f_value_print_innner.
13901
c0941be6
TT
139022020-03-13 Tom Tromey <tom@tromey.com>
13903
13904 * p-valprint.c (pascal_value_print_inner): New function.
13905 * p-lang.h (pascal_value_print_inner): Declare.
13906 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13907
62c4663d
TT
139082020-03-13 Tom Tromey <tom@tromey.com>
13909
13910 * m2-valprint.c (m2_value_print_inner): New function.
13911 * m2-lang.h (m2_value_print_inner): Declare.
13912 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13913
62182190
TT
139142020-03-13 Tom Tromey <tom@tromey.com>
13915
13916 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13917 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13918 * c-valprint.c (c_value_print_inner): New function.
13919 * c-lang.h (c_value_print_inner): Declare.
13920 * c-lang.c (c_language_defn, cplus_language_defn)
13921 (asm_language_defn, minimal_language_defn): Use
13922 c_value_print_inner.
13923
1e592a8a
TT
139242020-03-13 Tom Tromey <tom@tromey.com>
13925
13926 * p-valprint.c (pascal_object_print_value_fields): Now static.
13927 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13928
7fe471e9
TT
139292020-03-13 Tom Tromey <tom@tromey.com>
13930
13931 * c-valprint.c (c_val_print_array): Simplify.
13932
d121c6ce
TT
139332020-03-13 Tom Tromey <tom@tromey.com>
13934
13935 * valprint.c (value_print_array_elements): New function.
13936 * valprint.h (value_print_array_elements): Declare.
13937
4dba70ee
TT
139382020-03-13 Tom Tromey <tom@tromey.com>
13939
13940 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13941 * mips-tdep.c (mips_print_register): Use
13942 value_print_scalar_formatted.
13943
4f9ae810
TT
139442020-03-13 Tom Tromey <tom@tromey.com>
13945
13946 * valprint.h (value_print_scalar_formatted): Declare.
13947 * valprint.c (value_print_scalar_formatted): New function.
13948
156bfec9
TT
139492020-03-13 Tom Tromey <tom@tromey.com>
13950
13951 * valprint.h (generic_value_print): Declare.
13952 * valprint.c (generic_value_print): New function.
13953
2b4e573d
TT
139542020-03-13 Tom Tromey <tom@tromey.com>
13955
13956 * valprint.c (do_val_print): Call la_value_print_inner, if
13957 available.
13958 * rust-lang.c (rust_language_defn): Update.
13959 * p-lang.c (pascal_language_defn): Update.
13960 * opencl-lang.c (opencl_language_defn): Update.
13961 * objc-lang.c (objc_language_defn): Update.
13962 * m2-lang.c (m2_language_defn): Update.
13963 * language.h (struct language_defn) <la_value_print_inner>: New
13964 member.
13965 * language.c (unknown_language_defn, auto_language_defn): Update.
13966 * go-lang.c (go_language_defn): Update.
13967 * f-lang.c (f_language_defn): Update.
13968 * d-lang.c (d_language_defn): Update.
13969 * c-lang.c (c_language_defn, cplus_language_defn)
13970 (asm_language_defn, minimal_language_defn): Update.
13971 * ada-lang.c (ada_language_defn): Update.
13972
a1f6a07c
TT
139732020-03-13 Tom Tromey <tom@tromey.com>
13974
13975 * c-valprint.c (c_value_print): Use common_val_print.
13976
410cf315
TT
139772020-03-13 Tom Tromey <tom@tromey.com>
13978
13979 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13980
72a45c93
TT
139812020-03-13 Tom Tromey <tom@tromey.com>
13982
13983 * f-valprint.c (f77_print_array_1, f_val_print): Use
13984 common_val_print.
13985
040f66bd
TT
139862020-03-13 Tom Tromey <tom@tromey.com>
13987
13988 * riscv-tdep.c (riscv_print_one_register_info): Use
13989 common_val_print.
13990
a6e05a6c
TT
139912020-03-13 Tom Tromey <tom@tromey.com>
13992
13993 * mi/mi-main.c (output_register): Use common_val_print.
13994
3444c526
TT
139952020-03-13 Tom Tromey <tom@tromey.com>
13996
13997 * infcmd.c (default_print_one_register_info): Use
13998 common_val_print.
13999
c2a44efe
TT
140002020-03-13 Tom Tromey <tom@tromey.com>
14001
14002 * valprint.h (common_val_print_checked): Declare.
14003 * valprint.c (common_val_print_checked): New function.
14004 * stack.c (print_frame_arg): Use common_val_print_checked.
14005
b0c26e99
TT
140062020-03-13 Tom Tromey <tom@tromey.com>
14007
14008 * valprint.c (do_val_print): New function, from val_print.
14009 (val_print): Use do_val_print.
14010 (common_val_print): Use do_val_print.
14011
ce3acbe9
TT
140122020-03-13 Tom Tromey <tom@tromey.com>
14013
14014 * valprint.c (value_print): Use scoped_value_mark.
14015
96c7f873
TV
140162020-03-13 Tom de Vries <tdevries@suse.de>
14017
14018 PR symtab/25646
14019 * psymtab.c (partial_symtab::partial_symtab): Don't set
14020 globals_offset and statics_offset. Push element onto
14021 current_global_psymbols and current_static_psymbols stacks.
14022 (concat): New function.
14023 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14024 element from current_global_psymbols and current_static_psymbols
14025 stacks. Concat popped elements to global_psymbols and
14026 static_symbols.
14027 (add_psymbol_to_list): Use current_global_psymbols and
14028 current_static_psymbols stacks.
14029 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14030 current_static_psymbols fields.
14031
6ba0a321
CB
140322020-03-12 Christian Biesinger <cbiesinger@google.com>
14033
14034 * corelow.c (sniff_core_bfd): Remove.
14035 (class core_target) <m_core_vec>: Remove.
14036 (core_target::core_target): Update.
14037 (core_file_fns): Remove.
14038 (deprecated_add_core_fns): Remove.
14039 (default_core_sniffer): Remove.
14040 (sniff_core_bfd): Remove.
14041 (default_check_format): Remove.
14042 (gdb_check_format): Remove.
14043 (core_target_open): Update.
14044 (core_target::get_core_register_section): Update.
14045 (get_core_registers_cb): Update.
14046 (core_target::fetch_registers): Update.
14047 * gdbcore.h (struct core_fns): Remove.
14048 (deprecated_add_core_fns): Remove.
14049 (default_core_sniffer): Remove.
14050 (default_check_format): Remove.
14051
227031b2
TT
140522020-03-12 Tom Tromey <tom@tromey.com>
14053
14054 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14055 CORE_ADDR.
14056 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14057
53807e9f
TT
140582020-03-12 Tom Tromey <tom@tromey.com>
14059
14060 * remote.c (remote_target::download_tracepoint)
14061 (remote_target::enable_tracepoint)
14062 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14063 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14064 sprintf_vma.
14065
64f25102
TT
140662020-03-12 Tom Tromey <tom@tromey.com>
14067
14068 * symfile-mem.c: Update CORE_ADDR size assert.
14069
272cd5a3
SM
140702020-03-12 Simon Marchi <simon.marchi@efficios.com>
14071
14072 * selftest.m4: Move to gdbsupport/.
14073 * acinclude.m4: Update path to selftest.m4.
14074
74cd3f9d
SM
140752020-03-12 Simon Marchi <simon.marchi@efficios.com>
14076
14077 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14078 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14079 gdbarch-selfselftests.c and selftest-arch.c.
14080 (SUBDIR_UNITTESTS_OBS): Rename to...
14081 (SELFTESTS_OBS): ... this.
14082 (COMMON_SFILES): Remove disasm-selftests.c and
14083 gdbarch-selftests.c.
14084 * configure.ac: Don't add selftest-arch.{c,o} to
14085 CONFIG_{SRCS,OBS}.
14086 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14087 preprocessor conditions.
14088
db6878ac
SM
140892020-03-12 Simon Marchi <simon.marchi@efficios.com>
14090
14091 * configure.ac: Don't source bfd/development.sh.
14092 * selftest.m4: Modify comment.
14093 * configure: Re-generate.
14094
4d696a5c
SM
140952020-03-12 Simon Marchi <simon.marchi@efficios.com>
14096
14097 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14098 not "true" or "false".
14099 * configure: Re-generate.
14100
8dd8e1c7
CB
141012020-03-12 Christian Biesinger <cbiesinger@google.com>
14102
14103 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14104 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14105 renamed to arm_nbsd_supply_gregset.
14106 (fetch_register): Update to call arm_nbsd_supply_gregset.
14107 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14108 (arm_netbsd_nat_target::fetch_registers): Update.
14109 (fetch_elfcore_registers): Removed.
14110 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14111 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14112 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14113 not require NetBSD system headers.
14114 (arm_nbsd_regset): New struct.
14115 (arm_nbsd_iterate_over_regset_sections): New function.
14116 (arm_netbsd_init_abi_common): Updated to call
14117 set_gdbarch_iterate_over_regset_sections.
14118 * arm-nbsd-tdep.h: New file.
14119
dd69bf7a
KB
141202020-03-11 Kevin Buettner <kevinb@redhat.com>
14121
14122 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14123 recursion.
14124
a0761e34
SM
141252020-03-11 Simon Marchi <simon.marchi@efficios.com>
14126
14127 * configure: Re-generate.
14128
e7a82140
TT
141292020-03-11 Tom Tromey <tromey@adacore.com>
14130
14131 * ada-typeprint.c (print_choices): Fix comment.
14132
dcc050c8
AB
141332020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14134
14135 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14136 previous item in the list, when the list has no items.
14137
1c33af77
TV
141382020-03-11 Tom de Vries <tdevries@suse.de>
14139
14140 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14141 PROP_LOCLIST handling code.
14142
8c95582d
AB
141432020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14144
14145 * buildsym-legacy.c (record_line): Pass extra parameter to
14146 record_line.
14147 * buildsym.c (buildsym_compunit::record_line): Take an extra
14148 parameter, reduce duplication in the line table, and record the
14149 is_stmt flag in the line table.
14150 * buildsym.h (buildsym_compunit::record_line): Add extra
14151 parameter.
14152 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14153 non-statement lines.
14154 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14155 this to the symtab builder.
14156 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14157 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14158 through to dwarf_record_line_1.
14159 * infrun.c (process_event_stop_test): When stepping, don't stop at
14160 a non-statement instruction, and only refresh the step info when
14161 we land in the middle of a line's range. Also add an extra
14162 comment.
14163 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14164 field.
14165 * record-btrace.c (btrace_find_line_range): Only record lines
14166 marked as is-statement.
14167 * stack.c (frame_show_address): Show the frame address if we are
14168 in a non-statement sal.
14169 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14170 (maintenance_print_one_line_table): Print a header for the is_stmt
14171 column, and include is_stmt information in the output.
14172 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14173 preference to non-statements.
14174 (find_pcs_for_symtab_line): Prefer is-statement entries.
14175 (find_line_common): Likewise.
14176 * symtab.h (struct linetable_entry): Add is_stmt field.
14177 (struct symtab_and_line): Likewise.
14178 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14179 arranging the line table.
14180
e4003a34
TV
141812020-03-07 Tom de Vries <tdevries@suse.de>
14182
14183 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14184 DIE.
14185
e8932576
TT
141862020-03-07 Tom Tromey <tom@tromey.com>
14187
14188 * valops.c (value_literal_complex): Remove obsolete comment.
14189 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14190 comment.
14191
29734269
SM
141922020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14193
14194 * infrun.h: Forward-declare thread_info.
14195 (set_step_info): Add thread_info parameter, add doc.
14196 * infrun.c (set_step_info): Add thread_info parameter, move doc
14197 to header.
14198 * infrun.c (process_event_stop_test): Pass thread to
14199 set_step_info call.
14200 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14201 set_step_info.
14202 (prepare_one_step): Add thread_info parameter, pass it to
14203 set_step_frame and prepare_one_step (recursive) call.
14204 (step_1): Pass thread to prepare_one_step call.
14205 (step_command_fsm::should_stop): Pass thread to
14206 prepare_one_step.
14207 (until_next_fsm): Pass thread to set_step_frame call.
14208 (finish_command): Pass thread to set_step_info call.
14209
b7d64b29
HD
142102020-03-06 Hannes Domani <ssbssa@yahoo.de>
14211
14212 * windows-tdep.c (windows_solib_create_inferior_hook):
14213 Check if inferior is running.
14214
09f2921c
TV
142152020-03-06 Tom de Vries <tdevries@suse.de>
14216
14217 * NEWS: Fix "the the".
14218 * ctfread.c: Same.
14219
fd760e79
TV
142202020-03-06 Tom de Vries <tdevries@suse.de>
14221
14222 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14223
20ea4a60
AB
142242020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14225
14226 * .dir-locals.el: Add a comment referencing the other copies of
14227 this file.
14228
0afbabf0
JB
142292020-03-05 John Baldwin <jhb@FreeBSD.org>
14230
14231 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14232 psargs.
14233
842806cb
TBA
142342020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14235
14236 * .gitattributes: New file.
14237
be1e3d3e
TT
142382020-03-04 Tom Tromey <tom@tromey.com>
14239
14240 * symmisc.c (print_symbol_bcache_statistics)
14241 (print_objfile_statistics): Update.
14242 * symfile.c (allocate_symtab): Use intern.
14243 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14244 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14245 macro_cache>: Remove.
14246 <string_cache>: New member.
14247 (struct objfile) <intern>: New methods.
14248 * elfread.c (elf_symtab_read): Use intern.
14249 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14250 (dwarf2_compute_name, dwarf2_physname)
14251 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14252 names.
14253 (guess_partial_die_structure_name): Update.
14254 (partial_die_info::fixup): Intern name.
14255 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14256 name.
14257 (dwarf2_name): Intern name. Update.
14258 * buildsym.c (buildsym_compunit::get_macro_table): Use
14259 string_cache.
14260
4e7625fd
TT
142612020-03-04 Tom Tromey <tom@tromey.com>
14262
14263 * jit.c (bfd_open_from_target_memory): Make "target" const.
14264 * corefile.c (gnutarget): Now const.
14265 * gdbcore.h (gnutarget): Now const.
14266
46f9f931
HD
142672020-03-04 Hannes Domani <ssbssa@yahoo.de>
14268
14269 * NEWS: Mention support for WOW64 processes.
14270 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14271 (amd64_windows_segment_register_p): Remove static.
14272 (_initialize_amd64_windows_nat): Update.
14273 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14274 * i386-windows-nat.c (context_offset): Update.
14275 (i386_mappings): Rename and remove static.
14276 (i386_windows_segment_register_p): Remove static.
14277 (_initialize_i386_windows_nat): Update.
14278 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14279 (STATUS_WX86_SINGLE_STEP): New macro.
14280 (EnumProcessModulesEx): New macro.
14281 (Wow64SuspendThread): New macro.
14282 (Wow64GetThreadContext): New macro.
14283 (Wow64SetThreadContext): New macro.
14284 (Wow64GetThreadSelectorEntry): New macro.
14285 (windows_set_context_register_offsets): Add static.
14286 (windows_set_segment_register_p): Likewise.
14287 (windows_add_thread): Adapt for WOW64 processes.
14288 (windows_fetch_one_register): Likewise.
14289 (windows_nat_target::fetch_registers): Likewise.
14290 (windows_store_one_register): Likewise.
14291 (display_selector): Likewise.
14292 (display_selectors): Likewise.
14293 (handle_exception): Likewise.
14294 (windows_continue): Likewise.
14295 (windows_nat_target::resume): Likewise.
14296 (windows_add_all_dlls): Likewise.
14297 (do_initial_windows_stuff): Likewise.
14298 (windows_nat_target::attach): Likewise.
14299 (windows_get_exec_module_filename): Likewise.
14300 (windows_nat_target::create_inferior): Likewise.
14301 (windows_xfer_siginfo): Likewise.
14302 (_initialize_loadable): Initialize Wow64SuspendThread,
14303 Wow64GetThreadContext, Wow64SetThreadContext,
14304 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14305 * windows-nat.h (windows_set_context_register_offsets):
14306 Remove declaration.
14307 (windows_set_segment_register_p): Likewise.
14308 (i386_windows_segment_register_p): Add declaration.
14309 (amd64_windows_segment_register_p): Likewise.
14310
440cf44e
LM
143112020-03-04 Luis Machado <luis.machado@linaro.org>
14312
14313 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14314 in "info registers" for AArch64/ARM.
14315
14316 The change caused "info registers" to not print GPR's.
14317
14318 gdb/ChangeLog:
14319
14320 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14321
14322 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14323 when reg->group is empty and reggroup is not.
14324
1009d92f
TT
143252020-03-03 Tom Tromey <tromey@adacore.com>
14326
14327 * dwarf2/frame.c (struct dwarf2_frame_cache)
14328 <checked_tailcall_bottom, entry_cfa_sp_offset,
14329 entry_cfa_sp_offset_p>: Remove members.
14330 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14331 (dwarf2_frame_prev_register): Don't call
14332 dwarf2_tailcall_sniffer_first.
14333 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14334 * frame-unwind.c (add_unwinder): New fuction.
14335 (frame_unwind_init): Use it. Add tailcall unwinder.
14336
5e5d66b6
AB
143372020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14338 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14339
14340 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14341 value should be printed as true.
14342
584cf46d
HD
143432020-03-03 Hannes Domani <ssbssa@yahoo.de>
14344
14345 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14346 (windows_init_abi): Set and use windows_so_ops.
14347
7b973adc
SDJ
143482020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14349
14350 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14351 when verifying if dealing with a convenience variable.
14352
bb7b70ab
LM
143532020-03-03 Luis Machado <luis.machado@linaro.org>
14354
14355 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14356
9822cb57
SM
143572020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14358
14359 * infrun.c (gdbarch_supports_displaced_stepping): New.
14360 (use_displaced_stepping): Break up conditions in smaller pieces.
14361 Use gdbarch_supports_displaced_stepping.
14362 (displaced_step_prepare_throw): Use
14363 gdbarch_supports_displaced_stepping.
14364
63e163f2
AB
143652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14366
14367 * NEWS: Mention new behaviour of the history filename.
14368 * top.c (write_history_p): Add comment.
14369 (show_write_history_p): Add header comment, give a different
14370 message when history writing is on, but the history filename is
14371 empty.
14372 (history_filename): Add comment.
14373 (history_filename_empty): New function.
14374 (show_history_filename): Add header comment, give a different
14375 message when the filename is empty.
14376 (init_history): Compare history_filename against nullptr, and only
14377 read history if the filename is not empty.
14378 (set_history_filename): Add header comment, and only make
14379 non-empty filenames absolute.
14380 (init_main): Make the filename argument to 'set history filename'
14381 optional.
14382
81b86b97
CB
143832020-03-02 Christian Biesinger <cbiesinger@google.com>
14384
14385 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14386 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14387 (fetch_fp_register): Update.
14388 (fetch_fp_regs): Update.
14389 (store_fp_register): Update.
14390 (store_fp_regs): Update.
14391 (arm_netbsd_nat_target::read_description): New function.
14392 (fetch_elfcore_registers): Update.
14393
24ed6739
AB
143942020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14395
14396 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14397 general_thread if the stop reply is missing a thread-id.
14398 (remote_target::process_stop_reply): Use the first non-exited
14399 thread if the target didn't pass a thread-id.
14400 * infrun.c (do_target_wait): Move call to
14401 switch_to_inferior_no_thread to ....
14402 (do_target_wait_1): ... here.
14403
a84bb2a0
JT
144042020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14405
14406 * debuginfod-support.c: Include defs.h first.
14407
658dadf0
TV
144082020-02-28 Tom de Vries <tdevries@suse.de>
14409
14410 * symfile.c (set_initial_language): Use default language for lookup.
14411
4ebe4877
SM
144122020-02-28 Simon Marchi <simon.marchi@efficios.com>
14413
14414 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14415 reader variable, pass `this` to read_cutu_die_from_dwo.
14416
e5da1139
AM
144172020-02-27 Aaron Merey <amerey@redhat.com>
14418
14419 * source.c (open_source_file): Check for nullptr when computing
14420 srcpath.
14421
317f7127
TT
144222020-02-27 Tom Tromey <tromey@adacore.com>
14423
14424 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14425 member.
14426 (dwarf2_add_field): Don't update nfields.
14427 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14428
3104d9ee
AB
144292020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14430
14431 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14432 abs.
14433
b83470bf
TT
144342020-02-26 Tom Tromey <tom@tromey.com>
14435
14436 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14437 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14438 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14439 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14440 per_cu_data.
14441
edfe0a0c
TT
144422020-02-26 Tom Tromey <tom@tromey.com>
14443
14444 * dwarf2/index-write.c (psym_index_map): Change type.
14445 (add_address_entry_worker, write_one_signatured_type)
14446 (recursively_count_psymbols, recursively_write_psymbols)
14447 (class debug_names, psyms_seen_size, write_gdbindex)
14448 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14449
0d79cdc4
AM
144502020-02-26 Aaron Merey <amerey@redhat.com>
14451
14452 * Makefile.in: Handle optional debuginfod support.
14453 * NEWS: Update.
14454 * README: Add --with-debuginfod summary.
14455 * config.in: Regenerate.
14456 * configure: Regenerate.
14457 * configure.ac: Handle optional debuginfod support.
14458 * debuginfod-support.c: debuginfod helper functions.
14459 * debuginfod-support.h: Ditto.
14460 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14461 summary.
14462 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14463 when a dwz file cannot be found.
14464 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14465 debuginfo file cannot be found.
14466 * source.c (open_source_file): Query debuginfod servers when a
14467 source file cannot be found.
14468 * top.c (print_gdb_configuration): Include
14469 --{with,without}-debuginfod in the output.
14470
b65ce565
JG
144712020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14472
14473 * thread.c (thr_try_catch_cmd): Print thread name.
14474
d4c9a4f8
SM
144752020-02-26 Simon Marchi <simon.marchi@efficios.com>
14476
14477 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14478 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14479 dwarf2_fetch_die_type_sect_off): Move to...
14480 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14481 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14482 dwarf2_fetch_die_type_sect_off): ... here.
14483 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14484 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14485 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14486
0dce4280
TV
144872020-02-26 Tom de Vries <tdevries@suse.de>
14488
14489 PR gdb/25603
14490 * symfile.c (set_initial_language): Exit-early if
14491 language_mode == language_mode_manual.
14492
450a1bfc
SM
144932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14494
14495 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14496 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14497 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14498
9e80cfa1
AB
144992020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14500
14501 * gdbtypes.c (create_array_type_with_stride): Handle negative
14502 array strides.
14503 * valarith.c (value_subscripted_rvalue): Likewise.
14504
09624f1f
LM
145052020-02-25 Luis Machado <luis.machado@linaro.org>
14506
14507 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14508
8cb5117c
SM
145092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14510
14511 * loc.h (dwarf2_get_die_type): Move to...
14512 * read.h (dwarf2_get_die_type): ... here.
14513 * read.c (dwarf2_get_die_type): Move doc to header.
14514
c325c44e
JB
145152020-02-25 Joel Brobecker <brobecker@adacore.com>
14516
14517 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14518 'gnulib/Makefile.in' to the list.
14519
4ac93832
TT
145202020-02-24 Tom Tromey <tom@tromey.com>
14521
14522 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14523 Remove.
14524 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14525 XOBNEWVEC.
14526
197400e8
TT
145272020-02-24 Tom Tromey <tom@tromey.com>
14528
14529 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14530 New method.
14531 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14532 (dw2_do_instantiate_symtab, dw2_get_file_names)
14533 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14534
76935768
TT
145352020-02-24 Tom Tromey <tom@tromey.com>
14536
14537 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14538 make_scoped_restore.
14539 (dwarf2_psymtab::read_symtab): Don't clear
14540 reading_partial_symbols.
14541
a88ef40d
TV
145422020-02-24 Tom de Vries <tdevries@suse.de>
14543
14544 PR gdb/25592
14545 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14546
c9af6521
TV
145472020-02-24 Tom de Vries <tdevries@suse.de>
14548
14549 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14550 commands layout next/prev/regs.
14551
5707a07a
TT
145522020-02-22 Tom Tromey <tom@tromey.com>
14553
14554 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14555 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14556
3b0fb49e
TT
145572020-02-22 Tom Tromey <tom@tromey.com>
14558
14559 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14560
283be8bf
TT
145612020-02-22 Tom Tromey <tom@tromey.com>
14562
14563 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14564 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14565 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14566 * tui/tui.c (_initialize_tui): Add usage text.
14567
ca793b96
TT
145682020-02-22 Tom Tromey <tom@tromey.com>
14569
14570 * tui/tui-win.c (tui_set_focus_command)
14571 (tui_set_win_height_command): Use error_no_arg.
14572 (_initialize_tui_win): Update help text.
14573 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14574
432b5c40
TT
145752020-02-22 Tom Tromey <tom@tromey.com>
14576
14577 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14578 * tui/tui-disasm.h (struct tui_disasm_window)
14579 <display_start_addr>: Declare.
14580 * tui/tui-source.h (struct tui_source_window)
14581 <display_start_addr>: Declare.
14582 * tui/tui-winsource.h (struct tui_source_window_base)
14583 <show_source_line, display_start_addr>: New methods.
14584 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14585 Rename and move to protected section.
14586 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14587 (tui_source_window_base::do_erase_source_content): Update.
14588 (tui_source_window_base::show_source_line): Now a method.
14589 (tui_source_window_base::show_source_content)
14590 (tui_source_window_base::tui_source_window_base)
14591 (tui_source_window_base::rerender)
14592 (tui_source_window_base::refill)
14593 (tui_source_window_base::do_scroll_horizontal)
14594 (tui_source_window_base::set_is_exec_point_at)
14595 (tui_source_window_base::update_breakpoint_info)
14596 (tui_source_window_base::update_exec_info): Update.
14597 * tui/tui-source.c (tui_source_window::set_contents)
14598 (tui_source_window::showing_source_p)
14599 (tui_source_window::do_scroll_vertical)
14600 (tui_source_window::location_matches_p)
14601 (tui_source_window::line_is_displayed): Update.
14602 (tui_source_window::display_start_addr): New method.
14603 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14604 (tui_disasm_window::do_scroll_vertical)
14605 (tui_disasm_window::location_matches_p): Update.
14606 (tui_disasm_window::display_start_addr): New method.
14607
01b1af32
TT
146082020-02-22 Tom Tromey <tom@tromey.com>
14609
14610 * NEWS: Add entry for gdb.register_window_type.
14611 * tui/tui-layout.h (window_factory): New typedef.
14612 (tui_register_window): Declare.
14613 * tui/tui-layout.c (saved_tui_windows): New global.
14614 (tui_apply_current_layout): Use it.
14615 (tui_register_window): New function.
14616 * python/python.c (do_start_initialization): Call
14617 gdbpy_initialize_tui.
14618 (python_GdbMethods): Add "register_window_type" function.
14619 * python/python-internal.h (gdbpy_register_tui_window)
14620 (gdbpy_initialize_tui): Declare.
14621 * python/py-tui.c: New file.
14622 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14623
fc96d20b
TT
146242020-02-22 Tom Tromey <tom@tromey.com>
14625
14626 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14627
935c78c0
TT
146282020-02-22 Tom Tromey <tom@tromey.com>
14629
14630 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14631 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14632 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14633 (tui_set_win_focus_to): Move from tui-win.c.
14634
0240c8f1
TT
146352020-02-22 Tom Tromey <tom@tromey.com>
14636
14637 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14638 functions.
14639 (known_window_types): New global.
14640 (tui_get_window_by_name): Reimplement.
14641 (initialize_known_windows): New function.
14642 (validate_window_name): Rewrite.
14643 (_initialize_tui_layout): Call initialize_known_windows.
14644
fdb01f0c
TT
146452020-02-22 Tom Tromey <tom@tromey.com>
14646
14647 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14648 Remove constants.
14649 * tui/tui-winsource.h (struct tui_source_window_base)
14650 <tui_source_window_base>: Remove parameter.
14651 * tui/tui-winsource.c
14652 (tui_source_window_base::tui_source_window_base): Remove
14653 parameter.
14654 (tui_source_window_base::refill): Update.
14655 * tui/tui-stack.h (struct tui_locator_window)
14656 <tui_locator_window>: Update.
14657 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14658 Default the constructor.
14659 * tui/tui-regs.h (struct tui_data_item_window)
14660 <tui_data_item_window>: Default the constructor.
14661 (struct tui_data_window) <tui_data_window>: Likewise.
14662 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14663 Default the constructor.
14664 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14665 Default the constructor.
14666 <type>: Remove.
14667 (struct tui_win_info) <tui_win_info>: Default the constructor.
14668 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14669 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14670 Default the constructor.
14671
865a5aec
TT
146722020-02-22 Tom Tromey <tom@tromey.com>
14673
14674 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14675 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14676 * tui/tui-win.c (tui_resize_all): Don't call
14677 tui_delete_invisible_windows.
14678 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14679 done.
14680 (tui_set_layout): Update.
14681 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14682 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14683 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14684
e098d18c
TT
146852020-02-22 Tom Tromey <tom@tromey.com>
14686
14687 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14688 correctly.
14689
eb9c8874
TT
146902020-02-22 Tom Tromey <tom@tromey.com>
14691
14692 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14693
7eed1a8e
TT
146942020-02-22 Tom Tromey <tom@tromey.com>
14695
14696 * tui/tui-winsource.h (struct tui_source_window_iterator)
14697 <inner_iterator>: New etytypedef.
14698 <tui_source_window_iterator>: Take "end" parameter.
14699 <tui_source_window_iterator>: Take iterator.
14700 <operator*, advance>: Update.
14701 <m_iter>: Change type.
14702 <m_end>: New field.
14703 (struct tui_source_windows) <begin, end>: Update.
14704 * tui/tui-layout.c (tui_windows): New global.
14705 (tui_apply_current_layout): Clear tui_windows.
14706 (tui_layout_window::apply): Update tui_windows.
14707 * tui/tui-data.h (tui_windows): Declare.
14708 (all_tui_windows): Now inline function.
14709 (class tui_window_iterator, struct all_tui_windows): Remove.
14710
7c043ba6
TT
147112020-02-22 Tom Tromey <tom@tromey.com>
14712
14713 PR tui/17850:
14714 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14715 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14716 "height" argument.
14717 (class tui_layout_window) <get_sizes>: Likewise.
14718 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14719 argument.
14720 <get_sizes>: Add "height" argument.
14721 <m_vertical>: New field.
14722 * tui/tui-layout.c (tui_layout_split::clone): Update.
14723 (tui_layout_split::get_sizes): Add "height" argument.
14724 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14725 (tui_new_layout_command): Parse "-horizontal".
14726 (_initialize_tui_layout): Update help string.
14727 (tui_layout_split::specification): Add "-horizontal" when needed.
14728 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14729 argument.
14730 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14731 New methods.
14732
6bc56648
TT
147332020-02-22 Tom Tromey <tom@tromey.com>
14734
14735 * tui/tui-layout.h (enum tui_adjust_result): New.
14736 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14737 (class tui_layout_window) <adjust_size>: Return
14738 tui_adjust_result. Rewrite.
14739 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14740 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14741
c22fef7e
TT
147422020-02-22 Tom Tromey <tom@tromey.com>
14743
14744 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14745 parameter and return types.
14746 (class tui_layout_base) <specification>: Add "depth".
14747 (class tui_layout_window) <specification>: Add "depth".
14748 (class tui_layout_split) <specification>: Add "depth".
14749 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14750 and return types.
14751 (tui_new_layout_command): Parse sub-layouts.
14752 (_initialize_tui_layout): Update help string.
14753 (tui_layout_window::specification): Add "depth".
14754 (add_layout_command): Update.
14755
ee325b61
TT
147562020-02-22 Tom Tromey <tom@tromey.com>
14757
14758 * NEWS: Add "tui new-layout" item.
14759 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14760 Add new-layout command to help text.
14761 (validate_window_name): New function.
14762 (tui_new_layout_command): New function.
14763 (_initialize_tui_layout): Register "new-layout".
14764 (tui_layout_window::specification): New method.
14765 (tui_layout_window::specification): New method.
14766 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14767 method.
14768 (class tui_layout_window) <specification>: New method.
14769 (class tui_layout_split) <specification>: New method.
14770
416eb92d
TT
147712020-02-22 Tom Tromey <tom@tromey.com>
14772
14773 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14774 * tui/tui-win.c (window_name_completer): Update comment.
14775 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14776 Declare method.
14777 (class tui_layout_window) <replace_window>: Likewise.
14778 (class tui_layout_split) <replace_window>: Likewise.
14779 (tui_set_layout): Don't declare.
14780 (tui_set_initial_layout): Declare function.
14781 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14782 (asm_regs_layout): New globals.
14783 (tui_current_layout, show_layout): Remove.
14784 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14785 (find_layout, tui_apply_layout): New function.
14786 (layout_completer): Remove.
14787 (tui_next_layout): Reimplement.
14788 (tui_next_layout_command): New function.
14789 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14790 (tui_regs_layout): Reimplement.
14791 (tui_regs_layout_command): New function.
14792 (extract_display_start_addr): Rewrite.
14793 (next_layout, prev_layout): Remove.
14794 (tui_layout_window::replace_window): New method.
14795 (tui_layout_split::replace_window): New method.
14796 (destroy_layout): New function.
14797 (layout_list): New global.
14798 (add_layout_command): New function.
14799 (initialize_layouts): Update.
14800 (tui_layout_command): New function.
14801 (_initialize_tui_layout): Install "layout" commands.
14802 * tui/tui-data.h (enum tui_layout_type): Remove.
14803 (tui_current_layout): Don't declare.
14804
0dbc2fc7
TT
148052020-02-22 Tom Tromey <tom@tromey.com>
14806
14807 * tui/tui-regs.c (tui_reg_layout): Remove.
14808 (tui_reg_command): Use tui_regs_layout.
14809 * tui/tui-layout.h (tui_reg_command): Declare.
14810 * tui/tui-layout.c (tui_reg_command): New function.
14811
5afe342e
TT
148122020-02-22 Tom Tromey <tom@tromey.com>
14813
14814 * tui/tui.c (tui_rl_delete_other_windows): Call
14815 tui_remove_some_windows.
14816 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14817 Declare method.
14818 (class tui_layout_window) <remove_windows>: New method.
14819 (class tui_layout_split) <remove_windows>: Declare.
14820 (tui_remove_some_windows): Declare.
14821 * tui/tui-layout.c (tui_remove_some_windows): New function.
14822 (tui_layout_split::remove_windows): New method.
14823
427326a8
TT
148242020-02-22 Tom Tromey <tom@tromey.com>
14825
14826 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14827 * tui/tui-layout.h (tui_next_layout): Declare.
14828 * tui/tui-layout.c (tui_next_layout): New function.
14829
3fe12b6d
TT
148302020-02-22 Tom Tromey <tom@tromey.com>
14831
14832 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14833 correct coordinates.
14834
59b8b5d2
TT
148352020-02-22 Tom Tromey <tom@tromey.com>
14836
14837 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14838 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14839 DATA_WIN case.
14840
2a3d458b
TT
148412020-02-22 Tom Tromey <tom@tromey.com>
14842
14843 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14844 TUI_DISASM_WIN, not tui_win_list.
14845
3f0cbb04
TT
148462020-02-22 Tom Tromey <tom@tromey.com>
14847
14848 * valprint.c (generic_val_print_enum_1)
14849 (val_print_type_code_flags): Style member names.
14850 * rust-lang.c (val_print_struct, rust_print_enum)
14851 (rust_print_struct_def, rust_internal_print_type): Style member
14852 names.
14853 * p-valprint.c (pascal_object_print_value_fields): Style member
14854 names. Only call fprintf_symbol_filtered for static members.
14855 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14856 * f-valprint.c (f_val_print): Style member names.
14857 * f-typeprint.c (f_type_print_base): Style member names.
14858 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14859 call fprintf_symbol_filtered for static members.
14860 (cp_print_class_member): Style member names.
14861 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14862 member names.
14863 * ada-valprint.c (ada_print_scalar): Style enum names.
14864 (ada_val_print_enum): Likewise.
14865 * ada-typeprint.c (print_enum_type): Style enum names.
14866
d4d947ae
TT
148672020-02-21 Tom Tromey <tom@tromey.com>
14868
14869 * psympriv.h (struct partial_symtab): Update comment.
14870
e94e944b
TT
148712020-02-21 Tom Tromey <tromey@adacore.com>
14872
14873 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14874 type is CORE_ADDR.
14875
1eb73179
TV
148762020-02-21 Tom de Vries <tdevries@suse.de>
14877
14878 PR gdb/25534
14879 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14880 if dependencies[i]->user != NULL.
14881
4f180d53
AT
148822020-02-21 Ali Tamur <tamur@google.com>
14883
14884 * dwarf2/read.c (dwarf2_name): Add null check.
14885
22b6cd70
TT
148862020-02-20 Tom Tromey <tom@tromey.com>
14887
14888 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14889 ">=", in binary search.
14890 (dwarf2_find_containing_comp_unit): New overload.
14891 (run_test): New self-test.
14892 (_initialize_dwarf2_read): Register new test.
14893
bd0cf5a6
NC
148942020-02-20 Nelson Chu <nelson.chu@sifive.com>
14895
14896 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14897 * riscv-tdep.h: Likewise.
14898 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14899 rv32-only CSR.
14900 * features/riscv/64bit-csr.xml: Regenerated.
14901
3f702acd
SDJ
149022020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14903 Tom Tromey <tom@tromey.com>
14904
14905 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14906 of 'fputc_unfiltered'.
14907 (putchar_unfiltered): Call 'fputc_unfiltered'.
14908 (fputc_unfiltered): Call 'fputs_unfiltered'.
14909
d13c7322
AB
149102020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14911
14912 * config.in: Regenerate.
14913 * configure: Regenerate.
14914 * configure.ac: Add --with-python-libdir option.
14915 * main.c: Use WITH_PYTHON_LIBDIR.
14916
869d8950
TT
149172020-02-19 Tom Tromey <tom@tromey.com>
14918
14919 * symtab.c (general_symbol_info::compute_and_set_names): Use
14920 obstack_strndup. Simplify call to symbol_set_demangled_name.
14921
298e9637
SM
149222020-02-19 Simon Marchi <simon.marchi@efficios.com>
14923
14924 * dwarf2/read.c (allocate_signatured_type_table,
14925 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14926 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14927 Remove objfile parameter, update all callers.
14928
08410482
DE
149292020-02-19 Doug Evans <dje@google.com>
14930
14931 PR rust/25535
14932 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14933 rust_enum_variant calculation.
14934
dfdeeca1
TT
149352020-02-19 Tom Tromey <tromey@adacore.com>
14936
14937 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14938
2ef5453b
TT
149392020-02-19 Tom Tromey <tromey@adacore.com>
14940
14941 * ada-lang.c (cache_symbol): Use obstack_strdup.
14942
9f1528a1
AB
149432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14944
14945 * configure: Regenerate.
14946
d3c22fa8
TT
149472020-02-19 Tom Tromey <tromey@adacore.com>
14948
14949 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14950 NULL check.
14951
bf84f706
MR
149522020-02-19 Maciej W. Rozycki <macro@wdc.com>
14953
14954 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14955
d1c9b20f
AB
149562020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14957
14958 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14959 if GDBSERVER is not defined.
14960 (riscv_tdesc_cache): Likewise, also store const target_desc.
14961 (STATIC_IN_GDB): Define.
14962 (riscv_create_target_description): Update declaration with
14963 STATIC_IN_GDB.
14964 (riscv_lookup_target_description): New function, only define if
14965 GDBSERVER is not defined.
14966 * arch/riscv.h (riscv_create_target_description): Declare only
14967 when GDBSERVER is defined.
14968 (riscv_lookup_target_description): New declaration when GDBSERVER
14969 is not defined.
14970 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14971 (riscv_linux_read_features): ...this, and return
14972 riscv_gdbarch_features instead of target_desc.
14973 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14974 (riscv_linux_read_description): Rename to...
14975 (riscv_linux_read_features): ...this.
14976 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14977 Update to use riscv_gdbarch_features and
14978 riscv_lookup_target_description.
14979 * riscv-tdep.c (riscv_find_default_target_description): Use
14980 riscv_lookup_target_description instead of
14981 riscv_create_target_description.
14982
373d7ac0
SM
149832020-02-18 Simon Marchi <simon.marchi@efficios.com>
14984
14985 * valprint.c (generic_val_print_enum_1): When printing a flag
14986 enum with value 0 and there is no enumerator with value 0, print
14987 just "0" instead of "(unknown: 0x0)".
14988
b29a2df0
SM
149892020-02-18 Simon Marchi <simon.marchi@efficios.com>
14990
14991 * valprint.c (generic_val_print_enum_1): Print unknown part of
14992 flag enum in hex.
14993
6740f0cc
SM
149942020-02-18 Simon Marchi <simon.marchi@efficios.com>
14995
14996 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14997 flag enums to contain duplicate enumerators.
14998 * valprint.c (generic_val_print_enum_1): Update comment.
14999
edd45eb0
SM
150002020-02-18 Simon Marchi <simon.marchi@efficios.com>
15001
15002 * dwarf2/read.c: Include "count-one-bits.h".
15003 (update_enumeration_type_from_children): If an enumerator has
15004 multiple bits set, don't treat the enumeration as a "flag enum".
15005 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15006 of flag enums have 0 or 1 bit set.
15007
6d0cf446
BE
150082020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15009
15010 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15011 conversion.
15012 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15013 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15014 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15015 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15016 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15017
7001c1b7
SM
150182020-02-18 Simon Marchi <simon.marchi@efficios.com>
15019
15020 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15021
fdb61c6c
SM
150222020-02-14 Simon Marchi <simon.marchi@efficios.com>
15023
15024 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15025 displaced_step_closure_up.
15026 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15027 (struct displaced_step_closure_up):
15028 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15029 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15030 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15031 Likewise.
15032 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15033 * gdbarch.c, gdbarch.h: Re-generate.
15034 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15035 displaced_step_closure_up.
15036 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15037 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15038 * infrun.h (displaced_step_closure_up): New type alias.
15039 (struct displaced_step_inferior_state) <step_closure>: Change
15040 type to displaced_step_closure_up.
15041 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15042 displaced_step_closure_up.
15043 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15044
a4a38eb4
TT
150452020-02-14 Tom Tromey <tom@tromey.com>
15046
15047 * minidebug.c (gnu_debug_key): New global.
15048 (find_separate_debug_file_in_section): Use it.
15049
e8217e61
SM
150502020-02-14 Simon Marchi <simon.marchi@efficios.com>
15051
15052 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15053 std::unique_ptr.
15054 * gdbarch.c: Re-generate.
15055 * gdbarch.h: Re-generate.
15056 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15057 change.
15058 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15059 type to std::unique_ptr.
15060 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15061 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15062 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15063 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15064 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15065 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15066 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15067 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15068 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15069
d8d83535
SM
150702020-02-14 Simon Marchi <simon.marchi@efficios.com>
15071
15072 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15073 std::unique_ptr.
15074 (displaced_step_clear): Rename to...
15075 (displaced_step_reset): ... this. Just call displaced->reset ().
15076 (displaced_step_clear_cleanup): Rename to...
15077 (displaced_step_reset_cleanup): ... this.
15078 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15079 (displaced_step_fixup): Likewise.
15080 (resume_1): Likewise.
15081 (handle_inferior_event): Restore child's memory before calling
15082 displaced_step_fixup on the parent.
15083 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15084 to std::unique_ptr.
15085 <step_closure>: Change type to std::unique_ptr.
15086
5f661e03
SM
150872020-02-14 Simon Marchi <simon.marchi@efficios.com>
15088
15089 * arm-tdep.c: Include count-one-bits.h.
15090 (cleanup_block_store_pc): Use count_one_bits.
15091 (cleanup_block_load_pc): Use count_one_bits.
15092 (arm_copy_block_xfer): Use count_one_bits.
15093 (thumb2_copy_block_xfer): Use count_one_bits.
15094 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15095 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15096 (thumb_get_next_pcs_raw): Use count_one_bits.
15097 (arm_get_next_pcs_raw): Use count_one_bits_l.
15098 * arch/arm.c (bitcount): Remove.
15099 * arch/arm.h (bitcount): Remove.
15100
8084e579
TT
151012020-02-14 Tom Tromey <tromey@adacore.com>
15102
15103 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15104 Update.
15105 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15106 * dwarf2/loc.c (call_site_find_chain_1): Return
15107 unique_xmalloc_ptr.
15108 (call_site_find_chain): Likewise.
15109
258bf0ee
RB
151102020-02-14 Richard Biener <rguenther@suse.de>
15111
15112 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15113 on expression with division operators.
15114
f98a8458
AKS
151152020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15116
15117 * MAINTAINERS (Write After Approval): Adding myself.
15118
d1437c0e
TT
151192020-02-12 Tom Tromey <tom@tromey.com>
15120
15121 * event-loop.c (event_data, gdb_event, event_handler_func):
15122 Remove.
15123
3d4560f7
TT
151242020-02-12 Tom Tromey <tom@tromey.com>
15125
15126 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15127 (dwarf2_frame_objfile_data): Add comment.
15128 (find_comp_unit, set_comp_unit): New functions.
15129 (dwarf2_frame_find_fde): Use find_comp_unit.
15130 (dwarf2_build_frame_info): Use set_comp_unit.
15131
21982304
TT
151322020-02-12 Tom Tromey <tom@tromey.com>
15133
15134 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15135 (comp_unit): Don't initialize objfile.
15136 (execute_cfa_program): Add text_offset parameter.
15137 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15138 (dwarf2_frame_cache): Update.
15139 (dwarf2_build_frame_info): Don't set "objfile" member.
15140
4debb237
TT
151412020-02-12 Tom Tromey <tom@tromey.com>
15142
15143 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15144 (decode_frame_entry): Likewise.
15145 (dwarf2_build_frame_info): Update.
15146
0d404d44
TT
151472020-02-12 Tom Tromey <tom@tromey.com>
15148
15149 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15150 (decode_frame_entry_1): Use the comp_unit obstack.
15151
a7a3ae5c
TT
151522020-02-12 Tom Tromey <tom@tromey.com>
15153
15154 * dwarf2/frame.c (struct comp_unit): Add initializers and
15155 constructor.
15156 (dwarf2_frame_objfile_data): Store a comp_unit.
15157 (dwarf2_frame_find_fde): Update.
15158 (dwarf2_build_frame_info): Use "new".
15159
a9d65418
TT
151602020-02-12 Tom Tromey <tom@tromey.com>
15161
15162 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15163 (dwarf2_fde_table): Typedef for std::vector.
15164 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15165 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15166 (decode_frame_entry): Update.
15167 (dwarf2_build_frame_info): Use "new".
15168
7559c217
CB
151692020-02-12 Christian Biesinger <cbiesinger@google.com>
15170
15171 * arm-tdep.c (arm_gdbarch_init): Update.
15172 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15173 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15174 have_neon, is_m>: Change to bool.
15175
aeefc73c
CB
151762020-02-12 Christian Biesinger <cbiesinger@google.com>
15177
15178 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15179
d27b8e5f
TT
151802020-02-12 Tom Tromey <tom@tromey.com>
15181
15182 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15183
cd5900f3
HD
151842020-02-12 Hannes Domani <ssbssa@yahoo.de>
15185
15186 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15187 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15188
f056b22b
TT
151892020-02-11 Tom Tromey <tom@tromey.com>
15190
15191 * psymtab.h: Update comment.
15192
f92ff6b5
TT
151932020-02-11 Tom Tromey <tom@tromey.com>
15194
15195 * gdb_obstack.h (struct auto_obstack): Use
15196 DISABLE_COPY_AND_ASSIGN.
15197
3fd6912b
TT
151982020-02-11 Tom Tromey <tom@tromey.com>
15199
15200 * dwarf2/frame.h (struct objfile): Don't forward declare.
15201
69ed9b74
CB
152022020-02-11 Christian Biesinger <cbiesinger@google.com>
15203
15204 * cris-tdep.c (cris_supply_gregset): Change signature to match
15205 what struct regset expects.
15206 (cris_regset): New struct.
15207 (fetch_core_registers): Remove.
15208 (cris_iterate_over_regset_sections): New function.
15209 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15210 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15211
bda874f6
CB
152122020-02-11 Christian Biesinger <cbiesinger@google.com>
15213
15214 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15215 registers.
15216
754e1564
CB
152172020-02-11 Christian Biesinger <cbiesinger@google.com>
15218
15219 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15220
8ddd8e0e
SM
152212020-02-11 Simon Marchi <simon.marchi@efficios.com>
15222
15223 * configure: Re-generate.
15224
898e7f60
SM
152252020-02-11 Simon Marchi <simon.marchi@efficios.com>
15226
15227 * configure: Re-generate.
15228
58df732b
SM
152292020-02-11 Simon Marchi <simon.marchi@efficios.com>
15230
15231 * acinclude: Update warning.m4 path.
15232 * warning.m4: Move to gdbsupport.
15233
da5bd37e
TT
152342020-02-11 Tom Tromey <tromey@adacore.com>
15235
15236 * remote.c (remote_console_output): Update.
15237 * printcmd.c (printf_command): Update.
15238 * event-loop.c (gdb_wait_for_event): Update.
15239 * linux-nat.c (sigchld_handler): Update.
15240 * remote-sim.c (gdb_os_write_stdout): Update.
15241 (gdb_os_flush_stdout): Update.
15242 (gdb_os_flush_stderr): Update.
15243 (gdb_os_write_stderr): Update.
15244 * exceptions.c (print_exception): Update.
15245 * remote-fileio.c (remote_fileio_func_read): Update.
15246 (remote_fileio_func_write): Update.
15247 * tui/tui.c (tui_enable): Update.
15248 * tui/tui-interp.c (tui_interp::init): Update.
15249 * utils.c (init_page_info): Update.
15250 (putchar_unfiltered, fputc_unfiltered): Update.
15251 (gdb_flush): Update.
15252 (emit_style_escape): Update.
15253 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15254 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15255 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15256 (stderr_file::write): Update.
15257 (stderr_file::puts): Update.
15258 * ui-file.h (ui_file_isatty, ui_file_write)
15259 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15260 (ui_file_puts): Don't declare.
15261
85f0dd3c
TV
152622020-02-10 Tom de Vries <tdevries@suse.de>
15263
15264 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15265 sentinel to char *.
15266
2e927613
TV
152672020-02-09 Tom de Vries <tdevries@suse.de>
15268
15269 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15270 filename if it matches "<artificial>".
15271
6bafc845
HD
152722020-02-09 Hannes Domani <ssbssa@yahoo.de>
15273
15274 * windows-tdep.c (struct enum_value_name): New struct.
15275 (create_enum): New function.
15276 (windows_get_siginfo_type): Create and use enum types.
15277
7928d571
HD
152782020-02-09 Hannes Domani <ssbssa@yahoo.de>
15279
15280 * NEWS: Mention $_siginfo support for Windows.
15281 * windows-nat.c (handle_exception): Set siginfo_er.
15282 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15283 (windows_xfer_siginfo): New function.
15284 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15285 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15286 (init_windows_gdbarch_data): New function.
15287 (get_windows_gdbarch_data): New function.
15288 (windows_get_siginfo_type): New function.
15289 (windows_init_abi): Register windows_get_siginfo_type.
15290 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15291
6751ebae
TT
152922020-02-08 Tom Tromey <tom@tromey.com>
15293
15294 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15295 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15296 <keep>: Declare method.
15297 <m_keep>: Remove member.
15298 <~cutu_reader>: Remove.
15299 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15300 (cutu_reader::cutu_reader): Update.
15301 (cutu_reader::keep): Rename from ~cutu_reader.
15302 (process_psymtab_comp_unit, build_type_psymtabs_1)
15303 (process_skeletonless_type_unit, load_partial_comp_unit)
15304 (load_full_comp_unit, dwarf2_read_addr_index)
15305 (read_signatured_type): Update.
15306
135f5437
TT
153072020-02-08 Tom Tromey <tom@tromey.com>
15308
15309 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15310 "want_partial_unit" parameter.
15311 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15312 Inline check for DW_TAG_partial_unit.
15313 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15314
9f66ff1c
TT
153152020-02-08 Tom Tromey <tom@tromey.com>
15316
15317 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15318 read.c.
15319 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15320 read.c.
15321
c8a7a66f
TT
153222020-02-08 Tom Tromey <tom@tromey.com>
15323
15324 * dwarf2/read.c (read_address): Move to comp-unit.c.
15325 (dwarf2_rnglists_process, dwarf2_ranges_process)
15326 (read_attribute_value, dwarf_decode_lines_1)
15327 (var_decode_location, decode_locdesc): Update.
15328 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15329 read.c. Remove "cu" parameter.
15330 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15331 method.
15332
8266302d
TT
153332020-02-08 Tom Tromey <tom@tromey.com>
15334
15335 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15336 (read_indirect_line_string): Update.
15337 * dwarf2/comp-unit.c (read_offset): Remove.
15338 (read_comp_unit_head): Update.
15339 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15340 method.
15341 (read_offset): Don't declare.
15342
4057dfde
TT
153432020-02-08 Tom Tromey <tom@tromey.com>
15344
15345 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15346 * dwarf2/read.c (struct comp_unit_head): Move to
15347 dwarf2/comp-unit.h.
15348 (enum class rcuh_kind): Move to comp-unit.h.
15349 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15350 (read_comp_unit_head, error_check_comp_unit_head)
15351 (read_and_check_comp_unit_head): Move to comp-unit.c.
15352 (read_offset, dwarf_unit_type_name): Likewise.
15353 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15354 (cutu_reader::cutu_reader, read_call_site_scope)
15355 (find_partial_die, follow_die_offset): Update.
15356 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15357
24aa364d
TT
153582020-02-08 Tom Tromey <tom@tromey.com>
15359
15360 * dwarf2/read.c (read_offset_1): Move to leb.c.
15361 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15362 (dwarf_decode_macro_bytes): Update.
15363 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15364 * dwarf2/leb.h (read_offset): Declare.
15365
2c7d5afc
TT
153662020-02-08 Tom Tromey <tom@tromey.com>
15367
15368 * dwarf2/read.c (dwarf2_section_size): Remove.
15369 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15370 Update.
15371 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15372
4075cb26
TT
153732020-02-08 Tom Tromey <tom@tromey.com>
15374
15375 * dwarf2/read.c (read_initial_length): Move to leb.c.
15376 * dwarf2/leb.h (read_initial_length): Declare.
15377 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15378 handle_nonstd parameter.
15379 * dwarf2/frame.c (read_initial_length): Remove.
15380 (decode_frame_entry_1): Update.
15381
09ba997f
TT
153822020-02-08 Tom Tromey <tom@tromey.com>
15383
15384 * dwarf2/loc.c (dwarf2_find_location_expression)
15385 (dwarf_evaluate_loc_desc::get_tls_address)
15386 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15387 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15388 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15389 (dwarf2_compile_property_to_c)
15390 (dwarf2_loc_desc_get_symbol_read_needs)
15391 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15392 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15393 (loclist_describe_location, loclist_tracepoint_var_ref)
15394 (loclist_generate_c_location): Update.
15395 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15396 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15397 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15398 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15399 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15400 (dwarf2_per_cu_data::addr_size)
15401 (dwarf2_per_cu_data::ref_addr_size)
15402 (dwarf2_per_cu_data::text_offset)
15403 (dwarf2_per_cu_data::addr_type): Now methods.
15404 (per_cu_header_read_in): Make per_cu "const".
15405 (dwarf2_version): Remove.
15406 (dwarf2_per_cu_data::int_type): Now a method.
15407 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15408 (set_die_type, read_array_type, read_subrange_index_type)
15409 (read_tag_string_type, read_subrange_type): Update.
15410 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15411 offset_size, ref_addr_size, text_offset, addr_type, version,
15412 objfile, int_type, addr_sized_int_type>: Declare methods.
15413
96c738c0
TT
154142020-02-08 Tom Tromey <tom@tromey.com>
15415
15416 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15417 Move earlier.
15418
8fdd972c
TT
154192020-02-08 Tom Tromey <tom@tromey.com>
15420
15421 * dwarf2/read.h (dwarf_line_debug): Declare.
15422 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15423 * dwarf2/read.c: Move line_header code to new files.
15424 (dwarf_line_debug): No longer static.
15425 * dwarf2/line-header.c: New file.
15426 * dwarf2/line-header.h: New file.
15427
03075812
TT
154282020-02-08 Tom Tromey <tom@tromey.com>
15429
15430 * dwarf2/read.c (struct line_header) <file_full_name,
15431 file_file_name>: Return unique_xmalloc_ptr.
15432 (line_header::file_file_name): Update.
15433 (line_header::file_full_name): Update.
15434 (dw2_get_file_names_reader): Update.
15435 (macro_start_file): Update.
15436
bb822404
TT
154372020-02-08 Tom Tromey <tom@tromey.com>
15438
15439 * dwarf2/read.c (struct line_header) <file_full_name,
15440 file_file_name>: Declare methods.
15441 (dw2_get_file_names_reader): Update.
15442 (file_file_name): Now a method.
15443 (file_full_name): Likewise.
15444 (macro_start_file): Update.
15445
009b64fc
TT
154462020-02-08 Tom Tromey <tom@tromey.com>
15447
15448 * dwarf2/read.c (dwarf_always_disassemble)
15449 (show_dwarf_always_disassemble): Move to loc.c.
15450 (_initialize_dwarf2_read): Move "always-disassemble" registration
15451 to loc.c.
15452 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15453 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15454 static.
15455 (show_dwarf_always_disassemble): Move from read.c.
15456 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15457
5895093f
TT
154582020-02-08 Tom Tromey <tom@tromey.com>
15459
15460 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15461 (create_quick_file_names_table): Return htab_up.
15462 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15463 Update.
15464 * dwarf2/read.h (struct dwarf2_per_objfile)
15465 <quick_file_names_table>: Now htab_up.
15466
b3b32279
TT
154672020-02-08 Tom Tromey <tom@tromey.com>
15468
15469 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15470
1d33d811
TT
154712020-02-08 Tom Tromey <tom@tromey.com>
15472
15473 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15474 Rewrite.
15475 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15476 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15477 (abbrev_table::abbrev_table): No longer inline.
15478 (ABBREV_HASH_SIZE): Remove.
15479 (abbrev_table::m_abbrevs): Now an htab_up.
15480
86de1d91
TT
154812020-02-08 Tom Tromey <tom@tromey.com>
15482
15483 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15484 (cutu_reader): Update.
15485 (build_type_psymtabs_1): Update.
15486 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15487 (abbrev_table::alloc_abbrev): Update.
15488 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15489 (abbrev_table::read): New static method, renamed from
15490 abbrev_table_read_table.
15491 (abbrev_table::alloc_abbrev)
15492 (abbrev_table::add_abbrev): Now private.
15493 (abbrev_table::abbrev_table): Now private.
15494 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15495
0335378b
TT
154962020-02-08 Tom Tromey <tom@tromey.com>
15497
15498 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15499 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15500 htab_up.
15501
48b490f2
TT
155022020-02-08 Tom Tromey <tom@tromey.com>
15503
15504 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15505 htab_up.
15506 (lookup_dwo_unit_in_dwp): Update.
15507 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15508 on obstack.
15509
bc68fb19
TT
155102020-02-08 Tom Tromey <tom@tromey.com>
15511
15512 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15513 obstack.
15514
d15acc42
TT
155152020-02-08 Tom Tromey <tom@tromey.com>
15516
15517 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15518 line_header_hash.
15519 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15520 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15521 Change type to htab_up.
15522
eaa5fa8b
TT
155232020-02-08 Tom Tromey <tom@tromey.com>
15524
15525 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15526 htab_up. Don't allocate on obstack.
15527 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15528 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15529 Change type to htab_up.
15530
b0b6a987
TT
155312020-02-08 Tom Tromey <tom@tromey.com>
15532
15533 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15534 Change type to htab_up.
15535 * dwarf2/read.c (create_signatured_type_table_from_index)
15536 (create_signatured_type_table_from_debug_names)
15537 (create_all_type_units, add_type_unit)
15538 (lookup_dwo_signatured_type, lookup_signatured_type)
15539 (process_skeletonless_type_unit): Update.
15540 (create_debug_type_hash_table, create_debug_types_hash_table):
15541 Change type of types_htab.
15542 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15543 htab_up. Don't allocate on obstack.
15544 (create_cus_hash_table): Change type of cus_htab parameter.
15545 (struct dwo_file) <cus, tus>: Now htab_up.
15546 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15547 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15548 (queue_and_load_all_dwo_tus): Update.
15549 * dwarf2/index-write.c (write_gdbindex): Update.
15550 (write_debug_names): Update.
15551
39856def
TT
155522020-02-08 Tom Tromey <tom@tromey.com>
15553
15554 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15555 dwarf2/read.c. Remove "next" member. Add constructor ntad
15556 destructor.
15557 (struct dwarf2_per_objfile) <queue>: New member.
15558 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15559 dwarf2/read.h.
15560 (dwarf2_queue, dwarf2_queue_tail): Remove.
15561 (class dwarf2_queue_guard): Add parameter to constructor. Use
15562 DISABLE_COPY_AND_ASSIGN.
15563 <m_per_objfile>: New member.
15564 <~dwarf2_queue_guard>: Rewrite.
15565 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15566 Update.
15567 (~dwarf2_queue_item): New.
15568
3e225074
TT
155692020-02-08 Tom Tromey <tom@tromey.com>
15570
15571 * dwarf2/read.c (struct die_info) <has_children>: New member.
15572 (dw2_get_file_names_reader): Remove has_children.
15573 (dw2_get_file_names): Update.
15574 (read_cutu_die_from_dwo): Remove has_children.
15575 (cutu_reader::init_tu_and_read_dwo_dies)
15576 (cutu_reader::cutu_reader): Update.
15577 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15578 Remove has_children.
15579 (build_type_psymtabs_1, process_skeletonless_type_unit)
15580 (load_partial_comp_unit, load_full_comp_unit): Update.
15581 (create_dwo_cu_reader): Remove has_children.
15582 (create_cus_hash_table, read_die_and_children): Update.
15583 (read_full_die_1,read_full_die): Remove has_children.
15584 (read_signatured_type): Update.
15585 (class cutu_reader) <has_children>: Remove.
15586
82ca8957
TT
155872020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2/expr.c: Rename from dwarf2expr.c.
15590 * dwarf2/expr.h: Rename from dwarf2expr.h.
15591 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15592 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15593 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15594 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15595 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15596 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15597 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15598 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15599 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15600 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15601 * dwarf2/loc.c: Rename from dwarf2loc.c.
15602 * dwarf2/loc.h: Rename from dwarf2loc.h.
15603 * dwarf2/read.c: Rename from dwarf2read.c.
15604 * dwarf2/read.h: Rename from dwarf2read.h.
15605 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15606 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15607 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15608 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15609 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15610 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15611 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15612 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15613 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15614 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15615 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15616 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15617 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15618 Update.
15619 * Makefile.in (COMMON_SFILES): Update.
15620 (HFILES_NO_SRCDIR): Update.
15621
9e35d499
TT
156222020-02-08 Tom Tromey <tom@tromey.com>
15623
15624 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15625 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15626
1eba2311
TT
156272020-02-08 Tom Tromey <tom@tromey.com>
15628
15629 * dwarf2read.h (struct die_info): Don't declare.
15630
e41c2da2
TT
156312020-02-08 Tom Tromey <tom@tromey.com>
15632
15633 * dwarf2read.h (die_info_ptr): Remove typedef.
15634
4fc6c0d5
TT
156352020-02-08 Tom Tromey <tom@tromey.com>
15636
15637 * dwarf2read.c (read_call_site_scope)
15638 (handle_data_member_location, dwarf2_add_member_fn)
15639 (mark_common_block_symbol_computed, read_common_block)
15640 (attr_to_dynamic_prop, partial_die_info::read)
15641 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15642 (dwarf2_symbol_mark_computed, set_die_type): Update.
15643 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15644 method.
15645 (attr_form_is_block): Don't declare.
15646 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15647
cd6c91b4
TT
156482020-02-08 Tom Tromey <tom@tromey.com>
15649
15650 * dwarf2read.c (dwarf2_find_base_address, )
15651 (read_call_site_scope, rust_containing_type)
15652 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15653 (handle_data_member_location, dwarf2_add_member_fn)
15654 (get_alignment, read_structure_type, process_structure_scope)
15655 (mark_common_block_symbol_computed, read_common_block)
15656 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15657 (partial_die_info::read, read_attribute_value, new_symbol)
15658 (lookup_die_type, dwarf2_get_ref_die_offset)
15659 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15660 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15661 (dwarf2_symbol_mark_computed): Update.
15662 * dwarf2/attribute.h (struct attribute) <value_as_address,
15663 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15664 methods.
15665 (value_as_address, attr_form_is_section_offset)
15666 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15667 * dwarf2/attribute.c (attribute::value_as_address)
15668 (attribute::form_is_section_offset, attribute::form_is_constant)
15669 (attribute::form_is_ref): Now methods.
15670
162dce55
TT
156712020-02-08 Tom Tromey <tom@tromey.com>
15672
15673 * dwarf2read.c (struct attribute, DW_STRING)
15674 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15675 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15676 (attr_form_is_block, attr_form_is_section_offset)
15677 (attr_form_is_constant, attr_form_is_ref): Move.
15678 * dwarf2/attribute.h: New file.
15679 * dwarf2/attribute.c: New file, from dwarf2read.c.
15680 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15681
3054dd54
TT
156822020-02-08 Tom Tromey <tom@tromey.com>
15683
15684 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15685 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15686 Move.
15687 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15688 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15689 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15690 abbrev.c.
15691 * dwarf2/abbrev.h: New file.
15692 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15693 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15694
96b79293
TT
156952020-02-08 Tom Tromey <tom@tromey.com>
15696
15697 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15698 (dwarf2_section_size, dwarf2_get_section_info)
15699 (create_signatured_type_table_from_debug_names)
15700 (create_addrmap_from_aranges, read_debug_names_from_section)
15701 (get_gdb_index_contents_from_section, read_comp_unit_head)
15702 (error_check_comp_unit_head, read_abbrev_offset)
15703 (create_debug_type_hash_table, init_cu_die_reader)
15704 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15705 (read_comp_units_from_section, create_cus_hash_table)
15706 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15707 (create_dwp_v2_section, dwarf2_rnglists_process)
15708 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15709 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15710 (read_indirect_string_from_dwz, read_addr_index_1)
15711 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15712 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15713 (fill_in_loclist_baton): Update.
15714 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15715 get_containing_section, get_bfd_owner, get_bfd_section,
15716 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15717 (dwarf2_read_section, get_section_name, get_section_file_name)
15718 (get_containing_section, get_section_bfd_owner)
15719 (get_section_bfd_section, get_section_name, get_section_file_name)
15720 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15721 declare.
15722 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15723 (dwarf2_section_info::get_bfd_owner)
15724 (dwarf2_section_info::get_bfd_section)
15725 (dwarf2_section_info::get_name)
15726 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15727 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15728 (dwarf2_section_info::read): Now methods.
15729 * dwarf-index-write.c (class debug_names): Update.
15730
2c86cff9
TT
157312020-02-08 Tom Tromey <tom@tromey.com>
15732
15733 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15734 Move to dwarf2/section.h.
15735 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15736 (get_section_bfd_section, get_section_name)
15737 (get_section_file_name, get_section_id, get_section_flags)
15738 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15739 dwarf2/section.c.
15740 * dwarf2/section.h: New file.
15741 * dwarf2/section.c: New file, from dwarf2read.c.
15742 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15743
f4382c45
TT
157442020-02-08 Tom Tromey <tom@tromey.com>
15745
15746 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15747 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15748 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15749 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15750 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15751 * dwarf2/leb.h: New file, from dwarf2read.c.
15752 * dwarf2/leb.c: New file, from dwarf2read.c.
15753 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15754 Remove.
15755 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15756 (COMMON_SFILES): Add dwarf2/leb.c.
15757
01840b7a
JB
157582020-02-08 Joel Brobecker <brobecker@adacore.com>
15759
15760 GDB 9.1 released.
15761
dfcb27e4
IB
157622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15763
15764 PR gdb/25190:
aac66a4c
SM
15765 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15766 * gdb/remote.c (remote_console_output): Update.
15767 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15768 (ui_file_puts): ...this.
15769 * gdb/ui-file.h (ui_file_puts): Add declaration.
15770 * gdb/utils.c (emit_style_escape): Update.
15771 (flush_wrap_buffer): Update.
15772 (fputs_maybe_filtered): Update.
15773 (fputs_unfiltered): Add function.
dfcb27e4 15774
faa17681
IB
157752020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15776
aac66a4c
SM
15777 * gdb/event-loop.c (gdb_wait_for_event): Update.
15778 * gdb/printcmd.c (printf_command): Update.
15779 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15780 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15781 (gdb_os_flush_stderr): Update.
15782 * gdb/remote.c (remote_console_output): Update.
15783 * gdb/ui-file.c (gdb_flush): Rename to...
15784 (ui_file_flush): ...this.
15785 (stderr_file::write): Update.
15786 (stderr_file::puts): Update.
15787 * gdb/ui-file.h (gdb_flush): Rename to...
15788 (ui_file_flush): ...this.
15789 * gdb/utils.c (gdb_flush): Add function.
15790 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15791
5abbbe1d
TT
157922020-02-07 Tom Tromey <tromey@adacore.com>
15793
15794 PR breakpoints/24915:
15795 * source.c (find_and_open_source): Do not check basenames_may_differ.
15796
919adfe8
TT
157972020-02-07 Tom Tromey <tom@tromey.com>
15798
15799 * README: Update gdbserver documentation.
15800 * gdbserver: Move to top level.
15801 * configure.tgt (build_gdbserver): Remove.
15802 * configure.ac: Remove --enable-gdbserver.
15803 * configure: Rebuild.
15804 * Makefile.in (distclean): Don't mention gdbserver.
15805
1d5d29e7
SV
158062020-02-06 Shahab Vahedi <shahab@synopsys.com>
15807
15808 * source-cache.c (source_cache::ensure): Surround
15809 get_plain_source_lines with a try/catch.
15810 (source_cache::get_line_charpos): Get rid of try/catch
15811 and only check for the return value of "ensure".
15812 * tui/tui-source.c (tui_source_window::set_contents):
15813 Simplify "nlines" calculation.
15814
6eb1129c
SV
158152020-02-06 Shahab Vahedi <shahab@synopsys.com>
15816
15817 * MAINTAINERS (Write After Approval): Add myself.
15818
c6a42d11
CB
158192020-02-05 Christian Biesinger <cbiesinger@google.com>
15820
15821 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15822 function call.
15823
c8ecdda6
CB
158242020-02-05 Christian Biesinger <cbiesinger@google.com>
15825
15826 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15827
f6480e70
MR
158282020-02-05 Maciej W. Rozycki <macro@wdc.com>
15829
15830 * nat/riscv-linux-tdesc.h: New file.
15831 * nat/riscv-linux-tdesc.c: New file, taking code from...
15832 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15833 ... here.
15834 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15835 NATDEPFILES.
15836
dcc9fbc6
AB
158372020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15838
15839 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15840 we don't set the fake simulator ptid to the null_ptid.
15841
719546c4
SM
158422020-02-03 Simon Marchi <simon.marchi@efficios.com>
15843
15844 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15845 * gdbthread.h (class thread_info) <resumed>: Likewise.
15846 * infrun.c (resume_1): Likewise.
15847 (proceed): Likewise.
15848 (infrun_thread_stop_requested): Likewise.
15849 (stop_all_threads): Likewise.
15850 (handle_inferior_event): Likewise.
15851 (restart_threads): Likewise.
15852 (finish_step_over): Likewise.
15853 (keep_going_stepped_thread): Likewise.
15854 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15855 (linux_handle_extended_wait): Likewise.
15856 * record-btrace.c (get_thread_current_frame_id): Likewise.
15857 * record-full.c (record_full_wait_1): Likewise.
15858 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15859 * target.c (target_resume): Likewise.
15860 * thread.c (set_running_thread): Likewise.
15861
e409c542
AKS
158622020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15863
15864 * f-valprint.c (f77_print_array_1): Changed datatype of index
15865 variable to LONGEST from int to enable it to contain bound
15866 values correctly.
15867
ee98c0da
MR
158682020-02-03 Maciej W. Rozycki <macro@wdc.com>
15869
15870 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15871 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15872 offsets according to FLEN determined.
15873 (riscv_linux_nat_target::read_description): Determine FLEN
15874 dynamically.
15875 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15876 according to FLEN determined.
15877 (riscv_linux_nat_target::store_registers): Likewise.
15878
aa66aac4
SV
158792020-02-01 Shahab Vahedi <shahab@synopsys.com>
15880
15881 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15882 when reg->group is empty and reggroup is not.
15883
fd9faca8
TT
158842020-01-31 Tom Tromey <tromey@adacore.com>
15885
15886 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15887 Call beneath target's mourn_inferior after unpushing.
15888
42330a68
AB
158892020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15890
15891 PR tui/9765
15892 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15893 have enough lines to fill the screen, still return the lowest
15894 address we found.
15895
7a27a45b
AB
158962020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15897
15898 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15899 '-', '<', and '>' commands.
15900
c47f70e2
PA
159012020-01-29 Pedro Alves <palves@redhat.com>
15902 Sergio Durigan Junior <sergiodj@redhat.com>
15903
15904 * infcmd.c (construct_inferior_arguments): Assert that
15905 'argc' is greater than 0.
15906
5133a315
LM
159072020-01-29 Luis Machado <luis.machado@linaro.org>
15908
15909 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15910 (BRK_INSN_MASK): Define to 0xd4200000.
15911 (aarch64_program_breakpoint_here_p): New function.
15912 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15913 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15914 breakpoint.c.
15915 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15916 breakpoint.h
15917 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15918 call gdbarch_program_breakpoint_here_p.
15919 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15920 default_program_breakpoint_here_p, changed return type to bool and
15921 simplified.
15922 * breakpoint.h (program_breakpoint_here): Moved prototype to
15923 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15924 return type to bool.
15925 * gdbarch.c: Regenerate.
15926 * gdbarch.h: Regenerate.
15927 * gdbarch.sh (program_breakpoint_here_p): New method.
15928 * infrun.c (handle_signal_stop): Call
15929 gdbarch_program_breakpoint_here_p.
15930
168f8c6b
TT
159312020-01-26 Tom Tromey <tom@tromey.com>
15932
15933 * ctfread.c (struct ctf_fp_info): Reindent.
15934 (_initialize_ctfread): Remove.
15935
128a391f
TT
159362020-01-26 Tom Tromey <tom@tromey.com>
15937
15938 * psymtab.c (partial_map_expand_apply)
15939 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15940 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15941 (psym_print_stats, psym_expand_symtabs_for_function)
15942 (psym_map_symbol_filenames, psym_map_matching_symbols)
15943 (psym_expand_symtabs_matching)
15944 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15945 (maintenance_check_psymtabs): Use new methods.
15946 * psympriv.h (struct partial_symtab) <readin_p,
15947 get_compunit_symtab>: New methods.
15948 <readin, compunit_symtab>: Remove members.
15949 (struct standard_psymtab): New.
15950 (struct legacy_psymtab): Derive from standard_psymtab.
15951 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15952 standard_psymtab.
15953 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15954
0494dbec
TT
159552020-01-26 Tom Tromey <tom@tromey.com>
15956
15957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15958 read_dependencies. Add assert.
15959 * psymtab.c (partial_symtab::read_dependencies): New method.
15960 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15961 method.
15962 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15963 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15964 read_dependencies.
15965 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15966 Add assert.
15967
8566b89b
TT
159682020-01-26 Tom Tromey <tom@tromey.com>
15969
15970 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15971 Call expand_psymtab.
15972 (xcoff_read_symtab): Call expand_psymtab.
15973 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15974 legacy_expand_psymtab.
15975 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15976 method.
15977 (struct legacy_psymtab) <expand_psymtab>: Implement.
15978 <legacy_expand_psymtab>: New member.
15979 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15980 (parse_partial_symbols): Set legacy_expand_psymtab.
15981 (psymtab_to_symtab_1): Change argument order. Call
15982 expand_psymtab.
15983 (new_psymtab): Set legacy_expand_psymtab.
15984 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15985 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15986 expand_psymtab.
15987 (dwarf2_psymtab::expand_psymtab): Rename from
15988 psymtab_to_symtab_1. Call expand_psymtab.
15989 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15990 (dbx_end_psymtab): Likewise.
15991 (dbx_psymtab_to_symtab_1): Change argument order. Call
15992 expand_psymtab.
15993 (dbx_read_symtab): Call expand_psymtab.
15994 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15995 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15996 (ctf_psymtab::read_symtab): Call expand_psymtab.
15997
077cbab2
TT
159982020-01-26 Tom Tromey <tom@tromey.com>
15999
16000 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16001 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16002 messages.
16003 * mdebugread.c (mdebug_read_symtab): Remove prints.
16004 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16005 assert.
16006 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16007
891813be
TT
160082020-01-26 Tom Tromey <tom@tromey.com>
16009
16010 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16011 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16012 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16013 legacy_symtab.
16014 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16015 * psymtab.c (psymtab_to_symtab): Call method.
16016 (dump_psymtab): Update.
16017 * psympriv.h (struct partial_symtab): Add virtual destructor.
16018 <read_symtab>: New method.
16019 (struct legacy_symtab): New.
16020 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16021 (struct pst_map) <pst>: Now a legacy_psymtab.
16022 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16023 (new_psymtab): Use legacy_psymtab.
16024 * dwarf2read.h (struct dwarf2_psymtab): New.
16025 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16026 * dwarf2read.c (dwarf2_create_include_psymtab)
16027 (dwarf2_build_include_psymtabs, create_type_unit_group)
16028 (create_partial_symtab, process_psymtab_comp_unit_reader)
16029 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16030 (set_partial_user): Use dwarf2_psymtab.
16031 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16032 (psymtab_to_symtab_1, process_full_comp_unit)
16033 (process_full_type_unit, dwarf2_ranges_read)
16034 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16035 (dwarf_decode_lines): Use dwarf2_psymtab.
16036 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16037 (add_address_entry_worker, write_one_signatured_type)
16038 (recursively_count_psymbols, recursively_write_psymbols)
16039 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16040 (write_debug_names): Likewise.
16041 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16042 <pst>: Now a legacy_psymtab.
16043 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16044 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16045 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16046 * ctfread.c (struct ctf_psymtab): New.
16047 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16048 ctf_psymtab.
16049 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16050 (create_partial_symtab): Return a ctf_psymtab.
16051 (scan_partial_symbols): Update.
16052
c3693a1d
TT
160532020-01-26 Tom Tromey <tom@tromey.com>
16054
16055 * xcoffread.c (xcoff_start_psymtab): Use new.
16056 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16057 renamed from start_psymtab_common.
16058 * psympriv.h (struct partial_symtab): Add new constructor.
16059 (start_psymtab_common): Don't declare.
16060 * mdebugread.c (parse_partial_symbols): Use new.
16061 * dwarf2read.c (create_partial_symtab): Use new.
16062 * dbxread.c (start_psymtab): Use new.
16063 * ctfread.c (create_partial_symtab): Use new.
16064
32caafd0
TT
160652020-01-26 Tom Tromey <tom@tromey.com>
16066
16067 * xcoffread.c (xcoff_end_psymtab): Use new.
16068 * psymtab.c (start_psymtab_common): Use new.
16069 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16070 Update.
16071 * psympriv.h (struct partial_symtab): Add parameters to
16072 constructor. Don't inline.
16073 (allocate_psymtab): Don't declare.
16074 * mdebugread.c (new_psymtab): Use new.
16075 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16076 * dbxread.c (dbx_end_psymtab): Use new.
16077
abaa2f23
TT
160782020-01-26 Tom Tromey <tom@tromey.com>
16079
16080 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16081 allocate_psymtab. Update documentation.
16082 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16083 allocate_psymtab. Do not use new.
16084 (allocate_psymtab): Use new. Update.
16085
6d94535f
TT
160862020-01-26 Tom Tromey <tom@tromey.com>
16087
16088 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16089 * psymtab.c (psym_print_stats): Update.
16090 * psympriv.h (struct partial_symtab) <readin,
16091 psymtabs_addrmap_supported, anonymous>: Now bool.
16092 * mdebugread.c (psymtab_to_symtab_1): Update.
16093 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16094 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16095 (process_full_comp_unit, process_full_type_unit): Update.
16096 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16097 * ctfread.c (psymtab_to_symtab): Update.
16098
6f17252b
TT
160992020-01-26 Tom Tromey <tom@tromey.com>
16100
16101 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16102 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16103 * psymtab.c (psymtab_storage): Delete psymtabs.
16104 (psymtab_storage::allocate_psymtab): Use new.
16105 (psymtab_storage::discard_psymtab): Use delete.
16106 * psympriv.h (struct partial_symtab): Add constructor and
16107 initializers.
16108
f6f1cebc
TT
161092020-01-26 Tom Tromey <tom@tromey.com>
16110
16111 * machoread.c: Do not include psympriv.h.
16112
e47e48f6
PW
161132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16114
16115 * NEWS: Mention the new option and the set/show commands.
16116
a2fedca9
PW
161172020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16118
16119 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16120 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16121 (validate_exec_file): New variables, enums, functions.
16122 (exec_file_locate_attach, print_section_info): Style the filenames.
16123 (_initialize_exec): Install show_exec_file_mismatch_command and
16124 set_exec_file_mismatch_command.
16125 * gdbcore.h (validate_exec_file): Declare.
16126 * infcmd.c (attach_command): Call validate_exec_file.
16127 * remote.c ( remote_target::remote_add_inferior): Likewise.
16128
7ffa82e1
AB
161292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16130
16131 * frame.c (find_frame_sal): Move call to get_next_frame into more
16132 inner scope.
16133 * inline-frame.c (inilne_state) <inline_state>: Update argument
16134 types.
16135 (inilne_state) <skipped_symbol>: Rename to...
16136 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16137 (skip_inline_frames): Build vector of skipped symbols and use this
16138 to reate the inline_state.
16139 (inline_skipped_symbol): Add a comment and some assertions, fetch
16140 skipped symbol from the list.
16141
3d92a3e3
AB
161422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16143
16144 * buildsym.c (lte_is_less_than): Delete.
16145 (buildsym_compunit::end_symtab_with_blockvector): Create local
16146 lambda function to sort line table entries, and use
16147 std::stable_sort instead of std::sort.
16148 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16149 markers when looking for a previous line.
16150
94a72be7
AB
161512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16152
16153 * dwarf2read.c (lnp_state_machine::record_line): Include
16154 end_sequence parameter in debug print out. Record the line if we
16155 are at an end_sequence marker even if it's not the start of a
16156 statement.
16157 * symmisc.c (maintenance_print_one_line_table): Print end of
16158 sequence markers with 'END' not '0'.
16159
53af73bf
PA
161602020-01-24 Pedro Alves <palves@redhat.com>
16161
16162 PR gdb/25410
16163 * thread.c (scoped_restore_current_thread::restore): Use
16164 switch_to_inferior_no_thread.
16165 * exec.c: Include "progspace-and-thread.h".
16166 (add_target_sections, remove_target_sections):
16167 scoped_restore_current_pspace_and_thread instead of
16168 scoped_restore_current_thread.
16169 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16170 and aspace to the inferior before calling clone_program_space.
16171 Remove stale comment.
16172
3050c6f4
CB
161732020-01-24 Christian Biesinger <cbiesinger@google.com>
16174
16175 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16176 (arm_netbsd_nat_target::fetch_registers): ...this.
16177 (arm_nbsd_nat_target::store_registers): Rename to...
16178 (arm_netbsd_nat_target::store_registers): ...this.
16179
73685c7e
CB
161802020-01-24 Christian Biesinger <cbiesinger@google.com>
16181
16182 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16183 register_t.
16184
89203d40
CB
161852020-01-24 Christian Biesinger <cbiesinger@google.com>
16186
16187 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16188 Update comment.
16189 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16190 Likewise.
16191 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16192 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16193 the correct replacement (iterate_over_regset_sections).
16194 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16195 Update comment.
16196
1ba1ac88
AB
161972020-01-24 Graham Markall <graham.markall@embecosm.com>
16198
16199 PR gdb/23718
16200 * gdb/python/python.c (execute_gdb_command): Call
16201 async_enable_stdin in catch block.
16202
f3364a6d
AB
162032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16204
16205 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16206 SWITCH_THRU_ALL_UIS.
16207
733d0a67
AB
162082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16209
16210 PR tui/9765
16211 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16212 comment, add extra parameter, and update to store previous symbol
16213 when appropriate.
16214 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16215 add extra parameter.
16216 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16217 remove unneeded parameter, add try/catch around gdb_print_insn,
16218 rewrite to add items to asm_lines vector.
16219 (tui_find_backward_disassembly_start_address): New function.
16220 (tui_find_disassembly_address): Updated throughout.
16221 (tui_disasm_window::set_contents): Update for changes to
16222 tui_disassemble.
16223 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16224 number of lines to scroll.
16225
b3b3bada
SM
162262020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16227
16228 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16229 (SECT_OFF_DATA): Likewise.
16230 (SECT_OFF_RODATA): Likewise.
16231 (SECT_OFF_TEXT): Likewise.
16232 (SECT_OFF_BSS): Likewise.
16233 (struct objfile) <text_section_offset, data_section_offset>: New
16234 methods.
16235 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16236 objfile::text_section_offset.
16237 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16238 * coffread.c (coff_symtab_read): Likewise.
16239 (enter_linenos): Likewise.
16240 (process_coff_symbol): Likewise.
16241 * ctfread.c (get_objfile_text_range): Likewise.
16242 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16243 Use objfile::data_section_offset.
16244 * dwarf2-frame.c (execute_cfa_program): Use
16245 objfile::text_section_offset.
16246 (dwarf2_frame_find_fde): Likewise.
16247 * dwarf2read.c (create_addrmap_from_index): Likewise.
16248 (create_addrmap_from_aranges): Likewise.
16249 (dw2_find_pc_sect_compunit_symtab): Likewise.
16250 (process_psymtab_comp_unit_reader): Likewise.
16251 (add_partial_symbol): Likewise.
16252 (add_partial_subprogram): Likewise.
16253 (process_full_comp_unit): Likewise.
16254 (read_file_scope): Likewise.
16255 (read_func_scope): Likewise.
16256 (read_lexical_block_scope): Likewise.
16257 (read_call_site_scope): Likewise.
16258 (dwarf2_rnglists_process): Likewise.
16259 (dwarf2_ranges_process): Likewise.
16260 (dwarf2_ranges_read): Likewise.
16261 (dwarf_decode_lines_1): Likewise.
16262 (new_symbol): Likewise.
16263 (dwarf2_fetch_die_loc_sect_off): Likewise.
16264 (dwarf2_per_cu_text_offset): Likewise.
16265 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16266 * hppa-tdep.c (read_unwind_info): Likewise.
16267 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16268 * psympriv.h (struct partial_symtab): Likewise.
16269 * psymtab.c (find_pc_sect_psymtab): Likewise.
16270 * solib-svr4.c (enable_break): Likewise.
16271 * stap-probe.c (relocate_address): Use
16272 objfile::data_section_offset.
16273 * xcoffread.c (enter_line_range): Use
16274 objfile::text_section_offset.
16275 (read_xcoff_symtab): Likewise.
16276
ab53f382
SM
162772020-01-23 Simon Marchi <simon.marchi@efficios.com>
16278
16279 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16280 declaration to narrower scopes.
16281
e7eee665
SM
162822020-01-23 Simon Marchi <simon.marchi@efficios.com>
16283
16284 * darwin-nat.h (struct darwin_exception_msg, enum
16285 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16286 Move up.
16287 (class darwin_nat_target) <wait_1, check_new_threads,
16288 decode_exception_message, decode_message, stop_inferior,
16289 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16290 * darwin-nat.c (darwin_check_new_threads): Rename to...
16291 (darwin_nat_target::check_new_threads): ... this.
16292 (darwin_suspend_inferior_it): Remove.
16293 (darwin_decode_exception_message): Rename to...
16294 (darwin_nat_target::decode_exception_message): ... this.
16295 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16296 (darwin_decode_message): Rename to...
16297 (darwin_nat_target::decode_message): ... this.
16298 (cancel_breakpoint): Rename to...
16299 (darwin_nat_target::cancel_breakpoint): ... this.
16300 (darwin_wait): Rename to...
16301 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16302 instead of iterate_over_inferiors.
16303 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16304 (darwin_stop_inferior): Rename to...
16305 (darwin_nat_target::stop_inferior): ... this.
16306 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16307 (darwin_init_thread_list): Rename to...
16308 (darwin_nat_target::init_thread_list): ... this.
16309 (darwin_ptrace_him): Rename to...
16310 (darwin_nat_target::ptrace_him): ... this.
16311 (darwin_nat_target::create_inferior): Pass lambda function to
16312 fork_inferior.
16313 (darwin_nat_target::detach): Call stop_inferior instead of
16314 darwin_stop_inferior.
16315 * fork-inferior.h (fork_inferior): Change init_trace_fun
16316 parameter to gdb::function_view.
16317 * fork-inferior.c (fork_inferior): Likewise.
16318
c162ed3e
HD
163192020-01-23 Hannes Domani <ssbssa@yahoo.de>
16320
16321 * i386-cygwin-tdep.c (core_process_module_section): Update.
16322 * windows-nat.c (struct lm_info_windows): Add text_offset.
16323 (windows_xfer_shared_libraries): Update.
16324 * windows-tdep.c (windows_xfer_shared_library):
16325 Add text_offset_cached argument.
16326 * windows-tdep.h (windows_xfer_shared_library): Update.
16327
a1237872
SM
163282020-01-21 Simon Marchi <simon.marchi@efficios.com>
16329
16330 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16331
b3ee6dd9
SM
163322020-01-21 Simon Marchi <simon.marchi@efficios.com>
16333
16334 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16335 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16336 replace with range-based for.
16337 (gdbsim_interrupt_inferior): Remove.
16338 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16339 with a range-based for. Inline code from
16340 gdbsim_interrupt_inferior.
16341
f9fac3c8
SM
163422020-01-21 Simon Marchi <simon.marchi@efficios.com>
16343
16344 * infrun.c (proceed): Fix indentation.
16345
f6474de9
TT
163462020-01-21 Tom Tromey <tromey@adacore.com>
16347
16348 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16349 * python/python.c (python_extension_ops): Update.
16350 (gdbpy_colorize): New function.
16351 * python/lib/gdb/__init__.py (colorize): New function.
16352 * extension.h (ext_lang_colorize): Declare.
16353 * extension.c (ext_lang_colorize): New function.
16354 * extension-priv.h (struct extension_language_ops) <colorize>: New
16355 member.
16356 * cli/cli-style.c (_initialize_cli_style): Update help text.
16357
f0c702d4
LM
163582020-01-21 Luis Machado <luis.machado@linaro.org>
16359
16360 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16361 <cond>: Change type to bool.
16362 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16363 (aarch64_displaced_step_cb): Likewise.
16364 (aarch64_displaced_step_tb): Likewise.
16365
1ab139e5
LM
163662020-01-21 Luis Machado <luis.machado@linaro.org>
16367
16368 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16369 output.
16370
0c271889
LM
163712020-01-21 Luis Machado <luis.machado@linaro.org>
16372
16373 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16374 <pc_adjust>: Adjust the documentation.
16375 (aarch64_displaced_step_fixup): Check if PC really moved before
16376 adjusting it.
16377
4d89c1c7
TT
163782020-01-19 Tom Tromey <tom@tromey.com>
16379
16380 * disasm.c (~gdb_disassembler): New destructor.
16381 (gdb_buffered_insn_length): Call disassemble_free_target.
16382 * disasm.h (class gdb_disassembler): Declare destructor. Use
16383 DISABLE_COPY_AND_ASSIGN.
16384
c0ab21c2
TT
163852020-01-19 Tom Tromey <tom@tromey.com>
16386
16387 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16388 (die_reader_func_ftype): Remove.
16389 (cutu_reader): New class.
16390 (dw2_get_file_names_reader): Remove "data" parameter.
16391 (dw2_get_file_names): Use cutu_reader.
16392 (create_debug_type_hash_table): Update.
16393 (read_cutu_die_from_dwo): Update comment.
16394 (lookup_dwo_unit): Add dwo_name parameter.
16395 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16396 die_reader_func_ftype and data parameters.
16397 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16398 Remove die_reader_func_ftype and data parameters.
16399 (~cutu_reader): New; from init_cutu_and_read_dies.
16400 (cutu_reader::cutu_reader): Rename from
16401 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16402 and data parameters.
16403 (init_cutu_and_read_dies_simple): Remove.
16404 (struct process_psymtab_comp_unit_data): Remove.
16405 (process_psymtab_comp_unit_reader): Remove data parameter; add
16406 want_partial_unit and pretend_language parameters.
16407 (process_psymtab_comp_unit): Use cutu_reader.
16408 (build_type_psymtabs_reader): Remove data parameter.
16409 (build_type_psymtabs_1): Use cutu_reader.
16410 (process_skeletonless_type_unit): Likewise.
16411 (load_partial_comp_unit_reader): Remove.
16412 (load_partial_comp_unit): Use cutu_reader.
16413 (load_full_comp_unit_reader): Remove.
16414 (load_full_comp_unit): Use cutu_reader.
16415 (struct create_dwo_cu_data): Remove.
16416 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16417 dwo_unit parameters.
16418 (create_cus_hash_table): Use cutu_reader.
16419 (struct dwarf2_read_addr_index_data): Remove.
16420 (dwarf2_read_addr_index_reader): Remove.
16421 (dwarf2_read_addr_index): Use cutu_reader.
16422 (read_signatured_type_reader): Remove.
16423 (read_signatured_type): Use cutu_reader.
16424
45bbae5c
TT
164252020-01-19 Tom Tromey <tom@tromey.com>
16426
16427 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16428 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16429 (tui_wrefresh): Declare.
16430 * tui/tui-wingeneral.c (suppress_output): New global.
16431 (tui_suppress_output, ~tui_suppress_output): New constructor and
16432 destructor.
16433 (tui_wrefresh): New function.
16434 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16435 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16436 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16437 method.
16438 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16439 tui_wrefresh.
16440 (tui_data_window::no_refresh): New method.
16441 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16442 (tui_reg_command): Use tui_suppress_output
16443 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16444 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16445 method.
16446 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16447
4f13c1c0
TT
164482020-01-19 Tom Tromey <tom@tromey.com>
16449
16450 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16451 Handle case where symtab is null.
16452
fa47e446
SM
164532020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16454
16455 * linux-fork.c (one_fork_p): Simplify.
16456
26f42329
SM
164572020-01-17 Simon Marchi <simon.marchi@efficios.com>
16458
16459 * top.c (struct qt_args): Remove.
16460 (kill_or_detach): Change return type to void, replace `void *`
16461 parameter with a proper one.
16462 (print_inferior_quit_action): Likewise.
16463 (quit_confirm): Use range-based for loop to iterate over inferiors.
16464 (quit_force): Likewise.
16465
a9ac81b1
SM
164662020-01-17 Simon Marchi <simon.marchi@efficios.com>
16467
16468 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16469 `void *` parameter with proper parameters.
16470 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16471 (print_one_inferior): Change return type to void, replace `void *`
16472 parameter with proper parameters.
16473 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16474 inferiors.
16475 (get_other_inferior): Remove.
16476 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16477 inferiors.
16478
788eca49
SM
164792020-01-17 Simon Marchi <simon.marchi@efficios.com>
16480
16481 * mi/mi-interp.c (report_initial_inferior): Remove.
16482 (mi_interp::init): Use range-based for to iterate over inferiors.
16483
d9bc85b6
SM
164842020-01-17 Simon Marchi <simon.marchi@efficios.com>
16485
16486 * python/py-inferior.c (build_inferior_list): Remove.
16487 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16488
40c94099
CB
164892020-01-16 Christian Biesinger <cbiesinger@google.com>
16490
16491 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16492 (btrace_stitch_trace): Likewise.
16493 * charset.c (intermediate_encoding): Likewise (vaild).
16494 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16495 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16496 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16497
e0cdfe3c
HD
164982020-01-16 Hannes Domani <ssbssa@yahoo.de>
16499
16500 * windows-tdep.c (windows_get_tlb_type):
16501 Add rtl_user_process_parameters type.
16502
790f1718 165032020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16504 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16505
16506 PR build/24805
16507 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16508 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16509 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16510 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16511 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16512 (ps_plog): Redeclare exported functions with default visibility.
16513
3112ed97
NA
165142020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16515
16516 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16517 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16518
8dc3273e
SM
165192020-01-15 Simon Marchi <simon.marchi@efficios.com>
16520
16521 * infcmd.c (post_create_inferior): Use get_thread_regcache
16522 instead of get_current_regcache.
16523
ff47f4f0
TT
165242020-01-14 Tom Tromey <tom@tromey.com>
16525
16526 PR symtab/12535:
16527 * python/python.c (gdbpy_decode_line): Treat empty string the same
16528 as no argument.
16529
975f45b7
TT
165302020-01-14 Tom Tromey <tom@tromey.com>
16531
16532 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16533
25e57356
TT
165342020-01-14 Tom Tromey <tom@tromey.com>
16535
16536 * nat/linux-btrace.c: Don't include <config.h>.
16537 * nat/linux-ptrace.c: Don't include <config.h>.
16538 * nat/x86-linux-dregs.c: Don't include <config.h>.
16539
05ea2a05
TT
165402020-01-14 Tom Tromey <tom@tromey.com>
16541
16542 * configure: Rebuild.
16543 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16544
01027315
TT
165452020-01-14 Tom Tromey <tom@tromey.com>
16546
16547 * nat/x86-linux-dregs.c: Include configh.h.
16548 * nat/linux-ptrace.c: Include configh.h.
16549 * nat/linux-btrace.c: Include configh.h.
16550 * defs.h: Include config.h, bfd.h.
16551 * configure.ac: Don't source common.host.
16552 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16553 * configure: Rebuild.
16554 * acinclude.m4: Update path.
16555 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16556 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16557 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16558 (CLIBS): Add LIBSUPPORT.
16559 (CDEPS): Likewise.
16560 (COMMON_SFILES): Remove gdbsupport files.
16561 (HFILES_NO_SRCDIR): Likewise.
16562 (stamp-version): Update path to create-version.sh.
16563 (ALLDEPFILES): Remove gdbsupport files.
16564
b2ceabe8
TT
165652020-01-14 Tom Tromey <tom@tromey.com>
16566
16567 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16568 USE_WIN32API when needed.
16569 * configure.ac (USE_WIN32API): Don't define.
16570 (WIN32LIBS): Use WIN32APILIBS.
16571 * configure: Rebuild.
16572
25c51f71
TT
165732020-01-14 Tom Tromey <tom@tromey.com>
16574
16575 * configure: Rebuild.
16576 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16577
717c684d
BE
165782020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16579
16580 * skip.c (skip_function_command): Make skip w/o arguments use the
16581 name of the inlined function if pc is inside any inlined function.
16582
7da6a5b9
LM
165832020-01-14 Luis Machado <luis.machado@linaro.org>
16584
16585 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16586 * infrun.c (resume_1): Likewise.
16587 (handle_inferior_event): Remove stale comment.
16588 * linux-nat.c (linux_nat_target::resume): Update comments.
16589 (save_stop_reason): Likewise.
16590 (linux_nat_filter_event): Likewise.
16591 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16592
44e4c775
AB
165932020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16594
16595 * elfread.c (record_minimal_symbol): Set section index to 0 for
16596 non-allocatable sections.
16597
18a8505e
AT
16598
165992020-01-13 Ali Tamur <tamur@google.com>
16600
16601 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16602 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16603 to gdb::optional. Update comments.
16604 (dwo_file): Update comments.
16605 (read_attribute): Update API to take an additional out parameter,
16606 need_reprocess. This is used to mark attributes that need other
16607 attributes (e.g. str_offsets_base) for correct computation which may not
16608 have been read yet.
16609 (read_attribute_reprocess): New function declaration.
16610 (read_addr_index): Likewise.
16611 (read_dwo_str_index): Likewise.
16612 (read_stub_str_index): Likewise.
16613 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16614 (lookup_addr_base): New function definition.
16615 (lookup_ranges_base): Likewise.
16616 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16617 lookup_ranges_base.
16618 (init_cutu_and_read_dies): Update comments.
16619 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16620 unit. This is used to inherit parent's str_offsets_base and addr_base.
16621 Update comments.
16622 (init_cutu_and_read_dies_simple): Reflect API changes.
16623 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16624 (create_cus_hash_table): Change API to take parent compile unit.
16625 Reflect API changes.
16626 (open_and_init_dwo_file): Reflect API changes.
16627 (dwarf2_get_pc_bounds): Update comments.
16628 (dwarf2_record_block_ranges): Likewise.
16629 (read_full_die_1): Change implementation to reprocess attributes that
16630 need str_offsets_base and addr_base.
16631 (partial_die_info::read): Likewise.
16632 (read_attribute_reprocess): New function definition.
16633 (read_attribute_value): Change API to take an additional out parameter,
16634 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16635 when a non-dwo compile unit has index based attributes.
16636 (read_attribute): Reflect API changes.
16637 (read_addr_index_1): Reflect API changes. Update comments.
16638 (dwarf2_read_addr_index_data): Reflect API changes.
16639 (dwarf2_read_addr_index): Likewise.
16640 (read_str_index): Change API and implementation. This becomes a helper
16641 to be used by the new string index related methods. Update error
16642 message and comments.
16643 (read_dwo_str_index): New function definition.
16644 (read_stub_str_index): Likewise.
16645 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16646 * symfile.h (dwarf2_debug_sections): Likewise.
16647 * xcoffread.c (dwarf2_debug_sections): Likewise.
16648
0cac9354
SM
166492020-01-13 Simon Marchi <simon.marchi@efficios.com>
16650
16651 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16652 core_reg_sect type to gdb_byte *.
16653 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16654 * cris-tdep.c (fetch_core_registers): Likewise.
16655 * corelow.c (core_target::get_core_register_section): Change
16656 type of `contents` to gdb::byte_vector.
16657
9a6d629c
AB
166582020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16659
16660 * tui/tui-wingeneral.c (box_win): Position the title in the center
16661 of the border.
16662
d8b2f9e3
SM
166632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16664
16665 * corelow.c (core_target::get_core_register_section): Use
16666 std::vector instead of alloca.
16667
bb564c58
SM
166682020-01-13 Simon Marchi <simon.marchi@efficios.com>
16669
16670 * warning.m4: Add -Wmissing-declarations to build_warnings.
16671 * configure: Re-generate.
16672
6b366111
SM
166732020-01-13 Simon Marchi <simon.marchi@efficios.com>
16674
16675 * python/python.c (init__gdb_module): Add declaration.
16676
6c265988
SM
166772020-01-13 Simon Marchi <simon.marchi@efficios.com>
16678
16679 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16680 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16681 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16682 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16683 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16684 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16685 * ada-exp.y (_initialize_ada_exp): Add declaration.
16686 * ada-lang.c (_initialize_ada_language): Add declaration.
16687 * ada-tasks.c (_initialize_tasks): Add declaration.
16688 * agent.c (_initialize_agent): Add declaration.
16689 * aix-thread.c (_initialize_aix_thread): Add declaration.
16690 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16691 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16692 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16693 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16694 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16695 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16696 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16697 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16698 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16699 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16700 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16701 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16702 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16703 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16704 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16705 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16706 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16707 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16708 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16709 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16710 * annotate.c (_initialize_annotate): Add declaration.
16711 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16712 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16713 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16714 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16715 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16716 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16717 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16718 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16719 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16720 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16721 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16722 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16723 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16724 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16725 * auto-load.c (_initialize_auto_load): Add declaration.
16726 * auxv.c (_initialize_auxv): Add declaration.
16727 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16728 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16729 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16730 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16731 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16732 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16733 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16734 * breakpoint.c (_initialize_breakpoint): Add declaration.
16735 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16736 * btrace.c (_initialize_btrace): Add declaration.
16737 * charset.c (_initialize_charset): Add declaration.
16738 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16739 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16740 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16741 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16742 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16743 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16744 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16745 * coffread.c (_initialize_coffread): Add declaration.
16746 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16747 * compile/compile.c (_initialize_compile): Add declaration.
16748 * complaints.c (_initialize_complaints): Add declaration.
16749 * completer.c (_initialize_completer): Add declaration.
16750 * copying.c (_initialize_copying): Add declaration.
16751 * corefile.c (_initialize_core): Add declaration.
16752 * corelow.c (_initialize_corelow): Add declaration.
16753 * cp-abi.c (_initialize_cp_abi): Add declaration.
16754 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16755 * cp-support.c (_initialize_cp_support): Add declaration.
16756 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16757 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16758 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16759 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16760 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16761 * ctfread.c (_initialize_ctfread): Add declaration.
16762 * d-lang.c (_initialize_d_language): Add declaration.
16763 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16764 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16765 * dbxread.c (_initialize_dbxread): Add declaration.
16766 * dcache.c (_initialize_dcache): Add declaration.
16767 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16768 * disasm.c (_initialize_disasm): Add declaration.
16769 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16770 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16771 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16772 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16773 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16774 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16775 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16776 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16777 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16778 * elfread.c (_initialize_elfread): Add declaration.
16779 * exec.c (_initialize_exec): Add declaration.
16780 * extension.c (_initialize_extension): Add declaration.
16781 * f-lang.c (_initialize_f_language): Add declaration.
16782 * f-valprint.c (_initialize_f_valprint): Add declaration.
16783 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16784 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16785 * filesystem.c (_initialize_filesystem): Add declaration.
16786 * findcmd.c (_initialize_mem_search): Add declaration.
16787 * findvar.c (_initialize_findvar): Add declaration.
16788 * fork-child.c (_initialize_fork_child): Add declaration.
16789 * frame-base.c (_initialize_frame_base): Add declaration.
16790 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16791 * frame.c (_initialize_frame): Add declaration.
16792 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16793 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16794 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16795 * gcore.c (_initialize_gcore): Add declaration.
16796 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16797 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16798 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16799 * gdbarch.c (_initialize_gdbarch): Add declaration.
16800 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16801 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16802 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16803 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16804 * go-lang.c (_initialize_go_language): Add declaration.
16805 * go32-nat.c (_initialize_go32_nat): Add declaration.
16806 * guile/guile.c (_initialize_guile): Add declaration.
16807 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16808 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16809 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16810 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16811 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16812 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16813 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16814 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16815 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16816 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16817 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16818 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16819 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16820 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16821 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16822 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16823 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16824 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16825 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16826 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16827 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16828 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16829 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16830 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16831 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16832 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16833 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16834 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16835 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16836 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16837 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16838 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16839 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16840 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16841 * infcall.c (_initialize_infcall): Add declaration.
16842 * infcmd.c (_initialize_infcmd): Add declaration.
16843 * inflow.c (_initialize_inflow): Add declaration.
16844 * infrun.c (_initialize_infrun): Add declaration.
16845 * interps.c (_initialize_interpreter): Add declaration.
16846 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16847 * jit.c (_initialize_jit): Add declaration.
16848 * language.c (_initialize_language): Add declaration.
16849 * linux-fork.c (_initialize_linux_fork): Add declaration.
16850 * linux-nat.c (_initialize_linux_nat): Add declaration.
16851 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16852 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16853 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16854 * m2-lang.c (_initialize_m2_language): Add declaration.
16855 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16856 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16857 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16858 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16859 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16860 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16861 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16862 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16863 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16864 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16865 * machoread.c (_initialize_machoread): Add declaration.
16866 * macrocmd.c (_initialize_macrocmd): Add declaration.
16867 * macroscope.c (_initialize_macroscope): Add declaration.
16868 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16869 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16870 * maint.c (_initialize_maint_cmds): Add declaration.
16871 * mdebugread.c (_initialize_mdebugread): Add declaration.
16872 * memattr.c (_initialize_mem): Add declaration.
16873 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16874 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16875 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16876 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16877 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16878 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16879 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16880 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16881 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16882 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16883 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16884 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16885 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16886 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16887 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16888 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16889 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16890 * mipsread.c (_initialize_mipsread): Add declaration.
16891 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16892 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16893 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16894 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16895 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16896 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16897 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16898 * nto-procfs.c (_initialize_procfs): Add declaration.
16899 * objc-lang.c (_initialize_objc_language): Add declaration.
16900 * observable.c (_initialize_observer): Add declaration.
16901 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16902 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16903 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16904 * osabi.c (_initialize_gdb_osabi): Add declaration.
16905 * osdata.c (_initialize_osdata): Add declaration.
16906 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16907 * parse.c (_initialize_parse): Add declaration.
16908 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16909 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16910 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16911 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16912 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16913 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16914 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16915 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16916 * printcmd.c (_initialize_printcmd): Add declaration.
16917 * probe.c (_initialize_probe): Add declaration.
16918 * proc-api.c (_initialize_proc_api): Add declaration.
16919 * proc-events.c (_initialize_proc_events): Add declaration.
16920 * proc-service.c (_initialize_proc_service): Add declaration.
16921 * procfs.c (_initialize_procfs): Add declaration.
16922 * producer.c (_initialize_producer): Add declaration.
16923 * psymtab.c (_initialize_psymtab): Add declaration.
16924 * python/python.c (_initialize_python): Add declaration.
16925 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16926 * record-btrace.c (_initialize_record_btrace): Add declaration.
16927 * record-full.c (_initialize_record_full): Add declaration.
16928 * record.c (_initialize_record): Add declaration.
16929 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16930 * regcache.c (_initialize_regcache): Add declaration.
16931 * reggroups.c (_initialize_reggroup): Add declaration.
16932 * remote-notif.c (_initialize_notif): Add declaration.
16933 * remote-sim.c (_initialize_remote_sim): Add declaration.
16934 * remote.c (_initialize_remote): Add declaration.
16935 * reverse.c (_initialize_reverse): Add declaration.
16936 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16937 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16938 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16939 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16940 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16941 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16942 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16943 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16944 Add declaration.
16945 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16946 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16947 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16948 * rust-exp.y (_initialize_rust_exp): Add declaration.
16949 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16950 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16951 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16952 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16953 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16954 * score-tdep.c (_initialize_score_tdep): Add declaration.
16955 * ser-go32.c (_initialize_ser_dos): Add declaration.
16956 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16957 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16958 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16959 * ser-uds.c (_initialize_ser_socket): Add declaration.
16960 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16961 * serial.c (_initialize_serial): Add declaration.
16962 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16963 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16964 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16965 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16966 * skip.c (_initialize_step_skip): Add declaration.
16967 * sol-thread.c (_initialize_sol_thread): Add declaration.
16968 * solib-aix.c (_initialize_solib_aix): Add declaration.
16969 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16970 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16971 * solib-frv.c (_initialize_frv_solib): Add declaration.
16972 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16973 * solib-target.c (_initialize_solib_target): Add declaration.
16974 * solib.c (_initialize_solib): Add declaration.
16975 * source-cache.c (_initialize_source_cache): Add declaration.
16976 * source.c (_initialize_source): Add declaration.
16977 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16978 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16979 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16980 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16981 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16982 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16983 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16984 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16985 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16986 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16987 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16988 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16989 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16990 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16991 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16992 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16993 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16994 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16995 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16996 * stabsread.c (_initialize_stabsread): Add declaration.
16997 * stack.c (_initialize_stack): Add declaration.
16998 * stap-probe.c (_initialize_stap_probe): Add declaration.
16999 * std-regs.c (_initialize_frame_reg): Add declaration.
17000 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17001 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17002 * symfile.c (_initialize_symfile): Add declaration.
17003 * symmisc.c (_initialize_symmisc): Add declaration.
17004 * symtab.c (_initialize_symtab): Add declaration.
17005 * target.c (_initialize_target): Add declaration.
17006 * target-connection.c (_initialize_target_connection): Add
17007 declaration.
17008 * target-dcache.c (_initialize_target_dcache): Add declaration.
17009 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17010 * thread.c (_initialize_thread): Add declaration.
17011 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17012 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17013 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17014 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17015 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17016 * tracectf.c (_initialize_ctf): Add declaration.
17017 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17018 * tracefile.c (_initialize_tracefile): Add declaration.
17019 * tracepoint.c (_initialize_tracepoint): Add declaration.
17020 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17021 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17022 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17023 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17024 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17025 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17026 * tui/tui.c (_initialize_tui): Add declaration.
17027 * typeprint.c (_initialize_typeprint): Add declaration.
17028 * ui-style.c (_initialize_ui_style): Add declaration.
17029 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17030 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17031 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17032 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17033 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17034 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17035 * unittests/filtered_iterator-selftests.c
17036 (_initialize_filtered_iterator_selftests): Add declaration.
17037 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17038 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17039 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17040 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17041 * unittests/main-thread-selftests.c
17042 (_initialize_main_thread_selftests): Add declaration.
17043 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17044 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17045 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17046 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17047 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17048 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17049 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17050 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17051 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17052 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17053 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17054 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17055 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17056 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17057 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17058 declaration.
17059 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17060 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17061 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17062 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17063 * user-regs.c (_initialize_user_regs): Add declaration.
17064 * utils.c (_initialize_utils): Add declaration.
17065 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17066 * valops.c (_initialize_valops): Add declaration.
17067 * valprint.c (_initialize_valprint): Add declaration.
17068 * value.c (_initialize_values): Add declaration.
17069 * varobj.c (_initialize_varobj): Add declaration.
17070 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17071 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17072 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17073 * windows-nat.c (_initialize_windows_nat): Add declaration.
17074 (_initialize_check_for_gdb_ini): Add declaration.
17075 (_initialize_loadable): Add declaration.
17076 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17077 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17078 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17079 * xcoffread.c (_initialize_xcoffread): Add declaration.
17080 * xml-support.c (_initialize_xml_support): Add declaration.
17081 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17082 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17083 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17084 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17085
e2de1eec
SM
170862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17087
17088 * regformats/regdat.sh: Generate declaration for init function.
17089
e0037b4c
SM
170902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17091
17092 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17093 up.
17094 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17095 close_one_inferior>: New methods.
17096 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17097 pass down target to find_inferior_pid.
17098 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17099 Pass down target to find_inferior_ptid.
17100 (gdbsim_target::create_inferior): Pass down target to
17101 add_thread_silent.
17102 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17103 target down to find_inferior_ptid and switch_to_thread.
17104 (gdbsim_target::close): Update to call close_one_inferior.
17105 (struct resume_data): Remove.
17106 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17107 directly, rather than through a void pointer.
17108 (gdbsim_target::resume): Update to call resume_one_inferior.
17109
58920b5b
SM
171102020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17111
17112 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17113
4ec89149
PA
171142020-01-12 Pedro Alves <palves@redhat.com>
17115
17116 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17117 directly for the current inferior instead of
17118 discard_all_inferiors.
17119 (discard_all_inferiors): Delete.
17120
7c392d1d
TT
171212020-01-11 Tom Tromey <tom@tromey.com>
17122
17123 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17124 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17125 deprecated_safe_get_selected_frame.
17126
d9ebdab7
TBA
171272020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17128
17129 * inferior.c (print_inferior): Switch inferior before printing it.
17130
f3c469b9
PA
171312020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17132 Pedro Alves <palves@redhat.com>
17133
17134 * progspace-and-thread.c (switch_to_program_space_and_thread):
17135 Assert there's an inferior for PSPACE. Use
17136 switch_to_inferior_no_thread to switch the inferior too.
17137 * progspace.c (program_space::~program_space): Call
17138 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17139 (program_space::free_all_objfiles): Don't call clear_symtab_users
17140 here.
17141 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17142
65c574f6
PA
171432020-01-10 Pedro Alves <palves@redhat.com>
17144
17145 * NEWS: Mention multi-target debugging, "info connections", and
17146 "add-inferior -no-connection".
17147
2f4fcf00
PA
171482020-01-10 Pedro Alves <palves@redhat.com>
17149
17150 * infrun.c: Include "target-connection.h".
17151 (check_multi_target_resumption): New.
17152 (proceed): Call it.
17153 * target-connection.c (make_target_connection_string): Make
17154 extern.
17155 * target-connection.h (make_target_connection_string): Declare.
17156
121b3efd
PA
171572020-01-10 Pedro Alves <palves@redhat.com>
17158
17159 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17160 * inferior.c (uiout_field_connection): New function.
17161 (print_inferior): Add new "connection-id" column.
17162 (add_inferior_command): Show connection number/string of added
17163 inferior.
17164 * process-stratum-target.h
17165 (process_stratum_target::connection_string): New virtual method.
17166 (process_stratum_target::connection_number): New field.
17167 * remote.c (remote_target::connection_string): New override.
17168 * target-connection.c: New file.
17169 * target-connection.h: New file.
17170 * target.c (decref_target): Remove process_stratum targets from
17171 the connection list.
17172 (target_stack::push): Add process_stratum targets to the
17173 connection list.
17174
4f837581
PA
171752020-01-10 Pedro Alves <palves@redhat.com>
17176
17177 Revert:
17178 2016-04-12 Pedro Alves <palves@redhat.com>
17179 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17180 Remove references to name.
17181 * serial.h (struct serial) <name>: Delete.
17182
f4ec508e
PA
171832020-01-10 Pedro Alves <palves@redhat.com>
17184
17185 * gdbarch-selftests.c (register_to_value_test): Remove "target
17186 already pushed" check.
17187
5b6d1e4f
PA
171882020-01-10 Pedro Alves <palves@redhat.com>
17189 John Baldwin <jhb@FreeBSD.org>
17190
17191 * aarch64-linux-nat.c
17192 (aarch64_linux_nat_target::thread_architecture): Adjust.
17193 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17194 (task_command_1): Likewise.
17195 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17196 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17197 (aix_thread_target::store_registers)
17198 (aix_thread_target::thread_alive): Adjust.
17199 * amd64-fbsd-tdep.c: Include "inferior.h".
17200 (amd64fbsd_get_thread_local_address): Pass down target.
17201 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17202 thread's gdbarch instead of target_gdbarch.
17203 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17204 get_last_target_status.
17205 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17206 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17207 inferiors.
17208 (update_inserted_breakpoint_locations): Skip if inferiors with no
17209 execution.
17210 (update_global_location_list): When handling moribund locations,
17211 find representative inferior for location's pspace, and use thread
17212 count of its process_stratum target.
17213 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17214 * bsd-uthread.c (bsd_uthread_target::wait): Use
17215 as_process_stratum_target and adjust thread_change_ptid and
17216 add_thread calls.
17217 (bsd_uthread_target::update_thread_list): Use
17218 as_process_stratum_target and adjust find_thread_ptid,
17219 thread_change_ptid and add_thread calls.
17220 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17221 find_thread_ptid call.
17222 * corelow.c (add_to_thread_list): Adjust add_thread call.
17223 (core_target_open): Adjust add_thread_silent and thread_count
17224 calls.
17225 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17226 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17227 * event-top.c (async_disconnect): Pop targets from all inferiors.
17228 * exec.c (add_target_sections): Push exec target on all inferiors
17229 sharing the program space.
17230 (remove_target_sections): Remove the exec target from all
17231 inferiors sharing the program space.
17232 (exec_on_vfork): New.
17233 * exec.h (exec_on_vfork): Declare.
17234 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17235 Pass it down.
17236 (fbsd_nat_target::update_thread_list): Adjust.
17237 (fbsd_nat_target::resume): Adjust.
17238 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17239 down.
17240 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17241 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17242 get_thread_arch_regcache call.
17243 * fork-child.c (gdb_startup_inferior): Pass target down to
17244 startup_inferior and set_executing.
17245 * gdbthread.h (struct process_stratum_target): Forward declare.
17246 (add_thread, add_thread_silent, add_thread_with_info)
17247 (in_thread_list): Add process_stratum_target parameter.
17248 (find_thread_ptid(inferior*, ptid_t)): New overload.
17249 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17250 parameter.
17251 (all_threads()): Delete overload.
17252 (all_threads, all_non_exited_threads): Add process_stratum_target
17253 parameter.
17254 (all_threads_safe): Use brace initialization.
17255 (thread_count): Add process_stratum_target parameter.
17256 (set_resumed, set_running, set_stop_requested, set_executing)
17257 (threads_are_executing, finish_thread_state): Add
17258 process_stratum_target parameter.
17259 (switch_to_thread): Use is_current_thread.
17260 * i386-fbsd-tdep.c: Include "inferior.h".
17261 (i386fbsd_get_thread_local_address): Pass down target.
17262 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17263 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17264 have_inferiors check.
17265 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17266 (inf_ptrace_target::attach): Adjust.
17267 * infcall.c (run_inferior_call): Adjust.
17268 * infcmd.c (run_command_1): Pass target to
17269 scoped_finish_thread_state.
17270 (proceed_thread_callback): Skip inferiors with no execution.
17271 (continue_command): Rename 'all_threads' local to avoid hiding
17272 'all_threads' function. Adjust get_last_target_status call.
17273 (prepare_one_step): Adjust set_running call.
17274 (signal_command): Use user_visible_resume_target. Compare thread
17275 pointers instead of inferior_ptid.
17276 (info_program_command): Adjust to pass down target.
17277 (attach_command): Mark target's 'thread_executing' flag.
17278 (stop_current_target_threads_ns): New, factored out from ...
17279 (interrupt_target_1): ... this. Switch inferior before making
17280 target calls.
17281 * inferior-iter.h
17282 (struct all_inferiors_iterator, struct all_inferiors_range)
17283 (struct all_inferiors_safe_range)
17284 (struct all_non_exited_inferiors_range): Filter on
17285 process_stratum_target too. Remove explicit.
17286 * inferior.c (inferior::inferior): Push dummy target on target
17287 stack.
17288 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17289 Add process_stratum_target parameter, and pass it down.
17290 (have_live_inferiors): Adjust.
17291 (switch_to_inferior_and_push_target): New.
17292 (add_inferior_command, clone_inferior_command): Handle
17293 "-no-connection" parameter. Use
17294 switch_to_inferior_and_push_target.
17295 (_initialize_inferior): Mention "-no-connection" option in
17296 the help of "add-inferior" and "clone-inferior" commands.
17297 * inferior.h: Include "process-stratum-target.h".
17298 (interrupt_target_1): Use bool.
17299 (struct inferior) <push_target, unpush_target, target_is_pushed,
17300 find_target_beneath, top_target, process_target, target_at,
17301 m_stack>: New.
17302 (discard_all_inferiors): Delete.
17303 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17304 (all_inferiors, all_non_exited_inferiors): Add
17305 process_stratum_target parameter.
17306 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17307 (target_last_proc_target): New global.
17308 (follow_fork_inferior): Push target on new inferior. Pass target
17309 to add_thread_silent. Call exec_on_vfork. Handle target's
17310 reference count.
17311 (follow_fork): Adjust get_last_target_status call. Also consider
17312 target.
17313 (follow_exec): Push target on new inferior.
17314 (struct execution_control_state) <target>: New field.
17315 (user_visible_resume_target): New.
17316 (do_target_resume): Call target_async.
17317 (resume_1): Set target's threads_executing flag. Consider resume
17318 target.
17319 (commit_resume_all_targets): New.
17320 (proceed): Also consider resume target. Skip threads of inferiors
17321 with no execution. Commit resumtion in all targets.
17322 (start_remote): Pass current inferior to wait_for_inferior.
17323 (infrun_thread_stop_requested): Consider target as well. Pass
17324 thread_info pointer to clear_inline_frame_state instead of ptid.
17325 (infrun_thread_thread_exit): Consider target as well.
17326 (random_pending_event_thread): New inferior parameter. Use it.
17327 (do_target_wait): Rename to ...
17328 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17329 down.
17330 (threads_are_resumed_pending_p, do_target_wait): New.
17331 (prepare_for_detach): Adjust calls.
17332 (wait_for_inferior): New inferior parameter. Handle it. Use
17333 do_target_wait_1 instead of do_target_wait.
17334 (fetch_inferior_event): Adjust. Switch to representative
17335 inferior. Pass target down.
17336 (set_last_target_status): Add process_stratum_target parameter.
17337 Save target in global.
17338 (get_last_target_status): Add process_stratum_target parameter and
17339 handle it.
17340 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17341 (context_switch): Check inferior_ptid == null_ptid before calling
17342 inferior_thread().
17343 (get_inferior_stop_soon): Pass down target.
17344 (wait_one): Rename to ...
17345 (poll_one_curr_target): ... this.
17346 (struct wait_one_event): New.
17347 (wait_one): New.
17348 (stop_all_threads): Adjust.
17349 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17350 event's target.
17351 (switch_back_to_stepped_thread): Also consider target.
17352 (print_stop_event): Update.
17353 (normal_stop): Update. Also consider the resume target.
17354 * infrun.h (wait_for_inferior): Remove declaration.
17355 (user_visible_resume_target): New declaration.
17356 (get_last_target_status, set_last_target_status): New
17357 process_stratum_target parameter.
17358 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17359 process_stratum_target parameter, and use it.
17360 (clear_inline_frame_state (thread_info*)): New.
17361 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17362 process_stratum_target parameter.
17363 (clear_inline_frame_state (thread_info*)): Declare.
17364 * linux-fork.c (delete_checkpoint_command): Pass target down to
17365 find_thread_ptid.
17366 (checkpoint_command): Adjust.
17367 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17368 instead of just tweaking inferior_ptid.
17369 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17370 (exit_lwp): Pass target down to find_thread_ptid.
17371 (attach_proc_task_lwp_callback): Pass target down to
17372 add_thread/set_running/set_executing.
17373 (linux_nat_target::attach): Pass target down to
17374 thread_change_ptid.
17375 (get_detach_signal): Pass target down to find_thread_ptid.
17376 Consider last target status's target.
17377 (linux_resume_one_lwp_throw, resume_lwp)
17378 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17379 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17380 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17381 (linux_nat_target::async_wait_fd): New.
17382 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17383 target down.
17384 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17385 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17386 * linux-thread-db.c (struct thread_db_info::process_target): New
17387 field.
17388 (add_thread_db_info): Save target.
17389 (get_thread_db_info): New process_stratum_target parameter. Also
17390 match target.
17391 (delete_thread_db_info): New process_stratum_target parameter.
17392 Also match target.
17393 (thread_from_lwp): Adjust to pass down target.
17394 (thread_db_notice_clone): Pass down target.
17395 (check_thread_db_callback): Pass down target.
17396 (try_thread_db_load_1): Always push the thread_db target.
17397 (try_thread_db_load, record_thread): Pass target down.
17398 (thread_db_target::detach): Pass target down. Always unpush the
17399 thread_db target.
17400 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17401 target down. Always unpush the thread_db target.
17402 (find_new_threads_callback, thread_db_find_new_threads_2)
17403 (thread_db_target::update_thread_list): Pass target down.
17404 (thread_db_target::pid_to_str): Pass current inferior down.
17405 (thread_db_target::get_thread_local_address): Pass target down.
17406 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17407 target down.
17408 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17409 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17410 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17411 (procfs_init_inferior): Rename to ...
17412 (procfs_target::procfs_init_inferior): ... this and adjust.
17413 (procfs_target::create_inferior, procfs_notice_thread)
17414 (procfs_do_thread_registers): Adjust.
17415 * ppc-fbsd-tdep.c: Include "inferior.h".
17416 (ppcfbsd_get_thread_local_address): Pass down target.
17417 * proc-service.c (ps_xfer_memory): Switch current inferior and
17418 program space as well.
17419 (get_ps_regcache): Pass target down.
17420 * process-stratum-target.c
17421 (process_stratum_target::thread_address_space)
17422 (process_stratum_target::thread_architecture): Pass target down.
17423 * process-stratum-target.h
17424 (process_stratum_target::threads_executing): New field.
17425 (as_process_stratum_target): New.
17426 * ravenscar-thread.c
17427 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17428 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17429 down.
17430 * record-btrace.c (record_btrace_target::info_record): Adjust.
17431 (record_btrace_target::record_method)
17432 (record_btrace_target::record_is_replaying)
17433 (record_btrace_target::fetch_registers)
17434 (get_thread_current_frame_id, record_btrace_target::resume)
17435 (record_btrace_target::wait, record_btrace_target::stop): Pass
17436 target down.
17437 * record-full.c (record_full_wait_1): Switch to event thread.
17438 Pass target down.
17439 * regcache.c (regcache::regcache)
17440 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17441 process_stratum_target parameter and handle it.
17442 (current_thread_target): New global.
17443 (get_thread_regcache): Add process_stratum_target parameter and
17444 handle it. Switch inferior before calling target method.
17445 (get_thread_regcache): Pass target down.
17446 (get_thread_regcache_for_ptid): Pass target down.
17447 (registers_changed_ptid): Add process_stratum_target parameter and
17448 handle it.
17449 (registers_changed_thread, registers_changed): Pass target down.
17450 (test_get_thread_arch_aspace_regcache): New.
17451 (current_regcache_test): Define a couple local test_target_ops
17452 instances and use them for testing.
17453 (readwrite_regcache): Pass process_stratum_target parameter.
17454 (cooked_read_test, cooked_write_test): Pass mock_target down.
17455 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17456 (get_thread_arch_aspace_regcache): Add process_stratum_target
17457 parameter.
17458 (regcache::target): New method.
17459 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17460 (regcache::registers_changed_ptid): Add process_stratum_target
17461 parameter.
17462 (regcache::m_target): New field.
17463 (registers_changed_ptid): Add process_stratum_target parameter.
17464 * remote.c (remote_state::supports_vCont_probed): New field.
17465 (remote_target::async_wait_fd): New method.
17466 (remote_unpush_and_throw): Add remote_target parameter.
17467 (get_current_remote_target): Adjust.
17468 (remote_target::remote_add_inferior): Push target.
17469 (remote_target::remote_add_thread)
17470 (remote_target::remote_notice_new_inferior)
17471 (get_remote_thread_info): Pass target down.
17472 (remote_target::update_thread_list): Skip threads of inferiors
17473 bound to other targets. (remote_target::close): Don't discard
17474 inferiors. (remote_target::add_current_inferior_and_thread)
17475 (remote_target::process_initial_stop_replies)
17476 (remote_target::start_remote)
17477 (remote_target::remote_serial_quit_handler): Pass down target.
17478 (remote_target::remote_unpush_target): New remote_target
17479 parameter. Unpush the target from all inferiors.
17480 (remote_target::remote_unpush_and_throw): New remote_target
17481 parameter. Pass it down.
17482 (remote_target::open_1): Check whether the current inferior has
17483 execution instead of checking whether any inferior is live. Pass
17484 target down.
17485 (remote_target::remote_detach_1): Pass down target. Use
17486 remote_unpush_target.
17487 (extended_remote_target::attach): Pass down target.
17488 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17489 (remote_target::append_resumption): Pass down target.
17490 (remote_target::append_pending_thread_resumptions)
17491 (remote_target::remote_resume_with_hc, remote_target::resume)
17492 (remote_target::commit_resume): Pass down target.
17493 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17494 (remote_target::interrupt_query)
17495 (remote_target::remove_new_fork_children)
17496 (remote_target::check_pending_events_prevent_wildcard_vcont)
17497 (remote_target::remote_parse_stop_reply)
17498 (remote_target::process_stop_reply): Pass down target.
17499 (first_remote_resumed_thread): New remote_target parameter. Pass
17500 it down.
17501 (remote_target::wait_as): Pass down target.
17502 (unpush_and_perror): New remote_target parameter. Pass it down.
17503 (remote_target::readchar, remote_target::remote_serial_write)
17504 (remote_target::getpkt_or_notif_sane_1)
17505 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17506 down target.
17507 (remote_target::mourn_inferior): Pass down target. Use
17508 remote_unpush_target.
17509 (remote_target::core_of_thread)
17510 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17511 (remote_target::pid_to_exec_file)
17512 (remote_target::thread_handle_to_thread_info): Pass down target.
17513 (remote_target::async_wait_fd): New.
17514 * riscv-fbsd-tdep.c: Include "inferior.h".
17515 (riscv_fbsd_get_thread_local_address): Pass down target.
17516 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17517 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17518 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17519 Adjust.
17520 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17521 * solib-svr4.c (enable_break): Pass down target.
17522 * spu-multiarch.c (parse_spufs_run): Pass down target.
17523 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17524 * target-delegates.c: Regenerate.
17525 * target.c (g_target_stack): Delete.
17526 (current_top_target): Return the current inferior's top target.
17527 (target_has_execution_1): Refer to the passed-in inferior's top
17528 target.
17529 (target_supports_terminal_ours): Check whether the initial
17530 inferior was already created.
17531 (decref_target): New.
17532 (target_stack::push): Incref/decref the target.
17533 (push_target, push_target, unpush_target): Adjust.
17534 (target_stack::unpush): Defref target.
17535 (target_is_pushed): Return bool. Adjust to refer to the current
17536 inferior's target stack.
17537 (dispose_inferior): Delete, and inline parts ...
17538 (target_preopen): ... here. Only dispose of the current inferior.
17539 (target_detach): Hold strong target reference while detaching.
17540 Pass target down.
17541 (target_thread_name): Add assertion.
17542 (target_resume): Pass down target.
17543 (target_ops::beneath, find_target_at): Adjust to refer to the
17544 current inferior's target stack.
17545 (get_dummy_target): New.
17546 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17547 has a thread running.
17548 (initialize_targets): Rename to ...
17549 (_initialize_target): ... this.
17550 * target.h: Include "gdbsupport/refcounted-object.h".
17551 (struct target_ops): Inherit refcounted_object.
17552 (target_ops::shortname, target_ops::longname): Make const.
17553 (target_ops::async_wait_fd): New method.
17554 (decref_target): Declare.
17555 (struct target_ops_ref_policy): New.
17556 (target_ops_ref): New typedef.
17557 (get_dummy_target): Declare function.
17558 (target_is_pushed): Return bool.
17559 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17560 (all_matching_threads_iterator::all_matching_threads_iterator):
17561 Handle filter target.
17562 * thread-iter.h (struct all_matching_threads_iterator, struct
17563 all_matching_threads_range, class all_non_exited_threads_range):
17564 Filter by target too. Remove explicit.
17565 * thread.c (threads_executing): Delete.
17566 (inferior_thread): Pass down current inferior.
17567 (clear_thread_inferior_resources): Pass down thread pointer
17568 instead of ptid_t.
17569 (add_thread_silent, add_thread_with_info, add_thread): Add
17570 process_stratum_target parameter. Use it for thread and inferior
17571 searches.
17572 (is_current_thread): New.
17573 (thread_info::deletable): Use it.
17574 (find_thread_ptid, thread_count, in_thread_list)
17575 (thread_change_ptid, set_resumed, set_running): New
17576 process_stratum_target parameter. Pass it down.
17577 (set_executing): New process_stratum_target parameter. Pass it
17578 down. Adjust reference to 'threads_executing'.
17579 (threads_are_executing): New process_stratum_target parameter.
17580 Adjust reference to 'threads_executing'.
17581 (set_stop_requested, finish_thread_state): New
17582 process_stratum_target parameter. Pass it down.
17583 (switch_to_thread): Also match inferior.
17584 (switch_to_thread): New process_stratum_target parameter. Pass it
17585 down.
17586 (update_threads_executing): Reimplement.
17587 * top.c (quit_force): Pop targets from all inferior.
17588 (gdb_init): Don't call initialize_targets.
17589 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17590 Declare.
17591 (windows_add_thread, windows_delete_thread): Adjust.
17592 (get_windows_debug_event): Rename to ...
17593 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17594 * tracefile-tfile.c (tfile_target_open): Pass down target.
17595 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17596 Forward declare.
17597 (switch_to_thread): Add process_stratum_target parameter.
17598 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17599 parameter. Use it.
17600 (mi_on_resume): Pass target down.
17601 * nat/fork-inferior.c (startup_inferior): Add
17602 process_stratum_target parameter. Pass it down.
17603 * nat/fork-inferior.h (startup_inferior): Add
17604 process_stratum_target parameter.
17605 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17606
75c6c844
PA
176072020-01-10 Pedro Alves <palves@redhat.com>
17608
17609 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17610 directly. Instead find the first thread in the thread list and
17611 use switch_to_thread.
17612
78f2c40a
PA
176132020-01-10 Pedro Alves <palves@redhat.com>
17614
17615 * remote.c (remote_target::remote_add_inferior): Don't bind a
17616 process to the current inferior if the current inferior is already
17617 bound to a process.
17618
e7af6c70
TBA
176192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17620 Pedro Alves <palves@redhat.com>
17621
17622 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17623 If no process is specified, return null_ptid instead of
17624 inferior_ptid.
17625 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17626 TARGET_WAITKIND_SIGNALLED with no pid.
17627
31ba933e
PA
176282020-01-10 Pedro Alves <palves@redhat.com>
17629
17630 * remote.c (first_remote_resumed_thread): New.
17631 (remote_target::wait_as): Use it as default event_ptid instead of
17632 inferior_ptid.
17633
735fc2ca
PA
176342020-01-10 Pedro Alves <palves@redhat.com>
17635
17636 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17637
c17e02e1
PA
176382020-01-10 Pedro Alves <palves@redhat.com>
17639
17640 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17641 not -1.
17642
ab1ddbcf
PA
176432020-01-10 Pedro Alves <palves@redhat.com>
17644
17645 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17646 ptid to get_last_target_status.
17647 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17648 ptid to get_last_target_status.
17649 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17650 get_last_target_status.
17651 (info_program_command): Don't pass a target_waitstatus to
17652 get_last_target_status.
17653 * infrun.c (init_wait_for_inferior): Use
17654 nullify_last_target_wait_ptid.
17655 (get_last_target_status): Handle nullptr arguments.
17656 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17657 (print_stop_event): Don't pass a ptid to get_last_target_status.
17658 (normal_stop): Don't pass a ptid to get_last_target_status.
17659 * infrun.h (get_last_target_status, set_last_target_status): Move
17660 comments here and update.
17661 (nullify_last_target_wait_ptid): Declare.
17662 * linux-fork.c (fork_load_infrun_state): Remove local extern
17663 declaration of nullify_last_target_wait_ptid.
17664 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17665 to get_last_target_status.
17666
f3f8ece4
PA
176672020-01-10 Pedro Alves <palves@redhat.com>
17668
17669 * gdbthread.h (scoped_restore_current_thread)
17670 <dont_restore, restore, m_dont_restore>: Declare.
17671 * thread.c (thread_alive): Add assertion. Return bool.
17672 (switch_to_thread_if_alive): New.
17673 (prune_threads): Switch inferior/thread.
17674 (print_thread_info_1): Switch thread before calling target methods.
17675 (scoped_restore_current_thread::restore): New, factored out from
17676 ...
17677 (scoped_restore_current_thread::~scoped_restore_current_thread):
17678 ... this.
17679 (scoped_restore_current_thread::scoped_restore_current_thread):
17680 Add assertion.
17681 (thread_apply_all_command, thread_select): Use
17682 switch_to_thread_if_alive.
17683 * infrun.c (proceed, restart_threads, handle_signal_stop)
17684 (switch_back_to_stepped_thread): Switch current thread before
17685 calling target methods.
17686
db2d40f7
PA
176872020-01-10 Pedro Alves <palves@redhat.com>
17688
17689 * inferior.c (switch_to_inferior_no_thread): New function,
17690 factored out from ...
17691 (inferior_command): ... here.
17692 * inferior.h (switch_to_inferior_no_thread): Declare.
17693 * mi/mi-main.c (run_one_inferior): Use
17694 switch_to_inferior_no_thread.
17695
bd420a2d
PA
176962020-01-10 Pedro Alves <palves@redhat.com>
17697
17698 * infcmd.c (kill_command): Remove dead code.
17699
ddf5db90
PA
177002020-01-10 Pedro Alves <palves@redhat.com>
17701
17702 * remote.c (remote_target::mourn_inferior): No longer check
17703 whether the target is running.
17704
5018ce90
PA
177052020-01-10 Pedro Alves <palves@redhat.com>
17706
17707 * corelow.c (core_target::has_execution): Change parameter type to
17708 inferior pointer.
17709 * inferior.c (number_of_live_inferiors): Use
17710 inferior::has_execution instead of target_has_execution_1.
17711 * inferior.h (inferior::has_execution): New.
17712 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17713 inferior::has_execution instead of target_has_execution_1.
17714 * process-stratum-target.c
17715 (process_stratum_target::has_execution): Change parameter type to
17716 inferior pointer. Check the inferior's PID instead of
17717 inferior_ptid.
17718 * process-stratum-target.h
17719 (process_stratum_target::has_execution): Change parameter type to
17720 inferior pointer.
17721 * record-full.c (record_full_core_target::has_execution): Change
17722 parameter type to inferior pointer.
17723 * target.c (target_has_execution_1): Change parameter type to
17724 inferior pointer.
17725 (target_has_execution_current): Adjust.
17726 * target.h (target_ops::has_execution): Change parameter type to
17727 inferior pointer.
17728 (target_has_execution_1): Change parameter type to inferior
17729 pointer. Change return type to bool.
17730 * tracefile.h (tracefile_target::has_execution): Change parameter
17731 type to inferior pointer.
17732
74375d18
PA
177332020-01-10 Pedro Alves <palves@redhat.com>
17734
17735 * exceptions.c (print_flush): Remove current_top_target() check.
17736
acdf84a6
PA
177372020-01-10 Pedro Alves <palves@redhat.com>
17738
17739 * remote.c (show_remote_exec_file): Show the current inferior's
17740 exec-file instead of the command variable's value.
17741
ec506636
PA
177422020-01-10 Pedro Alves <palves@redhat.com>
17743
17744 * record-full.c (record_full_resume_ptid): New global.
17745 (record_full_target::resume): Set it.
17746 (record_full_wait_1): Use record_full_resume_ptid instead of
17747 inferior_ptid.
17748
873657b9
PA
177492020-01-10 Pedro Alves <palves@redhat.com>
17750
17751 * gdbthread.h (scoped_restore_current_thread)
17752 <dont_restore, restore, m_dont_restore>: Declare.
17753 * thread.c (thread_alive): Add assertion. Return bool.
17754 (switch_to_thread_if_alive): New.
17755 (prune_threads): Switch inferior/thread.
17756 (print_thread_info_1): Switch thread before calling target methods.
17757 (scoped_restore_current_thread::restore): New, factored out from
17758 ...
17759 (scoped_restore_current_thread::~scoped_restore_current_thread):
17760 ... this.
17761 (scoped_restore_current_thread::scoped_restore_current_thread):
17762 Add assertion.
17763 (thread_apply_all_command, thread_select): Use
17764 switch_to_thread_if_alive.
17765
7f0ae84c
GB
177662020-01-10 George Barrett <bob@bob131.so>
17767
17768 * stap-probe.c (stap_modify_semaphore): Don't check for null
17769 semaphores.
17770 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17771 for null semaphores.
17772
f5a7c406
AB
177732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17774
17775 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17776 all source windows, and maintain horizontal scroll status while
17777 doing so.
17778
9ae6bf64
TT
177792020-01-09 Tom Tromey <tom@tromey.com>
17780
17781 PR tui/18932:
17782 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17783 update_source_window, not print_source_lines.
17784
b2efe70c
AB
177852020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17786
17787 * tui/tui.c (tui_enable): Register tui hooks after calling
17788 tui_display_main.
17789
5f23a082
CB
177902020-01-09 Christian Biesinger <cbiesinger@google.com>
17791
17792 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17793
3061113b
SM
177942020-01-08 Simon Marchi <simon.marchi@efficios.com>
17795
17796 * thread.c (print_thread_info_1): Fix indentation.
17797
57d75002
CB
177982020-01-09 Christian Biesinger <cbiesinger@google.com>
17799
17800 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17801 unique_xmalloc_ptr outside the if to always free the demangled name.
17802
6a053cb1
TT
178032020-01-08 Tom Tromey <tromey@adacore.com>
17804
17805 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17806 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17807 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17808 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17809 Remove.
17810 (section_offsets): New typedef.
17811 * symtab.c (fixup_section, get_msymbol_address): Update.
17812 * symmisc.c (dump_msymbols): Update.
17813 * symfile.h (relative_addr_info_to_section_offsets)
17814 (symfile_map_offsets_to_segments): Update.
17815 * symfile.c (build_section_addr_info_from_objfile)
17816 (init_objfile_sect_indices): Update.
17817 (struct place_section_arg): Change type of "offsets".
17818 (place_section): Update.
17819 (relative_addr_info_to_section_offsets): Change type of
17820 "section_offsets". Remove "num_sections" parameter.
17821 (default_symfile_offsets, syms_from_objfile_1)
17822 (set_objfile_default_section_offset): Update.
17823 (reread_symbols): No need to preserve section offsets by hand.
17824 (symfile_map_offsets_to_segments): Change type of "offsets".
17825 * stap-probe.c (relocate_address): Update.
17826 * stabsread.h (process_one_symbol): Update.
17827 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17828 (solib_target_relocate_section_addresses): Update.
17829 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17830 Update.
17831 * solib-frv.c (frv_relocate_main_executable): Update.
17832 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17833 * solib-aix.c (solib_aix_get_section_offsets): Change return
17834 type.
17835 (solib_aix_solib_create_inferior_hook): Update.
17836 * remote.c (remote_target::get_offsets): Update.
17837 * psymtab.c (find_pc_sect_psymtab): Update.
17838 * psympriv.h (struct partial_symbol) <address, text_low,
17839 text_high>: Update.
17840 * objfiles.h (obj_section_offset): Update.
17841 (struct objfile) <section_offsets>: Change type.
17842 <num_sections>: Remove.
17843 (objfile_relocate): Update.
17844 * objfiles.c (entry_point_address_query): Update
17845 (relocate_one_symbol): Change type of "section_offsets".
17846 (objfile_relocate1, objfile_relocate1): Change type of
17847 "new_offsets".
17848 (objfile_rebase1): Update.
17849 * mipsread.c (mipscoff_symfile_read): Update.
17850 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17851 parameter.
17852 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17853 (parse_external, psymtab_to_symtab_1): Update.
17854 * machoread.c (macho_symfile_offsets): Update.
17855 * ia64-tdep.c (ia64_find_unwind_table): Update.
17856 * hppa-tdep.c (read_unwind_info): Update.
17857 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17858 * dwarf2read.c (create_addrmap_from_index)
17859 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17860 (process_psymtab_comp_unit_reader, add_partial_symbol)
17861 (add_partial_subprogram, process_full_comp_unit)
17862 (read_file_scope, read_func_scope, read_lexical_block_scope)
17863 (read_call_site_scope, dwarf2_rnglists_process)
17864 (dwarf2_ranges_process, dwarf2_ranges_read)
17865 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17866 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17867 Update.
17868 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17869 Update.
17870 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17871 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17872 (process_one_symbol): Change type of "section_offsets".
17873 * ctfread.c (get_objfile_text_range): Update.
17874 * coffread.c (coff_symtab_read, enter_linenos)
17875 (process_coff_symbol): Update.
17876 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17877 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17878
456e800a
TT
178792020-01-08 Tom Tromey <tromey@adacore.com>
17880
17881 * dwarf2read.c (parse_macro_definition): Use std::string.
17882 (parse_macro_definition): Likewise.
17883
6dfa2fc2
TT
178842020-01-08 Tom Tromey <tromey@adacore.com>
17885
17886 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17887 (ATTR_ALLOC_CHUNK): Remove.
17888
421d1616
TT
178892020-01-08 Tom Tromey <tromey@adacore.com>
17890
17891 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17892
43816ebc
TT
178932020-01-08 Tom Tromey <tromey@adacore.com>
17894
17895 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17896 (dwarf2_compute_name, open_dwo_file): Likewise.
17897 (process_enumeration_scope): Use std::vector.
17898 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17899 (partial_die_info::fixup, dwarf2_start_subfile)
17900 (guess_full_die_structure_name, dwarf2_name): Likewise.
17901 (determine_prefix): Update.
17902 (guess_full_die_structure_name): Make return type const.
17903 (partial_die_full_name): Return unique_xmalloc_ptr.
17904 (DW_FIELD_ALLOC_CHUNK): Remove.
17905
4212d509
TT
179062020-01-07 Tom Tromey <tromey@adacore.com>
17907
17908 PR build/24937:
17909 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17910
06a6207a
JT
179112020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17912
17913 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17914
153d79c4
AB
179152020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17916
17917 * stack.c (print_frame_info): Move disassemble_next_line code
17918 inside source_print block.
17919
66182876
EZ
179202020-01-06 Eli Zaretskii <eliz@gnu.org>
17921
17922 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17923 gdb/signals.h, as we are now using native signal symbols.
17924
cbfa8581
SV
179252020-01-06 Shahab Vahedi <shahab@synopsys.com>
17926
17927 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17928 overflow by an early check of content vs threshold.
aac66a4c 17929 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17930 Likewise.
17931
3f602821
EZ
179322020-01-06 Eli Zaretskii <eliz@gnu.org>
17933
17934 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17935
a08c904d
JT
179362020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17937
17938 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17939 export table if no section contains it's RVA.
17940
89a65580
EZ
179412020-01-06 Eli Zaretskii <eliz@gnu.org>
17942
17943 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17944
8b7fcda2
HD
179452020-01-06 Hannes Domani <ssbssa@yahoo.de>
17946
17947 * source.c (print_source_lines_base): Set last_line_listed.
17948
a61b4f69
SV
179492020-01-06 Shahab Vahedi <shahab@synopsys.com>
17950
17951 * tui/tui-disasm.c: Remove trailing spaces.
17952
559e7e50
EZ
179532020-01-06 Eli Zaretskii <eliz@gnu.org>
17954 Pedro Alves <palves@redhat.com>
17955
17956 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17957 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17958 (windows_gdb_signal_to_target): New function, uses the above
17959 enumeration to convert GDB internal signal codes to equivalent
17960 Windows codes.
17961 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17962 * windows-nat.c: Include "gdb_wait.h".
17963 (get_windows_debug_event): Extract the fatal exception from the
17964 exit status and convert to the equivalent Posix signal number.
17965 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17966 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17967 * gdbsupport/gdb_wait.c: New file, implements
17968 windows_status_to_termsig.
17969 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17970 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17971
f2302a34
AB
179722020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17973
17974 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17975 show_layout.
17976
6a5206eb
LM
179772020-01-05 Luis Machado <luis.machado@linaro.org>
17978
17979 * aarch64-linux-nat.c
17980 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17981 and bfd_mach_aarch64.
17982
6ec1d75e
PW
179832020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17984
17985 * ui-file.c (stdio_file::can_emit_style_escape)
17986 (tee_file::can_emit_style_escape): Ensure style is used also on
17987 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17988 to gdb_stdout.
17989 * main.c (set_gdb_data_directory): Use file style to output the
17990 warning that the given pathname is not a directory.
17991 * top.c (show_history_filename, gdb_safe_append_history)
17992 (show_gdb_datadir): Use file style.
17993
44f81a76
HD
179942020-01-03 Hannes Domani <ssbssa@yahoo.de>
17995
17996 * solib-target.c (struct lm_info_target):
17997 Change offsets to be a unique_xmalloc_ptr.
17998 (solib_target_relocate_section_addresses): Update.
17999
25057eb0
HD
180002020-01-03 Hannes Domani <ssbssa@yahoo.de>
18001
18002 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18003
6e2118f5
BE
180042020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18005
18006 * MAINTAINERS (Write After Approval): Add myself.
18007
8133c7dc
LM
180082020-01-02 Luis Machado <luis.machado@linaro.org>
18009
18010 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18011 Cell BE architecture.
18012 * target.h (struct target_ops) <thread_architecture>: Likewise.
18013
48189bec
HD
180142020-01-01 Hannes Domani <ssbssa@yahoo.de>
18015
18016 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18017
ead1063b
HD
180182020-01-01 Hannes Domani <ssbssa@yahoo.de>
18019
18020 * MAINTAINERS (Write After Approval): Add myself.
18021
e5d78223
JB
180222020-01-01 Joel Brobecker <brobecker@adacore.com>
18023
18024 * gdbarch.sh: Update copyright year range of generated files.
18025
b811d2c2
JB
180262020-01-01 Joel Brobecker <brobecker@adacore.com>
18027
18028 Update copyright year range in all GDB files.
18029
5f4def5c
JB
180302020-01-01 Joel Brobecker <brobecker@adacore.com>
18031
18032 * copyright.py: Convert to Python 3.
18033
51fd4002
JB
180342020-01-01 Joel Brobecker <brobecker@adacore.com>
18035
18036 * copyright.py: Adapt after move of gnulib directory from gdb
18037 directory to toplevel directory.
18038
5fb651f2
JB
180392020-01-01 Joel Brobecker <brobecker@adacore.com>
18040
18041 * copyright.py (main): Exit if run from the wrong directory.
18042
5dd8bf88
JB
180432020-01-01 Joel Brobecker <brobecker@adacore.com>
18044
18045 * top.c (print_gdb_version): Change copyright year to 2020.
18046
9f71dacb 180472020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18048
9f71dacb 18049 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18050
9f71dacb 18051For older changes see ChangeLog-2019.
c906108c
SS
18052\f
18053Local Variables:
18054mode: change-log
18055left-margin: 8
18056fill-column: 74
18057version-control: never
57da7796 18058coding: utf-8
c906108c 18059End: