]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: move bfd_open_from_target_memory to gdb_bfd
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
15cc148f
MS
12020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
2
3 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
4 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
5 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
6
12932e2c
TT
72020-12-09 Tom Tromey <tromey@adacore.com>
8
9 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
10
5cde1d82
TT
112020-12-09 Tom Tromey <tromey@adacore.com>
12
13 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
14 and "denominator" to gdb_mpz. Handle block forms.
15 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
16 "denominator" to gdb_mpz.
17 (finish_fixed_point_type): Update.
18 (has_zero_over_zero_small_attribute): Update.
19
d9c3a9c0
TT
202020-12-09 Tom Tromey <tromey@adacore.com>
21
22 * expprint.c (op_name): Update.
23 * expression.h (enum exp_opcode): Update.
24 * std-operator.def: Add more opcodes.
25 * ada-operator.def, fortran-operator.def: Remove, moving contents
26 into std-operator.def.
27
6ad368b8
SM
282020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
31 Return {} instead of false.
32 (get_discrete_bounds): Compute high bound only if low bound is
33 valid.
34
5b56203a
SM
352020-12-09 Simon Marchi <simon.marchi@efficios.com>
36
37 PR 26875, PR 26901
38 * gdbtypes.c (get_discrete_low_bound): Make non-static.
39 (get_discrete_high_bound): Make non-static.
40 * gdbtypes.h (get_discrete_low_bound): New declaration.
41 (get_discrete_high_bound): New declaration.
42 * valarith.c (value_subscript): Only fetch high bound if
43 necessary.
44
14c09924
SM
452020-12-09 Simon Marchi <simon.marchi@efficios.com>
46
47 * gdbtypes.c (get_discrete_bounds): Implement with
48 get_discrete_low_bound and get_discrete_high_bound.
49 (get_discrete_low_bound): New.
50 (get_discrete_high_bound): New.
51
1f8d2881
SM
522020-12-09 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
55 callers.
56 * gdbtypes.c (get_discrete_bounds): Return bool.
57
6244c119
SM
582020-12-09 Simon Marchi <simon.marchi@efficios.com>
59
60 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
61 (ada_value_slice): Adjust.
62 (pos_atr): Adjust.
63 * gdbtypes.c (get_discrete_bounds): Adjust.
64 (discrete_position): Return optional.
65 * gdbtypes.h (discrete_position): Return optional.
66
a4915e8d
TT
672020-12-07 Tom Tromey <tromey@adacore.com>
68
69 * maint.c (_initialize_maint_cmds): Use expression command
70 completer for "maint print type".
71
1f58f6c2
TBA
722020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
73
74 * completer.c (complete_explicit_location): Also add keywords
75 that start with '-' to the completion list.
76
5759831a
TBA
772020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
78
79 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
80 keyword may be followed by any keyword.
81 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
82 'toklen' in the case for "-force-condition".
83
21e051b3
TBA
842020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
85
86 * main.c (catch_command_errors): Add a flag parameter; invoke
87 `bpstat_do_actions` if the flag is set.
88 (execute_cmdargs): Update a call to `catch_command_errors`.
89
f51f9f1d
TV
902020-12-07 Tom de Vries <tdevries@suse.de>
91
92 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
93
00158a68
TT
942020-12-06 Tom Tromey <tom@tromey.com>
95
96 PR ada/26999
97 * ada-lang.c (replace_operator_with_call): Rewrite.
98
296cfb88
GF
992020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
100
101 PR breakpoints/27009
102 * s390-tdep.h (op_bc): Correct BC opcode value.
103
63c457b9
JB
1042020-12-06 Joel Brobecker <brobecker@adacore.com>
105
106 * gmp-utils.h (gdb_mpz::safe_export): New private method.
107 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
108 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
109 (gdb_mpz::safe_export): New method.
110 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
111 Update function description.
112 (check_as_integer_raises_out_of_range_error): New function.
113 (gdb_mpz_as_integer_out_of_range): New function.
114 (_initialize_gmp_utils_selftests): Register
115 gdb_mpz_as_integer_out_of_range as a selftest.
116
3c7ba803
JB
1172020-12-05 Joel Brobecker <brobecker@adacore.com>
118
119 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
120 TARGET_CHAR_BIT.
121 (gdb_mpz::write): Likewise.
122
372ff58f
SM
1232020-12-04 Simon Marchi <simon.marchi@efficios.com>
124
125 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
126 number of displaced step buffers.
127
480af54c
SM
1282020-12-04 Simon Marchi <simon.marchi@efficios.com>
129
130 * displaced-stepping.h (struct displaced_step_buffer): Rename
131 to...
132 (struct displaced_step_buffers): ... this.
133 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
134 <struct displaced_step_buffer>: New inner class.
135 <m_buffers>: New.
136 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
137 to...
138 (displaced_step_buffers::prepare): ... this, adjust for multiple
139 buffers.
140 (displaced_step_buffer::finish): Rename to...
141 (displaced_step_buffers::finish): ... this, adjust for multiple
142 buffers.
143 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
144 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
145 adjust for multiple buffers.
146 (displaced_step_buffer::restore_in_ptid): Rename to...
147 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
148 multiple buffers.
149 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
150 for num_disp_step_buffers.
151 * linux-tdep.c (struct linux_gdbarch_data)
152 <num_disp_step_buffers>: New field.
153 (struct linux_info) <disp_step_buf>: Rename to...
154 <disp_step_bufs>: ... this, change type to
155 displaced_step_buffers.
156 (linux_displaced_step_prepare): Use
157 linux_gdbarch_data::num_disp_step_buffers to create that number
158 of buffers.
159 (linux_displaced_step_finish): Adjust.
160 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
161 (linux_displaced_step_restore_all_in_ptid): Adjust.
162 (linux_init_abi): Change supports_displaced_step parameter for
163 num_disp_step_buffers, save it in linux_gdbarch_data.
164 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
165 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
166 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
167 supports_displaced_step parameter for num_disp_step_buffers.
168 (amd64_linux_init_abi): Adjust.
169 (amd64_x32_linux_init_abi): Adjust.
170 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
171 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
172 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
173 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
174 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
175 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
176 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
177 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
178 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
179 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
180 * m68k-linux-tdep.c (m68k_linux_init_abi):
181 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
182 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
183 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
184 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
185 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
186 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
187 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
188 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
189 Change type to displaced_step_buffers.
190 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
191 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
192 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
193 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
194 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
195 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
196 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
197
d9655058
SM
1982020-12-04 Simon Marchi <simon.marchi@efficios.com>
199
200 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
201 obkstack.
202 (_initialize_linux_tdep): Register pre-init gdb data instead of
203 post-init.
204
187b041e
SM
2052020-12-04 Simon Marchi <simon.marchi@efficios.com>
206
207 * displaced-stepping.h (struct
208 displaced_step_copy_insn_closure): Adjust comments.
209 (struct displaced_step_inferior_state) <step_thread,
210 step_gdbarch, step_closure, step_original, step_copy,
211 step_saved_copy>: Remove fields.
212 (struct displaced_step_thread_state): New.
213 (struct displaced_step_buffer): New.
214 * displaced-stepping.c (displaced_step_buffer::prepare): New.
215 (write_memory_ptid): Move from infrun.c.
216 (displaced_step_instruction_executed_successfully): New,
217 factored out of displaced_step_finish.
218 (displaced_step_buffer::finish): New.
219 (displaced_step_buffer::copy_insn_closure_by_addr): New.
220 (displaced_step_buffer::restore_in_ptid): New.
221 * gdbarch.sh (displaced_step_location): Remove.
222 (displaced_step_prepare, displaced_step_finish,
223 displaced_step_copy_insn_closure_by_addr,
224 displaced_step_restore_all_in_ptid): New.
225 * gdbarch.c: Re-generate.
226 * gdbarch.h: Re-generate.
227 * gdbthread.h (class thread_info) <displaced_step_state>: New
228 field.
229 (thread_step_over_chain_remove): New declaration.
230 (thread_step_over_chain_next): New declaration.
231 (thread_step_over_chain_length): New declaration.
232 * thread.c (thread_step_over_chain_remove): Make non-static.
233 (thread_step_over_chain_next): New.
234 (global_thread_step_over_chain_next): Use
235 thread_step_over_chain_next.
236 (thread_step_over_chain_length): New.
237 (global_thread_step_over_chain_enqueue): Add debug print.
238 (global_thread_step_over_chain_remove): Add debug print.
239 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
240 Remove.
241 * infrun.c (get_displaced_stepping_state): New.
242 (displaced_step_in_progress_any_inferior): Remove.
243 (displaced_step_in_progress_thread): Adjust.
244 (displaced_step_in_progress): Adjust.
245 (displaced_step_in_progress_any_thread): New.
246 (get_displaced_step_copy_insn_closure_by_addr): Remove.
247 (gdbarch_supports_displaced_stepping): Use
248 gdbarch_displaced_step_prepare_p.
249 (displaced_step_reset): Change parameter from inferior to
250 thread.
251 (displaced_step_prepare_throw): Implement using
252 gdbarch_displaced_step_prepare.
253 (write_memory_ptid): Move to displaced-step.c.
254 (displaced_step_restore): Remove.
255 (displaced_step_finish): Implement using
256 gdbarch_displaced_step_finish.
257 (start_step_over): Allow starting more than one displaced step.
258 (prepare_for_detach): Handle possibly multiple threads doing
259 displaced steps.
260 (handle_inferior_event): Handle possibility that fork event
261 happens while another thread displaced steps.
262 * linux-tdep.h (linux_displaced_step_prepare): New.
263 (linux_displaced_step_finish): New.
264 (linux_displaced_step_copy_insn_closure_by_addr): New.
265 (linux_displaced_step_restore_all_in_ptid): New.
266 (linux_init_abi): Add supports_displaced_step parameter.
267 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
268 (linux_displaced_step_prepare): New.
269 (linux_displaced_step_finish): New.
270 (linux_displaced_step_copy_insn_closure_by_addr): New.
271 (linux_displaced_step_restore_all_in_ptid): New.
272 (linux_init_abi): Add supports_displaced_step parameter,
273 register displaced step methods if true.
274 (_initialize_linux_tdep): Register inferior_execd observer.
275 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
276 supports_displaced_step parameter, adjust call to
277 linux_init_abi. Remove call to
278 set_gdbarch_displaced_step_location.
279 (amd64_linux_init_abi): Adjust call to
280 amd64_linux_init_abi_common.
281 (amd64_x32_linux_init_abi): Likewise.
282 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
283 linux_init_abi. Remove call to
284 set_gdbarch_displaced_step_location.
285 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
286 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
287 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
288 linux_init_abi.
289 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
290 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
291 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
292 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
293 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
294 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
295 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
296 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
297 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
298 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
299 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
300 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
301 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
302 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
303 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
304 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
305 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
306 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
307 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
308 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
309 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
310 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
311 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
312 linux_init_abi. Remove call to
313 set_gdbarch_displaced_step_location.
314 * arm-tdep.c (arm_pc_is_thumb): Call
315 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
316 get_displaced_step_copy_insn_closure_by_addr.
317 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
318 clear gdbarch methods.
319 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
320 (get_ppc_per_inferior): New function.
321 (ppc_displaced_step_prepare): New function.
322 (ppc_displaced_step_finish): New function.
323 (ppc_displaced_step_restore_all_in_ptid): New function.
324 (rs6000_gdbarch_init): Register new gdbarch methods.
325 * s390-tdep.c (s390_gdbarch_init): Don't call
326 set_gdbarch_displaced_step_location, set new gdbarch methods.
327
c7acb87b
SM
3282020-12-04 Simon Marchi <simon.marchi@efficios.com>
329
330 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
331 * aarch64-tdep.h: Include displaced-stepping.h.
332 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
333 Move here.
334 (displaced_step_copy_insn_closure_up): Move here.
335 (struct buf_displaced_step_copy_insn_closure): Move here.
336 (struct displaced_step_inferior_state): Move here.
337 (debug_displaced): Move here.
338 (displaced_debug_printf_1): Move here.
339 (displaced_debug_printf): Move here.
340 * displaced-stepping.c: New file.
341 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
342 * gdbarch.h: Re-generate.
343 * inferior.h: Include displaced-stepping.h.
344 * infrun.h (debug_displaced): Move to displaced-stepping.h.
345 (displaced_debug_printf_1): Likewise.
346 (displaced_debug_printf): Likewise.
347 (struct displaced_step_copy_insn_closure): Likewise.
348 (displaced_step_copy_insn_closure_up): Likewise.
349 (struct buf_displaced_step_copy_insn_closure): Likewise.
350 (struct displaced_step_inferior_state): Likewise.
351 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
352 (displaced_debug_printf_1): Likewise.
353 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
354 Likewise.
355 (_initialize_infrun): Don't register "set/show debug displaced".
356
94b24c74
SM
3572020-12-04 Simon Marchi <simon.marchi@efficios.com>
358
359 * linux-tdep.c (get_linux_inferior_data): Add inferior
360 parameter.
361 (linux_vsyscall_range): Pass current inferior.
362
bab37966
SM
3632020-12-04 Simon Marchi <simon.marchi@efficios.com>
364
365 * infrun.c (displaced_step_prepare_throw): Change return type to
366 displaced_step_prepare_status.
367 (displaced_step_prepare): Likewise.
368 (displaced_step_finish): Change return type to
369 displaced_step_finish_status.
370 (resume_1): Adjust.
371 (stop_all_threads): Adjust.
372 * displaced-stepping.h: New file.
373
7def77a1
SM
3742020-12-04 Simon Marchi <simon.marchi@efficios.com>
375
376 * infrun.c (displaced_step_fixup): Rename to...
377 (displaced_step_finish): ... this, update all callers.
378
1152d984
SM
3792020-12-04 Simon Marchi <simon.marchi@efficios.com>
380
381 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
382 (get_displaced_step_copy_insn_closure_by_addr): ... this.
383 Update all users.
384 (displaced_step_closure): Rename to...
385 (displaced_step_copy_insn_closure): ... this. Update all users.
386 (displaced_step_closure_up): Rename to...
387 (displaced_step_copy_insn_closure_up). ... this. Update all
388 users.
389 (buf_displaced_step_closure): Rename to...
390 (buf_displaced_step_copy_insn_closure): ... this. Update all
391 users.
392 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
393 (get_displaced_step_copy_insn_closure_by_addr): ... this.
394 Update all users.
395 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
396 (aarch64_displaced_step_copy_insn_closure): ... this. Update
397 all users.
398 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
399 (amd64_displaced_step_copy_insn_closure): ... this. Update all
400 users.
401 * arm-tdep.h (arm_displaced_step_closure): Rename to...
402 (arm_displaced_step_copy_insn_closure): ... this. Update all
403 users.
404 * i386-tdep.h (i386_displaced_step_closure): Rename to...
405 (i386_displaced_step_copy_insn_closure): ... this. Update all
406 users.
407 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
408 (ppc_displaced_step_copy_insn_closure): ... this. Update all
409 users.
410 * s390-tdep.c (s390_displaced_step_closure): Rename to...
411 (s390_displaced_step_copy_insn_closure): ... this. Update all
412 users.
413 * gdbarch.h: Re-generate.
414 * gdbarch.c: Re-generate.
415
28d5518b
SM
4162020-12-04 Simon Marchi <simon.marchi@efficios.com>
417
418 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
419 (global_thread_step_over_chain_enqueue): ... this. Update all
420 users.
421 (thread_step_over_chain_remove): Rename to...
422 (global_thread_step_over_chain_remove): ... this. Update all
423 users.
424 (thread_step_over_chain_next): Rename to...
425 (global_thread_step_over_chain_next): ... this. Update all
426 users.
427 * infrun.h (step_over_queue_head): Rename to...
428 (global_thread_step_over_chain_head): ... this. Update all
429 users.
430 * infrun.c (step_over_queue_head): Rename to...
431 (global_thread_step_over_chain_head): ... this. Update all
432 users.
433 * thread.c (step_over_chain_remove): Rename to...
434 (thread_step_over_chain_remove): ... this. Update all users.
435 (thread_step_over_chain_next): Rename to...
436 (global_thread_step_over_chain_next): ... this. Update all
437 users.
438 (thread_step_over_chain_enqueue): Rename to...
439 (global_thread_step_over_chain_enqueue): ... this. Update all
440 users.
441 (thread_step_over_chain_remove): Rename to...
442 (global_thread_step_over_chain_remove): ... this. Update all
443 users.
444
f5f01699
SM
4452020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * infrun.c (get_displaced_stepping_state): Remove, change
448 callers to access the field directly.
449
c0aba012
SM
4502020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
451
452 * infrun.c (handle_inferior_event): Restore displaced step
453 buffer bytes in child process when handling fork, even if fork
454 happened in another thread than the displaced-stepping one.
455
3b7a962d
SM
4562020-12-04 Simon Marchi <simon.marchi@efficios.com>
457
458 * infrun.c (infrun_inferior_execd): New function.
459 (_initialize_infrun): Attach inferior_execd observer.
460
42a4fec5
SM
4612020-12-04 Simon Marchi <simon.marchi@efficios.com>
462
463 * observable.h (inferior_execd): Declare new observable.
464 * observable.c (inferior_execd): Declare new observable.
465 * infrun.c (follow_exec): Notify inferior_execd observer.
466 * jit.c (jit_inferior_created_hook): Make static.
467 (_initialize_jit): Register inferior_execd observer.
468 * jit.h (jit_inferior_created_hook): Remove declaration.
469 * solib.c (_initialize_solib): Register inferior_execd observer.
470
aafdfb4e
TV
4712020-12-04 Tom de Vries <tdevries@suse.de>
472
473 PR gdb/27003
474 * completer.c (completion_tracker::build_completion_result): Don't
475 access match_list[0][-1].
476
f99b5177
TT
4772020-12-04 Tom Tromey <tromey@adacore.com>
478
479 * linespec.c (struct linespec_token): Rename; remove typedef.
480 * guile/scm-block.c (struct block_smob): Remove typedef.
481 (struct block_syms_progress_smob): Likewise.
482 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
483 * guile/scm-symtab.c (symtab_smob): Remove typedef.
484 (struct sal_smob): Remove typedef.
485 * guile/scm-param.c (struct param_smob): Remove typedef.
486 * guile/scm-progspace.c (struct pspace_smob): Rename.
487 * guile/scm-objfile.c (struct objfile_smob): Rename.
488 * guile/scm-iterator.c (struct iterator_smob): Rename.
489 * guile/scm-frame.c (struct frame_smob): Rename.
490 * guile/scm-arch.c (struct arch_smob): Rename.
491 * guile/scm-type.c (struct field_smob): Remove typedef.
492 (struct type_smob): Rename.
493 * guile/scm-cmd.c (struct command_smob): Remove typedef.
494 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
495 * guile/scm-value.c (struct value_smob): Remove typedef.
496 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
497 * guile/guile-internal.h (struct scheme_variable)
498 (struct scheme_function, struct scheme_integer_constant)
499 (struct gdb_smob, struct chained_gdb_smob)
500 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
501 (objfile_smob, pspace_smob, type_smob): Remove typedef.
502 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
503 (struct pretty_printer_worker_smob): Remove typedef.
504 * guile/scm-exception.c (struct exception_smob): Remove typedef.
505 * python/py-block.c (struct block_object): Remove typedef.
506 (block_syms_iterator_object): Update.
507 (set_block): Update.
508 (block_syms_iterator_object): Remove typedef.
509 * python/py-inferior.c (struct membuf_object): Remove typedef.
510 * python/py-symtab.c (struct symtab_object): Remove typedef.
511 (set_symtab): Update.
512 (sal_object): Remove typedef.
513 (set_sal): Update.
514 * python/py-frame.c (frame_object): Remove typedef.
515 * python/py-record-btrace.c (struct btpy_list_object): Remove
516 typedef.
517 * python/py-arch.c (struct arch_object): Remove typedef.
518 * python/py-linetable.c (struct linetable_entry_object)
519 (linetable_object, struct ltpy_iterator_object): Remove typedef.
520 * python/py-events.h (eventregistry_object): Remove typedef.
521 (struct events_object): Remove typedef.
522 * python/python-internal.h (gdbpy_breakpoint_object): Remove
523 typedef.
524 (thread_object): Remove typedef.
525 * python/py-progspace.c (pspace_object): Remove typedef.
526 * python/py-value.c (struct value_object): Remove typedef.
527 * python/py-record.h (recpy_record_object): Remove typedef.
528 (struct recpy_element_object): Remove typedef.
529 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
530 * python/py-objfile.c (objfile_object): Remove typedef.
531 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
532 * python/py-type.c (type_object): Remove typedef.
533 (typy_iterator_object): Update.
534 (set_type): Update.
535 (field_object): Remove typedef.
536 (typy_iterator_object): Remove typedef.
537 * python/py-registers.c (register_descriptor_iterator_object):
538 Remove typedef.
539 (struct register_descriptor_object)
540 (struct reggroup_iterator_object, struct reggroup_object): Remove
541 typedef.
542 * python/py-record.c (recpy_gap_object): Remove typedef.
543 * python/py-symbol.c (symbol_object): Remove typedef.
544 (set_symbol): Update.
545 * python/py-event.h (event_object): Remove typedef.
546 * python/py-param.c (parmpy_object): Remove typedef.
547 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
548 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
549 (unwind_info_object, struct cached_frame_info): Likewise.
550
91f87213
TT
5512020-12-04 Tom Tromey <tromey@adacore.com>
552
553 * value.c (value_internal_function_name): Make return type const.
554 * value.h (value_internal_function_name): Make return type const.
555
5382f971
LM
5562020-12-04 Luis Machado <luis.machado@linaro.org>
557
558 * aarch64-tdep.c (submask, bit, bits): Remove.
559 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
560 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
561 (aarch64_decode_cb, aarch64_decode_tb)
562 (aarch64_decode_ldr_literal): Use sbits to extract a signed
563 immediate.
564 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
565
b6a6aa07
TV
5662020-12-04 Tom de Vries <tdevries@suse.de>
567
568 PR tdep/27007
569 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
570
0bc2e38d
SM
5712020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
572
573 PR gdb/26876
574 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
575 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
576
25428040
AB
5772020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * arch/riscv.c: Include 'rv32e-xregs.c'.
580 (riscv_create_target_description): Update to handle rv32e.
581 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
582 member variable.
583 <operator==>: Update to account for new field.
584 <hash>: Likewise.
585 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
586 * features/riscv/rv32e-xregs.c: Generated.
587 * features/riscv/rv32e-xregs.xml: New file.
588 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
589 file.
590 (riscv_debug_infcall): Likewise.
591 (riscv_debug_unwinder): Likewise.
592 (riscv_debug_gdbarch): Likewise.
593 (enum riscv_register_required_status): Delete.
594 (struct riscv_register_feature): Add constructor, delete default
595 constructor, copy, and assign constructors.
596 (struct riscv_register_feature::register_info) <required>: Delete.
597 <check>: Update comment and arguments.
598 (struct riscv_register_feature) <name>: Change to member function.
599 <prefer_first_name>: Delete.
600 <tdesc_feature>: New member function.
601 <registers>: Rename to...
602 <m_registers>: ...this.
603 <m_feature_name>: New member variable.
604 (riscv_register_feature::register_info::check): Update arguments.
605 (riscv_xreg_feature): Rewrite as class, create a single static
606 instance of the class.
607 (riscv_freg_feature): Likewise.
608 (riscv_virtual_feature): Likewise.
609 (riscv_csr_feature): Likewise.
610 (riscv_create_csr_aliases): Has become a member function inside
611 riscv_csr_feature class.
612 (riscv_abi_embedded): New function definition.
613 (riscv_register_name): Adjust to use new feature objects.
614 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
615 and adjust available argument registers.
616 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
617 (riscv_check_tdesc_feature): Delete.
618 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
619 (riscv_gdbarch_init): Delete target description checking code, and
620 instead call to the new feature objects to perform the checks.
621 Reorder handling of no abi information case, allows small code
622 simplification.
623 (_initialize_riscv_tdep): Remove call, this is now done in the
624 riscv_csr_feature constructor.
625 * riscv-tdep.h (riscv_abi_embedded): Declare.
626
533b2ae0
AB
6272020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
628
629 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
630 DECLARE_CSR_ALIAS.
631
e4502042
AB
6322020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * riscv-tdep.c (riscv_is_unknown_csr): New function,
635 implementation moved from riscv_register_reggroup_p.
636 (riscv_register_reggroup_p): Update group handling for unknown
637 CSRs.
638
2bf3b79d
SDJ
6392020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
640
641 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
642 (dwarf2_get_dwz_file): Convert 'filename' to a
643 std::string. Use dwz_search_other_debugdirs to search for DWZ
644 files in the debug-file-directories provided by the user as well.
645
77bf7e99
TT
6462020-12-01 Tom Tromey <tom@tromey.com>
647
648 * parse.c (expr_builder::expr_builder): Initialize expout.
649 (expr_builder::release): Use expression::resize.
650 (expression::expression, expression::~expression)
651 (expression::resize): New methods.
652 (write_exp_elt): Use expression::resize.
653 (prefixify_expression): Update.
654 (increase_expout_size): Use expression::resize.
655 * expression.h (struct expression): Add constructor, destructor.
656 <resize>: New method.
657 (expression_up): Change type.
658
539d71e8
RA
6592020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
660 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
661 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
662 set region.
663
7ce05d21
TV
6642020-11-30 Tom de Vries <tdevries@suse.de>
665
666 PR symtab/26905
667 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
668 is_reference parameter.
669 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
670
88b91969
TT
6712020-11-30 Tom Tromey <tom@tromey.com>
672
673 * rust-lang.c (rust_op_name): Remove.
674 (exp_descriptor_rust): Update.
675 * parser-defs.h (op_name_standard): Don't declare.
676 (struct exp_descriptor) <op_name>: Remove.
677 * parse.c (exp_descriptor_standard): Update.
678 * opencl-lang.c (exp_descriptor_opencl): Update.
679 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
680 * f-lang.c (op_name_f): Remove.
681 (f_language::exp_descriptor_tab): Update.
682 * expression.h (op_name): Update.
683 * expprint.c (op_name): Rewrite.
684 (op_name_standard): Remove.
685 (dump_raw_expression, dump_subexp): Update.
686 * c-lang.c (exp_descriptor_c): Update.
687 * ax-gdb.c (gen_expr): Update.
688 * ada-lang.c (ada_op_name): Remove.
689 (ada_exp_descriptor): Update.
690
1cd49c43
TT
6912020-11-30 Tom Tromey <tom@tromey.com>
692
693 * eval.c (init_array_element): Remove.
694 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
695
96fb9086
HD
6962020-11-29 Hannes Domani <ssbssa@yahoo.de>
697
698 PR tui/26973
699 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
700 static locator win info.
701
b4132322
AR
7022020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
703
704 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
705 program.
706
3df8c6af
AB
7072020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
710 is always initialized.
711
0ae45769
RA
7122020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
713 * MAINTAINERS (Write After Approval): Add myself.
714
239ca5e4
PW
7152020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
716
717 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
718 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
719
cbfa382a
TT
7202020-11-25 Tom Tromey <tom@tromey.com>
721
722 * eval.c (evaluate_subexp_standard): Remove unnecessary
723 variables.
724
af30c400
TT
7252020-11-25 Tom Tromey <tom@tromey.com>
726
727 * d-lang.c: Include parser-defs.h.
728 * rust-lang.c: Include parser-defs.h.
729 * c-lang.h: Do not include parser-defs.h.
730
1c64f6cb
SM
7312020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * regcache.h (struct cached_reg): Remove typedef.
734
2c20a601
JB
7352020-11-24 Joel Brobecker <brobecker@adacore.com>
736
737 * README: Fix the URL of the MPFR library.
738
c609df64
JB
7392020-11-24 Joel Brobecker <brobecker@adacore.com>
740
741 * README: Document the --with-libgmp-prefix configure option.
742
fa123c32
JB
7432020-11-24 Joel Brobecker <brobecker@adacore.com>
744
745 * NEWS: Add entry documenting support for DWARF-based fixed
746 point types.
747
0fb8bb02
JB
7482020-11-24 Joel Brobecker <brobecker@adacore.com>
749
750 * NEWS: Document that building GDB now requires GMP.
751
4afa9fd9
JB
7522020-11-24 Joel Brobecker <brobecker@adacore.com>
753
754 * typeprint.c (print_type_scalar): Add handling of
755 TYPE_CODE_FIXED_POINT.
756
af619ce9
JB
7572020-11-24 Joel Brobecker <brobecker@adacore.com>
758
759 * valarith.c (fixed_point_binop): Replace the
760 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
761 users accordingly.
762
e6fcee3a
JB
7632020-11-24 Joel Brobecker <brobecker@adacore.com>
764
765 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
766 replacing fixed_point_scaling_factor. All callers updated
767 throughout this project.
768 (fixed_point_scaling_factor): Delete declaration.
769 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
770 fixed_point_scaling_factor. Adjust implementation accordingly.
771
d19937a7
JB
7722020-11-24 Joel Brobecker <brobecker@adacore.com>
773
774 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
775 replacing the fixed_point_type_base_type function. All callers
776 updated throughout this project.
777 (fixed_point_type_base_type): Remove declaration.
778 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
779 fixed_point_type_base_type. Adjust implementation accordingly.
780
2a12c336
JB
7812020-11-24 Joel Brobecker <brobecker@adacore.com>
782
783 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
784 New methods.
785 (INIT_FIXED_POINT_SPECIFIC): Adjust.
786 (TYPE_FIXED_POINT_INFO): Delete macro.
787 (allocate_fixed_point_type_info): Change return type to void.
788 * gdbtypes.c (copy_type_recursive): Replace the use of
789 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
790 (fixed_point_scaling_factor): Likewise.
791 (allocate_fixed_point_type_info): Change return type to void.
792 Adjust implementation accordingly.
793 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
794 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
795
c9f0b43f
JB
7962020-11-24 Joel Brobecker <brobecker@adacore.com>
797
798 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
799 into one single gdb::array_view parameter.
800 (gdb_mpz::write): Likewise.
801 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
802 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
803 into one single gdb::array_view parameter.
804 Adjust implementation accordingly.
805 (gdb_mpz::write): Likewise.
806 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
807 * unittests/gmp-utils-selftests.c: Adapt following changes above.
808 * valarith.c, valops.c, valprint.c, value.c: Likewise.
809
987b6703
JB
8102020-11-24 Joel Brobecker <brobecker@adacore.com>
811
812 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
813 Change return type to std::string. Update all callers.
814 * gmp-utils.c (gmp_string_printf): Likewise.
815
4fbb7cce
JB
8162020-11-24 Joel Brobecker <brobecker@adacore.com>
817
818 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
819 instead of mpq_set_ui to initialize our GMP rational.
820
d6ab69dd
TV
8212020-11-23 Tom de Vries <tdevries@suse.de>
822
823 * debuginfod-support.c (debuginfod_source_query)
824 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
825
dab72643
TT
8262020-11-21 Tom Tromey <tom@tromey.com>
827
828 * breakpoint.c (watchpoint_exp_is_const): Return bool.
829
c0ad05d5
SM
8302020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
833 Pass 2.0 to pow.
834 (gdb_mpz_write_all_from_small): Likewise.
835
a43b29c9
SM
8362020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
837
838 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
839 of abs.
840
ae41200b
NA
8412020-11-20 Nick Alcock <nick.alcock@oracle.com>
842
843 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
844 ctf_arc_open_by_name.
845
139633c3
NA
8462020-11-20 Nick Alcock <nick.alcock@oracle.com>
847
848 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
849 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
850
cbbcd7a7
PA
8512020-11-20 Pedro Alves <pedro@palves.net>
852
853 * language.c (language_arch_info::lookup_primitive_type): Use
854 gdb::function_view instead of gdb::function.
855 (template language_lookup_primitive_type): Rename to ...
856 (language_lookup_primitive_type_1): ... this, and make static.
857 (language_lookup_primitive_type(const struct language_defn *,
858 struct gdbarch *, const char *): Make non-template.
859 (language_lookup_primitive_type(const struct language_defn *,
860 struct gdbarch *, std::function<bool (struct type *)>): Make
861 non-template and use gdb::function_view.
862 * language.h (language_arch_info::lookup_primitive_type): Use
863 gdb::function_view instead of std::function.
864 (language_lookup_primitive_type): No longer template.
865 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
866 lambda instead of a std::function.
867
d5ef21c3
AA
8682020-11-19 Andreas Arnez <arnez@linux.ibm.com>
869
870 PR tdep/26916
871 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
872 and STOCFH.
873
a5adb8f3
SM
8742020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
877
70125a45
SM
8782020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
879
880 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
881 in `loop_cb` parameter.
882 * gdbarch.c: Re-generate.
883 * gdbarch.h: Re-generate.
884 * arch-utils.c (default_read_core_file_mappings): Remove `other`
885 parameter.
886 * arch-utils.h (default_read_core_file_mappings): Likewise.
887 * corelow.c (core_target::build_file_mappings): Likewise.
888 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
889 (linux_core_info_proc_mappings): Likewise.
890
a5c641b5
AB
8912020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
894 * NEWS: Mention new options.
895 * f-array-walker.h: New file.
896 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
897 (repack_array_slices): New static global.
898 (show_repack_array_slices): New function.
899 (fortran_array_slicing_debug): New static global.
900 (show_fortran_array_slicing_debug): New function.
901 (value_f90_subarray): Delete.
902 (skip_undetermined_arglist): Delete.
903 (class fortran_array_repacker_base_impl): New class.
904 (class fortran_lazy_array_repacker_impl): New class.
905 (class fortran_array_repacker_impl): New class.
906 (fortran_value_subarray): Complete rewrite.
907 (set_fortran_list): New static global.
908 (show_fortran_list): Likewise.
909 (_initialize_f_language): Register new commands.
910 (fortran_adjust_dynamic_array_base_address_hack): New function.
911 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
912 Declare.
913 * f-valprint.c: Include 'f-array-walker.h'.
914 (class fortran_array_printer_impl): New class.
915 (f77_print_array_1): Delete.
916 (f77_print_array): Delete.
917 (fortran_print_array): New.
918 (f_value_print_inner): Update to call fortran_print_array.
919 * gdbtypes.c: Include 'f-lang.h'.
920 (resolve_dynamic_type_internal): Call
921 fortran_adjust_dynamic_array_base_address_hack.
922
a15a5258
AB
9232020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * breakpoint.c (struct watch_options): New struct.
926 (watch_option_defs): New static global.
927 (make_watch_options_def_group): New function.
928 (watch_maybe_just_location): Convert option parsing.
929 (watch_command_completer): New function.
930 (_initialize_breakpoint): Build help text using options mechanism.
931
2e362716
AB
9322020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
933
934 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
935 (watch_command_1): Update parameter types. Convert locals to
936 bool.
937 (watch_command_wrapper): Change parameter type.
938 (watch_maybe_just_location): Change locals to bool.
939 (rwatch_command_wrapper): Update parameter type.
940 (awatch_command_wrapper): Update parameter type.
941 * breakpoint.h (watch_command_wrapper): Change parameter type.
942 (rwatch_command_wrapper): Update parameter type.
943 (awatch_command_wrapper): Update parameter type.
944 * eval.c (fetch_subexp_value): Change parameter type.
945 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
946 'false' not '0'.
947 * value.h (fetch_subexp_value): Change parameter type in
948 declaration.
949
b3ff61f8
AB
9502020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
953 skip_spaces.
954
5b7d45d3
KS
9552020-11-18 Keith Seitz <keiths@redhat.com>
956
957 * linux-tdep.c (dump_note_entry_p): Return true instead of
958 checking `filename'.
959
c44191f8
TV
9602020-11-18 Tom de Vries <tdevries@suse.de>
961
962 * debuginfod-support.c (debuginfod_source_query)
963 (debuginfod_debuginfo_query): Also do early exit if
964 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
965
5d8254e1
TV
9662020-11-18 Tom de Vries <tdevries@suse.de>
967
968 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
969 warning.
970
584903d3
SM
9712020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * gdbtypes.h (get_array_bounds): Return bool, adjust some
974 callers. Move doc here.
975 * gdbtypes.c (get_array_bounds): Return bool
976
6f2643db
AB
9772020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
980 assert.
981 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
982 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
983 case to the default.
984
037d7135
AB
9852020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * printcmd.c: Include 'safe-ctype.c'.
988 (skip_over_slash_fmt): New function.
989 (print_command_completer): Call skip_over_slash_fmt.
990 (display_and_x_command_completer): New function.
991 (_initialize_printcmd): Add command completion for 'x' and
992 'display'.
993
2b3cb400
PA
9942020-11-16 Pedro Alves <pedro@palves.net>
995
996 * frame.c (get_prev_frame): Move get_frame_id call from here ...
997 (get_prev_frame_always_1): ... to here.
998 * inline-frame.c (inline_frame_this_id): Mention
999 get_prev_frame_always_1 in comment.
1000
b74dbc20
JB
10012020-11-15 Joel Brobecker <brobecker@adacore.com>
1002
1003 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1004 handling.
1005 (value_less): Add fixed-point handling.
1006
0a12719e
JB
10072020-11-15 Joel Brobecker <brobecker@adacore.com>
1008
1009 * eval.c (binop_promote): Add fixed-point type handling.
1010 * valarith.c (fixed_point_binop): New function.
1011 (scalar_binop): Add fixed-point type handling.
1012 (value_neg): Add fixed-point type handling.
1013 * valops.c (value_cast_to_fixed_point): New function.
1014 (value_cast): Add fixed-point type handling.
1015
0c9150e4
JB
10162020-11-15 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1019 range types.
1020 * c-typeprint.c (c_type_print_varspec_prefix)
1021 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1022 TYPE_CODE_FIXED_POINT handling.
1023 * p-typeprint.c (pascal_type_print_varspec_prefix)
1024 (pascal_type_print_varspec_suffix): Likewise.
1025 * typeprint.c (print_type_fixed_point): New function.
1026 * typeprint.h (print_type_fixed_point): Add declaration.
1027
b26daff9
JB
10282020-11-15 Joel Brobecker <brobecker@adacore.com>
1029
1030 * printcmd.c (print_scalar_formatted): Add fixed-point type
1031 handling when options->format is set.
1032
09584414
JB
10332020-11-15 Joel Brobecker <brobecker@adacore.com>
1034
1035 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1036 * dwarf2/read.c (get_dwarf2_rational_constant)
1037 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1038 (has_zero_over_zero_small_attribute): New functions.
1039 read_base_type, set_die_type): Add fixed-point type handling.
1040 * gdb-gdb.py.in: Add fixed-point type handling.
1041 * gdbtypes.c: #include "gmp-utils.h".
1042 (create_range_type, set_type_code): Add fixed-point type handling.
1043 (init_fixed_point_type): New function.
1044 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1045 (print_fixed_point_type_info): New function.
1046 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1047 handling.
1048 (fixed_point_type_storage): New typedef.
1049 (fixed_point_objfile_key): New static global.
1050 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1051 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1052 functions.
1053 * gdbtypes.h: #include "gmp-utils.h".
1054 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1055 (union type_specific) <fixed_point_info>: New field.
1056 (struct fixed_point_type_info): New struct.
1057 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1058 (init_fixed_point_type, is_fixed_point_type)
1059 (fixed_point_type_base_type, fixed_point_scaling_factor)
1060 (allocate_fixed_point_type_info): Add declarations.
1061 * valprint.c (generic_val_print_fixed_point): New function.
1062 (generic_value_print): Add fixed-point type handling.
1063 * value.c (value_as_address, unpack_long): Add fixed-point type
1064 handling.
1065
e55c6530
JB
10662020-11-15 Joel Brobecker <brobecker@adacore.com>
1067
1068 * utils.h (uinteger_pow): Add declaration.
1069 * utils.c (uinteger_pow): Moved here (without changes)...
1070 * valarith.c (uinteger_pow): ... from here.
1071
b34c74ab
JB
10722020-11-15 Joel Brobecker <brobecker@adacore.com>
1073
40d9d2fd 1074 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1075 * unittests/gmp-utils-selftests.c: New file.
1076 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1077 unittests/gmp-utils-selftests.c.
1078 (COMMON_SFILES) Add gmp-utils.c.
1079 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1080
1b4ac058
JB
10812020-11-15 Joel Brobecker <brobecker@adacore.com>
1082
1083 * configure.ac: Generate an error if a usable GMP library
1084 could not be found.
1085 * configure: Regenerate.
1086
2c947d9b
JB
10872020-11-15 Joel Brobecker <brobecker@adacore.com>
1088
1089 * configure.ac: Add support for --with-libgmp-prefix.
1090 * Makefile.in (LIBGMP): New variable.
1091 (CLIBS): Include $(LIBGMP).
1092 * configure, config.in: Regenerate
1093
9dd02fc0
AB
10942020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 PR cli/26879
1097 * f-exp.y (COMPLETE): New token.
1098 (exp): Two new rules for tab-completion.
1099 (saw_name_at_eof): New static global.
1100 (last_was_structop): Likewise.
1101 (yylex): Set new variables, and return COMPLETE token at the end
1102 of the input stream in some cases.
1103
758cb810
TT
11042020-11-14 Tom Tromey <tom@tromey.com>
1105
1106 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1107
749065b7
TT
11082020-11-14 Tom Tromey <tom@tromey.com>
1109
1110 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1111
2c5b1849
SM
11122020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1115
e8b2f0d9
TT
11162020-11-13 Tom Tromey <tom@tromey.com>
1117
1118 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1119 (convert_escape, parse_one_string): Constify.
1120
25f4c262
KS
11212020-11-13 Keith Seitz <keiths@redhat.com>
1122
1123 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1124 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1125 outside of ELF segments" warning for debugin
1126
9d3ab915
KS
11272020-11-13 Keith Seitz <keiths@redhat.com>
1128
1129 PR gdb/23034
1130 * elfread.c (elf_symfile_segments): Output a BFD file name
1131 for the "Loadable section ... outside of ELF segments" warning.
1132
9ecab40c
SM
11332020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 PR gdb/26835
1136 * arm-tdep.c (class arm_instruction_reader): New.
1137 (target_arm_instruction_reader): New.
1138 (arm_analyze_prologue): Add instruction reader parameter and use
1139 it. Use arm_expand_immediate.
1140 (class target_arm_instruction_reader): Adjust.
1141 (arm_skip_prologue): Adjust.
1142 (arm_expand_immediate): New.
1143 (arm_scan_prologue): Adjust.
1144 (arm_analyze_prologue_test): New.
1145 (class test_arm_instruction_reader): New.
1146
5a7cf527
AB
11472020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1148
1149 * f-lang.c (fortran_argument_convert): Add declaration. Add
1150 header comment, taken from f-lang.h. Make static.
1151 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1152 (fortran_argument_convert): Delete declaration.
1153
7bea47f0
AB
11542020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * ada-exp.y (find_primitive_type): Make parameter const.
1157 * ada-lang.c (enum ada_primitive_types): Delete.
1158 (ada_language::language_arch_info): Update.
1159 * c-lang.c (enum c_primitive_types): Delete.
1160 (c_language_arch_info): Update.
1161 (enum cplus_primitive_types): Delete.
1162 (cplus_language::language_arch_info): Update.
1163 * d-lang.c (enum d_primitive_types): Delete.
1164 (d_language::language_arch_info): Update.
1165 * f-lang.c (enum f_primitive_types): Delete.
1166 (f_language::language_arch_info): Update.
1167 * go-lang.c (enum go_primitive_types): Delete.
1168 (go_language::language_arch_info): Update.
1169 * language.c (auto_or_unknown_language::language_arch_info):
1170 Update.
1171 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1172 (language_string_char_type): Add header comment, call function in
1173 language_arch_info.
1174 (language_bool_type): Likewise
1175 (language_arch_info::bool_type): Define.
1176 (language_lookup_primitive_type_1): Delete.
1177 (language_lookup_primitive_type): Rewrite as a templated function
1178 to call function in language_arch_info, then instantiate twice.
1179 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1180 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1181 (language_arch_info::lookup_primitive_type): Define twice with
1182 different signatures.
1183 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1184 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1185 member function in language_arch_info.
1186 * language.h (language_arch_info): Complete rewrite.
1187 (language_lookup_primitive_type): Make templated.
1188 * m2-lang.c (enum m2_primitive_types): Delete.
1189 (m2_language::language_arch_info): Update.
1190 * opencl-lang.c (OCL_P_TYPE): Delete.
1191 (enum opencl_primitive_types): Delete.
1192 (opencl_type_data): Delete.
1193 (builtin_opencl_type): Delete.
1194 (lookup_opencl_vector_type): Update.
1195 (opencl_language::language_arch_info): Update, lots of content
1196 moved from...
1197 (build_opencl_types): ...here. This function is now deleted.
1198 (_initialize_opencl_language): Delete.
1199 * p-lang.c (enum pascal_primitive_types): Delete.
1200 (pascal_language::language_arch_info): Update.
1201 * rust-lang.c (enum rust_primitive_types): Delete.
1202 (rust_language::language_arch_info): Update.
1203
bf6e5d01
SM
12042020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1207 dwarf2_queue_guard.
1208
1350c3b4
SM
12092020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1210
1211 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1212 comment.
1213
6f738b01
SM
12142020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * dwarf2/read.c (dwarf_read_debug_printf,
1217 dwarf_read_debug_printf_v): New macros, use throughout the file.
1218
10c19fad
SV
12192020-11-12 Shahab Vahedi <shahab@synopsys.com>
1220
10806efd 1221 PR tdep/27015
10c19fad
SV
1222 * arc-linux-tdep.c (collect_register): Populate "eret" by
1223 "pc" value from the regcache when asked for "pc" value.
1224
1f2624a3
TT
12252020-11-12 Tom Tromey <tom@tromey.com>
1226
1227 PR rust/26799:
1228 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1229 exist.
1230
ab33b152
AB
12312020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * features/Makefile (XMLTOC): Add rx.xml.
1234 (FEATURE_XMLFILES): Remove rx.xml.
1235 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1236 * features/rx.c: Regenerate.
1237 * features/rx.xml: Wrap in `target` tags, and reindent.
1238 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1239 structure.
1240 (maint_print_c_tdesc_opt_def): New typedef.
1241 (maint_print_c_tdesc_opt_defs): New static global.
1242 (make_maint_print_c_tdesc_options_def_group): New function.
1243 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1244 print single feature C file for target descriptions containing a
1245 single feature.
1246 (maint_print_c_tdesc_cmd_completer): New function.
1247 (_initialize_target_descriptions): Update call to register command
1248 completer, and include command line flag in help text.
1249
550820e1
AB
12502020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1253 numbers.
1254 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1255 enum values.
1256
baf20f76
TT
12572020-11-10 Tom Tromey <tom@tromey.com>
1258
1259 * value.h (internalvar_name): Update.
1260 * value.c (internalvar_name): Make return type const.
1261
caaece0e
TT
12622020-11-10 Tom Tromey <tom@tromey.com>
1263
1264 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1265 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1266 const.
1267
8e20b4be
TT
12682020-11-10 Tom Tromey <tom@tromey.com>
1269
1270 * objc-lang.h (value_nsstring): Update.
1271 * objc-lang.c (value_nsstring): Make "ptr" const.
1272
86775fab
AB
12732020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * expprint.c (print_subexp_funcall): Increment expression position
1276 after reading argument count.
1277 * f-lang.c (print_subexp_f): Skip over opcode before calling
1278 common function.
1279 (dump_subexp_body_f): Likewise.
1280
3fed4c0b
RG
12812020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1282
1283 PR python/26832
1284 * configure: Regenerate.
1285 * configure.ac: Check for python modules ctypes instead of
1286 itertools.
1287
ac3d4064
PA
12882020-11-06 Pedro Alves <pedro@palves.net>
1289
1290 * macroexp.c (struct macro_buffer): Split in two classes. Add
1291 uses adjusted.
1292 (struct shared_macro_buffer): New, factored out from struct
1293 macro_buffer.
1294 (struct growable_macro_buffer): New, factored out from struct
1295 macro_buffer.
1296 (set_token, get_comment, get_identifier, get_pp_number)
1297 (get_character_constant, get_string_literal, get_punctuator)
1298 (get_next_token_for_substitution): Constify parameters.
1299 (substitute_args): Constify locals.
1300
606decb2
TT
13012020-11-05 Tom Tromey <tom@tromey.com>
1302
1303 * dwarf2/read.c (read_cutu_die_from_dwo)
1304 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1305 (build_type_psymtabs_1): Update.
1306 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1307 parameter.
1308 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1309 Don't read section. Add assert.
1310
9c91c725
TT
13112020-11-04 Tom Tromey <tromey@adacore.com>
1312
1313 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1314
8d9fd3a1
TT
13152020-11-04 Tom Tromey <tromey@adacore.com>
1316
1317 * ada-typeprint.c (ada_print_type): Handle __T types.
1318
d8f62e84
TT
13192020-11-04 Tom Tromey <tromey@adacore.com>
1320
1321 * dwarf2/read.c (add_partial_symbol, process_die):
1322 Handle DW_TAG_array_type.
1323 (is_type_tag_for_partial): Add "lang" parameter.
1324 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1325
7ff5b937
TT
13262020-11-04 Tom Tromey <tromey@adacore.com>
1327
1328 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1329
10f6a3ad
TT
13302020-11-04 Tom Tromey <tromey@adacore.com>
1331
1332 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1333 array.
1334
b72795a8
TT
13352020-11-04 Tom Tromey <tromey@adacore.com>
1336
1337 * gdbtypes.c (update_static_array_size): Handle bit stride.
1338
24aa1b02
TT
13392020-11-04 Tom Tromey <tromey@adacore.com>
1340
1341 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1342
c9a28cbe
TT
13432020-11-04 Tom Tromey <tromey@adacore.com>
1344
1345 * ada-lang.c (ada_is_any_packed_array_type): New function.
1346 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1347
57567375
TT
13482020-11-04 Tom Tromey <tromey@adacore.com>
1349
1350 * dwarf2/read.c (recognize_bound_expression)
1351 (quirk_ada_thick_pointer): New functions.
1352 (read_array_type): Call quirk_ada_thick_pointer.
1353 (set_die_type): Add "skip_data_location" parameter.
1354 (quirk_ada_thick_pointer): New function.
1355 (process_structure_scope): Call quirk_ada_thick_pointer.
1356 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1357 (decode_packed_array_bitsize): Handle thick pointers without
1358 parallel types.
1359 (ada_is_gnat_encoded_packed_array_type): Rename from
1360 ada_is_packed_array_type.
1361 (ada_is_constrained_packed_array_type): Update.
1362 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1363 (ada_value_print_1): Use ada_get_decoded_value.
1364
a7400e44
TT
13652020-11-04 Tom Tromey <tromey@adacore.com>
1366
1367 * ada-lang.c (recursively_update_array_bitsize): New function.
1368 (decode_constrained_packed_array_type): Call it.
1369
75fd6a26
TT
13702020-11-04 Tom Tromey <tromey@adacore.com>
1371
1372 * ada-lang.c (to_fixed_array_type): Error if
1373 decode_constrained_packed_array_type returns NULL.
1374
93f9561e
TT
13752020-11-04 Tom Tromey <tromey@adacore.com>
1376
1377 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1378
257e02d8
TT
13792020-11-02 Tom Tromey <tromey@adacore.com>
1380
1381 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1382 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1383 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1384 * amd64-ravenscar-thread.c: New file.
1385 * amd64-ravenscar-thread.h: New file.
1386 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1387 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1388
74d877e5
AB
13892020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * main.c (execute_cmdargs): New function.
1392 (captured_main_1): Make use of execute_cmdargs.
1393
64aaad63
AB
13942020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * NEWS: Mention changes to config file search path.
1397 * main.c
1398
5b3d3560
TT
13992020-11-02 Tom Tromey <tromey@adacore.com>
1400
1401 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1402 (python_GdbModuleDef): Move earlier. Now static.
1403 (do_start_initialization): Consolidate some IS_PY3K blocks.
1404
dda83cd7
SM
14052020-11-02 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * aarch64-linux-tdep.c: Fix indentation.
1408 * aarch64-ravenscar-thread.c: Fix indentation.
1409 * aarch64-tdep.c: Fix indentation.
1410 * aarch64-tdep.h: Fix indentation.
1411 * ada-lang.c: Fix indentation.
1412 * ada-lang.h: Fix indentation.
1413 * ada-tasks.c: Fix indentation.
1414 * ada-typeprint.c: Fix indentation.
1415 * ada-valprint.c: Fix indentation.
1416 * ada-varobj.c: Fix indentation.
1417 * addrmap.c: Fix indentation.
1418 * addrmap.h: Fix indentation.
1419 * agent.c: Fix indentation.
1420 * aix-thread.c: Fix indentation.
1421 * alpha-bsd-nat.c: Fix indentation.
1422 * alpha-linux-tdep.c: Fix indentation.
1423 * alpha-mdebug-tdep.c: Fix indentation.
1424 * alpha-nbsd-tdep.c: Fix indentation.
1425 * alpha-obsd-tdep.c: Fix indentation.
1426 * alpha-tdep.c: Fix indentation.
1427 * amd64-bsd-nat.c: Fix indentation.
1428 * amd64-darwin-tdep.c: Fix indentation.
1429 * amd64-linux-nat.c: Fix indentation.
1430 * amd64-linux-tdep.c: Fix indentation.
1431 * amd64-nat.c: Fix indentation.
1432 * amd64-obsd-tdep.c: Fix indentation.
1433 * amd64-tdep.c: Fix indentation.
1434 * amd64-windows-tdep.c: Fix indentation.
1435 * annotate.c: Fix indentation.
1436 * arc-tdep.c: Fix indentation.
1437 * arch-utils.c: Fix indentation.
1438 * arch/arm-get-next-pcs.c: Fix indentation.
1439 * arch/arm.c: Fix indentation.
1440 * arm-linux-nat.c: Fix indentation.
1441 * arm-linux-tdep.c: Fix indentation.
1442 * arm-nbsd-tdep.c: Fix indentation.
1443 * arm-pikeos-tdep.c: Fix indentation.
1444 * arm-tdep.c: Fix indentation.
1445 * arm-tdep.h: Fix indentation.
1446 * arm-wince-tdep.c: Fix indentation.
1447 * auto-load.c: Fix indentation.
1448 * auxv.c: Fix indentation.
1449 * avr-tdep.c: Fix indentation.
1450 * ax-gdb.c: Fix indentation.
1451 * ax-general.c: Fix indentation.
1452 * bfin-linux-tdep.c: Fix indentation.
1453 * block.c: Fix indentation.
1454 * block.h: Fix indentation.
1455 * blockframe.c: Fix indentation.
1456 * bpf-tdep.c: Fix indentation.
1457 * break-catch-sig.c: Fix indentation.
1458 * break-catch-syscall.c: Fix indentation.
1459 * break-catch-throw.c: Fix indentation.
1460 * breakpoint.c: Fix indentation.
1461 * breakpoint.h: Fix indentation.
1462 * bsd-uthread.c: Fix indentation.
1463 * btrace.c: Fix indentation.
1464 * build-id.c: Fix indentation.
1465 * buildsym-legacy.h: Fix indentation.
1466 * buildsym.c: Fix indentation.
1467 * c-typeprint.c: Fix indentation.
1468 * c-valprint.c: Fix indentation.
1469 * c-varobj.c: Fix indentation.
1470 * charset.c: Fix indentation.
1471 * cli/cli-cmds.c: Fix indentation.
1472 * cli/cli-decode.c: Fix indentation.
1473 * cli/cli-decode.h: Fix indentation.
1474 * cli/cli-script.c: Fix indentation.
1475 * cli/cli-setshow.c: Fix indentation.
1476 * coff-pe-read.c: Fix indentation.
1477 * coffread.c: Fix indentation.
1478 * compile/compile-cplus-types.c: Fix indentation.
1479 * compile/compile-object-load.c: Fix indentation.
1480 * compile/compile-object-run.c: Fix indentation.
1481 * completer.c: Fix indentation.
1482 * corefile.c: Fix indentation.
1483 * corelow.c: Fix indentation.
1484 * cp-abi.h: Fix indentation.
1485 * cp-namespace.c: Fix indentation.
1486 * cp-support.c: Fix indentation.
1487 * cp-valprint.c: Fix indentation.
1488 * cris-linux-tdep.c: Fix indentation.
1489 * cris-tdep.c: Fix indentation.
1490 * darwin-nat-info.c: Fix indentation.
1491 * darwin-nat.c: Fix indentation.
1492 * darwin-nat.h: Fix indentation.
1493 * dbxread.c: Fix indentation.
1494 * dcache.c: Fix indentation.
1495 * disasm.c: Fix indentation.
1496 * dtrace-probe.c: Fix indentation.
1497 * dwarf2/abbrev.c: Fix indentation.
1498 * dwarf2/attribute.c: Fix indentation.
1499 * dwarf2/expr.c: Fix indentation.
1500 * dwarf2/frame.c: Fix indentation.
1501 * dwarf2/index-cache.c: Fix indentation.
1502 * dwarf2/index-write.c: Fix indentation.
1503 * dwarf2/line-header.c: Fix indentation.
1504 * dwarf2/loc.c: Fix indentation.
1505 * dwarf2/macro.c: Fix indentation.
1506 * dwarf2/read.c: Fix indentation.
1507 * dwarf2/read.h: Fix indentation.
1508 * elfread.c: Fix indentation.
1509 * eval.c: Fix indentation.
1510 * event-top.c: Fix indentation.
1511 * exec.c: Fix indentation.
1512 * exec.h: Fix indentation.
1513 * expprint.c: Fix indentation.
1514 * f-lang.c: Fix indentation.
1515 * f-typeprint.c: Fix indentation.
1516 * f-valprint.c: Fix indentation.
1517 * fbsd-nat.c: Fix indentation.
1518 * fbsd-tdep.c: Fix indentation.
1519 * findvar.c: Fix indentation.
1520 * fork-child.c: Fix indentation.
1521 * frame-unwind.c: Fix indentation.
1522 * frame-unwind.h: Fix indentation.
1523 * frame.c: Fix indentation.
1524 * frv-linux-tdep.c: Fix indentation.
1525 * frv-tdep.c: Fix indentation.
1526 * frv-tdep.h: Fix indentation.
1527 * ft32-tdep.c: Fix indentation.
1528 * gcore.c: Fix indentation.
1529 * gdb_bfd.c: Fix indentation.
1530 * gdbarch.sh: Fix indentation.
1531 * gdbarch.c: Re-generate
1532 * gdbarch.h: Re-generate.
1533 * gdbcore.h: Fix indentation.
1534 * gdbthread.h: Fix indentation.
1535 * gdbtypes.c: Fix indentation.
1536 * gdbtypes.h: Fix indentation.
1537 * glibc-tdep.c: Fix indentation.
1538 * gnu-nat.c: Fix indentation.
1539 * gnu-nat.h: Fix indentation.
1540 * gnu-v2-abi.c: Fix indentation.
1541 * gnu-v3-abi.c: Fix indentation.
1542 * go32-nat.c: Fix indentation.
1543 * guile/guile-internal.h: Fix indentation.
1544 * guile/scm-cmd.c: Fix indentation.
1545 * guile/scm-frame.c: Fix indentation.
1546 * guile/scm-iterator.c: Fix indentation.
1547 * guile/scm-math.c: Fix indentation.
1548 * guile/scm-ports.c: Fix indentation.
1549 * guile/scm-pretty-print.c: Fix indentation.
1550 * guile/scm-value.c: Fix indentation.
1551 * h8300-tdep.c: Fix indentation.
1552 * hppa-linux-nat.c: Fix indentation.
1553 * hppa-linux-tdep.c: Fix indentation.
1554 * hppa-nbsd-nat.c: Fix indentation.
1555 * hppa-nbsd-tdep.c: Fix indentation.
1556 * hppa-obsd-nat.c: Fix indentation.
1557 * hppa-tdep.c: Fix indentation.
1558 * hppa-tdep.h: Fix indentation.
1559 * i386-bsd-nat.c: Fix indentation.
1560 * i386-darwin-nat.c: Fix indentation.
1561 * i386-darwin-tdep.c: Fix indentation.
1562 * i386-dicos-tdep.c: Fix indentation.
1563 * i386-gnu-nat.c: Fix indentation.
1564 * i386-linux-nat.c: Fix indentation.
1565 * i386-linux-tdep.c: Fix indentation.
1566 * i386-nto-tdep.c: Fix indentation.
1567 * i386-obsd-tdep.c: Fix indentation.
1568 * i386-sol2-nat.c: Fix indentation.
1569 * i386-tdep.c: Fix indentation.
1570 * i386-tdep.h: Fix indentation.
1571 * i386-windows-tdep.c: Fix indentation.
1572 * i387-tdep.c: Fix indentation.
1573 * i387-tdep.h: Fix indentation.
1574 * ia64-libunwind-tdep.c: Fix indentation.
1575 * ia64-libunwind-tdep.h: Fix indentation.
1576 * ia64-linux-nat.c: Fix indentation.
1577 * ia64-linux-tdep.c: Fix indentation.
1578 * ia64-tdep.c: Fix indentation.
1579 * ia64-tdep.h: Fix indentation.
1580 * ia64-vms-tdep.c: Fix indentation.
1581 * infcall.c: Fix indentation.
1582 * infcmd.c: Fix indentation.
1583 * inferior.c: Fix indentation.
1584 * infrun.c: Fix indentation.
1585 * iq2000-tdep.c: Fix indentation.
1586 * language.c: Fix indentation.
1587 * linespec.c: Fix indentation.
1588 * linux-fork.c: Fix indentation.
1589 * linux-nat.c: Fix indentation.
1590 * linux-tdep.c: Fix indentation.
1591 * linux-thread-db.c: Fix indentation.
1592 * lm32-tdep.c: Fix indentation.
1593 * m2-lang.c: Fix indentation.
1594 * m2-typeprint.c: Fix indentation.
1595 * m2-valprint.c: Fix indentation.
1596 * m32c-tdep.c: Fix indentation.
1597 * m32r-linux-tdep.c: Fix indentation.
1598 * m32r-tdep.c: Fix indentation.
1599 * m68hc11-tdep.c: Fix indentation.
1600 * m68k-bsd-nat.c: Fix indentation.
1601 * m68k-linux-nat.c: Fix indentation.
1602 * m68k-linux-tdep.c: Fix indentation.
1603 * m68k-tdep.c: Fix indentation.
1604 * machoread.c: Fix indentation.
1605 * macrocmd.c: Fix indentation.
1606 * macroexp.c: Fix indentation.
1607 * macroscope.c: Fix indentation.
1608 * macrotab.c: Fix indentation.
1609 * macrotab.h: Fix indentation.
1610 * main.c: Fix indentation.
1611 * mdebugread.c: Fix indentation.
1612 * mep-tdep.c: Fix indentation.
1613 * mi/mi-cmd-catch.c: Fix indentation.
1614 * mi/mi-cmd-disas.c: Fix indentation.
1615 * mi/mi-cmd-env.c: Fix indentation.
1616 * mi/mi-cmd-stack.c: Fix indentation.
1617 * mi/mi-cmd-var.c: Fix indentation.
1618 * mi/mi-cmds.c: Fix indentation.
1619 * mi/mi-main.c: Fix indentation.
1620 * mi/mi-parse.c: Fix indentation.
1621 * microblaze-tdep.c: Fix indentation.
1622 * minidebug.c: Fix indentation.
1623 * minsyms.c: Fix indentation.
1624 * mips-linux-nat.c: Fix indentation.
1625 * mips-linux-tdep.c: Fix indentation.
1626 * mips-nbsd-tdep.c: Fix indentation.
1627 * mips-tdep.c: Fix indentation.
1628 * mn10300-linux-tdep.c: Fix indentation.
1629 * mn10300-tdep.c: Fix indentation.
1630 * moxie-tdep.c: Fix indentation.
1631 * msp430-tdep.c: Fix indentation.
1632 * namespace.h: Fix indentation.
1633 * nat/fork-inferior.c: Fix indentation.
1634 * nat/gdb_ptrace.h: Fix indentation.
1635 * nat/linux-namespaces.c: Fix indentation.
1636 * nat/linux-osdata.c: Fix indentation.
1637 * nat/netbsd-nat.c: Fix indentation.
1638 * nat/x86-dregs.c: Fix indentation.
1639 * nbsd-nat.c: Fix indentation.
1640 * nbsd-tdep.c: Fix indentation.
1641 * nios2-linux-tdep.c: Fix indentation.
1642 * nios2-tdep.c: Fix indentation.
1643 * nto-procfs.c: Fix indentation.
1644 * nto-tdep.c: Fix indentation.
1645 * objfiles.c: Fix indentation.
1646 * objfiles.h: Fix indentation.
1647 * opencl-lang.c: Fix indentation.
1648 * or1k-tdep.c: Fix indentation.
1649 * osabi.c: Fix indentation.
1650 * osabi.h: Fix indentation.
1651 * osdata.c: Fix indentation.
1652 * p-lang.c: Fix indentation.
1653 * p-typeprint.c: Fix indentation.
1654 * p-valprint.c: Fix indentation.
1655 * parse.c: Fix indentation.
1656 * ppc-linux-nat.c: Fix indentation.
1657 * ppc-linux-tdep.c: Fix indentation.
1658 * ppc-nbsd-nat.c: Fix indentation.
1659 * ppc-nbsd-tdep.c: Fix indentation.
1660 * ppc-obsd-nat.c: Fix indentation.
1661 * ppc-ravenscar-thread.c: Fix indentation.
1662 * ppc-sysv-tdep.c: Fix indentation.
1663 * ppc64-tdep.c: Fix indentation.
1664 * printcmd.c: Fix indentation.
1665 * proc-api.c: Fix indentation.
1666 * producer.c: Fix indentation.
1667 * producer.h: Fix indentation.
1668 * prologue-value.c: Fix indentation.
1669 * prologue-value.h: Fix indentation.
1670 * psymtab.c: Fix indentation.
1671 * python/py-arch.c: Fix indentation.
1672 * python/py-bpevent.c: Fix indentation.
1673 * python/py-event.c: Fix indentation.
1674 * python/py-event.h: Fix indentation.
1675 * python/py-finishbreakpoint.c: Fix indentation.
1676 * python/py-frame.c: Fix indentation.
1677 * python/py-framefilter.c: Fix indentation.
1678 * python/py-inferior.c: Fix indentation.
1679 * python/py-infthread.c: Fix indentation.
1680 * python/py-objfile.c: Fix indentation.
1681 * python/py-prettyprint.c: Fix indentation.
1682 * python/py-registers.c: Fix indentation.
1683 * python/py-signalevent.c: Fix indentation.
1684 * python/py-stopevent.c: Fix indentation.
1685 * python/py-stopevent.h: Fix indentation.
1686 * python/py-threadevent.c: Fix indentation.
1687 * python/py-tui.c: Fix indentation.
1688 * python/py-unwind.c: Fix indentation.
1689 * python/py-value.c: Fix indentation.
1690 * python/py-xmethods.c: Fix indentation.
1691 * python/python-internal.h: Fix indentation.
1692 * python/python.c: Fix indentation.
1693 * ravenscar-thread.c: Fix indentation.
1694 * record-btrace.c: Fix indentation.
1695 * record-full.c: Fix indentation.
1696 * record.c: Fix indentation.
1697 * reggroups.c: Fix indentation.
1698 * regset.h: Fix indentation.
1699 * remote-fileio.c: Fix indentation.
1700 * remote.c: Fix indentation.
1701 * reverse.c: Fix indentation.
1702 * riscv-linux-tdep.c: Fix indentation.
1703 * riscv-ravenscar-thread.c: Fix indentation.
1704 * riscv-tdep.c: Fix indentation.
1705 * rl78-tdep.c: Fix indentation.
1706 * rs6000-aix-tdep.c: Fix indentation.
1707 * rs6000-lynx178-tdep.c: Fix indentation.
1708 * rs6000-nat.c: Fix indentation.
1709 * rs6000-tdep.c: Fix indentation.
1710 * rust-lang.c: Fix indentation.
1711 * rx-tdep.c: Fix indentation.
1712 * s12z-tdep.c: Fix indentation.
1713 * s390-linux-tdep.c: Fix indentation.
1714 * score-tdep.c: Fix indentation.
1715 * ser-base.c: Fix indentation.
1716 * ser-mingw.c: Fix indentation.
1717 * ser-uds.c: Fix indentation.
1718 * ser-unix.c: Fix indentation.
1719 * serial.c: Fix indentation.
1720 * sh-linux-tdep.c: Fix indentation.
1721 * sh-nbsd-tdep.c: Fix indentation.
1722 * sh-tdep.c: Fix indentation.
1723 * skip.c: Fix indentation.
1724 * sol-thread.c: Fix indentation.
1725 * solib-aix.c: Fix indentation.
1726 * solib-darwin.c: Fix indentation.
1727 * solib-frv.c: Fix indentation.
1728 * solib-svr4.c: Fix indentation.
1729 * solib.c: Fix indentation.
1730 * source.c: Fix indentation.
1731 * sparc-linux-tdep.c: Fix indentation.
1732 * sparc-nbsd-tdep.c: Fix indentation.
1733 * sparc-obsd-tdep.c: Fix indentation.
1734 * sparc-ravenscar-thread.c: Fix indentation.
1735 * sparc-tdep.c: Fix indentation.
1736 * sparc64-linux-tdep.c: Fix indentation.
1737 * sparc64-nbsd-tdep.c: Fix indentation.
1738 * sparc64-obsd-tdep.c: Fix indentation.
1739 * sparc64-tdep.c: Fix indentation.
1740 * stabsread.c: Fix indentation.
1741 * stack.c: Fix indentation.
1742 * stap-probe.c: Fix indentation.
1743 * stubs/ia64vms-stub.c: Fix indentation.
1744 * stubs/m32r-stub.c: Fix indentation.
1745 * stubs/m68k-stub.c: Fix indentation.
1746 * stubs/sh-stub.c: Fix indentation.
1747 * stubs/sparc-stub.c: Fix indentation.
1748 * symfile-mem.c: Fix indentation.
1749 * symfile.c: Fix indentation.
1750 * symfile.h: Fix indentation.
1751 * symmisc.c: Fix indentation.
1752 * symtab.c: Fix indentation.
1753 * symtab.h: Fix indentation.
1754 * target-float.c: Fix indentation.
1755 * target.c: Fix indentation.
1756 * target.h: Fix indentation.
1757 * tic6x-tdep.c: Fix indentation.
1758 * tilegx-linux-tdep.c: Fix indentation.
1759 * tilegx-tdep.c: Fix indentation.
1760 * top.c: Fix indentation.
1761 * tracefile-tfile.c: Fix indentation.
1762 * tracepoint.c: Fix indentation.
1763 * tui/tui-disasm.c: Fix indentation.
1764 * tui/tui-io.c: Fix indentation.
1765 * tui/tui-regs.c: Fix indentation.
1766 * tui/tui-stack.c: Fix indentation.
1767 * tui/tui-win.c: Fix indentation.
1768 * tui/tui-winsource.c: Fix indentation.
1769 * tui/tui.c: Fix indentation.
1770 * typeprint.c: Fix indentation.
1771 * ui-out.h: Fix indentation.
1772 * unittests/copy_bitwise-selftests.c: Fix indentation.
1773 * unittests/memory-map-selftests.c: Fix indentation.
1774 * utils.c: Fix indentation.
1775 * v850-tdep.c: Fix indentation.
1776 * valarith.c: Fix indentation.
1777 * valops.c: Fix indentation.
1778 * valprint.c: Fix indentation.
1779 * valprint.h: Fix indentation.
1780 * value.c: Fix indentation.
1781 * value.h: Fix indentation.
1782 * varobj.c: Fix indentation.
1783 * vax-tdep.c: Fix indentation.
1784 * windows-nat.c: Fix indentation.
1785 * windows-tdep.c: Fix indentation.
1786 * xcoffread.c: Fix indentation.
1787 * xml-syscall.c: Fix indentation.
1788 * xml-tdesc.c: Fix indentation.
1789 * xstormy16-tdep.c: Fix indentation.
1790 * xtensa-config.c: Fix indentation.
1791 * xtensa-linux-nat.c: Fix indentation.
1792 * xtensa-linux-tdep.c: Fix indentation.
1793 * xtensa-tdep.c: Fix indentation.
1794
e1f57067
AB
17952020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1796 Craig Blackmore <craig.blackmore@embecosm.com>
1797
1798 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1799 as an unsigned value.
1800
ae7754b2
TT
18012020-11-01 Tom Tromey <tom@tromey.com>
1802
1803 * dbxread.c (dbx_end_psymtab): Update.
1804 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1805 (build_type_psymtabs_reader): Update.
1806 * xcoffread.c (xcoff_end_psymtab): Update.
1807 * ctfread.c (scan_partial_symbols): Update.
1808 * psymtab.c (sort_pst_symbols): Remove.
1809 (partial_symtab::end): Rename from end_psymtab_common. Inline
1810 sort_pst_symbols.
1811 * psympriv.h (struct partial_symtab) <end>: New method.
1812 (end_psymtab_common): Don't declare.
1813
0684bb51
TT
18142020-11-01 Tom Tromey <tom@tromey.com>
1815
1816 * symmisc.c (count_psyms): New function.
1817 (print_objfile_statistics): Use it.
1818 * psymtab.c (append_psymbol_to_list): Remove.
1819 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1820 * objfiles.h (struct objstats) <n_psyms>: Remove.
1821
089002bb
TT
18222020-11-01 Tom Tromey <tom@tromey.com>
1823
1824 * dbxread.c (dbx_end_psymtab): Update.
1825 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1826 (build_type_psymtabs_reader): Update.
1827 * xcoffread.c (xcoff_end_psymtab): Update.
1828 * ctfread.c (scan_partial_symbols): Update.
1829 * psympriv.h (end_psymtab_common): Update.
1830 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1831 (sort_pst_symbols): Likewise.
1832
525454d6
TT
18332020-11-01 Tom Tromey <tom@tromey.com>
1834
1835 * dbxread.c (dbx_symfile_read): Update.
1836 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1837 * xcoffread.c (xcoff_initial_scan): Update.
1838 * psympriv.h (init_psymbol_list): Don't declare.
1839 * psymtab.c (init_psymbol_list): Remove.
1840
60bd1d53
JB
18412020-11-01 Joel Brobecker <brobecker@adacore.com>
1842
1843 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1844 gnat_encoded_fixed_type_info. Update all callers.
1845
db99d0d0
JB
18462020-11-01 Joel Brobecker <brobecker@adacore.com>
1847
1848 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1849 line too long.
1850
75f24e86
JB
18512020-11-01 Joel Brobecker <brobecker@adacore.com>
1852
1853 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1854 cast_from_fixed. Update all callers.
1855 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1856 Update all callers.
1857 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1858 Update all callers.
1859 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1860 ada_scaling_factor.
1861 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1862 to print_gnat_encoded_fixed_point_type.
1863 * ada-valprint.c: Likewise.
1864
4f0469cd
AB
18652020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1868 (debug_prefixed_printf): Add check of debug_displaced flag.
1869 * linux-nat.c (linux_nat_debug_printf): Add check of
1870 debug_linux_nat flag.
1871
17417fb0
SM
18722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * infrun.c (infrun_debug_printf_1): Remove.
1875 (displaced_debug_printf_1): Remove.
1876 (stop_all_threads): Use debug_prefixed_printf.
1877 * infrun.h (infrun_debug_printf_1): Remove.
1878 (infrun_debug_printf): Use debug_prefixed_printf.
1879 (displaced_debug_printf_1): Remove.
1880 (displaced_debug_printf): Use debug_prefixed_printf.
1881 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1882 (linux_nat_debug_printf): Use debug_prefixed_printf.
1883
ad6dba1c
SM
18842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1885
1886 * configure: Re-generate.
1887 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1888 AC_LANG_PROGRAM.
1889
b6fb30ed
SM
18902020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * configure: Re-generate.
1893
5164c117
SM
18942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * configure: Re-generate.
1897
864ca435
SM
18982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * configure: Re-generate.
1901
b9442ec1
SM
19022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * configure: Re-generate.
1905
294f2697
SM
19062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * acinclude.m4: Modernize.
1909 * configure: Re-generate.
1910
5593a99a
SM
19112020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * configure.ac: Modernize.
1914 * configure: Re-generate.
1915
e41fda1d
SM
19162020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1919 * configure: Re-generate.
1920 * configure.ac: Remove AM_PROG_CC_STDC.
1921
91e1a0ed
SM
19222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1925 AC_CANONICAL_SYSTEM.
1926 * configure: Re-generate.
1927
136821d9
SM
19282020-10-30 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * infrun.h (displaced_debug_printf): New macro. Replace
1931 displaced debug prints throughout to use it.
1932 (displaced_debug_printf_1): New declaration.
1933 (displaced_step_dump_bytes): Return string, remove ui_file
1934 parameter, update all callers.
1935 * infrun.c (displaced_debug_printf_1): New function.
1936 (displaced_step_dump_bytes): Return string, remove ui_file
1937 parameter
1938
aa2045e7
SM
19392020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1942
b1ec2735
TT
19432020-10-30 Tom Tromey <tromey@adacore.com>
1944
1945 * Makefile.in (stamp-init): Depend on config.status.
1946
b78b3a29
TBA
19472020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1948
1949 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1950
d70bdd3c
PA
19512020-10-30 Pedro Alves <pedro@palves.net>
1952
1953 * thread.c (lookup_selected_frame): Move ...
1954 * frame.c (lookup_selected_frame): ... here.
1955
79952e69
PA
19562020-10-30 Pedro Alves <pedro@palves.net>
1957
1958 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1959 * frame.c
1960 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1961 Use save_selected_frame. Save language as well.
1962 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1963 Use restore_selected_frame, and restore language as well.
1964 (selected_frame_id, selected_frame_level): New.
1965 (selected_frame): Update comments.
1966 (save_selected_frame, restore_selected_frame): New.
1967 (get_selected_frame): Use lookup_selected_frame.
1968 (get_selected_frame_if_set): Delete.
1969 (select_frame): Record selected_frame_level and selected_frame_id.
1970 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1971 fields.
1972 (get_selected_frame): Make 'message' parameter optional.
1973 (get_selected_frame_if_set): Delete declaration.
1974 (select_frame): Update comments.
1975 (save_selected_frame, restore_selected_frame)
1976 (lookup_selected_frame): Declare.
1977 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1978 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1979 New field.
1980 (save_infcall_control_state): Use save_selected_frame.
1981 (restore_selected_frame): Delete.
1982 (restore_infcall_control_state): Use restore_selected_frame.
1983 * stack.c (select_frame_command_core, frame_command_core): Use
1984 get_selected_frame.
1985 * thread.c (restore_selected_frame): Rename to ...
1986 (lookup_selected_frame): ... this and make extern. Select the
1987 current frame if the frame level is -1.
1988 (scoped_restore_current_thread::restore): Also restore the
1989 language.
1990 (scoped_restore_current_thread::~scoped_restore_current_thread):
1991 Don't try/catch.
1992 (scoped_restore_current_thread::scoped_restore_current_thread):
1993 Save the language as well. Use save_selected_frame.
1994
58103c33
SM
19952020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1998 documentation.
1999 * gdbarch.h: Re-generate.
2000
40a53766
SM
20012020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2004 parameter.
2005 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2006 Likewise.
2007 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2008 Likewise.
2009 * arch-utils.c (default_displaced_step_hw_singlestep):
2010 Likewise.
2011 * arch-utils.h (default_displaced_step_hw_singlestep):
2012 Likewise.
2013 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2014 Likewise.
2015 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2016 Likewise.
2017 * gdbarch.c: Re-generate.
2018 * gdbarch.h: Re-generate.
2019 * infrun.c (resume_1): Adjust.
2020
8407f91b
TT
20212020-10-29 Tom Tromey <tom@tromey.com>
2022
2023 * progspace.c (program_space::~program_space): Don't call
2024 exec_close.
2025
5008b3b2
TT
20262020-10-29 Tom Tromey <tom@tromey.com>
2027
2028 * exec.c (exec_target::close): Don't change current program
2029 space.
2030
d9eebde0
TT
20312020-10-29 Tom Tromey <tom@tromey.com>
2032
2033 * symfile.c (add_symbol_file_command): Update.
2034 * exec.c (program_space::add_target_sections): Rename.
2035 * symfile-mem.c (symbol_file_add_from_memory): Update.
2036 * progspace.h (struct program_space) <add_target_sections>:
2037 Declare new overload.
2038 * exec.h (add_target_sections_of_objfile): Don't declare.
2039
3769e227
TT
20402020-10-29 Tom Tromey <tom@tromey.com>
2041
2042 * solib.c (solib_map_sections): Update.
2043 * exec.c (program_space::add_target_sections): Now a method.
2044 (exec_file_attach): Update.
2045 * exec.h (add_target_sections): Don't declare.
2046 * progspace.h (struct program_space) <add_target_sections>:
2047 Declare.
2048
2a3f84af
TT
20492020-10-29 Tom Tromey <tom@tromey.com>
2050
2051 * progspace.h (struct program_space) <remove_target_sections>:
2052 Declare.
2053 * exec.c (program_space::remove_target_sections): Now a method.
2054 * exec.h (remove_target_sections): Don't declare.
2055
004eecfd
TT
20562020-10-29 Tom Tromey <tom@tromey.com>
2057
2058 * inferior.c (delete_inferior): Update.
2059 * progspace.c (program_space::empty): Rename from
2060 program_space_empty_p. Return bool.
2061 * progspace.h (struct program_space) <empty>: New method.
2062 (program_space_empty_p): Don't declare.
2063
e39fb971
TT
20642020-10-29 Tom Tromey <tom@tromey.com>
2065
2066 * progspace.c (program_space::~program_space): Don't call
2067 clear_program_space_solib_cache.
2068 (program_space::clear_solib_cache): Rename from
2069 clear_solib_cache.
2070 * solib.c (handle_solib_event): Update.
2071 * progspace.h (struct program_space) <clear_solib_cache>: New
2072 method.
2073 (clear_program_space_solib_cache): Don't declare.
2074
a42d7dd8
TT
20752020-10-29 Tom Tromey <tom@tromey.com>
2076
2077 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2078 * target.c (info_target_command): Update.
2079 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2080 (symbol_file_clear, reread_symbols): Update.
2081 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2082 * stabsread.c (scan_file_globals): Update.
2083 * solib.c (update_solib_list): Update.
2084 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2085 (svr4_fetch_objfile_link_map, enable_break)
2086 (svr4_relocate_main_executable)
2087 (svr4_iterate_over_objfiles_in_search_order): Update.
2088 * solib-frv.c (lm_base, enable_break)
2089 (frv_relocate_main_executable): Update.
2090 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2091 (frv_fetch_objfile_link_map): Update.
2092 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2093 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2094 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2095 * remote.c (remote_target::get_offsets): Update.
2096 (remote_target::start_remote)
2097 (extended_remote_target::post_attach): Update.
2098 * objfiles.c (entry_point_address_query): Update.
2099 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2100 * minsyms.c (get_symbol_leading_char): Update.
2101 * frame.c (inside_main_func): Update.
2102 * progspace.h (symfile_objfile): Remove macro.
2103
19f6550e
TT
21042020-10-29 Tom Tromey <tom@tromey.com>
2105
2106 * exec.c (exec_file_attach): Update.
2107 * progspace.c (program_space::exec_close): Update.
2108 * progspace.h (struct program_space) <ebfd>: Now a
2109 gdb_bfd_ref_ptr.
2110 <set_exec_bfd>: Change argument type.
2111 <exec_bfd>: Update.
2112
7e10abd1
TT
21132020-10-29 Tom Tromey <tom@tromey.com>
2114
2115 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2116 * symfile.c (reread_symbols): Update.
2117 * symfile-mem.c (add_symbol_file_from_memory_command)
2118 (add_vsyscall_page): Update.
2119 * source-cache.c (source_cache::get_plain_source_lines): Update.
2120 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2121 (svr4_current_sos_direct, svr4_exec_displacement)
2122 (svr4_relocate_main_executable): Update.
2123 (svr4_iterate_over_objfiles_in_search_order): Update.
2124 * solib-frv.c (enable_break2, enable_break): Update.
2125 * solib-dsbt.c (lm_base, enable_break): Update.
2126 * solib-darwin.c (find_program_interpreter)
2127 (darwin_solib_create_inferior_hook): Update.
2128 * sol-thread.c (rw_common, ps_pdmodel): Update.
2129 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2130 * remote.c (compare_sections_command)
2131 (remote_target::trace_set_readonly_regions): Update.
2132 * remote-sim.c (get_sim_inferior_data)
2133 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2134 (gdbsim_target_open, gdbsim_target::files_info): Update.
2135 * exec.h (exec_bfd): Remove macro.
2136 * progspace.c (initialize_progspace): Update.
2137 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2138 Update.
2139 * nto-procfs.c (nto_procfs_target::post_attach)
2140 (nto_procfs_target::create_inferior): Update.
2141 * maint.c (maintenance_info_sections): Update.
2142 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2143 Update.
2144 * infcmd.c (post_create_inferior): Update.
2145 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2146 (objfile_find_memory_regions): Update.
2147 * exec.c (validate_exec_file, exec_file_attach)
2148 (exec_read_partial_read_only, print_section_info): Update.
2149 * corelow.c (core_target_open): Update.
2150 * corefile.c (reopen_exec_file, validate_files): Update.
2151 * arm-tdep.c (gdb_print_insn_arm): Update.
2152 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2153 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2154 methods.
2155
b55221ab
TT
21562020-10-29 Tom Tromey <tom@tromey.com>
2157
2158 * progspace.h (current_target_sections): Remove macro.
2159 * solib-svr4.c (scan_dyntag): Update.
2160 * solib-dsbt.c (scan_dyntag): Update.
2161 * exec.c (exec_target::close): Update.
2162 (add_target_sections, add_target_sections_of_objfile)
2163 (remove_target_sections, exec_target::get_section_table)
2164 (exec_target::files_info, set_section_command)
2165 (exec_set_section_address, exec_target::has_memory)
2166 (exec_target::has_memory): Update.
2167
5a36e715
TT
21682020-10-29 Tom Tromey <tom@tromey.com>
2169
2170 * source-cache.c (source_cache::get_plain_source_lines): Use
2171 current_program_space.
2172 * corefile.c (reopen_exec_file): Use current_program_space.
2173 * exec.c (exec_file_attach): Use current_program_space.
2174 * exec.h (exec_bfd_mtime): Remove.
2175
784c8592
TT
21762020-10-29 Tom Tromey <tom@tromey.com>
2177
2178 * gcore.c (default_gcore_mach): Remove.
2179 (create_gcore_bfd): Update.
2180
8a4f1402
TT
21812020-10-29 Tom Tromey <tom@tromey.com>
2182
2183 * progspace.c (program_space::exec_close): New method, from
2184 exec_close in exec.c.
2185 * exec.c (exec_close): Move to progspace.c.
2186 (exec_target::close, exec_file_attach): Update.
2187 * progspace.h (struct program_space) <exec_close>: Declare
2188 method.
2189
c20cb686
TT
21902020-10-29 Tom Tromey <tom@tromey.com>
2191
2192 * progspace.h (struct program_space) <exec_filename>: Rename from
2193 pspace_exec_filename. Now a unique_xmalloc_ptr.
2194 * inferior.c (print_selected_inferior): Update.
2195 (print_inferior): Update.
2196 * mi/mi-main.c (print_one_inferior): Update.
2197 * exec.h (exec_filename): Remove macro.
2198 * corefile.c (get_exec_file): Update.
2199 * exec.c (exec_close): Update.
2200 (exec_file_attach): Update.
2201 * progspace.c (clone_program_space): Update.
2202 (print_program_space): Update.
2203
6be2a9ab
TT
22042020-10-29 Tom Tromey <tom@tromey.com>
2205
2206 * target-section.h (struct target_section): Add constructor.
2207 * exec.c (build_section_table, add_target_sections_of_objfile):
2208 Update.
2209 * corelow.c (core_target::build_file_mappings): Update.
2210
cfaa8f76
TBA
22112020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2212
2213 PR gdb/19318
2214 * inferior.c (detach_inferior_command): Restore the current thread.
2215 (kill_inferior_command): Ditto.
2216
1b00ef06
TV
22172020-10-28 Tom de Vries <tdevries@suse.de>
2218
2219 PR symtab/26772
2220 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2221 map, check it in the "best match" loop.
2222
7f40ce1a
SM
22232020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * m32c-tdep.c: Remove unused includes.
2226
5eb9e3f5
SM
22272020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * xtensa-tdep.c: Remove includes.
2230
b1d4d8d1
TBA
22312020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2232
2233 * breakpoint.c (struct condition_command_opts): New struct.
2234 (condition_command_option_defs): New static global.
2235 (make_condition_command_options_def_group): New function.
2236 (condition_completer): Update to consider the '-force' flag.
2237 (condition_command): Use gdb::option for the '-force' flag.
2238
bd24c5d6
TV
22392020-10-27 Tom de Vries <tdevries@suse.de>
2240
2241 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2242 symbols in section check.
2243
61eb46a4
TV
22442020-10-27 Tom de Vries <tdevries@suse.de>
2245
2246 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2247
733d554a
TBA
22482020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2249
2250 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2251 * breakpoint.c: Update the help text of the 'condition' and 'break'
2252 commands.
2253 (set_breakpoint_condition): Take a new bool parameter
2254 to control whether condition definition should be forced even when
2255 the condition expression is invalid in all of the current locations.
2256 (condition_command): Update the call to 'set_breakpoint_condition'.
2257 (find_condition_and_thread): Take the "-force-condition" flag into
2258 account.
2259 * linespec.c (linespec_keywords): Add "-force-condition" as an
2260 element.
2261 (FORCE_KEYWORD_INDEX): New #define.
2262 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2263 as a keyword.
2264 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2265 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2266 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2267 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2268
b5fa468f
TBA
22692020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2270
2271 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2272 * breakpoint.c (set_breakpoint_location_condition): New function.
2273 (set_breakpoint_condition): Disable a breakpoint location if parsing
2274 the condition string gives an error.
2275 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2276 (build_target_condition_list): Ditto.
2277 (build_target_command_list): Ditto.
2278 (build_bpstat_chain): Ditto.
2279 (print_one_breakpoint_location): Ditto.
2280 (print_one_breakpoint): Ditto.
2281 (breakpoint_1): Ditto.
2282 (bp_location::bp_location): Ditto.
2283 (locations_are_equal): Ditto.
2284 (update_breakpoint_locations): Ditto.
2285 (enable_disable_bp_num_loc): Ditto.
2286 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2287 (find_condition_and_thread_for_sals): New static function.
2288 (create_breakpoint): Call find_condition_and_thread_for_sals.
2289 (location_to_sals): Call find_condition_and_thread_for_sals instead
2290 of find_condition_and_thread.
2291
1c47ec3e
TV
22922020-10-26 Tom de Vries <tdevries@suse.de>
2293
2294 * dwarf2/read.c (process_full_comp_unit): Call
2295 dwarf2_find_base_address.
2296
6390859c
TT
22972020-10-26 Tom Tromey <tromey@adacore.com>
2298
2299 * gdbtypes.c (create_range_type): Revert previous patch. Add
2300 comment.
2301
d744f0f9
PA
23022020-10-26 Pedro Alves <pedro@palves.net>
2303
2304 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2305 (my_waitpid): Use gdb::handle_eintr.
2306
006811bc
SM
23072020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2308
2309 * acinclude.m4: Update ptrace.m4 path.
2310 * ptrace.m4: Moved to gdbsupport.
2311
c75e31a1
SM
23122020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2313
2314 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2315 instead of target_gdbarch.
2316
32495661
SM
23172020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * jit.c (jit_reader_load_command): Pass current inferior.
2320 (jit_inferior_init): Change parameter type to inferior, use it.
2321 (jit_inferior_created): Remove.
2322 (jit_inferior_created_hook): Pass inferior parameter down.
2323 (_initialize_jit): Use jit_inferior_created_hook instead of
2324 jit_inferior_created.
2325 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2326 * infrun.c (follow_exec): Pass inferior to
2327 jit_inferior_created_hook.
2328
3f66685e
SM
23292020-10-24 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2332 parameter and use it.
2333 (thread_db_inferior_created): Pass inferior argument.
2334
a0ff652f
SM
23352020-10-24 Simon Marchi <simon.marchi@efficios.com>
2336
2337 * aix-thread.c (aix_thread_inferior_created): Add inferior
2338 parameter.
2339 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2340 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2341 * jit.c (jit_inferior_created): Likewise.
2342 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2343 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2344 * observable.h (inferior_created): Likewise.
2345 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2346 * symfile-mem.c (add_vsyscall_page): Likewise.
2347 * infcmd.c (post_create_inferior): Pass inferior argument.
2348
3c67532c
JB
23492020-10-24 Joel Brobecker <brobecker@adacore.com>
2350
2351 GDB 10.1 released.
2352
8747316e
JB
23532020-10-23 Joel Brobecker <brobecker@adacore.com>
2354
2355 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2356 to ada_check_typedef.
2357
1a0ea399
AB
23582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * f-exp.y (f_parse): Rename to...
2361 (f_language::parser): ...this.
2362 * f-lang.c (f_get_encoding): Rename to...
2363 (f_language::get_encoding): ...this.
2364 (f_op_print_tab): Rename to...
2365 (f_language::op_print_tab): ...this.
2366 (exp_descriptor_f): Rename to...
2367 (f_language::exp_descriptor_tab): ...this.
2368 (class f_language): Moved to f-lang.h.
2369 (f_language::language_arch_info): New function, moved out of class
2370 declaration.
2371 (f_language::search_name_hash): Likewise.
2372 (f_language::lookup_symbol_nonlocal): Likewise.
2373 (f_language::get_symbol_name_matcher_inner): Likewise.
2374 * f-lang.h: Add 'valprint.h' include.
2375 (class f_language): Moved here from f-lang.c.
2376 * f-typeprint.c (f_type_print_args): Delete commented out
2377 declaration.
2378 (f_print_typedef): Rename to...
2379 (f_language::print_typedef): ...this.
2380 (f_print_type): Rename to...
2381 (f_language::print_type): ...this.
2382 (f_type_print_varspec_prefix): Delete declaration and rename to...
2383 (f_language::f_type_print_varspec_prefix): ...this.
2384 (f_type_print_varspec_suffix): Delete declaration and rename to...
2385 (f_language::f_type_print_varspec_suffix): ...this.
2386 (f_type_print_base): Delete declaration and rename to...
2387 (f_language::f_type_print_base): ...this.
2388 * f-valprint.c (f_value_print_inner): Rename to...
2389 (f_language::value_print_inner): ...this.
2390 * parse.c: Delete 'f-lang.h' include.
2391
88cefd9b
AB
23922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * language.h (language_defn::print_type): Add variable names in
2395 declaration, and update header comment.
2396
5399db93
AB
23972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * ada-lang.c (ada_language::demangle): Rename to...
2400 (ada_language::demangle_symbol): ...this.
2401 * c-lang.c (cplus_language::demangle): Rename to...
2402 (cplus_language::demangle_symbol): ...this.
2403 * d-lang.c (d_language::demangle): Rename to...
2404 (d_language::demangle_symbol): ...this.
2405 * f-lang.c (f_language::demangle): Rename to...
2406 (f_language::demangle_symbol): ...this.
2407 * go-lang.c (go_language::demangle): Rename to...
2408 (go_language::demangle_symbol): ...this.
2409 * language.c (language_demangle): Update call to demangle_symbol.
2410 (auto_or_unknown_language::demangle): Rename to...
2411 (auto_or_unknown_language::demangle_symbol): ...this.
2412 * language.h (language_defn::demangle): Rename to...
2413 (language_defn::demangle_symbol): ...this.
2414 * objc-lang.c (objc_language::demangle): Rename to...
2415 (objc_language::demangle_symbol): ...this.
2416 * rust-lang.c (rust_language::demangle): Rename to...
2417 (rust_language::demangle_symbol): ...this.
2418
4b2f86ef
AB
24192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2422 (iterate_over_file_blocks): Replace use of macro with the macros
2423 definition.
2424
e74b39de
AB
24252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2428 * valprint.c (maybe_print_array_index): Replace use of macro with
2429 the macros definition.
2430
00c696a6
AB
24312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * ada-lang.c (ada_language::print_array_index): Call value_print
2434 directly.
2435 * language.c (language_defn::print_array_index): Likewise.
2436 * language.h (LA_VALUE_PRINT): Delete.
2437 * valprint.c (value_print): Call value_print on the
2438 current_language directly.
2439
d3b67c56
AB
24402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * language.h (LA_PRINT_TYPEDEF): Delete.
2443 * typeprint.c (typedef_print): Call print_typedef directly on the
2444 current_language object.
2445
790e2a12
AB
24462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * m2-exp.y (m2_parse): Rename to...
2449 (m2_language::parser): ...this. Update function signature.
2450 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2451 (m2_op_print): Rename to...
2452 (m2_language::op_print_tab): ...this, and make const.
2453 (exp_descriptor_modula2): Rename to...
2454 (m2_language::exp_descriptor_modula2): ...this.
2455 (class m2_language): Move to m2-lang.h.
2456 (m2_language::language_arch_info): New function, moved out of
2457 class declaration.
2458 (m2_language::printchar): New function, body from m2_printchar.
2459 (m2_language::printstr): New function, moved out of class
2460 declaration.
2461 (m2_language::emitchar): Likewise.
2462 * m2-lang.h (m2_parse): Delete declaration.
2463 (m2_print_typedef): Delete declaration.
2464 (m2_value_print_inner): Delete declaration.
2465 (class m2_language): Class declaration moved from m2-lang.c,
2466 larger functions are left in m2-lang.c.
2467 * m2-typeprint.c (m2_print_typedef): Rename to...
2468 (m2_language::print_typedef): ...this, and update function
2469 signature.
2470 * m2-valprint.c (m2_value_print_inner): Rename to...
2471 (m2_language::value_print_inner): ...this, replace use of
2472 LA_PRINT_STRING with a direct call to printstr member function,
2473 and update recursive call.
2474
b01175fc
AB
24752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * language.c (default_is_string_type_p): Delete, implementation
2478 moved into auto_or_unknown_language::is_string_type_p.
2479 (unk_op_print_tab): Moved into
2480 auto_or_unknown_language::opcode_print_table.
2481 (unknown_language_arch_info): Delete, implementation moved into
2482 auto_or_unknown_language::language_arch_info.
2483 (class auto_or_unknown_language): New class, member functions
2484 copied from unknown_language class, with some updates.
2485 (class unknown_language): Most member functions moved into
2486 auto_or_unknown_language class. Inherit from
2487 auto_or_unknown_language class.
2488 (class auto_language): Inherit from auto_or_unknown_language.
2489 Delete most member functions.
2490
1a97fe8c
HD
24912020-10-22 Hannes Domani <ssbssa@yahoo.de>
2492
2493 * stabsread.c (read_member_functions): Remove gdb_assert.
2494
6b9d0dfd
HD
24952020-10-22 Hannes Domani <ssbssa@yahoo.de>
2496
2497 * gdbtypes.c (init_complex_type): Check target type name.
2498
4b4bb603
SM
24992020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2500
2501 * target-debug.h (target_debug_print_struct_target_ops_p):
2502 Remove.
2503 (target_debug_print_async_callback_ftype_p): Remove.
2504 (target_debug_print_struct_trace_state_variable_p): Remove.
2505 (target_debug_print_struct_traceframe_info_p): Remove.
2506 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2507 (target_debug_print_enum_btrace_format): Remove.
2508 (target_debug_print_enum_info_proc_what): Remove.
2509 (target_debug_print_thread_info_pp): Remove.
2510
24f5300a
SM
25112020-10-22 Simon Marchi <simon.marchi@efficios.com>
2512
2513 * target.h (struct target_ops) <make_corefile_notes>:
2514 Change return type to unique pointer.
2515 * target.c (dummy_make_corefile_notes): Likewise.
2516 * exec.c (struct exec_target) <make_corefile_notes>:
2517 Likewise.
2518 (exec_target::make_corefile_notes): Likewise.
2519 * procfs.c (class procfs_target) <make_corefile_notes>:
2520 Likewise.
2521 (procfs_do_thread_registers): Adjust to unique pointer.
2522 (struct procfs_corefile_thread_data): Add constructor.
2523 <note_data>: Change type to unique pointer.
2524 (procfs_corefile_thread_callback): Adjust to unique pointer.
2525 (procfs_target::make_corefile_notes): Change return type to
2526 unique pointer.
2527 * target-delegates.c: Re-generate.
2528 * gcore.c (write_gcore_file_1): Adjust.
2529 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2530 New.
2531
5fb4027f
TV
25322020-10-22 Tom de Vries <tdevries@suse.de>
2533
2534 * block.c (find_block_in_blockvector): Make sure the returned block
2535 contains pc.
2536
4a636814
SM
25372020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 PR gdb/26693
2540 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2541 parameter.
2542 (load_cu): Pass existing CU.
2543 (process_imported_unit_die): Likewise.
2544 (follow_die_offset): Likewise.
2545
1bd57575
LM
25462020-10-22 Luis Machado <luis.machado@linaro.org>
2547
2548 * corelow.c (core_target::xfer_partial): Also check for an empty
2549 m_core_unavailable_mappings vector.
2550
6b4c676c
AB
25512020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2554 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2555 * f-exp.y (arglist): Allow for a series of subranges.
2556 (subrange): Add cases for subranges with strides.
2557 * f-lang.c (value_f90_subarray): Catch use of array strides and
2558 throw an error.
2559 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2560
f2d8e4c5
AB
25612020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2562
2563 * expprint.c (print_subexp_standard): Change enum range_type to
2564 range_flag and rename variables to match.
2565 (dump_subexp_body_standard): Likewise.
2566 * expression.h (enum range_type): Rename to...
2567 (enum range_flag): ...this.
2568 (range_types): Rename to...
2569 (range_flags): ...this.
2570 * f-lang.c (value_f90_subarray): Change enum range_type to
2571 range_flag and rename variables to match.
2572 * parse.c (operator_length_standard): Likewise.
2573 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2574 range_type to range_flag.
2575 * rust-lang.c (rust_evaluate_funcall): Likewise.
2576 (rust_range): Likewise.
2577 (rust_compute_range): Likewise.
2578 (rust_subscript): Likewise.
2579
2f1b18db
AB
25802020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * expprint.c (print_subexp_standard): Update to reflect changes to
2583 enum range_type.
2584 (dump_subexp_body_standard): Likewise.
2585 * expression.h (enum range_type): Convert to a bit field enum, and
2586 make the enum unsigned.
2587 * f-exp.y (subrange): Update to reflect changes to enum
2588 range_type.
2589 * f-lang.c (value_f90_subarray): Likewise.
2590 * parse.c (operator_length_standard): Likewise.
2591 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2592 * rust-lang.c (rust_range): Likewise.
2593 (rust_compute_range): Likewise.
2594 (rust_subscript): Likewise.
2595
a46d1843
SM
25962020-10-21 Simon Marchi <simon.marchi@efficios.com>
2597
2598 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2599 (displaced_step_in_progress): Fix comment.
2600
c21f37a8
SM
26012020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2604 * gdbarch.c: Re-generate.
2605 * gdbarch.h: Re-generate.
2606 * gcore.c (write_gcore_file_1): Adjust.
2607 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2608 constructor.
2609 <note_data>: Change type to unique pointer.
2610 <abort_iteration>: Change type to bool.
2611 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2612 (fbsd_collect_thread_registers): Return void, adjust.
2613 (struct fbsd_corefile_thread_data): Add construtor.
2614 <note_data>: Change type to unique pointer.
2615 (fbsd_corefile_thread): Adjust.
2616 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2617 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2618 to unique pointer, adjust.
2619 (struct linux_collect_regset_section_cb_data): Add constructor.
2620 <note_data>: Change type to unique pointer.
2621 <abort_iteration>: Change type to bool.
2622 (linux_collect_thread_registers): Return void, adjust.
2623 (struct linux_corefile_thread_data): Add constructor.
2624 <note_data>: Change type to unique pointer.
2625 (linux_corefile_thread): Adjust.
2626 (linux_make_corefile_notes): Return unique pointer, adjust.
2627
07fbbd01
SM
26282020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2629
2630 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2631 * gdbarch.c: Re-generate.
2632 * gdbarch.h: Re-generate.
2633 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2634 bool.
2635 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2636 Likewise.
2637 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2638 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2639 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2640 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2641
39535193
SM
26422020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2643
2644 * gdbarch.sh: Make generated predicates return bool.
2645 * gdbarch.c: Re-generate.
2646 * gdbarch.h: Re-generate.
2647
ad523d01
TT
26482020-10-20 Tom Tromey <tom@tromey.com>
2649
2650 * varobj-iter.h (struct varobj_item): Remove typedef.
2651
c4464ade
SM
26522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2653
2654 * infrun.c (currently_stepping): Change int to bool
2655 (maybe_software_singlestep): Likewise.
2656 (show_stop_on_solib_events): Likewise.
2657 (stepping_past_nonsteppable_watchpoint): Likewise.
2658 (displaced_step_in_progress_any_inferior): Likewise.
2659 (displaced_step_in_progress_thread): Likewise.
2660 (keep_going_stepped_thread): Likewise.
2661 (thread_still_needs_step_over): Likewise.
2662 (start_step_over): Likewise.
2663 (do_target_resume): Likewise.
2664 (resume_1): Likewise.
2665 (clear_proceed_status): Likewise.
2666 (thread_still_needs_step_over_bp): Likewise.
2667 (proceed): Likewise.
2668 (switch_back_to_stepped_thread): Likewise.
2669 (adjust_pc_after_break): Likewise.
2670 (stepped_in_from): Likewise.
2671 (handle_stop_requested): Likewise.
2672 (handle_syscall_event): Likewise.
2673 (handle_no_resumed): Likewise.
2674 (handle_inferior_event): Likewise.
2675 (finish_step_over): Likewise.
2676 (handle_signal_stop): Likewise.
2677 (process_event_stop_test): Likewise.
2678
2eb20436
SM
26792020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2680
2681 * infrun.c (get_displaced_stepping_state): Fix comment.
2682
e0c45ded
AS
26832020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2684
2685 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2686
22cc388e
TT
26872020-10-19 Tom Tromey <tromey@adacore.com>
2688
2689 PR tui/26719
2690 * tui/tui-winsource.h (struct tui_source_window_base)
2691 <refresh_window>: Rename from refresh_pad.
2692 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2693 Rename from refresh_pad.
2694 (tui_source_window_base::show_source_content)
2695 (tui_source_window_base::do_scroll_horizontal): Update.
2696
3c6eb4d4
TBA
26972020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698
2699 * thread.c (_initialize_thread): Fine-tune the help text of
2700 'info threads'.
2701
26703721
TBA
27022020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2703
2704 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2705
61c26be8
MS
27062020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2707
2708 * breakpoint.c (handle_jit_event): Add an argument, change how
2709 `jit_event_handler` is called.
2710
932539d7
TT
27112020-10-17 Tom Tromey <tom@tromey.com>
2712
2713 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2714 (scan_xcoff_symtab): Update.
2715 * psymtab.h (class psymtab_storage) <global_psymbols,
2716 static_psymbols, current_global_psymbols,
2717 current_static_psymbols>: Remove.
2718 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2719 (match_partial_symbol, lookup_partial_symbol): Update.
2720 (print_partial_symbols): Change parameters.
2721 (dump_psymtab, recursively_search_psymtabs)
2722 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2723 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2724 (concat): Remove.
2725 (end_psymtab_common): Simplify.
2726 (append_psymbol_to_list): Change parameters.
2727 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2728 (init_psymbol_list): Simplify.
2729 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2730 * psympriv.h (struct partial_symtab) <empty>: New method.
2731 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2732 Remove.
2733 <global_psymbols, static_psymbols>: New members.
2734 <add_psymbol>: New methods.
2735 (add_psymbol_to_list): Don't declare.
2736 (psymbol_placement): Move earlier.
2737 * mdebugread.c (parse_partial_symbols): Update.
2738 (handle_psymbol_enumerators): Change parameters.
2739 (mdebug_expand_psymtab): Update.
2740 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2741 (add_partial_symbol): Update.
2742 * dwarf2/index-write.c (write_psymbols): Change parameters.
2743 (write_one_signatured_type): Update.
2744 (recursively_count_psymbols): Update.
2745 (recursively_write_psymbols): Update.
2746 (class debug_names) <recursively_write_psymbols>: Update.
2747 <write_psymbols>: Change parameters.
2748 <write_one_signatured_type>: Update.
2749 * dbxread.c (read_dbx_symtab): Update.
2750 (dbx_end_psymtab): Use partial_symtab::empty.
2751 * ctfread.c (struct ctf_context) <pst>: New member.
2752 (create_partial_symtab): Set it.
2753 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2754 (scan_partial_symbols): Use the psymtab's context. Update.
2755
cfabbd35
TT
27562020-10-17 Tom Tromey <tom@tromey.com>
2757
2758 * valprint.c (generic_value_print): Remove comment.
2759 * m2-valprint.c (m2_value_print_inner): Remove comment.
2760 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2761 type.
2762
520596f2
TV
27632020-10-17 Tom de Vries <tdevries@suse.de>
2764
2765 PR symtab/26317
2766 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2767 symbol main.
2768
76547ab3
TV
27692020-10-14 Tom de Vries <tdevries@suse.de>
2770
2771 PR gdb/26733
2772 * solib.c (solib_contains_address_p): Handle
2773 'solib->sections == nullptr'.
2774
d3a07122
SM
27752020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2776
2777 PR gdb/26642
2778 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2779 target can't do async.
2780 * target.c (target_wait): Assert that we don't pass
2781 TARGET_WNOHANG to a target that can't async.
2782
1b71cfcf
KR
27832020-10-13 Kamil Rytarowski <n54@gmx.com>
2784
2785 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2786 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2787 * alpha-bsd-nat.c: Adjust include.
2788 * alpha-bsd-tdep.h: Adjust comment.
2789 * alpha-nbsd-tdep.c: Rename to ...
2790 * alpha-netbsd-tdep.c: ... this, adjust include.
2791 * amd64-nbsd-nat.c: Rename to ...
2792 * amd64-netbsd-nat.c: ... this, adjust include.
2793 * amd64-nbsd-tdep.c: Rename to ...
2794 * amd64-netbsd-tdep.c: ... this, adjust include.
2795 * amd64-tdep.h: Adjust include.
2796 * arm-nbsd-nat.c: Rename to ...
2797 * arm-netbsd-nat.c: ... this, adjust include.
2798 * arm-nbsd-tdep.c: Rename to ...
2799 * arm-netbsd-tdep.c: ... this, adjust include.
2800 * arm-nbsd-tdep.h: Rename to ...
2801 * arm-netbsd-tdep.h: ... this, adjust include.
2802 * configure.nat: Adjust file lists.
2803 * configure.tgt: Likewise.
2804 * hppa-nbsd-nat.c: Rename to ...
2805 * hppa-netbsd-nat.c: ... this, adjust include.
2806 * hppa-nbsd-tdep.c: Rename to ...
2807 * hppa-netbsd-tdep.c: ... this, adjust include.
2808 * i386-nbsd-nat.c: Rename to ...
2809 * i386-netbsd-nat.c: ... this, adjust include.
2810 * i386-nbsd-tdep.c: Rename to ...
2811 * i386-netbsd-tdep.c: ... this, adjust include.
2812 * m68k-bsd-nat.c: Adjust include.
2813 * mips-nbsd-nat.c: Rename to ...
2814 * mips-netbsd-nat.c: ... this, adjust include.
2815 * mips-nbsd-tdep.c: Rename to ...
2816 * mips-netbsd-tdep.c: ... this, adjust include.
2817 * mips-nbsd-tdep.h: Rename to ...
2818 * mips-netbsd-tdep.h: ... this.
2819 * nbsd-nat.c: Rename to ...
2820 * netbsd-nat.c: ... this, adjust include.
2821 * nbsd-nat.h: Rename to ...
2822 * netbsd-nat.h: ... this, adjust include.
2823 * nbsd-tdep.c: Rename to ...
2824 * netbsd-tdep.c: ... this, adjust include.
2825 * nbsd-tdep.h: Rename to ...
2826 * netbsd-tdep.h: ... this.
2827 * ppc-nbsd-nat.c: Rename to ...
2828 * ppc-netbsd-nat.c: ... this, adjust include.
2829 * ppc-nbsd-tdep.c: Rename to ...
2830 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2831 * ppc-nbsd-tdep.h: Rename to ...
2832 * ppc-netbsd-tdep.h: ... this.
2833 * sh-nbsd-nat.c: Rename to ...
2834 * sh-netbsd-nat.c: ... this, adjust include.
2835 * sh-nbsd-tdep.c: Rename to ...
2836 * sh-netbsd-tdep.c: ... this, adjust include.
2837 * sparc-nbsd-nat.c: Rename to ...
2838 * sparc-netbsd-nat.c: ... this.
2839 * sparc-nbsd-tdep.c: Rename to ...
2840 * sparc-netbsd-tdep.c: ... this, adjust include.
2841 * sparc64-nbsd-nat.c: Rename to ...
2842 * sparc64-netbsd-nat.c: ... this.
2843 * sparc64-nbsd-tdep.c: Rename to ...
2844 * sparc64-netbsd-tdep.c: ... this, adjust include.
2845 * sparc64-tdep.h: Adjust comment.
2846 * vax-bsd-nat.c: Adjust include.
2847 * vax-nbsd-tdep.c: Rename to ...
2848 * vax-netbsd-tdep.c: ... this, adjust include.
2849
d7a78e5c
TT
28502020-10-12 Tom Tromey <tom@tromey.com>
2851
2852 * target.h (struct target_ops) <get_section_table>: Update.
2853 (target_get_section_table): Update.
2854 * target.c (target_get_section_table, target_section_by_addr)
2855 (memory_xfer_partial_1): Update.
2856 * target-section.h (target_section_table): Now an alias.
2857 * target-delegates.c: Rebuild.
2858 * target-debug.h (target_debug_print_target_section_table_p):
2859 Rename from target_debug_print_struct_target_section_table_p.
2860 * symfile.c (build_section_addr_info_from_section_table): Update.
2861 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2862 * solib-svr4.c (scan_dyntag): Update.
2863 * solib-dsbt.c (scan_dyntag): Update.
2864 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2865 Update.
2866 * record-full.c (record_full_core_target::xfer_partial): Update.
2867 * progspace.h (struct program_space) <target_sections>: Update.
2868 * exec.h (print_section_info): Update.
2869 * exec.c (exec_target::close, build_section_table)
2870 (add_target_sections, add_target_sections_of_objfile)
2871 (remove_target_sections, exec_on_vfork)
2872 (section_table_available_memory)
2873 (section_table_xfer_memory_partial)
2874 (exec_target::get_section_table, exec_target::xfer_partial)
2875 (print_section_info, set_section_command)
2876 (exec_set_section_address, exec_target::has_memory): Update.
2877 * corelow.c (core_target::build_file_mappings)
2878 (core_target::xfer_partial, core_target::info_proc_mappings)
2879 (core_target::info_proc_mappings): Update.
2880 * bfd-target.c (class target_bfd): Update
2881
eda214ce
TT
28822020-10-12 Tom Tromey <tom@tromey.com>
2883
2884 * progspace.c (program_space::~program_space): Don't call
2885 clear_section_table.
2886 * exec.h (clear_section_table): Don't declare.
2887 * exec.c (exec_target::close): Update.
2888 (clear_section_table): Remove.
2889
91840ee3
TT
28902020-10-12 Tom Tromey <tom@tromey.com>
2891
2892 * exec.c (add_target_sections_of_objfile): Simplify.
2893
2d128614
TT
28942020-10-12 Tom Tromey <tom@tromey.com>
2895
2896 * solib.c (solib_map_sections): Update.
2897 * record-full.c (record_full_core_open_1): Update.
2898 * exec.h (build_section_table): Return a target_section_table.
2899 * exec.c (exec_file_attach): Update.
2900 (build_section_table): Return a target_section_table.
2901 * corelow.c (core_target::core_target): Update.
2902 * bfd-target.c (target_bfd::target_bfd): Update.
2903
bb2a6777
TT
29042020-10-12 Tom Tromey <tom@tromey.com>
2905
2906 * target.c (target_section_by_addr, memory_xfer_partial_1):
2907 Update.
2908 * target-section.h (struct target_section_table): Use
2909 std::vector.
2910 * symfile.h (build_section_addr_info_from_section_table): Take a
2911 target_section_table.
2912 * symfile.c (build_section_addr_info_from_section_table): Take a
2913 target_section_table.
2914 * solist.h (struct so_list) <sections>: Change type.
2915 <sections_end>: Remove.
2916 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2917 (solib_contains_address_p): Update.
2918 * solib-svr4.c (scan_dyntag): Update.
2919 * solib-dsbt.c (scan_dyntag): Update.
2920 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2921 Update.
2922 * record-full.c (record_full_core_start, record_full_core_end):
2923 Remove.
2924 (record_full_core_sections): New global.
2925 (record_full_core_open_1, record_full_core_target::xfer_partial):
2926 Update.
2927 * exec.h (build_section_table, section_table_xfer_memory_partial)
2928 (add_target_sections): Take a target_section_table.
2929 * exec.c (exec_file_attach, clear_section_table): Update.
2930 (resize_section_table): Remove.
2931 (build_section_table, add_target_sections): Take a
2932 target_section_table.
2933 (add_target_sections_of_objfile, remove_target_sections)
2934 (exec_on_vfork): Update.
2935 (section_table_available_memory): Take a target_section_table.
2936 (section_table_read_available_memory): Update.
2937 (section_table_xfer_memory_partial): Take a target_section_table.
2938 (print_section_info, set_section_command)
2939 (exec_set_section_address, exec_target::has_memory): Update.
2940 * corelow.c (class core_target) <m_core_section_table,
2941 m_core_file_mappings>: Remove braces.
2942 <~core_target>: Remove.
2943 (core_target::core_target): Update.
2944 (core_target::~core_target): Remove.
2945 (core_target::build_file_mappings)
2946 (core_target::xfer_memory_via_mappings)
2947 (core_target::xfer_partial, core_target::info_proc_mappings):
2948 Update.
2949 * bfd-target.c (target_bfd::xfer_partial): Update.
2950 (target_bfd::target_bfd): Update.
2951 (target_bfd::~target_bfd): Remove.
2952
7b466b10
TT
29532020-10-12 Tom Tromey <tom@tromey.com>
2954
2955 * target.h (struct target_section, struct target_section_table):
2956 Move to target-section.h.
2957 * target-section.h: New file.
2958
87a37e5e
PA
29592020-10-12 Pedro Alves <pedro@palves.net>
2960
2961 PR exp/26602
2962 * valops.c (struct struct_field_searcher): New.
2963 (update_search_result): Rename to ...
2964 (struct_field_searcher::update_result): ... this. Simplify
2965 prototype. Record all found fields.
2966 (do_search_struct_field): Rename to ...
2967 (struct_field_searcher::search): ... this. Simplify prototype.
2968 Maintain stack of visited baseclass path. Call update_result for
2969 fields too. Keep searching fields in baseclasses instead of
2970 stopping at the first found field.
2971 (search_struct_field): Use struct_field_searcher. When looking
2972 for fields, report ambiguous access attempts.
2973
9370fd51
AB
29742020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * frame.c (inside_main_func): Check full symbols as well as
2977 minimal symbols.
2978
59c8a30b
JB
29792020-10-09 Joel Brobecker <brobecker@adacore.com>
2980
2981 * ada-lang.c (advance_wild_match): Rewrite the function's
2982 description. Change the type of target0, t0 and t1 to char.
2983
7c184d33
TT
29842020-10-09 Tom Tromey <tromey@adacore.com>
2985
2986 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2987
5c4258f4
TT
29882020-10-09 Tom Tromey <tromey@adacore.com>
2989
2990 * ada-lang.h (ada_encode): Return std::string.
2991 * ada-lang.c (ada_encode_1): Return std::string.
2992 (ada_encode): Likewise.
2993 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2994 Update.
2995 * ada-exp.y (block_lookup, write_var_or_type): Update.
2996
3d87245c
HD
29972020-10-09 Hannes Domani <ssbssa@yahoo.de>
2998
2999 PR exp/26714
3000 * printcmd.c (print_formatted): Handle void results as
3001 unformatted prints.
3002
bbb826f5
AB
30032020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * arch/aarch32.c (aarch32_create_target_description): Release the
3006 target_desc_up as late as possible.
3007 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3008 * arch/amd64.c (amd64_create_target_description): Likewise.
3009 * arch/arc.c (arc_create_target_description): Return a
3010 target_desc_up, don't release it.
3011 * arch/arc.h (arc_create_target_description): Update declaration.
3012 (arc_lookup_target_description): Move target_desc_up into the
3013 cache, and return a borrowed pointer.
3014 * arch/arm.c (arm_create_target_description): Release the
3015 target_desc_up as late as possible.
3016 * arch/i386.c (i386_create_target_description): Likewise.
3017 * arch/riscv.h (riscv_create_target_description): Update
3018 declaration to match definition.
3019 * arch/tic6x.c (tic6x_create_target_description): Release the
3020 target_desc_up as late as possible.
3021
361cb219
AB
30222020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3025 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3026
f5c4b229
JV
30272020-10-09 Jan Vrany <jan.vrany@labware.com>
3028
3029 * source.c (directory_command): Notify observers that "directories"
3030 parameter has changed.
3031
b2701685
TT
30322020-10-08 Tom Tromey <tom@tromey.com>
3033
3034 * cli/cli-cmds.c (print_disassembly): Style function name and
3035 addresses. Add _() wrappers.
3036
ada508b6
SV
30372020-10-08 Shahab Vahedi <shahab@synopsys.com>
3038
3039 * NEWS: Mention ARC support in GDBserver.
3040
51a948fd
AB
30412020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * arch/aarch32.c (aarch32_create_target_description): Release
3044 unique_ptr returned from allocate_target_description.
3045 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3046 * arch/amd64.c (amd64_create_target_description): Likewise.
3047 * arch/arc.c (arc_create_target_description): Likewise.
3048 * arch/arm.c (arm_create_target_description): Likewise.
3049 * arch/i386.c (i386_create_target_description): Likewise.
3050 * arch/riscv.c (riscv_create_target_description): Update return
3051 type. Handle allocate_target_description returning a unique_ptr.
3052 (riscv_lookup_target_description): Update to handle unique_ptr.
3053 * arch/tic6x.c (tic6x_create_target_description): Release
3054 unique_ptr returned from allocate_target_description.
3055 * features/microblaze-with-stack-protect.c: Regenerate.
3056 * features/microblaze.c: Regenerate.
3057 * features/mips-dsp-linux.c: Regenerate.
3058 * features/mips-linux.c: Regenerate.
3059 * features/mips64-dsp-linux.c: Regenerate.
3060 * features/mips64-linux.c: Regenerate.
3061 * features/nds32.c: Regenerate.
3062 * features/nios2.c: Regenerate.
3063 * features/or1k.c: Regenerate.
3064 * features/rs6000/powerpc-32.c: Regenerate.
3065 * features/rs6000/powerpc-32l.c: Regenerate.
3066 * features/rs6000/powerpc-403.c: Regenerate.
3067 * features/rs6000/powerpc-403gc.c: Regenerate.
3068 * features/rs6000/powerpc-405.c: Regenerate.
3069 * features/rs6000/powerpc-505.c: Regenerate.
3070 * features/rs6000/powerpc-601.c: Regenerate.
3071 * features/rs6000/powerpc-602.c: Regenerate.
3072 * features/rs6000/powerpc-603.c: Regenerate.
3073 * features/rs6000/powerpc-604.c: Regenerate.
3074 * features/rs6000/powerpc-64.c: Regenerate.
3075 * features/rs6000/powerpc-64l.c: Regenerate.
3076 * features/rs6000/powerpc-7400.c: Regenerate.
3077 * features/rs6000/powerpc-750.c: Regenerate.
3078 * features/rs6000/powerpc-860.c: Regenerate.
3079 * features/rs6000/powerpc-altivec32.c: Regenerate.
3080 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3081 * features/rs6000/powerpc-altivec64.c: Regenerate.
3082 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3083 * features/rs6000/powerpc-e500.c: Regenerate.
3084 * features/rs6000/powerpc-e500l.c: Regenerate.
3085 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3086 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3087 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3088 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3089 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3090 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3091 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3092 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3093 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3094 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3095 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3096 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3097 * features/rs6000/powerpc-vsx32.c: Regenerate.
3098 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3099 * features/rs6000/powerpc-vsx64.c: Regenerate.
3100 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3101 * features/rs6000/rs6000.c: Regenerate.
3102 * features/rx.c: Regenerate.
3103 * features/s390-gs-linux64.c: Regenerate.
3104 * features/s390-linux32.c: Regenerate.
3105 * features/s390-linux32v1.c: Regenerate.
3106 * features/s390-linux32v2.c: Regenerate.
3107 * features/s390-linux64.c: Regenerate.
3108 * features/s390-linux64v1.c: Regenerate.
3109 * features/s390-linux64v2.c: Regenerate.
3110 * features/s390-te-linux64.c: Regenerate.
3111 * features/s390-tevx-linux64.c: Regenerate.
3112 * features/s390-vx-linux64.c: Regenerate.
3113 * features/s390x-gs-linux64.c: Regenerate.
3114 * features/s390x-linux64.c: Regenerate.
3115 * features/s390x-linux64v1.c: Regenerate.
3116 * features/s390x-linux64v2.c: Regenerate.
3117 * features/s390x-te-linux64.c: Regenerate.
3118 * features/s390x-tevx-linux64.c: Regenerate.
3119 * features/s390x-vx-linux64.c: Regenerate.
3120 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3121 from allocate_target_description.
3122 * target-descriptions.c (allocate_target_description): Update
3123 return type.
3124 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3125 allocate_target_description.
3126
485c47e5
TT
31272020-10-07 Tom Tromey <tromey@adacore.com>
3128
3129 * unittests/search-memory-selftests.c: New file.
3130 * Makefile.in (SELFTESTS_SRCS): Add
3131 unittests/search-memory-selftests.c.
3132
3a135a91
TT
31332020-10-07 Tom Tromey <tromey@adacore.com>
3134
3135 PR gdb/16930:
3136 * findcmd.c (_initialize_mem_search): Mention that the range is
3137 inclusive.
3138
4a72de73
TT
31392020-10-07 Tom Tromey <tromey@adacore.com>
3140
3141 * target.h (simple_search_memory): Don't declare.
3142 * target.c (simple_search_memory): Move to gdbsupport.
3143 (default_search_memory): Update.
3144 * remote.c (remote_target::search_memory): Update.
3145
a038ffd8
SM
31462020-10-07 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * Makefile.in (COMPILE): Add CXXFLAGS.
3149 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3150 (check-headers): Add CXXFLAGS.
3151
cc463201
AK
31522020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3153
3154 * arc-linux-tdep.h: New file.
3155 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3156 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3157 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3158 arc_linux_gregset, arc_linux_v2_regset,
3159 arc_linux_iterate_over_regset_sections,
3160 arc_linux_core_read_description): Implement.
3161 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3162 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3163 (arc_gdbarch_features_create): Add.
3164 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3165
e4bd363f
SV
31662020-10-07 Shahab Vahedi <shahab@synopsys.com>
3167
3168 * arch/arc.h: Rename "arc_gdbarch_features" to
3169 "arc_arch_features".
3170 * arc-tdep.h: Likewise.
3171 * arc-tdep.c: Likewise.
3172
b68bef99
TBA
31732020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3174
3175 * infcmd.c (attach_command): Remove the redundant call to
3176 `clear_proceed_status`.
3177
4641551a
KR
31782020-10-07 Kamil Rytarowski <n54@gmx.com>
3179
3180 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3181
91e5e8db
KR
31822020-10-07 Kamil Rytarowski <n54@gmx.com>
3183
3184 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3185 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3186 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3187
64c03bdb
SM
31882020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3189
3190 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3191 (_initialize_break_catch_sig): Don't allocate array.
3192
31a8f60f
AB
31932020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * symtab.c (find_pc_line): Return unmapped addresses when the
3196 requested address is also unmapped.
3197
9e6dbd8b
SM
31982020-10-05 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3201 tui/tui-out.h.
3202
a1d217e8
SM
32032020-10-05 Simon Marchi <simon.marchi@efficios.com>
3204
3205 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3206 type::is_vector instead of TYPE_VECTOR.
3207
7d144117
SM
32082020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3209
3210 * auto-load.c (auto_load_objfile_script_1): Don't use
3211 debugfile_holder as temporary variable when stripping drive
3212 letter.
3213
cd096ec8
HD
32142020-10-05 Hannes Domani <ssbssa@yahoo.de>
3215
3216 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3217 Add TYPE_CODE_COMPLEX.
3218 (amd64_windows_return_value): Fix types returned via XMM0.
3219
b58e7f72
AH
32202020-10-05 Alan Hayward <alan.hayward@arm.com>
3221
3222 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3223 AArch64/ARM maintainers.
3224
8d378f27
SM
32252020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * NEWS: Mention set/show debug event-loop.
3228
d5519913
TT
32292020-10-02 Tom Tromey <tromey@adacore.com>
3230
3231 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3232 REG_EXTENDED.
3233
18b67edc
SM
32342020-10-02 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3237 * procfs.c (procfs_inferior_created): Remove.
3238 (_initialize_procfs): Don't register procfs_inferior_created.
3239
6b01403b
SM
32402020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3241
3242 * async-event.c (invoke_async_signal_handlers): Add debug
3243 print.
3244 (check_async_event_handlers): Likewise.
3245 * event-top.c (show_debug_event_loop): New function.
3246 (_initialize_event_top): Register "set debug event-loop"
3247 setting.
3248
ba988419
SM
32492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3252 * debug.h: Remove.
3253 * infrun.c: Include gdbsupport/common-debug.h.
3254 * linux-nat.c: Likewise.
3255
db20ebdf
SM
32562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * async-event.h (create_async_signal_handler): Add name
3259 parameter.
3260 (create_async_event_handler): Likewise.
3261 * async-event.c (struct async_signal_handler) <name>: New field.
3262 (struct async_event_handler) <name>: New field.
3263 (create_async_signal_handler): Assign name.
3264 (create_async_event_handler): Assign name.
3265 * event-top.c (async_init_signals): Pass name when creating
3266 handler.
3267 * infrun.c (_initialize_infrun): Likewise.
3268 * record-btrace.c (record_btrace_push_target): Likewise.
3269 * record-full.c (record_full_open): Likewise.
3270 * remote-notif.c (remote_notif_state_allocate): Likewise.
3271 * remote.c (remote_target::open_1): Likewise.
3272 * tui/tui-win.c (tui_initialize_win): Likewise.
3273
2554f6f5
SM
32742020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3275
3276 * async-event.c (initialize_async_signal_handlers): Pass name to
3277 add_file_handler
3278 * event-top.c (ui_register_input_event_handler): Likewise.
3279 * linux-nat.c (linux_nat_target::async): Likewise.
3280 * run-on-main-thread.c (_initialize_run_on_main_thread):
3281 Likewise
3282 * ser-base.c (reschedule): Likewise.
3283 (ser_base_async): Likewise.
3284 * tui/tui-io.c: Likewise.
3285 * top.h (struct ui) <num>: New field.
3286 * top.c (highest_ui_num): New variable.
3287 (ui::ui): Initialize num.
3288
a7aba266
SM
32892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * observable.h <inferior_created>: Remove parameters. Update all
3292 listeners.
3293 * inferior.h (post_create_inferior): Remove target parameter.
3294 Update all callers.
3295
048fde1e 32962020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3297
3298 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3299 and DW_MACRO_undef_strx.
3300 (dwarf_decode_macros): Likewise
3301 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3302 which is the value of DW_AT_str_offsets_base.
3303 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3304 str_offsets_base.
3305
064280be
KR
33062020-10-01 Kamil Rytarowski <n54@gmx.com>
3307
3308 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3309
6ff33035
KR
33102020-10-01 Kamil Rytarowski <n54@gmx.com>
3311
3312 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3313 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3314
1eb6eb79
KR
33152020-10-01 Kamil Rytarowski <n54@gmx.com>
3316
3317 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3318
95eb9e54
TV
33192020-09-30 Tom de Vries <tdevries@suse.de>
3320
3321 PR symtab/26683
3322 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3323
cae21f8e
TT
33242020-09-30 Tom Tromey <tromey@adacore.com>
3325
3326 * dwarf2/read.c (handle_variant): Use constant_value.
3327
529908cb
TT
33282020-09-29 Tom Tromey <tom@tromey.com>
3329
3330 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3331 (read_file_scope, dwarf2_get_pc_bounds)
3332 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3333 (read_structure_type, handle_struct_member_die)
3334 (read_enumeration_type, read_array_type, read_set_type)
3335 (read_tag_pointer_type, read_tag_reference_type)
3336 (read_subroutine_type, read_base_type, read_subrange_type)
3337 (read_full_die_1, partial_die_info::read)
3338 (partial_die_info::read, by, new_symbol)
3339 (dwarf2_const_value_data, dwarf2_const_value_attr)
3340 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3341 (prepare_one_comp_unit): Update.
3342 * dwarf2/attribute.h (DW_UNSND): Remove.
3343
c45bc3f8
TT
33442020-09-29 Tom Tromey <tom@tromey.com>
3345
3346 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3347 (read_subroutine_type, partial_die_info::read)
3348 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3349 (dwarf2_add_member_fn): Update.
3350 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3351 * dwarf2/attribute.c (attribute::as_boolean): New method.
3352
23dca5c3
TT
33532020-09-29 Tom Tromey <tom@tromey.com>
3354
3355 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3356 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3357 method.
3358 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3359
52c14d11
TT
33602020-09-29 Tom Tromey <tom@tromey.com>
3361
3362 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3363 the attribute's form.
3364
e8e5c158
TT
33652020-09-29 Tom Tromey <tom@tromey.com>
3366
3367 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3368 (dwarf2_add_member_fn): Update.
3369 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3370 * dwarf2/attribute.c (attribute::defaulted): New method, from
3371 is_valid_DW_AT_defaulted.
3372
d4df075e
TT
33732020-09-29 Tom Tromey <tom@tromey.com>
3374
3375 * dwarf2/read.c (dw2_get_file_names_reader)
3376 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3377 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3378 (dwarf2_symbol_mark_computed): Use as_unsigned.
3379 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3380 method.
3381 <form_is_section_offset>: Update comment.
3382
bf23a268
TT
33832020-09-29 Tom Tromey <tom@tromey.com>
3384
3385 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3386 dwarf2_default_access_attribute. Look up attribute.
3387 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3388 Update.
3389
7a5f294d
TT
33902020-09-29 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/read.c (skip_one_die): Update.
3393 (read_full_die_1): Change how reprocessing is done.
3394 (partial_die_info::read): Update.
3395 (read_attribute_value): Remove need_reprocess parameter.
3396 (read_attribute): Likewise.
3397 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3398 New method.
3399
36d378cf
TT
34002020-09-29 Tom Tromey <tom@tromey.com>
3401
3402 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3403 (dwarf2_const_value_attr, dump_die_shallow)
3404 (dwarf2_fetch_constant_bytes): Update.
3405 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3406 comment.
3407 <set_address>: New method.
3408 (DW_ADDR): Remove.
3409 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3410 (attribute::as_string, attribute::as_address): Add assert.
3411
fe56917a
TT
34122020-09-29 Tom Tromey <tom@tromey.com>
3413
3414 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3415 (read_attribute_reprocess, read_attribute_value): Update.
3416 (read_attribute): Clear requires_reprocessing.
3417 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3418 form_requires_reprocessing>: New methods.
3419 <string_init>: Clear requires_reprocessing.
3420 <set_unsigned_reprocess>: New method.
3421 <name>: Shrink by one bit.
3422 <requires_reprocessing>: New member.
3423 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3424 method.
3425
414ad644
TT
34262020-09-29 Tom Tromey <tom@tromey.com>
3427
3428 * dwarf2/read.c (read_attribute_value): Update.
3429 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3430 set_unsigned>: New methods.
3431 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3432
1bc397c5
TT
34332020-09-29 Tom Tromey <tom@tromey.com>
3434
3435 * dwarf2/read.c (get_alignment, read_array_order)
3436 (read_attribute_value, dwarf2_const_value_attr)
3437 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3438 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3439 New methods.
3440 (DW_SND): Remove.
3441
630ed6b9
TT
34422020-09-29 Tom Tromey <tom@tromey.com>
3443
3444 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3445 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3446 Update.
3447 * dwarf2/attribute.h (struct attribute) <as_signature,
3448 set_signature>: New methods.
3449 (DW_SIGNATURE): Remove.
3450
9d2246fc
TT
34512020-09-29 Tom Tromey <tom@tromey.com>
3452
3453 * dwarf2/read.c (read_call_site_scope)
3454 (handle_data_member_location, dwarf2_add_member_fn)
3455 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3456 (partial_die_info::read, read_attribute_value)
3457 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3458 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3459 (dwarf2_symbol_mark_computed): Update.
3460 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3461 methods.
3462 (DW_BLOCK): Remove.
3463 * dwarf2/attribute.c (attribute::form_is_block): Add
3464 DW_FORM_data16.
3465
c6481205
TT
34662020-09-29 Tom Tromey <tom@tromey.com>
3467
3468 * dwarf2/read.c (read_cutu_die_from_dwo)
3469 (read_attribute_reprocess, read_attribute_value, read_attribute)
3470 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3471 (dwarf2_fetch_constant_bytes): Update.
3472 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3473 <set_string_noncanonical, set_string_canonical>: New methods.
3474 <string_is_canonical>: Update comment.
3475 <canonical_string_p>: Add assert.
3476 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3477 * dwarf2/attribute.c (attribute::form_is_string): New method.
3478 (attribute::string): Use it.
3479
3b64bf15
TT
34802020-09-29 Tom Tromey <tom@tromey.com>
3481
3482 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3483 (dump_die_shallow): Use canonical_string_p.
3484 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3485 method.
3486
2c830f54
TT
34872020-09-29 Tom Tromey <tom@tromey.com>
3488
3489 * dwarf2/read.c (partial_die_info::read)
3490 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3491 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3492 attribute::as_string.
3493
6c412691
TT
34942020-09-29 Tom Tromey <tom@tromey.com>
3495
3496 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3497 DW_ADDR.
3498 (attribute::string): Don't use DW_STRING.
3499 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3500 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3501
95f982e5
TT
35022020-09-29 Tom Tromey <tom@tromey.com>
3503
3504 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3505 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3506 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3507 * dwarf2/attribute.h (struct attribute): Rename methods.
3508 * dwarf2/attribute.c (attribute::as_address): Rename from
3509 value_as_address.
3510 (attribute::as_string): Rename from value_as_string.
3511
f800b00e
TT
35122020-09-29 Tom Tromey <tom@tromey.com>
3513
3514 * dwarf2/read.c (partial_die_info::read) <case
3515 DW_AT_linkage_name>: Use value_as_string.
3516 (dwarf2_string_attr): Use value_as_string.
3517 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3518 method.
3519 * dwarf2/attribute.c (attribute::value_as_string): New method.
3520
de38d64a
PA
35212020-09-29 Pedro Alves <pedro@palves.net>
3522
3523 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3524 defined before using '#pragma GCC diagnostic' instead of checking
3525 __clang__.
3526
9aed480c
TT
35272020-09-28 Tom Tromey <tom@tromey.com>
3528
3529 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3530 (handle_signal_stop): Update.
3531 * procfs.c (procfs_target::insert_watchpoint): Update.
3532 * target.h (target_have_steppable_watchpoint): Now a function.
3533
8a3ecb79
TT
35342020-09-28 Tom Tromey <tom@tromey.com>
3535
3536 * infrun.c (set_schedlock_func): Update.
3537 * target.h (target_can_lock_scheduler): Now a function.
3538
55f6301a
TT
35392020-09-28 Tom Tromey <tom@tromey.com>
3540
3541 * inferior.h (class inferior) <has_execution>: Update.
3542 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3543 * valops.c (find_function_in_inferior)
3544 (value_allocate_space_in_inferior): Update.
3545 * top.c (kill_or_detach): Update.
3546 * target.c (target_preopen, set_target_permissions): Update.
3547 (target_has_execution_current): Remove.
3548 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3549 Update.
3550 * solib.c (update_solib_list, reload_shared_libraries): Update.
3551 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3552 * solib-dsbt.c (enable_break): Update.
3553 * score-tdep.c (score7_fetch_inst): Update.
3554 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3555 Update.
3556 * remote.c (remote_target::start_remote)
3557 (remote_target::remote_check_symbols, remote_target::open_1)
3558 (remote_target::remote_detach_1, remote_target::verify_memory)
3559 (remote_target::xfer_partial, remote_target::read_description)
3560 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3561 * record-full.c (record_full_open_1): Update.
3562 * record-btrace.c (record_btrace_target_open): Update.
3563 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3564 (value_nsstring): Update.
3565 * linux-thread-db.c (add_thread_db_info)
3566 (thread_db_find_new_threads_silently, check_thread_db_callback)
3567 (try_thread_db_load_1, record_thread): Update.
3568 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3569 Update.
3570 * linux-fork.c (checkpoint_command): Update.
3571 * infrun.c (set_non_stop, set_observer_mode)
3572 (check_multi_target_resumption, for_each_just_stopped_thread)
3573 (maybe_remove_breakpoints, normal_stop)
3574 (class infcall_suspend_state): Update.
3575 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3576 (info_program_command, attach_command): Update.
3577 * infcall.c (call_function_by_hand_dummy): Update.
3578 * inf-loop.c (inferior_event_handler): Update.
3579 * gcore.c (gcore_command, derive_heap_segment): Update.
3580 * exec.c (exec_file_command): Update.
3581 * eval.c (evaluate_subexp): Update.
3582 * compile/compile.c (compile_to_object): Update.
3583 * cli/cli-dump.c (restore_command): Update.
3584 * breakpoint.c (update_watchpoint)
3585 (update_inserted_breakpoint_locations)
3586 (insert_breakpoint_locations, get_bpstat_thread): Update.
3587 * target.h (target_has_execution): Remove macro.
3588 (target_has_execution_current): Don't declare.
3589 (target_has_execution): Rename from target_has_execution_1. Add
3590 argument default.
3591
05374cfd
TT
35922020-09-28 Tom Tromey <tom@tromey.com>
3593
3594 * mi/mi-main.c (exec_reverse_continue)
3595 (mi_cmd_list_target_features): Update.
3596 * infrun.c (set_exec_direction_func): Update.
3597 * target.c (default_execution_direction): Update.
3598 * reverse.c (exec_reverse_once): Update.
3599 * target.h (target_can_execute_reverse): Now a function.
3600
9dccd06e
TT
36012020-09-28 Tom Tromey <tom@tromey.com>
3602
3603 * tui/tui-regs.c (tui_get_register)
3604 (tui_data_window::show_registers): Update.
3605 * thread.c (scoped_restore_current_thread::restore)
3606 (scoped_restore_current_thread::scoped_restore_current_thread):
3607 Update.
3608 * regcache-dump.c (regcache_print): Update.
3609 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3610 Update.
3611 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3612 * mep-tdep.c (current_me_module, current_options): Update.
3613 * linux-thread-db.c (thread_db_load): Update.
3614 * infcmd.c (registers_info, info_vector_command)
3615 (info_float_command): Update.
3616 * ia64-tdep.c (ia64_frame_prev_register)
3617 (ia64_sigtramp_frame_prev_register): Update.
3618 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3619 * gcore.c (derive_stack_segment): Update.
3620 * frame.c (get_current_frame, has_stack_frames): Update.
3621 * findvar.c (language_defn::read_var_value): Update.
3622 * arm-tdep.c (arm_pc_is_thumb): Update.
3623 * target.c (target_has_registers): Rename from
3624 target_has_registers_1.
3625 * target.h (target_has_registers): Remove macro.
3626 (target_has_registers): Rename from target_has_registers_1.
3627
841de120
TT
36282020-09-28 Tom Tromey <tom@tromey.com>
3629
3630 * windows-tdep.c (tlb_make_value): Update.
3631 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3632 * thread.c (scoped_restore_current_thread::restore)
3633 (scoped_restore_current_thread::scoped_restore_current_thread)
3634 (thread_command): Update.
3635 * stack.c (backtrace_command_1, frame_apply_level_command)
3636 (frame_apply_all_command, frame_apply_command): Update.
3637 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3638 Update.
3639 * gcore.c (derive_stack_segment): Update.
3640 * frame.c (get_current_frame, has_stack_frames): Update.
3641 * auxv.c (info_auxv_command): Update.
3642 * ada-tasks.c (ada_build_task_list): Update.
3643 * target.c (target_has_stack): Rename from target_has_stack_1.
3644 * target.h (target_has_stack): Remove macro.
3645 (target_has_stack): Rename from target_has_stack_1.
3646
a739972c
TT
36472020-09-28 Tom Tromey <tom@tromey.com>
3648
3649 * target.c (target_has_memory): Rename from target_has_memory_1.
3650 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3651 * thread.c (scoped_restore_current_thread::restore)
3652 (scoped_restore_current_thread::scoped_restore_current_thread):
3653 Update.
3654 * frame.c (get_current_frame, has_stack_frames): Update.
3655 * target.h (target_has_memory): Remove macro.
3656 (target_has_memory): Rename from target_has_memory_1.
3657
5b8a4776
TT
36582020-09-28 Tom Tromey <tom@tromey.com>
3659
3660 * target.c (target_has_all_memory_1): Remove.
3661 * target.h (target_has_all_memory): Remove define.
3662 (target_has_all_memory_1): Don't declare.
3663
bd356ec6
SM
36642020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3665
3666 * ser-base.c: Adjust comments formatting.
3667
2c72d5e5
TT
36682020-09-27 Tom Tromey <tom@tromey.com>
3669
3670 PR tui/25342:
3671 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3672
35a98237
TT
36732020-09-27 Tom Tromey <tom@tromey.com>
3674
3675 PR tui/25342:
3676 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3677
9e820dec
TT
36782020-09-27 Tom Tromey <tom@tromey.com>
3679
3680 * unittests/tui-selftests.c: Update.
3681 * tui/tui-winsource.h (struct tui_source_window_base)
3682 <extra_margin, show_line_number, refresh_pad>: New methods.
3683 <m_max_length, m_pad>: New members.
3684 (tui_copy_source_line): Update.
3685 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3686 first_col, line_width, ndigits parameters. Add length.
3687 (tui_source_window_base::show_source_line): Write to pad. Line
3688 number now 0-based.
3689 (tui_source_window_base::refresh_pad): New method.
3690 (tui_source_window_base::show_source_content): Write to pad. Call
3691 refresh_pad.
3692 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3693 not refill.
3694 (tui_source_window_base::update_exec_info): Call
3695 show_line_number.
3696 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3697 method.
3698 <m_digits>: New member.
3699 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3700 and m_max_length.
3701 (tui_source_window::show_line_number): New method.
3702 * tui/tui-io.h (tui_puts): Fix comment.
3703 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3704 m_max_length.
3705
c15c15c8
TT
37062020-09-27 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-winsource.c
3709 (tui_source_window_base::set_is_exec_point_at): Don't call
3710 show_source_line.
3711
149830c1
TT
37122020-09-27 Tom Tromey <tom@tromey.com>
3713
3714 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3715 method.
3716 <erase>: Update.
3717 <cursor_x, cursor_y>: Remove.
3718 <m_inner_window>: New member.
3719 (tui_py_window::rerender): Create inner window.
3720 (tui_py_window::output): Write to inner window.
3721
8f9929bb
GR
37222020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3723
3724 PR python/26586
3725 * cli/cli-script.c (execute_control_commands): don't set
3726 instream to nullptr here as this breaks the from_tty argument
3727 to gdb.execute in Python.
3728 (execute_user_command): set instream to nullptr here instead.
3729
956bdb59
SM
37302020-09-25 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * infrun.h (infrun_debug_printf): Fix formatting.
3733 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3734
3b93626b
SJ
37352020-09-25 Saagar Jha <saagar@saagarjha.com>
3736
3737 * compile/compile-object-load.h (struct munmap_list): Add
3738 explicitly-defined move constructor.
3739
b551a89f
TT
37402020-09-24 Tom Tromey <tromey@adacore.com>
3741
3742 PR tui/26638:
3743 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3744 method.
3745 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3746 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3747 (tui_prev_win): Rewrite.
3748
99bb393f
HD
37492020-09-23 Hannes Domani <ssbssa@yahoo.de>
3750
3751 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3752 in WOW64 processes as SIGINT.
3753 * nat/windows-nat.h: Make wow64_process a shared variable.
3754 * windows-nat.c: Remove static wow64_process variable.
3755
20a5fcbd
TT
37562020-09-23 Tom Tromey <tom@tromey.com>
3757
3758 PR symtab/25470:
3759 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3760 offset and bit size.
3761 * printcmd.c (print_scalar_formatted): Handle zero-length
3762 integer.
3763 (print_scalar_formatted): Use bit_size_differs_p.
3764 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3765 constant.
3766 (union type_specific): <int_stuff>: New member.
3767 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3768 methods.
3769 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3770 TYPE_SPECIFIC_FIELD.
3771 (recursive_dump_type, copy_type_recursive): Update.
3772 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3773 DW_AT_data_bit_offset.
3774
bac51ab7
TT
37752020-09-23 Tom Tromey <tom@tromey.com>
3776
3777 * utils.h (class gdb_argv): Add move operators.
3778 <append>: New methods.
3779 * compile/compile.c (build_argc_argv): Remove.
3780 (compile_args_argc): Remove.
3781 (compile_args_argv): Change type.
3782 (set_compile_args): Simplify.
3783 (append_args): Remove.
3784 (filter_args): Remove argcp parameter.
3785 (get_args): Return gdb_argv. Simplify.
3786 (compile_to_object): Update.
3787
92677124
TT
37882020-09-23 Tom Tromey <tom@tromey.com>
3789
3790 * compile/compile-object-run.c (do_module_cleanup)
3791 <~do_module_cleanup> :Remove.
3792 (do_module_cleanup): Update.
3793 * compile/compile-object-load.h (struct munmap_list): Add move
3794 assignment operator.
3795 <source_file>: Now a std::string.
3796 <munmap_list>: Rename. No longer a pointer.
3797 * compile/compile-object-load.c (struct setup_sections_data): Add
3798 constructor.
3799 <setup_one_section>: Declare.
3800 <munmap_list>: Move earlier.
3801 <m_bfd>: New member.
3802 <m_last_size, m_last_section_first, m_last_prot,
3803 m_last_max_alignment>: Rename, add initializers where needed.
3804 (setup_sections_data::setup_one_section): Rename from
3805 setup_sections. Update.
3806 (compile_object_load): Update. Don't use bfd_map_over_sections.
3807
e616f60a
TT
38082020-09-23 Tom Tromey <tom@tromey.com>
3809
3810 * compile/compile-object-run.c (struct do_module_cleanup): Add
3811 parameters to constructor. Update destructor.
3812 <source_file, scope, scope_data, out_value_type, out_value_addr,
3813 munmap_list_head, objfile_name_string>: Remove.
3814 <module>: New member.
3815 (do_module_cleanup): Update.
3816 (compile_object_run): Update.
3817
e947a848
TT
38182020-09-23 Tom Tromey <tom@tromey.com>
3819
3820 * compile/compile.c (eval_compile_command): Update.
3821 * compile/compile-object-run.h (compile_object_run): Take a
3822 compile_module_up.
3823 * compile/compile-object-run.c (compile_object_run): Take a
3824 compile_module_up.
3825 * compile/compile-object-load.h (struct compile_module): Add
3826 constructor, destructor.
3827 (compile_module_up): New typedef.
3828 (compile_object_load): Return compile_object_up.
3829 * compile/compile-object-load.c (compile_object_load): Return
3830 compile_module_up.
3831
0dbf6ee6
TT
38322020-09-23 Tom Tromey <tom@tromey.com>
3833
3834 * compile/compile-object-run.c (struct do_module_cleanup): Add
3835 constructor, destructor.
3836 <objfile_name_string>: Don't use struct hack.
3837 (do_module_cleanup): Use delete.
3838 (compile_object_run): Use new.
3839
ebe824f5
TT
38402020-09-23 Tom Tromey <tom@tromey.com>
3841
3842 * compile/compile-cplus-types.c
3843 (compile_cplus_convert_struct_or_union): Use std::vector.
3844 (compile_cplus_convert_func): Likewise.
3845 * compile/compile-c-types.c (convert_func): Use std::vector.
3846
5dd918d9
TT
38472020-09-21 Tom Tromey <tromey@adacore.com>
3848
3849 * sparc-tdep.c (sparc32_skip_prologue): Use
3850 skip_prologue_using_sal.
3851
5486c517
TT
38522020-09-19 Tom Tromey <tom@tromey.com>
3853
3854 * symfile.c (add_section_size_callback): Remove.
3855 (load_one_section): Rename from load_section_callback. Change
3856 parameters.
3857 (generic_load): Use foreach.
3858
8a6bb1d1
TT
38592020-09-19 Tom Tromey <tom@tromey.com>
3860
3861 * exec.c (add_to_section_table): Remove.
3862 (build_section_table): Use foreach.
3863
08f93a1a
TT
38642020-09-19 Tom Tromey <tom@tromey.com>
3865
3866 * elfread.c (elf_locate_sections): Change parameters.
3867 (elf_symfile_read): Use foreach.
3868
03cd72b8
TT
38692020-09-19 Tom Tromey <tom@tromey.com>
3870
3871 * cli/cli-dump.c (struct callback_data): Remove.
3872 (restore_one_section): Rename from restore_section_callback.
3873 Change parameters.
3874 (restore_binary_file): Change parameters.
3875 (restore_command): Use foreach.
3876
f4f2b85f
TT
38772020-09-19 Tom Tromey <tom@tromey.com>
3878
3879 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3880 (gcore_copy_callback): Likewise.
3881 (gcore_memory_sections): Use foreach.
3882
b35c1d1c
TT
38832020-09-19 Tom Tromey <tom@tromey.com>
3884
3885 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3886 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3887 parameters.
3888 (generic_elf_osabi_sniffer): Use foreach.
3889 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3890 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3891
5bb6e9dd
TT
38922020-09-19 Tom Tromey <tom@tromey.com>
3893
3894 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3895 (dwarf2_get_dwz_file): Use foreach.
3896 (dwarf2_locate_dwo_sections): Change parameters.
3897 (open_and_init_dwo_file): Use foreach.
3898 (dwarf2_locate_common_dwp_sections): Change parameters.
3899 (open_and_init_dwp_file): Use foreach.
3900
ad7277da
TT
39012020-09-19 Tom Tromey <tom@tromey.com>
3902
3903 * symfile.h: (find_lowest_section): Don't declare.
3904 * symfile.c (find_lowest_section): Now static. Change
3905 parameters.
3906 (struct place_section_arg): Remove.
3907 (place_section): Change parameters.
3908 (addr_info_make_relative): Use foreach.
3909 (symfile_dummy_outputs): Remove.
3910 (default_symfile_relocate): Use foreach.
3911
cb814f2e
TT
39122020-09-19 Tom Tromey <tom@tromey.com>
3913
3914 * objfiles.c (add_to_objfile_sections): Rename from
3915 add_to_objfile_sections_full.
3916 (add_to_objfile_sections): Remove.
3917 (build_objfile_section_table): Use foreach.
3918
3cabfd26
TT
39192020-09-19 Tom Tromey <tom@tromey.com>
3920
3921 * stap-probe.c (get_stap_base_address_1): Remove.
3922 (get_stap_base_address): Use foreach.
3923
1ce51eb5
TT
39242020-09-19 Tom Tromey <tom@tromey.com>
3925
3926 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3927 parameters.
3928 (gdb_bfd_close_or_warn): Use foreach.
3929
a190fabb
TT
39302020-09-19 Tom Tromey <tom@tromey.com>
3931
3932 * corelow.c (add_to_thread_list): Change parameters.
3933 (core_target_open): Use foreach.
3934
cafb0d81
TT
39352020-09-19 Tom Tromey <tom@tromey.com>
3936
3937 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3938 existing function.
3939
c8d5abea
AB
39402020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3943 for arrays.
3944
6d816919
AB
39452020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * eval.c: Remove 'f-lang.h' include.
3948 (value_f90_subarray): Moved to f-lang.c.
3949 (eval_call): Renamed to...
3950 (evaluate_subexp_do_call): ...this, is no longer static, header
3951 comment moved into header file.
3952 (evaluate_funcall): Update call to eval_call.
3953 (skip_undetermined_arglist): Moved to f-lang.c.
3954 (fortran_value_subarray): Likewise.
3955 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3956 moved to evaluate_subexp_f.
3957 (calc_f77_array_dims): Moved to f-lang.c
3958 * expprint.c (print_subexp_funcall): New function.
3959 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3960 moved to print_subexp_f, OP_FUNCALL uses new function.
3961 (dump_subexp_body_funcall): New function.
3962 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3963 moved to dump_subexp_f, OP_FUNCALL uses new function.
3964 * expression.h (evaluate_subexp_do_call): Declare.
3965 * f-lang.c (value_f90_subarray): Moved from eval.c.
3966 (skip_undetermined_arglist): Likewise.
3967 (calc_f77_array_dims): Likewise.
3968 (fortran_value_subarray): Likewise.
3969 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3970 (operator_length_f): Likewise.
3971 (print_subexp_f): Likewise.
3972 (dump_subexp_body_f): Likewise.
3973 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3974 declaration of this operation to here.
3975 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3976 support moved to operator_length_f.
3977 * parser-defs.h (dump_subexp_body_funcall): Declare.
3978 (print_subexp_funcall): Declare.
3979 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3980 fortran-operator.def.
3981
8c37706a
AB
39822020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * eval.c (fortran_value_subarray): New function, content is taken
3985 from...
3986 (evaluate_subexp_standard): ...here, in two places. Now arrays
3987 and strings both call the new function.
3988 (calc_f77_array_dims): Add header comment, handle strings.
3989
14f9473c
VC
39902020-09-18 Victor Collod <vcollod@nvidia.com>
3991
3992 PR gdb/26635
3993 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3994 (i386_analyze_prologue): Call i386_skip_endbr.
3995
b60cea74
TT
39962020-09-18 Tom Tromey <tromey@adacore.com>
3997
3998 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3999 (windows_nat_target::wait): Update.
4000 * target/wait.h (enum target_wait_flag): New. Use
4001 DEF_ENUM_FLAGS_TYPE.
4002 * target/target.h (target_wait): Change type of options.
4003 * target.h (target_options_to_string, default_target_wait):
4004 Update.
4005 (struct target_ops) <wait>: Change type of options.
4006 * target.c (target_wait, default_target_wait, do_option): Change
4007 type of "options".
4008 (target_options_to_string): Likewise.
4009 * target-delegates.c: Rebuild.
4010 * target-debug.h (target_debug_print_target_wait_flags): Rename
4011 from target_debug_print_options.
4012 * sol-thread.c (class sol_thread_target) <wait>: Update.
4013 (sol_thread_target::wait): Update.
4014 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4015 (rs6000_nat_target::wait): Update.
4016 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4017 Update.
4018 (remote_target::wait_ns, remote_target::wait_as): Change type of
4019 "options".
4020 (remote_target::wait): Update.
4021 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4022 (gdbsim_target::wait): Update.
4023 * record-full.c (class record_full_base_target) <wait>: Update.
4024 (record_full_wait_1): Change type of "options".
4025 (record_full_base_target::wait): Update.
4026 * record-btrace.c (class record_btrace_target) <wait>: Update.
4027 (record_btrace_target::wait): Update.
4028 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4029 Update.
4030 (ravenscar_thread_target::wait): Update.
4031 * procfs.c (class procfs_target) <wait>: Update.
4032 (procfs_target::wait): Update.
4033 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4034 * obsd-nat.c (obsd_nat_target::wait): Update.
4035 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4036 (nto_procfs_target::wait): Update.
4037 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4038 * nbsd-nat.c (nbsd_wait): Change type of "options".
4039 (nbsd_nat_target::wait): Update.
4040 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4041 (thread_db_target::wait): Update.
4042 * linux-nat.h (class linux_nat_target) <wait>: Update.
4043 * linux-nat.c (linux_nat_target::wait): Update.
4044 (linux_nat_wait_1): Update.
4045 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4046 "options".
4047 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4048 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4049 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4050 (go32_nat_target::wait): Update.
4051 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4052 * gnu-nat.c (gnu_nat_target::wait): Update.
4053 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4054 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4055 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4056 * darwin-nat.c (darwin_nat_target::wait): Update.
4057 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4058 (bsd_uthread_target::wait): Update.
4059 * aix-thread.c (class aix_thread_target) <wait>: Update.
4060 (aix_thread_target::wait): Update.
4061
0295dde6
AB
40622020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * compile/compile-object-run.c (create_copied_type_recursive): New
4065 function.
4066 (compile_object_run): Use new function.
4067
d3483b43
JT
40682020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4069
4070 * NEWS: Mention x86_64 Cygwin core file support.
4071
e7d612ad
JT
40722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4073
4074 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4075 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4076
aff9d387
JT
40772020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4078
62a5151b
JT
4079 * windows-tdep.h: Add prototypes.
4080 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4081 (i386_windows_core_pid_to_str): Move and rename ...
4082 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4083 (windows_core_pid_to_str): ... and here.
4084 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4085
40862020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4087 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4088 (amd64_windows_init_abi_common): ... and register.
4089
7d155da3
JT
40902020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4091
4092 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4093 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4094
e8ef12b9
PA
40952020-09-18 Pedro Alves <pedro@palves.net>
4096
4097 PR gdb/26631
4098 * thread.c (thread_find_command): Switch inferior before calling
4099 target methods.
4100
c1e1314d
TT
41012020-09-17 Tom Tromey <tromey@adacore.com>
4102
4103 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4104 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4105 (tdesc_arch_data_up): New typedef.
4106 (tdesc_use_registers, tdesc_data_alloc): Update.
4107 (tdesc_data_cleanup): Don't declare.
4108 * target-descriptions.c (tdesc_data_alloc): Return a
4109 tdesc_arch_data_up.
4110 (tdesc_arch_data_deleter::operator()): Rename from
4111 tdesc_data_cleanup. Change argument type.
4112 (tdesc_use_registers): Change early_data to an rvalue reference.
4113 (tdesc_use_registers): Don't use delete.
4114 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4115 * s390-tdep.c (s390_gdbarch_init): Update.
4116 * rx-tdep.c (rx_gdbarch_init): Update.
4117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4118 * riscv-tdep.c (riscv_gdbarch_init): Update.
4119 * or1k-tdep.c (or1k_gdbarch_init): Update.
4120 * nios2-tdep.c (nios2_gdbarch_init): Update.
4121 * nds32-tdep.c (nds32_gdbarch_init): Update.
4122 * mips-tdep.c (mips_gdbarch_init): Update.
4123 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4124 * m68k-tdep.c (m68k_gdbarch_init): Update.
4125 * i386-tdep.c (i386_gdbarch_init): Update.
4126 * arm-tdep.c (arm_gdbarch_init): Update.
4127 * arc-tdep.c (arc_tdesc_init): Update.
4128 (arc_gdbarch_init): Update.
4129 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4130
0363df3d
HD
41312020-09-17 Hannes Domani <ssbssa@yahoo.de>
4132
4133 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4134 for WOW64 processes.
4135
280a9412
TT
41362020-09-17 Tom Tromey <tom@tromey.com>
4137
4138 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4139
6108fd18
TT
41402020-09-17 Tom Tromey <tom@tromey.com>
4141
4142 * value.c (preserve_values): Update.
4143 * python/py-type.c (save_objfile_types): Update.
4144 * guile/scm-type.c (save_objfile_types): Update.
4145 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4146 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4147 * compile/compile-object-run.c (compile_object_run): Update.
4148
fa9b1164
TT
41492020-09-17 Tom Tromey <tom@tromey.com>
4150
4151 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4152 Remove.
4153 <m_table>: Now htab_up.
4154 * typeprint.c (typedef_hash_table::recursively_update)
4155 (typedef_hash_table::add_template_parameters)
4156 (typedef_hash_table::typedef_hash_table): Update.
4157 (typedef_hash_table::~typedef_hash_table): Remove.
4158 (typedef_hash_table::typedef_hash_table)
4159 (typedef_hash_table::find_global_typedef)
4160 (typedef_hash_table::find_typedef): Update.
4161
eb53f105
TT
41622020-09-17 Tom Tromey <tom@tromey.com>
4163
4164 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4165
7a8a5d47
TT
41662020-09-17 Tom Tromey <tom@tromey.com>
4167
4168 * linespec.c (class decode_compound_collector)
4169 <~decode_compound_collector>: Remove.
4170 <m_unique_syms>: Now htab_up.
4171 (decode_compound_collector::operator ()): Update.
4172 (class symtab_collector) <~symtab_collector>: Remove.
4173 <m_symtab_table>: Now htab_up.
4174 (symtab_collector::operator ()): Update.
4175
99032cfc
TT
41762020-09-17 Tom Tromey <tom@tromey.com>
4177
4178 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4179 (filename_seen_cache::clear): Update.
4180 (~filename_seen_cache): Remove.
4181 (filename_seen_cache::seen): Update.
4182 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4183 htab_up.
4184 <~filename_seen_cache>: Remove.
4185 <traverse>: Update.
4186
32580f6d
TT
41872020-09-17 Tom Tromey <tom@tromey.com>
4188
4189 * completer.c (completion_tracker::discard_completions)
4190 (completion_tracker::~completion_tracker)
4191 (completion_tracker::maybe_add_completion)
4192 (completion_tracker::remove_completion)
4193 (completion_tracker::recompute_lowest_common_denominator)
4194 (completion_tracker::build_completion_result): Update.
4195 * completer.h (class completion_tracker) <have_completions>:
4196 Update.
4197 <m_entries_hash>: Now htab_up.
4198
c1fb9836
TT
41992020-09-17 Tom Tromey <tom@tromey.com>
4200
4201 * breakpoint.c (ambiguous_names_p): Use htab_up.
4202
88f07206
TT
42032020-09-17 Tom Tromey <tom@tromey.com>
4204
4205 * auto-load.c (struct auto_load_pspace_info)
4206 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4207 <loaded_script_files, loaded_script_texts>: Change type to
4208 htab_up.
4209 (~auto_load_pspace_info) Remove.
4210 (init_loaded_scripts_info, maybe_add_script_file)
4211 (maybe_add_script_text, auto_load_info_scripts): Update.
4212
9519b2ee
TT
42132020-09-17 Tom Tromey <tromey@adacore.com>
4214
4215 * c-exp.y (name_obstack): Now static.
4216
d2cd4113
CC
42172020-09-17 Chungyi Chi <demonic@csie.io>
4218
4219 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4220
b650a282
SM
42212020-09-16 Simon Marchi <simon.marchi@efficios.com>
4222
4223 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4224 (add_solib_catchpoint): Likewise.
4225 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4226 to bool.
4227 (add_solib_catchpoint): Change int parameter/variable to bool.
4228 (catch_load_or_unload): Likewise.
4229 (init_catchpoint): Likewise.
4230 (create_fork_vfork_event_catchpoint): Likewise.
4231 (catch_fork_command_1): Likewise.
4232 (catch_exec_command_1): Likewise.
4233
4d0bcfcf
SM
42342020-09-16 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4237 Change instance_flags to m_instance_flags.
4238
fe830662
TT
42392020-09-16 Tom Tromey <tromey@adacore.com>
4240
4241 PR gdb/26598:
4242 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4243
fe5ddfc3
JB
42442020-09-16 John Baldwin <jhb@FreeBSD.org>
4245
4246 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4247 PL_FLAG_EXEC.
4248 (fbsd_nat_target::insert_exec_catchpoint)
4249 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4250 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4251 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4252
e911c666
JB
42532020-09-16 John Baldwin <jhb@FreeBSD.org>
4254
4255 * configure.ac: Remove check for kinfo_getvmmap().
4256 * configure, config.in: Regenerate.
4257 * fbsd-nat.c (fbsd_read_mapping): Remove
4258 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4259 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4260 kinfo_get_vmmap() are always present.
4261
1f17d372
JB
42622020-09-16 John Baldwin <jhb@FreeBSD.org>
4263
4264 * fbsd-nat.c: Always include support for
4265 TARGET_OBJECT_SIGNAL_INFO.
4266
bcb1da7f
JB
42672020-09-16 John Baldwin <jhb@FreeBSD.org>
4268
4269 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4270 sysctl and remove procfs fallback.
4271
5515f729
JB
42722020-09-16 John Baldwin <jhb@FreeBSD.org>
4273
4274 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4275 * fbsd-nat.h: Likewise.
4276
da1df1db
TBA
42772020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4278
4279 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4280 argument.
4281
0e25e767
AB
42822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4283
4284 * ada-lang.c (ada_language_data): Delete.
4285 (ada_language): Remove references to ada_language_data.
4286 * c-lang.c (c_language_data): Delete.
4287 (c_language): Remove references to c_language_data.
4288 (cplus_language_data): Delete.
4289 (cplus_language): Remove references to cplus_language_data.
4290 (asm_language_data): Delete.
4291 (asm_language): Remove references to asm_language_data.
4292 (minimal_language_data): Delete.
4293 (minimal_language): Remove references to minimal_language_data.
4294 * d-lang.c (d_language_data): Delete.
4295 (d_language): Remove references to d_language_data.
4296 * f-lang.c (f_language_data): Delete.
4297 (f_language): Remove references to f_language_data.
4298 * go-lang.c (go_language_data): Delete.
4299 (go_language): Remove references to go_language_data.
4300 * language.c (unknown_language_data): Delete.
4301 (unknown_language): Remove references to unknown_language_data.
4302 (auto_language_data): Delete.
4303 (auto_language): Remove references to auto_language_data.
4304 * language.h (language_data): Delete struct.
4305 (language_defn): No longer inherit from language_data.
4306 * m2-lang.c (m2_language_data): Delete.
4307 (m2_language): Remove references to m2_language_data.
4308 * objc-lang.c (objc_language_data): Delete.
4309 (objc_language): Remove references to objc_language_data.
4310 * opencl-lang.c (opencl_language_data): Delete.
4311 (opencl_language): Remove references to opencl_language_data.
4312 * p-lang.c (pascal_language_data): Delete.
4313 (pascal_language): Remove references to pascal_language_data.
4314 * rust-lang.c (rust_language_data): Delete.
4315 (rust_language): Remove references to rust_language_data.
4316
b7c6e27d
AB
43172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4318
4319 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4320 initializer.
4321 (ada_language::opcode_print_table): New member function.
4322 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4323 (c_language::opcode_print_table): New member function.
4324 (cplus_language_data): Remove la_op_print_tab initializer.
4325 (cplus_language::opcode_print_table): New member function.
4326 (asm_language_data): Remove la_op_print_tab initializer.
4327 (asm_language::opcode_print_table): New member function.
4328 (minimal_language_data): Remove la_op_print_tab initializer.
4329 (minimal_language::opcode_print_table): New member function.
4330 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4331 (d_language::opcode_print_table): New member function.
4332 * expprint.c (print_subexp_standard): Update call to
4333 opcode_print_table.
4334 (op_string): Likewise.
4335 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4336 (f_language::opcode_print_table): New member function.
4337 * go-lang.c (go_language_data): Remove la_op_print_tab
4338 initializer.
4339 (go_language::opcode_print_table): New member function.
4340 * language.c (unknown_language_data): Remove la_op_print_tab
4341 initializer.
4342 (unknown_language::opcode_print_table): New member function.
4343 (auto_language_data): Remove la_op_print_tab initializer.
4344 (auto_language::opcode_print_table): New member function.
4345 * language.h (language_data): Remove la_op_print_tab field.
4346 (language_defn::opcode_print_table): Declare new member function.
4347 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4348 initializer.
4349 (m2_language::opcode_print_table): New member function.
4350 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4351 initializer.
4352 (objc_language::opcode_print_table): New member function.
4353 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4354 initializer.
4355 (opencl_language::opcode_print_table): New member function.
4356 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4357 initializer.
4358 (pascal_language::opcode_print_table): New member function.
4359 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4360 initializer.
4361 (rust_language::opcode_print_table): New member function.
4362
5aba6ebe
AB
43632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4366 (ada_language::expression_ops): New member function.
4367 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4368 (c_language::expression_ops): New member function.
4369 (cplus_language_data): Remove la_exp_desc initializer.
4370 (cplus_language::expression_ops): New member function.
4371 (asm_language_data): Remove la_exp_desc initializer.
4372 (asm_language::expression_ops): New member function.
4373 (minimal_language_data): Remove la_exp_desc initializer.
4374 (minimal_language::expression_ops): New member function.
4375 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4376 (d_language::expression_ops): New member function.
4377 * eval.c (evaluate_subexp): Update call to expression_ops.
4378 * expprint.c (print_subexp): Likewise.
4379 (op_name): Likewise.
4380 (dump_subexp_body): Likewise.
4381 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4382 (f_language::expression_ops): New member function.
4383 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4384 (go_language::expression_ops): New member function.
4385 * language.c (language_defn::expression_ops): New function.
4386 (unknown_language_data): Remove la_exp_desc initializer.
4387 (auto_language_data): Likewise.
4388 * language.h (language_data): Remove la_exp_desc field.
4389 (language_defn::expression_ops): Declare new member function.
4390 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4391 (m2_language::expression_ops): New member function.
4392 * objc-lang.c (objc_language_data): Remove la_exp_desc
4393 initializer.
4394 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4395 initializer.
4396 (opencl_language::expression_ops): New member function.
4397 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4398 * parse.c (operator_length): Update call to expression_ops.
4399 (exp_iterate): Likewise.
4400 * rust-lang.c (rust_language_data): Remove la_exp_desc
4401 initializer.
4402 (ruse_language::expression_ops): New member function.
4403
b63a3f3f
AB
44042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4405
4406 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4407 initializer.
4408 (ada_language::varobj_ops): New member function.
4409 * c-lang.c (c_language_data): Remove la_varobj_ops
4410 initializer.
4411 (cplus_language_data): Likewise.
4412 (cplus_language::varobj_ops): New member function.
4413 (asm_language_data): Remove la_varobj_ops initializer.
4414 (minimal_language_data): Likewise.
4415 * d-lang.c (d_language_data): Likewise.
4416 * f-lang.c (f_language_data): Likewise.
4417 * go-lang.c (go_language_data): Likewise.
4418 * language.c (language_defn::varobj_ops): New function.
4419 (unknown_language_data): Remove la_varobj_ops
4420 initializer.
4421 (auto_language_data): Likewise.
4422 * language.h (language_data): Remove la_varobj_ops field.
4423 (language_defn::varobj_ops): Declare new member function.
4424 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4425 * objc-lang.c (objc_language_data): Likewise.
4426 * opencl-lang.c (opencl_language_data): Likewise.
4427 * p-lang.c (pascal_language_data): Likewise.
4428 * rust-lang.c (rust_language_data): Likewise.
4429 * varobj.c (varobj_create): Update call to varobj_ops.
4430 * varobj.h (default_varobj_ops): Delete define.
4431
1ac14a04
AB
44322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4433
4434 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4435 initializer.
4436 * c-lang.c (c_language_data): Likewise.
4437 (c_language::macro_expansion): New member function.
4438 (cplus_language_data): Likewise.
4439 (cplus_language::macro_expansion): New member function.
4440 (asm_language_data): Likewise.
4441 (asm_language::macro_expansion): New member function.
4442 (minimal_language_data): Likewise.
4443 (minimal_language::macro_expansion): New member function.
4444 * d-lang.c (d_language_data): Remove la_macro_expansion
4445 initializer.
4446 * f-lang.c (f_language_data): Likewise.
4447 * go-lang.c (go_language_data): Likewise.
4448 * language.c (unknown_language_data): Likewise.
4449 (auto_language_data): Likewise.
4450 * language.h (language_data): Remove la_macro_expansion field.
4451 (language_defn::macro_expansion): New member function.
4452 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4453 initializer.
4454 * objc-lang.c (objc_language_data): Likewise.
4455 (objc_language::macro_expansion): New member function.
4456 * opencl-lang.c (opencl_language_data): Likewise.
4457 (opencl_language::macro_expansion): New member function.
4458 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4459 initializer.
4460 * rust-lang.c (rust_language_data): Likewise.
4461 * symtab.c (default_collect_symbol_completion_matches_break_on):
4462 Update call to macro_expansion.
4463
3a3440fb
AB
44642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4465
4466 * ada-lang.c (ada_language_data): Remove la_array_ordering
4467 initializer.
4468 * c-lang.c (c_language_data): Likewise.
4469 (cplus_language_data): Likewise.
4470 (asm_language_data): Likewise.
4471 (minimal_language_data): Likewise.
4472 * d-lang.c (d_language_data): Likewise.
4473 * dwarf2/read.c (read_array_order): Update for call to
4474 array_ordering.
4475 * f-lang.c (f_language_data): Remove la_array_ordering
4476 initializer.
4477 (f_language::array_ordering): New member function.
4478 * go-lang.c (go_language_data): Remove la_array_ordering
4479 initializer.
4480 * language.c (unknown_language_data): Likewise.
4481 (auto_language_data): Likewise.
4482 * language.h (language_data): Delete la_array_ordering field.
4483 (language_defn::array_ordering): New member function.
4484 * m2-lang.c (m2_language_data): Remove la_array_ordering
4485 initializer.
4486 * objc-lang.c (objc_language_data): Likewise.
4487 * opencl-lang.c (opencl_language_data): Likewise.
4488 * p-lang.c (pascal_language_data): Likewise.
4489 * rust-lang.c (rust_language_data): Likewise.
4490
0d201fa4
AB
44912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4494 initializer.
4495 * c-lang.c (c_language_data): Likewise.
4496 (cplus_language_data): Likewise.
4497 (asm_language_data): Likewise.
4498 (minimal_language_data): Likewise.
4499 * d-lang.c (d_language_data): Likewise.
4500 * f-lang.c (f_language_data): Likewise.
4501 (f_language::case_sensitivity): New member function.
4502 * go-lang.c (go_language_data): Remove la_case_sensitivity
4503 initializer.
4504 * language.c (enum case_mode): Moved here from language.h.
4505 (case_mode): Make static.
4506 (show_case_command): Update for case_sensitivity being a method.
4507 (set_case_command): Likewise.
4508 (set_range_case): Likewise.
4509 (unknown_language_data): Remove la_case_sensitivity initializer.
4510 (auto_language_data): Likewise.
4511 * language.h (case_mode): Delete, move enum declaration to
4512 language.c.
4513 (language_data): Delete la_case_sensitivity field.
4514 (language_defn::case_sensitivity): New member function.
4515 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4516 initializer.
4517 * objc-lang.c (objc_language_data): Likewise.
4518 * opencl-lang.c (opencl_language_data): Likewise.
4519 * p-lang.c (pascal_language_data): Likewise.
4520 * rust-lang.c (rust_language_data): Likewise.
4521
efdf6a73
AB
45222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * ada-lang.c (ada_language_data): Remove la_range_check
4525 initializer.
4526 * c-lang.c (c_language_data): Likewise.
4527 (cplus_language_data): Likewise.
4528 (asm_language_data): Likewise.
4529 (minimal_language_data): Likewise.
4530 * d-lang.c (d_language_data): Likewise.
4531 * f-lang.c (f_language_data): Likewise.
4532 (f_language::range_checking_on_by_default): New member function.
4533 * go-lang.c (go_language_data): Remove la_range_check initializer.
4534 * language.c (enum range_mode): Moved here from language.h.
4535 (range_mode): Made static.
4536 (show_range_command): Update to use
4537 range_checking_on_by_default.
4538 (set_range_command): Likewise.
4539 (set_range_case): Likewise.
4540 (unknown_language_data): Remove la_range_check initializer.
4541 (auto_language_data): Likewise.
4542 * language.h (range_mode): Delete. Enum definition moved to
4543 language.c.
4544 (language_data): Remove la_range_check field.
4545 (language_defn::range_checking_on_by_default): New member
4546 function.
4547 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4548 (m2_language::range_checking_on_by_default): New member function.
4549 * objc-lang.c (objc_language_data): Remove la_range_check
4550 initializer.
4551 * opencl-lang.c (opencl_language_data): Likewise.
4552 * p-lang.c (pascal_language_data): Likewise.
4553 (pascal_language::range_checking_on_by_default): New member
4554 function.
4555 * rust-lang.c (rust_language_data): Remove la_range_check
4556 initializer.
4557 (rust_language::range_checking_on_by_default): New member
4558 function.
4559
bf92aec5
AB
45602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * dwarf2/read.c (dwarf2_physname): Remove special case for
4563 language_go.
4564 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4565 member function.
4566
d3355e4d
AB
45672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * ada-lang.c (ada_language_data): Remove
4570 la_store_sym_names_in_linkage_form_p initializer.
4571 (ada_language::store_sym_names_in_linkage_form_p): New member
4572 function.
4573 * c-lang.c (c_language_data): Remove
4574 la_store_sym_names_in_linkage_form_p initializer.
4575 (c_language::store_sym_names_in_linkage_form_p): New member
4576 function.
4577 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4578 initializer.
4579 (asm_language_data): Likewise.
4580 (asm_language::store_sym_names_in_linkage_form_p): New member
4581 function.
4582 (minimal_language_data): Remove
4583 la_store_sym_names_in_linkage_form_p initializer.
4584 (minimal_language::store_sym_names_in_linkage_form_p): New member
4585 function.
4586 * d-lang.c (d_language_data): Remove
4587 la_store_sym_names_in_linkage_form_p initializer.
4588 * dwarf2/read.c (dwarf2_physname): Update call to
4589 store_sym_names_in_linkage_form_p.
4590 * f-lang.c (f_language_data): Remove
4591 la_store_sym_names_in_linkage_form_p initializer.
4592 * go-lang.c (go_language_data): Remove
4593 la_store_sym_names_in_linkage_form_p initializer.
4594 * language.c (unknown_language_data): Remove
4595 la_store_sym_names_in_linkage_form_p initializer.
4596 (unknown_language::store_sym_names_in_linkage_form_p): New member
4597 function.
4598 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4599 initializer.
4600 (auto_language::store_sym_names_in_linkage_form_p): New member
4601 function.
4602 * language.h (language_data): Remove
4603 la_store_sym_names_in_linkage_form_p member variable.
4604 (language_defn::store_sym_names_in_linkage_form_p): New member
4605 function.
4606 * m2-lang.c (m2_language_data): Remove
4607 la_store_sym_names_in_linkage_form_p initializer.
4608 * objc-lang.c (objc_language_data): Likewise.
4609 * opencl-lang.c (opencl_language_data): Likewise.
4610 * p-lang.c (pascal_language_data): Likewise.
4611 * rust-lang.c (rust_language_data): Likewise.
4612
22c12a6c
AB
46132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * ada-lang.c (ada_language_data): Remove string_lower_bound
4616 initializer.
4617 * c-lang.c (c_language_data): Likewise.
4618 (cplus_language_data): Likewise.
4619 (asm_language_data): Likewise.
4620 (minimal_language_data): Likewise.
4621 * d-lang.c (d_language_data): Likewise.
4622 * f-lang.c (f_language_data): Likewise.
4623 * go-lang.c (go_language_data): Likewise.
4624 * language.c (unknown_language_data): Likewise.
4625 (auto_language_data): Likewise.
4626 * language.h (language_data): Remove string_lower_bound field.
4627 (language_defn::string_lower_bound): New member function.
4628 * m2-lang.c (m2_language_data): Remove string_lower_bound
4629 initializer.
4630 (m2_language::string_lower_bound): New member function.
4631 * objc-lang.c (objc_language_data): Remove string_lower_bound
4632 initializer.
4633 * opencl-lang.c (opencl_language_data): Likewise.
4634 * p-lang.c (pascal_language_data): Likewise.
4635 * rust-lang.c (rust_language_data): Likewise.
4636 * valops.c (value_cstring): Update call to string_lower_bound.
4637 (value_string): Likewise.
4638 * value.c (allocate_repeated_value): Likewise.
4639
1c236ddd
AB
46402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4641
4642 * valops.c (value_repeat): Fix incorrect argument name in comment.
4643
67bd3fd5
AB
46442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * ada-lang.c (ada_language_data): Remove c_style_arrays
4647 initializer.
4648 (ada_language::c_style_arrays_p): New member fuction.
4649 * c-lang.c (c_language_data): Remove c_style_arrays
4650 initializer.
4651 (cplus_language_data): Likewise.
4652 (asm_language_data): Likewise.
4653 (minimal_language_data): Likewise.
4654 * d-lang.c (d_language_data): Likewise.
4655 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4656 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4657 (f_language::c_style_arrays_p): New member function.
4658 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4659 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4660 * language.c (unknown_language_data): Remove c_style_arrays
4661 initializer.
4662 (auto_language_data): Likewise.
4663 * language.h (language_data): Remove c_style_arrays field.
4664 (language_defn::c_style_arrays_p): New member function.
4665 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4666 (m2_language::c_style_arrays_p): New member function.
4667 * objc-lang.c (objc_language_data): Remove c_style_arrays
4668 initializer.
4669 * opencl-lang.c (opencl_language_data): Likewise.
4670 * p-lang.c (pascal_language_data): Likewise.
4671 * rust-lang.c (rust_language_data): Likewise.
4672 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4673 and update local variable to a bool.
4674 * valops.c (value_cast): Update call to c_style_arrays_p.
4675 (value_array): Likewise.
4676 * value.c (coerce_array): Likewise.
4677
85967615
AB
46782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * ada-lang.c (ada_language_data): Remove la_language initializer.
4681 * c-lang.c (c_language_data): Likewise.
4682 (cplus_language_data): Likewise.
4683 (asm_language_data): Likewise.
4684 (minimal_language_data): Likewise.
4685 * d-lang.c (d_language_data): Likewise.
4686 * f-lang.c (f_language_data): Likewise.
4687 * go-lang.c (go_language_data): Likewise.
4688 * language.c (unknown_language_data): Likewise.
4689 (auto_language_data): Likewise.
4690 * language.h (language_data): Remove la_language field.
4691 (language_defn::language_defn): Initialise la_language field.
4692 (language_defn::la_language): New member variable.
4693 * m2-lang.c (m2_language_data): Remove la_language field.
4694 * objc-lang.c (objc_language_data): Likewise.
4695 * opencl-lang.c (opencl_language_data): Likewise.
4696 * p-lang.c (pascal_language_data): Likewise.
4697 * rust-lang.c (rust_language_data): Likewise.
4698
e171d6f1
AB
46992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4700
4701 * ada-lang.c (ada_extensions): Delete, moved into
4702 ada_language::filename_extensions.
4703 (ada_language_data): Remove la_filename_extensions initializer.
4704 (ada_language::filename_extensions): New member function.
4705 * c-lang.c (c_extensions): Delete, moved into
4706 c_language::filename_extensions.
4707 (c_language_data): Remove la_filename_extensions initializer.
4708 (c_language::filename_extensions): New member function.
4709 (cplus_extensions): Delete, moved into
4710 cplus_language::filename_extensions.
4711 (cplus_language_data): Remove la_filename_extensions initializer.
4712 (cplus_language::filename_extensions): New member function.
4713 (asm_extensions): Delete, moved into
4714 asm_language::filename_extensions.
4715 (asm_language_data): Remove la_filename_extensions initializer.
4716 (asm_language::filename_extensions): New member function.
4717 (minimal_language_data): Remove la_filename_extensions
4718 initializer.
4719 * d-lang.c (d_extensions): Delete, moved into
4720 d_language::filename_extensions.
4721 (d_language_data): Remove la_filename_extensions initializer.
4722 (d_language::filename_extensions): New member function.
4723 * f-lang.c (f_extensions): Delete, moved into
4724 f_language::filename_extensions.
4725 (f_language_data): Remove la_filename_extensions initializer.
4726 (f_language::filename_extensions): New member function.
4727 * go-lang.c (go_language_data): Remove la_filename_extensions
4728 initializer.
4729 * language.c (add_set_language_command): Update now that
4730 filename_extensions returns a vector.
4731 (unknown_language_data): Remove la_filename_extensions
4732 initializer.
4733 (auto_language_data): Likewise.
4734 * language.h (language_data): Remove la_filename_extensions field.
4735 (language_defn::filename_extensions): New member function.
4736 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4737 initializer.
4738 * objc-lang.c (objc_extensions): Delete, moved into
4739 objc_language::filename_extensions.
4740 (objc_language_data): Remove la_filename_extensions initializer.
4741 (objc_language::filename_extensions): New member function.
4742 * opencl-lang.c (opencl_language_data): Remove
4743 la_filename_extensions initializer.
4744 * p-lang.c (pascal_extensions): Delete, moved into
4745 pascal_language::filename_extensions.
4746 (pascal_language_data): Remove la_filename_extensions initializer.
4747 (pascal_language::filename_extensions): New member function.
4748 * rust-lang.c (rust_extensions): Delete, moved into
4749 rust_language::filename_extensions.
4750 (rust_language_data): Remove la_filename_extensions initializer.
4751 (rust_language::filename_extensions): New member function.
4752 * symfile.c (add_filename_language): Add new assert.
4753
6f7664a9
AB
47542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * ada-lang.c (ada_language_data): Remove la_name and
4757 la_natural_name initializers.
4758 (ada_language::name): New member function.
4759 (ada_language::natural_name): New member function.
4760 * c-lang.c (c_language_data): Remove la_name and
4761 la_natural_name initializers.
4762 (c_language::name): New member function.
4763 (c_language::natural_name): New member function.
4764 (cplus_language_data): Remove la_name and
4765 la_natural_name initializers.
4766 (cplus_language::name): New member function.
4767 (cplus_language::natural_name): New member function.
4768 (asm_language_data): Remove la_name and
4769 la_natural_name initializers.
4770 (asm_language::name): New member function.
4771 (asm_language::natural_name): New member function.
4772 (minimal_language_data): Remove la_name and
4773 la_natural_name initializers.
4774 (minimal_language::name): New member function.
4775 (minimal_language::natural_name): New member function.
4776 * compile/compile.c (compile_to_object): Update call to
4777 lanugage_defn::name.
4778 * d-lang.c (d_language_data): Remove la_name and
4779 la_natural_name initializers.
4780 (d_language::name): New member function.
4781 (d_language::natural_name): New member function.
4782 * expprint.c (print_subexp_standard): Update call to
4783 language_defn::name.
4784 (dump_raw_expression): Likewise
4785 (dump_prefix_expression): Likewise.
4786 * f-lang.c (f_language_data): Remove la_name and
4787 la_natural_name initializers.
4788 (f_language::name): New member function.
4789 (f_language::natural_name): New member function.
4790 * go-lang.c (go_language_data): Remove la_name and
4791 la_natural_name initializers.
4792 (go_language::name): New member function.
4793 (go_language::natural_name): New member function.
4794 * language.c (show_language_command): Update call to
4795 language_defn::name.
4796 (set_language_command): Likewise.
4797 (language_enum): Likewise.
4798 (language_str): Likewise.
4799 (add_set_language_command): Likewise, use
4800 language_defn::natural_name in the doc string.
4801 (unknown_language_data): Remove la_name and
4802 la_natural_name initializers.
4803 (unknown_language::name): New member function.
4804 (unknown_language::natural_name): New member function.
4805 (auto_language_data): Remove la_name and
4806 la_natural_name initializers.
4807 (auto_language::name): New member function.
4808 (auto_language::natural_name): New member function.
4809 (language_lookup_primitive_type_as_symbol): Update call to
4810 language_defn::name.
4811 * language.h (language_data): Remove la_name and la_natural_name
4812 member variables.
4813 (language_defn::name): New member function.
4814 (language_defn::natural_name): New member function.
4815 * m2-lang.c (m2_language_data): Remove la_name and
4816 la_natural_name initializers.
4817 (m2_language::name): New member function.
4818 (m2_language::natural_name): New member function.
4819 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4820 language_defn::natural_name.
4821 * objc-lang.c (objc_language_data): Remove la_name and
4822 la_natural_name initializers.
4823 (objc_language::name): New member function.
4824 (objc_language::natural_name): New member function.
4825 * opencl-lang.c (opencl_language_data): Remove la_name and
4826 la_natural_name initializers.
4827 (opencl_language::name): New member function.
4828 (opencl_language::natural_name): New member function.
4829 * p-lang.c (pascal_language_data): Remove la_name and
4830 la_natural_name initializers.
4831 (pascal_language::name): New member function.
4832 (pascal_language::natural_name): New member function.
4833 * rust-lang.c (rust_language_data): Remove la_name and
4834 la_natural_name initializers.
4835 (rust_language::name): New member function.
4836 (rust_language::natural_name): New member function.
4837 * symtab.c (lookup_language_this): Update call to
4838 language_defn::name.
4839
5bae7c4e
AB
48402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * ada-lang.c (ada_language_data): Remove la_name_of_this
4843 initializer.
4844 * ax-gdb.c (gen_expr): Update call to name_of_this.
4845 * c-exp.y (classify_name): Likewise.
4846 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4847 (cplus_language_data): Likewise.
4848 (cplus_language::name_of_this): New member function.
4849 (asm_language_data): Remove la_name_of_this initializer.
4850 (minimal_language_data): Likewise.
4851 * d-lang.c (d_language_data): Likewise.
4852 (d_language::name_of_this): New member function.
4853 * expprint.c (print_subexp_standard): Update call to name_of_this.
4854 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4855 * go-lang.c (go_language_data): Likewise.
4856 * language.c (unknown_language_data): Likewise.
4857 (unknown_language::name_of_this): New member function.
4858 (auto_language_data): Remove la_name_of_this initializer.
4859 (auto_language::name_of_this): New member function.
4860 * language.h (language_data): Delete la_name_of_this member
4861 variable.
4862 (language_defn::name_of_this): New member function.
4863 * m2-lang.c (m2_language_data): Remove la_name_of_this
4864 initializer.
4865 * objc-lang.c (objc_language_data): Likewise.
4866 (objc_language::name_of_this): New member function.
4867 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4868 initializer.
4869 * p-lang.c (pascal_language_data): Likewise.
4870 (pascal_language::name_of_this): New member function.
4871 * rust-lang.c (rust_language_data): Remove la_name_of_this
4872 initializer.
4873 * symtab.c (lookup_language_this): Update call to name_of_this.
4874 (lookup_symbol_aux): Likewise.
4875 * valops.c (value_of_this): Likewise.
4876
22e3f3ed
AB
48772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * ada-lang.c (ada_language_data): Remove
4880 la_struct_too_deep_ellipsis initializer.
4881 (ada_language::struct_too_deep_ellipsis): New member function.
4882 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4883 initializer.
4884 (cplus_language_data): Likewise.
4885 (asm_language_data): Likewise.
4886 (minimal_language_data): Likewise.
4887 * cp-valprint.c (cp_print_value): Update call to
4888 struct_too_deep_ellipsis.
4889 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4890 initializer.
4891 * f-lang.c (f_language_data): Likewise.
4892 (f_language::struct_too_deep_ellipsis): New member function.
4893 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4894 initializer.
4895 * language.c (unknown_language_data): Likewise.
4896 (auto_language_data): Likewise.
4897 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4898 member variable.
4899 (language_defn::struct_too_deep_ellipsis): New member function.
4900 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4901 initializer.Q
4902 * objc-lang.c (objc_language_data): Likewise.
4903 * opencl-lang.c (opencl_language_data): Likewise.
4904 * p-lang.c (pascal_language_data): Likewise.
4905 * rust-lang.c (rust_language_data): Likewise.
4906 * valprint.c (val_print_check_max_depth): Update call to
4907 struct_too_deep_ellipsis.
4908
ed29e1c7
FW
49092020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4910
4911 * MAINTAINERS (Write After Approval): Add myself.
4912
12d8f940
TT
49132020-09-15 Tom Tromey <tom@tromey.com>
4914
4915 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4916 Remove.
4917
6b5a7bc7
TT
49182020-09-15 Tom Tromey <tom@tromey.com>
4919
4920 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4921 and TYPE_CODE_METHODPTR cases.
4922 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4923 (c_value_print_inner): Update.
4924 * valprint.c (generic_value_print_memberptr): New function, from
4925 c_value_print_memberptr.
4926 (generic_value_print): Use it. Call cplus_print_method_ptr.
4927
47f0e2ff
TT
49282020-09-15 Tom Tromey <tromey@adacore.com>
4929
4930 * python/python-internal.h (PyInt_FromLong): Remove define.
4931 * python/py-value.c (convert_value_from_python): Use
4932 gdb_py_object_from_longest.
4933 * python/py-type.c (typy_get_code): Use
4934 gdb_py_object_from_longest.
4935 * python/py-symtab.c (salpy_get_line): Use
4936 gdb_py_object_from_longest.
4937 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4938 gdb_py_object_from_longest.
4939 * python/py-record.c (recpy_gap_reason_code): Use
4940 gdb_py_object_from_longest.
4941 * python/py-record-btrace.c (recpy_bt_insn_size)
4942 (recpy_bt_func_level, btpy_list_count): Use
4943 gdb_py_object_from_longest.
4944 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4945 gdb_py_object_from_longest. Fix error handling.
4946 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4947 gdb_py_object_from_longest.
4948 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4949 gdb_py_object_from_longest.
4950 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4951 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4952 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4953
512116ce
TT
49542020-09-15 Tom Tromey <tromey@adacore.com>
4955
4956 * python/python.c (gdbpy_parameter_value): Use
4957 gdb_py_object_from_ulongest.
4958
4ab1029c
TT
49592020-09-15 Tom Tromey <tromey@adacore.com>
4960
4961 * python/py-infevents.c (create_register_changed_event_object):
4962 Use gdb_py_object_from_longest.
4963 * python/py-exitedevent.c (create_exited_event_object): Use
4964 gdb_py_object_from_longest.
4965
062534d4
TT
49662020-09-15 Tom Tromey <tromey@adacore.com>
4967
4968 * python/python.c (gdbpy_parameter_value): Use
4969 gdb_py_object_from_longest.
4970 * python/py-type.c (convert_field, typy_range): Use
4971 gdb_py_object_from_longest.
4972 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4973 gdb_py_object_from_longest.
4974 * python/py-lazy-string.c (stpy_get_length): Use
4975 gdb_py_object_from_longest.
4976 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4977 gdb_py_object_from_longest.
4978 * python/py-infevents.c (create_memory_changed_event_object): Use
4979 gdb_py_object_from_longest.
4980 * python/py-inferior.c (infpy_get_num): Use
4981 gdb_py_object_from_longest.
4982 (infpy_get_pid): Likewise.
4983
d1cab987
TT
49842020-09-15 Tom Tromey <tromey@adacore.com>
4985
4986 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4987 defines.
4988 * python/py-value.c (valpy_long): Use
4989 gdb_py_object_from_ulongest.
4990 * python/py-symtab.c (salpy_get_pc): Use
4991 gdb_py_object_from_ulongest.
4992 (salpy_get_last): Likewise.
4993 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4994 gdb_py_object_from_ulongest.
4995 * python/py-lazy-string.c (stpy_get_address): Use
4996 gdb_py_object_from_ulongest.
4997 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4998 * python/py-arch.c (archpy_disassemble): Use
4999 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5000 error handling.
5001
4bde49dc
TT
50022020-09-15 Tom Tromey <tromey@adacore.com>
5003
5004 * python/python-internal.h (gdb_py_long_from_longest): Remove
5005 defines.
5006 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5007 * python/py-type.c (convert_field, typy_get_sizeof): Use
5008 gdb_py_object_from_longest.
5009 * python/py-record-btrace.c (btpy_list_index): Use
5010 gdb_py_object_from_longest.
5011
37431074
TT
50122020-09-15 Tom Tromey <tromey@adacore.com>
5013
5014 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5015 * python/py-record.c (recpy_element_number): Use
5016 gdb_py_object_from_longest.
5017 (recpy_gap_number): Likewise.
5018
cbe25684
TT
50192020-09-15 Tom Tromey <tromey@adacore.com>
5020
5021 * top.c (ui::ui): Update.
5022 (highest_ui_num): Remove.
5023 * top.h (struct ui) <num>: Remove.
5024
db92ac45
TT
50252020-09-15 Tom Tromey <tromey@adacore.com>
5026
5027 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5028 * ui-style.c (ansi_regex_text): Now array.
5029 * rust-exp.y (number_regex_text): Now array.
5030 * linespec.c (linespec_quote_characters): Now array.
5031 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5032 Now arrays.
5033
d2b31b67
SM
50342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5035
5036 * debuginfod-support.c (debuginfod_client_deleter): New.
5037 (debuginfod_client_up): New.
5038 (debuginfod_init): Return debuginfod_client_up.
5039 (debuginfod_source_query): Adjust.
5040 (debuginfod_debuginfo_query): Adjust.
5041
3246bd8e
SM
50422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5043
5044 * debuginfod-support.c (debuginfod_source_query): Use
5045 make_unique_xstrdup.
5046
10242f36
SM
50472020-09-14 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5050 with `type::instance_flags`.
5051
e1044e6a
MM
50522020-09-14 Michael Mullin <masmullin@gmail.com>
5053
5054 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5055 Remove baton parameter.
5056
04902b09
PA
50572020-09-14 Pedro Alves <pedro@palves.net>
5058
5059 * Makefile.in (SELFTESTS_SRCS): Add
5060 unittests/enum-flags-selftests.c.
5061 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5062 btrace_function_flags instead of enum btrace_function_flag.
5063 * compile/compile-c-types.c (convert_qualified): Use
5064 enum_flags::raw.
5065 * compile/compile-cplus-symbols.c (convert_one_symbol)
5066 (convert_symbol_bmsym):
5067 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5068 (compile_cplus_convert_struct_or_union_methods)
5069 (compile_cplus_instance::convert_qualified_base):
5070 * go-exp.y (parse_string_or_char): Add cast to int.
5071 * unittests/enum-flags-selftests.c: New file.
5072 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5073 type to btrace_thread_flags from btrace_thread_flag.
5074 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5075 local's type to btrace_thread_flags from btrace_thread_flag. Add
5076 cast in DEBUG call.
5077
69896a2c
PA
50782020-09-14 Pedro Alves <pedro@palves.net>
5079
5080 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5081 * gdbtypes.c (address_space_name_to_int): Rename to ...
5082 (address_space_name_to_type_instance_flags): ... this.
5083 (address_space_int_to_name): Rename to ...
5084 (address_space_type_instance_flags_to_name): ... this.
5085 * gdbtypes.h (address_space_name_to_int): Rename to ...
5086 (address_space_name_to_type_instance_flags): ... this.
5087 (address_space_int_to_name): Rename to ...
5088 (address_space_type_instance_flags_to_name): ... this.
5089 * type-stack.c (type_stack::insert): Adjust to rename.
5090 * type-stack.h (type_stack::insert): Likewise.
5091
314ad88d
PA
50922020-09-14 Pedro Alves <pedro@palves.net>
5093 Andrew Burgess <andrew.burgess@embecosm.com>
5094
5095 * avr-tdep.c (avr_address_class_type_flags): Return
5096 type_instance_flags.
5097 (avr_address_class_type_flags_to_name): Take a
5098 type_instance_flags.
5099 (avr_address_class_name_to_type_flags): Return bool and take a
5100 type_instance_flags.
5101 * d-lang.c (build_d_types): Use type::set_instance_flags.
5102 * ft32-tdep.c (ft32_address_class_type_flags): Return
5103 type_instance_flags.
5104 (ft32_address_class_type_flags_to_name): Take a
5105 type_instance_flags.
5106 (ft32_address_class_name_to_type_flags): Return bool and take a
5107 type_instance_flags.
5108 (ft32_gdbarch_init): Use type::set_instance_flags.
5109 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5110 * gdbarch.h, gdbarch.c: Regenerate.
5111 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5112 (address_class_name_to_type_flags): Use type_instance_flags and
5113 bool.
5114 * gdbtypes.c (address_space_name_to_int)
5115 (address_space_int_to_name, make_qualified_type): Use
5116 type_instance_flags.
5117 (make_qualified_type): Use type_instance_flags and
5118 type::set_instance_flags.
5119 (make_type_with_address_space, make_cv_type, make_vector_type)
5120 (check_typedef): Use type_instance_flags.
5121 (recursive_dump_type): Cast type_instance_flags to unsigned for
5122 printing.
5123 (copy_type_recursive): Use type::set_instance_flags.
5124 (gdbtypes_post_init): Use type::set_instance_flags.
5125 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5126 <m_instance_flags>: ... this.
5127 <instance_flags, set_instance_flags>: New methods.
5128 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5129 (SET_TYPE_INSTANCE_FLAGS): New.
5130 (address_space_name_to_int, address_space_int_to_name)
5131 (make_type_with_address_space): Pass flags using
5132 type_instance_flags instead of int.
5133 * stabsread.c (cleanup_undefined_types_noname): Use
5134 type::set_instance_flags.
5135 * s390-tdep.c (s390_address_class_type_flags): Return
5136 type_instance_flags.
5137 (s390_address_class_type_flags_to_name): Take a
5138 type_instance_flags.
5139 (s390_address_class_name_to_type_flags): Return bool and take a
5140 type_instance_flags.
5141 * type-stack.c (type_stack::follow_types): Use
5142 type_instance_flags.
5143 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5144
27087b7f
TT
51452020-09-14 Tom Tromey <tromey@adacore.com>
5146
5147 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5148 * x86-tdep.c (x86_is_thunk_register_name)
5149 (x86_in_indirect_branch_thunk): Update.
5150 * sparc64-tdep.c (sparc64_fpu_register_names)
5151 (sparc64_cp0_register_names, sparc64_register_names)
5152 (sparc64_pseudo_register_names): Now const.
5153 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5154 cp0_registers_num>: Now const.
5155 * sparc-tdep.c (sparc_core_register_names)
5156 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5157 (sparc32_pseudo_register_names): Now const.
5158 (validate_tdesc_registers): Update.
5159 * rust-lang.c (rust_extensions): Now const.
5160 * p-lang.c (p_extensions): Now const.
5161 * objc-lang.c (objc_extensions): Now const.
5162 * nto-tdep.c (nto_thread_state_str): Now const.
5163 * moxie-tdep.c (moxie_register_names): Now const.
5164 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5165 Now const.
5166 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5167 (mips_linux_reg_names): Now const.
5168 (mips_gdbarch_init): Update.
5169 * microblaze-tdep.c (microblaze_register_names): Now const.
5170 * m68k-tdep.c (m68k_register_names): Now const.
5171 * m32r-tdep.c (m32r_register_names): Now const.
5172 * ia64-tdep.c (ia64_register_names): Now const.
5173 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5174 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5175 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5176 ymm_avx512_register_names, pkeys_register_names>: Now const.
5177 * i386-tdep.c (i386_register_names, i386_zmm_names)
5178 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5179 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5180 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5181 * f-lang.c (f_extensions): Now const.
5182 * d-lang.c (d_extensions): Now const.
5183 * csky-tdep.c (csky_register_names): Now const.
5184 * charset.c (default_charset_names, charset_enum): Now const.
5185 (_initialize_charset): Update.
5186 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5187 const.
5188 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5189 (bsd_uthread_solib_loaded): Update.
5190 (bsd_uthread_state): Now const.
5191 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5192 (amd64_ymm_avx512_names, amd64_ymmh_names)
5193 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5194 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5195 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5196 (amd64_dword_names): Now const.
5197 * agent.c (can_use_agent_enum): Now const.
5198 * ada-tasks.c (task_states, long_task_states): Now const.
5199 * ada-lang.c (known_runtime_file_name_patterns)
5200 (known_auxiliary_function_name_patterns, attribute_names)
5201 (standard_exc, ada_extensions): Now const.
5202
89806626
SM
52032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5204
5205 * bcache.h (struct bcache) <bcache>: Remove constructor.
5206 <m_hash_function, m_compare_function>: Remove.
5207 <~bcache>: Make virtual.
5208 <compare>: Remove static method, introduce virtual method.
5209 <default_hash>: Remove.
5210 <hash>: New virtual method.
5211 * bcache.c (bcache::expand_hash_table): Update.
5212 (bcache::insert): Update.
5213 (bcache::hash): New.
5214 (bcache::compare): Update comment and parameter names.
5215 * gdbtypes.c (types_deeply_equal): Update.
5216 * psymtab.h (struct psymbol_bcache): New struct.
5217 (class psymtab_storage) <psymtab_storage>: Make default.
5218 <psymbol_cache>: Change type to psymbol_bcache.
5219 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5220 (psymbol_hash): Change to...
5221 (psymbol_bcache::hash): ... this.
5222 (psymbol_compare): Change to...
5223 (psymbol_bcache::compare): ... this.
5224
677c92fe
SM
52252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5226
5227 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5228 checking for initial lwp.
5229
3eba3a01
TT
52302020-09-14 Tom Tromey <tromey@adacore.com>
5231
5232 * m68k-tdep.c (m68k_extract_return_value): Use
5233 pointer_result_regnum.
5234 (m68k_store_return_value): Likewise.
5235 (m68k_reg_struct_return_p): Handle vectors and arrays.
5236 (m68k_return_value): Handle arrays.
5237 (m68k_svr4_return_value): Fix single-element aggregate handling.
5238 Handle long double. Adjust for embedded ABI.
5239 (m68k_svr4_init_abi): Set pointer_result_regnum.
5240 (m68k_embedded_init_abi): New function.
5241 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5242 (m68k_osabi_sniffer): New function.
5243 (_initialize_m68k_tdep): Register osabi sniffer.
5244 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5245 member.
5246
33f4dd48
SM
52472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5250 with gdb::unique_xmalloc_ptr<char>.
5251
8400a90d
SM
52522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5253
5254 * xml-support.h (xml_fetch_another): Change type to be a
5255 function_view.
5256 (xml_process_xincludes): Remove baton parameter.
5257 (xml_fetch_content_from_file): Change baton parameter to
5258 dirname.
5259 * xml-support.c (struct xinclude_parsing_data)
5260 <xinclude_parsing_data>: Remove baton parameter.
5261 <fetcher_baton>: Remove.
5262 (xinclude_start_include): Adjust.
5263 (xml_process_xincludes): Adjust.
5264 (xml_fetch_content_from_file): Replace baton parameter with
5265 dirname.
5266 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5267 (xml_init_syscalls_info): Use a lambda.
5268 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5269 (file_read_description_xml): Use a lambda.
5270 (fetch_available_features_from_target): Change baton parameter
5271 to target_ops.
5272 (target_read_description_xml): Use a lambda.
5273 (target_fetch_description_xml): Use a lambda.
5274 (string_read_description_xml): Update.
5275
04f5bab2
SM
52762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5277
5278 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5279 uses with type::endianity_is_not_default.
5280
db558e34
SM
52812020-09-14 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * gdbtypes.h (struct type) <endianity_is_not_default,
5284 set_endianity_is_not_default>: New methods.
5285 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5286 type::endianity_is_not_default, change all write call sites to
5287 use type::set_endianity_is_not_default.
5288
22c4c60c
SM
52892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5292 uses with type::is_fixed_instance.
5293
9cdd0d12
SM
52942020-09-14 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * gdbtypes.h (struct type) <is_fixed_instance,
5297 set_is_fixed_instance>: New methods.
5298 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5299 write call sites to use type::set_is_fixed_instance.
5300
0becda7a
SM
53012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5304 uses with type::is_gnu_ifunc.
5305
03cc7249
SM
53062020-09-14 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5309 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5310 use type::set_is_gnu_ifunc.
5311
3f46044c
SM
53122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5315 uses with type::stub_is_supported.
5316
9baccff6
SM
53172020-09-14 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5320 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5321 use type::set_stub_is_supported.
5322
bd63c870
SM
53232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5326 uses with type::is_vector.
5327
2062087b
SM
53282020-09-14 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5331 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5332 use type::set_is_vector.
5333
a409645d
SM
53342020-09-14 Simon Marchi <simon.marchi@efficios.com>
5335
5336 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5337 uses with type::has_varargs.
5338
1d6286ed
SM
53392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5340
5341 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5342 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5343 use type::set_has_varargs.
5344
7f9f399b
SM
53452020-09-14 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5348 uses with type::is_prototyped.
5349
27e69b7a
SM
53502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5353 New methods.
5354 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5355 call sites to use type::set_is_prototyped.
5356
d2183968
SM
53572020-09-14 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5360 uses with type::target_is_stub.
5361
8f53807e
SM
53622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5363
5364 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5365 New methods.
5366 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5367 sites to use type::set_target_is_stub.
5368
e46d3488
SM
53692020-09-14 Simon Marchi <simon.marchi@efficios.com>
5370
5371 * gdbtypes.h (TYPE_STUB): Remove, replace all
5372 uses with type::is_stub.
5373
b4b73759
SM
53742020-09-14 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5377 (TYPE_STUB): Use type::is_stub, change all write call sites to
5378 use type::set_is_stub.
5379
20ce4123
SM
53802020-09-14 Simon Marchi <simon.marchi@efficios.com>
5381
5382 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5383 type::has_no_signedness.
5384
15152a54
SM
53852020-09-14 Simon Marchi <simon.marchi@efficios.com>
5386
5387 * gdbtypes.h (struct type) <has_no_signedness,
5388 set_has_no_signedness>: New methods.
5389 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5390 call sites to use type::set_has_no_signedness.
5391
c6d940a9
SM
53922020-09-14 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5395 type::is_unsigned.
5396
653223d3
SM
53972020-09-14 Simon Marchi <simon.marchi@efficios.com>
5398
5399 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5400 methods.
5401 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5402 sites to use type::set_is_unsigned.
5403
55ea94da 54042020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5405 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5406
e851246a
SM
5407 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5408 pointer and stack frame offset when unwinding.
55ea94da 5409
6791b117
PA
54102020-09-13 Pedro Alves <pedro@palves.net>
5411
5412 * NEWS: Document "-break-insert --qualified".
5413 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5414
77f2120b
PA
54152020-09-13 Pedro Alves <pedro@palves.net>
5416
5417 * linespec.c (classify_mtype, compare_msyms): Delete.
5418 (search_minsyms_for_name): Remove classification logic. Instead
5419 filter out trampoline symbols if we also found an external
5420 function of the same name.
5421
ed6a896c
JB
54222020-09-13 Joel Brobecker <brobecker@adacore.com>
5423
5424 * NEWS: Create a new section for the next release branch.
5425 Rename the section of the current branch, now that it has
5426 been cut.
5427
32aea73e
JB
54282020-09-13 Joel Brobecker <brobecker@adacore.com>
5429
5430 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5431 * version.in: Bump version to 11.0.50.DATE-git.
5432
8087c3fa
JB
54332020-09-12 Joel Brobecker <brobecker@adacore.com>
5434
5435 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5436
2a67f09d
FW
54372020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5438 Felix Willgerodt <Felix.Willgerodt@intel.com>
5439
5440 * gdbarch.sh: Added bfloat16 type.
5441 * gdbarch.c: Regenerated.
5442 * gdbarch.h: Regenerated.
5443 * gdbtypes.c (floatformats_bfloat16): New struct.
5444 (gdbtypes_post_init): Add builtin_bfloat16.
5445 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5446 (floatformats_bfloat16): New struct.
5447 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5448 (i386_ymm_type): Add field "v16_bfloat16"
5449 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5450 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5451 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5452 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5453 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5454 * features/i386/64bit-avx512.c: Regenerated.
5455 * features/i386/64bit-sse.xml: Add bfloat16 type.
5456 * features/i386/64bit-sse.c: Regenerated.
5457
1347d111
FW
54582020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5459
5460 * i386-tdep.c (i386_zmm_type): Fix field names.
5461 (i386_ymm_type): Fix field names.
5462
7a4e8e7d
TBA
54632020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5464
5465 * breakpoint.c: Fix typo in the help message of the
5466 "set breakpoint condition-evaluation" command.
5467
cf4ac4be
KR
54682020-09-10 Kamil Rytarowski <n54@gmx.com>
5469
5470 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5471 * (nbsd_nat_target::pid_to_exec_file)
5472 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5473 (nbsd_nat_target::post_startup_inferior)
5474 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5475 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5476 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5477 * (nbsd_thread_lister): Remove.
5478
f404573e
KR
54792020-09-10 Kamil Rytarowski <n54@gmx.com>
5480
5481 * fork-inferior.c (startup_inferior): Avoid double free.
5482
1ccb2c17
KR
54832020-09-10 Kamil Rytarowski <n54@gmx.com>
5484
5485 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5486 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5487
feedfcc7
KR
54882020-09-10 Kamil Rytarowski <n54@gmx.com>
5489
5490 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5491 * netbsd-nat.c: Include <sys/ptrace.h>.
5492 * (netbsd_nat::enable_proc_events): Add.
5493
c489f8c6
KR
54942020-09-10 Kamil Rytarowski <n54@gmx.com>
5495
5496 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5497 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5498 (netbsd_nat::for_each_thread): Add.
5499 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5500 "gdbsupport/common-debug.h".
5501 * (netbsd_nat::netbsd_thread_lister)
5502 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5503 (netbsd_nat::for_each_thread): Add.
5504
330662f6
KR
55052020-09-10 Kamil Rytarowski <n54@gmx.com>
5506
5507 * netbsd-nat.h: Include <unistd.h>.
5508 * (netbsd_nat::pid_to_exec_file): Add.
5509 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5510 * (netbsd_nat::pid_to_exec_file) Add.
5511
70b67307
KR
55122020-09-10 Kamil Rytarowski <n54@gmx.com>
5513
5514 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5515
99cf6da6
KR
55162020-09-10 Kamil Rytarowski <n54@gmx.com>
5517
5518 * netbsd-nat.h: New file.
5519 * netbsd-nat.c: Likewise.
5520
1b788fb6
TT
55212020-09-09 Tom Tromey <tromey@adacore.com>
5522
5523 * ada-lang.c (remove_extra_symbols): Do not increment when
5524 removing an element
5525
03b0a45f
TT
55262020-09-08 Tom Tromey <tromey@adacore.com>
5527
5528 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5529
3cae4447
TT
55302020-09-08 Tom Tromey <tromey@adacore.com>
5531
5532 PR win32/25302:
5533 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5534 (gdb_bfd_init_data): New function.
5535 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5536
7f08fd51
TBA
55372020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5538
5539 * infrun.c (fetch_inferior_event): Use
5540 `switch_to_target_no_thread` to switch the target.
5541
3e6ff933
TT
55422020-09-06 Tom Tromey <tom@tromey.com>
5543
5544 * symfile.h (dwarf2_free_objfile): Don't declare.
5545
e56798df
AKS
55462020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5547
5548 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5549 to match 16 byte real/complex type generated by Flang compiler.
5550
8f5c6526
TV
55512020-09-03 Tom de Vries <tdevries@suse.de>
5552
5553 PR breakpoint/26546
5554 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5555 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5556
c5065df0
SM
55572020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5558
5559 * maint.c (index_digits): New function.
5560 (struct maint_print_section_data): Remove.
5561 (print_bfd_section_info): Remove print_data parameter, add arg
5562 and index_digits.
5563 (print_objfile_section_info): Likewise.
5564 (print_bfd_section_info_maybe_relocated): Likewise (plus
5565 objfile).
5566 (maintenance_info_sections): Adjust calls.
5567
02c6f3f1
TT
55682020-09-02 Tom Tromey <tromey@adacore.com>
5569
5570 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5571 for null pointers.
5572 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5573
ef5e5b0b
SM
55742020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5575
5576 * bcache.h (struct bcache) <insert>: Change type of `added` to
5577 pointer to bool.
5578 * bcache.c (bcache::insert): Likewise.
5579 * gdbtypes.c (check_types_worklist): Adjust.
5580 * psymtab.c (add_psymbol_to_bcache): Adjust.
5581
973695d6
KB
55822020-08-31 Kevin Buettner <kevinb@redhat.com>
5583
5584 * corelow.c (unordered_set): Include.
5585 (class core_target): Add field 'm_core_unavailable_mappings'.
5586 (core_target::build_file_mappings): Print only one warning
5587 per inaccessible file. Add unavailable/broken mappings
5588 to m_core_unavailable_mappings.
5589 (core_target::xfer_partial): Call...
5590 (core_target::xfer_memory_via_mappings): New method.
5591
264fc0e2
SM
55922020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5595 type to bool.
5596
2de01bdb
SM
55972020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5598
5599 * dwarf2/read.c (struct field_info): Fix indentation.
5600
f3bd50f1
SM
56012020-08-31 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5604 ordering in comment.
5605 * frame.c (frame_id_eq): Fix indentation.
5606
22b9b4b0
SL
56072020-08-31 Scott Linder <scott@scottlinder.com>
5608 Simon Marchi <simon.marchi@efficios.com>
5609
5610 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5611 inline frame ids in outer frame.
5612
84154d16
SM
56132020-08-31 Simon Marchi <simon.marchi@efficios.com>
5614
5615 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5616 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5617 (outer_frame_id): Use FID_STACK_OUTER instead of
5618 FID_STACK_INVALID.
5619 (frame_id_p): Don't check for outer_frame_id.
5620
8efaf6b3
SM
56212020-08-31 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5624 regnum/frame in value. Call allocate_value_lazy.
5625 * frame.c (frame_unwind_register_value): Use
5626 val_print_not_saved.
5627
fe1fe7ea
SM
56282020-08-31 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5631
f7c7700d
PA
56322020-08-29 Pedro Alves <pedro@palves.net>
5633
5634 * progspace.c (print_program_space): Use all_inferiors. Switch to
5635 the inferior before calling target_pid_to_str.
5636
e0814aae
TT
56372020-08-28 Tom Tromey <tom@tromey.com>
5638
5639 * xcoffread.c (xcoff_end_psymtab): Update comment.
5640 * dbxread.c (dbx_end_psymtab): Update comment.
5641
626d2320
TV
56422020-08-28 Tom de Vries <tdevries@suse.de>
5643
5644 PR breakpoint/26544
5645 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5646 event_location.
5647 (create_breakpoint): Same.
5648 (base_breakpoint_decode_location): Same.
5649 (bkpt_create_sals_from_location): Same.
5650 (bkpt_decode_location): Same.
5651 (bkpt_probe_create_sals_from_location): Same.
5652 (bkpt_probe_decode_location): Same.
5653 (tracepoint_create_sals_from_location): Same.
5654 (tracepoint_decode_location): Same.
5655 (tracepoint_probe_decode_location): Same.
5656 (strace_marker_create_sals_from_location): Same.
5657 (strace_marker_decode_location): Same.
5658 (create_sals_from_location_default): Same.
5659 (decode_location_default): Same.
5660 * breakpoint.h (struct breakpoint_ops): Same.
5661 (create_breakpoint): Same.
5662 * linespec.h (decode_line_full): Same.
5663 * linespec.c (decode_line_full): Same. Throw error if
5664 result.size () == 0.
5665
df631783
PA
56662020-08-27 Pedro Alves <pedro@palves.net>
5667
5668 PR gdb/26524
5669 * breakpoint.c (until_break_fsm) <location_breakpoint,
5670 caller_breakpoint>: Delete fields.
5671 <breakpoints>: New field.
5672 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5673 two individual breakpoints.
5674 (until_break_fsm::should_stop): Loop over breakpoints in the
5675 breakpoint vector.
5676 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5677 vector.
5678 (until_break_command): Handle location expanding into multiple
5679 sals.
5680
b2b38aa4
PA
56812020-08-27 Pedro Alves <pedro@palves.net>
5682
5683 PR gdb/26523
5684 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5685 bp_until breakpoints user-specified locations. Update intro
5686 comment.
5687
b886559f
SM
56882020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5689
5690 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5691 gdb_bfd_sections): New.
5692 * maint.c (print_bfd_section_info): Change param type to
5693 maint_print_section_data.
5694 (print_objfile_section_info): Likewise.
5695 (print_bfd_section_info_maybe_relocated): Likewise.
5696 (maintenance_info_sections): Use gdb_bfd_sections.
5697
4c6e63bf
SV
56982020-08-25 Shahab Vahedi <shahab@synopsys.com>
5699
5700 * MAINTAINERS: Add ARC target and maintainer.
5701
8d7f0635
AK
57022020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5703
5704 * configure.tgt: ARC support for GNU/Linux.
5705 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5706 * arc-linux-tdep.c: New file.
5707 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5708 * arc-tdep.c (arc_write_pc): Use it.
5709
fdd8731b
SV
57102020-08-25 Shahab Vahedi <shahab@synopsys.com>
5711
5712 * arc-tdep.c (arc_check_for_hardware_loop): New.
5713 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5714
22459524
SV
57152020-08-25 Shahab Vahedi <shahab@synopsys.com>
5716
5717 * arc-tdep.h: Include "gdbarch.h".
5718
995d3a19
SV
57192020-08-25 Shahab Vahedi <shahab@synopsys.com>
5720
5721 * arch/arc.h
5722 (arc_gdbarch_features): New class to stir the selection of target XML.
5723 (arc_create_target_description): Use FEATURES to choose XML target.
5724 (arc_lookup_target_description): Use arc_create_target_description
5725 to create _new_ target descriptions or return the already created
5726 ones if the FEATURES is the same.
5727 * arch/arc.c: Implementation of prototypes described above.
5728 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5729 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5730 * arc-tdep.c (*_feature_name): Make feature names consistent.
5731 (arc_register_feature): A new struct to hold information about
5732 registers of a particular target/feature.
5733 (arc_check_tdesc_feature): Check if XML provides registers in
5734 compliance with ARC_REGISTER_FEATURE structs.
5735 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5736 (determine_*_reg_feature_set): Which feature name to look for.
5737 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5738 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5739 to expected ISA enums to be used in arc_gdbarch_features structs.
5740 * features/Makefile (FEATURE_XMLFILES): Add new files.
5741 * gdb/features/arc/v1-aux.c: New file.
5742 * gdb/features/arc/v1-aux.xml: Likewise.
5743 * gdb/features/arc/v1-core.c: Likewise.
5744 * gdb/features/arc/v1-core.xml: Likewise.
5745 * gdb/features/arc/v2-aux.c: Likewise.
5746 * gdb/features/arc/v2-aux.xml: Likewise.
5747 * gdb/features/arc/v2-core.c: Likewise.
5748 * gdb/features/arc/v2-core.xml: Likewise.
5749 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5750
3945d2d7
GM
57512020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5752 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 PR m2/26372
fc5d6901 5755 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5756 an assert. Remove single element array indexing pattern as the
5757 MULTI_SUBSCRIPT support will handle this case too.
5758
2677f2d3
SM
57592020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5760
5761 * value.h (valprint_check_validity): Move declaration from
5762 here...
5763 * valprint.h (valprint_check_validity): ... to here.
5764
c426fddb
SM
57652020-08-24 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * debug.h: New file.
5768 * debug.c (debug_prefixed_vprintf): New function.
5769 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5770 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5771
1eb8556f
SM
57722020-08-24 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * infrun.h (infrun_debug_printf_1): New function declaration.
5775 (infrun_debug_printf): New macro.
5776 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5777 throughout.
5778 (infrun_debug_printf): New function.
5779 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5780 (handle_jit_event): Likewise.
5781
b8fff44e
MW
57822020-08-21 Mark Wielaard <mark@klomp.org>
5783
5784 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5785
d19c3068
SM
57862020-08-22 Simon Marchi <simon.marchi@efficios.com>
5787
5788 * frame.c (enum class frame_id_status): New.
5789 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5790 (fprintf_frame): Update.
5791 (compute_frame_id): Set frame id status to "computing" on entry.
5792 Set it back to "not_computed" on failure and to "computed" on
5793 success.
5794 (get_frame_id): Assert the frame id is not being computed.
5795 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5796 (create_new_frame): Likewise.
5797 (frame_cleanup_after_sniffer): Update assert.
5798
b70e516e
SM
57992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5800
5801 * regcache.c (pid_ptid_regcache_map): New type.
5802 (target_ptid_regcache_map): Remove.
5803 (target_pid_ptid_regcache_map): New type.
5804 (regcaches): Change type to target_pid_ptid_regcache_map.
5805 (get_thread_arch_aspace_regcache): Update.
5806 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5807 case.
5808 (regcaches_size): Update.
5809 (regcache_count): Update.
5810 (registers_changed_ptid_target_pid_test): New.
5811 (_initialize_regcache): Register new test.
5812
cdd9148a
SM
58132020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * regcache.c (regcache_count): New.
5816 (struct regcache_test_data): New.
5817 (regcache_test_data_up): New.
5818 (populate_regcaches_for_test): New.
5819 (regcaches_test): Remove.
5820 (get_thread_arch_aspace_regcache_test): New.
5821 (registers_changed_ptid_all_test): New.
5822 (registers_changed_ptid_target_test): New.
5823 (registers_changed_ptid_target_ptid_test): New.
5824 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5825 (_initialize_regcache): Register new tests.
5826
dd125343
SM
58272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5828
5829 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5830 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5831 gdbarch and aspace parameter. Use current inferior's aspace.
5832 Validate regcache's arch value.
5833 (regcaches_test): Update.
5834
3ee93972
SM
58352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * regcache.c (regcaches_test): Call registers_changed.
5838
33bf4c5c
TBA
58392020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5840
5841 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5842
c2fd7fae
AKS
58432020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5844
5845 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5846 to find the end of prologue for flang compiled binaries.
5847 * arm-tdep.c (arm_skip_prologue): Likewise.
5848 * i386-tdep.c (i386_skip_prologue): Likewise.
5849 * producer.c (producer_is_llvm): New function.
5850 (producer_parsing_tests): Added new tests for clang/flang.
5851 * producer.h (producer_is_llvm): New declaration.
5852
9327494e
SM
58532020-08-18 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * linux-nat.c (linux_nat_debug_printf): New function.
5856 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5857
d138725a
AM
58582020-08-18 Aaron Merey <amerey@redhat.com>
5859
5860 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5861 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5862 (CLIBS): Add DEBUGINFOD_LIBS.
5863
f9b11e6b
ST
58642020-08-17 Sergei Trofimovich <siarheit@google.com>
5865
5866 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5867 'gdbarch_num_regs'.
5868
3ae7ab99
TT
58692020-08-17 Tom Tromey <tromey@adacore.com>
5870
5871 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5872 ada_get_decoded_value returns NULL.
5873
b017825f
TT
58742020-08-17 Tom Tromey <tromey@adacore.com>
5875
5876 * python/py-inferior.c (infpy_search_memory): Use
5877 gdb_py_object_from_ulongest.
5878 * python/py-infevents.c (create_inferior_call_event_object)
5879 (create_memory_changed_event_object): Use
5880 gdb_py_object_from_ulongest.
5881 * python/py-linetable.c (ltpy_entry_get_pc): Use
5882 gdb_py_object_from_ulongest.
5883
7635cf79
SM
58842020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 * loc.c (class symbol_needs_eval_context): Fix indentation.
5887
f54be24b
SM
58882020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5891 bool.
5892
53d5a2a5
TV
58932020-08-17 Tom de Vries <tdevries@suse.de>
5894
5895 PR gdb/26393
5896 * gdbtypes.c (dump_dynamic_prop): New function.
5897 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5898
547ce8f0
TV
58992020-08-15 Tom de Vries <tdevries@suse.de>
5900
5901 PR backtrace/26390
5902 * stack.c (print_frame_args): Temporarily set the selected
5903 frame to FRAME while printing the frame's arguments.
5904
6ea815e7
PFC
59052020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5906
5907 PR breakpoints/26385
5908 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5909 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5910
6e562fa3
PFC
59112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5912
5913 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5914 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5915 and >= to check return value instead of == -1 and != -1.
5916
d369b608
SM
59172020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 * utils.h (class gdb_argv) <as_array_view>: New method.
5920 * utils.c (gdb_argv_as_array_view_test): New.
5921 (_initialize_utils): Register selftest.
5922 * maint.c (maintenance_selftest): Use the new method.
5923
b31488a3
KR
59242020-08-13 Kamil Rytarowski <n54@gmx.com>
5925
5926 * target.h (supports_dumpcore, dumpcore): New
5927 function declarations.
5928 * target.c (supports_dumpcore, dumpcore): New
5929 functions.
5930 * target-delegates.c: Rebuild.
5931 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5932 and target_dumpcore ().
5933
002a3166
AM
59342020-08-13 Aaron Merey <amerey@redhat.com>
5935
5936 * debuginfod-support.c: Replace global variables with user_data.
5937
ece5bc8a
SM
59382020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * maint.c (maintenance_selftest): Split args and pass array_view
5941 to run_tests.
5942
6d8a0a5e
LM
59432020-08-12 Luis Machado <luis.machado@linaro.org>
5944
5945 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5946 type's length.
5947 Use %s and pulongest to print the length.
5948
7cf663a9
PA
59492020-08-12 Pedro Alves <palves@redhat.com>
5950
5951 * NEWS: Move "Multi-target debugging support" item to the
5952 "Changes since GDB 9" section.
5953
27c7b875
PA
59542020-08-12 Pedro Alves <palves@redhat.com>
5955
5956 PR gdb/26336
5957 * progspace.c (program_space::remove_objfile): Invalidate the
5958 frame cache.
5959
1796a2a1
TV
59602020-08-11 Tom de Vries <tdevries@suse.de>
5961
5962 * MAINTAINERS: Mark ms1 as deleted.
5963
f8e3fe0d
LM
59642020-08-10 Luis Machado <luis.machado@linaro.org>
5965
5966 PR gdb/26310
5967
5968 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5969 act accordingly.
5970 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5971 movz/str/stur/stp skipping behavior.
5972
cc308722
LM
59732020-08-10 Luis Machado <luis.machado@linaro.org>
5974
5975 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5976 struct user_sve_header instead of struct sve_context.
5977
041d9819
SM
59782020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * read.h (dwarf2_fetch_die_loc_sect_off,
5981 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5982 `void *` parameter with function_view.
5983 * read.c (dwarf2_fetch_die_loc_sect_off,
5984 dwarf2_fetch_die_loc_cu_off): Likewise.
5985 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5986 (per_cu_dwarf_call): Adjust.
5987 (get_frame_address_in_block_wrapper): Remove.
5988 (indirect_synthetic_pointer): Adjust.
5989 (get_ax_pc): Remove.
5990 (dwarf2_compile_expr_to_ax): Adjust.
5991
38f8aa06
TV
59922020-08-08 Tom de Vries <tdevries@suse.de>
5993
5994 PR build/26344
5995 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5996 constructor.
5997 * regcache.c (get_thread_arch_aspace_regcache): Same.
5998
a52b3ae2
TT
59992020-08-07 Tom Tromey <tromey@adacore.com>
6000
6001 * ravenscar-thread.c
6002 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6003 New method.
6004 (ravenscar_thread_target::wait): Check
6005 runtime_initialized.
6006 (ravenscar_thread_target::prepare_to_store)
6007 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6008 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6009 (ravenscar_thread_target::stopped_by_watchpoint)
6010 (ravenscar_thread_target::stopped_data_address)
6011 (ravenscar_thread_target::core_of_thread): Use
6012 scoped_restore_current_thread and
6013 set_base_thread_from_ravenscar_task.
6014
0e29517d
TT
60152020-08-07 Tom Tromey <tromey@adacore.com>
6016
6017 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6018
592f9bd7
TT
60192020-08-07 Tom Tromey <tromey@adacore.com>
6020
6021 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6022 update_inferior_ptid before update_thread_list.
6023 (temporarily_change_regcache_ptid): New class.
6024 (ravenscar_thread_target::fetch_registers)
6025 (ravenscar_thread_target::store_registers)
6026 (ravenscar_thread_target::prepare_to_store): Use base thread when
6027 forwarding operation.
6028
39e2018a
TT
60292020-08-07 Tom Tromey <tromey@adacore.com>
6030
6031 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6032 "is_pid" case.
6033
2080266b
TT
60342020-08-07 Tom Tromey <tromey@adacore.com>
6035
6036 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6037 New methods.
6038 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6039 first.
6040 (ravenscar_thread_target::add_thread): Rename from
6041 ravenscar_add_thread.
6042 (ravenscar_thread_target::update_thread_list): Use a lambda.
6043 (ravenscar_thread_target::xfer_partial): New method.
6044
78c02f21
TT
60452020-08-07 Tom Tromey <tromey@adacore.com>
6046
6047 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6048 gdb::function_view.
6049 (iterate_over_live_ada_tasks): Change type of argument.
6050 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6051 of argument.
6052
d5d833af
TT
60532020-08-07 Tom Tromey <tromey@adacore.com>
6054
6055 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6056 Remove.
6057 (ravenscar_thread_target::extra_thread_info): Remove.
6058 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6059 defer to target beneath for non-Ravenscar threads.
6060
a8ac85bb
TT
60612020-08-07 Tom Tromey <tromey@adacore.com>
6062
6063 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6064 get_base_thread_from_ravenscar_task>: Now methods.
6065 <m_cpu_map>: New member.
6066 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6067 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6068 (ravenscar_thread_target::task_is_currently_active): Update.
6069 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6070 Now a method.
6071 (ravenscar_thread_target::add_active_thread): Put initial thread
6072 into the m_cpu_map.
6073
550ab58d
TT
60742020-08-07 Tom Tromey <tromey@adacore.com>
6075
6076 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6077 event_ptid.
6078
e9546579
TT
60792020-08-07 Tom Tromey <tromey@adacore.com>
6080
6081 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6082 runtime_initialized.
6083
3d4470e5
TT
60842020-08-07 Tom Tromey <tromey@adacore.com>
6085
6086 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6087 add_active_thread.
6088 (ravenscar_thread_target::add_active_thread): Now public.
6089 (ravenscar_inferior_created): Call add_active_thread after pushing
6090 the target.
6091
888bdb2b
SM
60922020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * regcache.c (ptid_regcache_map): New type.
6095 (target_ptid_regcache_map): New type.
6096 (regcaches): Change type to target_ptid_regcache_map.
6097 (get_thread_arch_aspace_regcache): Update to regcaches' new
6098 type.
6099 (regcache_thread_ptid_changed): Likewise.
6100 (registers_changed_ptid): Likewise.
6101 (regcaches_size): Likewise.
6102 (regcaches_test): Update.
6103 (regcache_thread_ptid_changed): Update.
6104 * regcache.h (regcache_up): New type.
6105 * gdbsupport/ptid.h (hash_ptid): New struct.
6106
b161a60d
SM
61072020-08-07 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * observable.h (thread_ptid_changed): Add parameter
6110 `process_stratum_target *`.
6111 * infrun.c (infrun_thread_ptid_changed): Add parameter
6112 `process_stratum_target *` and use it.
6113 (selftests): New namespace.
6114 (infrun_thread_ptid_changed): New function.
6115 (_initialize_infrun): Register selftest.
6116 * regcache.c (regcache_thread_ptid_changed): Add parameter
6117 `process_stratum_target *` and use it.
6118 (regcache_thread_ptid_changed): New function.
6119 (_initialize_regcache): Register selftest.
6120 * thread.c (thread_change_ptid): Pass target to
6121 thread_ptid_changed observable.
6122
d2854d8d
CT
61232020-08-06 Caroline Tice <cmtice@google.com>
6124
fe4c3d43
SM
6125 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6126 (struct dwp_sections): Update field comments. Add loclists and
6127 rnglists fields.
6128 (struct virtual_v2_dwo_sections): Rename struct to
6129 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6130 size & offset fields for loclists and rnglists.
6131 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6132 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6133 skipping dummy type units.
6134 (create_dwp_hash_table): Update the large comment above the function to
6135 discuss Version 5 DWP files as well, with references. Update all the
6136 version checks in the function to check for version 5 as well. Add new
6137 section at the end to create dwp hash table for version 5.
6138 (create_dwp_v2_section): Rename function to
6139 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6140 Add V5 to error message text.
6141 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6142 into calls to create_dwp_v2_or_v5_section.
6143 (create_dwo_unit_in_dwp_v5): New function.
6144 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6145 check for version2; add else clause to handle version 5.
6146 (open_and_init_dwo_file): Add code to check dwarf version & only call
6147 create_debug_types_hash_table (with sections.types) if version is not 5;
6148 else call create_debug_type_hash_table, with sections.info.
6149 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6150 version 5.
6151 (dwarf2_locate_v5_dwp_sections): New function.
6152 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6153 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6154
159ed7d9
SM
61552020-08-06 Simon Marchi <simon.marchi@efficios.com>
6156
6157 * regcache.h (class regcache): Remove friend
6158 registers_changed_ptid.
6159 <regcache_thread_ptid_changed>: Remove.
6160 <regcaches>: Remove.
6161 * regcache.c (regcache::regcaches): Rename to...
6162 (regcaches): ... this. Make static.
6163 (get_thread_arch_aspace_regcache): Update.
6164 (regcache::regcache_thread_ptid_changed): Rename to...
6165 (regcache_thread_ptid_changed): ... this. Update.
6166 (class regcache_access): Remove.
6167 (regcaches_test): Update.
6168 (_initialize_regcache): Update.
6169 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6170 <forward_list>.
6171
174981ae
SM
61722020-08-06 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * regcache.h (class regcache) <current_regcache>: Rename to...
6175 <regcaches>: ... this. Move doc here.
6176 * regcache.c (regcache::current_regcache) Rename to...
6177 (regcache::regcaches): ... this. Move doc to header.
6178 (get_thread_arch_aspace_regcache): Update.
6179 (regcache::regcache_thread_ptid_changed): Update.
6180 (registers_changed_ptid): Update.
6181 (class regcache_access) <current_regcache_size>: Rename to...
6182 <regcaches_size>: ... this.
6183 (current_regcache_test): Rename to...
6184 (regcaches_test): ... this.
6185 (_initialize_regcache): Update.
6186
ed908db6
VC
61872020-08-06 Victor Collod <vcollod@nvidia.com>
6188
6189 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6190
b5582ab7
KB
61912020-08-05 Kevin Buettner <kevinb@redhat.com>
6192
6193 * corelow.c (core_target::build_file_mappings): Don't output
6194 null pathname in warning.
6195
ea946b86
SM
61962020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6197
6198 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6199 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6200 gdb.dwarf2/dw2-single-line-discriminators.exp,
6201 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6202
57d02173
TT
62032020-08-05 Tom Tromey <tromey@adacore.com>
6204
6205 PR rust/26197:
6206 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6207 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6208 Fix off-by-one and type size errors in ordinary case.
6209
5555c86d
TV
62102020-08-05 Tom de Vries <tdevries@suse.de>
6211
6212 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6213 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6214
97916bfe
SM
62152020-08-04 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * frame.h (frame_id_p): Return bool.
6218 (frame_id_artificial_p): Return bool.
6219 (frame_id_eq): Return bool.
6220 (has_stack_frames): Return bool.
6221 (get_selected_frame): Fix typo in comment.
6222 (get_frame_pc_if_available): Return bool.
6223 (get_frame_address_in_block_if_available): Return bool.
6224 (get_frame_func_if_available): Return bool.
6225 (read_frame_register_unsigned): Return bool.
6226 (get_frame_register_bytes): Return bool.
6227 (safe_frame_unwind_memory): Return bool.
6228 (deprecated_frame_register_read): Return bool.
6229 (frame_unwinder_is): Return bool.
6230 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6231 bool.
6232 <this_id::p>: Likewise.
6233 <prev_p>: Likewise.
6234 (frame_stash_add): Return bool.
6235 (get_frame_id): Use bool.
6236 (frame_id_build_special) Use bool.
6237 (frame_id_build_unavailable_stack): Use bool.
6238 (frame_id_build): Use bool.
6239 (frame_id_p): Return bool, use true/false instead of 1/0.
6240 (frame_id_artificial_p): Likewise.
6241 (frame_id_eq): Likewise.
6242 (frame_id_inner): Likewise.
6243 (get_frame_func_if_available): Likewise.
6244 (read_frame_register_unsigned): Likewise.
6245 (deprecated_frame_register_read): Likewise.
6246 (get_frame_register_bytes): Likewise.
6247 (has_stack_frames): Likewise.
6248 (inside_main_func): Likewise.
6249 (inside_entry_func): Likewise.
6250 (get_frame_pc_if_available): Likewise.
6251 (get_frame_address_in_block_if_available): Likewise.
6252 (frame_unwinder_is): Likewise.
6253 (safe_frame_unwind_memory): Likewise.
6254 (frame_unwind_arch): Likewise.
6255
fedfee88
SM
62562020-08-04 Simon Marchi <simon.marchi@efficios.com>
6257
6258 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6259 type to cached_copy_status.
6260 (fprintf_frame): Adjust.
6261 (get_frame_func_if_available): Adjust.
6262 (frame_cleanup_after_sniffer): Adjust.
6263
6cfa9b59
MW
62642020-08-04 Mark Wielaard <mark@klomp.org>
6265
6266 * MAINTAINERS (Write After Approval): Update email address.
6267
66d6346b
SM
62682020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6271 dynamic_prop::const_val.
6272
8a6d5e35
SM
62732020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6274
6275 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6276 dynamic_prop::kind.
6277
51d6067d
SM
62782020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6281
b26e2ae7
JM
62822020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6283
6284 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6285
39791af2
JM
62862020-08-04 Weimin Pan <weimin.pan@oracle.com>
6287 Jose E. Marchesi <jose.marchesi@oracle.com>
6288
6289 * configure.tgt: Add entry for bpf-*-*.
6290 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6291 (ALLDEPFILES): Add bpf-tdep.c.
6292 * bpf-tdep.c: New file.
6293 * MAINTAINERS: Add bpf target and maintainer.
6294 * NEWS: Mention the support for the new target.
6295
521894aa
TV
62962020-08-04 Tom de Vries <tdevries@suse.de>
6297
6298 PR symtab/23270
6299 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6300 Error.
6301
5d6356e9
JB
63022020-08-03 John Baldwin <jhb@FreeBSD.org>
6303
6304 * syscalls/freebsd.xml: Regenerate.
6305
0cf82b81
JB
63062020-08-03 John Baldwin <jhb@FreeBSD.org>
6307
6308 * syscalls/update-freebsd.sh: Fix usage and year range.
6309
8f34b746
TV
63102020-08-03 Tom de Vries <tdevries@suse.de>
6311
6312 PR symtab/26333
6313 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6314 DW_LNE_lo_user/DW_LNE_hi_user range.
6315
5e500d33
SM
63162020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 PR ada/26318
6319 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6320 kind.
6321
78319c15
TBA
63222020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6323
6324 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6325
4c55e970
TBA
63262020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6327
6328 * breakpoint.c (set_breakpoint_condition): Update the condition
6329 expressions after checking that the input condition string parses
6330 successfully and does not contain junk at the end.
6331
1e620590
TBA
63322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6333
6334 * breakpoint.c (set_breakpoint_condition): Update the
6335 condition string after parsing the new condition successfully.
6336
c8693053
RO
63372020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6338
6339 * proc-api.c (_STRUCTURED_PROC): Don't define.
6340 * proc-events.c: Likewise.
6341 * proc-flags.c: Likewise.
6342 * proc-why.c: Likewise.
6343 * procfs.c: Likewise.
6344
6345 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6346 * configure, config.in: Regenerate.
6347
5a99adb8
TV
63482020-07-30 Tom de Vries <tdevries@suse.de>
6349
6350 PR build/26320
6351 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6352 m_red/m_green/m_blue in a union.
6353
8ba83e91
TV
63542020-07-29 Tom de Vries <tdevries@suse.de>
6355
6356 PR tdep/26280
6357 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6358
f75a0693
AB
63592020-07-28 Tom Tromey <tromey@adacore.com>
6360
6361 PR symtab/26270:
6362 * symtab.h (find_pc_partial_function_sym): Declare.
6363 * cli/cli-cmds.c (disassemble_command): Use
6364 find_pc_partial_function_sym. Check asm_demangle.
6365 * blockframe.c (cache_pc_function_sym): New global.
6366 (cache_pc_function_name): Remove.
6367 (clear_pc_function_cache): Update.
6368 (find_pc_partial_function_sym): New function, from
6369 find_pc_partial_function.
6370 (find_pc_partial_function): Rewrite using
6371 find_pc_partial_function_sym.
6372
16f3242c
TT
63732020-07-28 Tom Tromey <tromey@adacore.com>
6374
6375 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6376 help. Add usage.
6377
4888741a
TT
63782020-07-28 Tom Tromey <tromey@adacore.com>
6379
6380 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6381 <DW_OP_GNU_variable_value>: Cast to address type.
6382
4d46f402
KR
63832020-07-28 Kamil Rytarowski <n54@gmx.com>
6384
6385 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6386 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6387 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6388 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6389 (nbsd_get_siginfo_type): New.
6390 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6391 (_initialize_nbsd_tdep): New.
6392
d70f978b
L
63932020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6394
6395 PR binutils/26301
6396 * configure: Regenerated.
6397
377170fa
L
63982020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6399
6400 PR binutils/26301
6401 * configure: Regenerated.
6402
43d5901d
AB
64032020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6404
6405 * python/py-frame.c: Remove 'user-regs.h' include.
6406 (frapy_read_register): Rewrite to make use of
6407 gdbpy_parse_register_id.
6408 * python/py-registers.c (gdbpy_parse_register_id): New function,
6409 moved here from python/py-unwind.c. Updated the return type, and
6410 also accepts register descriptor objects.
6411 * python/py-unwind.c: Remove 'user-regs.h' include.
6412 (pyuw_parse_register_id): Moved to python/py-registers.c.
6413 (unwind_infopy_add_saved_register): Update to use
6414 gdbpy_parse_register_id.
6415 (pending_framepy_read_register): Likewise.
6416 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6417
14fa8fb3
AB
64182020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * python/py-registers.c: Add 'user-regs.h' include.
6421 (register_descriptor_iter_find): New function.
6422 (register_descriptor_iterator_object_methods): New static global
6423 methods array.
6424 (register_descriptor_iterator_object_type): Add pointer to methods
6425 array.
6426
ddce1758
JB
64272020-07-27 John Baldwin <jhb@FreeBSD.org>
6428
6429 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6430 for all architectures on FreeBSD 11.3 and later.
6431
a4089f52
TT
64322020-07-27 Tom Tromey <tromey@adacore.com>
6433
6434 * gcore.h (load_corefile): Don't declare.
6435
95420d30
TV
64362020-07-27 Tom de Vries <tdevries@suse.de>
6437
6438 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6439 * config.in: Regenerate.
6440 * configure: Regenerate.
6441
05a6b8c2
EZ
64422020-07-26 Eli Zaretskii <eliz@gnu.org>
6443
6444 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6445 ws2tcpip.h. When checking whether socklen_t type is defined, use
6446 ws2tcpip.h if it is available and sys/socket.h isn't.
6447 * configure: Regenerate.
6448 * config.in: Regenerate.
6449
e79eb02f
AB
64502020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6451
6452 PR fortran/23051
6453 PR fortran/26139
6454 * valops.c (value_ind): Pass address to
6455 readjust_indirect_value_type.
6456 * value.c (readjust_indirect_value_type): Make parameter
6457 non-const, and add extra address parameter. Resolve original type
6458 before using it.
6459 * value.h (readjust_indirect_value_type): Update function
6460 signature and comment.
6461
876518dd
TV
64622020-07-25 Tom de Vries <tdevries@suse.de>
6463
6464 PR symtab/26243
6465 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6466 entries.
6467
f6720b1c
AM
64682020-07-24 Aaron Merey <amerey@redhat.com>
6469
6470 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6471 * configure: Rebuild.
6472
513487e1
KB
64732020-07-23 Kevin Buettner <kevinb@redhat.com>
6474
6475 PR corefiles/26294
6476 * corelow.c (_initialize_corelow): Add period to help text
6477 for "maintenance print core-file-backed-mappings".
6478
e7bc9db8
PA
64792020-07-23 Pedro Alves <pedro@palves.net>
6480
6481 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6482 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6483 meanwhile.
6484 * frame.c (frame_cache_generation, get_frame_cache_generation):
6485 New.
6486 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6487 (get_prev_frame_if_no_cycle): On exception, don't touch
6488 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6489 * frame.h (get_frame_cache_generation): Declare.
6490
90fcc466
TV
64912020-07-23 Tom de Vries <tdevries@suse.de>
6492
6493 PR tui/26282
6494 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6495 New default constructor.
6496
78344df7
AB
64972020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6500 exclude non-statement entries.
6501
b089853a
KB
65022020-07-22 Kevin Buettner <kevinb@redhat.com>
6503
6504 * NEWS (New commands): Mention new command
6505 "maintenance print core-file-backed-mappings".
6506
09c2f5d4
KB
65072020-07-22 Kevin Buettner <kevinb@redhat.com>
6508
6509 * corelow.c (gdbcmd.h): Include.
6510 (core_target::info_proc_mappings): New method.
6511 (get_current_core_target): New function.
6512 (maintenance_print_core_file_backed_mappings): New function.
6513 (_initialize_corelow): Add core-file-backed-mappings to
6514 "maint print" commands.
6515
9c5ec5c2 65162020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6517
9c5ec5c2
KB
6518 * linux-tdep.c (dump_note_entry_p): New function.
6519 (linux_dump_mapping_p_ftype): New typedef.
6520 (linux_find_memory_regions_full): Add new parameter,
6521 should_dump_mapping_p.
6522 (linux_find_memory_regions): Adjust call to
6523 linux_find_memory_regions_full.
6524 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6525 call to linux_find_memory_regions_full.
6526
db082f59
KB
65272020-07-22 Kevin Buettner <kevinb@redhat.com>
6528
6529 * corelow.c (solist.h, unordered_map): Include.
6530 (class core_target): Add field m_core_file_mappings and
6531 method build_file_mappings.
6532 (core_target::core_target): Call build_file_mappings.
6533 (core_target::~core_target): Free memory associated with
6534 m_core_file_mappings.
6535 (core_target::build_file_mappings): New method.
6536 (core_target::xfer_partial): Use m_core_file_mappings
6537 for memory transfers.
6538 * linux-tdep.c (linux_read_core_file_mappings): New
6539 function.
6540 (linux_core_info_proc_mappings): Rewrite to use
6541 linux_read_core_file_mappings.
6542 (linux_init_abi): Register linux_read_core_file_mappings.
6543
7e183d27
KB
65442020-07-22 Kevin Buettner <kevinb@redhat.com>
6545
6546 * arch-utils.c (default_read_core_file_mappings): New function.
6547 * arch-utils.c (default_read_core_file_mappings): Declare.
6548 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6549 * gdbarch.h, gdbarch.c: Regenerate.
6550
2735d421
KB
65512020-07-22 Kevin Buettner <kevinb@redhat.com>
6552
6553 PR corefiles/25631
6554 * corelow.c (core_target:xfer_partial): Revise
6555 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6556 case after first checking the stratum beneath the core
6557 target.
6558 (has_all_memory): Return true.
6559 * target.c (raw_memory_xfer_partial): Revise comment
6560 regarding use of has_all_memory.
6561
e56cb451
KB
65622020-07-22 Kevin Buettner <kevinb@redhat.com>
6563
6564 * exec.h (section_table_xfer_memory): Revise declaration,
6565 replacing section name parameter with an optional callback
6566 predicate.
6567 * exec.c (section_table_xfer_memory): Likewise.
6568 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6569 of section_table_xfer_memory.
6570
32fa152e
TT
65712020-07-22 Tom Tromey <tromey@adacore.com>
6572
6573 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6574 lookup_symbol_search_name.
6575
a67a1c41
AB
65762020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6579 redundant local variable.
6580 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6581 reference, not pointer, update code accordingly.
6582
a7b4ff4f
SM
65832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6584 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6585
6586 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6587 * jit.c (jit_breakpoint_re_set_internal): Use the
6588 `skip_jit_symbol_lookup` field.
6589
2340e834
SM
65902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6591 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6592
6593 * jit.c (jit_read_descriptor): Define the descriptor address once,
6594 use twice.
6595 (jit_breakpoint_deleted): Move the declaration of the loop variable
6596 `iter` into the loop header.
6597 (jit_breakpoint_re_set_internal): Move the declaration of the local
6598 variable `objf_data` to the first point of definition.
6599 (jit_event_handler): Move the declaration of local variables
6600 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6601 Rename `objf` to `jited`.
6602
c1072906
SM
66032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6606 Remove.
6607 * jit.c (get_jiter_objfile_data): Update.
6608
c8474dc3
TBA
66092020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6610 Simon Marchi <simon.marchi@polymtl.ca>
6611
6612 * jit.c (struct jit_program_space_data): Remove.
6613 (jit_program_space_key): Remove.
6614 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6615 stuff.
6616 (get_jit_program_space_data): Remove.
6617 (jit_breakpoint_deleted): Iterate on all of the program space's
6618 objfiles.
6619 (jit_inferior_init): Likewise.
6620 (jit_breakpoint_re_set_internal): Likewise. Also change return
6621 type to void.
6622 (jit_breakpoint_re_set): Pass current_program_space to
6623 jit_breakpoint_re_set_internal.
6624
77208eb7
SM
66252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 * jit.h (struct jiter_objfile_data) <cached_code_address,
6628 jit_breakpoint>: Move to here from ...
6629 * jit.c (jit_program_space_data): ... here.
6630 (jiter_objfile_data::~jiter_objfile_data): Update.
6631 (jit_breakpoint_deleted): Update.
6632 (jit_breakpoint_re_set_internal): Update.
6633
8c1c720f
SM
66342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6635
6636 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6637 checks.
6638 (jit_read_descriptor): Remove NULL check.
6639 (jit_event_handler): Add an assertion.
6640
0e74a041
SM
66412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6642
6643 * jit.h (struct jit_objfile_data): Split into...
6644 (struct jiter_objfile_data): ... this ...
6645 (struct jited_objfile_data): ... and this.
6646 * objfiles.h (struct objfile) <jit_data>: Remove.
6647 <jiter_data, jited_data>: New fields.
6648 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6649 (jiter_objfile_data::~jiter_objfile_data): ... this.
6650 (get_jit_objfile_data): Rename to ...
6651 (get_jiter_objfile_data): ... this.
6652 (add_objfile_entry): Update.
6653 (jit_read_descriptor): Use get_jiter_objfile_data.
6654 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6655 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6656 (jit_inferior_exit_hook): Use objfile's jited_data field.
6657
238b5c9f
SM
66582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6659
6660 * jit.h: Forward-declare `struct minimal_symbol`.
6661 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6662 constructor, destructor, and an objfile* field.
6663 * jit.c (jit_objfile_data): Remove.
6664 (struct jit_objfile_data): Migrate from here to jit.h.
6665 (jit_objfile_data::~jit_objfile_data): New destructor
6666 implementation with code moved from free_objfile_data.
6667 (free_objfile_data): Delete.
6668 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6669 (jit_find_objf_with_entry_addr): Ditto.
6670 (jit_inferior_exit_hook): Ditto.
6671 (_initialize_jit): Remove the call to
6672 register_objfile_data_with_cleanup.
6673 * objfiles.h (struct objfile) <jit_data>: New field.
6674
fe053b9e
TBA
66752020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6676
6677 * jit.h: Forward-declare `struct objfile`.
6678 (jit_event_handler): Add a second parameter, the JITer objfile.
6679 * jit.c (jit_read_descriptor): Change the signature to take the
6680 JITer objfile as an argument instead of the jit_program_space_data.
6681 (jit_inferior_init): Update the call to jit_read_descriptor.
6682 (jit_event_handler): Use the new JITer objfile argument when calling
6683 jit_read_descriptor.
6684 * breakpoint.c (handle_jit_event): Update the call to
6685 jit_event_handler to pass the JITer objfile.
6686
4cec0c66
JB
66872020-07-21 John Baldwin <jhb@FreeBSD.org>
6688
6689 * gdbarch.c: Regenerate.
6690 * gdbarch.h: Regenerate.
6691 * gdbarch.sh (handle_segmentation_fault): Remove method.
6692 * infrun.c (handle_segmentation_fault): Remove.
6693 (print_signal_received_reason): Remove call to
6694 handle_segmentation_fault.
6695
0e42f66a
JB
66962020-07-21 John Baldwin <jhb@FreeBSD.org>
6697
6698 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6699 Rename to sparc64_linux_report_signal_info and add siggnal
6700 argument.
6701 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6702 instead of sparc64_linux_handle_segmentation_fault.
6703
77bdfeb2
JB
67042020-07-21 John Baldwin <jhb@FreeBSD.org>
6705
6706 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6707 i386_linux_report_signal_info instead of
6708 i386_linux_handle_segmentation_fault.
6709 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6710 to i386_linux_report_signal_info and add siggnal argument.
6711 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6712 of i386_linux_handle_segmentation_fault.
6713 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6714 to i386_linux_report_signal_info and add siggnal argument.
6715
ad97bfc5
JB
67162020-07-21 John Baldwin <jhb@FreeBSD.org>
6717
6718 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6719 hook if present.
6720
272bb05c
JB
67212020-07-21 John Baldwin <jhb@FreeBSD.org>
6722
6723 * gdbarch.c: Regenerate.
6724 * gdbarch.h: Regenerate.
6725 * gdbarch.sh (report_signal_info): New method.
6726 * infrun.c (print_signal_received_reason): Invoke gdbarch
6727 report_signal_info hook if present.
6728
baf8791e
AB
67292020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * python/py-registers.c : Add 'unordered_map' include.
6732 (gdbpy_new_reggroup): Renamed to...
6733 (gdbpy_get_reggroup): ...this. Update to only create register
6734 group descriptors when needed.
6735 (gdbpy_reggroup_iter_next): Update.
6736
f7306dac
AB
67372020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * python/py-registers.c (gdbpy_register_object_data): New static
6740 global.
6741 (gdbpy_register_object_data_init): New function.
6742 (gdbpy_new_register_descriptor): Renamed to...
6743 (gdbpy_get_register_descriptor): ...this, and update to reuse
6744 existing register descriptors where possible.
6745 (gdbpy_register_descriptor_iter_next): Update.
6746 (gdbpy_initialize_registers): Register new gdbarch data.
6747
05c309a8
SM
67482020-07-21 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * linux-nat.c (stopped_pids): Make static.
6751
d1fd641e
SM
67522020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6753
6754 PR ada/26235
6755 * gdbtypes.c (ada_discrete_type_low_bound,
6756 ada_discrete_type_high_bound): Handle undefined bounds.
6757
1de14d77
KR
67582020-07-21 Kamil Rytarowski <n54@gmx.com>
6759
6760 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6761 declaration.
6762 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6763 function.
6764
ed810cc7
JB
67652020-07-20 John Baldwin <jhb@FreeBSD.org>
6766
6767 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6768 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6769 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6770 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6771 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6772 method.
6773
ae5369e7
LC
67742020-07-20 Ludovic Courtès <ludo@gnu.org>
6775
6776 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6777 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6778 which are deprecated in Guile 3.0.
6779 * configure.ac (try_guile_versions): Add "guile-3.0".
6780 * configure (try_guile_versions): Regenerate.
6781 * NEWS: Update entry.
6782
68cf161c
LC
67832020-07-20 Ludovic Courtès <ludo@gnu.org>
6784 Doug Evans <dje@google.com>
6785
6786 PR gdb/21104
6787 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6788 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6789 USING_GUILE_BEFORE_2_2.
6790 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6791 Change type to 'scm_t_port_type *'.
6792 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6793 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6794 parameter and honor it. Update callers.
6795 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6796 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6797 functions.
6798 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6799 USING_GUILE_BEFORE_2_2.
6800 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6801 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6802 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6803 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6804 and 'SCM_PORT_TYPE'.
6805 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6806 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6807 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6808 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6809 [!USING_GUILE_BEFORE_2_2]: New functions.
6810 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6811 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6812 'gdbscm_memory_port_read'.
6813 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6814 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6815 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6816 function.
6817 (ioscm_init_memory_port): Remove.
6818 (ioscm_init_memory_port_stream): New function
6819 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6820 function.
6821 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6822 Return scm_from_uint (0).
6823 (gdbscm_set_memory_port_read_buffer_size_x)
6824 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6825 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6826 Return scm_from_uint (0).
6827 (gdbscm_set_memory_port_write_buffer_size_x)
6828 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6829 * configure.ac (try_guile_versions): Add "guile-2.2".
6830 * configure: Regenerate.
6831 * NEWS: Add entry.
6832
aee91db3
TT
68332020-07-18 Tom Tromey <tom@tromey.com>
6834
6835 * linux-nat.c (linux_multi_process): Remove.
6836 (linux_nat_target::supports_multi_process): Return true.
6837
0e267416
AB
68382020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6839
6840 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6841 (riscv_lookup_target_description): Return pointer out of
6842 unique_ptr.
6843 * target-descriptions.c (allocate_target_description): Add
6844 comment.
6845 (target_desc_deleter::operator()): Likewise.
6846 * target-descriptions.h (struct target_desc_deleter): Moved to
6847 gdbsupport/tdesc.h.
6848 (target_desc_up): Likewise.
6849
f80c8ec4
TT
68502020-07-17 Tom Tromey <tromey@adacore.com>
6851
6852 * linux-nat.c (linux_nat_target::supports_non_stop)
6853 (linux_nat_target::always_non_stop_p): Use "true".
6854 (linux_nat_target::supports_disable_randomization): Use "true" and
6855 "false".
6856
d0ce17d8
CT
68572020-07-16 Caroline Tice <cmtice@google.com>
6858
6859 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6860 (RNGLIST_HEADER_SIZE64): New constant definition.
6861 (struct dwop_section_names): Add rnglists_dwo.
6862 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6863 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6864 (struct dwo_sections): Add rnglists field.
6865 (read_attribut_reprocess): Add tag parameter.
6866 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6867 (cu_debug_rnglists_section): New function (decl & definition).
6868 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6869 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6870 die whose range is being checked; get rnglist section from
6871 cu_debug_rnglists_section, to get from either objfile or dwo file as
6872 appropriate. Add cases for DW_RLE_base_addressx,
6873 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6874 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6875 test inside if-condition and updating complaint message.
6876 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6877 dwarf2_rnglists_process.
6878 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6879 dwarf2_ranges_process.
6880 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6881 need_ranges_base and update comment appropriately. Also pass die tag
6882 to dwarf2_ranges_read.
6883 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6884 need_ranges_base and update comment appropriately. Also pass die tag
6885 to dwarf2_ranges_process.
6886 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6887 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6888 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6889 need_ranges_base and update comment appropriately. Also pass die tag
6890 to read_attribute_reprocess and dwarf2_ranges_read.
6891 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6892 and update function comment appropriately.
6893 (read_loclist_index): Call read_loclists_rnglists_header instead of
6894 read_loclist_header.
6895 (read_rnglist_index): New function.
6896 (read_attribute_reprocess): Add tag parameter. Add code for
6897 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6898 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6899
3dcc261c
AB
69002020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6901
6902 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6903 being resolved.
6904
ccb9eba6
AB
69052020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6906
6907 * arch-utils.c (show_architecture): Update formatting of messages.
6908
cf88be68
SM
69092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * gdbtypes.h (struct type) <bounds>: Handle array and string
6912 types.
6913 * ada-lang.c (assign_aggregate): Use type::bounds on
6914 array/string type.
6915 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6916 * c-varobj.c (c_number_of_children): Likewise.
6917 (c_describe_child): Likewise.
6918 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6919 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6920 (f_type_print_base): Likewise.
6921 * f-valprint.c (f77_array_offset_tbl): Likewise.
6922 (f77_get_upperbound): Likewise.
6923 (f77_print_array_1): Likewise.
6924 * guile/scm-type.c (gdbscm_type_range): Likewise.
6925 * m2-typeprint.c (m2_array): Likewise.
6926 (m2_is_long_set_of_type): Likewise.
6927 * m2-valprint.c (get_long_set_bounds): Likewise.
6928 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6929 * python/py-type.c (typy_range): Likewise.
6930 * rust-lang.c (rust_internal_print_type): Likewise.
6931 * type-stack.c (type_stack::follow_types): Likewise.
6932 * valarith.c (value_subscripted_rvalue): Likewise.
6933 * valops.c (value_cast): Likewise.
6934
509971ae
SM
69352020-07-12 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6938 callers to use the equivalent accessor methods.
6939
107406b7
SM
69402020-07-12 Simon Marchi <simon.marchi@efficios.com>
6941
6942 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6943 (struct type) <bit_stride>: New method.
6944 (TYPE_BIT_STRIDE): Remove.
6945 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6946
bb789949
SM
69472020-07-12 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6950 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6951 callers to use the equivalent accessor methods instead.
6952
39498edb
SM
69532020-07-12 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6956 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6957 callers to use the equivalent accessor methods instead.
6958
3b606f38
SM
69592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6962 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6963 to use dynamic_prop::kind.
6964
064d9cb9
SM
69652020-07-12 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6968 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6969 to get the bound property's kind and check against
6970 PROP_UNDEFINED.
6971
5537ddd0
SM
69722020-07-12 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6975 all callers to use type::range_bounds followed by
6976 dynamic_prop::{low,high}.
6977
8c2e4e06
SM
69782020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6979
6980 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6981 const_val, set_const_val, baton, set_locexpr, set_loclist,
6982 set_addr_offset, variant_parts, set_variant_parts,
6983 original_type, set_original_type>: New methods.
6984 <kind>: Rename to...
6985 <m_kind>: ... this. Update all users to use the new methods
6986 instead.
6987 <data>: Rename to...
6988 <m_data>: ... this. Update all users to use the new methods
6989 instead.
6990
7c6f2712
SM
69912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * gdbtypes.c (get_discrete_bounds): Return failure if
6994 the range type's bounds are not both defined and constant
6995 values.
6996 (get_array_bounds): Update comment. Remove undefined bound check.
6997
599088e3
SM
69982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6999
7000 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7001 the type::bounds method directly.
7002
c4dfcb36
SM
70032020-07-12 Simon Marchi <simon.marchi@efficios.com>
7004
7005 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7006 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7007 are used to set the range type's bounds to use set_bounds.
7008
0a278aa7
PW
70092020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7010
7011 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7012
cce20f10
PA
70132020-07-10 Pedro Alves <pedro@palves.net>
7014
7015 * gdbthread.h (inferior_ref): Define.
7016 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7017 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7018 * thread.c
7019 (scoped_restore_current_thread::restore):
7020 Adjust to gdb::ref_ptr.
7021 (scoped_restore_current_thread::~scoped_restore_current_thread):
7022 Remove manual decref handling.
7023 (scoped_restore_current_thread::scoped_restore_current_thread):
7024 Adjust to use
7025 inferior_ref::new_reference/thread_info_ref::new_reference.
7026 Incref the thread before calling get_frame_id instead of after.
7027 Let TARGET_CLOSE_ERROR propagate.
7028
6d7aa592
PA
70292020-07-10 Pedro Alves <pedro@palves.net>
7030
7031 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7032 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7033 NOT_AVAILABLE_ERROR.
7034 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7035 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7036
b3e3a4c1
SM
70372020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7038 Pedro Alves <pedro@palves.net>
7039
7040 PR gdb/26199
7041 * infrun.c (threads_are_resumed_pending_p): Delete.
7042 (do_target_wait): Remove threads_are_executing and
7043 threads_are_resumed_pending_p checks from the inferior_matches
7044 lambda. Update comments.
7045
d6cc5d98
PA
70462020-07-10 Pedro Alves <pedro@palves.net>
7047
7048 PR gdb/26199
7049 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7050 executing threads.
7051
7d3badc6
PA
70522020-07-10 Pedro Alves <pedro@palves.net>
7053
7054 PR gdb/26199
7055 * infrun.c (handle_no_resumed): Handle multiple targets.
7056
42bd97a6
PA
70572020-07-10 Pedro Alves <pedro@palves.net>
7058
7059 PR gdb/26199
7060 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7061 target_is_async_p.
7062
43667cc6
PA
70632020-07-10 Pedro Alves <pedro@palves.net>
7064
7065 PR gdb/26199
7066 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7067 threads, not all threads.
7068
96118d11
PA
70692020-07-10 Pedro Alves <pedro@palves.net>
7070
7071 PR gdb/26199
7072 * remote.c (remote_target::open_1): Pass remote target pointer as
7073 data to create_async_event_handler.
7074 (remote_async_inferior_event_handler): Mark async event handler
7075 before returning if the remote target still has either pending
7076 events or unacknowledged notifications.
7077
54904d81
JB
70782020-07-10 John Baldwin <jhb@FreeBSD.org>
7079
7080 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7081 declaration.
7082 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7083 function.
7084
f37e5866
JB
70852020-07-09 John Baldwin <jhb@FreeBSD.org>
7086
7087 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7088 inferior_ptid.
7089
fc238d4a
JB
70902020-07-09 John Baldwin <jhb@FreeBSD.org>
7091
7092 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7093 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7094 AT_FREEBSD_PS_STRINGS.
7095
6e2469ff
HD
70962020-07-08 Hannes Domani <ssbssa@yahoo.de>
7097
7098 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7099 of debugfile path on Windows.
7100
d1076c41
JB
71012020-07-08 John Baldwin <jhb@FreeBSD.org>
7102
7103 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7104 argument to 'data'.
7105
15f3b077
TT
71062020-07-08 Tom Tromey <tromey@adacore.com>
7107
7108 * ada-lang.c (ada_exception_message_1): Use read_memory.
7109
9fc501fd
AB
71102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 PR python/22748
7113 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7114 special handling for inline frames.
7115 * findvar.c (value_of_register_lazy): Skip inline frames when
7116 creating lazy register values.
7117 * frame.c (frame_id_computed_p): Delete definition.
7118 * frame.h (frame_id_computed_p): Delete declaration.
7119
64cb3757
AB
71202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7121
7122 * NEWS: Mention additions to Python API.
7123 * python/py-arch.c (archpy_register_groups): New function.
7124 (arch_object_methods): Add 'register_groups' method.
7125 * python/py-registers.c (reggroup_iterator_object): New struct.
7126 (reggroup_object): New struct.
7127 (gdbpy_new_reggroup): New function.
7128 (gdbpy_reggroup_to_string): New function.
7129 (gdbpy_reggroup_name): New function.
7130 (gdbpy_reggroup_iter): New function.
7131 (gdbpy_reggroup_iter_next): New function.
7132 (gdbpy_new_reggroup_iterator): New function
7133 (gdbpy_initialize_registers): Register new types.
7134 (reggroup_iterator_object_type): Define new Python type.
7135 (gdbpy_reggroup_getset): New static global.
7136 (reggroup_object_type): Define new Python type.
7137 * python/python-internal.h
7138
0f767f94
AB
71392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7140
7141 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7142 * python/py-arch.c (archpy_registers): New function.
7143 (arch_object_methods): Add 'registers' method.
7144 * python/py-registers.c: New file.
7145 * python/python-internal.h
7146 (gdbpy_new_register_descriptor_iterator): Declare.
7147 (gdbpy_initialize_registers): Declare.
7148 * python/python.c (do_start_initialization): Call
7149 gdbpy_initialize_registers.
7150 * NEWS: Mention additions to the Python API.
7151
87dbc774
AB
71522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 * NEWS: Mention new Python API method.
7155 * python/py-unwind.c (pending_framepy_architecture): New function.
7156 (pending_frame_object_methods): Add architecture method.
7157
3bc98c0c
AB
71582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7159
7160 * gdbarch.c: Regenerate.
7161 * gdbarch.h: Regenerate.
7162 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7163 (gdbarch_data): Use internal_error for the case where
7164 deprecated_set_gdbarch_data was originally needed.
7165 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7166 and use passed in obstack.
7167 (libunwind_frame_set_descr): Should no longer get back NULL from
7168 gdbarch_data.
7169 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7170 type.
7171 * user-regs.c (user_regs_init): Update parameters, and use passed
7172 in obstack.
7173 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7174 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7175
d8cc8af6
TV
71762020-07-06 Tom de Vries <tdevries@suse.de>
7177
7178 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7179 End-Of-Sequence in lte_is_less_than.
7180 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7181 "gdb: Don't reorder line table entries too much when sorting".
7182
947f7597
TV
71832020-07-06 Tom de Vries <tdevries@suse.de>
7184
7185 PR tui/26205
7186 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7187
1e7c1b22
TV
71882020-07-05 Tom de Vries <tdevries@suse.de>
7189
7190 PR build/26187
7191 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7192 std::uncaught_exceptions instead of deprecated
7193 std::uncaught_exception.
7194
a36158ec
SM
71952020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7196
7197 * macroexp.h (macro_stringify): Return
7198 gdb::unique_xmalloc_ptr<char>.
7199 * macroexp.c (macro_stringify): Likewise.
7200 * macrotab.c (fixup_definition): Update.
7201
14d960c8
SM
72022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7203
7204 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7205 (lex_one_token): Update.
7206 * macroexp.c (struct macro_buffer) <release>: Return
7207 gdb::unique_xmalloc_ptr<char>.
7208 (macro_stringify): Update.
7209 (macro_expand): Update.
7210 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7211 * macroexp.h (macro_expand_next): Likewise.
7212
211d5b1c
SM
72132020-07-02 Simon Marchi <simon.marchi@efficios.com>
7214
7215 * macroexp.h (macro_lookup_ftype): Remove.
7216 (macro_expand, macro_expand_once, macro_expand_next): Remove
7217 lookup function parameters, add scope parameter.
7218 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7219 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7220 * macroscope.h (standard_macro_lookup): Change parameter type
7221 to macro_scope.
7222 * macroscope.c (standard_macro_lookup): Likewise.
7223 * c-exp.y (lex_one_token): Update.
7224 * macrocmd.c (macro_expand_command): Likewise.
7225 (macro_expand_once_command): Likewise.
7226
b1a35af2
SM
72272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7228
7229 * inf-loop.c (inferior_event_handler): Remove client_data param.
7230 * inf-loop.h (inferior_event_handler): Likewise.
7231 * infcmd.c (step_1): Adjust.
7232 * infrun.c (proceed): Adjust.
7233 (fetch_inferior_event): Remove client_data param.
7234 (infrun_async_inferior_event_handler): Adjust.
7235 * infrun.h (fetch_inferior_event): Remove `void *` param.
7236 * linux-nat.c (handle_target_event): Adjust.
7237 * record-btrace.c (record_btrace_handle_async_inferior_event):
7238 Adjust.
7239 * record-full.c (record_full_async_inferior_event_handler):
7240 Adjust.
7241 * remote.c (remote_async_inferior_event_handler): Adjust.
7242
1cdf9e33
TT
72432020-07-01 Tom Tromey <tom@tromey.com>
7244
7245 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7246 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7247
32c1e210
TT
72482020-07-01 Tom Tromey <tom@tromey.com>
7249
7250 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7251 tui_gen_win_info.
7252 (tui_win_info::make_window): Merge with
7253 tui_gen_win_info::make_window.
7254 (tui_win_info::make_visible): Move from tui_gen_win_info.
7255 * tui/tui-win.c (tui_win_info::max_width): Move from
7256 tui_gen_win_info.
7257 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7258 type.
7259 <window_factory>: Likewise.
7260 * tui/tui-layout.c (tui_win_info::resize): Move from
7261 tui_gen_win_info.
7262 (make_standard_window): Change return type.
7263 (get_locator_window, tui_get_window_by_name): Likewise.
7264 (tui_layout_window::apply): Remove a cast.
7265 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7266 (struct tui_win_info): Merge with tui_gen_win_info.
7267 (struct tui_gen_win_info): Remove.
7268
a30cb6da
TT
72692020-07-01 Tom Tromey <tom@tromey.com>
7270
7271 * tui/tui-stack.h (struct tui_locator_window): Derive from
7272 tui_win_info.
7273 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7274 <can_box>: New method.
7275
1eb2161f
TT
72762020-07-01 Tom Tromey <tom@tromey.com>
7277
7278 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7279
7134f2eb
TT
72802020-07-01 Tom Tromey <tom@tromey.com>
7281
7282 * tui/tui-regs.c (tui_data_window::display_registers_from)
7283 (tui_data_window::display_registers_from)
7284 (tui_data_window::first_data_item_displayed)
7285 (tui_data_window::delete_data_content_windows): Update.
7286 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7287 Remove.
7288 (tui_data_window::check_register_values): Update.
7289 (tui_data_item_window::rerender): Add parameters. Update.
7290 (tui_data_item_window::refresh_window): Remove.
7291 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7292 virtual.
7293 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7294 tui_gen_win_info.
7295 <refresh_window, max_height, min_height>: Remove.
7296 <rerender>: Add parameters.
7297 <x, y, visible>: New members.
7298 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7299 <m_item_width>: New member.
7300
22b7b041
TT
73012020-07-01 Tom Tromey <tom@tromey.com>
7302
7303 * tui/tui-regs.c (tui_data_window::show_register_group)
7304 (tui_data_window::check_register_values): Update.
7305 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7306 from item_no.
7307
c9753adb
TT
73082020-07-01 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7311 useless "if".
7312
9ab26b4a
TT
73132020-07-01 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7316 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7317
e555083f
TT
73182020-07-01 Tom Tromey <tom@tromey.com>
7319
7320 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7321 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7322 (struct tui_line_or_address): Move from tui-data.h.
7323 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7324 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7325 (tui_cmd_window, tui_source_window_base, tui_source_window)
7326 (tui_disasm_window): Don't declare.
7327 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7328 to tui-winsource.h.
7329 (SINGLE_KEY): Move to tui-stack.c.
7330
7a02bab7
TT
73312020-07-01 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7334 std::string.
7335 * tui/tui-regs.c (class tab_expansion_file): New.
7336 (tab_expansion_file::write): New method.
7337 (tui_register_format): Change return type. Use
7338 tab_expansion_file.
7339 (tui_get_register, tui_data_window::display_registers_from)
7340 (tui_data_item_window::rerender): Update.
7341 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7342 * tui/tui-io.c (tui_expand_tabs): Remove.
7343
ea68593b
TT
73442020-07-01 Tom Tromey <tom@tromey.com>
7345
7346 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7347
a8caed5d
FS
73482020-07-01 Fangrui Song <maskray@google.com>
7349
7350 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7351
9cdf9820
AKS
73522020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7353
7354 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7355 forms for DW_AT_associated and DW_AT_allocated attributes,
7356 which is already checked in function attr_to_dynamic_prop.
7357
a1520ad8
TT
73582020-06-30 Tom Tromey <tromey@adacore.com>
7359
7360 * dwarf2/read.c (quirk_rust_enum): Correctly call
7361 alloc_rust_variant for default-less enum.
7362
5ac58899
TT
73632020-06-30 Tom Tromey <tromey@adacore.com>
7364
7365 PR build/26183:
7366 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7367 gdb::to_string.
7368
19b187a9
SM
73692020-06-29 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7372 * gdbarch.h: Re-generate.
7373
cd4c4c07
TT
73742020-06-28 Tom Tromey <tom@tromey.com>
7375
7376 * command.h (cmd_types): Remove.
7377 (cmd_type): Don't declare.
7378 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7379 typedef.
7380 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7381 * cli/cli-decode.c (cmd_type): Remove.
7382
05779d57
PA
73832020-06-27 Pedro Alves <palves@redhat.com>
7384
7385 * fork-child.c (prefork_hook): Adjust.
7386 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7387 Delete.
7388 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7389 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7390 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7391 Remove declarations.
7392 (struct inferior) <set_tty, tty>: New methods.
7393 (struct inferior) <terminal>: Rename to ...
7394 (struct inferior) <m_terminal>: ... this and make private.
7395 * main.c (captured_main_1): Adjust.
7396 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7397 (mi_cmd_inferior_tty_show): Adjust.
7398 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7399 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7400
1776e3e5
NA
74012020-06-26 Nick Alcock <nick.alcock@oracle.com>
7402
7403 * configure.ac: Add --enable-libctf: handle --disable-static
7404 properly.
7405 * acinclude.m4: sinclude ../config/enable.m4.
7406 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7407 (LIBCTF): Substitute in.
7408 (CTF_DEPS): New, likewise.
7409 (CLIBS): libctf needs symbols from libbfd: move earlier.
7410 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7411 flags.
7412 * ctfread.c: Surround in ENABLE_LIBCTF.
7413 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7414 * configure: Regenerate.
7415 * config.in: Likewise.
7416
58373b80
SM
74172020-06-25 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7420
277474ee
SM
74212020-06-25 Simon Marchi <simon.marchi@efficios.com>
7422
7423 * inferior.h (struct inferior) <terminal>: Change type to
7424 gdb::unique_xmalloc_ptr<char>.
7425 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7426 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7427 field, adjust to unique pointer.
7428 (get_inferior_io_terminal): Adjust to unique pointer.
7429
6d74da72
AB
74302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7433 registers, not just the known core set of registers.
7434
2e52d038
AB
74352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7436
7437 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7438 fflags, frm, and fcsr registers.
7439 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7440 restore groups.
7441 (riscv_tdesc_unknown_reg): New function.
7442 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7443 tdesc_use_registers.
7444 * riscv-tdep.h (struct gdbarch_tdep): Add
7445 unknown_csrs_first_regnum, unknown_csrs_count,
7446 duplicate_fflags_regnum, duplicate_frm_regnum, and
7447 duplicate_fcsr_regnum fields.
7448
be64fd07
AB
74492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7450
7451 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7452 callback, use the callback (when not null) to help number unknown
7453 registers.
7454 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7455 (tdesc_use_registers): Add extra parameter to declaration.
7456
3b9fce96
AB
74572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7458
7459 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7460 in the file.
7461 (class riscv_pending_register_alias): Likewise.
7462 (riscv_register_feature::register_info): Change 'required_p' field
7463 to 'required', and change its type. Add 'check' member function.
7464 (riscv_register_feature::register_info::check): Define new member
7465 function.
7466 (riscv_xreg_feature): Change initialisation of 'required' field.
7467 (riscv_freg_feature): Likewise.
7468 (riscv_virtual_feature): Likewise.
7469 (riscv_csr_feature): Likewise.
7470 (riscv_check_tdesc_feature): Take extra parameter, the csr
7471 tdesc_feature, rewrite the function to use the new
7472 riscv_register_feature::register_info::check function.
7473 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7474
865bad26
AB
74752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7476
7477 * features/Makefile: Remove all references to the deleted files
7478 below.
7479 * features/riscv/32bit-csr.c: Deleted.
7480 * features/riscv/32bit-csr.xml: Deleted.
7481 * features/riscv/64bit-csr.c: Deleted.
7482 * features/riscv/64bit-csr.xml: Deleted.
7483 * features/riscv/rebuild-csr-xml.sh: Deleted.
7484
ed69cbc8
AB
74852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7486
7487 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7488 whitespace error for declaration of names member variable.
7489 (struct riscv_register_feature): Add new prefer_first_name member
7490 variable, and fix whitespace error in declaration of registers.
7491 (riscv_xreg_feature): Initialize prefer_first_name field.
7492 (riscv_freg_feature): Likewise.
7493 (riscv_virtual_feature): Likewise.
7494 (riscv_csr_feature): Likewise.
7495 (riscv_register_name): Expand on comments. Remove register name
7496 modifications for CSR and virtual registers.
7497
4445e8f5
AB
74982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7499
7500 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7501 errors.
7502
767a879e
AB
75032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7504
7505 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7506 riscv-opc.h.
7507 (class riscv_pending_register_alias): New class.
7508 (riscv_check_tdesc_feature): Take vector of pending aliases and
7509 populate it as appropriate.
7510 (riscv_setup_register_aliases): Delete.
7511 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7512 to riscv_check_tdesc_feature in all cases. Use the vector to
7513 create the register aliases.
7514
bb6e55f3
RO
75152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7516
7517 * sol2-tdep.c (sol2_static_transform_name): Remove.
7518 (sol2_init_abi): Don't register it.
7519 * gdbarch.sh (static_transform_name): Remove.
7520 * gdbarch.c, gdbarch.h: Regenerate.
7521
7522 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7523 gdbarch_static_transform_name.
7524 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7525 * stabsread.c (define_symbol) <'X'>: Remove.
7526 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7527 handling.
7528 <'V'>: Likewise.
7529 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7530 <'S'>: Remove call to gdbarch_static_transform_name.
7531
c6d36836
RO
75322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7533
7534 * procfs.c (procfs_pre_trace): New function.
7535 (procfs_target::create_inferior): Pass it to fork_inferior.
7536
a7e6196b
RO
75372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7538
7539 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7540 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7541 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7542 sol2-tdep.o, sparc-sol2-tdep.o.
7543 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7544 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7545 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7546 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7547
d412e696
RO
75482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7549
7550 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7551 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7552 Call sol2_init_abi.
7553 Remove calls to set_gdbarch_skip_solib_resolver,
7554 set_gdbarch_core_pid_to_str.
7555 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7556 (i386_sol2_static_transform_name): Remove.
7557 (i386_sol2_init_abi): Call sol2_init_abi.
7558 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7559 set_gdbarch_static_transform_name,
7560 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7561 Use sol2_sigtramp_p.
7562 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7563 (sol2_sigtramp_p): New function.
7564 (sol2_static_transform_name): New function.
7565 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7566 (sol2_init_abi): New function.
7567 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7568 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7569 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7570 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7571 (sparc_sol2_static_transform_name): Remove.
7572 (sparc32_sol2_init_abi): Call sol2_init_abi.
7573 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7574 set_gdbarch_static_transform_name,
7575 set_gdbarch_skip_solib_resolver,
7576 set_gdbarch_core_pid_to_str.
7577 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7578 (sparc_sol2_static_transform_name): Remove
7579 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7580 call sol2_sigtramp_p.
7581 (sparc64_sol2_init_abi): Call sol2_init_abi.
7582 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7583 set_gdbarch_static_transform_name,
7584 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7585
a8654e7d
PW
75862020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7587
7588 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7589 * exec.c (validate_exec_file): If from_tty, set both
7590 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7591 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7592 and from_tty, unconditionally ask a confirmation.
7593
caa7fd04
AB
75942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * target-descriptions.c (tdesc_architecture_name): Protect against
7597 NULL pointer dereference.
7598 (maint_print_xml_tdesc_cmd): New function.
7599 (_initialize_target_descriptions): Register new 'maint print
7600 xml-tdesc' command and give it the filename completer.
7601 * NEWS: Mention new 'maint print xml-tdesc' command.
7602
fbf42f4e
AB
76032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7604
7605 * target-descriptions.c (class tdesc_compatible_info): New class.
7606 (struct target_desc): Change type of compatible vector.
7607 (tdesc_compatible_p): Update for change in type of
7608 target_desc::compatible.
7609 (tdesc_compatible_info_list): New function.
7610 (tdesc_compatible_info_arch_name): New function.
7611 (tdesc_add_compatible): Update for change in type of
7612 target_desc::compatible.
7613 (print_c_tdesc::visit_pre): Likewise.
7614
20821f4e
AB
76152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7618 whitespace to underscore.
7619 (maint_print_c_tdesc_cmd): Use fake filename for target
7620 descriptions that came from the target.
7621 (_initialize_target_descriptions): Add filename command completion
7622 for 'maint print c-tdesc'.
7623
1fb5ee62
SM
76242020-06-23 Simon Marchi <simon.marchi@efficios.com>
7625
7626 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7627 lines.
7628
fc3ecb3e
SM
76292020-06-23 Simon Marchi <simon.marchi@efficios.com>
7630
7631 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7632 lines.
7633 (dwarf2_find_location_expression): Likewise.
7634 (call_site_parameter_matches): Likewise.
7635 (dwarf2_compile_expr_to_ax): Likewise.
7636 (disassemble_dwarf_expression): Likewise.
7637 (loclist_describe_location): Likewise.
7638
236ef034
PA
76392020-06-23 Pedro Alves <palves@redhat.com>
7640
7641 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7642 progspace-and-thread.h. Include scoped-mock-context.h instead.
7643 (register_to_value_test): Use scoped_mock_context.
7644 * regcache.c: Include "scoped-mock-context.h".
7645 (cooked_read_test): Don't error out if a target is already pushed.
7646 Use scoped_mock_context. Adjust.
7647 * scoped-mock-context.h: New file.
7648
39e7ecca
AB
76492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7650
7651 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7652 initializer.
7653 (ada_language::is_string_type_p): New member function.
7654 * c-lang.c (c_language_data): Delete la_is_string_type_p
7655 initializer.
7656 (cplus_language_data): Likewise.
7657 (asm_language_data): Likewise.
7658 (minimal_language_data): Likewise.
7659 * d-lang.c (d_language_data): Likewise.
7660 * f-lang.c (f_is_string_type_p): Delete function, implementation
7661 moved to f_language::is_string_type_p.
7662 (f_language_data): Delete la_is_string_type_p initializer.
7663 (f_language::is_string_type_p): New member function,
7664 implementation from f_is_string_type_p.
7665 * go-lang.c (go_is_string_type_p): Delete function, implementation
7666 moved to go_language::is_string_type_p.
7667 (go_language_data): Delete la_is_string_type_p initializer.
7668 (go_language::is_string_type_p): New member function,
7669 implementation from go_is_string_type_p.
7670 * language.c (language_defn::is_string_type_p): Define new member
7671 function.
7672 (default_is_string_type_p): Make static, add comment copied from
7673 header file.
7674 (unknown_language_data): Delete la_is_string_type_p initializer.
7675 (unknown_language::is_string_type_p): New member function.
7676 (auto_language_data): Delete la_is_string_type_p initializer.
7677 (auto_language::is_string_type_p): New member function.
7678 * language.h (language_data): Delete la_is_string_type_p field.
7679 (language_defn::is_string_type_p): Declare new function.
7680 (default_is_string_type_p): Delete desclaration, move comment to
7681 definition.
7682 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7683 moved to m2_language::is_string_type_p.
7684 (m2_language_data): Delete la_is_string_type_p initializer.
7685 (m2_language::is_string_type_p): New member function,
7686 implementation from m2_is_string_type_p.
7687 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7688 initializer.
7689 * opencl-lang.c (opencl_language_data): Likewise.
7690 * p-lang.c (pascal_is_string_type_p): Delete function,
7691 implementation moved to pascal_language::is_string_type_p.
7692 (pascal_language_data): Delete la_is_string_type_p initializer.
7693 (pascal_language::is_string_type_p): New member function,
7694 implementation from pascal_is_string_type_p.
7695 * rust-lang.c (rust_is_string_type_p): Delete function,
7696 implementation moved to rust_language::is_string_type_p.
7697 (rust_language_data): Delete la_is_string_type_p initializer.
7698 (rust_language::is_string_type_p): New member function,
7699 implementation from rust_is_string_type_p.
7700 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7701 is_string_type_p.
7702
4ffc13fb
AB
77032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7704
7705 * ada-lang.c (ada_language_data): Delete la_print_typedef
7706 initializer.
7707 (ada_language::print_typedef): New member function.
7708 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7709 (cplus_language_data): Likewise.
7710 (asm_language_data): Likewise.
7711 (minimal_language_data): Likewise.
7712 * d-lang.c (d_language_data): Likewise.
7713 * f-lang.c (f_language_data): Likewise.
7714 (f_language::print_typedef): New member function.
7715 * go-lang.c (go_language_data): Delete la_print_typedef
7716 initializer.
7717 * language.c (language_defn::print_typedef): Define member
7718 function.
7719 (unknown_language_data): Delete la_print_typedef initializer.
7720 (unknown_language::print_typedef): New member function.
7721 (auto_language_data): Delete la_print_typedef initializer.
7722 (auto_language::print_typedef): New member function.
7723 * language.h (language_data): Delete la_print_typedef field.
7724 (language_defn::print_typedef): Declare new member function.
7725 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7726 (default_print_typedef): Delete declaration.
7727 * m2-lang.c (m2_language_data): Delete la_print_typedef
7728 initializer.
7729 (m2_language::print_typedef): New member function.
7730 * objc-lang.c (objc_language_data): Delete la_print_typedef
7731 initializer.
7732 * opencl-lang.c (opencl_language_data): Likewise.
7733 * p-lang.c (pascal_language_data): Likewise.
7734 (pascal_language::print_typedef): New member function.
7735 * rust-lang.c (rust_print_typedef): Delete function,
7736 implementation moved to rust_language::print_typedef.
7737 (rust_language): Delete la_print_typedef initializer.
7738 (rust_language::print_typedef): New member function,
7739 implementation from rust_print_typedef.
7740 * typeprint.c (default_print_typedef): Delete.
7741
d711ee67
AB
77422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7745 (ada_language::printstr): New member function.
7746 * c-lang.c (c_language_data): Delete la_printstr initializer.
7747 (cplus_language_data): Likewise.
7748 (asm_language_data): Likewise.
7749 (minimal_language_data): Likewise.
7750 * d-lang.c (d_language_data): Likewise.
7751 * f-lang.c (f_printstr): Rename to f_language::printstr.
7752 (f_language_data): Delete la_printstr initializer.
7753 (f_language::printstr): New member function, implementation from
7754 f_printstr.
7755 * go-lang.c (go_language_data): Delete la_printstr initializer.
7756 * language.c (language_defn::printstr): Define new member
7757 function.
7758 (unk_lang_printstr): Delete.
7759 (unknown_language_data): Delete la_printstr initializer.
7760 (unknown_language::printstr): New member function.
7761 (auto_language_data): Delete la_printstr initializer.
7762 (auto_language::printstr): New member function.
7763 * language.h (language_data): Delete la_printstr field.
7764 (language_defn::printstr): Declare new member function.
7765 (LA_PRINT_STRING): Update call to printstr.
7766 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7767 (m2_language_data): Delete la_printstr initializer.
7768 (m2_language::printstr): New member function, implementation from
7769 m2_printstr.
7770 * objc-lang.c (objc_language_data): Delete la_printstr
7771 initializer.
7772 * opencl-lang.c (opencl_language_data): Likewise.
7773 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7774 (pascal_language_data): Delete la_printstr initializer.
7775 (pascal_language::printstr): New member function, implementation
7776 from pascal_printstr.
7777 * p-lang.h (pascal_printstr): Delete declaration.
7778 * rust-lang.c (rust_printstr): Update header comment.
7779 (rust_language_data): Delete la_printstr initializer.
7780 (rust_language::printstr): New member function.
7781
52b50f2c
AB
77822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7783
7784 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7785 (ada_language::printchar): New member function.
7786 * c-lang.c (c_language_data): Delete la_printchar initializer.
7787 (cplus_language_data): Likewise.
7788 (asm_language_data): Likewise.
7789 (minimal_language_data): Likewise.
7790 * d-lang.c (d_language_data): Likewise.
7791 * f-lang.c (f_printchar): Rename to f_language::printchar.
7792 (f_language_data): Delete la_printchar initializer.
7793 (f_language::printchar): New member function, implementation from
7794 f_printchar.
7795 * go-lang.c (go_language_data): Delete la_printchar initializer.
7796 * language.c (unk_lang_printchar): Delete.
7797 (language_defn::printchar): Define new member function.
7798 (unknown_language_data): Delete la_printchar initializer.
7799 (unknown_language::printchar): New member function.
7800 (auto_language_data): Delete la_printchar initializer.
7801 (auto_language::printchar): New member function.
7802 * language.h (language_data): Delete la_printchar field.
7803 (language_defn::printchar): Declare new member function.
7804 (LA_PRINT_CHAR): Update call to printchar.
7805 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7806 (m2_language::printchar): New member function.
7807 * objc-lang.c (objc_language_data): Delete la_printchar
7808 initializer.
7809 * opencl-lang.c (opencl_language_data): Likewise.
7810 * p-lang.c (pascal_language_data): Delete la_printchar
7811 initializer.
7812 (pascal_language::printchar): New member function.
7813 * rust-lang.c (rust_printchar): Rename to
7814 rust_language::printchar.
7815 (rust_language_data): Delete la_printchar initializer.
7816 (rust_language::printchar): New member function, implementation
7817 from rust_printchar.
7818
ec8cec5b
AB
78192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7822 (ada_language_data): Delete la_emitchar initializer.
7823 (ada_language::emitchar): New member function, implementation from
7824 emit_char.
7825 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7826 (cplus_language_data): Likewise.
7827 (asm_language_data): Likewise.
7828 (minimal_language_data): Likewise.
7829 * d-lang.c (d_language_data): Likewise.
7830 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7831 (f_language_data): Delete la_emitchar initializer.
7832 (f_language::emitchar): New member function, implementation from
7833 f_emit_char.
7834 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7835 * language.c (unk_lang_emit_char): Delete.
7836 (language_defn::emitchar): New member function definition.
7837 (unknown_language_data): Delete la_emitchar initializer.
7838 (unknown_language::emitchar): New member function.
7839 (auto_language_data): Delete la_emitchar initializer.
7840 (auto_language::emitchar): New member function.
7841 * language.h (language_data): Delete la_emitchar field.
7842 (language_defn::emitchar): New member field declaration.
7843 (LA_EMIT_CHAR): Update call to emitchar.
7844 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7845 (m2_language_data): Delete la_emitchar initializer.
7846 (m2_language::emitchar): New member function, implementation from
7847 m2_emit_char.
7848 * objc-lang.c (objc_language_data): Delete la_emitchar
7849 initializer.
7850 * opencl-lang.c (opencl_language_data): Likewise.
7851 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7852 (pascal_language_data): Delete la_emitchar initializer.
7853 (pascal_language::emitchar): New member function, implementation
7854 from pascal_emit_char.
7855 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7856 (rust_language_data): Delete la_emitchar initializer.
7857 (rust_language::emitchar): New member function, implementation
7858 from rust_emitchar.
7859
1bf9c363
AB
78602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7861
7862 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7863 (ada_language_data): Delete la_post_parser initializer.
7864 (ada_language::post_parser): New member function.
7865 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7866 (cplus_language_data): Likewise.
7867 (asm_language_data): Likewise.
7868 (minimal_language_data): Likewise.
7869 * d-lang.c (d_language_data): Likewise.
7870 * f-lang.c (f_language_data): Likewise.
7871 * go-lang.c (go_language_data): Likewise.
7872 * language.c (unknown_language_data): Likewise.
7873 (auto_language_data): Likewise.
7874 * language.h (language_data): Delete la_post_parser field.
7875 (language_defn::post_parser): New member function.
7876 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7877 * objc-lang.c (objc_language_data): Likewise.
7878 * opencl-lang.c (opencl_language_data): Likewise.
7879 * p-lang.c (pascal_language_data): Likewise.
7880 * parse.c (parse_exp_in_context): Update call to post_parser.
7881 (null_post_parser): Delete definition.
7882 * parser-defs.h (null_post_parser): Delete declaration.
7883 * rust-lang.c (rust_language_data): Delete la_post_parser
7884 initializer.
7885
87afa652
AB
78862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * ada-lang.c (parse): Rename to ada_language::parser.
7889 (ada_language_data): Delete la_parser initializer.
7890 (ada_language::parser): New member function, implementation from
7891 parse.
7892 * c-lang.c (c_language_data): Delete la_parser initializer.
7893 (cplus_language_data): Likewise.
7894 (asm_language_data): Likewise.
7895 (minimal_language_data): Likewise.
7896 * d-lang.c (d_language_data): Likewise.
7897 (d_language::parser): New member function.
7898 * f-lang.c (f_language_data): Delete la_parser initializer.
7899 (f_language::parser): New member function.
7900 * go-lang.c (go_language_data): Delete la_parser initializer.
7901 (go_language::parser): New member function.
7902 * language.c (unk_lang_parser): Delete.
7903 (language_defn::parser): Define new member function.
7904 (unknown_language_data): Delete la_parser initializer.
7905 (unknown_language::parser): New member function.
7906 (auto_language_data): Delete la_parser initializer.
7907 (auto_language::parser): New member function.
7908 * language.h (language_data): Delete la_parser field.
7909 (language_defn::parser): Declare new member function.
7910 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7911 (m2_language::parser): New member function.
7912 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7913 * opencl-lang.c (opencl_language_data): Likewise.
7914 * p-lang.c (pascal_language_data): Likewise.
7915 (pascal_language::parser): New member function.
7916 * parse.c (parse_exp_in_context): Update call to parser.
7917 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7918 (rust_language::parser): New member function.
7919
37825800
AB
79202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * top.c (print_gdb_configuration): Print --with-python-libdir
7923 configuration value.
7924
5b860c93
PW
79252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7926
7927 * NEWS: Mention change to the alias command.
7928
cf00cd6f
PW
79292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7930
7931 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7932 (alias_command_completer)
7933 (make_alias_options_def_group): New functions.
7934 (alias_opts, alias_option_defs): New struct and array.
7935 (alias_usage_error): Update usage.
7936 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7937 Use option framework.
7938 (_initialize_cli_cmds): Update alias command help.
7939 Update aliases command help.
7940 (show_user):
7941 Add NULL for new default_args lookup_cmd argument.
7942 (valid_command_p): Rename to validate_aliased_command.
7943 Add NULL for new default_args lookup_cmd argument. Verify that the
7944 aliased_command has no default args.
7945 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7946 (lookup_cmd_1, lookup_cmd): New argument default_args.
7947 (add_alias_cmd):
7948 Add NULL for new default_args lookup_cmd argument.
7949 (print_help_for_command): Show default args under the layout
7950 alias some_alias = some_aliased_cmd some_alias_default_arg.
7951 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7952 xfree default_args in destructor.
7953 * cli/cli-script.c (process_next_line, do_define_command):
7954 Add NULL for new default_args lookup_cmd argument.
7955 * command.h: Declare new default_args argument in lookup_cmd
7956 and lookup_cmd_1.
7957 * completer.c (complete_line_internal_1):
7958 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7959 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7960 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7961 Likewise.
7962 * infcmd.c (_initialize_infcmd): Likewise.
7963 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7964 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7965 * python/py-param.c (add_setshow_generic): Likewise.
7966 * remote.c (_initialize_remote): Likewise.
7967 * top.c (execute_command): Prepend default_args if command has some.
7968 (set_verbose):
7969 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7970 * tracepoint.c (validate_actionline, encode_actions_1):
7971 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7972
bd920864
TBA
79732020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7974
7975 * jit.c (jit_read_descriptor): Use bool as the return type.
7976 (jit_breakpoint_re_set_internal): Use bool as the return type.
7977 Invert the return value logic; return true if the jit breakpoint
7978 has been successfully initialized.
7979 (jit_inferior_init): Update the call to
7980 jit_breakpoint_re_set_internal.
7981
f8098322
PA
79822020-06-22 Pedro Alves <palves@redhat.com>
7983
7984 PR gdb/25939
7985 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7986 Use the current inferior instead. Don't return
7987 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7988 wait again.
7989 * sol-thread.c (sol_thread_target::wait): Don't reference
7990 inferior_ptid.
7991 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7992 (sol_update_thread_list_callback): Use the current inferior's pid
7993 instead of inferior_ptid.
7994
196535a6
RO
79952020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7996
7997 * procfs.c: Cleanup many comments.
7998
7999 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8000 (AFTER_WATCHFLAG): Replace by value.
8001
8002 (MAIN_PROC_NAME_FORMAT): Inline ...
8003 (create_procinfo): ... here.
8004
8005 (procfs_debug_inferior): Remove SYS_exec handling.
8006 (syscall_is_exec): Likewise.
8007 (procfs_set_exec_trap): Likewise.
8008
8009 (syscall_is_lwp_exit): Inline in callers.
8010 (syscall_is_exit): Likewise.
8011 (syscall_is_exec): Likewise.
8012 (syscall_is_lwp_create): Likewise.
8013
8014 (invalidate_cache): Remove #if 0 code.
8015
8016 (make_signal_thread_runnable): Remove.
8017 (procfs_target::resume): Remove #if 0 code.
8018
cf6f3e86
RO
80192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8020
8021 PR gdb/25939
8022 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8023 call ...
8024 (procfs_target::create_inferior): ... here.
8025
48e9cc84
PW
80262020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8027
8028 * exec.c (validate_exec_file): Ensure the build-id is up to
8029 date by calling reopen_exec_file (that checks file timestamp
8030 to decide to re-read the file).
8031
3922b302
PA
80322020-06-18 Pedro Alves <palves@redhat.com>
8033
8034 PR gdb/25412
8035 * gdbthread.h (delete_thread, delete_thread_silent)
8036 (find_thread_ptid): Update comments.
8037 * thread.c (current_thread_): New global.
8038 (is_current_thread): Move higher, and reimplement.
8039 (inferior_thread): Reimplement.
8040 (set_thread_exited): Use bool. Add assertions.
8041 (add_thread_silent): Simplify thread-reuse handling by always
8042 calling delete_thread.
8043 (delete_thread): Remove intro comment.
8044 (find_thread_ptid): Skip exited threads.
8045 (switch_to_thread_no_regs): Write to current_thread_.
8046 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8047 INFERIOR_PTID. Clear current_thread_.
8048
6dbdab44
PA
80492020-06-18 Pedro Alves <palves@redhat.com>
8050
8051 * aix-thread.c (pd_update): Use switch_to_thread.
8052
2da4b788
PA
80532020-06-18 Pedro Alves <palves@redhat.com>
8054
8055 * ravenscar-thread.c (ravenscar_thread_target): Update.
8056 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8057 (ravenscar_thread_target::add_active_thread): ... this. Don't
8058 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8059 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8060
50838d1b
PA
80612020-06-18 Pedro Alves <palves@redhat.com>
8062
8063 * nat/windows-nat.c (current_windows_thread): Remove.
8064 * nat/windows-nat.h (current_windows_thread): Remove.
8065 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8066 Adjust.
8067 (display_selectors): Adjust to fetch the current
8068 windows_thread_info based on inferior_ptid.
8069 (fake_create_process): No longer write to current_windows_thread.
8070 (windows_nat_target::get_windows_debug_event):
8071 Don't set inferior_ptid or current_windows_thread.
8072 (windows_nat_target::wait): Adjust to not rely on
8073 current_windows_thread.
8074 (do_initial_windows_stuff): Now a method of windows_nat_target.
8075 Switch to the last_ptid thread.
8076 (windows_nat_target::attach): Adjust.
8077 (windows_nat_target::detach): Use switch_to_no_thread instead of
8078 writing to inferior_ptid directly.
8079 (windows_nat_target::create_inferior): Adjust.
8080
31ce04e9
PA
80812020-06-18 Pedro Alves <palves@redhat.com>
8082
8083 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8084
1ee1a363
PA
80852020-06-18 Pedro Alves <palves@redhat.com>
8086
8087 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8088 after creating it, instead of writing to inferior_ptid. Don't
8089 write to inferior_ptid.
8090
6d350754
PA
80912020-06-18 Pedro Alves <palves@redhat.com>
8092
8093 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8094
5d971d48
PA
80952020-06-18 Pedro Alves <palves@redhat.com>
8096
8097 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8098 it, instead of writing to inferior_ptid.
8099
86e57d1b
PA
81002020-06-18 Pedro Alves <palves@redhat.com>
8101
8102 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8103 to inferior_ptid.
8104
f2e1c129
PA
81052020-06-18 Pedro Alves <palves@redhat.com>
8106
8107 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8108 instead of writing to inferior_ptid directly.
8109
60db1b85
PA
81102020-06-18 Pedro Alves <palves@redhat.com>
8111
8112 * corelow.c (core_target::close): Use switch_to_no_thread instead
8113 of writing to inferior_ptid directly.
8114 (add_to_thread_list, core_target_open): Use switch_to_thread
8115 instead of writing to inferior_ptid directly.
8116
fe7d6a8d
PA
81172020-06-18 Pedro Alves <palves@redhat.com>
8118
8119 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8120 inferior_ptid.
8121 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8122 inferior_ptid.
8123 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8124 inferior_ptid directly.
8125 (darwin_nat_target::init_thread_list): Switch to thread, instead
8126 of writing to inferior_ptid.
8127 (darwin_nat_target::attach): Don't write to inferior_ptid.
8128 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8129
975f8708
PA
81302020-06-18 Pedro Alves <palves@redhat.com>
8131
8132 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8133 thread.
8134 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8135 Instead use switch_to_thread.
8136 (gnu_nat_target::detach): Use switch_to_no_thread
8137 instead of writing to inferior_ptid directly. Used passed-in
8138 inferior instead of looking up the inferior by pid.
8139
1a204730
PA
81402020-06-18 Pedro Alves <palves@redhat.com>
8141
8142 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8143 inferior_ptid.
8144
ebe84f23
PA
81452020-06-18 Pedro Alves <palves@redhat.com>
8146
8147 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8148 inferior_ptid.
8149 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8150 thread.
8151 (nto_procfs_target::detach): Avoid referencing
8152 inferior_ptid. Use switch_to_no_thread instead of writing to
8153 inferior_ptid directly.
8154 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8155 instead of writing to inferior_ptid directly.
8156 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8157 to thread.
8158
191f02e5
PA
81592020-06-18 Pedro Alves <palves@redhat.com>
8160
8161 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8162 after creating it, instead of writing to inferior_ptid.
8163 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8164 to inferior_ptid directly.
8165 (gdbsim_target::wait): Don't write to inferior_ptid.
8166
0ac55310
PA
81672020-06-18 Pedro Alves <palves@redhat.com>
8168
8169 * remote.c (remote_target::remote_notice_new_inferior): Use
8170 switch_to_thread instead of writing to inferior_ptid directly.
8171 (remote_target::add_current_inferior_and_thread): Use
8172 switch_to_no_thread instead of writing to inferior_ptid directly.
8173 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8174 and switch_to_thread instead of using set_current_inferior or
8175 writing to inferior_ptid directly.
8176
5233f39b
PA
81772020-06-18 Pedro Alves <palves@redhat.com>
8178
8179 * tracectf.c (ctf_target_open): Switch to added thread instead of
8180 writing to inferior_ptid directly.
8181 (ctf_target::close): Use switch_to_no_thread instead of writing to
8182 inferior_ptid directly.
8183
087e161b
PA
81842020-06-18 Pedro Alves <palves@redhat.com>
8185
8186 * tracefile-tfile.c (tfile_target_open): Don't write to
8187 inferior_ptid directly, instead switch to added thread.
8188 (tfile_target::close): Use switch_to_no_thread instead of writing
8189 to inferior_ptid directly.
8190
7fb43e53
PA
81912020-06-18 Pedro Alves <palves@redhat.com>
8192
8193 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8194 (procfs_target::detach): Use switch_to_no_thread
8195 instead of writing to inferior_ptid directly.
8196 (do_attach): Change return type to void. Switch to the added
8197 thread.
8198 (procfs_target::create_inferior): Switch to the added thread.
8199 (procfs_do_thread_registers): Don't write to inferior_ptid.
8200
18493a00
PA
82012020-06-18 Pedro Alves <palves@redhat.com>
8202
8203 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8204 of writing to inferior_ptid.
8205 (scoped_restore_exited_inferior): Delete.
8206 (handle_vfork_child_exec_or_exit): Simplify using
8207 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8208 instead of writing to inferior_ptid.
8209 (THREAD_STOPPED_BY): Delete.
8210 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8211 (thread_stopped_by_hw_breakpoint): Delete.
8212 (save_waitstatus): Use
8213 scoped_restore_current_thread+switch_to_thread, and call
8214 target_stopped_by_watchpoint instead of
8215 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8216 instead of thread_stopped_by_sw_breakpoint, and
8217 target_stopped_by_hw_breakpoint instead of
8218 thread_stopped_by_hw_breakpoint.
8219 (handle_inferior_event)
8220 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8221 inferior_ptid directly, nor
8222 set_current_inferior/set_current_program_space. Use
8223 switch_to_thread / switch_to_inferior_no_thread instead.
8224
a0776b13
PA
82252020-06-18 Pedro Alves <palves@redhat.com>
8226
8227 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8228 instead of writing to inferior_ptid.
8229
6155c136
PA
82302020-06-18 Pedro Alves <palves@redhat.com>
8231
8232 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8233 added thread.
8234 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8235 to the added thread.
8236 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8237 instead of writing to inferior_ptid.
8238
c5316fc6
PA
82392020-06-18 Pedro Alves <palves@redhat.com>
8240
8241 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8242 (register_to_value_test): Mock a program_space too. Heap-allocate
8243 the address space. Don't write to inferior_ptid. Use
8244 switch_to_thread instead.
8245
8df01799
PA
82462020-06-18 Pedro Alves <palves@redhat.com>
8247
8248 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8249 Delete.
8250 (find_signalled_thread()): New, factored out from
8251 linux_make_corefile_notes and adjusted to handle exited threads.
8252 (linux_make_corefile_notes): Adjust to use the new
8253 find_signalled_thread.
8254
41792d68
PA
82552020-06-18 Pedro Alves <palves@redhat.com>
8256
8257 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8258 of saving/restoring inferior_ptid.
8259
612f258a
TT
82602020-06-17 Tom Tromey <tom@tromey.com>
8261
8262 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8263 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8264 declare.
8265 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8266
efb763a5
SM
82672020-06-15 Simon Marchi <simon.marchi@efficios.com>
8268
8269 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8270 of partial symtabs.
8271
2951f6c0
SM
82722020-06-17 Simon Marchi <simon.marchi@efficios.com>
8273
8274 * regformats/reg-arm.dat: Remove.
8275 * regformats/reg-bfin.dat: Remove.
8276 * regformats/reg-cris.dat: Remove.
8277 * regformats/reg-crisv32.dat: Remove.
8278 * regformats/reg-m32r.dat: Remove.
8279 * regformats/reg-tilegx.dat: Remove.
8280 * regformats/reg-tilegx32.dat: Remove.
8281
7d458ea5
SM
82822020-06-17 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * features/Makefile (WHICH): Remove arm files.
8285 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8286 * regformats/arm/arm-with-neon.dat: Remove.
8287 * regformats/arm/arm-with-vfpv2.dat: Remove.
8288 * regformats/arm/arm-with-vfpv3.dat: Remove.
8289
3af96c0d
SM
82902020-06-17 Simon Marchi <simon.marchi@efficios.com>
8291
8292 * features/Makefile (XMLTOC): Remove rx.xml.
8293
b25e22fd
PA
82942020-06-17 Pedro Alves <palves@redhat.com>
8295
8296 * gdbthread.h (thread_control_state) <trap_expected> Update
8297 comments.
8298
a78a19b1
AB
82992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8300
8301 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8302 ada_language::lookup_symbol_nonlocal.
8303 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8304 (ada_language::lookup_symbol_nonlocal): New member function,
8305 implementation from ada_lookup_symbol_nonlocal.
8306 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8307 initializer.
8308 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8309 initializer.
8310 (cplus_language::lookup_symbol_nonlocal): New member function.
8311 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8312 (minimal_language_data) Likewise.
8313 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8314 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8315 initializer.
8316 (d_language::lookup_symbol_nonlocal): New member function.
8317 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8318 initializer.
8319 (f_language::lookup_symbol_nonlocal): New member function.
8320 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8321 initializer.
8322 * language.c (unknown_language_data): Likewise.
8323 (auto_language_data): Likewise.
8324 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8325 field.
8326 (language_defn::lookup_symbol_nonlocal): New member function.
8327 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8328 initializer.
8329 * objc-lang.c (objc_language_data): Likewise.
8330 * opencl-lang.c (opencl_language_data): Likewise.
8331 * p-lang.c (pascal_language_data): Likewise.
8332 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8333 rust_language::lookup_symbol_nonlocal.
8334 (rust_language_data): Delete la_lookup_symbol_nonlocal
8335 initializer.
8336 (rust_language::lookup_symbol_nonlocal): New member function,
8337 implementation from rust_lookup_symbol_nonlocal.
8338 * symtab.c (lookup_symbol_aux): Update call to
8339 lookup_symbol_nonlocal.
8340 (basic_lookup_symbol_nonlocal): Rename to...
8341 (language_defn::lookup_symbol_nonlocal): ...this, and update
8342 header comment. Remove language_defn parameter, and replace with
8343 uses of `this'.
8344 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8345
ebe2334e
AB
83462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8347
8348 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8349 initializer.
8350 (ada_language::value_print_inner): New member function.
8351 * c-lang.c (c_language_data): Delete la_value_print_inner
8352 initializer.
8353 (cplus_language_data): Likewise.
8354 (asm_language_data): Likewise.
8355 (minimal_language_data): Likewise.
8356 * d-lang.c (d_language_data): Likewise.
8357 (d_language::value_print_inner): New member function.
8358 * f-lang.c (f_language_data): Delete la_value_print_inner
8359 initializer.
8360 (f_language::value_print_inner): New member function.
8361 * f-lang.h (f_value_print_innner): Rename to...
8362 (f_value_print_inner): ...this (note spelling of 'inner').
8363 * f-valprint.c (f_value_print_innner): Rename to...
8364 (f_value_print_inner): ...this (note spelling of 'inner').
8365 * go-lang.c (go_language_data): Delete la_value_print_inner
8366 initializer.
8367 (go_language::value_print_inner): New member function.
8368 * language.c (language_defn::value_print_inner): Define new member
8369 function.
8370 (unk_lang_value_print_inner): Delete.
8371 (unknown_language_data): Delete la_value_print_inner initializer.
8372 (unknown_language::value_print_inner): New member function.
8373 (auto_language_data): Delete la_value_print_inner initializer.
8374 (auto_language::value_print_inner): New member function.
8375 * language.h (language_data): Delete la_value_print_inner field.
8376 (language_defn::value_print_inner): Delcare new member function.
8377 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8378 initializer.
8379 (m2_language::value_print_inner): New member function.
8380 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8381 initializer.
8382 * opencl-lang.c (opencl_language_data): Likewise.
8383 * p-lang.c (pascal_language_data): Likewise.
8384 (pascal_language::value_print_inner): New member function.
8385 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8386 initializer.
8387 (rust_language::value_print_inner): New member function.
8388 * valprint.c (do_val_print): Update call to value_print_inner.
8389
a1d1fa3e
AB
83902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8391
8392 * ada-lang.c (ada_language_data): Delete la_value_print
8393 initializer.
8394 (ada_language::value_print): New member function.
8395 * c-lang.c (c_language_data): Delete la_value_print initializer.
8396 (cplus_language_data): Likewise.
8397 (asm_language_data): Likewise.
8398 (minimal_language_data): Likewise.
8399 * d-lang.c (d_language_data): Likewise.
8400 * f-lang.c (f_language_data): Likewise.
8401 * go-lang.c (go_language_data): Likewise.
8402 * language.c (unk_lang_value_print): Delete.
8403 (language_defn::value_print): Define new member function.
8404 (unknown_language_data): Delete la_value_print initializer.
8405 (unknown_language::value_print): New member function.
8406 (auto_language_data): Delete la_value_print initializer.
8407 (auto_language::value_print): New member function.
8408 * language.h (language_data): Delete la_value_print field.
8409 (language_defn::value_print): Declare new member function.
8410 (LA_VALUE_PRINT): Update call to value_print.
8411 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8412 * objc-lang.c (objc_language_data): Likewise.
8413 * opencl-lang.c (opencl_language_data): Likewise.
8414 * p-lang.c (pascal_language_data): Likewise.
8415 (pascal_language::value_print): New member function.
8416 * rust-lang.c (rust_language_data): Delete la_value_print
8417 initializer.
8418
f16a9f57
AB
84192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * ada-lang.c (ada_watch_location_expression): Rename to
8422 ada_language::watch_location_expression.
8423 (ada_language_data): Delete la_watch_location_expression
8424 initializer.
8425 (ada_language::watch_location_expression): New member function,
8426 implementation from ada_watch_location_expression.
8427 * breakpoint.c (watch_command_1): Update call to
8428 watch_location_expression.
8429 * c-lang.c (c_watch_location_expression): Rename to
8430 language_defn::watch_location_expression.
8431 (c_language_data): Delete la_watch_location_expression
8432 initializer.
8433 (cplus_language_data): Likewise.
8434 (asm_language_data): Likewise.
8435 (minimal_language_data): Likewise.
8436 * c-lang.h (c_watch_location_expression): Delete declaration.
8437 * d-lang.c (d_language_data): Delete la_watch_location_expression
8438 initializer.
8439 * f-lang.c (f_language_data): Likewise.
8440 * go-lang.c (go_language_data): Likewise.
8441 * language.c (language_defn::watch_location_expression): Member
8442 function implementation from c_watch_location_expression.
8443 (unknown_language_data): Delete la_watch_location_expression
8444 initializer.
8445 (auto_language_data): Likewise.
8446 * language.h (language_data): Delete la_watch_location_expression
8447 field.
8448 (language_defn::watch_location_expression): Declare new member
8449 function.
8450 * m2-lang.c (m2_language_data): Delete
8451 la_watch_location_expression initializer.
8452 * objc-lang.c (objc_language_data): Likewise.
8453 * opencl-lang.c (opencl_language_data): Likewise.
8454 * p-lang.c (pascal_language_data): Likewise.
8455 * rust-lang.c (rust_watch_location_expression): Rename to
8456 rust_language::watch_location_expression.
8457 (rust_language_data): Delete la_watch_location_expression
8458 initializer.
8459 (rust_language::watch_location_expression): New member function,
8460 implementation from rust_watch_location_expression.
8461
7e56227d
AB
84622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8463
8464 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8465 ada_language::collect_symbol_completion_matches.
8466 (ada_language_data): Delete la_collect_symbol_completion_matches
8467 initializer.
8468 (ada_language::collect_symbol_completion_matches): New member
8469 function, implementation from
8470 ada_collect_symbol_completion_matches.
8471 * c-lang.c (c_language_data): Delete
8472 la_collect_symbol_completion_matches initializer.
8473 (cplus_language_data): Likewise.
8474 (asm_language_data): Likewise.
8475 (minimal_language_data): Likewise.
8476 * d-lang.c (d_language_data): Likewise.
8477 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8478 f_language::collect_symbol_completion_matches.
8479 (f_language_data): Delete la_collect_symbol_completion_matches
8480 initializer.
8481 (f_language::collect_symbol_completion_matches) New member
8482 function, implementation from f_collect_symbol_completion_matches.
8483 * go-lang.c (go_language_data): Delete
8484 la_collect_symbol_completion_matches initializer.
8485 * language.c (unknown_language_data): Likewise.
8486 (auto_language_data): Likewise.
8487 * language.h (language_data): Delete
8488 la_collect_symbol_completion_matches field.
8489 (language_defn::collect_symbol_completion_matches): New member
8490 function.
8491 * m2-lang.c (m2_language_data): Delete
8492 la_collect_symbol_completion_matches initializer.
8493 * objc-lang.c (objc_language_data): Likewise.
8494 * opencl-lang.c (opencl_language_data): Likewise.
8495 * p-lang.c (pascal_language_data): Likewise.
8496 * rust-lang.c (rust_language_data): Likewise.
8497 * symtab.c (default_collect_symbol_completion_matches): Delete.
8498 (collect_symbol_completion_matches): Update call to
8499 collect_symbol_completion_matches.
8500 (collect_symbol_completion_matches_type): Likewise.
8501 * symtab.h (default_collect_symbol_completion_matches): Delete
8502 declaration.
8503
53fc67f8
AB
85042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8505
8506 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8507 (ada_language_data): Delete la_word_break_characters initializer.
8508 (ada_language::word_break_characters): New member function.
8509 * c-lang.c (c_language_data): Delete la_word_break_characters
8510 initializer.
8511 (cplus_language_data): Likewise.
8512 (asm_language_data): Likewise.
8513 (minimal_language_data): Likewise.
8514 * completer.c: Update global comment.
8515 (advance_to_expression_complete_word_point): Update call to
8516 word_break_characters.
8517 (complete_files_symbols): Likewise.
8518 (complete_line_internal_1): Likewise.
8519 (default_completer_handle_brkchars): Likewise.
8520 (skip_quoted_chars): Likewise.
8521 * d-lang.c (d_language_data): Delete la_word_break_characters
8522 initializer.
8523 * f-lang.c (f_word_break_characters): Delete.
8524 (f_language_data): Delete la_word_break_characters initializer.
8525 (f_language::word_break_characters): New member function.
8526 * go-lang.c (go_language_data): Delete la_word_break_characters
8527 initializer.
8528 * language.c (unknown_language_data): Likewise.
8529 (auto_language_data): Likewise.
8530 * language.h (default_word_break_characters): Move declaration to
8531 earlier in the file.
8532 (language_data): Delete la_word_break_characters field.
8533 (language_defn::word_break_characters): New member function.
8534 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8535 initializer.
8536 * objc-lang.c (objc_language_data): Likewise.
8537 * opencl-lang.c (opencl_language_data): Likewise.
8538 * p-lang.c (pascal_language_data): Likewise.
8539 * rust-lang.c (rust_language_data): Likewise.
8540
c9debfb9
AB
85412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8542
8543 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8544 (ada_language_data): Delete la_get_symbol_name_matcher
8545 initializer.
8546 (language_defn::get_symbol_name_matcher_inner): New member
8547 function.
8548 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8549 initializer.
8550 (cplus_language_data): Likewise.
8551 (cplus_language::get_symbol_name_matcher_inner): New member
8552 function.
8553 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8554 (minimal_language_data): Likewise.
8555 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8556 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8557 initializer.
8558 * dictionary.c (iter_match_first_hashed): Update call to
8559 get_symbol_name_matcher.
8560 (iter_match_next_hashed): Likewise.
8561 (iter_match_next_linear): Likewise.
8562 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8563 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8564 initializer.
8565 (f_language::get_symbol_name_matcher_inner): New member function.
8566 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8567 initializer.
8568 * language.c (default_symbol_name_matcher): Update header comment,
8569 make static.
8570 (language_defn::get_symbol_name_matcher): New definition.
8571 (language_defn::get_symbol_name_matcher_inner): Likewise.
8572 (get_symbol_name_matcher): Delete.
8573 (unknown_language_data): Delete la_get_symbol_name_matcher
8574 initializer.
8575 (auto_language_data): Likewise.
8576 * language.h (language_data): Delete la_get_symbol_name_matcher
8577 field.
8578 (language_defn::get_symbol_name_matcher): New member function.
8579 (language_defn::get_symbol_name_matcher_inner): Likewise.
8580 (default_symbol_name_matcher): Delete declaration.
8581 * linespec.c (find_methods): Update call to
8582 get_symbol_name_matcher.
8583 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8584 initializer.
8585 * minsyms.c (lookup_minimal_symbol): Update call to
8586 get_symbol_name_matcher.
8587 (iterate_over_minimal_symbols): Likewise.
8588 * objc-lang.c (objc_language_data): Delete
8589 la_get_symbol_name_matcher initializer.
8590 * opencl-lang.c (opencl_language_data): Likewise.
8591 * p-lang.c (pascal_language_data): Likewise.
8592 * psymtab.c (psymbol_name_matches): Update call to
8593 get_symbol_name_matcher.
8594 * rust-lang.c (rust_language_data): Delete
8595 la_get_symbol_name_matcher initializer.
8596 * symtab.c (symbol_matches_search_name): Update call to
8597 get_symbol_name_matcher.
8598 (compare_symbol_name): Likewise.
8599
9a49ad8c
AB
86002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8601
8602 * ada-lang.c (ada_language_data): Delete la_compute_program
8603 initializer.
8604 * c-lang.c (c_language_data): Likewise.
8605 (c_language::compute_program): New member function.
8606 (cplus_language_data): Delete la_compute_program initializer.
8607 (cplus_language::compute_program): New member function.
8608 (asm_language_data): Delete la_compute_program initializer.
8609 (minimal_language_data): Likewise.
8610 * c-lang.h (c_compute_program): Update comment.
8611 (cplus_compute_program): Likewise.
8612 * compile/compile-c-support.c (c_compute_program): Likewise.
8613 (cplus_compute_program): Likewise.
8614 * compile/compile.c (compile_to_object): Update call to
8615 la_compute_program.
8616 * d-lang.c (d_language_data): Delete la_compute_program
8617 initializer.
8618 * f-lang.c (f_language_data): Likewise.
8619 * go-lang.c (go_language_data): Likewise.
8620 * language.c (unknown_language_data): Likewise.
8621 (auto_language_data): Likewise.
8622 * language.h (language_data): Delete la_compute_program field.
8623 (language_defn::compute_program): New member function.
8624 * m2-lang.c (m2_language_data): Delete la_compute_program
8625 initializer.
8626 * objc-lang.c (objc_language_data): Likewise.
8627 * opencl-lang.c (opencl_language_data): Likewise.
8628 * p-lang.c (pascal_language_data): Likewise.
8629 * rust-lang.c (rust_language_data): Likewise.
8630
eff93b4d
AB
86312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8632
8633 * ada-lang.c (ada_language_data) Delete
8634 la_class_name_from_physname initializer.
8635 * c-lang.c (c_language_data): Likewise.
8636 (cplus_language_data): Likewise.
8637 (cplus_language::class_name_from_physname): New member function.
8638 (asm_language_data): Delete la_class_name_from_physname
8639 initializer.
8640 (minimal_language_data): Likewise.
8641 * d-lang.c (d_language_data): Likewise.
8642 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8643 method on language_defn class.
8644 (guess_full_die_structure_name): Likewise.
8645 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8646 initializer.
8647 * go-lang.c (go_language_data): Likewise.
8648 * language.c (language_class_name_from_physname): Delete.
8649 (unk_lang_class_name): Delete.
8650 (unknown_language_data): Delete la_class_name_from_physname
8651 initializer.
8652 (auto_language_data): Likewise.
8653 * language.h (language_data): Delete la_class_name_from_physname
8654 field.
8655 (language_defn::class_name_from_physname): New function.
8656 (language_class_name_from_physname): Delete declaration.
8657 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8658 initializer.
8659 * objc-lang.c (objc_language_data): Likewise.
8660 * opencl-lang.c (opencl_language_data): Likewise.
8661 * p-lang.c (pascal_language_data): Likewise.
8662 * rust-lang.c (rust_language_data): Likewise.
8663
de543742
TT
86642020-06-16 Tom Tromey <tom@tromey.com>
8665
8666 * tui/tui-data.h (STATUS_NAME): New macro.
8667 * tui/tui-layout.c (tui_remove_some_windows)
8668 (initialize_known_windows, tui_register_window)
8669 (tui_layout_split::remove_windows, initialize_layouts)
8670 (tui_new_layout_command): Don't use hard-coded window names.
8671
a350efd4
TT
86722020-06-16 Tom Tromey <tom@tromey.com>
8673
8674 PR tui/25348:
8675 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8676 tui_initialize_readline. Only run once. Call rl_initialize.
8677 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8678 tui_initialize_readline.
8679 * tui/tui-io.c (tui_setup_io): Call
8680 tui_ensure_readline_initialized.
8681 * tui/tui-interp.c (tui_interp::init): Update.
8682
39ec0490
TT
86832020-06-16 Tom Tromey <tom@tromey.com>
8684
8685 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8686 Also preserve the status window.
8687
d2d1ea20
TT
86882020-06-16 Tom Tromey <tom@tromey.com>
8689
8690 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8691 where m_window==nullptr.
8692
66920317
TT
86932020-06-15 Tom Tromey <tromey@adacore.com>
8694
8695 * windows-nat.c (windows_nat::handle_output_debug_string):
8696 Update.
8697 (windows_nat::handle_ms_vc_exception): Update.
8698 * target.h (target_read_string): Change API.
8699 * target.c (target_read_string): Change API.
8700 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8701 Update.
8702 * solib-frv.c (frv_current_sos): Update.
8703 * solib-dsbt.c (dsbt_current_sos): Update.
8704 * solib-darwin.c (darwin_current_sos): Update.
8705 * linux-thread-db.c (inferior_has_bug): Update.
8706 * expprint.c (print_subexp_standard): Update.
8707 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8708 (ada_exception_message_1): Update.
8709
a5d871dd
TT
87102020-06-15 Tom Tromey <tromey@adacore.com>
8711
8712 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8713
670e35fa
TT
87142020-06-15 Tom Tromey <tromey@adacore.com>
8715
8716 * valprint.c (read_string): Update comment.
8717 * target.c (MIN): Remove.
8718 (target_read_string): Rewrite.
8719
f5272a3b
TT
87202020-06-15 Tom Tromey <tromey@adacore.com>
8721
8722 * corefile.c (read_memory_string): Remove.
8723 * ada-valprint.c (ada_value_print_ptr): Update.
8724 * ada-lang.h (ada_tag_name): Change return type.
8725 * ada-lang.c (type_from_tag): Update.
8726 (ada_tag_name_from_tsd): Change return type. Use
8727 target_read_string.
8728 (ada_tag_name): Likewise.
8729 * gdbcore.h (read_memory_string): Don't declare.
8730
2c074f49
HD
87312020-06-14 Hannes Domani <ssbssa@yahoo.de>
8732
8733 * symtab.c (rbreak_command): Ignore Windows drive colon.
8734
6a17d503
SM
87352020-06-12 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * NEWS: Mention removed GDBserver host support.
8738
453c733f
NC
87392020-06-12 Nelson Chu <nelson.chu@sifive.com>
8740
8741 * features/riscv/rebuild-csr-xml.sh: Updated.
8742
2b4e6a3f
TT
87432020-06-11 Tom Tromey <tom@tromey.com>
8744
8745 PR gdb/18318:
8746 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8747
4412332f
JG
87482020-06-09 Jonny Grant <jg@jguk.org>
87492020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8750
8751 * main.c (captured_main_1): Don't print new line after help.
8752 (print_gdb_help): add mailing list and IRC channel information
8753 to --help. Add new lines between items in the footer. Remove
8754 quotes around bug url.
8755
2f33032a
KS
87562020-06-11 Keith Seitz <keiths@redhat.com>
8757
8758 PR gdb/21356
8759 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8760 Resolve typedefs for type length calculations.
8761
7ab96794
TV
87622020-06-10 Tom de Vries <tdevries@suse.de>
8763
8764 PR ada/24713
8765 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8766 (write_psymbols): Enable .gdb_index for ada.
8767 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8768 ada.
8769
e5f3ece2
TV
87702020-06-10 Tom de Vries <tdevries@suse.de>
8771
8772 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8773 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8774 namei" instead of "const char *name" argument.
8775 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8776 dw2_symtab_iter_init.
8777
940da03e
SM
87782020-06-08 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8781 to use type::field and field::type instead.
8782
b6cdac4b
SM
87832020-06-08 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8786 to use field::type instead.
8787
5d14b6e5
SM
87882020-06-08 Simon Marchi <simon.marchi@efficios.com>
8789
8790 * gdbtypes.h (struct field) <type, set_type>: New methods.
8791 Rename `type` field to...
8792 <m_type>: ... this. Change references throughout to use type or
8793 set_type methods.
8794 (FIELD_TYPE): Use field::type. Change call sites that modify
8795 the field's type to use field::set_type instead.
8796
3d967001
SM
87972020-06-08 Simon Marchi <simon.marchi@efficios.com>
8798
8799 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8800 to use type::index_type instead.
8801
262abc0d
SM
88022020-06-08 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8805 methods.
8806 (TYPE_INDEX_TYPE): Use type::index_type.
8807 * gdbtypes.c (create_array_type_with_stride): Likewise.
8808
82836c92
TT
88092020-06-07 Tom Tromey <tom@tromey.com>
8810
8811 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8812 parameter.
8813 (generic_value_print): Update.
8814
940dace9
AB
88152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8816
8817 Revert commit 982a38f60b0.
8818 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8819
982a38f6
AB
88202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8821
8822 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8823 avoid use after free.
8824
82f06518
TV
88252020-06-05 Tom de Vries <tdevries@suse.de>
8826
8827 * NEWS: Fix typos.
8828
f8c41851
SM
88292020-06-04 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8832 the per_bfd object.
8833 (dwarf2_read_debug_names): Likewise.
8834 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8835 object when re-using a per_bfd object with an index.
8836
f9b5d5ea
TV
88372020-06-03 Tom de Vries <tdevries@suse.de>
8838
8839 PR symtab/26046
8840 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8841 children for C++.
8842 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8843 DW_TAG_subprogram.
8844
f6eee2d0
AB
88452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8846
8847 * ada-lang.c (ada_language_data): Delete skip_trampoline
8848 initializer.
8849 * c-lang.c (c_language_data): Likewise.
8850 (cplus_language_data): Likewise.
8851 (cplus_language::skip_trampoline): New member function.
8852 (asm_language_data): Delete skip_trampoline initializer.
8853 (minimal_language_data): Likewise.
8854 * d-lang.c (d_language_data): Likewise.
8855 * f-lang.c (f_language_data): Likewise.
8856 * go-lang.c (go_language_data): Likewise.
8857 * language.c (unk_lang_trampoline): Delete function.
8858 (skip_language_trampoline): Update.
8859 (unknown_language_data): Delete skip_trampoline initializer.
8860 (auto_language_data): Likewise.
8861 * language.h (language_data): Delete skip_trampoline field.
8862 (language_defn::skip_trampoline): New function.
8863 * m2-lang.c (m2_language_data): Delete skip_trampoline
8864 initializer.
8865 * objc-lang.c (objc_skip_trampoline): Delete function, move
8866 implementation to objc_language::skip_trampoline.
8867 (objc_language_data): Delete skip_trampoline initializer.
8868 (objc_language::skip_trampoline): New member function with
8869 implementation from objc_skip_trampoline.
8870 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8871 initializer.
8872 * p-lang.c (pascal_language_data): Likewise.
8873 * rust-lang.c (rust_language_data): Likewise.
8874
0a50df5d
AB
88752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8876
8877 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8878 (ada_language::demangle): New member function.
8879 * c-lang.c (c_language_data): Delete la_demangle initializer.
8880 (cplus_language_data): Delete la_demangle initializer.
8881 (cplus_language::demangle): New member function.
8882 (asm_language_data): Delete la_demangle initializer.
8883 (minimal_language_data): Delete la_demangle initializer.
8884 * d-lang.c (d_language_data): Delete la_demangle initializer.
8885 (d_language::demangle): New member function.
8886 * f-lang.c (f_language_data): Delete la_demangle initializer.
8887 (f_language::demangle): New member function.
8888 * go-lang.c (go_language_data): Delete la_demangle initializer.
8889 (go_language::demangle): New member function.
8890 * language.c (language_demangle): Update.
8891 (unk_lang_demangle): Delete.
8892 (unknown_language_data): Delete la_demangle initializer.
8893 (unknown_language::demangle): New member function.
8894 (auto_language_data): Delete la_demangle initializer.
8895 (auto_language::demangle): New member function.
8896 * language.h (language_data): Delete la_demangle field.
8897 (language_defn::demangle): New function.
8898 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8899 * objc-lang.c (objc_language_data): Delete la_demangle
8900 initializer.
8901 (objc_language::demangle): New member function.
8902 * opencl-lang.c (opencl_language_data): Delete la_demangle
8903 initializer.
8904 * p-lang.c (pascal_language_data): Likewise.
8905 * rust-lang.c (rust_language_data): Likewise.
8906 (rust_language::demangle): New member function.
8907
fbfb0a46
AB
89082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * ada-lang.c (ada_language_data): Delete la_print_type
8911 initializer.
8912 (ada_language::print_type): New member function.
8913 * c-lang.c (c_language_data): Delete la_print_type initializer.
8914 (c_language::print_type): New member function.
8915 (cplus_language_data): Delete la_print_type initializer.
8916 (cplus_language::print_type): New member function.
8917 (asm_language_data): Delete la_print_type initializer.
8918 (asm_language::print_type): New member function.
8919 (minimal_language_data): Delete la_print_type initializer.
8920 (minimal_language::print_type): New member function.
8921 * d-lang.c (d_language_data): Delete la_print_type initializer.
8922 (d_language::print_type): New member function.
8923 * f-lang.c (f_language_data): Delete la_print_type initializer.
8924 (f_language::print_type): New member function.
8925 * go-lang.c (go_language_data): Delete la_print_type initializer.
8926 (go_language::print_type): New member function.
8927 * language.c (unk_lang_print_type): Delete.
8928 (unknown_language_data): Delete la_print_type initializer.
8929 (unknown_language::print_type): New member function.
8930 (auto_language_data): Delete la_print_type initializer.
8931 (auto_language::print_type): New member function.
8932 * language.h (language_data): Delete la_print_type field.
8933 (language_defn::print_type): New function.
8934 (LA_PRINT_TYPE): Update.
8935 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8936 (m2_language::print_type): New member function.
8937 * objc-lang.c (objc_language_data): Delete la_print_type
8938 initializer.
8939 (objc_language::print_type): New member function.
8940 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8941 to opencl_language::print_type.
8942 (opencl_language_data): Delete la_print_type initializer.
8943 (opencl_language::print_type): New member function, implementation
8944 from opencl_print_type.
8945 * p-lang.c (pascal_language_data): Delete la_print_type
8946 initializer.
8947 (pascal_language::print_type): New member function.
8948 * rust-lang.c (rust_print_type): Delete, implementation moved to
8949 rust_language::print_type.
8950 (rust_language_data): Delete la_print_type initializer.
8951 (rust_language::print_type): New member function, implementation
8952 from rust_print_type.
8953
6f827019
AB
89542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8955
8956 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8957 implementation moves to...
8958 (ada_language::sniff_from_mangled_name): ...here. Update return
8959 type.
8960 (ada_language_data): Delete la_sniff_from_mangled_name
8961 initializer.
8962 * c-lang.c (c_language_data): Likewise.
8963 (cplus_language_data): Likewise.
8964 (cplus_language::sniff_from_mangled_name): New member function,
8965 implementation taken from gdb_sniff_from_mangled_name.
8966 (asm_language_data): Delete la_sniff_from_mangled_name
8967 initializer.
8968 (minimal_language_data): Likewise.
8969 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8970 implementation moves to cplus_language::sniff_from_mangled_name.
8971 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8972 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8973 moves to...
8974 (d_language::sniff_from_mangled_name): ...here.
8975 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8976 * f-lang.c (f_language_data): Likewise.
8977 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8978 moves to...
8979 (go_language::sniff_from_mangled_name): ...here.
8980 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8981 * language.c (language_sniff_from_mangled_name): Delete.
8982 (unknown_language_data): Delete la_sniff_from_mangled_name
8983 initializer.
8984 (auto_language_data): Likewise.
8985 * language.h (language_data): Delete la_sniff_from_mangled_name
8986 field.
8987 (language_defn::sniff_from_mangled_name): New function.
8988 (language_sniff_from_mangled_name): Delete declaration.
8989 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8990 field.
8991 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8992 implementation moves to...
8993 (objc_language::sniff_from_mangled_name): ...here.
8994 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8995 * opencl-lang.c (opencl_language_data): Likewise.
8996 * p-lang.c (pascal_language_data): Likewise.
8997 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8998 implementation moves to...
8999 (rust_language::sniff_from_mangled_name): ...here.
9000 (rust_language_data): Delete la_sniff_from_mangled_name
9001 initializer.
9002 * symtab.c (symbol_find_demangled_name): Call
9003 sniff_from_mangled_name member function.
9004
fb8006fd
AB
90052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9008 initializer.
9009 * c-lang.c (c_language_data): Likewise.
9010 (cplus_language_data): Likewise.
9011 (cplus_language::search_name_hash): New member function.
9012 (asm_language_data): Delete la_search_name_hash initializer.
9013 (minimal_language_data): Likewise.
9014 * d-lang.c (d_language_data): Likewise.
9015 * dictionary.c (default_search_name_hash): Rename to...
9016 (language_defn::search_name_hash): ...this.
9017 * f-lang.c (f_language_data): Likewise.
9018 (f_language::search_name_hash): New member function.
9019 * go-lang.c (go_language_data): Delete la_search_name_hash
9020 initializer.
9021 * language.c (unknown_language_data): Likewise.
9022 (auto_language_data): Likewise.
9023 * language.h (struct language_data): Delete la_search_name_hash
9024 field.
9025 (language_defn::search_name_hash): Declare new member function.
9026 (default_search_name_hash): Delete declaration.
9027 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9028 initializer.
9029 * objc-lang.c (objc_language_data): Likewise.
9030 * opencl-lang.c (opencl_language_data): Likewise.
9031 * p-lang.c (pascal_language_data): Likewise.
9032 * rust-lang.c (rust_language_data): Likewise.
9033 * symtab.c (search_name_hash): Update call.
9034
8e25bafe
AB
90352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9038 initializer.
9039 * c-lang.c (class compile_instance): Declare.
9040 (c_language_data): Delete la_get_compile_instance initializer.
9041 (c_language::get_compile_instance): New member function.
9042 (cplus_language_data): Delete la_get_compile_instance initializer.
9043 (cplus_language::get_compile_instance): New member function.
9044 (asm_language_data): Delete la_get_compile_instance initializer.
9045 (minimal_language_data): Likewise.
9046 * c-lang.h (c_get_compile_context): Update comment.
9047 (cplus_get_compile_context): Update comment.
9048 * compile/compile.c (compile_to_object): Update calls, don't rely
9049 on function pointer being NULL.
9050 * d-lang.c (d_language_data): Delete la_get_compile_instance
9051 initializer.
9052 * f-lang.c (f_language_data): Likewise.
9053 * go-lang.c (go_language_data): Likewise.
9054 * language.c (unknown_language_data): Likewise.
9055 (auto_language_data): Likewise.
9056 * language.h (language_data): Delete la_get_compile_instance field.
9057 (language_defn::get_compile_instance): New member function.
9058 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9059 initializer.
9060 * objc-lang.c (objc_language_data): Likewise.
9061 * opencl-lang.c (opencl_language_data): Likewise.
9062 * p-lang.c (pascal_language_data): Likewise.
9063 * rust-lang.c (rust_language_data): Likewise.
9064
4009ee92
AB
90652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * ada-lang.c (ada_add_all_symbols): Update comment.
9068 (ada_iterate_over_symbols): Delete, move implementation to...
9069 (ada_language::iterate_over_symbols): ...here, a new member
9070 function, rewrite to use range based for loop.
9071 (ada_language_data): Delete la_iterate_over_symbols initializer.
9072 * c-lang.c (c_language_data): Likewise.
9073 (cplus_language_data): Likewise.
9074 (asm_language_data): Likewise.
9075 (minimal_language_data): Likewise.
9076 * d-lang.c (d_language_data): Likewise.
9077 * f-lang.c (f_language_data): Likewise.
9078 * go-lang.c (go_language_data): Likewise.
9079 * language.c (unknown_language_data): Likewise.
9080 (auto_language_data): Likewise.
9081 * language.h (language_data): Delete la_iterate_over_symbols field.
9082 (language_defn::iterate_over_symbols): New member function.
9083 (LA_ITERATE_OVER_SYMBOLS): Update.
9084 * linespec.c (iterate_over_all_matching_symtabs): Update.
9085 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9086 initializer.
9087 * objc-lang.c (objc_language_data): Likewise.
9088 * opencl-lang.c (opencl_language_data): Likewise.
9089 * p-lang.c (pascal_language_data): Likewise.
9090 * rust-lang.c (rust_language_data): Likewise.
9091
54f4ca46
AB
90922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * ada-lang.c (ada_language_data): Delete
9095 la_lookup_transparent_type initializer.
9096 * c-lang.c (c_language_data): Likewise.
9097 (cplus_language_data): Likewise.
9098 (cplus_language::lookup_transparent_type): New member function.
9099 (asm_language_data): Delete la_lookup_transparent_type
9100 initializer.
9101 (minimal_language_data): Likewise.
9102 * d-lang.c (d_language_data): Likewise.
9103 * f-lang.c (f_language_data): Likewise.
9104 * go-lang.c (go_language_data): Likewise.
9105 * language.c (unknown_language_data): Likewise.
9106 (auto_language_data): Likewise.
9107 * language.h (struct language_data): Delete
9108 la_lookup_transparent_type field.
9109 (language_defn::lookup_transparent_type): New member function.
9110 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9111 initializer.
9112 * objc-lang.c (objc_language_data): Likewise.
9113 * opencl-lang.c (opencl_language_data): Likewise.
9114 * p-lang.c (pascal_language_data): Likewise.
9115 * rust-lang.c (rust_language_data): Likewise.
9116 * symtab.c (symbol_matches_domain): Update call.
9117
1fb314aa
AB
91182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9119
9120 * ada-lang.c (ada_language_arch_info): Delete function, move
9121 implementation to...
9122 (ada_language::language_arch_info): ...here, a new member
9123 function.
9124 (ada_language_data): Delete la_language_arch_info.
9125 * c-lang.c (c_language_data): Likewise.
9126 (c_language::language_arch_info): New member function.
9127 (cplus_language_arch_info): Delete function, move
9128 implementation to...
9129 (cplus_language::language_arch_info): ...here, a new member
9130 function.
9131 (cplus_language_data): Delete la_language_arch_info.
9132 (asm_language_data): Likewise.
9133 (asm_language::language_arch_info): New member function.
9134 (minimal_language_data): Delete la_language_arch_info.
9135 (minimal_language::language_arch_info): New member function.
9136 * d-lang.c (d_language_arch_info): Delete function, move
9137 implementation to...
9138 (d_language::language_arch_info): ...here, a new member
9139 function.
9140 (d_language_data): Delete la_language_arch_info.
9141 * f-lang.c (f_language_arch_info): Delete function, move
9142 implementation to...
9143 (f_language::language_arch_info): ...here, a new member
9144 function.
9145 (f_language_data): Delete la_language_arch_info.
9146 * go-lang.c (go_language_arch_info): Delete function, move
9147 implementation to...
9148 (go_language::language_arch_info): ...here, a new member
9149 function.
9150 (go_language_data): Delete la_language_arch_info.
9151 * language.c (unknown_language_data): Likewise.
9152 (unknown_language::language_arch_info): New member function.
9153 (auto_language_data): Delete la_language_arch_info.
9154 (auto_language::language_arch_info): New member function.
9155 (language_gdbarch_post_init): Update call to
9156 la_language_arch_info.
9157 * language.h (language_data): Delete la_language_arch_info
9158 function pointer.
9159 (language_defn::language_arch_info): New function.
9160 * m2-lang.c (m2_language_arch_info): Delete function, move
9161 implementation to...
9162 (m2_language::language_arch_info): ...here, a new member
9163 function.
9164 (m2_language_data): Delete la_language_arch_info.
9165 * objc-lang.c (objc_language_arch_info): Delete function, move
9166 implementation to...
9167 (objc_language::language_arch_info): ...here, a new member
9168 function.
9169 (objc_language_data): Delete la_language_arch_info.
9170 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9171 implementation to...
9172 (opencl_language::language_arch_info): ...here, a new member
9173 function.
9174 (opencl_language_data): Delete la_language_arch_info.
9175 * p-lang.c (pascal_language_arch_info): Delete function, move
9176 implementation to...
9177 (pascal_language::language_arch_info): ...here, a new member
9178 function.
9179 (pascal_language_data): Delete la_language_arch_info.
9180 * rust-lang.c (rust_language_arch_info): Delete function, move
9181 implementation to...
9182 (rust_language::language_arch_info): ...here, a new member
9183 function.
9184 (rust_language_data): Delete la_language_arch_info.
9185
48448202
AB
91862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9187
9188 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9189 initializer.
9190 * c-lang.c (c_language_data): Likewise.
9191 (cplus_language_data): Likewise.
9192 (cplus_language::pass_by_reference_info): New method.
9193 (asm_language_data): Delete la_pass_by_reference initializer.
9194 (minimal_language_data): Likewise.
9195 * cp-abi.c (cp_pass_by_reference): Remove use of
9196 default_pass_by_reference.
9197 * d-lang.c (d_language_data): Likewise.
9198 * f-lang.c (f_language_data): Likewise.
9199 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9200 default_pass_by_reference.
9201 * go-lang.c (go_language_data): Likewise.
9202 * language.c (language_pass_by_reference): Update.
9203 (default_pass_by_reference): Delete.
9204 (unknown_language_data): Delete la_pass_by_reference
9205 initializer.
9206 (auto_language_data): Likewise.
9207 * language.h (struct language_data): Delete la_pass_by_reference
9208 field.
9209 (language_defn::pass_by_reference_info): New member function.
9210 (default_pass_by_reference): Delete declaration.
9211 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9212 initializer.
9213 * objc-lang.c (objc_language_data): Likewise.
9214 * opencl-lang.c (opencl_language_data): Likewise.
9215 * p-lang.c (pascal_language_data): Likewise.
9216 * rust-lang.c (rust_language_data): Likewise.
9217
15e5fd35
AB
92182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9219
9220 * ada-lang.c (ada_read_var_value): Delete function, move
9221 implementation to...
9222 (ada_language::read_var_value): ...here.
9223 (ada_language_data): Delete la_read_var_value initializer.
9224 * c-lang.c (c_language_data): Likewise.
9225 (cplus_language_data): Likewise.
9226 (minimal_language_data): Likewise.
9227 * d-lang.c (d_language_data): Likewise.
9228 * f-lang.c (f_language_data): Likewise.
9229 * findvar.c (default_read_var_value): Rename to...
9230 (language_defn::read_var_value): ...this.
9231 * findvar.c (read_var_value): Update header comment, and change to
9232 call member function instead of function pointer.
9233 * go-lang.c (go_language_data): Likewise.
9234 * language.c (unknown_language_data): Delete la_read_var_value
9235 initializer.
9236 (auto_language_data): Likewise.
9237 * language.h (struct language_data): Delete la_read_var_value
9238 field.
9239 (language_defn::read_var_value): New member function.
9240 (default_read_var_value): Delete declaration.
9241 * m2-lang.c (m2_language_data): Delete la_read_var_value
9242 initializer.
9243 * objc-lang.c (objc_language_data): Likewise.
9244 * opencl-lang.c (opencl_language_data): Likewise.
9245 * p-lang.c (pascal_language_data): Likewise.
9246 * rust-lang.c (rust_language_data): Likewise.
9247 * value.h (default_read_var_value): Delete declaration.
9248
5bd40f2a
AB
92492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9250
9251 * ada-lang.c (ada_print_array_index): Delete function, move
9252 implementation to...
9253 (ada_language::print_array_index): ...here.
9254 (ada_language_data): Delete la_print_array_index initializer.
9255 * c-lang.c (c_language_data): Likewise.
9256 (cplus_language_data): Likewise.
9257 (minimal_language_data): Likewise.
9258 * d-lang.c (d_language_data): Likewise.
9259 * f-lang.c (f_language_data): Likewise.
9260 * go-lang.c (go_language_data): Likewise.
9261 * language.c (default_print_array_index): Delete function, move
9262 implementation to...
9263 (language_defn::print_array_index): ...here.
9264 (unknown_language_data): Delete la_print_array_index initializer.
9265 (auto_language_data): Likewise.
9266 * language.h (struct language_data): Delete la_print_array_index
9267 field.
9268 (language_defn::print_array_index): New member function.
9269 (LA_PRINT_ARRAY_INDEX): Update.
9270 (default_print_array_index): Delete declaration.
9271 * m2-lang.c (m2_language_data): Delete la_print_array_index
9272 initializer.
9273 * objc-lang.c (objc_language_data): Likewise.
9274 * opencl-lang.c (opencl_language_data): Likewise.
9275 * p-lang.c (pascal_language_data): Likewise.
9276 * rust-lang.c (rust_language_data): Likewise.
9277
0874fd07
AB
92782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * gdb/ada-lang.c (ada_language_defn): Convert to...
9281 (ada_language_data): ...this.
9282 (class ada_language): New class.
9283 (ada_language_defn): New static global.
9284 * gdb/c-lang.c (c_language_defn): Convert to...
9285 (c_language_data): ...this.
9286 (class c_language): New class.
9287 (c_language_defn): New static global.
9288 (cplus_language_defn): Convert to...
9289 (cplus_language_data): ...this.
9290 (class cplus_language): New class.
9291 (cplus_language_defn): New static global.
9292 (asm_language_defn): Convert to...
9293 (asm_language_data): ...this.
9294 (class asm_language): New class.
9295 (asm_language_defn): New static global.
9296 (minimal_language_defn): Convert to...
9297 (minimal_language_data): ...this.
9298 (class minimal_language): New class.
9299 (minimal_language_defn): New static global.
9300 * gdb/d-lang.c (d_language_defn): Convert to...
9301 (d_language_data): ...this.
9302 (class d_language): New class.
9303 (d_language_defn): New static global.
9304 * gdb/f-lang.c (f_language_defn): Convert to...
9305 (f_language_data): ...this.
9306 (class f_language): New class.
9307 (f_language_defn): New static global.
9308 * gdb/go-lang.c (go_language_defn): Convert to...
9309 (go_language_data): ...this.
9310 (class go_language): New class.
9311 (go_language_defn): New static global.
9312 * gdb/language.c (unknown_language_defn): Remove declaration.
9313 (current_language): Initialize to nullptr, real initialization is
9314 moved to _initialize_language.
9315 (languages): Delete global.
9316 (language_defn::languages): Define.
9317 (set_language_command): Use language_defn::languages.
9318 (set_language): Likewise.
9319 (range_error): Likewise.
9320 (language_enum): Likewise.
9321 (language_def): Likewise.
9322 (add_set_language_command): Use language_def::languages for the
9323 language list, and language_def to lookup language pointers.
9324 (skip_language_trampoline): Use language_defn::languages.
9325 (unknown_language_defn): Convert to...
9326 (unknown_language_data): ...this.
9327 (class unknown_language): New class.
9328 (unknown_language_defn): New static global.
9329 (auto_language_defn): Convert to...
9330 (auto_language_data): ...this.
9331 (class auto_language): New class.
9332 (auto_language_defn): New static global.
9333 (language_gdbarch_post_init): Use language_defn::languages.
9334 (_initialize_language): Initialize current_language.
9335 * gdb/language.h (struct language_defn): Rename to...
9336 (struct language_data): ...this.
9337 (struct language_defn): New.
9338 (auto_language_defn): Delete.
9339 (unknown_language_defn): Delete.
9340 (minimal_language_defn): Delete.
9341 (ada_language_defn): Delete.
9342 (asm_language_defn): Delete.
9343 (c_language_defn): Delete.
9344 (cplus_language_defn): Delete.
9345 (d_language_defn): Delete.
9346 (f_language_defn): Delete.
9347 (go_language_defn): Delete.
9348 (m2_language_defn): Delete.
9349 (objc_language_defn): Delete.
9350 (opencl_language_defn): Delete.
9351 (pascal_language_defn): Delete.
9352 (rust_language_defn): Delete.
9353 * gdb/m2-lang.c (m2_language_defn): Convert to...
9354 (m2_language_data): ...this.
9355 (class m2_language): New class.
9356 (m2_language_defn): New static global.
9357 * gdb/objc-lang.c (objc_language_defn): Convert to...
9358 (objc_language_data): ...this.
9359 (class objc_language): New class.
9360 (objc_language_defn): New static global.
9361 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9362 (opencl_language_data): ...this.
9363 (class opencl_language): New class.
9364 (opencl_language_defn): New static global.
9365 * gdb/p-lang.c (pascal_language_defn): Convert to...
9366 (pascal_language_data): ...this.
9367 (class pascal_language): New class.
9368 (pascal_language_defn): New static global.
9369 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9370 language pointer, update comment format.
9371 * gdb/rust-lang.c (rust_language_defn): Convert to...
9372 (rust_language_data): ...this.
9373 (class rust_language): New class.
9374 (rust_language_defn): New static global.
9375
1313c56e
AB
93762020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9379 member variable.
9380 <m_stmt_at_address>: New member variable.
9381 (lnp_state_machine::record_line): Don't record some lines, update
9382 tracking of is_stmt at the same address.
9383 (lnp_state_machine::lnp_state_machine): Initialise new member
9384 variables.
9385
b7ed9f3d
ST
93862020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9387
9388 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9389 "-include gnu-nat-mig.h".
9390 * gnu-nat-mig.h: New file.
9391 * gnu-nat.c: Include "gnu-nat-mig.h".
9392 (exc_server, msg_reply_server, notify_server,
9393 process_reply_server): Remove declarations.
9394
14a8ad62
ST
93952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9396
9397 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9398 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9399 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9400 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9401 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9402 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9403 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9404 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9405 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9406 to gnu_nat_target class.
9407 * gnu-nat.c: Likewise.
9408 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9409 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9410 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9411 object.
9412 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9413 instead of `gnu_target'.
9414
0af5e106
ST
94152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9416
9417 * i386-gnu-tdep.c: Include "gdbcore.h"
9418 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9419 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9420 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9421 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9422 i386_gnu_sigcontext_addr): New functions
9423 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9424 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9425 tdep.
9426
078f2fc9
ST
94272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9428
9429 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9430 before fork_inferior call. Avoid calling it if target_is_pushed returns
9431 true.
9432
53dff92c
ST
94332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9434
9435 * gnu-nat.h (gnu_target): New variable declaration.
9436 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9437 gnu_target.
9438 * gnu-nat.c (gnu_target): New variable.
9439 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9440 add_thread_silent, and add_thread calls.
9441 (gnu_nat_target::create_inferior): Pass gnu_target to
9442 add_thread_silent, thread_change_ptid call.
9443 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9444 call.
9445
5a8b8627
ST
94462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9447
9448 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9449 (gnu_nat_target::find_memory_regions): Remove unused
9450 `old_address' variable.
9451
366f550a
ST
94522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9453
9454 * gnu-nat.c: Include "gdbarch.h".
9455
f14871bf
ST
94562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9457
9458 * reply_mig_hack.awk (Error return): Cast function through
9459 void *, to bypass compiler function call check.
9460
c6887cfb
ST
94612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9462
9463 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9464 $(srcdir)/reply_mig_hack.awk.
9465
6930bffe
ST
94662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9467
9468 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9469
112c22ed
JG
94702020-05-30 Jonny Grant <jg@jguk.org>
9471
9472 * configure.ac (ACX_BUGURL): change bug URL to https.
9473
f68f85b5
PA
94742020-05-30 Pedro Alves <palves@redhat.com>
9475
9476 * cp-support.c (replace_typedefs_template): New.
9477 (replace_typedefs_qualified_name): Handle
9478 DEMANGLE_COMPONENT_TEMPLATE.
9479
976ca316
SM
94802020-05-29 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9483 dwarf2/index-cache.h, dwarf2/index-write.c,
9484 dwarf2/index-write.h, dwarf2/line-header.c,
9485 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9486 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9487 variables and fields from `dwarf2_per_objfile` to just
9488 `per_objfile` throughout.
9489
989ade05
SM
94902020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9491
9492 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9493 <push_dwarf_reg_entry_value>: Add comment.
9494
c47bae85
KB
94952020-05-28 Kevin Buettner <kevinb@redhat.com>
9496 Keith Seitz <keiths@redhat.com>
9497
9498 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9499 instead of PyEval_ReleaseLock.
9500 (class gdbpy_gil): Move to earlier in file.
9501 (finalize_python): Set gdb_python_initialized.
9502 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9503 when not initialized.
9504
44486dcf
SM
95052020-05-28 Simon Marchi <simon.marchi@efficios.com>
9506
9507 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9508 <push_dwarf_reg_entry_value>: Remove assert. Override
9509 per_objfile with caller_per_objfile.
9510
f030440d
TV
95112020-05-28 Tom de Vries <tdevries@suse.de>
9512
9513 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9514 PR gold/15646 workaround to symbol kind "type".
9515
f0fbb768
TT
95162020-05-27 Tom Tromey <tromey@adacore.com>
9517
9518 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9519
af0b2a3e
TT
95202020-05-27 Tom Tromey <tromey@adacore.com>
9521
9522 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9523 Use htab_find_with_hash.
9524 <add_abbrev>: Remove "abbrev_number" parameter.
9525 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9526 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9527 (hash_abbrev): Add comment.
9528 (abbrev_table::lookup_abbrev): Move to header file.
9529 (abbrev_table::read): Update.
9530
7d00ffec
TT
95312020-05-27 Tom Tromey <tromey@adacore.com>
9532
9533 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9534 method.
9535 <canonical_name>: New member.
9536 <raw_name>: Rename from "name".
9537 (partial_die_info): Initialize canonical_name.
9538 (scan_partial_symbols): Check raw_name.
9539 (partial_die_parent_scope, partial_die_full_name)
9540 (add_partial_symbol, add_partial_subprogram)
9541 (add_partial_enumeration, load_partial_dies): Use "name" method.
9542 (partial_die_info::name): New method.
9543 (partial_die_info::read, guess_partial_die_structure_name)
9544 (partial_die_info::fixup): Update.
9545
697bba18
TT
95462020-05-27 Tom Tromey <tromey@adacore.com>
9547
9548 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9549 <get_ref_die_offset>: Inline.
9550 <get_ref_die_offset_complaint>: New method.
9551 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9552 (attribute::get_ref_die_offset_complaint): Rename from
9553 get_ref_die_offset. Just issue complaint.
9554
c17ace43
HD
95552020-05-27 Hannes Domani <ssbssa@yahoo.de>
9556
9557 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9558
96445f0b
HD
95592020-05-27 Hannes Domani <ssbssa@yahoo.de>
9560
9561 * exec.c (exec_file_attach): Use errno value of first openp failure.
9562
ac637ec3
HD
95632020-05-27 Hannes Domani <ssbssa@yahoo.de>
9564
9565 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9566 Don't close thread handle.
9567
17ee85fc
TT
95682020-05-27 Tom Tromey <tom@tromey.com>
9569 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9572 shared_ptr.
9573 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9574 member.
9575 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9576 dwarf2_per_bfd_objfile_data_key>: New globals.
9577 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9578 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9579 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9580 shared.
9581 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9582 short-circuit when sharing.
9583 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9584 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9585
39b16f87
SM
95862020-05-27 Simon Marchi <simon.marchi@efficios.com>
9587
9588 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9589 to...
9590 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9591 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9592
fcf23d5b
SM
95932020-05-27 Simon Marchi <simon.marchi@efficios.com>
9594
9595 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9596 build_name_components, find_name_components_bounds>:
9597 Add per_objfile parameter.
9598 (struct mapped_index) <symbol_name_at>: Likewise.
9599 (struct mapped_debug_names): Remove constructor.
9600 <dwarf2_per_objfile>: Remove field.
9601 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9602 (mapped_index_base::find_name_components_bounds,
9603 mapped_index_base::build_name_components,
9604 dw2_expand_symtabs_matching_symbol): Likewise.
9605 (class mock_mapped_index) <symbol_name_at>: Likewise.
9606 (check_match): Likewise.
9607 (check_find_bounds_finds): Likewise.
9608 (test_mapped_index_find_name_component_bounds): Update.
9609 (CHECK_MATCH): Update.
9610 (dw2_expand_symtabs_matching): Update.
9611 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9612 per_objfile parameter.
9613 <find_vec_in_debug_names>: Likewise.
9614 <m_per_objfile>: New field.
9615 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9616 parameter.
9617 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9618 (dw2_debug_names_iterator::next): Update.
9619 (dw2_debug_names_lookup_symbol): Update.
9620 (dw2_debug_names_expand_symtabs_for_function): Update.
9621 (dw2_debug_names_map_matching_symbols): Update.
9622 (dw2_debug_names_expand_symtabs_matching): Update.
9623 (dwarf2_read_debug_names): Update.
9624
7188ed02
SM
96252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9628 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9629 move to dwarf2_per_objfile.
9630 <read_in_chain>: Remove.
9631 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9632 remove_all_cus, age_comp_units>: New methods.
9633 <m_dwarf2_cus>: New member.
9634 (struct dwarf2_per_cu_data) <cu>: Remove.
9635 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9636 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9637 moved to methods of dwarf2_per_objfile.
9638 (dwarf2_clear_marks): Remove.
9639 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9640 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9641 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9642 (dwarf2_per_objfile::remove_all_cus): New.
9643 (class free_cached_comp_units) <~free_cached_comp_units>:
9644 Update.
9645 (load_cu): Update.
9646 (dw2_do_instantiate_symtab): Adjust.
9647 (fill_in_sig_entry_from_dwo_entry): Adjust.
9648 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9649 (cutu_reader::cutu_reader): Likewise.
9650 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9651 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9652 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9653 and dwarf2_per_objfile::age_comp_units.
9654 (load_partial_comp_unit): Update.
9655 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9656 (process_queue): Likewise.
9657 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9658 backlink.
9659 (dwarf2_read_addr_index): Likewise.
9660 (follow_die_offset): Likewise.
9661 (dwarf2_fetch_die_loc_sect_off): Likewise.
9662 (dwarf2_fetch_constant_bytes): Likewise.
9663 (dwarf2_fetch_die_type_sect_off): Likewise.
9664 (follow_die_sig_1): Likewise.
9665 (load_full_type_unit): Likewise.
9666 (read_signatured_type): Likewise.
9667 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9668 (dwarf2_cu::~dwarf2_cu): Remove.
9669 (dwarf2_per_objfile::get_cu): New.
9670 (dwarf2_per_objfile::set_cu): New.
9671 (age_cached_comp_units): Rename to...
9672 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9673 to std::unordered_map.
9674 (free_one_cached_comp_unit): Rename to...
9675 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9676 to std::unordered_map.
9677 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9678 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9679 a dwarf2_per_objfile in data.
9680 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9681 (dwarf2_clear_marks): Remove.
9682
2e671100
SM
96832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9684
9685 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9686 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9687 (init_tu_and_read_dwo_dies): Likewise.
9688 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9689 (cutu_reader::cutu_reader): Likewise.
9690 (load_partial_comp_unit): Likewise.
9691 (process_psymtab_comp_unit): Update.
9692 (build_type_psymtabs_1): Update.
9693 (process_skeletonless_type_unit): Update.
9694 (load_full_comp_unit): Update.
9695 (find_partial_die): Update.
9696 (dwarf2_read_addr_index): Update.
9697 (read_signatured_type): Update.
9698
2e6a9f79
SM
96992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9700
9701 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9702 m_header_read_in>: New fields.
9703 <get_header>: New method.
9704 * dwarf2/read.c (per_cu_header_read_in): Remove.
9705 (dwarf2_per_cu_data::get_header): New.
9706 (dwarf2_per_cu_data::addr_size): Update.
9707 (dwarf2_per_cu_data::offset_size): Update.
9708 (dwarf2_per_cu_data::ref_addr_size): Update.
9709
1b555f17
SM
97102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9711
9712 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9713 (dw2_do_instantiate_symtab): Update.
9714 (queue_and_load_all_dwo_tus): Change parameter from
9715 dwarf2_per_cu_data to dwarf2_cu.
9716 (dwarf2_fetch_die_loc_sect_off): Update.
9717 (dwarf2_fetch_constant_bytes): Update.
9718 (dwarf2_fetch_die_type_sect_off): Update.
9719
8fc0b21d
SM
97202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9721
9722 * dwarf2/read.c (process_full_comp_unit,
9723 process_full_type_unit): Remove per_cu, per_objfile paramters.
9724 Add dwarf2_cu parameter.
9725 (process_queue): Update.
9726
168c9250
SM
97272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9728
9729 * dwarf2/read.c (create_cu_from_index_list): Replace
9730 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9731 (create_cus_from_index_list): Likewise.
9732 (create_cus_from_index): Likewise.
9733 (create_signatured_type_table_from_index): Likewise.
9734 (create_cus_from_debug_names_list): Likewise.
9735 (create_cus_from_debug_names): Likewise.
9736 (dwarf2_read_gdb_index): Update.
9737 (dwarf2_read_debug_names): Update.
9738
e286671b
TT
97392020-05-27 Tom Tromey <tom@tromey.com>
9740 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * dwarf2/read.h (struct dwarf2_per_objfile)
9743 <get_type_for_signatured_type, set_type_for_signatured_type>:
9744 New methods.
9745 <m_type_map>: New member.
9746 (struct signatured_type) <type>: Remove.
9747 * dwarf2/read.c
9748 (dwarf2_per_objfile::get_type_for_signatured_type,
9749 dwarf2_per_objfile::set_type_for_signatured_type): New.
9750 (get_signatured_type): Use new methods.
9751
8adb8487
TT
97522020-05-27 Tom Tromey <tom@tromey.com>
9753 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9756 (struct dwarf2_per_objfile) <type_units>: New member.
9757 <get_type_unit_group_unshareable>: New method.
9758 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9759 num_symtabs, symtabs>: Remove; move to
9760 type_unit_group_unshareable.
9761 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9762 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9763 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9764
127bbf4b
SM
97652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9766
9767 * dwarf2/read.h (struct dwarf2_per_cu_data):
9768 <dwarf2_per_objfile>: Remove.
9769 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9770 dwarf2_per_objfile.
9771 (create_signatured_type_table_from_index): Likewise.
9772 (create_signatured_type_table_from_debug_names): Likewise.
9773 (create_debug_type_hash_table): Likewise.
9774 (fill_in_sig_entry_from_dwo_entry): Likewise.
9775 (create_type_unit_group): Likewise.
9776 (read_comp_units_from_section): Likewise.
9777 (create_cus_hash_table): Likewise.
9778
f6e649dd
SM
97792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9782 dwarf2_per_cu_data::dwarf2_per_objfile.
9783 (compute_compunit_symtab_includes): Likewise.
9784 (dwarf2_cu::start_symtab): Likewise.
9785
aa66c379
SM
97862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9787
9788 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9789 parameter.
9790 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9791 (read_namespace_alias): Update.
9792 (lookup_die_type): Update.
9793 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9794 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9795 Update.
9796 (disassemble_dwarf_expression): Update.
9797
120ce1b5
SM
97982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * dwarf2/read.h (struct dwarf2_queue_item): Add
9801 dwarf2_per_objfile parameter, assign new parameter.
9802 <per_objfile>: New field.
9803 * dwarf2/read.c (free_one_cached_comp_unit): Add
9804 dwarf2_per_objfile parameter.
9805 (queue_comp_unit): Likewise.
9806 (dw2_do_instantiate_symtab): Update.
9807 (process_psymtab_comp_unit): Update.
9808 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9809 (process_imported_unit_die): Update.
9810 (queue_and_load_dwo_tu): Update.
9811 (follow_die_offset): Update.
9812 (follow_die_sig_1): Update.
9813
9f47c707
SM
98142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9817 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9818 (read_call_site_scope): Assign per_objfile.
9819 (dwarf2_per_cu_data::objfile): Remove.
9820 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9821 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9822 dwarf2_per_objfile parameter.
9823 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9824 dwarf2_per_objfile parameter.
9825 (dwarf_expr_reg_to_entry_parameter): Add output
9826 dwarf2_per_objfile parameter.
9827 (locexpr_get_frame_base): Update.
9828 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9829 <push_dwarf_reg_entry_value>: Update.
9830 <call_site_to_target_addr>: Update.
9831 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9832 parameter.
9833 (value_of_dwarf_reg_entry): Update.
9834 (rw_pieced_value): Update.
9835 (indirect_synthetic_pointer): Update.
9836 (dwarf2_evaluate_property): Update.
9837 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9838 parameter.
9839 (locexpr_read_variable): Update.
9840 (locexpr_get_symbol_read_needs): Update.
9841 (loclist_read_variable): Update.
9842
14095eb3
SM
98432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9846 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9847 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9848 parameter.
9849 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9850 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9851 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9852 parameter.
9853 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9854 sect_variable_value): Add dwarf2_per_objfile parameter.
9855 (class dwarf_evaluate_loc_desc) <dwarf_call,
9856 dwarf_variable_value>: Update.
9857 (fetch_const_value_from_synthetic_pointer): Add
9858 dwarf2_per_objfile parameter.
9859 (fetch_const_value_from_synthetic_pointer): Update.
9860 (coerced_pieced_ref): Update.
9861 (class symbol_needs_eval_context) <dwarf_call,
9862 dwarf_variable_value>: Update.
9863 (dwarf2_compile_expr_to_ax): Update.
9864
3c3cd3d4
SM
98652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9866
9867 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9868 parameter.
9869 (dwarf2_evaluate_loc_desc_full): Update.
9870
82ca3f51
SM
98712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9872
9873 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9874 parameter.
9875 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9876 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9877 dwarf2_per_objfile parameter.
9878 (decode_debug_loc_dwo_addresses): Likewise.
9879 (dwarf2_find_location_expression): Update.
9880 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9881 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9882 parameter.
9883 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9884 parameter.
9885 (locexpr_describe_location_1): Likewise.
9886 (locexpr_describe_location): Update.
9887
4b167ea1
SM
98882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9891 Remove.
9892 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9893 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9894 (dwarf2_compile_property_to_c): Update.
9895 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9896 use text offset from objfile.
9897 (locexpr_tracepoint_var_ref): Update.
9898 (locexpr_generate_c_location): Update.
9899 (loclist_describe_location): Update.
9900 (loclist_tracepoint_var_ref): Update.
9901 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9902 dwarf2_per_objfile parameter.
9903 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9904 use text offset from objfile.
9905 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9906
89b07335
SM
99072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * dwarf2/expr.h (struct dwarf_expr_context)
9910 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9911 <offset>: Remove.
9912 <per_objfile>: New member.
9913 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9914 dwarf2_per_objfile parameter. Don't set offset, set
9915 per_objfile.
9916 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9917 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9918 a dwarf2_per_objfile object instead of an offset.
9919 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9920 constructor.
9921 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9922 to dwarf2_expr_executor constructor. Don't set offset.
9923 (dwarf2_fetch_cfa_info): Update.
9924 (struct dwarf2_frame_cache) <text_offset>: Remove.
9925 <per_objfile>: New field.
9926 (dwarf2_frame_cache): Update.
9927 (dwarf2_frame_prev_register): Update.
9928 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9929 <dwarf_evaluate_loc_desc>: Add constructor.
9930 (dwarf2_evaluate_loc_desc_full): Update.
9931 (dwarf2_locexpr_baton_eval): Update.
9932 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9933 Add constructor.
9934 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9935
293e7e51
SM
99362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9939 addr_sized_int_type>: Move to dwarf2_cu.
9940 <int_type>: Move to dwarf2_per_objfile.
9941 (struct dwarf2_per_objfile) <int_type>: Move here.
9942 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9943 addr_sized_int_type>: Move here.
9944 (read_func_scope): Update.
9945 (read_array_type): Update.
9946 (read_tag_string_type): Update.
9947 (attr_to_dynamic_prop): Update.
9948 (dwarf2_per_cu_data::int_type): Rename to...
9949 (dwarf2_per_objfile::int_type): ... this.
9950 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9951 (dwarf2_cu::addr_sized_int_type): ... this.
9952 (read_subrange_type): Update.
9953 (dwarf2_per_cu_data::addr_type): Rename to...
9954 (dwarf2_cu::addr_type): ... this.
9955 (set_die_type): Update.
9956
64874a40
SM
99572020-05-27 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9960 data through per_cu->cu.
9961
4ab09049
SM
99622020-05-27 Simon Marchi <simon.marchi@efficios.com>
9963
9964 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9965 dwarf2_per_cu_data parameter fo dwarf2_cu.
9966 (lookup_dwo_type_unit): Likewise.
9967 (read_cutu_die_from_dwo): Likewise.
9968 (lookup_dwo_unit): Likewise.
9969 (open_and_init_dwo_file): Likewise.
9970 (lookup_dwo_cutu): Likewise.
9971 (lookup_dwo_comp_unit): Likewise.
9972 (lookup_dwo_type_unit): Likewise.
9973 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9974 (cutu_reader::cutu_reader): Update.
9975
47b14e86
SM
99762020-05-27 Simon Marchi <simon.marchi@efficios.com>
9977
9978 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9979 parameter.
9980 (process_full_type_unit): Likewise.
9981 (process_queue): Update.
9982
43182c09
SM
99832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * dwarf2/read.c (recursively_compute_inclusions): Add
9986 dwarf2_per_objfile parameter.
9987 (compute_compunit_symtab_includes): Likewise.
9988 (process_cu_includes): Update.
9989
7aa104c4
SM
99902020-05-27 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9993 parameter.
9994 (create_type_unit_group): Update.
9995 (process_psymtab_comp_unit_reader): Update.
9996 (build_type_psymtabs_reader): Update.
9997
e3beb21d
SM
99982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10001 object through m_this_cu->cu.
10002
d460f660
SM
100032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10006 the info parameter.
10007 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10008
ab432490
SM
100092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10010
10011 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10012 per_objfile parameter.
10013 (load_full_type_unit): Add per_objfile parameter.
10014 (read_signatured_type): Likewise.
10015 (load_full_comp_unit): Likewise.
10016 (load_cu): Likewise.
10017 (dw2_do_instantiate_symtab): Likewise.
10018 (dw2_get_file_names): Likewise.
10019 (dw2_map_symtabs_matching_filename): Update.
10020 (dw_expand_symtabs_matching_file_matcher): Update.
10021 (dw2_map_symbol_filenames): Update.
10022 (process_psymtab_comp_unit): Add per_objfile parameter.
10023 (build_type_psymtabs_1): Update.
10024 (process_skeletonless_type_unit): Update.
10025 (dwarf2_build_psymtabs_hard): Update.
10026 (load_partial_comp_unit): Add per_objfile parameter.
10027 (scan_partial_symbols): Update.
10028 (load_full_comp_unit): Add per_objfile parameter.
10029 (process_imported_unit_die): Update.
10030 (create_cus_hash_table): Update.
10031 (find_partial_die): Update.
10032 (dwarf2_read_addr_index): Update.
10033 (follow_die_offset): Update.
10034 (dwarf2_fetch_die_loc_sect_off): Update.
10035 (dwarf2_fetch_constant_bytes): Update.
10036 (dwarf2_fetch_die_type_sect_off): Update.
10037 (follow_die_sig_1): Update.
10038 (load_full_type_unit): Add per_objfile parameter.
10039 (read_signatured_type): Likewise.
10040
313bad1b
SM
100412020-05-27 Simon Marchi <simon.marchi@efficios.com>
10042
10043 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10044 of objfile_name.
10045
c3699833
SM
100462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10047
10048 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10049 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10050 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10051 field.
10052 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10053 (create_cus_from_index): Update.
10054 (dwarf2_read_gdb_index): Update.
10055 (create_cus_from_debug_names): Update.
10056 (dwarf2_read_debug_names): Update.
10057 (get_abbrev_section_for_cu): Update.
10058 (create_all_comp_units): Update.
10059 (read_attribute_value): Update.
10060 (get_debug_line_section): Update.
10061 * dwarf2/index-cache.c (index_cache::store): Update.
10062 * dwarf2/index-write.c (save_gdb_index_command): Update.
10063 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10064
1859c670
SM
100652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10066
10067 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10068 member.
10069 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10070 dwarf2_per_cu_data::per_bfd.
10071 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10072 (create_type_unit_group): Likewise.
10073 (queue_comp_unit): Remove reference to
10074 per_cu->dwarf2_per_objfile.
10075 (maybe_queue_comp_unit): Likewise.
10076 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10077 (create_cus_hash_table): Assign new field.
10078
5e22e966
SM
100792020-05-27 Simon Marchi <simon.marchi@efficios.com>
10080
10081 * dwarf2/read.c: Replace
10082 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10083 dwarf2_cu->per_objfile throughout.
10084
97a1449a
SM
100852020-05-27 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10088 parameter, don't use per_cu->dwarf2_per_objfile.
10089 (dw2_instantiate_symtab): Likewise.
10090 (dw2_find_last_source_symtab): Update.
10091 (dw2_map_expand_apply): Update.
10092 (dw2_lookup_symbol): Update.
10093 (dw2_expand_symtabs_for_function): Update.
10094 (dw2_expand_all_symtabs): Update.
10095 (dw2_expand_symtabs_with_fullname): Update.
10096 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10097 don't use per_cu->dwarf2_per_objfile.
10098 (dw2_expand_marked_cus): Update.
10099 (dw2_find_pc_sect_compunit_symtab): Update.
10100 (dw2_debug_names_lookup_symbol): Update.
10101 (dw2_debug_names_expand_symtabs_for_function): Update.
10102 (dw2_debug_names_map_matching_symbols): Update.
10103 (dwarf2_psymtab::expand_psymtab): Update.
10104
9e021579
SM
101052020-05-27 Simon Marchi <simon.marchi@efficios.com>
10106
10107 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10108 <per_objfile>: New member.
10109 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10110 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10111 call to dwarf2_cu.
10112 (cutu_reader::cutu_reader): Update.
10113 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10114
ae090bdb
SM
101152020-05-27 Simon Marchi <simon.marchi@efficios.com>
10116
10117 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10118 struct dwarf2_per_objfile.
10119 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10120 dwarf2_per_bfd.
10121 * dwarf2/read.c (set_die_type): Update.
10122 (get_die_type_at_offset): Update.
10123
af758d11
SM
101242020-05-27 Tom Tromey <tom@tromey.com>
10125 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10128 method.
10129 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10130 get_symtab, set_symtab>: New methods.
10131 <m_symtabs>: New field.
10132 (struct dwarf2_psymtab): Derive from partial_symtab.
10133 <readin_p, get_compunit_symtab>: Declare methods.
10134 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10135 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10136 New methods.
10137 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10138 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10139 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10140 (dw2_symtab_iter_next, dw2_print_stats)
10141 (dw2_expand_symtabs_with_fullname)
10142 (dw2_expand_symtabs_matching_one)
10143 (dw_expand_symtabs_matching_file_matcher)
10144 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10145 (dw2_debug_names_iterator::next)
10146 (dw2_debug_names_map_matching_symbols)
10147 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10148 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10149 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10150 New methods.
10151 (get_compunit_symtab, process_full_comp_unit)
10152 (process_full_type_unit): Update.
10153 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10154
5989a64e
SM
101552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10156
10157 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10158 then introduce a new dwarf2_per_objfile type.
10159 <read_line_string>: Move to the new dwarf2_per_objfile type.
10160 <objfile>: Likewise.
10161 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10162 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10163 dwarf2_per_objfile->per_bfd.
10164 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10165 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10166 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10167 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10168 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10169 (dwarf2_per_objfile::locate_sections): Rename to...
10170 (dwarf2_per_bfd::locate_sections): ... this.
10171 (dwarf2_per_objfile::get_cutu): Rename to...
10172 (dwarf2_per_bfd::get_cutu): ... this.
10173 (dwarf2_per_objfile::get_cu): Rename to...
10174 (dwarf2_per_bfd::get_cu): ... this.
10175 (dwarf2_per_objfile::get_tu): Rename to...
10176 (dwarf2_per_bfd::get_tu): ... this.
10177 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10178 (dwarf2_per_bfd::allocate_per_cu): ... this.
10179 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10180 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10181 (get_gdb_index_contents_ftype): Change parameter from
10182 dwarf2_per_objfile to dwarf2_per_bfd.
10183 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10184 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10185
a50264ba
TT
101862020-05-27 Tom Tromey <tom@tromey.com>
10187 Simon Marchi <simon.marchi@efficios.com>
10188
10189 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10190 (allocate_piece_closure): Set "per_objfile" member.
10191 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10192 (locexpr_describe_location, loclist_describe_location): Use new
10193 member.
10194 * dwarf2/read.c (read_call_site_scope)
10195 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10196 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10197 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10198 handle_data_member_location): Set per_objfile member.
10199 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10200 member.
10201 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10202
d3473f0c
TT
102032020-05-27 Tom Tromey <tom@tromey.com>
10204
10205 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10206 allocate_signatured_type>: Declare new methods.
10207 <m_num_psymtabs>: New member.
10208 (struct dwarf2_per_cu_data) <index>: New member.
10209 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10210 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10211 (create_cu_from_index_list): Use allocate_per_cu.
10212 (create_signatured_type_table_from_index)
10213 (create_signatured_type_table_from_debug_names)
10214 (create_debug_type_hash_table, add_type_unit)
10215 (read_comp_units_from_section): Use allocate_signatured_type.
10216
5717c425
TT
102172020-05-27 Tom Tromey <tom@tromey.com>
10218
10219 * psymtab.c (partial_map_expand_apply)
10220 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10221 (psym_lookup_global_symbol_language)
10222 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10223 (psym_print_stats, psym_expand_symtabs_for_function)
10224 (psym_map_symbol_filenames, psym_map_matching_symbols)
10225 (psym_expand_symtabs_matching)
10226 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10227 (maintenance_check_psymtabs): Update.
10228 * psympriv.h (struct partial_symtab) <readin_p,
10229 get_compunit_symtab>: Add objfile parameter.
10230 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10231 Likewise.
10232 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10233 get_compunit_symtab>: Likewise.
10234 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10235
45940949
TT
102362020-05-27 Tom Tromey <tom@tromey.com>
10237
10238 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10239 member.
10240 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10241 (create_cu_from_index_list)
10242 (create_signatured_type_table_from_index)
10243 (create_signatured_type_table_from_debug_names)
10244 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10245 (dwarf2_create_include_psymtab)
10246 (create_debug_type_hash_table, add_type_unit)
10247 (create_type_unit_group, read_comp_units_from_section)
10248 (dwarf2_compute_name, create_cus_hash_table)
10249 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10250 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10251 obstack.
10252 (dw2_get_real_path): Likewise. Change argument to
10253 dwarf2_per_objfile.
10254
f8c6d152
LM
102552020-05-27 Luis Machado <luis.machado@linaro.org>
10256
10257 PR tdep/26000
10258 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10259 for ldrd (immediate).
10260
e98d2e6d
PW
102612020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10262
10263 * command.h: Add comment giving the name of class_tui.
10264 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10265 create the fake command for the help for class_tui.
10266
53a47a3e
TT
102672020-05-26 Tom Tromey <tromey@adacore.com>
10268
10269 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10270 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10271 (val_atr): New function.
10272 (value_val_atr): Use it.
10273 * ada-valprint.c (print_optional_low_bound): Change low bound
10274 handling for enums.
10275 (val_print_packed_array_elements): Don't call discrete_position.
10276 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10277 discrete_position for enum types.
10278 * language.c (default_print_array_index): Change type.
10279 * language.h (struct language_defn) <la_print_array_index>: Add
10280 index_type parameter, change type of index_value.
10281 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10282 (default_print_array_index): Update.
10283 * valprint.c (maybe_print_array_index): Don't call
10284 value_from_longest. Update.
10285 (value_print_array_elements): Don't call discrete_position.
10286
0bc2354b
TT
102872020-05-26 Tom Tromey <tromey@adacore.com>
10288
10289 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10290 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10291
1218a4bf
CDA
102922020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10293
10294 PR gdb/13519
10295 * avr-tdep.c (avr_integer_to_address): Return data or code
10296 address accordingly to the second 'type' argument of the
10297 function.
10298
92651b1d
MW
102992020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10300
10301 * infcmd.c, inferior.h: (construct_inferior_arguments):
10302 Moved function from here to gdbsupport/common-inferior.{h,cc}
10303
0a4f5f8c
TT
103042020-05-23 Tom Tromey <tom@tromey.com>
10305
10306 Revert commit eca1f90c:
10307 * NEWS: Remove entry for completion styling.
10308 * completer.c (_rl_completion_prefix_display_length): Move
10309 declaration later.
10310 (gdb_fnprint): Revert.
10311 (gdb_display_match_list_1): Likewise.
10312 * cli/cli-style.c (completion_prefix_style)
10313 (completion_difference_style, completion_suffix_style): Remove.
10314 (_initialize_cli_style): Revert.
10315 * cli/cli-style.h (completion_prefix_style)
10316 (completion_difference_style, completion_suffix_style): Don't
10317 declare.
10318
e08bd6c5
PA
103192020-05-24 Pedro Alves <palves@redhat.com>
10320
10321 * symtab.c (completion_list_add_name): Return boolean indication
10322 of whether the symbol matched.
10323 (completion_list_add_symbol): Don't try to remove C++ aliases if
10324 the symbol didn't match in the first place.
10325 * symtab.h (completion_list_add_name): Return bool.
10326
ceacbf6e
SM
103272020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10328
10329 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10330 type::field.
10331
26f16254
JB
103322020-05-23 Joel Brobecker <brobecker@adacore.com>
10333
10334 GDB 9.2 released.
10335
eca1f90c
TT
103362020-05-23 Tom Tromey <tom@tromey.com>
10337
10338 * NEWS: Add entry for completion styling.
10339 * completer.c (_rl_completion_prefix_display_length): Move
10340 declaration earlier.
10341 (gdb_fnprint): Use completion_style.
10342 (gdb_display_match_list_1): Likewise.
10343 * cli/cli-style.c (completion_prefix_style)
10344 (completion_difference_style, completion_suffix_style): New
10345 globals.
10346 (_initialize_cli_style): Register new globals.
10347 * cli/cli-style.h (completion_prefix_style)
10348 (completion_difference_style, completion_suffix_style): Declare.
10349
51e2cfa2
PA
103502020-05-23 Pedro Alves <palves@redhat.com>
10351
10352 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10353 (parse_escape): Use ISDIGIT instead of isdigit.
10354 (puts_debug): Use gdb_isprint instead of isprint.
10355 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10356 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10357 ISSPACE instead of isspace.
10358 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10359 instead of isspace.
10360 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10361 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10362 instead of isxdigit and ISDIGIT instead of isdigit.
10363
80fc5e77
SM
103642020-05-22 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * gdbtypes.h (struct type) <field>: New method.
10367 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10368 or type::field.
10369
3cabb6b0
SM
103702020-05-22 Simon Marchi <simon.marchi@efficios.com>
10371
10372 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10373 (TYPE_FIELDS): Use type::fields. Change all call sites that
10374 modify the propery to use type::set_fields instead.
10375
1f704f76
SM
103762020-05-22 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10379 type::num_fields instead.
10380
5e33d5f4
SM
103812020-05-22 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10384 methods.
10385 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10386 that modify the number of fields to use type::set_num_fields
10387 instead.
10388
9392ebb3
TT
103892020-05-22 Tom Tromey <tromey@adacore.com>
10390
10391 * compile/compile-object-load.h (munmap_list_free): Don't
10392 declare.
10393
7c13f4e8
AB
103942020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10395
10396 * annotate.c (annotate_source_line): Update return type, add call
10397 to update current symtab and line.
10398 * annotate.h (annotate_source_line): Update return type, and
10399 extend header comment.
10400 * source.c (info_line_command): Check annotation_level before
10401 calling annotate_source_line.
10402 * stack.c (print_frame_info): If calling annotate_source_line
10403 returns true, then don't print any other source line information.
10404
aa370940
SM
104052020-05-21 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10408
84d53fa9
SM
104092020-05-21 Simon Marchi <simon.marchi@efficios.com>
10410
10411 * coffread.c (patch_type): Remove NULL check before xfree.
10412 * corefile.c (set_gnutarget): Likewise.
10413 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10414 * exec.c (build_section_table): Likewise.
10415 * remote.c (remote_target::pass_signals): Likewise.
10416 * utils.c (n_spaces): Likewise.
10417 * cli/cli-script.c (document_command): Likewise.
10418 * i386-windows-tdep.c (core_process_module_section): Likewise.
10419 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10420
9d428aae
SM
104212020-05-20 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * symfile.c (reread_symbols): Clear objfile's section_offsets
10424 vector and section indices, re-compute them by calling
10425 sym_offsets.
10426
250106a7
TT
104272020-05-20 Tom Tromey <tromey@adacore.com>
10428
10429 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10430 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10431
9a0bacfb
TV
104322020-05-20 Tom de Vries <tdevries@suse.de>
10433
10434 PR symtab/25833
10435 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10436
7b958a48
AM
104372020-05-20 Alan Modra <amodra@gmail.com>
10438
10439 PR 25993
10440 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10441 bfd_set_filename.
10442 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10443 passed to bfd_set_filename.
10444 * symfile-mem.c (add_vsyscall_page): Likewise for string
10445 passed to symbol_file_add_from_memory.
10446 (symbol_file_add_from_memory): Make name param a const char* and
10447 don't strdup.
10448
c7e97679
AM
104492020-05-20 Alan Modra <amodra@gmail.com>
10450
10451 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10452 rather than accessing bfd->filename directly.
10453 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10454 and use bfd_section_name.
10455 * dwarf2/frame.c (decode_frame_entry): Likewise.
10456 * exec.c (exec_set_section_address): Likewise.
10457 * solib-aix.c (solib_aix_bfd_open): Likewise.
10458 * stap-probe.c (get_stap_base_address): Likewise.
10459 * symfile.c (reread_symbols): Likewise.
10460
563c591b
TT
104612020-05-19 Tom Tromey <tromey@adacore.com>
10462
10463 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10464
f408d82c
SM
104652020-05-19 Simon Marchi <simon.marchi@efficios.com>
10466
10467 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10468
98c59b52
PA
104692020-05-19 Pedro Alves <palves@redhat.com>
10470
10471 * NEWS (set exec-file-mismatch): Adjust entry.
10472 * exec.c: Include "build-id.h".
10473 (validate_exec_file): Try to match build IDs instead of filenames.
10474 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10475 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10476 and pass down 'warn_if_slow'.
10477 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10478 gdb_bfd_open_closure to pass it down.
10479 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10480
4111f652
PA
104812020-05-19 Pedro Alves <palves@redhat.com>
10482
10483 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10484 * target.c (target_fileio_open_1): Rename to target_fileio_open
10485 and make extern. Use bool.
10486 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10487 (target_fileio_read_alloc_1): Adjust.
10488 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10489 (target_fileio_open_warn_if_slow): Delete declaration.
10490
ad80db5b
PA
104912020-05-19 Pedro Alves <palves@redhat.com>
10492
10493 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10494 Adjust all callers.
10495
1d6ce4d3
YS
104962020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10497
10498 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10499 whether disp is negative.
10500
9005fbbb
SM
105012020-05-19 Simon Marchi <simon.marchi@efficios.com>
10502
10503 * symfile.h (struct symfile_segment_data)
10504 <~symfile_segment_data>: Remove.
10505 <segment_info>: Change to std::vector.
10506 * symfile.c (default_symfile_segments): Update.
10507 * elfread.c (elf_symfile_segments): Update.
10508
68b888ff
SM
105092020-05-19 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10512 <segments>: New.
10513 <segment_bases, segment_sizes>: Remove.
10514 * symfile.c (default_symfile_segments): Update.
10515 * elfread.c (elf_symfile_segments): Update.
10516 * remote.c (remote_target::get_offsets): Update.
10517 * solib-target.c (solib_target_relocate_section_addresses):
10518 Update.
10519
62982abd
SM
105202020-05-19 Simon Marchi <simon.marchi@efficios.com>
10521
10522 * symfile.h (struct symfile_segment_data): Initialize fields.
10523 <~symfile_segment_data>: Add.
10524 (symfile_segment_data_up): New.
10525 (struct sym_fns) <sym_segments>: Return a
10526 symfile_segment_data_up.
10527 (default_symfile_segments): Return a symfile_segment_data_up.
10528 (free_symfile_segment_data): Remove.
10529 (get_symfile_segment_data): Return a symfile_segment_data_up.
10530 * symfile.c (default_symfile_segments): Likewise.
10531 (get_symfile_segment_data): Likewise.
10532 (free_symfile_segment_data): Remove.
10533 (symfile_find_segment_sections): Update.
10534 * elfread.c (elf_symfile_segments): Return a
10535 symfile_segment_data_up.
10536 * remote.c (remote_target::get_offsets): Update.
10537 * solib-target.c (solib_target_relocate_section_addresses):
10538 Update.
10539 * symfile-debug.c (debug_sym_segments): Return a
10540 symfile_segment_data_up.
10541
7f204339
RO
105422020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10543
e52a0f1b
RO
10544 PR build/25981
10545 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10546 Hardcode register numbers.
10547
7f204339
RO
10548 PR build/25981
10549 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10550 procfs_find_LDT_entry): Remove.
10551 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10552 procfs_find_LDT_entry): Remove.
10553 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10554 Remove.
10555
7f32a4d5
PA
105562020-05-17 Pedro Alves <palves@redhat.com>
10557 Andrew Burgess <andrew.burgess@embecosm.com>
10558 Keno Fischer <keno@juliacomputing.com>
10559
10560 PR gdb/25741
10561 * breakpoint.c (build_target_condition_list): Update comments.
10562 (build_target_command_list): Update comments and skip matching
10563 locations.
10564 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10565 a separate function. Simplify "set breakpoint auto-hw off"
10566 handling.
10567 (insert_breakpoints): Update comment.
10568 (tracepoint_locations_match): New parameter. For breakpoints,
10569 compare location types too, if the caller wants to.
10570 (handle_automatic_hardware_breakpoints): New functions.
10571 (bp_location_is_less_than): Also sort by location type and
10572 hardware breakpoint length.
10573 (update_global_location_list): Handle "set breakpoint auto-hw on"
10574 here.
10575 (update_breakpoint_locations): Ask breakpoint_locations_match to
10576 ignore location types.
10577
7d93a1e0
SM
105782020-05-16 Simon Marchi <simon.marchi@efficios.com>
10579
10580 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10581 type::name instead.
10582
d0e39ea2
SM
105832020-05-16 Simon Marchi <simon.marchi@efficios.com>
10584
10585 * gdbtypes.h (struct type) <name, set_name>: New methods.
10586 (TYPE_CODE): Use type::name. Change all call sites used to set
10587 the name to use type::set_name instead.
10588
2dab0c7b
TT
105892020-05-16 Tom Tromey <tom@tromey.com>
10590
10591 * top.c (quit_force): Update.
10592 * infrun.c (handle_no_resumed): Update.
10593 * top.h (all_uis): New function.
10594 (ALL_UIS): Remove.
10595
59f7bd8d
SM
105962020-05-16 Simon Marchi <simon.marchi@efficios.com>
10597
10598 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10599
9bf058f0
PA
106002020-05-16 Pedro Alves <palves@redhat.com>
10601
10602 * ia64-linux-nat.c
10603 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10604 Declare method.
10605 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10606
8f86ae1a
SM
106072020-05-15 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10610 (sparc64_adi_info): Likewise.
10611
d6bc0792
TT
106122020-05-15 Tom Tromey <tom@tromey.com>
10613
10614 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10615 block_objfile.
10616 (lookup_objfile_from_block): Remove.
10617 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10618 (lookup_global_symbol): Use block_objfile.
10619 * symtab.h (lookup_objfile_from_block): Don't declare.
10620 * printcmd.c (clear_dangling_display_expressions): Use
10621 block_objfile.
10622 * parse.c (operator_check_standard): Use block_objfile.
10623
8c14c3a3
TT
106242020-05-15 Tom Tromey <tom@tromey.com>
10625
10626 * language.c (language_alloc_type_symbol): Set
10627 SYMBOL_SECTION.
10628 * symtab.c (initialize_objfile_symbol): Remove.
10629 (allocate_symbol): Remove.
10630 (allocate_template_symbol): Remove.
10631 * dwarf2/read.c (fixup_go_packaging): Use "new".
10632 (new_symbol): Use "new".
10633 (read_variable): Don't call initialize_objfile_symbol. Use
10634 "new".
10635 (read_func_scope): Use "new".
10636 * xcoffread.c (process_xcoff_symbol): Don't call
10637 initialize_objfile_symbol.
10638 (SYMBOL_DUP): Remove.
10639 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10640 "new".
10641 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10642 (allocate_template_symbol): Don't declare.
10643 (struct symbol): Add copy constructor. Change defaults.
10644 * jit.c (finalize_symtab): Use "new".
10645 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10646 Use "new".
10647 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10648 (common_block_end): Use "new".
10649 * mdebugread.c (parse_symbol): Use "new".
10650 (new_symbol): Likewise.
10651
5b4a1a8d
PW
106522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10653
10654 * NEWS: Mention changes to help and apropos.
10655
57b4f16e
PW
106562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10657
10658 * command.h (enum command_class): Improve comments, document
10659 that class_alias is for user-defined aliases, give the class
10660 name for each class, remove unused class_xdb.
10661 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10662 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10663 by a precise class.
10664 * infcmd.c (_initialize_infcmd): Likewise.
10665 * reverse.c (_initialize_reverse): Likewise.
10666 * stack.c (_initialize_stack): Likewise.
10667 * symfile.c (_initialize_symfile): Likewise.
10668 * tracepoint.c (_initialize_tracepoint): Likewise.
10669
7c05caf7
PW
106702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10671
10672 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10673 when their aliased command is traversed.
10674 (help_cmd): Add fput_command_names_styled call to
10675 output command name and aliases when command has an alias.
10676
3b3aaacb
PW
106772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10678
10679 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10680 * cli/cli-decode.c (help_cmd_list): Declare as static,
10681 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10682 a command together with the command.
10683 (fput_command_name_styled, fput_command_names_styled): New functions.
10684 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10685 fput_command_name_styled.
10686 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10687 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10688
7aa1b46f
PW
106892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10690
10691 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10692 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10693 * command.h (cmd_show_list): Likewise.
10694 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10695 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10696
89bcba74
PW
106972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10698
10699 * unittests/command-def-selftests.c (traverse_command_structure):
10700 Verify all commands of a list have the same prefix command and
10701 that only the top cmdlist commands have a null prefix.
10702
3f4d92eb
PW
107032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10704
10705 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10706 as prefix, not one of its aliases.
10707 (set_cmd_prefix): Remove.
10708 (do_add_cmd): Centralize the setting of the prefix of a command, when
10709 command is defined after its full chain of prefix commands.
10710 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10711 (add_setshow_cmd_full): Likewise.
10712 (update_prefix_field_of_prefixed_commands): New function.
10713 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10714 update_prefix_field_of_prefixed_commands.
10715 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10716 addresses of remote_set_cmdlist and remote_show_cmdlist given
10717 as argument, not the address of an argument.
10718 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10719 * gdb/remote.c (_initialize_remote): Likewise.
10720
0605465f
PW
107212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10722
10723 * cli/cli-cmds.c (alias_command): Check for an existing alias
10724 using lookup_cmd_composition, as valid_command_p is too strict
10725 and forbids aliases that are the prefix of an existing alias
10726 or command.
10727 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10728 command is properly recognised as a valid command.
10729
58e6ac70
PW
107302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10731
10732 * unittests/help-doc-selftests.c: Rename to
10733 unittests/command-def-selftests.c
10734 * unittests/command-def-selftests.c (help_doc_tests): Update some
10735 comments.
10736 (command_structure_tests, traverse_command_structure): New namespace
10737 and function.
10738 (command_structure_invariants_tests): New function.
10739 (_initialize_command_def_selftests) Renamed from
10740 _initialize_help_doc_selftests, register command_structure_invariants
10741 selftest.
10742
a7b9ceb8
PW
107432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10744
10745 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10746 an alias of 'show'.
10747
b2188a06
JB
107482020-05-15 Joel Brobecker <brobecker@adacore.com>
10749
10750 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10751 ada_is_fixed_point_type. Update all callers.
10752 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10753 all callers.
10754 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10755 Update all callers.
10756 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10757 print_fixed_point_type. Update all callers.
10758 * ada-valprint.c (ada_value_print_num): Replace call to
10759 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10760
a51951c2
KB
107612020-05-14 Kevin Buettner <kevinb@redhat.com>
10762
10763 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10764 processors.
10765 (cpu_supports_bts): Add CV_AMD case.
10766
29d6859f
LM
107672020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10768 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * infrun.c (stop_all_threads): Collect multiple wait events at
10771 each pass.
10772
78134374
SM
107732020-05-14 Simon Marchi <simon.marchi@efficios.com>
10774
10775 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10776 type::code instead.
10777
67607e24
SM
107782020-05-14 Simon Marchi <simon.marchi@efficios.com>
10779
10780 * gdbtypes.h (struct type) <code, set_code>: New methods.
10781 (TYPE_CODE): Use type::code. Change all call sites used to set
10782 the code to use type::set_code instead.
10783
a05575d3
TBA
107842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10785 Tom de Vries <tdevries@suse.de>
10786 Pedro Alves <palves@redhat.com>
10787
10788 PR threads/25478
10789 * infrun.c (stop_all_threads): Do NOT ignore
10790 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10791 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10792 received.
10793 (handle_no_resumed): Remove code handling a live inferior with no
10794 threads.
10795 * remote.c (has_single_non_exited_thread): New.
10796 (remote_target::update_thread_list): Do not delete a thread if is
10797 the last thread of the process.
10798 * thread.c (thread_select): Call delete_exited_threads instead of
10799 prune_threads.
10800
6ad82919
TBA
108012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10802
10803 * infrun.c (stop_all_threads): Enable/disable thread events of all
10804 targets. Move a debug message denoting the end of the function
10805 into the SCOPED_EXIT block.
10806
d890404b
TBA
108072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10808
10809 * process-stratum-target.h: Include <set>.
10810 (all_non_exited_process_targets, switch_to_target_no_thread): New
10811 function declarations.
10812 * process-stratum-target.c (all_non_exited_process_targets)
10813 (switch_to_target_no_thread): New function implementations.
10814
293b3ebc
TBA
108152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10816
10817 * infrun.c (handle_inferior_event): Extract out a piece of code
10818 into...
10819 (mark_non_executing_threads): ...this new function.
10820
7ca9b62a
TBA
108212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10822
10823 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10824 use.
10825
fc75c28b
TBA
108262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10827
10828 * regcache.c (regcache_read_pc_protected): New function
10829 implementation that returns 0 if the PC cannot read via
10830 'regcache_read_pc'.
10831 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10832 instead of 'regcache_read_pc'.
10833 (keep_going_pass_signal): Ditto.
10834
a89febbd
TT
108352020-05-13 Tom Tromey <tromey@adacore.com>
10836
10837 * ada-lang.c (align_value): Remove.
10838 (ada_template_to_fixed_record_type_1): Use align_up.
10839
f7e23710
TBA
108402020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10841
10842 * async-event.c: Update the copyright year.
10843 * async-event.h: Update the copyright year.
10844
02ff80c2
SM
108452020-05-12 Simon Marchi <simon.marchi@efficios.com>
10846
10847 * objfiles.h (is_addr_in_objfile,
10848 shared_objfile_contains_address_p): Return bool.
10849 * objfile.c (is_addr_in_objfile,
10850 shared_objfile_contains_address_p): Return bool.
10851
4fd6c7e8
TT
108522020-05-11 Tom Tromey <tromey@adacore.com>
10853
10854 * cli/cli-cmds.c (info_command): Restore.
10855 (_initialize_cli_cmds): Use add_prefix_command for "info".
10856 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10857
5eb68a39
TT
108582020-05-11 Tom Tromey <tromey@adacore.com>
10859
10860 * ada-lang.c (ada_value_primitive_field): Now public.
10861 * ada-lang.h (ada_value_primitive_field): Declare.
10862 * ada-valprint.c (print_field_values): Use
10863 ada_value_primitive_field for wrapper fields.
10864
7666722f
TV
108652020-05-11 Tom de Vries <tdevries@suse.de>
10866
10867 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10868 MODULE_DOMAIN.
10869
3ee6bb11
TV
108702020-05-11 Tom de Vries <tdevries@suse.de>
10871
10872 PR symtab/25941
10873 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10874 with length 0, if not gdb-produced.
10875 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10876
43434996
TV
108772020-05-09 Tom de Vries <tdevries@suse.de>
10878
10879 PR gdb/25955
10880 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10881 calculation.
10882
2f78cffc
TT
108832020-05-09 Tom Tromey <tom@tromey.com>
10884
10885 * top.c (server_command): Now bool.
10886 * top.h (server_command): Now bool.
10887
4f7bc5ed
TT
108882020-05-08 Tom Tromey <tromey@adacore.com>
10889
10890 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10891 already being processed.
10892
8be4b118
TT
108932020-05-08 Tom Tromey <tom@tromey.com>
10894
10895 * printcmd.c (struct display) <next>: Remove.
10896 <display>: New constructor.
10897 <exp_string>: Now a std::string.
10898 <enabled_p>: Now a bool.
10899 (display_number): Move definition earlier.
10900 (displays): Rename from display_chain. Now a std::vector.
10901 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10902 (display_command): Update.
10903 (do_one_display, disable_display)
10904 (enable_disable_display_command, do_enable_disable_display):
10905 Update.
10906 (free_display): Remove.
10907 (clear_displays): Rewrite.
10908 (delete_display): Update.
10909 (map_display_numbers): Use function_view. Remove "data"
10910 parameter. Update.
10911 (do_delete_display): Remove.
10912 (undisplay_command): Update.
10913 (do_one_display, do_displays, disable_display)
10914 (info_display_command): Update.
10915 (do_enable_disable_display): Remove.
10916 (enable_disable_display_command)
10917 (clear_dangling_display_expressions): Update.
10918
94c93c35
TT
109192020-05-08 Tom Tromey <tom@tromey.com>
10920
10921 * symtab.c (set_symbol_cache_size)
10922 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10923 (maintenance_print_symbol_cache_statistics): Update.
10924 * symmisc.c (print_symbol_bcache_statistics)
10925 (print_objfile_statistics, maintenance_print_objfiles)
10926 (maintenance_info_symtabs, maintenance_check_symtabs)
10927 (maintenance_expand_symtabs, maintenance_info_line_tables):
10928 Update.
10929 * symfile-debug.c (set_debug_symfile): Update.
10930 * source.c (forget_cached_source_info): Update.
10931 * python/python.c (gdbpy_progspaces): Update.
10932 * psymtab.c (maintenance_info_psymtabs): Update.
10933 * probe.c (parse_probes): Update.
10934 * linespec.c (iterate_over_all_matching_symtabs)
10935 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10936 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10937 * exec.c (exec_target::close): Update.
10938 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10939 * breakpoint.c (print_one_breakpoint_location)
10940 (create_longjmp_master_breakpoint)
10941 (create_std_terminate_master_breakpoint): Update.
10942 * progspace.c (program_spaces): Now a std::vector.
10943 (maybe_new_address_space): Update.
10944 (add_program_space): Remove.
10945 (program_space::program_space): Update.
10946 (remove_program_space): Update.
10947 (number_of_program_spaces): Remove.
10948 (print_program_space, update_address_spaces): Update.
10949 * progspace.h (program_spaces): Change type.
10950 (ALL_PSPACES): Remove.
10951 (number_of_program_spaces): Don't declare.
10952 (struct program_space) <next>: Remove.
10953
a1fd1ac9
TT
109542020-05-08 Tom Tromey <tom@tromey.com>
10955
10956 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10957 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10958 (enable_break): Update.
10959 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10960 (frv_fdpic_find_canonical_descriptor): Update.
10961 (frv_fetch_objfile_link_map): Update.
10962 * progspace.c (program_space::free_all_objfiles): Update.
10963 (program_space::solibs): New method.
10964 * progspace.h (struct program_space) <solibs>: New method.
10965 * solist.h (master_so_list): Don't declare.
10966 (ALL_SO_LIBS): Remove.
10967 * solib.h (so_list_head): Remove.
10968 (update_solib_list): Update comment.
10969 * solib.c (master_so_list): Remove.
10970 (solib_used, update_solib_list, solib_add)
10971 (info_sharedlibrary_command, clear_solib)
10972 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10973
38eae084
TT
109742020-05-08 Tom Tromey <tom@tromey.com>
10975
10976 * extension.c (extension_languages): Now a std::array.
10977 (ALL_EXTENSION_LANGUAGES): Remove.
10978 (get_ext_lang_defn, get_ext_lang_of_file)
10979 (eval_ext_lang_from_control_command): Update.
10980 (finish_ext_lang_initialization)
10981 (auto_load_ext_lang_scripts_for_objfile)
10982 (ext_lang_type_printers::ext_lang_type_printers)
10983 (apply_ext_lang_type_printers)
10984 (ext_lang_type_printers::~ext_lang_type_printers)
10985 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10986 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10987 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10988 (get_matching_xmethod_workers, ext_lang_colorize)
10989 (ext_lang_before_prompt): Update.
10990 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10991
596dc4ad
TT
109922020-05-08 Tom Tromey <tom@tromey.com>
10993
10994 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10995 overload.
10996 <swap_string, m_string>: Remove.
10997 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10998 Update.
10999 * stabsread.c (define_symbol, read_type): Update.
11000 * linespec.c (find_linespec_symbols): Update.
11001 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11002 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11003 * dbxread.c (read_dbx_symtab): Update.
11004 * cp-support.h (cp_canonicalize_string_full)
11005 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11006 Return unique_xmalloc_ptr.
11007 * cp-support.c (inspect_type): Update.
11008 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11009 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11010 Likewise.
11011 * c-typeprint.c (print_name_maybe_canonical): Update.
11012 * break-catch-throw.c (check_status_exception_catchpoint):
11013 Update.
11014
bf4cb9be
TV
110152020-05-08 Tom de Vries <tdevries@suse.de>
11016
11017 * infrun.c (follow_fork): Copy current_line and current_symtab to
11018 child thread.
11019
a1b68f28
SM
110202020-05-07 Simon Marchi <simon.marchi@efficios.com>
11021
11022 * async-event.c (struct async_signal_handler, struct
11023 async_event_handler): Reformat, remove typedef.
11024
98d48915
SM
110252020-05-07 Simon Marchi <simon.marchi@efficios.com>
11026
11027 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11028 access thistype->main_type->dyn_prop_list directly.
11029
7aa91313
SM
110302020-05-07 Simon Marchi <simon.marchi@efficios.com>
11031
11032 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11033 (remove_dyn_prop): Remove. Update all users to use
11034 type::remove_dyn_prop.
11035 * gdbtypes.c (remove_dyn_prop): Rename to...
11036 (type::remove_dyn_prop): ... this.
11037
5c54719c
SM
110382020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11039
11040 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11041 (add_dyn_prop): Remove. Update all users to use
11042 type::add_dyn_prop.
11043 * gdbtypes.c (add_dyn_prop): Rename to...
11044 (type::add_dyn_prop): ... this.
11045
24e99c6c
SM
110462020-05-07 Simon Marchi <simon.marchi@efficios.com>
11047
11048 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11049 (get_dyn_prop): Remove. Update all users to use
11050 type::dyn_prop.
11051 * gdbtypes.c (get_dyn_prop): Rename to...
11052 (type::dyn_prop): ... this.
11053
0d4bf016
SM
110542020-05-06 Simon Marchi <simon.marchi@efficios.com>
11055
11056 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11057
ac4a4f1c
SM
110582020-05-06 Simon Marchi <simon.marchi@efficios.com>
11059
11060 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11061 instruction, skip it if it's there.
11062
a3bbacc1
SM
110632020-05-05 Simon Marchi <simon.marchi@efficios.com>
11064
11065 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11066
c3236f84
SM
110672020-05-04 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11070 * gdbtypes.c (recursive_dump_type): Remove use of
11071 TYPE_INCOMPLETE.
11072
3b6acaee
TT
110732020-05-03 Tom Tromey <tom@tromey.com>
11074
11075 * breakpoint.c (catch_command, tcatch_command): Remove.
11076 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11077 add_show_prefix_cmd.
11078 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11079 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11080 Remove.
11081 (add_internal_problem_command): Use add_basic_prefix_cmd,
11082 add_show_prefix_cmd.
11083 * mips-tdep.c (set_mipsfpu_command): Remove.
11084 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11085 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11086 (_initialize_index_cache): Use add_basic_prefix_cmd.
11087 * memattr.c (dummy_cmd): Remove.
11088 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11089 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11090 (_initialize_tui_win): Use add_basic_prefix_cmd,
11091 add_show_prefix_cmd.
11092 * cli/cli-logging.c (set_logging_command): Remove.
11093 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11094 add_show_prefix_cmd.
11095 (show_logging_command): Remove.
11096 * target.c (target_command): Remove.
11097 (add_target): Use add_basic_prefix_cmd.
11098
a51119cd
HD
110992020-05-02 Hannes Domani <ssbssa@yahoo.de>
11100
11101 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11102
652fc23a 111032020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11104
652fc23a
PW
11105 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11106 info_command.
11107
117539e6
KR
111082020-04-30 Kamil Rytarowski <n54@gmx.com>
11109
11110 * nbsd-nat.c (nbsd_enable_proc_events)
11111 (nbsd_nat_target::post_startup_inferior): Add.
11112 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11113 (nbsd_nat_target::update_thread_list): Rewrite.
11114 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11115 "PTRACE_LWP_CREATE".
11116 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11117
102e38eb 111182020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11119
102e38eb
PW
11120 * stack.c (_initialize_stack): Remove duplicated creation
11121 of "frame" command and "f" alias.
11122
ee9d1e5f
HD
111232020-04-30 Hannes Domani <ssbssa@yahoo.de>
11124
11125 PR gdb/18706
11126 * gdbtypes.c (check_typedef): Calculate size of array of
11127 stubbed type.
11128
627c7fb8
HD
111292020-04-30 Hannes Domani <ssbssa@yahoo.de>
11130
11131 PR gdb/15559
11132 * i386-tdep.c (i386_push_dummy_call): Call
11133 i386_thiscall_push_dummy_call.
11134 (i386_thiscall_push_dummy_call): New function.
11135 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11136 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11137 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11138
ffc2844e
SM
111392020-04-29 Simon Marchi <simon.marchi@efficios.com>
11140
11141 * gdbarch.sh (do_read): Add shellcheck disable directive for
11142 warning SC2162.
11143
1207375d
SM
111442020-04-29 Simon Marchi <simon.marchi@efficios.com>
11145
11146 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11147 "referenced but not assigned" warning.
11148
9fdb2916
SM
111492020-04-29 Simon Marchi <simon.marchi@efficios.com>
11150
11151 * gdbarch.sh: Remove code that sets fallbackdefault.
11152
759cea5e
SM
111532020-04-29 Simon Marchi <simon.marchi@efficios.com>
11154
11155 * gdbarch.sh: Use shell operators && and || instead of
11156 -a and -o.
11157
cb02ab24
SM
111582020-04-29 Simon Marchi <simon.marchi@efficios.com>
11159
11160 * gdbarch.sh: Use $(...) instead of `...`.
11161
a6fc5ffc
SM
111622020-04-29 Simon Marchi <simon.marchi@efficios.com>
11163
11164 * gdbarch.sh: Use double quotes around variables.
11165
8d113d13
SM
111662020-04-29 Simon Marchi <simon.marchi@efficios.com>
11167
11168 * gdbarch.sh: Use %s with printf, instead of variables in the
11169 format string.
11170
ed6acedd
TT
111712020-04-29 Tom Tromey <tromey@adacore.com>
11172
11173 PR ada/25875:
11174 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11175 type fields here.
11176 (read_enumeration_type): Call
11177 update_enumeration_type_from_children later. Update comments.
11178 (process_enumeration_scope): Don't create type fields.
11179
b68b1b58
KR
111802020-04-29 Kamil Rytarowski <n54@gmx.com>
11181
11182 * nbsd-tdep.c: Include "xml-syscall.h".
11183 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11184
f94b2e03
KR
111852020-04-29 Kamil Rytarowski <n54@gmx.com>
11186
11187 * nbsd-nat.c: Include "sys/wait.h".
11188 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11189 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11190 (nbsd_nat_target::remove_exec_catchpoint)
11191 (nbsd_nat_target::set_syscall_catchpoint): Add.
11192 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11193 (nbsd_nat_target::insert_exec_catchpoint)
11194 (nbsd_nat_target::remove_exec_catchpoint)
11195 (nbsd_nat_target::set_syscall_catchpoint): Add.
11196 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11197 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11198 `nbsd_get_syscall_number'.
11199
fc49bc72
TT
112002020-04-29 Tom Tromey <tom@tromey.com>
11201
11202 * stack.c (print_block_frame_labels): Remove.
11203
d642b692
HD
112042020-04-29 Hannes Domani <ssbssa@yahoo.de>
11205
11206 PR gdb/17320
11207 * ada-valprint.c (val_print_packed_array_elements): Move array
11208 end bracket to new line.
11209 (ada_val_print_string): Remove extra spaces before first array
11210 element.
11211 * c-valprint.c (c_value_print_array): Likewise.
11212 * m2-valprint.c (m2_print_array_contents): Likewise.
11213 (m2_value_print_inner): Likewise.
11214 * p-valprint.c (pascal_value_print_inner): Likewise.
11215 * valprint.c (generic_val_print_array): Likewise.
11216 (value_print_array_elements): Move first array element and array
11217 end bracket to new line.
11218
ea90f227
TV
112192020-04-29 Tom de Vries <tdevries@suse.de>
11220
11221 PR symtab/25889
11222 * linespec.c (find_method): Fix ix calculation.
11223
4498ef4f
KR
112242020-04-28 Kamil Rytarowski <n54@gmx.com>
11225
11226 * syscalls/update-netbsd.sh: New file.
11227 * syscalls/netbsd.xml: Regenerate.
11228 * data-directory/Makefile.in: Register `netbsd.xml' in
11229 `SYSCALLS_FILES'.
11230
a55e30b5
SM
112312020-04-28 Simon Marchi <simon.marchi@efficios.com>
11232
11233 * syscalls/update-freebsd.sh: Add double quotes.
11234
2b2fbab8
TT
112352020-04-28 Tom Tromey <tom@tromey.com>
11236
11237 * NEWS: Update.
11238 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11239 (cmdpy_init): Allow class_tui.
11240
a65189c9
TV
112412020-04-28 Mark Williams <mark@myosotissp.com>
11242
11243 PR gdb/24480
11244 * dwarf2read.c: Add missing assingments to list_in_scope when
11245 start_symtab was already called.
11246
1b95cdb7
SM
112472020-04-28 Simon Marchi <simon.marchi@efficios.com>
11248
11249 PR gdb/25881
11250 * dwarf2/read.c (offset_map_type): Use
11251 gdb:hash_enum<sect_offset> as hash function.
11252
15cd93d0
TV
112532020-04-28 Tom de Vries <tdevries@suse.de>
11254
11255 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11256 with DW_AT_signature.
11257
1eb39914
SM
112582020-04-27 Simon Marchi <simon.marchi@efficios.com>
11259
11260 * configure.ac: Remove check for fs_base/gs_base in
11261 user_regs_struct.
11262 * configure: Re-generate.
11263 * config.in: Re-generate.
11264 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11265 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11266 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11267
991a3e2e
LM
112682020-04-27 Luis Machado <luis.machado@linaro.org>
11269
11270 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11271 problematic inline frame unwinding situation.
11272 * frame.c (frame_id_computed_p): New function.
11273 * frame.h (frame_id_computed_p): New prototype.
11274
361ba0e8
TT
112752020-04-26 Tom Tromey <tom@tromey.com>
11276
11277 * command.h (enum command_class) <class_pseudo>: Remove.
11278
bc3609fd
PW
112792020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11280
11281 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11282 and whitespace.
11283
b9771db7
KR
112842020-04-25 Kamil Rytarowski <n54@gmx.com>
11285
ec16513e
SM
11286 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11287 `PT_GET_PROCESS_STATE' block.
b9771db7 11288
7151c1af
TT
112892020-04-24 Tom Tromey <tom@tromey.com>
11290
11291 * symtab.h (symbol_get_demangled_name): Don't declare.
11292 * symtab.c (symbol_get_demangled_name): Remove.
11293 (general_symbol_info::natural_name)
11294 (general_symbol_info::demangled_name): Update.
11295
906bb4c5
TT
112962020-04-24 Tom Tromey <tom@tromey.com>
11297
11298 PR rust/25025:
11299 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11300
bcfe6157
TT
113012020-04-24 Tom Tromey <tom@tromey.com>
11302
11303 PR symtab/12707:
11304 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11305 exists.
11306 (new_symbol): Likewise.
11307 * compile/compile-object-load.c (get_out_value_type): Use
11308 symbol_matches_search_name.
11309
f049a313
TT
113102020-04-24 Tom Tromey <tom@tromey.com>
11311
11312 * dwarf2/read.c (add_partial_symbol): Do not call
11313 compute_and_set_names.
11314
76e288d1
TT
113152020-04-24 Tom Tromey <tom@tromey.com>
11316
11317 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11318 overload.
11319
2467f4f6
TT
113202020-04-24 Tom Tromey <tom@tromey.com>
11321
11322 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11323 (add_psymbol_to_list): New overload. Make old overload call new
11324 one.
11325 * psympriv.h (add_psymbol_to_list): New overload.
11326
e61108c9
TT
113272020-04-24 Tom Tromey <tom@tromey.com>
11328
11329 * dwarf2/read.c (partial_die_info::read) <case
11330 DW_AT_linkage_name>: Use value_as_string.
11331 (dwarf2_string_attr): Use value_as_string.
11332 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11333 method.
11334 * dwarf2/attribute.c (attribute::value_as_string): New method.
11335
8c87a452
TT
113362020-04-24 Tom Tromey <tom@tromey.com>
11337
11338 * symtab.c (general_symbol_info::natural_name)
11339 (general_symbol_info::demangled_name): Check for language_rust.
11340
787de330
TT
113412020-04-24 Tom Tromey <tom@tromey.com>
11342
11343 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11344 (dwarf2_physname): ... from here.
11345 (partial_die_info::read): Add Rust "{" hack.
11346
ff985671
TT
113472020-04-24 Tom Tromey <tom@tromey.com>
11348
11349 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11350 method.
11351 (symbol_set_demangled_name): Don't declare.
11352 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11353 symbol_set_demangled_name.
11354 (general_symbol_info::set_language)
11355 (general_symbol_info::compute_and_set_names): Update.
11356 * minsyms.c (minimal_symbol_reader::install): Update.
11357 * dwarf2/read.c (new_symbol): Update.
11358
1acda803
TT
113592020-04-24 Tom Tromey <tromey@adacore.com>
11360
11361 PR python/23662:
11362 * python/py-type.c (convert_field): Handle
11363 FIELD_LOC_KIND_DWARF_BLOCK.
11364 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11365 (typy_get_dynamic): Nw function.
11366 (type_object_getset): Add "dynamic".
11367 * NEWS: Add entry.
11368
d656f129
TT
113692020-04-24 Tom Tromey <tromey@adacore.com>
11370
11371 * ada-typeprint.c (print_choices, print_variant_part)
11372 (print_record_field_types_dynamic): New functions.
11373 (print_record_field_types): Use print_record_field_types_dynamic.
11374
7d79de9a
TT
113752020-04-24 Tom Tromey <tromey@adacore.com>
11376
11377 * dwarf2/read.c (handle_data_member_location): New overload.
11378 (dwarf2_add_field): Use it.
11379 (decode_locdesc): Add "computed" parameter. Update comment.
11380 * gdbtypes.c (is_dynamic_type_internal): Also look for
11381 FIELD_LOC_KIND_DWARF_BLOCK.
11382 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11383 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11384 virtual base classes.
11385 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11386 FIELD_LOC_KIND_DWARF_BLOCK.
11387
f8e89861
TT
113882020-04-24 Tom Tromey <tromey@adacore.com>
11389
11390 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11391 * gdbtypes.c (is_dynamic_type_internal): Check
11392 TYPE_HAS_DYNAMIC_LENGTH.
11393 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11394 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11395 New macros.
11396 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11397 constant.
11398
9c6a1327
TT
113992020-04-24 Tom Tromey <tromey@adacore.com>
11400
11401 * dwarf2/read.c (struct variant_field): Rewrite.
11402 (struct variant_part_builder): New.
11403 (struct nextfield): Remove "variant" field. Add "offset".
11404 (struct field_info): Add "current_variant_part" and
11405 "variant_parts".
11406 (alloc_discriminant_info): Remove.
11407 (alloc_rust_variant): New function.
11408 (quirk_rust_enum): Update.
11409 (dwarf2_add_field): Set "offset" member. Don't handle
11410 DW_TAG_variant_part.
11411 (offset_map_type): New typedef.
11412 (convert_variant_range, create_one_variant)
11413 (create_one_variant_part, create_variant_parts)
11414 (add_variant_property): New functions.
11415 (dwarf2_attach_fields_to_type): Call add_variant_property.
11416 (read_structure_type): Don't handle DW_TAG_variant_part.
11417 (handle_variant_part, handle_variant): New functions.
11418 (handle_struct_member_die): Use them.
11419 (process_structure_scope): Don't handle variant parts.
11420 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11421 (struct discriminant_info): Remove.
11422 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11423 (struct main_type) <flag_discriminated_union>: Remove.
11424 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11425 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11426 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11427 Update.
11428 * valops.c (value_union_variant): Remove.
11429 * value.h (value_union_variant): Don't declare.
11430
b249d2c2
TT
114312020-04-24 Tom Tromey <tromey@adacore.com>
11432
11433 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11434 (ada_value_primitive_packed_val): Update.
11435 * ada-valprint.c (ada_value_print_1): Update.
11436 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11437 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11438 just an address. Use evaluate_for_locexpr_baton.
11439 (dwarf2_evaluate_property): Update.
11440 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11441 array_view.
11442 * findvar.c (default_read_var_value): Update.
11443 * gdbtypes.c (compute_variant_fields_inner)
11444 (resolve_dynamic_type_internal): Update.
11445 (resolve_dynamic_type): Change type of valaddr parameter.
11446 * gdbtypes.h (resolve_dynamic_type): Update.
11447 * valarith.c (value_subscripted_rvalue): Update.
11448 * value.c (value_from_contents_and_address): Update.
11449
61122aa9
TT
114502020-04-24 Tom Tromey <tromey@adacore.com>
11451
11452 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11453 "push_initial_value" parameter.
11454 (dwarf2_evaluate_property): Likewise.
11455 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11456
ef83a141
TT
114572020-04-24 Tom Tromey <tromey@adacore.com>
11458
11459 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11460 (variant::matches, compute_variant_fields_recurse)
11461 (compute_variant_fields_inner, compute_variant_fields): New
11462 functions.
11463 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11464 Use resolved_type after type is made.
11465 (operator==): Add new cases.
11466 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11467 (struct discriminant_range, struct variant, struct variant_part):
11468 New.
11469 (union dynamic_prop_data) <variant_parts, original_type>: New
11470 members.
11471 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11472 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11473 constants.
11474 * value.c (unpack_bits_as_long): Now public.
11475 * value.h (unpack_bits_as_long): Declare.
11476
675127ec
TT
114772020-04-24 Tom Tromey <tromey@adacore.com>
11478
11479 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11480 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11481
9852ceef
HD
114822020-04-24 Hannes Domani <ssbssa@yahoo.de>
11483
11484 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11485
7632c6ce
KR
114862020-04-24 Kamil Rytarowski <n54@gmx.com>
11487
11488 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11489 (remove_fork_catchpoint, post_startup_inferior)
11490 (post_attach): Move...
11491 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11492 (remove_fork_catchpoint, post_startup_inferior)
11493 (post_attach): ...here.
11494 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11495 (remove_fork_catchpoint, post_startup_inferior)
11496 (post_attach): Move...
11497 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11498 (remove_fork_catchpoint, post_startup_inferior)
11499 (post_attach): ...here.
11500
7be2bb4f
TT
115012020-04-24 Tom Tromey <tromey@adacore.com>
11502
11503 * nat/windows-nat.h (struct windows_thread_info)
11504 <pc_adjusted>: New member.
11505 * windows-nat.c (windows_fetch_one_register): Check
11506 pc_adjusted.
11507 (windows_nat_target::get_windows_debug_event)
11508 (windows_nat_target::wait): Set pc_adjusted.
11509
f80cb3b4
TV
115102020-04-24 Tom de Vries <tdevries@suse.de>
11511
11512 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11513 Run gdb-add-index inside temp dir.
11514
29514b87
TT
115152020-04-23 Tom Tromey <tromey@adacore.com>
11516
11517 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11518 in loop.
11519
5939967b
LM
115202020-04-23 Luis Machado <luis.machado@linaro.org>
11521
11522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11523 get_frame_register instead of gdbarch_unwind_pc.
11524
70bc38f5
TV
115252020-04-23 Tom de Vries <tdevries@suse.de>
11526
11527 * symtab.c (lookup_global_symbol): Prefer def over decl.
11528
de82891c
TV
115292020-04-23 Tom de Vries <tdevries@suse.de>
11530
11531 PR symtab/25807
11532 * block.c (best_symbol, better_symbol): Promote to external.
11533 * block.h (best_symbol, better_symbol): Declare.
11534 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11535 decl.
11536
ecc6c606
TT
115372020-04-23 Tom Tromey <tromey@adacore.com>
11538
11539 PR ada/25837:
11540 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11541 "const char *", not a "const std::string &".
11542 <name_and_matcher::operator==>: Update.
11543 * unittests/lookup_name_info-selftests.c: Change type of
11544 "result".
11545
740480b8
TT
115462020-04-23 Tom Tromey <tom@tromey.com>
11547
11548 * inferior.h (iterate_over_inferiors): Don't declare.
11549 * inferior.c (iterate_over_inferiors): Remove.
11550 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11551 Remove.
11552 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11553 use iterate_over_inferiors.
11554 (darwin_resume_inferior_it)
11555 (struct resume_inferior_threads_param)
11556 (darwin_resume_inferior_threads_it): Remove.
11557 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11558
ae3ab1f0
TV
115592020-04-23 Tom de Vries <tdevries@suse.de>
11560
11561 * blockframe.c (find_pc_partial_function): Use
11562 find_pc_sect_compunit_symtab rather than
11563 objfile->sf->qf->find_pc_sect_compunit_symtab.
11564
317d2668
TV
115652020-04-22 Tom de Vries <tdevries@suse.de>
11566
11567 PR symtab/25764
11568 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11569 in psymtabs.
11570
eea9e357
TV
115712020-04-22 Tom de Vries <tdevries@suse.de>
11572
11573 PR symtab/25801
11574 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11575 symtabs.
11576
3d5afab3
TV
115772020-04-22 Tom de Vries <tdevries@suse.de>
11578
11579 PR symtab/25700
11580 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11581 CU if already created.
11582
d43b7a2d
TBA
115832020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11584
11585 * infrun.c (displaced_step_fixup): Switch to the event_thread
11586 before calling displaced_step_restore, not after.
11587
d89edf9b
MM
115882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11589
11590 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11591 its inferior is not recorded by us.
11592 (record_btrace_target_open): Replace call to
11593 all_non_exited_threads () with call to current_inferior
11594 ()->non_exited_threads ().
11595 (record_btrace_target::stop_recording): Likewise.
11596 (record_btrace_target::close): Likewise.
11597 (record_btrace_target::wait): Likewise.
11598 (record_btrace_target::record_stop_replaying): Likewise.
11599
5897fd49
MM
116002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11601
11602 * btrace.c (btrace_enable): Throw an error on double enables and
11603 when enabling recording fails.
11604 (btrace_disable): Throw an error if the thread is not recorded.
11605
1a476b6d
MM
116062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11607
11608 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11609 request if we do not have a thread_info.
11610
4778a5f8
TV
116112020-04-21 Tom de Vries <tdevries@suse.de>
11612
11613 PR gdb/25471
11614 * thread.c
11615 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11616 exception in get_frame_id.
11617
0fa7617d
TT
116182020-04-20 Tom Tromey <tromey@adacore.com>
11619
11620 * python/python.c (struct gdbpy_event): Mark move constructor as
11621 noexcept.
11622 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11623 constructor as noexcept.
11624 * completer.h (struct completion_result): Mark move constructor as
11625 noexcept.
11626 * completer.c (completion_result::completion_result): Use
11627 initialization style. Don't call reset_match_list.
11628
ad23bda0
MS
116292020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11630
11631 * MAINTAINERS (Write After Approval): Add myself.
11632
45e1f031
TT
116332020-04-18 Tom Tromey <tom@tromey.com>
11634
11635 * windows-tdep.c (init_w32_command_list)
11636 (w32_prefix_command_valid): Restore.
11637 (_initialize_windows_tdep): Call init_w32_command_list.
11638
08feed99
TT
116392020-04-18 Tom Tromey <tom@tromey.com>
11640
11641 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11642 * value.c (value_fn_field): Update.
11643 * valops.c (find_function_in_inferior)
11644 (value_allocate_space_in_inferior): Update.
11645 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11646 Update.
11647 * tui/tui-source.c (tui_source_window::set_contents): Update.
11648 * symtab.c (lookup_global_or_static_symbol)
11649 (find_function_start_sal_1, skip_prologue_sal)
11650 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11651 * symmisc.c (dump_msymbols, dump_symtab_1)
11652 (maintenance_print_one_line_table): Update.
11653 * symfile.c (init_entry_point_info, section_is_mapped)
11654 (list_overlays_command, simple_read_overlay_table)
11655 (simple_overlay_update_1): Update.
11656 * stap-probe.c (handle_stap_probe): Update.
11657 * stabsread.c (dbx_init_float_type, define_symbol)
11658 (read_one_struct_field, read_enum_type, read_range_type): Update.
11659 * source.c (info_line_command): Update.
11660 * python/python.c (gdbpy_source_objfile_script)
11661 (gdbpy_execute_objfile_script): Update.
11662 * python/py-type.c (save_objfile_types): Update.
11663 * python/py-objfile.c (py_free_objfile): Update.
11664 * python/py-inferior.c (python_new_objfile): Update.
11665 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11666 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11667 (maintenance_check_psymtabs): Update.
11668 * printcmd.c (info_address_command): Update.
11669 * objfiles.h (struct objfile) <arch>: New method, from
11670 get_objfile_arch.
11671 (get_objfile_arch): Don't declare.
11672 * objfiles.c (get_objfile_arch): Remove.
11673 (filter_overlapping_sections): Update.
11674 * minsyms.c (msymbol_is_function): Update.
11675 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11676 (output_nondebug_symbol): Update.
11677 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11678 (mdebug_expand_psymtab): Update.
11679 * machoread.c (macho_add_oso_symfile): Update.
11680 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11681 Update.
11682 * linux-fork.c (checkpoint_command): Update.
11683 * linespec.c (convert_linespec_to_sals): Update.
11684 * jit.c (finalize_symtab): Update.
11685 * infrun.c (insert_exception_resume_from_probe): Update.
11686 * ia64-tdep.c (ia64_find_unwind_table): Update.
11687 * hppa-tdep.c (internalize_unwinds): Update.
11688 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11689 Update.
11690 * gcore.c (call_target_sbrk): Update.
11691 * elfread.c (record_minimal_symbol, elf_symtab_read)
11692 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11693 (elf_gnu_ifunc_resolve_by_got): Update.
11694 * dwarf2/read.c (create_addrmap_from_index)
11695 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11696 (read_debug_names_from_section)
11697 (process_psymtab_comp_unit_reader, add_partial_symbol)
11698 (add_partial_subprogram, process_full_comp_unit)
11699 (read_file_scope, read_func_scope, read_lexical_block_scope)
11700 (read_call_site_scope, dwarf2_ranges_read)
11701 (dwarf2_record_block_ranges, dwarf2_add_field)
11702 (mark_common_block_symbol_computed, read_tag_pointer_type)
11703 (read_tag_string_type, dwarf2_init_float_type)
11704 (dwarf2_init_complex_target_type, read_base_type)
11705 (partial_die_info::read, partial_die_info::read)
11706 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11707 (dwarf2_fetch_die_loc_sect_off): Update.
11708 * dwarf2/loc.c (dwarf2_find_location_expression)
11709 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11710 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11711 (dwarf2_loc_desc_get_symbol_read_needs)
11712 (locexpr_describe_location_piece, locexpr_describe_location_1)
11713 (loclist_describe_location): Update.
11714 * dwarf2/index-write.c (write_debug_names): Update.
11715 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11716 * dtrace-probe.c (dtrace_process_dof): Update.
11717 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11718 (process_one_symbol): Update.
11719 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11720 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11721 (coff_read_enum_type): Update.
11722 * cli/cli-cmds.c (edit_command, list_command): Update.
11723 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11724 * breakpoint.c (create_overlay_event_breakpoint)
11725 (create_longjmp_master_breakpoint)
11726 (create_std_terminate_master_breakpoint)
11727 (create_exception_master_breakpoint, get_sal_arch): Update.
11728 * block.c (block_gdbarch): Update.
11729 * annotate.c (annotate_source_line): Update.
11730
0743fc83
TT
117312020-04-17 Tom Tromey <tromey@adacore.com>
11732
11733 * auto-load.c (show_auto_load_cmd): Remove.
11734 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11735 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11736 (maintenance_print_arc_command): Remove.
11737 * tui/tui-win.c (tui_command): Remove.
11738 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11739 * tui/tui-layout.c (tui_layout_command): Remove.
11740 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11741 * python/python.c (user_set_python, user_show_python): Remove.
11742 (_initialize_python): Use add_basic_prefix_cmd,
11743 add_show_prefix_cmd.
11744 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11745 (install_gdb_commands): Use add_basic_prefix_cmd,
11746 add_show_prefix_cmd.
11747 (info_guile_command): Remove.
11748 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11749 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11750 add_show_prefix_cmd.
11751 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11752 Remove do_set and do_show parameters.
11753 * cli/cli-style.c (set_style, show_style): Remove.
11754 (_initialize_cli_style): Use add_basic_prefix_cmd,
11755 add_show_prefix_cmd.
11756 (cli_style_option::add_setshow_commands): Remove do_set and
11757 do_show parameters.
11758 (cli_style_option::add_setshow_commands): Use
11759 add_basic_prefix_cmd, add_show_prefix_cmd.
11760 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11761 (set_style_name): Remove.
11762 * cli/cli-dump.c (dump_command, append_command): Remove.
11763 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11764 (tekhex_dump_command, binary_dump_command)
11765 (binary_append_command): Remove.
11766 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11767 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11768 (init_w32_command_list): Remove; move into ...
11769 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11770 * valprint.c (set_print, show_print, set_print_raw)
11771 (show_print_raw): Remove.
11772 (_initialize_valprint): Use add_basic_prefix_cmd,
11773 add_show_prefix_cmd.
11774 * typeprint.c (set_print_type, show_print_type): Remove.
11775 (_initialize_typeprint): Use add_basic_prefix_cmd,
11776 add_show_prefix_cmd.
11777 * record.c (set_record_command, show_record_command): Remove.
11778 (_initialize_record): Use add_basic_prefix_cmd,
11779 add_show_prefix_cmd.
11780 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11781 add_show_prefix_cmd.
11782 (info_command, show_command, set_debug, show_debug): Remove.
11783 * top.h (set_history, show_history): Don't declare.
11784 * top.c (set_history, show_history): Remove.
11785 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11786 (unset_tdesc_cmd): Remove.
11787 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11788 add_show_prefix_cmd.
11789 * symtab.c (info_module_command): Remove.
11790 (_initialize_symtab): Use add_basic_prefix_cmd.
11791 * symfile.c (overlay_command): Remove.
11792 (_initialize_symfile): Use add_basic_prefix_cmd.
11793 * sparc64-tdep.c (info_adi_command): Remove.
11794 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11795 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11796 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11797 add_show_prefix_cmd.
11798 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11799 (_initialize_serial): Use add_basic_prefix_cmd,
11800 add_show_prefix_cmd.
11801 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11802 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11803 add_show_prefix_cmd.
11804 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11805 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11806 add_show_prefix_cmd.
11807 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11808 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11809 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11810 add_show_prefix_cmd.
11811 * remote.c (remote_command, set_remote_cmd): Remove.
11812 (_initialize_remote): Use add_basic_prefix_cmd.
11813 * record-full.c (set_record_full_command)
11814 (show_record_full_command): Remove.
11815 (_initialize_record_full): Use add_basic_prefix_cmd,
11816 add_show_prefix_cmd.
11817 * record-btrace.c (cmd_set_record_btrace)
11818 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11819 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11820 (cmd_show_record_btrace_pt): Remove.
11821 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11822 add_show_prefix_cmd.
11823 * ravenscar-thread.c (set_ravenscar_command)
11824 (show_ravenscar_command): Remove.
11825 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11826 add_show_prefix_cmd.
11827 * mips-tdep.c (show_mips_command, set_mips_command)
11828 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11829 add_show_prefix_cmd.
11830 * maint.c (maintenance_command, maintenance_info_command)
11831 (maintenance_check_command, maintenance_print_command)
11832 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11833 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11834 add_show_prefix_cmd.
11835 (show_per_command_cmd): Remove.
11836 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11837 Remove.
11838 (maintenance_show_test_settings_cmd): Remove.
11839 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11840 add_show_prefix_cmd.
11841 * maint-test-options.c (maintenance_test_options_command):
11842 Remove.
11843 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11844 * macrocmd.c (macro_command): Remove
11845 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11846 * language.c (set_check, show_check): Remove.
11847 (_initialize_language): Use add_basic_prefix_cmd,
11848 add_show_prefix_cmd.
11849 * infcmd.c (unset_command): Remove.
11850 (_initialize_infcmd): Use add_basic_prefix_cmd.
11851 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11852 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11853 add_show_prefix_cmd.
11854 * go32-nat.c (go32_info_dos_command): Remove.
11855 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11856 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11857 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11858 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11859 (_initialize_frame): Use add_basic_prefix_cmd,
11860 add_show_prefix_cmd.
11861 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11862 (_initialize_dcache): Use add_basic_prefix_cmd,
11863 add_show_prefix_cmd.
11864 * cp-support.c (maint_cplus_command): Remove.
11865 (_initialize_cp_support): Use add_basic_prefix_cmd.
11866 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11867 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11868 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11869 add_basic_prefix_cmd, add_show_prefix_cmd.
11870 * breakpoint.c (save_command): Remove.
11871 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11872 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11873 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11874 add_show_prefix_cmd.
11875 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11876 (set_ada_command, show_ada_command): Remove.
11877 (_initialize_ada_language): Use add_basic_prefix_cmd,
11878 add_show_prefix_cmd.
11879 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11880
3557f442
KR
118812020-04-16 Kamil Rytarowski <n54@gmx.com>
11882
11883 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11884 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11885
16197208
SM
118862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11887
11888 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11889 warning messages.
11890
00ac85d3
SM
118912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11892
11893 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11894 import table is not at beginning of .idata section.
11895
381ce63f
PA
118962020-04-16 Pedro Alves <palves@redhat.com>
11897
11898 * inferior.c (delete_inferior): Use delete operator directly
11899 instead of delete_program_space.
11900 * progspace.c (add_program_space): New, factored out from
11901 program_space::program_space.
11902 (remove_program_space): New, factored out from
11903 delete_program_space.
11904 (program_space::program_space): Remove intro comment. Rewrite.
11905 (program_space::~program_space): Remove intro comment. Call
11906 remove_program_space.
11907 (delete_program_space): Delete.
11908 * progspace.h (program_space::program_space): Make explicit. Move
11909 intro comment here, adjusted.
11910 (program_space::~program_space): Move intro comment here,
11911 adjusted.
11912 (delete_program_space): Remove.
11913
a010605f
TT
119142020-04-16 Tom Tromey <tromey@adacore.com>
11915
11916 * windows-nat.c (windows_nat::handle_access_violation): New
11917 function.
11918 * nat/windows-nat.h (handle_access_violation): Declare.
11919 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11920 windows-nat.c. Call handle_access_violation.
11921
efba5c23
TV
119222020-04-16 Tom de Vries <tdevries@suse.de>
11923
11924 PR symtab/25791
11925 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11926 CUs without psymtab.
11927
97ed802d
KB
119282020-04-16 Kevin Buettner <kevinb@redhat.com>
11929
11930 * python/python.c (do_start_initialization): Don't call
11931 PyEval_InitThreads for Python 3.9 and beyond.
11932
c7d64809
KR
119332020-04-15 Kamil Rytarowski <n54@gmx.com>
11934
11935 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11936 thread functions.
11937 (obsd_nat_target::wait): Likewise.
11938
ce127a96
TT
119392020-04-15 Tom Tromey <tromey@adacore.com>
11940
11941 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11942 (DEBUG_EXCEPT): Use debug_printf.
11943
99f1bc6a
AB
119442020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11945
11946 * completer.c (class completion_tracker::completion_hash_entry)
11947 <hash_name>: New member function.
11948 (completion_tracker::discard_completions): New callback to hash a
11949 completion_hash_entry, pass this to htab_create_alloc.
11950
a0e9b532
JT
119512016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11952
11953 * windows-nat.c (windows_make_so): Warn rather than stopping with
11954 an error if realpath() fails.
11955
06ca5dd4
KR
119562020-04-14 Kamil Rytarowski <n54@gmx.com>
11957
11958 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11959 (nbsd_nat_target::info_proc): Add do_status.
11960
194d088f
TV
119612020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11962 Tom de Vries <tdevries@suse.de>
11963
11964 PR symtab/25718
11965 * psympriv.h (struct partial_symtab::read_symtab)
11966 (struct partial_symtab::expand_psymtab)
11967 (struct partial_symtab::read_dependencies): Update comments.
11968 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11969 read_symtab for includer.
11970 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11971 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11972 (struct dwarf2_include_psymtab::m_readin): Remove.
11973 (struct dwarf2_include_psymtab::includer): New member function.
11974 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11975
c1a66c06
TV
119762020-04-14 Tom de Vries <tdevries@suse.de>
11977
11978 PR symtab/25720
11979 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11980 with NULL symbol_matcher and lookup_name.
11981 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11982 and lookup_name.
11983 * dwarf2/read.c (dw2_expand_symtabs_matching)
11984 (dw2_debug_names_expand_symtabs_matching): Same.
11985 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11986 Make lookup_name a pointer. Update comment.
11987 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11988 lookup_name being a pointer.
11989 * symfile.c (expand_symtabs_matching): Same.
11990 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11991 * linespec.c (iterate_over_all_matching_symtabs): Same.
11992
400b5eca
TT
119932020-04-13 Tom Tromey <tom@tromey.com>
11994
11995 * run-on-main-thread.c: Update include.
11996 * unittests/main-thread-selftests.c: Update include.
11997 * tui/tui-win.c: Update include.
11998 * tui/tui-io.c: Update include.
11999 * tui/tui-interp.c: Update include.
12000 * tui/tui-hooks.c: Update include.
12001 * top.h: Update include.
12002 * top.c: Update include.
12003 * ser-base.c: Update include.
12004 * remote.c: Update include.
12005 * remote-notif.c: Update include.
12006 * remote-fileio.c: Update include.
12007 * record-full.c: Update include.
12008 * record-btrace.c: Update include.
12009 * python/python.c: Update include.
12010 * posix-hdep.c: Update include.
12011 * mingw-hdep.c: Update include.
12012 * mi/mi-main.c: Update include.
12013 * mi/mi-interp.c: Update include.
12014 * main.c: Update include.
12015 * linux-nat.c: Update include.
12016 * interps.c: Update include.
12017 * infrun.c: Update include.
12018 * inf-loop.c: Update include.
12019 * event-top.c: Update include.
12020 * event-loop.c: Move to ../gdbsupport/.
12021 * event-loop.h: Move to ../gdbsupport/.
12022 * async-event.h: Update include.
12023 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12024
93b54c8e
TT
120252020-04-13 Tom Tromey <tom@tromey.com>
12026
12027 * tui/tui-win.c: Include async-event.h.
12028 * remote.c: Include async-event.h.
12029 * remote-notif.c: Include async-event.h.
12030 * record-full.c: Include async-event.h.
12031 * record-btrace.c: Include async-event.h.
12032 * infrun.c: Include async-event.h.
12033 * event-top.c: Include async-event.h.
12034 * event-loop.h: Move some declarations to async-event.h.
12035 * event-loop.c: Don't include ser-event.h or top.h. Move some
12036 code to async-event.c.
12037 * async-event.h: New file.
12038 * async-event.c: New file.
12039 * Makefile.in (COMMON_SFILES): Add async-event.c.
12040 (HFILES_NO_SRCDIR): Add async-event.h.
12041
c1cd3163
TT
120422020-04-13 Tom Tromey <tom@tromey.com>
12043
12044 * utils.c (flush_streams): New function.
12045 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12046
29f2bf4f
TT
120472020-04-13 Tom Tromey <tom@tromey.com>
12048
12049 * event-loop.c (handle_file_event): Use warning, not
12050 printf_unfiltered.
12051
98029d02
TT
120522020-04-13 Tom Tromey <tom@tromey.com>
12053
12054 * event-loop.c: Include <chrono>.
12055
06cc9596
TT
120562020-04-13 Tom Tromey <tom@tromey.com>
12057
12058 * gdb_select.h: Move to ../gdbsupport/.
12059 * event-loop.c: Update include path.
12060 * top.c: Update include path.
12061 * ser-base.c: Update include path.
12062 * ui-file.c: Update include path.
12063 * ser-tcp.c: Update include path.
12064 * guile/scm-ports.c: Update include path.
12065 * posix-hdep.c: Update include path.
12066 * ser-unix.c: Update include path.
12067 * gdb_usleep.c: Update include path.
12068 * mingw-hdep.c: Update include path.
12069 * inflow.c: Update include path.
12070 * infrun.c: Update include path.
12071 * event-top.c: Update include path.
12072
8ae8e197
TT
120732020-04-13 Tom Tromey <tom@tromey.com>
12074
12075 * configure: Rebuild.
12076 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12077
58cf28e8
TT
120782020-04-13 Tom Tromey <tom@tromey.com>
12079
12080 * event-loop.h (start_event_loop): Don't declare.
12081 * event-loop.c (start_event_loop): Move...
12082 * main.c (start_event_loop): ...here. Now static.
12083
b7f999ae
SDJ
120842020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12085
12086 * MAINTAINERS: Update my email address.
12087
1085dfd4
KR
120882020-04-12 Kamil Rytarowski <n54@gmx.com>
12089
12090 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12091 IP_ALL.
12092
49d1d1f5
KR
120932020-04-12 Kamil Rytarowski <n54@gmx.com>
12094
12095 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12096 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12097
b4848d2a
KR
120982020-04-12 Kamil Rytarowski <n54@gmx.com>
12099
12100 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12101 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12102
51c133d5
KR
121032020-04-12 Kamil Rytarowski <n54@gmx.com>
12104
12105 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12106
54b8cbd0
KR
121072020-04-11 Kamil Rytarowski <n54@gmx.com>
12108
12109 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12110 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12111 (nbsd_nat_target::info_proc): New functions.
12112 * nbsd-nat.c (kinfo_get_vmmap): New function.
12113 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12114 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12115 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12116 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12117 functions.
12118 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12119 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12120 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12121 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12122 (KINFO_VME_FLAG_GROWS_DOWN): New.
12123
cf83625d
AS
121242020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12125
12126 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12127 bit shift.
12128
0c4311ab
TT
121292020-04-10 Tom Tromey <tromey@adacore.com>
12130
12131 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12132
3e65b3e9
TT
121332020-04-10 Tom Tromey <tromey@adacore.com>
12134
12135 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12136 separate debug files.
12137
13302e95
HD
121382020-04-10 Hannes Domani <ssbssa@yahoo.de>
12139
12140 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12141 Move to...
12142 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12143 ... here.
12144 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12145 Check for STATUS_WX86_BREAKPOINT.
12146 (windows_nat_target::wait): Same.
12147
bdfc1e8a
TV
121482020-04-10 Tom de Vries <tdevries@suse.de>
12149
12150 PR cli/25808
12151 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12152
f4460aec
SM
121532020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12154
12155 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12156 (Write After Approval): Remove Tom de Vries.
12157
a25198bb
BE
121582020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12159
12160 revert partially:
12161 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12162
aac66a4c
SM
12163 * buildsym.c (record_line): Fix undefined behavior and preserve
12164 lines at eof.
a25198bb 12165
206c98a6
KR
121662020-04-09 Kamil Rytarowski <n54@gmx.com>
12167
12168 * auxv.h (svr4_auxv_parse): New.
12169 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12170 and generic_auxv_parse.
12171 (svr4_auxv_parse): Add.
12172 * obsd-tdep.c: Include "auxv.h".
12173 (obsd_auxv_parse): Remove.
12174 (obsd_init_abi): Remove comment.
12175 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12176 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12177 * nbsd-tdep.c: Include "auxv.h".
12178 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12179
71fbdbaf
TT
121802020-04-08 Tom Tromey <tromey@adacore.com>
12181
12182 * nat/windows-nat.h (last_wait_event): Don't declare.
12183 (wait_for_debug_event): Update comment.
12184 * nat/windows-nat.c (last_wait_event): Now static.
12185
2c1d95e8
TT
121862020-04-08 Tom Tromey <tromey@adacore.com>
12187
12188 * windows-nat.c (wait_for_debug_event): Move to
12189 nat/windows-nat.c.
12190 * nat/windows-nat.h (wait_for_debug_event): Declare.
12191 * nat/windows-nat.c (wait_for_debug_event): Move from
12192 windows-nat.c. No longer static.
12193
d2977bc4
TT
121942020-04-08 Tom Tromey <tromey@adacore.com>
12195
12196 * windows-nat.c (get_windows_debug_event): Use
12197 fetch_pending_stop.
12198 * nat/windows-nat.h (fetch_pending_stop): Declare.
12199 * nat/windows-nat.c (fetch_pending_stop): New function.
12200
e758e19c
TT
122012020-04-08 Tom Tromey <tromey@adacore.com>
12202
12203 * windows-nat.c (windows_continue): Use matching_pending_stop and
12204 continue_last_debug_event.
12205 * nat/windows-nat.h (matching_pending_stop)
12206 (continue_last_debug_event): Declare.
12207 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12208 (matching_pending_stop, continue_last_debug_event): New
12209 functions.
12210
8d30e395
TT
122112020-04-08 Tom Tromey <tromey@adacore.com>
12212
12213 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12214 (handle_exception_result): Move to nat/windows-nat.h.
12215 (DEBUG_EXCEPTION_SIMPLE): Remove.
12216 (windows_nat::handle_ms_vc_exception): New function.
12217 (handle_exception): Move to nat/windows-nat.c.
12218 (get_windows_debug_event): Update.
12219 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12220 nat/windows-nat.c.
12221 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12222 (handle_exception_result): Move from windows-nat.c.
12223 (handle_exception): Declare.
12224 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12225 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12226 windows-nat.c.
12227
29de418d
TT
122282020-04-08 Tom Tromey <tromey@adacore.com>
12229
12230 * windows-nat.c (exception_count, event_count): Remove.
12231 (handle_exception, get_windows_debug_event)
12232 (do_initial_windows_stuff): Update.
12233
a816ba18
TT
122342020-04-08 Tom Tromey <tromey@adacore.com>
12235
12236 * windows-nat.c (windows_nat::handle_load_dll)
12237 (windows_nat::handle_unload_dll): Rename. No longer static.
12238 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12239 Declare.
12240
a00caa12
TT
122412020-04-08 Tom Tromey <tromey@adacore.com>
12242
12243 * complaints.h (stop_whining): Declare at top-level.
12244 (complaint): Don't declare stop_whining.
12245
d41b524f
TT
122462020-04-08 Tom Tromey <tromey@adacore.com>
12247
12248 * windows-nat.c (windows_nat::handle_output_debug_string):
12249 Rename. No longer static.
12250 * nat/windows-nat.h (handle_output_debug_string): Declare.
12251
3c76026d
TT
122522020-04-08 Tom Tromey <tromey@adacore.com>
12253
12254 * windows-nat.c (current_process_handle, current_process_id)
12255 (main_thread_id, last_sig, current_event, last_wait_event)
12256 (current_windows_thread, desired_stop_thread_id, pending_stops)
12257 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12258 (display_selectors, fake_create_process)
12259 (get_windows_debug_event): Update.
12260 * nat/windows-nat.h (current_process_handle, current_process_id)
12261 (main_thread_id, last_sig, current_event, last_wait_event)
12262 (current_windows_thread, desired_stop_thread_id, pending_stops)
12263 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12264 * nat/windows-nat.c (current_process_handle, current_process_id)
12265 (main_thread_id, last_sig, current_event, last_wait_event)
12266 (current_windows_thread, desired_stop_thread_id, pending_stops)
12267 (siginfo_er): New globals. Move from windows-nat.c.
12268
9d8679cc
TT
122692020-04-08 Tom Tromey <tromey@adacore.com>
12270
12271 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12272 (handle_load_dll): Update.
12273 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12274
28688adf
TT
122752020-04-08 Tom Tromey <tromey@adacore.com>
12276
12277 * windows-nat.c (enum thread_disposition_type): Move to
12278 nat/windows-nat.h.
12279 (windows_nat::thread_rec): Rename from thread_rec. No longer
12280 static.
12281 (windows_add_thread, windows_nat_target::fetch_registers)
12282 (windows_nat_target::store_registers, handle_exception)
12283 (windows_nat_target::resume, get_windows_debug_event)
12284 (windows_nat_target::get_tib_address)
12285 (windows_nat_target::thread_name)
12286 (windows_nat_target::thread_alive): Update.
12287 * nat/windows-nat.h (enum thread_disposition_type): Move from
12288 windows-nat.c.
12289 (thread_rec): Declare.
12290
4834dad0
TT
122912020-04-08 Tom Tromey <tromey@adacore.com>
12292
12293 * windows-nat.c: Add "using namespace".
12294 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12295 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12296
65bafd5b
TT
122972020-04-08 Tom Tromey <tromey@adacore.com>
12298
12299 * nat/windows-nat.h (struct windows_thread_info): Declare
12300 destructor.
12301 * nat/windows-nat.c (~windows_thread_info): New.
12302
0a4afda3
TT
123032020-04-08 Tom Tromey <tromey@adacore.com>
12304
12305 PR gdb/22992
12306 * windows-nat.c (current_event): Update comment.
12307 (last_wait_event, desired_stop_thread_id): New globals.
12308 (struct pending_stop): New.
12309 (pending_stops): New global.
12310 (windows_nat_target) <stopped_by_sw_breakpoint>
12311 <supports_stopped_by_sw_breakpoint>: New methods.
12312 (windows_fetch_one_register): Add assertions. Adjust PC.
12313 (windows_continue): Handle pending stops. Suspend other threads
12314 when stepping. Use last_wait_event
12315 (wait_for_debug_event): New function.
12316 (get_windows_debug_event): Use wait_for_debug_event. Handle
12317 pending stops. Queue spurious stops.
12318 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12319 (windows_nat_target::kill): Use wait_for_debug_event.
12320 * nat/windows-nat.h (struct windows_thread_info)
12321 <stopped_at_software_breakpoint>: New field.
12322 * nat/windows-nat.c (windows_thread_info::resume): Clear
12323 stopped_at_software_breakpoint.
12324
8e61ebec
TT
123252020-04-08 Tom Tromey <tromey@adacore.com>
12326
12327 * windows-nat.c (enum thread_disposition_type): New.
12328 (thread_rec): Replace "get_context" parameter with "disposition";
12329 change type.
12330 (windows_add_thread, windows_nat_target::fetch_registers)
12331 (windows_nat_target::store_registers, handle_exception)
12332 (windows_nat_target::resume, get_windows_debug_event)
12333 (windows_nat_target::get_tib_address)
12334 (windows_nat_target::thread_name)
12335 (windows_nat_target::thread_alive): Update.
12336
98a03287
TT
123372020-04-08 Tom Tromey <tromey@adacore.com>
12338
12339 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12340 (windows_continue): Use windows_continue::resume.
12341 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12342 resume>: Declare new methods.
12343 * nat/windows-nat.c: New file.
12344 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12345
7c7411bc
TT
123462020-04-08 Tom Tromey <tromey@adacore.com>
12347
12348 * windows-nat.c (windows_add_thread, windows_delete_thread)
12349 (windows_nat_target::fetch_registers)
12350 (windows_nat_target::store_registers, fake_create_process)
12351 (windows_nat_target::resume, windows_nat_target::resume)
12352 (get_windows_debug_event, windows_nat_target::wait)
12353 (windows_nat_target::pid_to_str)
12354 (windows_nat_target::get_tib_address)
12355 (windows_nat_target::get_ada_task_ptid)
12356 (windows_nat_target::thread_name)
12357 (windows_nat_target::thread_alive): Use lwp, not tid.
12358
2950fdf7
TT
123592020-04-08 Tom Tromey <tromey@adacore.com>
12360
12361 * windows-nat.c (handle_exception)
12362 (windows_nat_target::thread_name): Update.
12363 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12364 <name>: Now unique_xmalloc_ptr.
12365
62fe396b
TT
123662020-04-08 Tom Tromey <tromey@adacore.com>
12367
12368 * windows-nat.c (thread_rec)
12369 (windows_nat_target::fetch_registers): Update.
12370 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12371 Update comment.
12372 <debug_registers_changed, reload_context>: Now bool.
12373
e9534bd2
TT
123742020-04-08 Tom Tromey <tromey@adacore.com>
12375
12376 * windows-nat.c (windows_add_thread): Use new.
12377 (windows_init_thread_list, windows_delete_thread): Use delete.
12378 (get_windows_debug_event): Update.
12379 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12380 destructor, and initializers.
12381
ae1f8880
TT
123822020-04-08 Tom Tromey <tromey@adacore.com>
12383
12384 * windows-nat.c (struct windows_thread_info): Remove.
12385 * nat/windows-nat.h: New file.
12386
55a1e039
TT
123872020-04-08 Tom Tromey <tromey@adacore.com>
12388
12389 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12390 (thread_rec, windows_add_thread, windows_delete_thread)
12391 (windows_continue): Update.
12392
93366324
TT
123932020-04-08 Tom Tromey <tromey@adacore.com>
12394
12395 * windows-nat.c (struct windows_thread_info): Remove typedef.
12396 (thread_head): Remove.
12397 (thread_list): New global.
12398 (thread_rec, windows_add_thread, windows_init_thread_list)
12399 (windows_delete_thread, windows_continue): Update.
12400
0f2265e2
SM
124012020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12402
12403 * windows-tdep.h (windows_init_abi): Add comment.
12404 (cygwin_init_abi): New declaration.
12405 * windows-tdep.c: Split signal enumeration in two, one for
12406 Windows and one for Cygwin.
12407 (windows_gdb_signal_to_target): Only deal with signal of the
12408 Windows OS ABI.
12409 (cygwin_gdb_signal_to_target): New function.
12410 (windows_init_abi): Rename to windows_init_abi_common, don't set
12411 gdb_signal_to_target gdbarch method. Add new new function with
12412 this name.
12413 (cygwin_init_abi): New function.
12414 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12415 comment. Don't call windows_init_abi.
12416 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12417 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12418 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12419 i386_windows_init_abi_common, don't call windows_init_abi. Add
12420 a new function of this name.
12421 (i386_cygwin_init_abi): New function.
12422 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12423 OS ABI Cygwin.
12424
3810f182
SM
124252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12426
12427 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12428 parameter.c.
12429 (dwarf2_read_gdb_index): Update.
12430
063f8e80
KR
124312020-04-07 Kamil Rytarowski <n54@gmx.com>
12432
12433 * nbsd-tdep.c: Include "objfiles.h".
12434 (nbsd_skip_solib_resolver): New.
12435 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12436
85a9510c 124372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12438
12439 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12440 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12441 with DW_LLE_base_addressx are being emitted in DWARFv5.
12442 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12443 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12444 unsigned integer.
12445
9fc3eaae 124462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12447
12448 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12449 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12450 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12451 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12452 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12453 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12454 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12455
12456
41144253 124572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12458
12459 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12460 (read_loclist_index): New function definition.
12461 (lookup_loclist_base): New function definition.
12462 (read_loclist_header): New function definition.
12463 (dwarf2_cu): Add loclist_base and loclist_header field.
12464 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12465 (read_full_die_1): Read the value of DW_AT_loclists_base.
12466 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12467 (read_attribute_value): Handle DW_FORM_loclistx.
12468 (skip_one_die): Handle DW_FORM_loclistx.
12469 (loclist_header): New structure declaration.
12470 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12471
9f4e76a4
SM
124722020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12473
12474 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12475 constructor. Remove `addr` parameter from other constructor and
12476 add `per_cu` parameter.
12477 * dwarf2/read.c (create_partial_symtab): Update.
12478
25c11aca
TV
124792020-04-07 Tom de Vries <tdevries@suse.de>
12480
12481 PR symtab/25796
12482 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12483 (partial_die_info::fixup): Inherit has_const_value.
12484
5707e24b
TV
124852020-04-07 Tom de Vries <tdevries@suse.de>
12486
12487 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12488 symbols without address.
12489
05f00e22
KR
124902020-04-06 Kamil Rytarowski <n54@gmx.com>
12491
12492 * nbsd-nat.h (struct thread_info): Add forward declaration.
12493 (nbsd_nat_target::thread_alive): Add.
12494 (nbsd_nat_target::thread_name): Likewise.
12495 (nbsd_nat_target::update_thread_list): Likewise.
12496 (update_thread_list::post_attach): Likewise.
12497 (post_attach::pid_to_str): Likewise.
12498 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12499 (nbsd_thread_lister): Add.
12500 (nbsd_nat_target::thread_alive): Likewise.
12501 (nbsd_nat_target::thread_name): Likewise.
12502 (nbsd_add_threads): Likewise.
12503 (update_thread_list::post_attach): Likewise.
12504 (nbsd_nat_target::update_thread_list): Likewise.
12505 (post_attach::pid_to_str): Likewise.
12506
6ee448cc
TT
125072020-04-06 Tom Tromey <tromey@adacore.com>
12508
12509 * ada-valprint.c (print_variant_part): Extract the variant field.
12510 (print_field_values): Use the field as the outer value when
12511 recursing.
12512
dea34e8c
TT
125132020-04-06 Tom Tromey <tromey@adacore.com>
12514
12515 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12516 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12517 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12518 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12519 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12520
93689ce9
TT
125212020-04-06 Tom Tromey <tromey@adacore.com>
12522
12523 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12524 TYPE_CODE_ERROR.
12525
79743962
KR
125262020-04-06 Kamil Rytarowski <n54@gmx.com>
12527
12528 * nbsd-tdep.c: Include "gdbarch.h".
12529 Define enum with NetBSD signal numbers.
12530 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12531 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12532 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12533 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12534 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12535 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12536 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12537 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12538 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12539 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12540 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12541 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12542
9e7c9a03
HD
125432020-04-03 Hannes Domani <ssbssa@yahoo.de>
12544
12545 PR gdb/25325
12546 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12547
d9e49b61
TT
125482020-04-03 Tom Tromey <tromey@adacore.com>
12549
12550 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12551 Read constant block.
12552
e0fc5c3f
SM
125532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12554
12555 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12556 (gdb_bfd_get_full_section_contents): New declaration.
12557 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12558 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12559 gdb_bfd_get_full_section_contents.
12560
e2ff18a0
SM
125612020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12562
12563 * exec.c (build_section_table): Replace internal_error with
12564 gdb_assert.
12565 (section_table_xfer_memory_partial): Likewise.
12566 * mdebugread.c (parse_partial_symbols): Likewise.
12567 * psymtab.c (lookup_partial_symbol): Likewise.
12568 * utils.c (wrap_here): Likewise.
12569
0830d301
TT
125702020-04-02 Tom Tromey <tromey@adacore.com>
12571
12572 * f-lang.c (build_fortran_types): Use arch_type to initialize
12573 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12574
e7da7f8f
TT
125752020-04-02 Tom Tromey <tromey@adacore.com>
12576
12577 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12578 of attributes.
12579
c90d28ac
AB
125802020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12581 Bernd Edlinger <bernd.edlinger@hotmail.de>
12582 Tom Tromey <tromey@adacore.com>
12583
12584 * buildsym.c (buildsym_compunit::record_line): Remove
12585 deduplication code.
12586
1aa98955
TV
125872020-04-02 Tom de Vries <tdevries@suse.de>
12588
12589 PR ada/24671
12590 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12591
d3214198
TV
125922020-04-02 Tom de Vries <tdevries@suse.de>
12593
12594 * dwarf2/read.c (dwarf2_gdb_index_functions,
12595 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12596 NULL.
12597 * psymtab.c (psym_lookup_global_symbol_language): New function.
12598 (psym_functions): Init psym_lookup_global_symbol_language with
12599 psym_lookup_global_symbol_language.
12600 * symfile-debug.c (debug_sym_quick_functions): Init
12601 lookup_global_symbol_language with NULL.
12602 * symfile.c (set_initial_language): Remove fixme comment.
12603 * symfile.h (struct quick_symbol_functions): Add
12604 lookup_global_symbol_language.
12605 * symtab.c (find_quick_global_symbol_language): New function.
12606 (find_main_name): Use find_quick_global_symbol_language.
12607
2836752f
SM
126082020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12609
12610 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12611
64dc2d4b
BE
126122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12613
12614 * buildsym.c (record_line): Fix undefined behavior and preserve
12615 lines at eof.
12616
bbe3dc41
BE
126172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12618
12619 * buildsym.c (record_line): Fix the resizing condition.
12620
6b4a335b
TT
126212020-04-01 Tom Tromey <tom@tromey.com>
12622
12623 * value.h (value_literal_complex): Add comment.
12624 * valops.c (value_literal_complex): Refer to value.h.
12625
3638a098
TT
126262020-04-01 Tom Tromey <tom@tromey.com>
12627
12628 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12629 (scalar_type): New rule, from typebase.
12630 (typebase): Use scalar_type. Recognize complex types.
12631 (field_name): Handle FLOAT_KEYWORD.
12632 (ident_tokens): Add _Complex and __complex__.
12633
c34e8714
TT
126342020-04-01 Tom Tromey <tom@tromey.com>
12635
12636 PR exp/25299:
12637 * valarith.c (promotion_type, complex_binop): New functions.
12638 (scalar_binop): Handle complex numbers. Use promotion_type.
12639 (value_pos, value_neg, value_complement): Handle complex numbers.
12640
fa649bb7
TT
126412020-04-01 Tom Tromey <tom@tromey.com>
12642
12643 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12644 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12645 (parse_number): Handle complex numbers.
12646
981c08ce
TT
126472020-04-01 Tom Tromey <tom@tromey.com>
12648
12649 * c-valprint.c (c_decorations): Change complex suffix to "i".
12650
4c99290d
TT
126512020-04-01 Tom Tromey <tom@tromey.com>
12652
12653 * valprint.c (generic_value_print_complex): Use accessors.
12654 * value.h (value_real_part, value_imaginary_part): Declare.
12655 * valops.c (value_real_part, value_imaginary_part): New
12656 functions.
12657 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12658
5b930b45
TT
126592020-04-01 Tom Tromey <tom@tromey.com>
12660
12661 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12662 (read_range_type): Update.
12663 * mdebugread.c (basic_type): Update.
12664 * go-lang.c (build_go_types): Use init_complex_type.
12665 * gdbtypes.h (struct main_type) <complex_type>: New member.
12666 (init_complex_type): Update.
12667 (arch_complex_type): Don't declare.
12668 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12669 Make name if none given. Use alloc_type_copy. Look for cached
12670 complex type.
12671 (arch_complex_type): Remove.
12672 (gdbtypes_post_init): Use init_complex_type.
12673 * f-lang.c (build_fortran_types): Use init_complex_type.
12674 * dwarf2/read.c (read_base_type): Update.
12675 * d-lang.c (build_d_types): Use init_complex_type.
12676 * ctfread.c (read_base_type): Update.
12677
53cccef1
TBA
126782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12679
12680 * infrun.c (stop_all_threads): Update assertion, plus when
12681 stopping threads, take into account that we might be trying
12682 to stop an all-stop target.
12683 (stop_waiting): Call 'stop_all_threads' if there exists a
12684 non-stop target.
12685
a0714d30
TBA
126862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12687
12688 * target.h (exists_non_stop_target): New function declaration.
12689 * target.c (exists_non_stop_target): New function.
12690
60e22c1e
HD
126912020-04-01 Hannes Domani <ssbssa@yahoo.de>
12692
12693 PR gdb/24789
12694 * eval.c (is_integral_or_integral_reference): New function.
12695 (evaluate_subexp_standard): Allow integer references in
12696 pointer arithmetic.
12697
e139a727
TBA
126982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12699
12700 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12701 check for no ptid in the stop reply when the target is non-stop.
12702
e0802d59
TT
127032020-04-01 Tom Tromey <tromey@adacore.com>
12704
12705 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12706 "name" parameter to rvalue reference. Initialize m_name_holder.
12707 <lookup_name_info>: New overloads.
12708 <name>: Return gdb::string_view.
12709 <c_str>: New method.
12710 <make_ignore_params>: Update.
12711 <search_name_hash>: Update.
12712 <language_lookup_name>: Return const char *.
12713 <m_name>: Change type.
12714 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12715 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12716 (lookup_name_info::match_any): Update.
12717 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12718 Update.
12719 * minsyms.c (linkage_name_str): Update.
12720 * language.c (default_symbol_name_matcher): Update.
12721 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12722 Update.
12723 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12724 (ada_lookup_name_info::ada_lookup_name_info): Update.
12725 (literal_symbol_name_matcher): Update.
12726
8c072cb6
TT
127272020-04-01 Tom Tromey <tromey@adacore.com>
12728
12729 * psymtab.c (psymtab_search_name): Remove function.
12730 (psym_lookup_symbol): Create search name and lookup name here.
12731 (lookup_partial_symbol): Remove "name" parameter; add
12732 lookup_name.
12733 (psym_expand_symtabs_for_function): Update.
12734
6f29a534
TT
127352020-03-31 Joel Jones <joelkevinjones@gmail.com>
12736
12737 PR tui/25597:
12738 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12739
af62665e
TT
127402020-03-31 Tom Tromey <tromey@adacore.com>
12741
12742 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12743 memcpy.
12744
d1a89da5
NC
127452020-03-30 Nelson Chu <nelson.chu@sifive.com>
12746
12747 * features/riscv/32bit-csr.xml: Regenerated.
12748 * features/riscv/64bit-csr.xml: Regenerated.
12749
d8af9068
TT
127502020-03-30 Tom Tromey <tromey@adacore.com>
12751
12752 * ada-valprint.c (print_variant_part): Update.
12753 * ada-lang.h (ada_which_variant_applies): Update.
12754 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12755 outer_valaddr parameters; replace with "outer" value parameter.
12756 (to_fixed_variant_branch_type): Update.
12757
227c0bf4
PFC
127582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12759
12760 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12761 <list>. Remove inclusion of observable.h.
12762 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12763 (struct arch_lwp_info): New struct.
12764 (class ppc_linux_dreg_interface): New class.
12765 (struct ppc_linux_process_info): New struct.
12766 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12767 <low_new_clone, low_forget_process, low_prepare_to_resume>
12768 <copy_thread_dreg_state, mark_thread_stale>
12769 <mark_debug_registers_changed, register_hw_breakpoint>
12770 <clear_hw_breakpoint, register_wp, clear_wp>
12771 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12772 <num_memory_accesses, get_trigger_type>
12773 <create_watchpoint_request, hwdebug_point_cmp>
12774 <init_arch_lwp_info, get_arch_lwp_info>
12775 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12776 methods.
12777 <struct ptid_hash>: New inner struct.
12778 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12779 members.
12780 (saved_dabr_value, hwdebug_info, max_slots_number)
12781 (struct hw_break_tuple, struct thread_points, ppc_threads)
12782 (have_ptrace_hwdebug_interface)
12783 (hwdebug_find_thread_points_by_tid)
12784 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12785 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12786 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12787 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12788 use m_dreg_interface.
12789 (hwdebug_point_cmp): Change to...
12790 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12791 reference arguments instead of pointers.
12792 (ppc_linux_nat_target::ranged_break_num_registers): Use
12793 m_dreg_interface.
12794 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12795 m_dreg_interface. Call register_hw_breakpoint.
12796 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12797 m_dreg_interface. Call clear_hw_breakpoint.
12798 (get_trigger_type): Change to...
12799 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12800 comment.
12801 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12802 use m_dreg_interface. Call register_hw_breakpoint.
12803 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12804 use m_dreg_interface. Call clear_hw_breakpoint.
12805 (can_use_watchpoint_cond_accel): Change to...
12806 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12807 method. Update comment, use m_dreg_interface and
12808 m_process_info.
12809 (calculate_dvc): Change to...
12810 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12811 m_dreg_interface.
12812 (num_memory_accesses): Change to...
12813 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12814 (check_condition): Change to...
12815 (ppc_linux_nat_target::check_condition): ...this method.
12816 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12817 comment, use m_dreg_interface.
12818 (create_watchpoint_request): Change to...
12819 (ppc_linux_nat_target::create_watchpoint_request): ...this
12820 method. Use m_dreg_interface.
12821 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12822 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12823 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12824 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12825 (ppc_linux_nat_target::low_forget_process)
12826 (ppc_linux_nat_target::low_new_fork)
12827 (ppc_linux_nat_target::low_new_clone)
12828 (ppc_linux_nat_target::low_delete_thread)
12829 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12830 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12831 only call mark_thread_stale.
12832 (ppc_linux_thread_exit): Remove.
12833 (ppc_linux_nat_target::stopped_data_address): Change to...
12834 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12835 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12836 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12837 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12838 comment. Call low_stopped_data_address.
12839 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12840 m_dreg_interface.
12841 (ppc_linux_nat_target::masked_watch_num_registers): Use
12842 m_dreg_interface.
12843 (ppc_linux_nat_target::copy_thread_dreg_state)
12844 (ppc_linux_nat_target::mark_thread_stale)
12845 (ppc_linux_nat_target::mark_debug_registers_changed)
12846 (ppc_linux_nat_target::register_hw_breakpoint)
12847 (ppc_linux_nat_target::clear_hw_breakpoint)
12848 (ppc_linux_nat_target::register_wp)
12849 (ppc_linux_nat_target::clear_wp)
12850 (ppc_linux_nat_target::init_arch_lwp_info)
12851 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12852 (_initialize_ppc_linux_nat): Remove observer callback.
12853
4db10d8f
PFC
128542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12855
12856 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12857 (ppc_linux_nat_target::auxv_parse)
12858 (ppc_linux_nat_target::read_description)
12859 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12860 Move up.
12861
1310c1b0
PFC
128622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12863
12864 * linux-nat.h (low_new_clone): New method.
12865 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12866
69b037c3
SM
128672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12868
12869 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12870 (dbx_expand_psymtab): ... this.
12871 (start_psymtab): Update.
12872 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12873 (mdebug_expand_psymtab): ... this.
12874 (parse_partial_symbols): Update.
12875 (new_psymtab): Update.
12876 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12877 (xcoff_expand_psymtab): ... this.
12878 (xcoff_start_psymtab): Update.
12879
48993951
SM
128802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12881
12882 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12883 <expand_dependencies>: ... this.
12884 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12885 (partial_symtab::expand_dependencies): ... this.
12886 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12887 Update.
12888 (dwarf2_psymtab::expand_psymtab): Update.
12889 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12890 * mdebugread.c (psymtab_to_symtab_1): Update.
12891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12892
3ad83046
SM
128932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12894
12895 * psympriv.h (discard_psymtab): Remove.
12896 * dbxread.c (dbx_end_psymtab): Update.
12897 * xcoffread.c (xcoff_end_psymtab): Update.
12898
4d1b9ab6
TT
128992020-03-28 Tom Tromey <tom@tromey.com>
12900
12901 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12902 comment.
12903
f1749218
TT
129042020-03-28 Tom Tromey <tom@tromey.com>
12905
12906 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12907
ebea7626
HD
129082020-03-27 Hannes Domani <ssbssa@yahoo.de>
12909
12910 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12911
a879b4d5
JB
129122020-03-26 John Baldwin <jhb@FreeBSD.org>
12913
12914 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12915
0826b30a
TT
129162020-03-26 Tom Tromey <tom@tromey.com>
12917
12918 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12919 (mark_common_block_symbol_computed, read_tag_string_type)
12920 (attr_to_dynamic_prop, read_subrange_type): Update.
12921 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12922 to be methods on struct attribute.
12923 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12924 (read_call_site_scope, partial_die_info::read)
12925 (partial_die_info::read, lookup_die_type, follow_die_ref):
12926 Update.
12927 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12928 from dwarf2_get_ref_die_offset.
12929 (attribute::constant_value): New method, from
12930 dwarf2_get_attr_constant_value.
12931 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12932 Declare method.
12933 <constant_value>: New method.
12934
2b2558bf
TT
129352020-03-26 Tom Tromey <tom@tromey.com>
12936
12937 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12938 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12939 (dwarf_type_encoding_name): Move to stringify.c.
12940 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12941 * dwarf2/stringify.c: New file.
12942 * dwarf2/stringify.h: New file.
12943
eeb64781
TT
129442020-03-26 Tom Tromey <tom@tromey.com>
12945
12946 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12947 Rewrite.
12948
a39fdb41
TT
129492020-03-26 Tom Tromey <tom@tromey.com>
12950
12951 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12952 methods.
12953 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12954 (lookup_ranges_base): Likewise.
12955 (read_cutu_die_from_dwo, read_full_die_1): Update.
12956
436c571c
TT
129572020-03-26 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2/read.c (read_import_statement, read_file_scope)
12960 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12961 (read_lexical_block_scope, read_call_site_scope)
12962 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12963 (handle_struct_member_die, process_structure_scope)
12964 (update_enumeration_type_from_children)
12965 (process_enumeration_scope, read_array_type, read_common_block)
12966 (read_namespace, read_module, read_subroutine_type): Update.
12967 (sibling_die): Remove.
12968
052c8bb8
TT
129692020-03-26 Tom Tromey <tom@tromey.com>
12970
12971 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12972 (build_type_psymtabs_reader, read_structure_type)
12973 (read_enumeration_type, read_full_die_1): Update.
12974 (dwarf2_attr_no_follow): Move to die.h.
12975 * dwarf2/die.h (struct die_info) <attr>: New method.
12976
2b24b6e4
TT
129772020-03-26 Tom Tromey <tom@tromey.com>
12978
12979 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12980 <base_address>: Now an optional.
12981 (dwarf2_find_base_address, dwarf2_rnglists_process)
12982 (dwarf2_ranges_process, fill_in_loclist_baton)
12983 (dwarf2_symbol_mark_computed): Update.
12984
c2d50fd0
TT
129852020-03-26 Tom Tromey <tom@tromey.com>
12986
12987 * dwarf2/read.c (struct die_info): Move to die.h.
12988 * dwarf2/die.h: New file.
12989
0df7ad3a
TT
129902020-03-26 Tom Tromey <tom@tromey.com>
12991
12992 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12993 * dwarf2/read.c
12994 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12995 Move to line-header.c.
12996 (read_checked_initial_length_and_offset, read_formatted_entries):
12997 Likewise.
12998 (dwarf_decode_line_header): Split into two.
12999 * dwarf2/line-header.c
13000 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13001 Move from read.c.
13002 (read_checked_initial_length_and_offset, read_formatted_entries):
13003 Likewise.
13004 (dwarf_decode_line_header): New function, split from read.c.
13005
86c0bb4c
TT
130062020-03-26 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13009 Declare method.
13010 * dwarf2/read.c (read_attribute_value): Update.
13011 (dwarf2_per_objfile::read_line_string): Rename from
13012 read_indirect_line_string.
13013 (read_formatted_entries): Update.
13014
2ef46c2f
TT
130152020-03-26 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13018 variable.
13019
4f9c1eda
TT
130202020-03-26 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13023 const.
13024 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13025 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13026 parameter const.
13027
5a0e026f
TT
130282020-03-26 Tom Tromey <tom@tromey.com>
13029
13030 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13031 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13032 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13033 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13034
8844c11b
TT
130352020-03-26 Tom Tromey <tom@tromey.com>
13036
13037 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13038 file_names_size, file_full_name, file_file_name>: Use const.
13039 <file_name_at, file_names>: Add const overload.
13040 * dwarf2/line-header.c (line_header::file_file_name)
13041 (line_header::file_full_name): Update.
13042
c90ec28a
TT
130432020-03-26 Tom Tromey <tom@tromey.com>
13044
13045 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13046 (macro_start_file, consume_improper_spaces)
13047 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13048 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13049 (dwarf_decode_macros): Move to macro.c.
13050 * dwarf2/macro.c: New file.
13051 * dwarf2/macro.h: New file.
13052 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13053
4f44ae6c
TT
130542020-03-26 Tom Tromey <tom@tromey.com>
13055
13056 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13057 method.
13058 * dwarf2/section.c: New method. From
13059 read_indirect_string_at_offset_from.
13060 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13061 (read_indirect_string_at_offset_from): Move to section.c.
13062 (read_indirect_string_at_offset): Rewrite.
13063 (read_indirect_line_string_at_offset): Remove.
13064 (read_indirect_string, read_indirect_line_string)
13065 (dwarf_decode_macro_bytes): Update.
13066
a0194fa8
TT
130672020-03-26 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/section.h (struct dwarf2_section_info)
13070 <overload_complaint>: Declare.
13071 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13072 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13073 Rename from dwarf2_section_buffer_overflow_complaint.
13074 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13075 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13076
3d27bbdb
TT
130772020-03-26 Tom Tromey <tom@tromey.com>
13078
13079 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13080 Declare.
13081 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13082 Move from read.c.
13083 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13084 to section.c.
13085
9eac9650
TT
130862020-03-26 Tom Tromey <tom@tromey.com>
13087
13088 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13089
bf80d710
TT
130902020-03-26 Tom Tromey <tom@tromey.com>
13091
13092 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13093 "builder".
13094 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13095 parameter.
13096 (dwarf_decode_macros): Update.
13097
0314b390
TT
130982020-03-26 Tom Tromey <tom@tromey.com>
13099
13100 * dwarf2/read.c (read_attribute_value): Update.
13101 (read_indirect_string_from_dwz): Move to dwz.c; change into
13102 method.
13103 (dwarf_decode_macro_bytes): Update.
13104 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13105 * dwarf2/dwz.c: New file.
13106 * Makefile.in (COMMON_SFILES): Add dwz.c.
13107
9fda78b6
TT
131082020-03-26 Tom Tromey <tom@tromey.com>
13109
13110 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13111 * dwarf2/read.c: Add include.
13112 * dwarf2/index-write.c: Add include.
13113 * dwarf2/index-cache.c: Add include.
13114 * dwarf2/dwz.h: New file.
13115
33aa3c10
TT
131162020-03-25 Tom Tromey <tom@tromey.com>
13117
13118 * compile/compile-object-load.c (get_out_value_type): Mention
13119 correct symbol name in error message.
13120
d503b685
HD
131212020-03-25 Hannes Domani <ssbssa@yahoo.de>
13122
13123 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13124
7b1eff95
TV
131252020-03-25 Tom de Vries <tdevries@suse.de>
13126
13127 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13128 * symmisc.c (dump_symtab_1): Print user and includes fields.
13129 (maintenance_info_symtabs): Same.
13130
dd895392
AB
131312020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13132
13133 PR gdb/25534
13134 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13135 (riscv_regcache_cooked_write): New function.
13136 (riscv_push_dummy_call): Use new function.
13137 (riscv_return_value): Likewise.
13138
5ab2fbf1
SM
131392020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13140
13141 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13142 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13143 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13144 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13145 * infrun.c (follow_fork): Likewise.
13146 (follow_fork_inferior): Likewise.
13147 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13148 * linux-nat.h (class linux_nat_target): Likewise.
13149 * remote.c (class remote_target) <follow_fork>: Likewise.
13150 (remote_target::follow_fork): Likewise.
13151 * target-delegates.c: Re-generate.
13152 * target.c (default_follow_fork): Likewise.
13153 (target_follow_fork): Likewise.
13154 * target.h (struct target_ops) <follow_fork>: Likewise.
13155 (target_follow_fork): Likewise.
13156
a64fafb5
TV
131572020-03-24 Tom de Vries <tdevries@suse.de>
13158
13159 * psymtab.c (maintenance_info_psymtabs): Print user field.
13160
fe26d3a3
TT
131612020-03-20 Tom Tromey <tromey@adacore.com>
13162
13163 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13164 const.
13165 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13166 const.
13167
c884cc46
SM
131682020-03-20 Simon Marchi <simon.marchi@efficios.com>
13169
13170 * ptrace.m4: Don't check for ptrace declaration.
13171 * config.in: Re-generate.
13172 * configure: Re-generate.
13173 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13174 not defined.
13175
1ff700c2
KR
131762020-03-20 Kamil Rytarowski <n54@gmx.com>
13177
13178 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13179 `PTRACE_TYPE_RET'.
13180 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13181 * sparc-nat.c (gdb_ptrace): Likewise.
13182 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13183
f7d4f0b1
TT
131842020-03-20 Tom Tromey <tromey@adacore.com>
13185
13186 * c-exp.y (lex_one_token): Fix assert.
13187
f67210ff
TT
131882020-03-20 Tom Tromey <tromey@adacore.com>
13189
13190 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13191 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13192 strncpy call.
13193
1773be9e
TT
131942020-03-20 Tom Tromey <tromey@adacore.com>
13195
13196 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13197
70304be9
TT
131982020-03-20 Tom Tromey <tromey@adacore.com>
13199
13200 * ada-valprint.c (print_variant_part): Remove parameters; switch
13201 to value-based API.
13202 (print_field_values): Likewise.
13203 (ada_val_print_struct_union): Likewise.
13204 (ada_value_print_1): Update.
13205
9faa006d
KR
132062020-03-20 Kamil Rytarowski <n54@gmx.com>
13207
13208 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13209 nbsd_nat_target instead of inf_ptrace_target.
13210 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13211 nbsd_nat_target.
13212
4a90f062
KR
132132020-03-20 Kamil Rytarowski <n54@gmx.com>
13214
13215 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13216 it to the ptrace call.
13217 * (store_registers): Likewise.
13218
132192020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13220
13221 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13222 it to the ptrace call.
13223 * (store_registers): Likewise.
13224
2d07da27
LM
132252020-03-19 Luis Machado <luis.machado@linaro.org>
13226
13227 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13228 valid, fetch vg value from ptrace.
13229
f09db380
KR
132302020-03-19 Kamil Rytarowski <n54@gmx.com>
13231 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13232 * inf-ptrace.c: Likewise.
13233 * (gdb_ptrace): Add.
13234 * (inf_ptrace_target::resume): Update.
13235 * (inf_ptrace_target::xfer_partial): Likewise.
13236 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13237 * (inf_ptrace_peek_poke): Update.
13238
fcc7376e
KR
132392020-03-19 Kamil Rytarowski <n54@gmx.com>
13240
13241 * x86-bsd-nat.c (gdb_ptrace): New.
13242 * (x86bsd_dr_set): Add new argument `ptid'.
13243 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13244 x86bsd_dr_set_addr): Update.
13245
cada5fc9
AB
132462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13247
13248 * remote.c (remote_target::process_stop_reply): Handle events for
13249 all threads differently.
13250
19a2740f
AB
132512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13252
13253 * completer.c (completion_tracker::remove_completion): Define new
13254 function.
13255 * completer.h (completion_tracker::remove_completion): Declare new
13256 function.
13257 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13258 when adding a C++ function symbol.
13259
724fd9ba
AB
132602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13261
13262 * completer.c (completion_tracker::completion_hash_entry): Define
13263 new class.
13264 (advance_to_filename_complete_word_point): Call
13265 recompute_lowest_common_denominator.
13266 (completion_tracker::completion_tracker): Call discard_completions
13267 to setup the hash table.
13268 (completion_tracker::discard_completions): Allow for being called
13269 from the constructor, pass new equal function, and element deleter
13270 when constructing the hash table. Initialise new class member
13271 variables.
13272 (completion_tracker::maybe_add_completion): Remove use of
13273 m_entries_vec, and store more information into m_entries_hash.
13274 (completion_tracker::recompute_lcd_visitor): New function, most
13275 content taken from...
13276 (completion_tracker::recompute_lowest_common_denominator):
13277 ...here, this now just visits each item in the hash calling the
13278 above visitor.
13279 (completion_tracker::build_completion_result): Remove use of
13280 m_entries_vec, call recompute_lowest_common_denominator.
13281 * completer.h (completion_tracker::have_completions): Remove use
13282 of m_entries_vec.
13283 (completion_tracker::completion_hash_entry): Declare new class.
13284 (completion_tracker::recompute_lowest_common_denominator): Change
13285 function signature.
13286 (completion_tracker::recompute_lcd_visitor): Declare new function.
13287 (completion_tracker::m_entries_vec): Delete.
13288 (completion_tracker::m_entries_hash): Initialize to NULL.
13289 (completion_tracker::m_lowest_common_denominator_valid): New
13290 member variable.
13291 (completion_tracker::m_lowest_common_denominator_max_length): New
13292 member variable.
13293
5a82b8a1
KR
132942020-03-17 Kamil Rytarowski <n54@gmx.com>
13295
13296 * regformats/regdef.h: Put reg in gdb namespace.
13297
fb516a69
KR
132982020-03-17 Kamil Rytarowski <n54@gmx.com>
13299
13300 * i386-bsd-nat.c (gdb_ptrace): New.
13301 * (i386bsd_fetch_inferior_registers,
13302 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13303 * (i386bsd_fetch_inferior_registers,
13304 i386bsd_store_inferior_registers) Use gdb_ptrace.
13305
1c0aa1fb
KR
133062020-03-17 Kamil Rytarowski <n54@gmx.com>
13307
13308 * amd64-bsd-nat.c (gdb_ptrace): New.
13309 * (amd64bsd_fetch_inferior_registers,
13310 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13311 * (amd64bsd_fetch_inferior_registers,
13312 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13313
5ccd2fb7
KR
133142020-03-17 Kamil Rytarowski <n54@gmx.com>
13315
13316 * user-regs.c (user_reg::read): Rename to...
13317 (user_reg::xread): ...this.
13318 * (append_user_reg): Rename argument `read' to `xread'.
13319 * (user_reg_add_builtin): Likewise.
13320 * (user_reg_add): Likewise.
13321 * (value_of_user_reg): Likewise.
13322
2108a63a
KR
133232020-03-17 Kamil Rytarowski <n54@gmx.com>
13324
13325 * sparc-nat.c (gdb_ptrace): New.
13326 * sparc-nat.c (sparc_fetch_inferior_registers)
13327 (sparc_store_inferior_registers) Remove obsolete comment.
13328 * sparc-nat.c (sparc_fetch_inferior_registers)
13329 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13330 * sparc-nat.c (sparc_fetch_inferior_registers)
13331 (sparc_store_inferior_registers) Use gdb_ptrace.
13332
a225c9a8
KR
133332020-03-17 Kamil Rytarowski <n54@gmx.com>
13334
13335 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13336 it to the ptrace call.
13337 * sh-nbsd-nat.c (store_registers): Likewise.
13338
98097623
KR
133392020-03-17 Kamil Rytarowski <n54@gmx.com>
13340
13341 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13342 nbsd_nat_target instead of inf_ptrace_target.
13343 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13344 nbsd_nat_target.
13345
9e38d619
KR
133462020-03-17 Kamil Rytarowski <n54@gmx.com>
13347
13348 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13349
a2ecbe9f
KR
133502020-03-17 Kamil Rytarowski <n54@gmx.com>
13351
13352 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13353 <sys/sysctl.h>.
13354 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13355
58990295
TV
133562020-03-17 Tom de Vries <tdevries@suse.de>
13357
13358 PR gdb/23710
13359 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13360 fields.
13361 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13362 fields.
13363 (process_imported_unit_die): Skip import of c++ CUs.
13364
771dd3a8
TT
133652020-03-16 Tom Tromey <tom@tromey.com>
13366
13367 * p-valprint.c (pascal_object_print_value): Initialize
13368 base_value.
13369
817a7585
AK
133702020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13371 Shahab Vahedi <shahab@synopsys.com>
13372
13373 * Makefile.in: Add arch/arc.o
13374 * configure.tgt: Likewise.
13375 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13376 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13377 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13378 * arc-tdep.h (arc_read_description): Add proto type.
13379 * arch/arc.c: New file.
13380 * arch/arc.h: Likewise.
13381 * features/Makefile: Replace old target descriptions with new.
13382 * features/arc-arcompact.c: Remove.
13383 * features/arc-arcompact.xml: Likewise.
13384 * features/arc-v2.c: Likewise
13385 * features/arc-v2.xml: Likewise
13386 * features/arc/aux-arcompact.xml: New file.
13387 * features/arc/aux-v2.xml: Likewise.
13388 * features/arc/core-arcompact.xml: Likewise.
13389 * features/arc/core-v2.xml: Likewise.
13390 * features/arc/aux-arcompact.c: Generate.
13391 * features/arc/aux-v2.c: Likewise.
13392 * features/arc/core-arcompact.c: Likewise.
13393 * features/arc/core-v2.c: Likewise.
13394 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13395
67430cd0
TT
133962020-03-16 Tom Tromey <tromey@adacore.com>
13397
13398 PR gdb/25663:
13399 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13400 putting value into bcache.
13401
30efb6c7
SM
134022020-03-16 Simon Marchi <simon.marchi@efficios.com>
13403
13404 PR gdb/21500
13405 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13406 to...
13407 (amd64_windows_init_abi_common): ... this. Don't set size of
13408 long type.
13409 (amd64_windows_init_abi): New function.
13410 (amd64_cygwin_init_abi): New function.
13411 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13412 the Cygwin OS ABI.
13413 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13414 comment.
13415
8db52437
SM
134162020-03-16 Simon Marchi <simon.marchi@efficios.com>
13417
13418 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13419 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13420 (pe_import_directory_entry): New struct type.
13421 (is_linked_with_cygwin_dll): New function.
13422 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13423 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13424 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13425
5982a56a
SM
134262020-03-16 Simon Marchi <simon.marchi@efficios.com>
13427
13428 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13429 i386_cygwin_core_osabi_sniffer.
13430
7a1998df
SM
134312020-03-16 Simon Marchi <simon.marchi@efficios.com>
13432
13433 * i386-cygwin-tdep.c: Rename to...
13434 * i386-windows-tdep.c: ... this.
13435 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13436 i386-windows-tdep.c.
13437 * configure.tgt: Likewise.
13438
053205cc
SM
134392020-03-16 Simon Marchi <simon.marchi@efficios.com>
13440
13441 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13442 * osabi.c (gdb_osabi_names): Add "Windows".
13443 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13444 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13445 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13446 i386_cygwin_osabi_sniffer.
13447 (_initialize_i386_cygwin_tdep): Register OS ABI
13448 GDB_OSABI_WINDOWS for i386.
13449 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13450 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13451 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13452 for x86-64.
13453 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13454 when the target matches '*-*-mingw*'.
13455
fe4b2ee6
SM
134562020-03-16 Simon Marchi <simon.marchi@efficios.com>
13457
13458 * defs.h (enum gdb_osabi): Move to...
13459 * osabi.h (enum gdb_osabi): ... here.
13460 * gdbarch.sh: Include osabi.h in gdbarch.h.
13461 * gdbarch.h: Re-generate.
13462
cb9b645d
SM
134632020-03-16 Simon Marchi <simon.marchi@efficios.com>
13464
13465 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13466 function.
13467 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13468
3293bbaf
TT
134692020-03-14 Tom Tromey <tom@tromey.com>
13470
13471 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13472 for C++.
13473 (c_type_print_modifier): Likewise. Add "language" parameter.
13474 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13475 (c_type_print_base_1): Update.
13476 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13477 constants.
13478 * type-stack.c (type_stack::insert): Handle tp_atomic and
13479 tp_restrict.
13480 (type_stack::follow_type_instance_flags): Likewise.
13481 (type_stack::follow_types): Likewise. Merge type-following code.
13482 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13483 (space_identifier, cv_with_space_id)
13484 (const_or_volatile_or_space_identifier_noopt)
13485 (const_or_volatile_or_space_identifier): Remove.
13486 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13487 rules.
13488 (ptr_operator, typebase): Update.
13489 (enum token_flag) <FLAG_C>: New constant.
13490 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13491 "_Atomic".
13492 (lex_one_token): Handle FLAG_C.
13493
154151a6
KR
134942020-03-14 Kamil Rytarowski <n54@gmx.com>
13495
13496 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13497 it to the ptrace call.
13498 * m68k-bsd-nat.c (store_registers): Likewise.
13499
bc107784
KR
135002020-03-14 Kamil Rytarowski <n54@gmx.com>
13501
13502 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13503 gdb_byte *.
13504 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13505 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13506 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13507
01a80117
KR
135082020-03-14 Kamil Rytarowski <n54@gmx.com>
13509
13510 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13511 nbsd_nat_target instead of inf_ptrace_target.
13512 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13513 nbsd_nat_target.
13514
f90280ca
KR
135152020-03-14 Kamil Rytarowski <n54@gmx.com>
13516
13517 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13518 register_t.
13519
6def66f1
KR
135202020-03-14 Kamil Rytarowski <n54@gmx.com>
13521
13522 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13523 it to the ptrace call.
13524 * alpha-bsd-nat.c (store_registers): Likewise.
13525
66eaca97
KR
135262020-03-14 Kamil Rytarowski <n54@gmx.com>
13527
13528 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13529 includes.
13530 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13531 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13532 fill_fpregset): Likewise.
13533
4fed520b
KR
135342020-03-14 Kamil Rytarowski <n54@gmx.com>
13535
13536 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13537 nbsd_nat_target instead of inf_ptrace_target.
13538 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13539 nbsd_nat_target.
13540
2190cf06
KR
135412020-03-14 Kamil Rytarowski <n54@gmx.com>
13542
13543 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13544 register_t.
13545
75c56d3d
KR
135462020-03-14 Kamil Rytarowski <n54@gmx.com>
13547
13548 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13549 it to the ptrace call.
13550 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13551 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13552 * arm-nbsd-nat.c (store_register): Likewise.
13553 * arm-nbsd-nat.c (store_regs): Likewise.
13554 * arm-nbsd-nat.c (store_fp_register): Likewise.
13555 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13556
6018d381
KR
135572020-03-14 Kamil Rytarowski <n54@gmx.com>
13558
13559 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13560 nbsd_nat_target instead of inf_ptrace_target.
13561 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13562 nbsd_nat_target.
13563
013f99f0
KR
135642020-03-14 Kamil Rytarowski <n54@gmx.com>
13565
13566 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13567 it to the ptrace call.
13568 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13569
12753073
KR
135702020-03-14 Kamil Rytarowski <n54@gmx.com>
13571
6227b330
KR
13572 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13573 it to the ptrace call.
13574 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13575
135762020-03-14 Kamil Rytarowski <n54@gmx.com>
13577
13578 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13579 gdb_byte *.
12753073
KR
13580 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13581
d5be5fa4
KR
135822020-03-14 Kamil Rytarowski <n54@gmx.com>
13583
13584 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13585 instead of inf_ptrace_target.
13586 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13587 nbsd_nat_target.
13588
8110f842
KR
135892020-03-14 Kamil Rytarowski <n54@gmx.com>
13590
13591 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13592 register_t.
13593
52feded7
KR
135942020-03-14 Kamil Rytarowski <n54@gmx.com>
13595
13596 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13597 register_t.
13598
25567eee
KR
135992020-03-14 Kamil Rytarowski <n54@gmx.com>
13600
13601 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13602 register_t.
13603
426a9c18
TT
136042020-03-13 Tom Tromey <tom@tromey.com>
13605
13606 * value.h (val_print): Don't declare.
13607 * valprint.h (val_print_array_elements)
13608 (val_print_scalar_formatted, generic_val_print): Don't declare.
13609 * valprint.c (generic_val_print_array): Take a struct value.
13610 (generic_val_print_ptr, generic_val_print_memberptr)
13611 (generic_val_print_bool, generic_val_print_int)
13612 (generic_val_print_char, generic_val_print_complex)
13613 (generic_val_print): Remove.
13614 (generic_value_print): Update.
13615 (do_val_print): Remove unused parameters. Don't call
13616 la_val_print.
13617 (val_print): Remove.
13618 (common_val_print): Update. Don't call value_check_printable.
13619 (val_print_scalar_formatted, val_print_array_elements): Remove.
13620 * rust-lang.c (rust_val_print): Remove.
13621 (rust_language_defn): Update.
13622 * p-valprint.c (pascal_val_print): Remove.
13623 (pascal_value_print_inner): Update.
13624 (pascal_object_print_val_fields, pascal_object_print_val):
13625 Remove.
13626 (pascal_object_print_static_field): Update.
13627 * p-lang.h (pascal_val_print): Don't declare.
13628 * p-lang.c (pascal_language_defn): Update.
13629 * opencl-lang.c (opencl_language_defn): Update.
13630 * objc-lang.c (objc_language_defn): Update.
13631 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13632 * m2-lang.h (m2_val_print): Don't declare.
13633 * m2-lang.c (m2_language_defn): Update.
13634 * language.h (struct language_defn) <la_val_print>: Remove.
13635 * language.c (unk_lang_value_print_inner): Rename. Change
13636 argument types.
13637 (unknown_language_defn, auto_language_defn): Update.
13638 * go-valprint.c (go_val_print): Remove.
13639 * go-lang.h (go_val_print): Don't declare.
13640 * go-lang.c (go_language_defn): Update.
13641 * f-valprint.c (f_val_print): Remove.
13642 * f-lang.h (f_value_print): Don't declare.
13643 * f-lang.c (f_language_defn): Update.
13644 * d-valprint.c (d_val_print): Remove.
13645 * d-lang.h (d_value_print): Don't declare.
13646 * d-lang.c (d_language_defn): Update.
13647 * cp-valprint.c (cp_print_value_fields)
13648 (cp_print_value_fields_rtti, cp_print_value): Remove.
13649 (cp_print_static_field): Update.
13650 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13651 (c_val_print_struct, c_val_print_union, c_val_print_int)
13652 (c_val_print_memberptr, c_val_print): Remove.
13653 * c-lang.h (c_val_print_array, cp_print_value_fields)
13654 (cp_print_value_fields_rtti): Don't declare.
13655 * c-lang.c (c_language_defn, cplus_language_defn)
13656 (asm_language_defn, minimal_language_defn): Update.
13657 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13658 (ada_val_print_enum): Take a struct value.
13659 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13660 (ada_val_print): Remove.
13661 (ada_value_print_1): Update.
13662 (printable_val_type): Remove.
13663 * ada-lang.h (ada_val_print): Don't declare.
13664 * ada-lang.c (ada_language_defn): Update.
13665
42331a1e
TT
136662020-03-13 Tom Tromey <tom@tromey.com>
13667
13668 * valprint.c (do_val_print): Update.
13669 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13670 a struct value.
13671 (value_to_value_object_no_release): Declare.
13672 * python/py-value.c (value_to_value_object_no_release): New
13673 function.
13674 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13675 struct value.
13676 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13677 function.
13678 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13679 a struct value.
13680 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13681 Declare.
13682 (gdbscm_apply_val_pretty_printer): Take a struct value.
13683 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13684 value.
13685 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13686 value.
13687 * extension-priv.h (struct extension_language_ops)
13688 <apply_val_pretty_printer>: Take a struct value.
13689 * cp-valprint.c (cp_print_value): Create a struct value.
13690 (cp_print_value): Update.
13691
3a916a97
TT
136922020-03-13 Tom Tromey <tom@tromey.com>
13693
13694 * ada-valprint.c (print_field_values): Call common_val_print.
13695
b59eac37
TT
136962020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * ada-valprint.c (val_print_packed_array_elements): Remove
13699 bitoffset and val parameters. Call common_val_print.
13700 (ada_val_print_string): Remove offset, address, and original_value
13701 parameters.
13702 (ada_val_print_array): Update.
13703 (ada_value_print_array): New function.
13704 (ada_value_print_1): Call it.
13705
03371129
TT
137062020-03-13 Tom Tromey <tom@tromey.com>
13707
13708 * ada-valprint.c (ada_value_print): Use common_val_print.
13709
2e088f8b
TT
137102020-03-13 Tom Tromey <tom@tromey.com>
13711
13712 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13713
39ef85a8
TT
137142020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * ada-valprint.c (ada_value_print_num): New function.
13717 (ada_value_print_1): Use it.
13718
b9fa6e07
TT
137192020-03-13 Tom Tromey <tom@tromey.com>
13720
13721 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13722
416595d6
TT
137232020-03-13 Tom Tromey <tom@tromey.com>
13724
13725 * ada-valprint.c (ada_value_print_ptr): New function.
13726 (ada_value_print_1): Use it.
13727
5b5e15ec
TT
137282020-03-13 Tom Tromey <tom@tromey.com>
13729
13730 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13731 call common_val_print.
13732 (ada_val_print_1): Update.
13733 (ada_value_print_1): New function.
13734 (ada_value_print_inner): Rewrite.
13735
fbf54e75
TT
137362020-03-13 Tom Tromey <tom@tromey.com>
13737
13738 * cp-valprint.c (cp_print_value_fields): Update.
13739 (cp_print_value): New function.
13740
64b653ca
TT
137412020-03-13 Tom Tromey <tom@tromey.com>
13742
13743 * m2-valprint.c (m2_value_print_inner): Use
13744 cp_print_value_fields.
13745 * cp-valprint.c (cp_print_value_fields): New function.
13746 * c-valprint.c (c_value_print_struct): New function.
13747 (c_value_print_inner): Use c_value_print_struct.
13748 * c-lang.h (cp_print_value_fields): Declare.
13749
6999f067
TT
137502020-03-13 Tom Tromey <tom@tromey.com>
13751
13752 * c-valprint.c (c_value_print_array): New function.
13753 (c_value_print_inner): Use it.
13754
ce80b8bd
TT
137552020-03-13 Tom Tromey <tom@tromey.com>
13756
13757 * c-valprint.c (c_value_print_memberptr): New function.
13758 (c_value_print_inner): Use it.
13759
2faac269
TT
137602020-03-13 Tom Tromey <tom@tromey.com>
13761
13762 * c-valprint.c (c_value_print_int): New function.
13763 (c_value_print_inner): Use it.
13764
da3e2c29
TT
137652020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * c-valprint.c (c_value_print_ptr): New function.
13768 (c_value_print_inner): Use it.
13769
50836231
TT
137702020-03-13 Tom Tromey <tom@tromey.com>
13771
13772 * c-valprint.c (c_value_print_inner): Rewrite.
13773
4f412b6e
TT
137742020-03-13 Tom Tromey <tom@tromey.com>
13775
13776 * valprint.c (generic_value_print_complex): New function.
13777 (generic_value_print): Use it.
13778
f5354008
TT
137792020-03-13 Tom Tromey <tom@tromey.com>
13780
13781 * valprint.c (generic_val_print_float): Don't call
13782 val_print_scalar_formatted.
13783 (generic_val_print, generic_value_print): Update.
13784
3eec3b05
TT
137852020-03-13 Tom Tromey <tom@tromey.com>
13786
13787 * valprint.c (generic_value_print_char): New function
13788 (generic_value_print): Use it.
13789
fdddfccb
TT
137902020-03-13 Tom Tromey <tom@tromey.com>
13791
13792 * valprint.c (generic_value_print_int): New function.
13793 (generic_value_print): Use it.
13794
6dde7521
TT
137952020-03-13 Tom Tromey <tom@tromey.com>
13796
13797 * valprint.c (generic_value_print_bool): New function.
13798 (generic_value_print): Use it.
13799
4112d2e6
TT
138002020-03-13 Tom Tromey <tom@tromey.com>
13801
13802 * valprint.c (generic_val_print_func): Simplify.
13803 (generic_val_print, generic_value_print): Update.
13804
65786af6
TT
138052020-03-13 Tom Tromey <tom@tromey.com>
13806
13807 * valprint.c (generic_val_print_flags): Remove.
13808 (generic_val_print, generic_value_print): Update.
13809 (val_print_type_code_flags): Add original_value parameter.
13810
40f3ce18
TT
138112020-03-13 Tom Tromey <tom@tromey.com>
13812
13813 * valprint.c (generic_val_print): Update.
13814 (generic_value_print): Update.
13815 * valprint.c (generic_val_print_enum): Don't call
13816 val_print_scalar_formatted.
13817
2a5b130b
TT
138182020-03-13 Tom Tromey <tom@tromey.com>
13819
13820 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13821 * valprint.c (generic_value_print_ptr): New function.
13822
abc66ce9
TT
138232020-03-13 Tom Tromey <tom@tromey.com>
13824
13825 * valprint.c (generic_value_print): Rewrite.
13826
07a32858
TT
138272020-03-13 Tom Tromey <tom@tromey.com>
13828
13829 * p-valprint.c (pascal_object_print_value_fields)
13830 (pascal_object_print_value): New functions.
13831
64d64d3a
TT
138322020-03-13 Tom Tromey <tom@tromey.com>
13833
13834 * p-valprint.c (pascal_value_print_inner): Rewrite.
13835
6a95a1f5
TT
138362020-03-13 Tom Tromey <tom@tromey.com>
13837
13838 * f-valprint.c (f_value_print_innner): Rewrite.
13839
59fcdac6
TT
138402020-03-13 Tom Tromey <tom@tromey.com>
13841
13842 * m2-valprint.c (m2_print_unbounded_array): New overload.
13843 (m2_print_unbounded_array): Update.
13844 (m2_print_array_contents): Take a struct value.
13845 (m2_value_print_inner): Rewrite.
13846
d133c3e1
TT
138472020-03-13 Tom Tromey <tom@tromey.com>
13848
13849 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13850 (d_value_print_inner): New function.
13851 * d-lang.h (d_value_print_inner): Declare.
13852 * d-lang.c (d_language_defn): Use d_value_print_inner.
13853
23b0f06b
TT
138542020-03-13 Tom Tromey <tom@tromey.com>
13855
13856 * go-valprint.c (go_value_print_inner): New function.
13857 * go-lang.h (go_value_print_inner): Declare.
13858 * go-lang.c (go_language_defn): Use go_value_print_inner.
13859
5f56f7cb
TT
138602020-03-13 Tom Tromey <tom@tromey.com>
13861
13862 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13863 API.
13864 (rust_val_print): Rewrite.
13865 (rust_value_print_inner): New function, from rust_val_print.
13866 (rust_language_defn): Use rust_value_print_inner.
13867
26792ee0
TT
138682020-03-13 Tom Tromey <tom@tromey.com>
13869
13870 * ada-valprint.c (ada_value_print_inner): New function.
13871 * ada-lang.h (ada_value_print_inner): Declare.
13872 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13873
24051bbe
TT
138742020-03-13 Tom Tromey <tom@tromey.com>
13875
13876 * f-valprint.c (f_value_print_innner): New function.
13877 * f-lang.h (f_value_print_innner): Declare.
13878 * f-lang.c (f_language_defn): Use f_value_print_innner.
13879
c0941be6
TT
138802020-03-13 Tom Tromey <tom@tromey.com>
13881
13882 * p-valprint.c (pascal_value_print_inner): New function.
13883 * p-lang.h (pascal_value_print_inner): Declare.
13884 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13885
62c4663d
TT
138862020-03-13 Tom Tromey <tom@tromey.com>
13887
13888 * m2-valprint.c (m2_value_print_inner): New function.
13889 * m2-lang.h (m2_value_print_inner): Declare.
13890 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13891
62182190
TT
138922020-03-13 Tom Tromey <tom@tromey.com>
13893
13894 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13895 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13896 * c-valprint.c (c_value_print_inner): New function.
13897 * c-lang.h (c_value_print_inner): Declare.
13898 * c-lang.c (c_language_defn, cplus_language_defn)
13899 (asm_language_defn, minimal_language_defn): Use
13900 c_value_print_inner.
13901
1e592a8a
TT
139022020-03-13 Tom Tromey <tom@tromey.com>
13903
13904 * p-valprint.c (pascal_object_print_value_fields): Now static.
13905 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13906
7fe471e9
TT
139072020-03-13 Tom Tromey <tom@tromey.com>
13908
13909 * c-valprint.c (c_val_print_array): Simplify.
13910
d121c6ce
TT
139112020-03-13 Tom Tromey <tom@tromey.com>
13912
13913 * valprint.c (value_print_array_elements): New function.
13914 * valprint.h (value_print_array_elements): Declare.
13915
4dba70ee
TT
139162020-03-13 Tom Tromey <tom@tromey.com>
13917
13918 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13919 * mips-tdep.c (mips_print_register): Use
13920 value_print_scalar_formatted.
13921
4f9ae810
TT
139222020-03-13 Tom Tromey <tom@tromey.com>
13923
13924 * valprint.h (value_print_scalar_formatted): Declare.
13925 * valprint.c (value_print_scalar_formatted): New function.
13926
156bfec9
TT
139272020-03-13 Tom Tromey <tom@tromey.com>
13928
13929 * valprint.h (generic_value_print): Declare.
13930 * valprint.c (generic_value_print): New function.
13931
2b4e573d
TT
139322020-03-13 Tom Tromey <tom@tromey.com>
13933
13934 * valprint.c (do_val_print): Call la_value_print_inner, if
13935 available.
13936 * rust-lang.c (rust_language_defn): Update.
13937 * p-lang.c (pascal_language_defn): Update.
13938 * opencl-lang.c (opencl_language_defn): Update.
13939 * objc-lang.c (objc_language_defn): Update.
13940 * m2-lang.c (m2_language_defn): Update.
13941 * language.h (struct language_defn) <la_value_print_inner>: New
13942 member.
13943 * language.c (unknown_language_defn, auto_language_defn): Update.
13944 * go-lang.c (go_language_defn): Update.
13945 * f-lang.c (f_language_defn): Update.
13946 * d-lang.c (d_language_defn): Update.
13947 * c-lang.c (c_language_defn, cplus_language_defn)
13948 (asm_language_defn, minimal_language_defn): Update.
13949 * ada-lang.c (ada_language_defn): Update.
13950
a1f6a07c
TT
139512020-03-13 Tom Tromey <tom@tromey.com>
13952
13953 * c-valprint.c (c_value_print): Use common_val_print.
13954
410cf315
TT
139552020-03-13 Tom Tromey <tom@tromey.com>
13956
13957 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13958
72a45c93
TT
139592020-03-13 Tom Tromey <tom@tromey.com>
13960
13961 * f-valprint.c (f77_print_array_1, f_val_print): Use
13962 common_val_print.
13963
040f66bd
TT
139642020-03-13 Tom Tromey <tom@tromey.com>
13965
13966 * riscv-tdep.c (riscv_print_one_register_info): Use
13967 common_val_print.
13968
a6e05a6c
TT
139692020-03-13 Tom Tromey <tom@tromey.com>
13970
13971 * mi/mi-main.c (output_register): Use common_val_print.
13972
3444c526
TT
139732020-03-13 Tom Tromey <tom@tromey.com>
13974
13975 * infcmd.c (default_print_one_register_info): Use
13976 common_val_print.
13977
c2a44efe
TT
139782020-03-13 Tom Tromey <tom@tromey.com>
13979
13980 * valprint.h (common_val_print_checked): Declare.
13981 * valprint.c (common_val_print_checked): New function.
13982 * stack.c (print_frame_arg): Use common_val_print_checked.
13983
b0c26e99
TT
139842020-03-13 Tom Tromey <tom@tromey.com>
13985
13986 * valprint.c (do_val_print): New function, from val_print.
13987 (val_print): Use do_val_print.
13988 (common_val_print): Use do_val_print.
13989
ce3acbe9
TT
139902020-03-13 Tom Tromey <tom@tromey.com>
13991
13992 * valprint.c (value_print): Use scoped_value_mark.
13993
96c7f873
TV
139942020-03-13 Tom de Vries <tdevries@suse.de>
13995
13996 PR symtab/25646
13997 * psymtab.c (partial_symtab::partial_symtab): Don't set
13998 globals_offset and statics_offset. Push element onto
13999 current_global_psymbols and current_static_psymbols stacks.
14000 (concat): New function.
14001 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14002 element from current_global_psymbols and current_static_psymbols
14003 stacks. Concat popped elements to global_psymbols and
14004 static_symbols.
14005 (add_psymbol_to_list): Use current_global_psymbols and
14006 current_static_psymbols stacks.
14007 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14008 current_static_psymbols fields.
14009
6ba0a321
CB
140102020-03-12 Christian Biesinger <cbiesinger@google.com>
14011
14012 * corelow.c (sniff_core_bfd): Remove.
14013 (class core_target) <m_core_vec>: Remove.
14014 (core_target::core_target): Update.
14015 (core_file_fns): Remove.
14016 (deprecated_add_core_fns): Remove.
14017 (default_core_sniffer): Remove.
14018 (sniff_core_bfd): Remove.
14019 (default_check_format): Remove.
14020 (gdb_check_format): Remove.
14021 (core_target_open): Update.
14022 (core_target::get_core_register_section): Update.
14023 (get_core_registers_cb): Update.
14024 (core_target::fetch_registers): Update.
14025 * gdbcore.h (struct core_fns): Remove.
14026 (deprecated_add_core_fns): Remove.
14027 (default_core_sniffer): Remove.
14028 (default_check_format): Remove.
14029
227031b2
TT
140302020-03-12 Tom Tromey <tom@tromey.com>
14031
14032 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14033 CORE_ADDR.
14034 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14035
53807e9f
TT
140362020-03-12 Tom Tromey <tom@tromey.com>
14037
14038 * remote.c (remote_target::download_tracepoint)
14039 (remote_target::enable_tracepoint)
14040 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14041 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14042 sprintf_vma.
14043
64f25102
TT
140442020-03-12 Tom Tromey <tom@tromey.com>
14045
14046 * symfile-mem.c: Update CORE_ADDR size assert.
14047
272cd5a3
SM
140482020-03-12 Simon Marchi <simon.marchi@efficios.com>
14049
14050 * selftest.m4: Move to gdbsupport/.
14051 * acinclude.m4: Update path to selftest.m4.
14052
74cd3f9d
SM
140532020-03-12 Simon Marchi <simon.marchi@efficios.com>
14054
14055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14056 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14057 gdbarch-selfselftests.c and selftest-arch.c.
14058 (SUBDIR_UNITTESTS_OBS): Rename to...
14059 (SELFTESTS_OBS): ... this.
14060 (COMMON_SFILES): Remove disasm-selftests.c and
14061 gdbarch-selftests.c.
14062 * configure.ac: Don't add selftest-arch.{c,o} to
14063 CONFIG_{SRCS,OBS}.
14064 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14065 preprocessor conditions.
14066
db6878ac
SM
140672020-03-12 Simon Marchi <simon.marchi@efficios.com>
14068
14069 * configure.ac: Don't source bfd/development.sh.
14070 * selftest.m4: Modify comment.
14071 * configure: Re-generate.
14072
4d696a5c
SM
140732020-03-12 Simon Marchi <simon.marchi@efficios.com>
14074
14075 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14076 not "true" or "false".
14077 * configure: Re-generate.
14078
8dd8e1c7
CB
140792020-03-12 Christian Biesinger <cbiesinger@google.com>
14080
14081 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14082 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14083 renamed to arm_nbsd_supply_gregset.
14084 (fetch_register): Update to call arm_nbsd_supply_gregset.
14085 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14086 (arm_netbsd_nat_target::fetch_registers): Update.
14087 (fetch_elfcore_registers): Removed.
14088 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14089 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14090 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14091 not require NetBSD system headers.
14092 (arm_nbsd_regset): New struct.
14093 (arm_nbsd_iterate_over_regset_sections): New function.
14094 (arm_netbsd_init_abi_common): Updated to call
14095 set_gdbarch_iterate_over_regset_sections.
14096 * arm-nbsd-tdep.h: New file.
14097
dd69bf7a
KB
140982020-03-11 Kevin Buettner <kevinb@redhat.com>
14099
14100 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14101 recursion.
14102
a0761e34
SM
141032020-03-11 Simon Marchi <simon.marchi@efficios.com>
14104
14105 * configure: Re-generate.
14106
e7a82140
TT
141072020-03-11 Tom Tromey <tromey@adacore.com>
14108
14109 * ada-typeprint.c (print_choices): Fix comment.
14110
dcc050c8
AB
141112020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14112
14113 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14114 previous item in the list, when the list has no items.
14115
1c33af77
TV
141162020-03-11 Tom de Vries <tdevries@suse.de>
14117
14118 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14119 PROP_LOCLIST handling code.
14120
8c95582d
AB
141212020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14122
14123 * buildsym-legacy.c (record_line): Pass extra parameter to
14124 record_line.
14125 * buildsym.c (buildsym_compunit::record_line): Take an extra
14126 parameter, reduce duplication in the line table, and record the
14127 is_stmt flag in the line table.
14128 * buildsym.h (buildsym_compunit::record_line): Add extra
14129 parameter.
14130 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14131 non-statement lines.
14132 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14133 this to the symtab builder.
14134 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14135 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14136 through to dwarf_record_line_1.
14137 * infrun.c (process_event_stop_test): When stepping, don't stop at
14138 a non-statement instruction, and only refresh the step info when
14139 we land in the middle of a line's range. Also add an extra
14140 comment.
14141 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14142 field.
14143 * record-btrace.c (btrace_find_line_range): Only record lines
14144 marked as is-statement.
14145 * stack.c (frame_show_address): Show the frame address if we are
14146 in a non-statement sal.
14147 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14148 (maintenance_print_one_line_table): Print a header for the is_stmt
14149 column, and include is_stmt information in the output.
14150 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14151 preference to non-statements.
14152 (find_pcs_for_symtab_line): Prefer is-statement entries.
14153 (find_line_common): Likewise.
14154 * symtab.h (struct linetable_entry): Add is_stmt field.
14155 (struct symtab_and_line): Likewise.
14156 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14157 arranging the line table.
14158
e4003a34
TV
141592020-03-07 Tom de Vries <tdevries@suse.de>
14160
14161 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14162 DIE.
14163
e8932576
TT
141642020-03-07 Tom Tromey <tom@tromey.com>
14165
14166 * valops.c (value_literal_complex): Remove obsolete comment.
14167 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14168 comment.
14169
29734269
SM
141702020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14171
14172 * infrun.h: Forward-declare thread_info.
14173 (set_step_info): Add thread_info parameter, add doc.
14174 * infrun.c (set_step_info): Add thread_info parameter, move doc
14175 to header.
14176 * infrun.c (process_event_stop_test): Pass thread to
14177 set_step_info call.
14178 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14179 set_step_info.
14180 (prepare_one_step): Add thread_info parameter, pass it to
14181 set_step_frame and prepare_one_step (recursive) call.
14182 (step_1): Pass thread to prepare_one_step call.
14183 (step_command_fsm::should_stop): Pass thread to
14184 prepare_one_step.
14185 (until_next_fsm): Pass thread to set_step_frame call.
14186 (finish_command): Pass thread to set_step_info call.
14187
b7d64b29
HD
141882020-03-06 Hannes Domani <ssbssa@yahoo.de>
14189
14190 * windows-tdep.c (windows_solib_create_inferior_hook):
14191 Check if inferior is running.
14192
09f2921c
TV
141932020-03-06 Tom de Vries <tdevries@suse.de>
14194
14195 * NEWS: Fix "the the".
14196 * ctfread.c: Same.
14197
fd760e79
TV
141982020-03-06 Tom de Vries <tdevries@suse.de>
14199
14200 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14201
20ea4a60
AB
142022020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14203
14204 * .dir-locals.el: Add a comment referencing the other copies of
14205 this file.
14206
0afbabf0
JB
142072020-03-05 John Baldwin <jhb@FreeBSD.org>
14208
14209 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14210 psargs.
14211
842806cb
TBA
142122020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14213
14214 * .gitattributes: New file.
14215
be1e3d3e
TT
142162020-03-04 Tom Tromey <tom@tromey.com>
14217
14218 * symmisc.c (print_symbol_bcache_statistics)
14219 (print_objfile_statistics): Update.
14220 * symfile.c (allocate_symtab): Use intern.
14221 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14222 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14223 macro_cache>: Remove.
14224 <string_cache>: New member.
14225 (struct objfile) <intern>: New methods.
14226 * elfread.c (elf_symtab_read): Use intern.
14227 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14228 (dwarf2_compute_name, dwarf2_physname)
14229 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14230 names.
14231 (guess_partial_die_structure_name): Update.
14232 (partial_die_info::fixup): Intern name.
14233 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14234 name.
14235 (dwarf2_name): Intern name. Update.
14236 * buildsym.c (buildsym_compunit::get_macro_table): Use
14237 string_cache.
14238
4e7625fd
TT
142392020-03-04 Tom Tromey <tom@tromey.com>
14240
14241 * jit.c (bfd_open_from_target_memory): Make "target" const.
14242 * corefile.c (gnutarget): Now const.
14243 * gdbcore.h (gnutarget): Now const.
14244
46f9f931
HD
142452020-03-04 Hannes Domani <ssbssa@yahoo.de>
14246
14247 * NEWS: Mention support for WOW64 processes.
14248 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14249 (amd64_windows_segment_register_p): Remove static.
14250 (_initialize_amd64_windows_nat): Update.
14251 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14252 * i386-windows-nat.c (context_offset): Update.
14253 (i386_mappings): Rename and remove static.
14254 (i386_windows_segment_register_p): Remove static.
14255 (_initialize_i386_windows_nat): Update.
14256 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14257 (STATUS_WX86_SINGLE_STEP): New macro.
14258 (EnumProcessModulesEx): New macro.
14259 (Wow64SuspendThread): New macro.
14260 (Wow64GetThreadContext): New macro.
14261 (Wow64SetThreadContext): New macro.
14262 (Wow64GetThreadSelectorEntry): New macro.
14263 (windows_set_context_register_offsets): Add static.
14264 (windows_set_segment_register_p): Likewise.
14265 (windows_add_thread): Adapt for WOW64 processes.
14266 (windows_fetch_one_register): Likewise.
14267 (windows_nat_target::fetch_registers): Likewise.
14268 (windows_store_one_register): Likewise.
14269 (display_selector): Likewise.
14270 (display_selectors): Likewise.
14271 (handle_exception): Likewise.
14272 (windows_continue): Likewise.
14273 (windows_nat_target::resume): Likewise.
14274 (windows_add_all_dlls): Likewise.
14275 (do_initial_windows_stuff): Likewise.
14276 (windows_nat_target::attach): Likewise.
14277 (windows_get_exec_module_filename): Likewise.
14278 (windows_nat_target::create_inferior): Likewise.
14279 (windows_xfer_siginfo): Likewise.
14280 (_initialize_loadable): Initialize Wow64SuspendThread,
14281 Wow64GetThreadContext, Wow64SetThreadContext,
14282 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14283 * windows-nat.h (windows_set_context_register_offsets):
14284 Remove declaration.
14285 (windows_set_segment_register_p): Likewise.
14286 (i386_windows_segment_register_p): Add declaration.
14287 (amd64_windows_segment_register_p): Likewise.
14288
440cf44e
LM
142892020-03-04 Luis Machado <luis.machado@linaro.org>
14290
14291 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14292 in "info registers" for AArch64/ARM.
14293
14294 The change caused "info registers" to not print GPR's.
14295
14296 gdb/ChangeLog:
14297
14298 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14299
14300 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14301 when reg->group is empty and reggroup is not.
14302
1009d92f
TT
143032020-03-03 Tom Tromey <tromey@adacore.com>
14304
14305 * dwarf2/frame.c (struct dwarf2_frame_cache)
14306 <checked_tailcall_bottom, entry_cfa_sp_offset,
14307 entry_cfa_sp_offset_p>: Remove members.
14308 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14309 (dwarf2_frame_prev_register): Don't call
14310 dwarf2_tailcall_sniffer_first.
14311 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14312 * frame-unwind.c (add_unwinder): New fuction.
14313 (frame_unwind_init): Use it. Add tailcall unwinder.
14314
5e5d66b6
AB
143152020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14316 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14317
14318 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14319 value should be printed as true.
14320
584cf46d
HD
143212020-03-03 Hannes Domani <ssbssa@yahoo.de>
14322
14323 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14324 (windows_init_abi): Set and use windows_so_ops.
14325
7b973adc
SDJ
143262020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14327
14328 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14329 when verifying if dealing with a convenience variable.
14330
bb7b70ab
LM
143312020-03-03 Luis Machado <luis.machado@linaro.org>
14332
14333 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14334
9822cb57
SM
143352020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14336
14337 * infrun.c (gdbarch_supports_displaced_stepping): New.
14338 (use_displaced_stepping): Break up conditions in smaller pieces.
14339 Use gdbarch_supports_displaced_stepping.
14340 (displaced_step_prepare_throw): Use
14341 gdbarch_supports_displaced_stepping.
14342
63e163f2
AB
143432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14344
14345 * NEWS: Mention new behaviour of the history filename.
14346 * top.c (write_history_p): Add comment.
14347 (show_write_history_p): Add header comment, give a different
14348 message when history writing is on, but the history filename is
14349 empty.
14350 (history_filename): Add comment.
14351 (history_filename_empty): New function.
14352 (show_history_filename): Add header comment, give a different
14353 message when the filename is empty.
14354 (init_history): Compare history_filename against nullptr, and only
14355 read history if the filename is not empty.
14356 (set_history_filename): Add header comment, and only make
14357 non-empty filenames absolute.
14358 (init_main): Make the filename argument to 'set history filename'
14359 optional.
14360
81b86b97
CB
143612020-03-02 Christian Biesinger <cbiesinger@google.com>
14362
14363 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14364 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14365 (fetch_fp_register): Update.
14366 (fetch_fp_regs): Update.
14367 (store_fp_register): Update.
14368 (store_fp_regs): Update.
14369 (arm_netbsd_nat_target::read_description): New function.
14370 (fetch_elfcore_registers): Update.
14371
24ed6739
AB
143722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14373
14374 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14375 general_thread if the stop reply is missing a thread-id.
14376 (remote_target::process_stop_reply): Use the first non-exited
14377 thread if the target didn't pass a thread-id.
14378 * infrun.c (do_target_wait): Move call to
14379 switch_to_inferior_no_thread to ....
14380 (do_target_wait_1): ... here.
14381
a84bb2a0
JT
143822020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14383
14384 * debuginfod-support.c: Include defs.h first.
14385
658dadf0
TV
143862020-02-28 Tom de Vries <tdevries@suse.de>
14387
14388 * symfile.c (set_initial_language): Use default language for lookup.
14389
4ebe4877
SM
143902020-02-28 Simon Marchi <simon.marchi@efficios.com>
14391
14392 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14393 reader variable, pass `this` to read_cutu_die_from_dwo.
14394
e5da1139
AM
143952020-02-27 Aaron Merey <amerey@redhat.com>
14396
14397 * source.c (open_source_file): Check for nullptr when computing
14398 srcpath.
14399
317f7127
TT
144002020-02-27 Tom Tromey <tromey@adacore.com>
14401
14402 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14403 member.
14404 (dwarf2_add_field): Don't update nfields.
14405 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14406
3104d9ee
AB
144072020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14408
14409 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14410 abs.
14411
b83470bf
TT
144122020-02-26 Tom Tromey <tom@tromey.com>
14413
14414 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14415 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14416 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14417 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14418 per_cu_data.
14419
edfe0a0c
TT
144202020-02-26 Tom Tromey <tom@tromey.com>
14421
14422 * dwarf2/index-write.c (psym_index_map): Change type.
14423 (add_address_entry_worker, write_one_signatured_type)
14424 (recursively_count_psymbols, recursively_write_psymbols)
14425 (class debug_names, psyms_seen_size, write_gdbindex)
14426 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14427
0d79cdc4
AM
144282020-02-26 Aaron Merey <amerey@redhat.com>
14429
14430 * Makefile.in: Handle optional debuginfod support.
14431 * NEWS: Update.
14432 * README: Add --with-debuginfod summary.
14433 * config.in: Regenerate.
14434 * configure: Regenerate.
14435 * configure.ac: Handle optional debuginfod support.
14436 * debuginfod-support.c: debuginfod helper functions.
14437 * debuginfod-support.h: Ditto.
14438 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14439 summary.
14440 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14441 when a dwz file cannot be found.
14442 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14443 debuginfo file cannot be found.
14444 * source.c (open_source_file): Query debuginfod servers when a
14445 source file cannot be found.
14446 * top.c (print_gdb_configuration): Include
14447 --{with,without}-debuginfod in the output.
14448
b65ce565
JG
144492020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14450
14451 * thread.c (thr_try_catch_cmd): Print thread name.
14452
d4c9a4f8
SM
144532020-02-26 Simon Marchi <simon.marchi@efficios.com>
14454
14455 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14456 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14457 dwarf2_fetch_die_type_sect_off): Move to...
14458 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14459 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14460 dwarf2_fetch_die_type_sect_off): ... here.
14461 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14463 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14464
0dce4280
TV
144652020-02-26 Tom de Vries <tdevries@suse.de>
14466
14467 PR gdb/25603
14468 * symfile.c (set_initial_language): Exit-early if
14469 language_mode == language_mode_manual.
14470
450a1bfc
SM
144712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14472
14473 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14474 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14475 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14476
9e80cfa1
AB
144772020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14478
14479 * gdbtypes.c (create_array_type_with_stride): Handle negative
14480 array strides.
14481 * valarith.c (value_subscripted_rvalue): Likewise.
14482
09624f1f
LM
144832020-02-25 Luis Machado <luis.machado@linaro.org>
14484
14485 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14486
8cb5117c
SM
144872020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14488
14489 * loc.h (dwarf2_get_die_type): Move to...
14490 * read.h (dwarf2_get_die_type): ... here.
14491 * read.c (dwarf2_get_die_type): Move doc to header.
14492
c325c44e
JB
144932020-02-25 Joel Brobecker <brobecker@adacore.com>
14494
14495 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14496 'gnulib/Makefile.in' to the list.
14497
4ac93832
TT
144982020-02-24 Tom Tromey <tom@tromey.com>
14499
14500 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14501 Remove.
14502 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14503 XOBNEWVEC.
14504
197400e8
TT
145052020-02-24 Tom Tromey <tom@tromey.com>
14506
14507 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14508 New method.
14509 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14510 (dw2_do_instantiate_symtab, dw2_get_file_names)
14511 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14512
76935768
TT
145132020-02-24 Tom Tromey <tom@tromey.com>
14514
14515 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14516 make_scoped_restore.
14517 (dwarf2_psymtab::read_symtab): Don't clear
14518 reading_partial_symbols.
14519
a88ef40d
TV
145202020-02-24 Tom de Vries <tdevries@suse.de>
14521
14522 PR gdb/25592
14523 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14524
c9af6521
TV
145252020-02-24 Tom de Vries <tdevries@suse.de>
14526
14527 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14528 commands layout next/prev/regs.
14529
5707a07a
TT
145302020-02-22 Tom Tromey <tom@tromey.com>
14531
14532 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14533 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14534
3b0fb49e
TT
145352020-02-22 Tom Tromey <tom@tromey.com>
14536
14537 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14538
283be8bf
TT
145392020-02-22 Tom Tromey <tom@tromey.com>
14540
14541 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14542 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14543 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14544 * tui/tui.c (_initialize_tui): Add usage text.
14545
ca793b96
TT
145462020-02-22 Tom Tromey <tom@tromey.com>
14547
14548 * tui/tui-win.c (tui_set_focus_command)
14549 (tui_set_win_height_command): Use error_no_arg.
14550 (_initialize_tui_win): Update help text.
14551 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14552
432b5c40
TT
145532020-02-22 Tom Tromey <tom@tromey.com>
14554
14555 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14556 * tui/tui-disasm.h (struct tui_disasm_window)
14557 <display_start_addr>: Declare.
14558 * tui/tui-source.h (struct tui_source_window)
14559 <display_start_addr>: Declare.
14560 * tui/tui-winsource.h (struct tui_source_window_base)
14561 <show_source_line, display_start_addr>: New methods.
14562 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14563 Rename and move to protected section.
14564 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14565 (tui_source_window_base::do_erase_source_content): Update.
14566 (tui_source_window_base::show_source_line): Now a method.
14567 (tui_source_window_base::show_source_content)
14568 (tui_source_window_base::tui_source_window_base)
14569 (tui_source_window_base::rerender)
14570 (tui_source_window_base::refill)
14571 (tui_source_window_base::do_scroll_horizontal)
14572 (tui_source_window_base::set_is_exec_point_at)
14573 (tui_source_window_base::update_breakpoint_info)
14574 (tui_source_window_base::update_exec_info): Update.
14575 * tui/tui-source.c (tui_source_window::set_contents)
14576 (tui_source_window::showing_source_p)
14577 (tui_source_window::do_scroll_vertical)
14578 (tui_source_window::location_matches_p)
14579 (tui_source_window::line_is_displayed): Update.
14580 (tui_source_window::display_start_addr): New method.
14581 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14582 (tui_disasm_window::do_scroll_vertical)
14583 (tui_disasm_window::location_matches_p): Update.
14584 (tui_disasm_window::display_start_addr): New method.
14585
01b1af32
TT
145862020-02-22 Tom Tromey <tom@tromey.com>
14587
14588 * NEWS: Add entry for gdb.register_window_type.
14589 * tui/tui-layout.h (window_factory): New typedef.
14590 (tui_register_window): Declare.
14591 * tui/tui-layout.c (saved_tui_windows): New global.
14592 (tui_apply_current_layout): Use it.
14593 (tui_register_window): New function.
14594 * python/python.c (do_start_initialization): Call
14595 gdbpy_initialize_tui.
14596 (python_GdbMethods): Add "register_window_type" function.
14597 * python/python-internal.h (gdbpy_register_tui_window)
14598 (gdbpy_initialize_tui): Declare.
14599 * python/py-tui.c: New file.
14600 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14601
fc96d20b
TT
146022020-02-22 Tom Tromey <tom@tromey.com>
14603
14604 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14605
935c78c0
TT
146062020-02-22 Tom Tromey <tom@tromey.com>
14607
14608 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14609 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14610 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14611 (tui_set_win_focus_to): Move from tui-win.c.
14612
0240c8f1
TT
146132020-02-22 Tom Tromey <tom@tromey.com>
14614
14615 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14616 functions.
14617 (known_window_types): New global.
14618 (tui_get_window_by_name): Reimplement.
14619 (initialize_known_windows): New function.
14620 (validate_window_name): Rewrite.
14621 (_initialize_tui_layout): Call initialize_known_windows.
14622
fdb01f0c
TT
146232020-02-22 Tom Tromey <tom@tromey.com>
14624
14625 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14626 Remove constants.
14627 * tui/tui-winsource.h (struct tui_source_window_base)
14628 <tui_source_window_base>: Remove parameter.
14629 * tui/tui-winsource.c
14630 (tui_source_window_base::tui_source_window_base): Remove
14631 parameter.
14632 (tui_source_window_base::refill): Update.
14633 * tui/tui-stack.h (struct tui_locator_window)
14634 <tui_locator_window>: Update.
14635 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14636 Default the constructor.
14637 * tui/tui-regs.h (struct tui_data_item_window)
14638 <tui_data_item_window>: Default the constructor.
14639 (struct tui_data_window) <tui_data_window>: Likewise.
14640 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14641 Default the constructor.
14642 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14643 Default the constructor.
14644 <type>: Remove.
14645 (struct tui_win_info) <tui_win_info>: Default the constructor.
14646 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14647 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14648 Default the constructor.
14649
865a5aec
TT
146502020-02-22 Tom Tromey <tom@tromey.com>
14651
14652 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14653 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14654 * tui/tui-win.c (tui_resize_all): Don't call
14655 tui_delete_invisible_windows.
14656 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14657 done.
14658 (tui_set_layout): Update.
14659 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14660 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14661 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14662
e098d18c
TT
146632020-02-22 Tom Tromey <tom@tromey.com>
14664
14665 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14666 correctly.
14667
eb9c8874
TT
146682020-02-22 Tom Tromey <tom@tromey.com>
14669
14670 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14671
7eed1a8e
TT
146722020-02-22 Tom Tromey <tom@tromey.com>
14673
14674 * tui/tui-winsource.h (struct tui_source_window_iterator)
14675 <inner_iterator>: New etytypedef.
14676 <tui_source_window_iterator>: Take "end" parameter.
14677 <tui_source_window_iterator>: Take iterator.
14678 <operator*, advance>: Update.
14679 <m_iter>: Change type.
14680 <m_end>: New field.
14681 (struct tui_source_windows) <begin, end>: Update.
14682 * tui/tui-layout.c (tui_windows): New global.
14683 (tui_apply_current_layout): Clear tui_windows.
14684 (tui_layout_window::apply): Update tui_windows.
14685 * tui/tui-data.h (tui_windows): Declare.
14686 (all_tui_windows): Now inline function.
14687 (class tui_window_iterator, struct all_tui_windows): Remove.
14688
7c043ba6
TT
146892020-02-22 Tom Tromey <tom@tromey.com>
14690
14691 PR tui/17850:
14692 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14693 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14694 "height" argument.
14695 (class tui_layout_window) <get_sizes>: Likewise.
14696 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14697 argument.
14698 <get_sizes>: Add "height" argument.
14699 <m_vertical>: New field.
14700 * tui/tui-layout.c (tui_layout_split::clone): Update.
14701 (tui_layout_split::get_sizes): Add "height" argument.
14702 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14703 (tui_new_layout_command): Parse "-horizontal".
14704 (_initialize_tui_layout): Update help string.
14705 (tui_layout_split::specification): Add "-horizontal" when needed.
14706 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14707 argument.
14708 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14709 New methods.
14710
6bc56648
TT
147112020-02-22 Tom Tromey <tom@tromey.com>
14712
14713 * tui/tui-layout.h (enum tui_adjust_result): New.
14714 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14715 (class tui_layout_window) <adjust_size>: Return
14716 tui_adjust_result. Rewrite.
14717 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14718 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14719
c22fef7e
TT
147202020-02-22 Tom Tromey <tom@tromey.com>
14721
14722 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14723 parameter and return types.
14724 (class tui_layout_base) <specification>: Add "depth".
14725 (class tui_layout_window) <specification>: Add "depth".
14726 (class tui_layout_split) <specification>: Add "depth".
14727 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14728 and return types.
14729 (tui_new_layout_command): Parse sub-layouts.
14730 (_initialize_tui_layout): Update help string.
14731 (tui_layout_window::specification): Add "depth".
14732 (add_layout_command): Update.
14733
ee325b61
TT
147342020-02-22 Tom Tromey <tom@tromey.com>
14735
14736 * NEWS: Add "tui new-layout" item.
14737 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14738 Add new-layout command to help text.
14739 (validate_window_name): New function.
14740 (tui_new_layout_command): New function.
14741 (_initialize_tui_layout): Register "new-layout".
14742 (tui_layout_window::specification): New method.
14743 (tui_layout_window::specification): New method.
14744 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14745 method.
14746 (class tui_layout_window) <specification>: New method.
14747 (class tui_layout_split) <specification>: New method.
14748
416eb92d
TT
147492020-02-22 Tom Tromey <tom@tromey.com>
14750
14751 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14752 * tui/tui-win.c (window_name_completer): Update comment.
14753 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14754 Declare method.
14755 (class tui_layout_window) <replace_window>: Likewise.
14756 (class tui_layout_split) <replace_window>: Likewise.
14757 (tui_set_layout): Don't declare.
14758 (tui_set_initial_layout): Declare function.
14759 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14760 (asm_regs_layout): New globals.
14761 (tui_current_layout, show_layout): Remove.
14762 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14763 (find_layout, tui_apply_layout): New function.
14764 (layout_completer): Remove.
14765 (tui_next_layout): Reimplement.
14766 (tui_next_layout_command): New function.
14767 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14768 (tui_regs_layout): Reimplement.
14769 (tui_regs_layout_command): New function.
14770 (extract_display_start_addr): Rewrite.
14771 (next_layout, prev_layout): Remove.
14772 (tui_layout_window::replace_window): New method.
14773 (tui_layout_split::replace_window): New method.
14774 (destroy_layout): New function.
14775 (layout_list): New global.
14776 (add_layout_command): New function.
14777 (initialize_layouts): Update.
14778 (tui_layout_command): New function.
14779 (_initialize_tui_layout): Install "layout" commands.
14780 * tui/tui-data.h (enum tui_layout_type): Remove.
14781 (tui_current_layout): Don't declare.
14782
0dbc2fc7
TT
147832020-02-22 Tom Tromey <tom@tromey.com>
14784
14785 * tui/tui-regs.c (tui_reg_layout): Remove.
14786 (tui_reg_command): Use tui_regs_layout.
14787 * tui/tui-layout.h (tui_reg_command): Declare.
14788 * tui/tui-layout.c (tui_reg_command): New function.
14789
5afe342e
TT
147902020-02-22 Tom Tromey <tom@tromey.com>
14791
14792 * tui/tui.c (tui_rl_delete_other_windows): Call
14793 tui_remove_some_windows.
14794 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14795 Declare method.
14796 (class tui_layout_window) <remove_windows>: New method.
14797 (class tui_layout_split) <remove_windows>: Declare.
14798 (tui_remove_some_windows): Declare.
14799 * tui/tui-layout.c (tui_remove_some_windows): New function.
14800 (tui_layout_split::remove_windows): New method.
14801
427326a8
TT
148022020-02-22 Tom Tromey <tom@tromey.com>
14803
14804 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14805 * tui/tui-layout.h (tui_next_layout): Declare.
14806 * tui/tui-layout.c (tui_next_layout): New function.
14807
3fe12b6d
TT
148082020-02-22 Tom Tromey <tom@tromey.com>
14809
14810 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14811 correct coordinates.
14812
59b8b5d2
TT
148132020-02-22 Tom Tromey <tom@tromey.com>
14814
14815 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14816 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14817 DATA_WIN case.
14818
2a3d458b
TT
148192020-02-22 Tom Tromey <tom@tromey.com>
14820
14821 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14822 TUI_DISASM_WIN, not tui_win_list.
14823
3f0cbb04
TT
148242020-02-22 Tom Tromey <tom@tromey.com>
14825
14826 * valprint.c (generic_val_print_enum_1)
14827 (val_print_type_code_flags): Style member names.
14828 * rust-lang.c (val_print_struct, rust_print_enum)
14829 (rust_print_struct_def, rust_internal_print_type): Style member
14830 names.
14831 * p-valprint.c (pascal_object_print_value_fields): Style member
14832 names. Only call fprintf_symbol_filtered for static members.
14833 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14834 * f-valprint.c (f_val_print): Style member names.
14835 * f-typeprint.c (f_type_print_base): Style member names.
14836 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14837 call fprintf_symbol_filtered for static members.
14838 (cp_print_class_member): Style member names.
14839 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14840 member names.
14841 * ada-valprint.c (ada_print_scalar): Style enum names.
14842 (ada_val_print_enum): Likewise.
14843 * ada-typeprint.c (print_enum_type): Style enum names.
14844
d4d947ae
TT
148452020-02-21 Tom Tromey <tom@tromey.com>
14846
14847 * psympriv.h (struct partial_symtab): Update comment.
14848
e94e944b
TT
148492020-02-21 Tom Tromey <tromey@adacore.com>
14850
14851 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14852 type is CORE_ADDR.
14853
1eb73179
TV
148542020-02-21 Tom de Vries <tdevries@suse.de>
14855
14856 PR gdb/25534
14857 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14858 if dependencies[i]->user != NULL.
14859
4f180d53
AT
148602020-02-21 Ali Tamur <tamur@google.com>
14861
14862 * dwarf2/read.c (dwarf2_name): Add null check.
14863
22b6cd70
TT
148642020-02-20 Tom Tromey <tom@tromey.com>
14865
14866 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14867 ">=", in binary search.
14868 (dwarf2_find_containing_comp_unit): New overload.
14869 (run_test): New self-test.
14870 (_initialize_dwarf2_read): Register new test.
14871
bd0cf5a6
NC
148722020-02-20 Nelson Chu <nelson.chu@sifive.com>
14873
14874 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14875 * riscv-tdep.h: Likewise.
14876 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14877 rv32-only CSR.
14878 * features/riscv/64bit-csr.xml: Regenerated.
14879
3f702acd
SDJ
148802020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14881 Tom Tromey <tom@tromey.com>
14882
14883 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14884 of 'fputc_unfiltered'.
14885 (putchar_unfiltered): Call 'fputc_unfiltered'.
14886 (fputc_unfiltered): Call 'fputs_unfiltered'.
14887
d13c7322
AB
148882020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14889
14890 * config.in: Regenerate.
14891 * configure: Regenerate.
14892 * configure.ac: Add --with-python-libdir option.
14893 * main.c: Use WITH_PYTHON_LIBDIR.
14894
869d8950
TT
148952020-02-19 Tom Tromey <tom@tromey.com>
14896
14897 * symtab.c (general_symbol_info::compute_and_set_names): Use
14898 obstack_strndup. Simplify call to symbol_set_demangled_name.
14899
298e9637
SM
149002020-02-19 Simon Marchi <simon.marchi@efficios.com>
14901
14902 * dwarf2/read.c (allocate_signatured_type_table,
14903 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14904 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14905 Remove objfile parameter, update all callers.
14906
08410482
DE
149072020-02-19 Doug Evans <dje@google.com>
14908
14909 PR rust/25535
14910 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14911 rust_enum_variant calculation.
14912
dfdeeca1
TT
149132020-02-19 Tom Tromey <tromey@adacore.com>
14914
14915 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14916
2ef5453b
TT
149172020-02-19 Tom Tromey <tromey@adacore.com>
14918
14919 * ada-lang.c (cache_symbol): Use obstack_strdup.
14920
9f1528a1
AB
149212020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14922
14923 * configure: Regenerate.
14924
d3c22fa8
TT
149252020-02-19 Tom Tromey <tromey@adacore.com>
14926
14927 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14928 NULL check.
14929
bf84f706
MR
149302020-02-19 Maciej W. Rozycki <macro@wdc.com>
14931
14932 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14933
d1c9b20f
AB
149342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14935
14936 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14937 if GDBSERVER is not defined.
14938 (riscv_tdesc_cache): Likewise, also store const target_desc.
14939 (STATIC_IN_GDB): Define.
14940 (riscv_create_target_description): Update declaration with
14941 STATIC_IN_GDB.
14942 (riscv_lookup_target_description): New function, only define if
14943 GDBSERVER is not defined.
14944 * arch/riscv.h (riscv_create_target_description): Declare only
14945 when GDBSERVER is defined.
14946 (riscv_lookup_target_description): New declaration when GDBSERVER
14947 is not defined.
14948 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14949 (riscv_linux_read_features): ...this, and return
14950 riscv_gdbarch_features instead of target_desc.
14951 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14952 (riscv_linux_read_description): Rename to...
14953 (riscv_linux_read_features): ...this.
14954 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14955 Update to use riscv_gdbarch_features and
14956 riscv_lookup_target_description.
14957 * riscv-tdep.c (riscv_find_default_target_description): Use
14958 riscv_lookup_target_description instead of
14959 riscv_create_target_description.
14960
373d7ac0
SM
149612020-02-18 Simon Marchi <simon.marchi@efficios.com>
14962
14963 * valprint.c (generic_val_print_enum_1): When printing a flag
14964 enum with value 0 and there is no enumerator with value 0, print
14965 just "0" instead of "(unknown: 0x0)".
14966
b29a2df0
SM
149672020-02-18 Simon Marchi <simon.marchi@efficios.com>
14968
14969 * valprint.c (generic_val_print_enum_1): Print unknown part of
14970 flag enum in hex.
14971
6740f0cc
SM
149722020-02-18 Simon Marchi <simon.marchi@efficios.com>
14973
14974 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14975 flag enums to contain duplicate enumerators.
14976 * valprint.c (generic_val_print_enum_1): Update comment.
14977
edd45eb0
SM
149782020-02-18 Simon Marchi <simon.marchi@efficios.com>
14979
14980 * dwarf2/read.c: Include "count-one-bits.h".
14981 (update_enumeration_type_from_children): If an enumerator has
14982 multiple bits set, don't treat the enumeration as a "flag enum".
14983 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14984 of flag enums have 0 or 1 bit set.
14985
6d0cf446
BE
149862020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14987
14988 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14989 conversion.
14990 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14991 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14992 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14993 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14994 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14995
7001c1b7
SM
149962020-02-18 Simon Marchi <simon.marchi@efficios.com>
14997
14998 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14999
fdb61c6c
SM
150002020-02-14 Simon Marchi <simon.marchi@efficios.com>
15001
15002 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15003 displaced_step_closure_up.
15004 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15005 (struct displaced_step_closure_up):
15006 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15007 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15008 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15009 Likewise.
15010 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15011 * gdbarch.c, gdbarch.h: Re-generate.
15012 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15013 displaced_step_closure_up.
15014 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15015 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15016 * infrun.h (displaced_step_closure_up): New type alias.
15017 (struct displaced_step_inferior_state) <step_closure>: Change
15018 type to displaced_step_closure_up.
15019 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15020 displaced_step_closure_up.
15021 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15022
a4a38eb4
TT
150232020-02-14 Tom Tromey <tom@tromey.com>
15024
15025 * minidebug.c (gnu_debug_key): New global.
15026 (find_separate_debug_file_in_section): Use it.
15027
e8217e61
SM
150282020-02-14 Simon Marchi <simon.marchi@efficios.com>
15029
15030 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15031 std::unique_ptr.
15032 * gdbarch.c: Re-generate.
15033 * gdbarch.h: Re-generate.
15034 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15035 change.
15036 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15037 type to std::unique_ptr.
15038 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15039 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15040 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15041 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15042 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15043 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15044 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15045 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15046 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15047
d8d83535
SM
150482020-02-14 Simon Marchi <simon.marchi@efficios.com>
15049
15050 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15051 std::unique_ptr.
15052 (displaced_step_clear): Rename to...
15053 (displaced_step_reset): ... this. Just call displaced->reset ().
15054 (displaced_step_clear_cleanup): Rename to...
15055 (displaced_step_reset_cleanup): ... this.
15056 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15057 (displaced_step_fixup): Likewise.
15058 (resume_1): Likewise.
15059 (handle_inferior_event): Restore child's memory before calling
15060 displaced_step_fixup on the parent.
15061 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15062 to std::unique_ptr.
15063 <step_closure>: Change type to std::unique_ptr.
15064
5f661e03
SM
150652020-02-14 Simon Marchi <simon.marchi@efficios.com>
15066
15067 * arm-tdep.c: Include count-one-bits.h.
15068 (cleanup_block_store_pc): Use count_one_bits.
15069 (cleanup_block_load_pc): Use count_one_bits.
15070 (arm_copy_block_xfer): Use count_one_bits.
15071 (thumb2_copy_block_xfer): Use count_one_bits.
15072 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15073 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15074 (thumb_get_next_pcs_raw): Use count_one_bits.
15075 (arm_get_next_pcs_raw): Use count_one_bits_l.
15076 * arch/arm.c (bitcount): Remove.
15077 * arch/arm.h (bitcount): Remove.
15078
8084e579
TT
150792020-02-14 Tom Tromey <tromey@adacore.com>
15080
15081 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15082 Update.
15083 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15084 * dwarf2/loc.c (call_site_find_chain_1): Return
15085 unique_xmalloc_ptr.
15086 (call_site_find_chain): Likewise.
15087
258bf0ee
RB
150882020-02-14 Richard Biener <rguenther@suse.de>
15089
15090 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15091 on expression with division operators.
15092
f98a8458
AKS
150932020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15094
15095 * MAINTAINERS (Write After Approval): Adding myself.
15096
d1437c0e
TT
150972020-02-12 Tom Tromey <tom@tromey.com>
15098
15099 * event-loop.c (event_data, gdb_event, event_handler_func):
15100 Remove.
15101
3d4560f7
TT
151022020-02-12 Tom Tromey <tom@tromey.com>
15103
15104 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15105 (dwarf2_frame_objfile_data): Add comment.
15106 (find_comp_unit, set_comp_unit): New functions.
15107 (dwarf2_frame_find_fde): Use find_comp_unit.
15108 (dwarf2_build_frame_info): Use set_comp_unit.
15109
21982304
TT
151102020-02-12 Tom Tromey <tom@tromey.com>
15111
15112 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15113 (comp_unit): Don't initialize objfile.
15114 (execute_cfa_program): Add text_offset parameter.
15115 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15116 (dwarf2_frame_cache): Update.
15117 (dwarf2_build_frame_info): Don't set "objfile" member.
15118
4debb237
TT
151192020-02-12 Tom Tromey <tom@tromey.com>
15120
15121 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15122 (decode_frame_entry): Likewise.
15123 (dwarf2_build_frame_info): Update.
15124
0d404d44
TT
151252020-02-12 Tom Tromey <tom@tromey.com>
15126
15127 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15128 (decode_frame_entry_1): Use the comp_unit obstack.
15129
a7a3ae5c
TT
151302020-02-12 Tom Tromey <tom@tromey.com>
15131
15132 * dwarf2/frame.c (struct comp_unit): Add initializers and
15133 constructor.
15134 (dwarf2_frame_objfile_data): Store a comp_unit.
15135 (dwarf2_frame_find_fde): Update.
15136 (dwarf2_build_frame_info): Use "new".
15137
a9d65418
TT
151382020-02-12 Tom Tromey <tom@tromey.com>
15139
15140 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15141 (dwarf2_fde_table): Typedef for std::vector.
15142 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15143 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15144 (decode_frame_entry): Update.
15145 (dwarf2_build_frame_info): Use "new".
15146
7559c217
CB
151472020-02-12 Christian Biesinger <cbiesinger@google.com>
15148
15149 * arm-tdep.c (arm_gdbarch_init): Update.
15150 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15151 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15152 have_neon, is_m>: Change to bool.
15153
aeefc73c
CB
151542020-02-12 Christian Biesinger <cbiesinger@google.com>
15155
15156 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15157
d27b8e5f
TT
151582020-02-12 Tom Tromey <tom@tromey.com>
15159
15160 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15161
cd5900f3
HD
151622020-02-12 Hannes Domani <ssbssa@yahoo.de>
15163
15164 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15165 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15166
f056b22b
TT
151672020-02-11 Tom Tromey <tom@tromey.com>
15168
15169 * psymtab.h: Update comment.
15170
f92ff6b5
TT
151712020-02-11 Tom Tromey <tom@tromey.com>
15172
15173 * gdb_obstack.h (struct auto_obstack): Use
15174 DISABLE_COPY_AND_ASSIGN.
15175
3fd6912b
TT
151762020-02-11 Tom Tromey <tom@tromey.com>
15177
15178 * dwarf2/frame.h (struct objfile): Don't forward declare.
15179
69ed9b74
CB
151802020-02-11 Christian Biesinger <cbiesinger@google.com>
15181
15182 * cris-tdep.c (cris_supply_gregset): Change signature to match
15183 what struct regset expects.
15184 (cris_regset): New struct.
15185 (fetch_core_registers): Remove.
15186 (cris_iterate_over_regset_sections): New function.
15187 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15188 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15189
bda874f6
CB
151902020-02-11 Christian Biesinger <cbiesinger@google.com>
15191
15192 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15193 registers.
15194
754e1564
CB
151952020-02-11 Christian Biesinger <cbiesinger@google.com>
15196
15197 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15198
8ddd8e0e
SM
151992020-02-11 Simon Marchi <simon.marchi@efficios.com>
15200
15201 * configure: Re-generate.
15202
898e7f60
SM
152032020-02-11 Simon Marchi <simon.marchi@efficios.com>
15204
15205 * configure: Re-generate.
15206
58df732b
SM
152072020-02-11 Simon Marchi <simon.marchi@efficios.com>
15208
15209 * acinclude: Update warning.m4 path.
15210 * warning.m4: Move to gdbsupport.
15211
da5bd37e
TT
152122020-02-11 Tom Tromey <tromey@adacore.com>
15213
15214 * remote.c (remote_console_output): Update.
15215 * printcmd.c (printf_command): Update.
15216 * event-loop.c (gdb_wait_for_event): Update.
15217 * linux-nat.c (sigchld_handler): Update.
15218 * remote-sim.c (gdb_os_write_stdout): Update.
15219 (gdb_os_flush_stdout): Update.
15220 (gdb_os_flush_stderr): Update.
15221 (gdb_os_write_stderr): Update.
15222 * exceptions.c (print_exception): Update.
15223 * remote-fileio.c (remote_fileio_func_read): Update.
15224 (remote_fileio_func_write): Update.
15225 * tui/tui.c (tui_enable): Update.
15226 * tui/tui-interp.c (tui_interp::init): Update.
15227 * utils.c (init_page_info): Update.
15228 (putchar_unfiltered, fputc_unfiltered): Update.
15229 (gdb_flush): Update.
15230 (emit_style_escape): Update.
15231 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15232 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15233 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15234 (stderr_file::write): Update.
15235 (stderr_file::puts): Update.
15236 * ui-file.h (ui_file_isatty, ui_file_write)
15237 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15238 (ui_file_puts): Don't declare.
15239
85f0dd3c
TV
152402020-02-10 Tom de Vries <tdevries@suse.de>
15241
15242 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15243 sentinel to char *.
15244
2e927613
TV
152452020-02-09 Tom de Vries <tdevries@suse.de>
15246
15247 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15248 filename if it matches "<artificial>".
15249
6bafc845
HD
152502020-02-09 Hannes Domani <ssbssa@yahoo.de>
15251
15252 * windows-tdep.c (struct enum_value_name): New struct.
15253 (create_enum): New function.
15254 (windows_get_siginfo_type): Create and use enum types.
15255
7928d571
HD
152562020-02-09 Hannes Domani <ssbssa@yahoo.de>
15257
15258 * NEWS: Mention $_siginfo support for Windows.
15259 * windows-nat.c (handle_exception): Set siginfo_er.
15260 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15261 (windows_xfer_siginfo): New function.
15262 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15263 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15264 (init_windows_gdbarch_data): New function.
15265 (get_windows_gdbarch_data): New function.
15266 (windows_get_siginfo_type): New function.
15267 (windows_init_abi): Register windows_get_siginfo_type.
15268 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15269
6751ebae
TT
152702020-02-08 Tom Tromey <tom@tromey.com>
15271
15272 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15273 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15274 <keep>: Declare method.
15275 <m_keep>: Remove member.
15276 <~cutu_reader>: Remove.
15277 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15278 (cutu_reader::cutu_reader): Update.
15279 (cutu_reader::keep): Rename from ~cutu_reader.
15280 (process_psymtab_comp_unit, build_type_psymtabs_1)
15281 (process_skeletonless_type_unit, load_partial_comp_unit)
15282 (load_full_comp_unit, dwarf2_read_addr_index)
15283 (read_signatured_type): Update.
15284
135f5437
TT
152852020-02-08 Tom Tromey <tom@tromey.com>
15286
15287 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15288 "want_partial_unit" parameter.
15289 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15290 Inline check for DW_TAG_partial_unit.
15291 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15292
9f66ff1c
TT
152932020-02-08 Tom Tromey <tom@tromey.com>
15294
15295 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15296 read.c.
15297 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15298 read.c.
15299
c8a7a66f
TT
153002020-02-08 Tom Tromey <tom@tromey.com>
15301
15302 * dwarf2/read.c (read_address): Move to comp-unit.c.
15303 (dwarf2_rnglists_process, dwarf2_ranges_process)
15304 (read_attribute_value, dwarf_decode_lines_1)
15305 (var_decode_location, decode_locdesc): Update.
15306 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15307 read.c. Remove "cu" parameter.
15308 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15309 method.
15310
8266302d
TT
153112020-02-08 Tom Tromey <tom@tromey.com>
15312
15313 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15314 (read_indirect_line_string): Update.
15315 * dwarf2/comp-unit.c (read_offset): Remove.
15316 (read_comp_unit_head): Update.
15317 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15318 method.
15319 (read_offset): Don't declare.
15320
4057dfde
TT
153212020-02-08 Tom Tromey <tom@tromey.com>
15322
15323 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15324 * dwarf2/read.c (struct comp_unit_head): Move to
15325 dwarf2/comp-unit.h.
15326 (enum class rcuh_kind): Move to comp-unit.h.
15327 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15328 (read_comp_unit_head, error_check_comp_unit_head)
15329 (read_and_check_comp_unit_head): Move to comp-unit.c.
15330 (read_offset, dwarf_unit_type_name): Likewise.
15331 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15332 (cutu_reader::cutu_reader, read_call_site_scope)
15333 (find_partial_die, follow_die_offset): Update.
15334 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15335
24aa364d
TT
153362020-02-08 Tom Tromey <tom@tromey.com>
15337
15338 * dwarf2/read.c (read_offset_1): Move to leb.c.
15339 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15340 (dwarf_decode_macro_bytes): Update.
15341 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15342 * dwarf2/leb.h (read_offset): Declare.
15343
2c7d5afc
TT
153442020-02-08 Tom Tromey <tom@tromey.com>
15345
15346 * dwarf2/read.c (dwarf2_section_size): Remove.
15347 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15348 Update.
15349 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15350
4075cb26
TT
153512020-02-08 Tom Tromey <tom@tromey.com>
15352
15353 * dwarf2/read.c (read_initial_length): Move to leb.c.
15354 * dwarf2/leb.h (read_initial_length): Declare.
15355 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15356 handle_nonstd parameter.
15357 * dwarf2/frame.c (read_initial_length): Remove.
15358 (decode_frame_entry_1): Update.
15359
09ba997f
TT
153602020-02-08 Tom Tromey <tom@tromey.com>
15361
15362 * dwarf2/loc.c (dwarf2_find_location_expression)
15363 (dwarf_evaluate_loc_desc::get_tls_address)
15364 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15365 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15366 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15367 (dwarf2_compile_property_to_c)
15368 (dwarf2_loc_desc_get_symbol_read_needs)
15369 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15370 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15371 (loclist_describe_location, loclist_tracepoint_var_ref)
15372 (loclist_generate_c_location): Update.
15373 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15374 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15375 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15376 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15377 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15378 (dwarf2_per_cu_data::addr_size)
15379 (dwarf2_per_cu_data::ref_addr_size)
15380 (dwarf2_per_cu_data::text_offset)
15381 (dwarf2_per_cu_data::addr_type): Now methods.
15382 (per_cu_header_read_in): Make per_cu "const".
15383 (dwarf2_version): Remove.
15384 (dwarf2_per_cu_data::int_type): Now a method.
15385 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15386 (set_die_type, read_array_type, read_subrange_index_type)
15387 (read_tag_string_type, read_subrange_type): Update.
15388 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15389 offset_size, ref_addr_size, text_offset, addr_type, version,
15390 objfile, int_type, addr_sized_int_type>: Declare methods.
15391
96c738c0
TT
153922020-02-08 Tom Tromey <tom@tromey.com>
15393
15394 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15395 Move earlier.
15396
8fdd972c
TT
153972020-02-08 Tom Tromey <tom@tromey.com>
15398
15399 * dwarf2/read.h (dwarf_line_debug): Declare.
15400 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15401 * dwarf2/read.c: Move line_header code to new files.
15402 (dwarf_line_debug): No longer static.
15403 * dwarf2/line-header.c: New file.
15404 * dwarf2/line-header.h: New file.
15405
03075812
TT
154062020-02-08 Tom Tromey <tom@tromey.com>
15407
15408 * dwarf2/read.c (struct line_header) <file_full_name,
15409 file_file_name>: Return unique_xmalloc_ptr.
15410 (line_header::file_file_name): Update.
15411 (line_header::file_full_name): Update.
15412 (dw2_get_file_names_reader): Update.
15413 (macro_start_file): Update.
15414
bb822404
TT
154152020-02-08 Tom Tromey <tom@tromey.com>
15416
15417 * dwarf2/read.c (struct line_header) <file_full_name,
15418 file_file_name>: Declare methods.
15419 (dw2_get_file_names_reader): Update.
15420 (file_file_name): Now a method.
15421 (file_full_name): Likewise.
15422 (macro_start_file): Update.
15423
009b64fc
TT
154242020-02-08 Tom Tromey <tom@tromey.com>
15425
15426 * dwarf2/read.c (dwarf_always_disassemble)
15427 (show_dwarf_always_disassemble): Move to loc.c.
15428 (_initialize_dwarf2_read): Move "always-disassemble" registration
15429 to loc.c.
15430 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15431 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15432 static.
15433 (show_dwarf_always_disassemble): Move from read.c.
15434 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15435
5895093f
TT
154362020-02-08 Tom Tromey <tom@tromey.com>
15437
15438 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15439 (create_quick_file_names_table): Return htab_up.
15440 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15441 Update.
15442 * dwarf2/read.h (struct dwarf2_per_objfile)
15443 <quick_file_names_table>: Now htab_up.
15444
b3b32279
TT
154452020-02-08 Tom Tromey <tom@tromey.com>
15446
15447 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15448
1d33d811
TT
154492020-02-08 Tom Tromey <tom@tromey.com>
15450
15451 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15452 Rewrite.
15453 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15454 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15455 (abbrev_table::abbrev_table): No longer inline.
15456 (ABBREV_HASH_SIZE): Remove.
15457 (abbrev_table::m_abbrevs): Now an htab_up.
15458
86de1d91
TT
154592020-02-08 Tom Tromey <tom@tromey.com>
15460
15461 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15462 (cutu_reader): Update.
15463 (build_type_psymtabs_1): Update.
15464 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15465 (abbrev_table::alloc_abbrev): Update.
15466 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15467 (abbrev_table::read): New static method, renamed from
15468 abbrev_table_read_table.
15469 (abbrev_table::alloc_abbrev)
15470 (abbrev_table::add_abbrev): Now private.
15471 (abbrev_table::abbrev_table): Now private.
15472 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15473
0335378b
TT
154742020-02-08 Tom Tromey <tom@tromey.com>
15475
15476 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15477 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15478 htab_up.
15479
48b490f2
TT
154802020-02-08 Tom Tromey <tom@tromey.com>
15481
15482 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15483 htab_up.
15484 (lookup_dwo_unit_in_dwp): Update.
15485 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15486 on obstack.
15487
bc68fb19
TT
154882020-02-08 Tom Tromey <tom@tromey.com>
15489
15490 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15491 obstack.
15492
d15acc42
TT
154932020-02-08 Tom Tromey <tom@tromey.com>
15494
15495 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15496 line_header_hash.
15497 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15498 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15499 Change type to htab_up.
15500
eaa5fa8b
TT
155012020-02-08 Tom Tromey <tom@tromey.com>
15502
15503 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15504 htab_up. Don't allocate on obstack.
15505 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15506 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15507 Change type to htab_up.
15508
b0b6a987
TT
155092020-02-08 Tom Tromey <tom@tromey.com>
15510
15511 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15512 Change type to htab_up.
15513 * dwarf2/read.c (create_signatured_type_table_from_index)
15514 (create_signatured_type_table_from_debug_names)
15515 (create_all_type_units, add_type_unit)
15516 (lookup_dwo_signatured_type, lookup_signatured_type)
15517 (process_skeletonless_type_unit): Update.
15518 (create_debug_type_hash_table, create_debug_types_hash_table):
15519 Change type of types_htab.
15520 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15521 htab_up. Don't allocate on obstack.
15522 (create_cus_hash_table): Change type of cus_htab parameter.
15523 (struct dwo_file) <cus, tus>: Now htab_up.
15524 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15525 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15526 (queue_and_load_all_dwo_tus): Update.
15527 * dwarf2/index-write.c (write_gdbindex): Update.
15528 (write_debug_names): Update.
15529
39856def
TT
155302020-02-08 Tom Tromey <tom@tromey.com>
15531
15532 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15533 dwarf2/read.c. Remove "next" member. Add constructor ntad
15534 destructor.
15535 (struct dwarf2_per_objfile) <queue>: New member.
15536 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15537 dwarf2/read.h.
15538 (dwarf2_queue, dwarf2_queue_tail): Remove.
15539 (class dwarf2_queue_guard): Add parameter to constructor. Use
15540 DISABLE_COPY_AND_ASSIGN.
15541 <m_per_objfile>: New member.
15542 <~dwarf2_queue_guard>: Rewrite.
15543 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15544 Update.
15545 (~dwarf2_queue_item): New.
15546
3e225074
TT
155472020-02-08 Tom Tromey <tom@tromey.com>
15548
15549 * dwarf2/read.c (struct die_info) <has_children>: New member.
15550 (dw2_get_file_names_reader): Remove has_children.
15551 (dw2_get_file_names): Update.
15552 (read_cutu_die_from_dwo): Remove has_children.
15553 (cutu_reader::init_tu_and_read_dwo_dies)
15554 (cutu_reader::cutu_reader): Update.
15555 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15556 Remove has_children.
15557 (build_type_psymtabs_1, process_skeletonless_type_unit)
15558 (load_partial_comp_unit, load_full_comp_unit): Update.
15559 (create_dwo_cu_reader): Remove has_children.
15560 (create_cus_hash_table, read_die_and_children): Update.
15561 (read_full_die_1,read_full_die): Remove has_children.
15562 (read_signatured_type): Update.
15563 (class cutu_reader) <has_children>: Remove.
15564
82ca8957
TT
155652020-02-08 Tom Tromey <tom@tromey.com>
15566
15567 * dwarf2/expr.c: Rename from dwarf2expr.c.
15568 * dwarf2/expr.h: Rename from dwarf2expr.h.
15569 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15570 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15571 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15572 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15573 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15574 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15575 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15576 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15577 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15578 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15579 * dwarf2/loc.c: Rename from dwarf2loc.c.
15580 * dwarf2/loc.h: Rename from dwarf2loc.h.
15581 * dwarf2/read.c: Rename from dwarf2read.c.
15582 * dwarf2/read.h: Rename from dwarf2read.h.
15583 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15584 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15585 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15586 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15587 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15588 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15589 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15590 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15591 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15592 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15593 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15594 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15595 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15596 Update.
15597 * Makefile.in (COMMON_SFILES): Update.
15598 (HFILES_NO_SRCDIR): Update.
15599
9e35d499
TT
156002020-02-08 Tom Tromey <tom@tromey.com>
15601
15602 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15603 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15604
1eba2311
TT
156052020-02-08 Tom Tromey <tom@tromey.com>
15606
15607 * dwarf2read.h (struct die_info): Don't declare.
15608
e41c2da2
TT
156092020-02-08 Tom Tromey <tom@tromey.com>
15610
15611 * dwarf2read.h (die_info_ptr): Remove typedef.
15612
4fc6c0d5
TT
156132020-02-08 Tom Tromey <tom@tromey.com>
15614
15615 * dwarf2read.c (read_call_site_scope)
15616 (handle_data_member_location, dwarf2_add_member_fn)
15617 (mark_common_block_symbol_computed, read_common_block)
15618 (attr_to_dynamic_prop, partial_die_info::read)
15619 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15620 (dwarf2_symbol_mark_computed, set_die_type): Update.
15621 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15622 method.
15623 (attr_form_is_block): Don't declare.
15624 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15625
cd6c91b4
TT
156262020-02-08 Tom Tromey <tom@tromey.com>
15627
15628 * dwarf2read.c (dwarf2_find_base_address, )
15629 (read_call_site_scope, rust_containing_type)
15630 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15631 (handle_data_member_location, dwarf2_add_member_fn)
15632 (get_alignment, read_structure_type, process_structure_scope)
15633 (mark_common_block_symbol_computed, read_common_block)
15634 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15635 (partial_die_info::read, read_attribute_value, new_symbol)
15636 (lookup_die_type, dwarf2_get_ref_die_offset)
15637 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15638 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15639 (dwarf2_symbol_mark_computed): Update.
15640 * dwarf2/attribute.h (struct attribute) <value_as_address,
15641 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15642 methods.
15643 (value_as_address, attr_form_is_section_offset)
15644 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15645 * dwarf2/attribute.c (attribute::value_as_address)
15646 (attribute::form_is_section_offset, attribute::form_is_constant)
15647 (attribute::form_is_ref): Now methods.
15648
162dce55
TT
156492020-02-08 Tom Tromey <tom@tromey.com>
15650
15651 * dwarf2read.c (struct attribute, DW_STRING)
15652 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15653 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15654 (attr_form_is_block, attr_form_is_section_offset)
15655 (attr_form_is_constant, attr_form_is_ref): Move.
15656 * dwarf2/attribute.h: New file.
15657 * dwarf2/attribute.c: New file, from dwarf2read.c.
15658 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15659
3054dd54
TT
156602020-02-08 Tom Tromey <tom@tromey.com>
15661
15662 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15663 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15664 Move.
15665 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15666 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15667 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15668 abbrev.c.
15669 * dwarf2/abbrev.h: New file.
15670 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15671 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15672
96b79293
TT
156732020-02-08 Tom Tromey <tom@tromey.com>
15674
15675 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15676 (dwarf2_section_size, dwarf2_get_section_info)
15677 (create_signatured_type_table_from_debug_names)
15678 (create_addrmap_from_aranges, read_debug_names_from_section)
15679 (get_gdb_index_contents_from_section, read_comp_unit_head)
15680 (error_check_comp_unit_head, read_abbrev_offset)
15681 (create_debug_type_hash_table, init_cu_die_reader)
15682 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15683 (read_comp_units_from_section, create_cus_hash_table)
15684 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15685 (create_dwp_v2_section, dwarf2_rnglists_process)
15686 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15687 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15688 (read_indirect_string_from_dwz, read_addr_index_1)
15689 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15690 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15691 (fill_in_loclist_baton): Update.
15692 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15693 get_containing_section, get_bfd_owner, get_bfd_section,
15694 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15695 (dwarf2_read_section, get_section_name, get_section_file_name)
15696 (get_containing_section, get_section_bfd_owner)
15697 (get_section_bfd_section, get_section_name, get_section_file_name)
15698 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15699 declare.
15700 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15701 (dwarf2_section_info::get_bfd_owner)
15702 (dwarf2_section_info::get_bfd_section)
15703 (dwarf2_section_info::get_name)
15704 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15705 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15706 (dwarf2_section_info::read): Now methods.
15707 * dwarf-index-write.c (class debug_names): Update.
15708
2c86cff9
TT
157092020-02-08 Tom Tromey <tom@tromey.com>
15710
15711 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15712 Move to dwarf2/section.h.
15713 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15714 (get_section_bfd_section, get_section_name)
15715 (get_section_file_name, get_section_id, get_section_flags)
15716 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15717 dwarf2/section.c.
15718 * dwarf2/section.h: New file.
15719 * dwarf2/section.c: New file, from dwarf2read.c.
15720 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15721
f4382c45
TT
157222020-02-08 Tom Tromey <tom@tromey.com>
15723
15724 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15725 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15726 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15727 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15728 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15729 * dwarf2/leb.h: New file, from dwarf2read.c.
15730 * dwarf2/leb.c: New file, from dwarf2read.c.
15731 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15732 Remove.
15733 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15734 (COMMON_SFILES): Add dwarf2/leb.c.
15735
01840b7a
JB
157362020-02-08 Joel Brobecker <brobecker@adacore.com>
15737
15738 GDB 9.1 released.
15739
dfcb27e4
IB
157402020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15741
15742 PR gdb/25190:
aac66a4c
SM
15743 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15744 * gdb/remote.c (remote_console_output): Update.
15745 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15746 (ui_file_puts): ...this.
15747 * gdb/ui-file.h (ui_file_puts): Add declaration.
15748 * gdb/utils.c (emit_style_escape): Update.
15749 (flush_wrap_buffer): Update.
15750 (fputs_maybe_filtered): Update.
15751 (fputs_unfiltered): Add function.
dfcb27e4 15752
faa17681
IB
157532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15754
aac66a4c
SM
15755 * gdb/event-loop.c (gdb_wait_for_event): Update.
15756 * gdb/printcmd.c (printf_command): Update.
15757 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15758 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15759 (gdb_os_flush_stderr): Update.
15760 * gdb/remote.c (remote_console_output): Update.
15761 * gdb/ui-file.c (gdb_flush): Rename to...
15762 (ui_file_flush): ...this.
15763 (stderr_file::write): Update.
15764 (stderr_file::puts): Update.
15765 * gdb/ui-file.h (gdb_flush): Rename to...
15766 (ui_file_flush): ...this.
15767 * gdb/utils.c (gdb_flush): Add function.
15768 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15769
5abbbe1d
TT
157702020-02-07 Tom Tromey <tromey@adacore.com>
15771
15772 PR breakpoints/24915:
15773 * source.c (find_and_open_source): Do not check basenames_may_differ.
15774
919adfe8
TT
157752020-02-07 Tom Tromey <tom@tromey.com>
15776
15777 * README: Update gdbserver documentation.
15778 * gdbserver: Move to top level.
15779 * configure.tgt (build_gdbserver): Remove.
15780 * configure.ac: Remove --enable-gdbserver.
15781 * configure: Rebuild.
15782 * Makefile.in (distclean): Don't mention gdbserver.
15783
1d5d29e7
SV
157842020-02-06 Shahab Vahedi <shahab@synopsys.com>
15785
15786 * source-cache.c (source_cache::ensure): Surround
15787 get_plain_source_lines with a try/catch.
15788 (source_cache::get_line_charpos): Get rid of try/catch
15789 and only check for the return value of "ensure".
15790 * tui/tui-source.c (tui_source_window::set_contents):
15791 Simplify "nlines" calculation.
15792
6eb1129c
SV
157932020-02-06 Shahab Vahedi <shahab@synopsys.com>
15794
15795 * MAINTAINERS (Write After Approval): Add myself.
15796
c6a42d11
CB
157972020-02-05 Christian Biesinger <cbiesinger@google.com>
15798
15799 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15800 function call.
15801
c8ecdda6
CB
158022020-02-05 Christian Biesinger <cbiesinger@google.com>
15803
15804 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15805
f6480e70
MR
158062020-02-05 Maciej W. Rozycki <macro@wdc.com>
15807
15808 * nat/riscv-linux-tdesc.h: New file.
15809 * nat/riscv-linux-tdesc.c: New file, taking code from...
15810 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15811 ... here.
15812 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15813 NATDEPFILES.
15814
dcc9fbc6
AB
158152020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15816
15817 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15818 we don't set the fake simulator ptid to the null_ptid.
15819
719546c4
SM
158202020-02-03 Simon Marchi <simon.marchi@efficios.com>
15821
15822 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15823 * gdbthread.h (class thread_info) <resumed>: Likewise.
15824 * infrun.c (resume_1): Likewise.
15825 (proceed): Likewise.
15826 (infrun_thread_stop_requested): Likewise.
15827 (stop_all_threads): Likewise.
15828 (handle_inferior_event): Likewise.
15829 (restart_threads): Likewise.
15830 (finish_step_over): Likewise.
15831 (keep_going_stepped_thread): Likewise.
15832 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15833 (linux_handle_extended_wait): Likewise.
15834 * record-btrace.c (get_thread_current_frame_id): Likewise.
15835 * record-full.c (record_full_wait_1): Likewise.
15836 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15837 * target.c (target_resume): Likewise.
15838 * thread.c (set_running_thread): Likewise.
15839
e409c542
AKS
158402020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15841
15842 * f-valprint.c (f77_print_array_1): Changed datatype of index
15843 variable to LONGEST from int to enable it to contain bound
15844 values correctly.
15845
ee98c0da
MR
158462020-02-03 Maciej W. Rozycki <macro@wdc.com>
15847
15848 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15849 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15850 offsets according to FLEN determined.
15851 (riscv_linux_nat_target::read_description): Determine FLEN
15852 dynamically.
15853 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15854 according to FLEN determined.
15855 (riscv_linux_nat_target::store_registers): Likewise.
15856
aa66aac4
SV
158572020-02-01 Shahab Vahedi <shahab@synopsys.com>
15858
15859 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15860 when reg->group is empty and reggroup is not.
15861
fd9faca8
TT
158622020-01-31 Tom Tromey <tromey@adacore.com>
15863
15864 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15865 Call beneath target's mourn_inferior after unpushing.
15866
42330a68
AB
158672020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15868
15869 PR tui/9765
15870 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15871 have enough lines to fill the screen, still return the lowest
15872 address we found.
15873
7a27a45b
AB
158742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15875
15876 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15877 '-', '<', and '>' commands.
15878
c47f70e2
PA
158792020-01-29 Pedro Alves <palves@redhat.com>
15880 Sergio Durigan Junior <sergiodj@redhat.com>
15881
15882 * infcmd.c (construct_inferior_arguments): Assert that
15883 'argc' is greater than 0.
15884
5133a315
LM
158852020-01-29 Luis Machado <luis.machado@linaro.org>
15886
15887 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15888 (BRK_INSN_MASK): Define to 0xd4200000.
15889 (aarch64_program_breakpoint_here_p): New function.
15890 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15891 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15892 breakpoint.c.
15893 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15894 breakpoint.h
15895 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15896 call gdbarch_program_breakpoint_here_p.
15897 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15898 default_program_breakpoint_here_p, changed return type to bool and
15899 simplified.
15900 * breakpoint.h (program_breakpoint_here): Moved prototype to
15901 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15902 return type to bool.
15903 * gdbarch.c: Regenerate.
15904 * gdbarch.h: Regenerate.
15905 * gdbarch.sh (program_breakpoint_here_p): New method.
15906 * infrun.c (handle_signal_stop): Call
15907 gdbarch_program_breakpoint_here_p.
15908
168f8c6b
TT
159092020-01-26 Tom Tromey <tom@tromey.com>
15910
15911 * ctfread.c (struct ctf_fp_info): Reindent.
15912 (_initialize_ctfread): Remove.
15913
128a391f
TT
159142020-01-26 Tom Tromey <tom@tromey.com>
15915
15916 * psymtab.c (partial_map_expand_apply)
15917 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15918 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15919 (psym_print_stats, psym_expand_symtabs_for_function)
15920 (psym_map_symbol_filenames, psym_map_matching_symbols)
15921 (psym_expand_symtabs_matching)
15922 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15923 (maintenance_check_psymtabs): Use new methods.
15924 * psympriv.h (struct partial_symtab) <readin_p,
15925 get_compunit_symtab>: New methods.
15926 <readin, compunit_symtab>: Remove members.
15927 (struct standard_psymtab): New.
15928 (struct legacy_psymtab): Derive from standard_psymtab.
15929 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15930 standard_psymtab.
15931 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15932
0494dbec
TT
159332020-01-26 Tom Tromey <tom@tromey.com>
15934
15935 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15936 read_dependencies. Add assert.
15937 * psymtab.c (partial_symtab::read_dependencies): New method.
15938 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15939 method.
15940 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15941 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15942 read_dependencies.
15943 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15944 Add assert.
15945
8566b89b
TT
159462020-01-26 Tom Tromey <tom@tromey.com>
15947
15948 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15949 Call expand_psymtab.
15950 (xcoff_read_symtab): Call expand_psymtab.
15951 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15952 legacy_expand_psymtab.
15953 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15954 method.
15955 (struct legacy_psymtab) <expand_psymtab>: Implement.
15956 <legacy_expand_psymtab>: New member.
15957 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15958 (parse_partial_symbols): Set legacy_expand_psymtab.
15959 (psymtab_to_symtab_1): Change argument order. Call
15960 expand_psymtab.
15961 (new_psymtab): Set legacy_expand_psymtab.
15962 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15963 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15964 expand_psymtab.
15965 (dwarf2_psymtab::expand_psymtab): Rename from
15966 psymtab_to_symtab_1. Call expand_psymtab.
15967 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15968 (dbx_end_psymtab): Likewise.
15969 (dbx_psymtab_to_symtab_1): Change argument order. Call
15970 expand_psymtab.
15971 (dbx_read_symtab): Call expand_psymtab.
15972 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15973 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15974 (ctf_psymtab::read_symtab): Call expand_psymtab.
15975
077cbab2
TT
159762020-01-26 Tom Tromey <tom@tromey.com>
15977
15978 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15979 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15980 messages.
15981 * mdebugread.c (mdebug_read_symtab): Remove prints.
15982 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15983 assert.
15984 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15985
891813be
TT
159862020-01-26 Tom Tromey <tom@tromey.com>
15987
15988 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15989 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15990 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15991 legacy_symtab.
15992 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15993 * psymtab.c (psymtab_to_symtab): Call method.
15994 (dump_psymtab): Update.
15995 * psympriv.h (struct partial_symtab): Add virtual destructor.
15996 <read_symtab>: New method.
15997 (struct legacy_symtab): New.
15998 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15999 (struct pst_map) <pst>: Now a legacy_psymtab.
16000 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16001 (new_psymtab): Use legacy_psymtab.
16002 * dwarf2read.h (struct dwarf2_psymtab): New.
16003 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16004 * dwarf2read.c (dwarf2_create_include_psymtab)
16005 (dwarf2_build_include_psymtabs, create_type_unit_group)
16006 (create_partial_symtab, process_psymtab_comp_unit_reader)
16007 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16008 (set_partial_user): Use dwarf2_psymtab.
16009 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16010 (psymtab_to_symtab_1, process_full_comp_unit)
16011 (process_full_type_unit, dwarf2_ranges_read)
16012 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16013 (dwarf_decode_lines): Use dwarf2_psymtab.
16014 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16015 (add_address_entry_worker, write_one_signatured_type)
16016 (recursively_count_psymbols, recursively_write_psymbols)
16017 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16018 (write_debug_names): Likewise.
16019 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16020 <pst>: Now a legacy_psymtab.
16021 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16022 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16023 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16024 * ctfread.c (struct ctf_psymtab): New.
16025 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16026 ctf_psymtab.
16027 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16028 (create_partial_symtab): Return a ctf_psymtab.
16029 (scan_partial_symbols): Update.
16030
c3693a1d
TT
160312020-01-26 Tom Tromey <tom@tromey.com>
16032
16033 * xcoffread.c (xcoff_start_psymtab): Use new.
16034 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16035 renamed from start_psymtab_common.
16036 * psympriv.h (struct partial_symtab): Add new constructor.
16037 (start_psymtab_common): Don't declare.
16038 * mdebugread.c (parse_partial_symbols): Use new.
16039 * dwarf2read.c (create_partial_symtab): Use new.
16040 * dbxread.c (start_psymtab): Use new.
16041 * ctfread.c (create_partial_symtab): Use new.
16042
32caafd0
TT
160432020-01-26 Tom Tromey <tom@tromey.com>
16044
16045 * xcoffread.c (xcoff_end_psymtab): Use new.
16046 * psymtab.c (start_psymtab_common): Use new.
16047 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16048 Update.
16049 * psympriv.h (struct partial_symtab): Add parameters to
16050 constructor. Don't inline.
16051 (allocate_psymtab): Don't declare.
16052 * mdebugread.c (new_psymtab): Use new.
16053 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16054 * dbxread.c (dbx_end_psymtab): Use new.
16055
abaa2f23
TT
160562020-01-26 Tom Tromey <tom@tromey.com>
16057
16058 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16059 allocate_psymtab. Update documentation.
16060 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16061 allocate_psymtab. Do not use new.
16062 (allocate_psymtab): Use new. Update.
16063
6d94535f
TT
160642020-01-26 Tom Tromey <tom@tromey.com>
16065
16066 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16067 * psymtab.c (psym_print_stats): Update.
16068 * psympriv.h (struct partial_symtab) <readin,
16069 psymtabs_addrmap_supported, anonymous>: Now bool.
16070 * mdebugread.c (psymtab_to_symtab_1): Update.
16071 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16072 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16073 (process_full_comp_unit, process_full_type_unit): Update.
16074 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16075 * ctfread.c (psymtab_to_symtab): Update.
16076
6f17252b
TT
160772020-01-26 Tom Tromey <tom@tromey.com>
16078
16079 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16080 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16081 * psymtab.c (psymtab_storage): Delete psymtabs.
16082 (psymtab_storage::allocate_psymtab): Use new.
16083 (psymtab_storage::discard_psymtab): Use delete.
16084 * psympriv.h (struct partial_symtab): Add constructor and
16085 initializers.
16086
f6f1cebc
TT
160872020-01-26 Tom Tromey <tom@tromey.com>
16088
16089 * machoread.c: Do not include psympriv.h.
16090
e47e48f6
PW
160912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16092
16093 * NEWS: Mention the new option and the set/show commands.
16094
a2fedca9
PW
160952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16096
16097 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16098 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16099 (validate_exec_file): New variables, enums, functions.
16100 (exec_file_locate_attach, print_section_info): Style the filenames.
16101 (_initialize_exec): Install show_exec_file_mismatch_command and
16102 set_exec_file_mismatch_command.
16103 * gdbcore.h (validate_exec_file): Declare.
16104 * infcmd.c (attach_command): Call validate_exec_file.
16105 * remote.c ( remote_target::remote_add_inferior): Likewise.
16106
7ffa82e1
AB
161072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16108
16109 * frame.c (find_frame_sal): Move call to get_next_frame into more
16110 inner scope.
16111 * inline-frame.c (inilne_state) <inline_state>: Update argument
16112 types.
16113 (inilne_state) <skipped_symbol>: Rename to...
16114 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16115 (skip_inline_frames): Build vector of skipped symbols and use this
16116 to reate the inline_state.
16117 (inline_skipped_symbol): Add a comment and some assertions, fetch
16118 skipped symbol from the list.
16119
3d92a3e3
AB
161202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16121
16122 * buildsym.c (lte_is_less_than): Delete.
16123 (buildsym_compunit::end_symtab_with_blockvector): Create local
16124 lambda function to sort line table entries, and use
16125 std::stable_sort instead of std::sort.
16126 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16127 markers when looking for a previous line.
16128
94a72be7
AB
161292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16130
16131 * dwarf2read.c (lnp_state_machine::record_line): Include
16132 end_sequence parameter in debug print out. Record the line if we
16133 are at an end_sequence marker even if it's not the start of a
16134 statement.
16135 * symmisc.c (maintenance_print_one_line_table): Print end of
16136 sequence markers with 'END' not '0'.
16137
53af73bf
PA
161382020-01-24 Pedro Alves <palves@redhat.com>
16139
16140 PR gdb/25410
16141 * thread.c (scoped_restore_current_thread::restore): Use
16142 switch_to_inferior_no_thread.
16143 * exec.c: Include "progspace-and-thread.h".
16144 (add_target_sections, remove_target_sections):
16145 scoped_restore_current_pspace_and_thread instead of
16146 scoped_restore_current_thread.
16147 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16148 and aspace to the inferior before calling clone_program_space.
16149 Remove stale comment.
16150
3050c6f4
CB
161512020-01-24 Christian Biesinger <cbiesinger@google.com>
16152
16153 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16154 (arm_netbsd_nat_target::fetch_registers): ...this.
16155 (arm_nbsd_nat_target::store_registers): Rename to...
16156 (arm_netbsd_nat_target::store_registers): ...this.
16157
73685c7e
CB
161582020-01-24 Christian Biesinger <cbiesinger@google.com>
16159
16160 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16161 register_t.
16162
89203d40
CB
161632020-01-24 Christian Biesinger <cbiesinger@google.com>
16164
16165 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16166 Update comment.
16167 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16168 Likewise.
16169 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16170 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16171 the correct replacement (iterate_over_regset_sections).
16172 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16173 Update comment.
16174
1ba1ac88
AB
161752020-01-24 Graham Markall <graham.markall@embecosm.com>
16176
16177 PR gdb/23718
16178 * gdb/python/python.c (execute_gdb_command): Call
16179 async_enable_stdin in catch block.
16180
f3364a6d
AB
161812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16182
16183 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16184 SWITCH_THRU_ALL_UIS.
16185
733d0a67
AB
161862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16187
16188 PR tui/9765
16189 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16190 comment, add extra parameter, and update to store previous symbol
16191 when appropriate.
16192 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16193 add extra parameter.
16194 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16195 remove unneeded parameter, add try/catch around gdb_print_insn,
16196 rewrite to add items to asm_lines vector.
16197 (tui_find_backward_disassembly_start_address): New function.
16198 (tui_find_disassembly_address): Updated throughout.
16199 (tui_disasm_window::set_contents): Update for changes to
16200 tui_disassemble.
16201 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16202 number of lines to scroll.
16203
b3b3bada
SM
162042020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16205
16206 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16207 (SECT_OFF_DATA): Likewise.
16208 (SECT_OFF_RODATA): Likewise.
16209 (SECT_OFF_TEXT): Likewise.
16210 (SECT_OFF_BSS): Likewise.
16211 (struct objfile) <text_section_offset, data_section_offset>: New
16212 methods.
16213 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16214 objfile::text_section_offset.
16215 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16216 * coffread.c (coff_symtab_read): Likewise.
16217 (enter_linenos): Likewise.
16218 (process_coff_symbol): Likewise.
16219 * ctfread.c (get_objfile_text_range): Likewise.
16220 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16221 Use objfile::data_section_offset.
16222 * dwarf2-frame.c (execute_cfa_program): Use
16223 objfile::text_section_offset.
16224 (dwarf2_frame_find_fde): Likewise.
16225 * dwarf2read.c (create_addrmap_from_index): Likewise.
16226 (create_addrmap_from_aranges): Likewise.
16227 (dw2_find_pc_sect_compunit_symtab): Likewise.
16228 (process_psymtab_comp_unit_reader): Likewise.
16229 (add_partial_symbol): Likewise.
16230 (add_partial_subprogram): Likewise.
16231 (process_full_comp_unit): Likewise.
16232 (read_file_scope): Likewise.
16233 (read_func_scope): Likewise.
16234 (read_lexical_block_scope): Likewise.
16235 (read_call_site_scope): Likewise.
16236 (dwarf2_rnglists_process): Likewise.
16237 (dwarf2_ranges_process): Likewise.
16238 (dwarf2_ranges_read): Likewise.
16239 (dwarf_decode_lines_1): Likewise.
16240 (new_symbol): Likewise.
16241 (dwarf2_fetch_die_loc_sect_off): Likewise.
16242 (dwarf2_per_cu_text_offset): Likewise.
16243 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16244 * hppa-tdep.c (read_unwind_info): Likewise.
16245 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16246 * psympriv.h (struct partial_symtab): Likewise.
16247 * psymtab.c (find_pc_sect_psymtab): Likewise.
16248 * solib-svr4.c (enable_break): Likewise.
16249 * stap-probe.c (relocate_address): Use
16250 objfile::data_section_offset.
16251 * xcoffread.c (enter_line_range): Use
16252 objfile::text_section_offset.
16253 (read_xcoff_symtab): Likewise.
16254
ab53f382
SM
162552020-01-23 Simon Marchi <simon.marchi@efficios.com>
16256
16257 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16258 declaration to narrower scopes.
16259
e7eee665
SM
162602020-01-23 Simon Marchi <simon.marchi@efficios.com>
16261
16262 * darwin-nat.h (struct darwin_exception_msg, enum
16263 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16264 Move up.
16265 (class darwin_nat_target) <wait_1, check_new_threads,
16266 decode_exception_message, decode_message, stop_inferior,
16267 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16268 * darwin-nat.c (darwin_check_new_threads): Rename to...
16269 (darwin_nat_target::check_new_threads): ... this.
16270 (darwin_suspend_inferior_it): Remove.
16271 (darwin_decode_exception_message): Rename to...
16272 (darwin_nat_target::decode_exception_message): ... this.
16273 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16274 (darwin_decode_message): Rename to...
16275 (darwin_nat_target::decode_message): ... this.
16276 (cancel_breakpoint): Rename to...
16277 (darwin_nat_target::cancel_breakpoint): ... this.
16278 (darwin_wait): Rename to...
16279 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16280 instead of iterate_over_inferiors.
16281 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16282 (darwin_stop_inferior): Rename to...
16283 (darwin_nat_target::stop_inferior): ... this.
16284 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16285 (darwin_init_thread_list): Rename to...
16286 (darwin_nat_target::init_thread_list): ... this.
16287 (darwin_ptrace_him): Rename to...
16288 (darwin_nat_target::ptrace_him): ... this.
16289 (darwin_nat_target::create_inferior): Pass lambda function to
16290 fork_inferior.
16291 (darwin_nat_target::detach): Call stop_inferior instead of
16292 darwin_stop_inferior.
16293 * fork-inferior.h (fork_inferior): Change init_trace_fun
16294 parameter to gdb::function_view.
16295 * fork-inferior.c (fork_inferior): Likewise.
16296
c162ed3e
HD
162972020-01-23 Hannes Domani <ssbssa@yahoo.de>
16298
16299 * i386-cygwin-tdep.c (core_process_module_section): Update.
16300 * windows-nat.c (struct lm_info_windows): Add text_offset.
16301 (windows_xfer_shared_libraries): Update.
16302 * windows-tdep.c (windows_xfer_shared_library):
16303 Add text_offset_cached argument.
16304 * windows-tdep.h (windows_xfer_shared_library): Update.
16305
a1237872
SM
163062020-01-21 Simon Marchi <simon.marchi@efficios.com>
16307
16308 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16309
b3ee6dd9
SM
163102020-01-21 Simon Marchi <simon.marchi@efficios.com>
16311
16312 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16313 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16314 replace with range-based for.
16315 (gdbsim_interrupt_inferior): Remove.
16316 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16317 with a range-based for. Inline code from
16318 gdbsim_interrupt_inferior.
16319
f9fac3c8
SM
163202020-01-21 Simon Marchi <simon.marchi@efficios.com>
16321
16322 * infrun.c (proceed): Fix indentation.
16323
f6474de9
TT
163242020-01-21 Tom Tromey <tromey@adacore.com>
16325
16326 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16327 * python/python.c (python_extension_ops): Update.
16328 (gdbpy_colorize): New function.
16329 * python/lib/gdb/__init__.py (colorize): New function.
16330 * extension.h (ext_lang_colorize): Declare.
16331 * extension.c (ext_lang_colorize): New function.
16332 * extension-priv.h (struct extension_language_ops) <colorize>: New
16333 member.
16334 * cli/cli-style.c (_initialize_cli_style): Update help text.
16335
f0c702d4
LM
163362020-01-21 Luis Machado <luis.machado@linaro.org>
16337
16338 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16339 <cond>: Change type to bool.
16340 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16341 (aarch64_displaced_step_cb): Likewise.
16342 (aarch64_displaced_step_tb): Likewise.
16343
1ab139e5
LM
163442020-01-21 Luis Machado <luis.machado@linaro.org>
16345
16346 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16347 output.
16348
0c271889
LM
163492020-01-21 Luis Machado <luis.machado@linaro.org>
16350
16351 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16352 <pc_adjust>: Adjust the documentation.
16353 (aarch64_displaced_step_fixup): Check if PC really moved before
16354 adjusting it.
16355
4d89c1c7
TT
163562020-01-19 Tom Tromey <tom@tromey.com>
16357
16358 * disasm.c (~gdb_disassembler): New destructor.
16359 (gdb_buffered_insn_length): Call disassemble_free_target.
16360 * disasm.h (class gdb_disassembler): Declare destructor. Use
16361 DISABLE_COPY_AND_ASSIGN.
16362
c0ab21c2
TT
163632020-01-19 Tom Tromey <tom@tromey.com>
16364
16365 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16366 (die_reader_func_ftype): Remove.
16367 (cutu_reader): New class.
16368 (dw2_get_file_names_reader): Remove "data" parameter.
16369 (dw2_get_file_names): Use cutu_reader.
16370 (create_debug_type_hash_table): Update.
16371 (read_cutu_die_from_dwo): Update comment.
16372 (lookup_dwo_unit): Add dwo_name parameter.
16373 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16374 die_reader_func_ftype and data parameters.
16375 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16376 Remove die_reader_func_ftype and data parameters.
16377 (~cutu_reader): New; from init_cutu_and_read_dies.
16378 (cutu_reader::cutu_reader): Rename from
16379 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16380 and data parameters.
16381 (init_cutu_and_read_dies_simple): Remove.
16382 (struct process_psymtab_comp_unit_data): Remove.
16383 (process_psymtab_comp_unit_reader): Remove data parameter; add
16384 want_partial_unit and pretend_language parameters.
16385 (process_psymtab_comp_unit): Use cutu_reader.
16386 (build_type_psymtabs_reader): Remove data parameter.
16387 (build_type_psymtabs_1): Use cutu_reader.
16388 (process_skeletonless_type_unit): Likewise.
16389 (load_partial_comp_unit_reader): Remove.
16390 (load_partial_comp_unit): Use cutu_reader.
16391 (load_full_comp_unit_reader): Remove.
16392 (load_full_comp_unit): Use cutu_reader.
16393 (struct create_dwo_cu_data): Remove.
16394 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16395 dwo_unit parameters.
16396 (create_cus_hash_table): Use cutu_reader.
16397 (struct dwarf2_read_addr_index_data): Remove.
16398 (dwarf2_read_addr_index_reader): Remove.
16399 (dwarf2_read_addr_index): Use cutu_reader.
16400 (read_signatured_type_reader): Remove.
16401 (read_signatured_type): Use cutu_reader.
16402
45bbae5c
TT
164032020-01-19 Tom Tromey <tom@tromey.com>
16404
16405 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16406 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16407 (tui_wrefresh): Declare.
16408 * tui/tui-wingeneral.c (suppress_output): New global.
16409 (tui_suppress_output, ~tui_suppress_output): New constructor and
16410 destructor.
16411 (tui_wrefresh): New function.
16412 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16413 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16414 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16415 method.
16416 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16417 tui_wrefresh.
16418 (tui_data_window::no_refresh): New method.
16419 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16420 (tui_reg_command): Use tui_suppress_output
16421 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16422 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16423 method.
16424 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16425
4f13c1c0
TT
164262020-01-19 Tom Tromey <tom@tromey.com>
16427
16428 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16429 Handle case where symtab is null.
16430
fa47e446
SM
164312020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16432
16433 * linux-fork.c (one_fork_p): Simplify.
16434
26f42329
SM
164352020-01-17 Simon Marchi <simon.marchi@efficios.com>
16436
16437 * top.c (struct qt_args): Remove.
16438 (kill_or_detach): Change return type to void, replace `void *`
16439 parameter with a proper one.
16440 (print_inferior_quit_action): Likewise.
16441 (quit_confirm): Use range-based for loop to iterate over inferiors.
16442 (quit_force): Likewise.
16443
a9ac81b1
SM
164442020-01-17 Simon Marchi <simon.marchi@efficios.com>
16445
16446 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16447 `void *` parameter with proper parameters.
16448 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16449 (print_one_inferior): Change return type to void, replace `void *`
16450 parameter with proper parameters.
16451 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16452 inferiors.
16453 (get_other_inferior): Remove.
16454 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16455 inferiors.
16456
788eca49
SM
164572020-01-17 Simon Marchi <simon.marchi@efficios.com>
16458
16459 * mi/mi-interp.c (report_initial_inferior): Remove.
16460 (mi_interp::init): Use range-based for to iterate over inferiors.
16461
d9bc85b6
SM
164622020-01-17 Simon Marchi <simon.marchi@efficios.com>
16463
16464 * python/py-inferior.c (build_inferior_list): Remove.
16465 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16466
40c94099
CB
164672020-01-16 Christian Biesinger <cbiesinger@google.com>
16468
16469 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16470 (btrace_stitch_trace): Likewise.
16471 * charset.c (intermediate_encoding): Likewise (vaild).
16472 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16473 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16474 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16475
e0cdfe3c
HD
164762020-01-16 Hannes Domani <ssbssa@yahoo.de>
16477
16478 * windows-tdep.c (windows_get_tlb_type):
16479 Add rtl_user_process_parameters type.
16480
790f1718 164812020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16482 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16483
16484 PR build/24805
16485 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16486 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16487 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16488 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16489 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16490 (ps_plog): Redeclare exported functions with default visibility.
16491
3112ed97
NA
164922020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16493
16494 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16495 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16496
8dc3273e
SM
164972020-01-15 Simon Marchi <simon.marchi@efficios.com>
16498
16499 * infcmd.c (post_create_inferior): Use get_thread_regcache
16500 instead of get_current_regcache.
16501
ff47f4f0
TT
165022020-01-14 Tom Tromey <tom@tromey.com>
16503
16504 PR symtab/12535:
16505 * python/python.c (gdbpy_decode_line): Treat empty string the same
16506 as no argument.
16507
975f45b7
TT
165082020-01-14 Tom Tromey <tom@tromey.com>
16509
16510 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16511
25e57356
TT
165122020-01-14 Tom Tromey <tom@tromey.com>
16513
16514 * nat/linux-btrace.c: Don't include <config.h>.
16515 * nat/linux-ptrace.c: Don't include <config.h>.
16516 * nat/x86-linux-dregs.c: Don't include <config.h>.
16517
05ea2a05
TT
165182020-01-14 Tom Tromey <tom@tromey.com>
16519
16520 * configure: Rebuild.
16521 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16522
01027315
TT
165232020-01-14 Tom Tromey <tom@tromey.com>
16524
16525 * nat/x86-linux-dregs.c: Include configh.h.
16526 * nat/linux-ptrace.c: Include configh.h.
16527 * nat/linux-btrace.c: Include configh.h.
16528 * defs.h: Include config.h, bfd.h.
16529 * configure.ac: Don't source common.host.
16530 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16531 * configure: Rebuild.
16532 * acinclude.m4: Update path.
16533 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16534 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16535 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16536 (CLIBS): Add LIBSUPPORT.
16537 (CDEPS): Likewise.
16538 (COMMON_SFILES): Remove gdbsupport files.
16539 (HFILES_NO_SRCDIR): Likewise.
16540 (stamp-version): Update path to create-version.sh.
16541 (ALLDEPFILES): Remove gdbsupport files.
16542
b2ceabe8
TT
165432020-01-14 Tom Tromey <tom@tromey.com>
16544
16545 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16546 USE_WIN32API when needed.
16547 * configure.ac (USE_WIN32API): Don't define.
16548 (WIN32LIBS): Use WIN32APILIBS.
16549 * configure: Rebuild.
16550
25c51f71
TT
165512020-01-14 Tom Tromey <tom@tromey.com>
16552
16553 * configure: Rebuild.
16554 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16555
717c684d
BE
165562020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16557
16558 * skip.c (skip_function_command): Make skip w/o arguments use the
16559 name of the inlined function if pc is inside any inlined function.
16560
7da6a5b9
LM
165612020-01-14 Luis Machado <luis.machado@linaro.org>
16562
16563 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16564 * infrun.c (resume_1): Likewise.
16565 (handle_inferior_event): Remove stale comment.
16566 * linux-nat.c (linux_nat_target::resume): Update comments.
16567 (save_stop_reason): Likewise.
16568 (linux_nat_filter_event): Likewise.
16569 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16570
44e4c775
AB
165712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16572
16573 * elfread.c (record_minimal_symbol): Set section index to 0 for
16574 non-allocatable sections.
16575
18a8505e
AT
16576
165772020-01-13 Ali Tamur <tamur@google.com>
16578
16579 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16580 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16581 to gdb::optional. Update comments.
16582 (dwo_file): Update comments.
16583 (read_attribute): Update API to take an additional out parameter,
16584 need_reprocess. This is used to mark attributes that need other
16585 attributes (e.g. str_offsets_base) for correct computation which may not
16586 have been read yet.
16587 (read_attribute_reprocess): New function declaration.
16588 (read_addr_index): Likewise.
16589 (read_dwo_str_index): Likewise.
16590 (read_stub_str_index): Likewise.
16591 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16592 (lookup_addr_base): New function definition.
16593 (lookup_ranges_base): Likewise.
16594 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16595 lookup_ranges_base.
16596 (init_cutu_and_read_dies): Update comments.
16597 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16598 unit. This is used to inherit parent's str_offsets_base and addr_base.
16599 Update comments.
16600 (init_cutu_and_read_dies_simple): Reflect API changes.
16601 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16602 (create_cus_hash_table): Change API to take parent compile unit.
16603 Reflect API changes.
16604 (open_and_init_dwo_file): Reflect API changes.
16605 (dwarf2_get_pc_bounds): Update comments.
16606 (dwarf2_record_block_ranges): Likewise.
16607 (read_full_die_1): Change implementation to reprocess attributes that
16608 need str_offsets_base and addr_base.
16609 (partial_die_info::read): Likewise.
16610 (read_attribute_reprocess): New function definition.
16611 (read_attribute_value): Change API to take an additional out parameter,
16612 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16613 when a non-dwo compile unit has index based attributes.
16614 (read_attribute): Reflect API changes.
16615 (read_addr_index_1): Reflect API changes. Update comments.
16616 (dwarf2_read_addr_index_data): Reflect API changes.
16617 (dwarf2_read_addr_index): Likewise.
16618 (read_str_index): Change API and implementation. This becomes a helper
16619 to be used by the new string index related methods. Update error
16620 message and comments.
16621 (read_dwo_str_index): New function definition.
16622 (read_stub_str_index): Likewise.
16623 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16624 * symfile.h (dwarf2_debug_sections): Likewise.
16625 * xcoffread.c (dwarf2_debug_sections): Likewise.
16626
0cac9354
SM
166272020-01-13 Simon Marchi <simon.marchi@efficios.com>
16628
16629 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16630 core_reg_sect type to gdb_byte *.
16631 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16632 * cris-tdep.c (fetch_core_registers): Likewise.
16633 * corelow.c (core_target::get_core_register_section): Change
16634 type of `contents` to gdb::byte_vector.
16635
9a6d629c
AB
166362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16637
16638 * tui/tui-wingeneral.c (box_win): Position the title in the center
16639 of the border.
16640
d8b2f9e3
SM
166412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16642
16643 * corelow.c (core_target::get_core_register_section): Use
16644 std::vector instead of alloca.
16645
bb564c58
SM
166462020-01-13 Simon Marchi <simon.marchi@efficios.com>
16647
16648 * warning.m4: Add -Wmissing-declarations to build_warnings.
16649 * configure: Re-generate.
16650
6b366111
SM
166512020-01-13 Simon Marchi <simon.marchi@efficios.com>
16652
16653 * python/python.c (init__gdb_module): Add declaration.
16654
6c265988
SM
166552020-01-13 Simon Marchi <simon.marchi@efficios.com>
16656
16657 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16658 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16659 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16660 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16661 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16662 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16663 * ada-exp.y (_initialize_ada_exp): Add declaration.
16664 * ada-lang.c (_initialize_ada_language): Add declaration.
16665 * ada-tasks.c (_initialize_tasks): Add declaration.
16666 * agent.c (_initialize_agent): Add declaration.
16667 * aix-thread.c (_initialize_aix_thread): Add declaration.
16668 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16669 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16670 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16671 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16672 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16673 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16674 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16675 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16676 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16677 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16678 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16679 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16680 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16681 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16682 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16683 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16684 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16685 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16686 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16687 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16688 * annotate.c (_initialize_annotate): Add declaration.
16689 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16690 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16691 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16692 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16693 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16694 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16695 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16696 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16697 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16698 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16699 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16700 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16701 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16702 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16703 * auto-load.c (_initialize_auto_load): Add declaration.
16704 * auxv.c (_initialize_auxv): Add declaration.
16705 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16706 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16707 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16708 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16709 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16710 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16711 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16712 * breakpoint.c (_initialize_breakpoint): Add declaration.
16713 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16714 * btrace.c (_initialize_btrace): Add declaration.
16715 * charset.c (_initialize_charset): Add declaration.
16716 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16717 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16718 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16719 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16720 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16721 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16722 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16723 * coffread.c (_initialize_coffread): Add declaration.
16724 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16725 * compile/compile.c (_initialize_compile): Add declaration.
16726 * complaints.c (_initialize_complaints): Add declaration.
16727 * completer.c (_initialize_completer): Add declaration.
16728 * copying.c (_initialize_copying): Add declaration.
16729 * corefile.c (_initialize_core): Add declaration.
16730 * corelow.c (_initialize_corelow): Add declaration.
16731 * cp-abi.c (_initialize_cp_abi): Add declaration.
16732 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16733 * cp-support.c (_initialize_cp_support): Add declaration.
16734 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16735 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16736 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16737 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16738 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16739 * ctfread.c (_initialize_ctfread): Add declaration.
16740 * d-lang.c (_initialize_d_language): Add declaration.
16741 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16742 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16743 * dbxread.c (_initialize_dbxread): Add declaration.
16744 * dcache.c (_initialize_dcache): Add declaration.
16745 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16746 * disasm.c (_initialize_disasm): Add declaration.
16747 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16748 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16749 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16750 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16751 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16752 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16753 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16754 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16755 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16756 * elfread.c (_initialize_elfread): Add declaration.
16757 * exec.c (_initialize_exec): Add declaration.
16758 * extension.c (_initialize_extension): Add declaration.
16759 * f-lang.c (_initialize_f_language): Add declaration.
16760 * f-valprint.c (_initialize_f_valprint): Add declaration.
16761 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16762 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16763 * filesystem.c (_initialize_filesystem): Add declaration.
16764 * findcmd.c (_initialize_mem_search): Add declaration.
16765 * findvar.c (_initialize_findvar): Add declaration.
16766 * fork-child.c (_initialize_fork_child): Add declaration.
16767 * frame-base.c (_initialize_frame_base): Add declaration.
16768 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16769 * frame.c (_initialize_frame): Add declaration.
16770 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16771 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16772 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16773 * gcore.c (_initialize_gcore): Add declaration.
16774 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16775 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16776 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16777 * gdbarch.c (_initialize_gdbarch): Add declaration.
16778 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16779 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16780 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16781 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16782 * go-lang.c (_initialize_go_language): Add declaration.
16783 * go32-nat.c (_initialize_go32_nat): Add declaration.
16784 * guile/guile.c (_initialize_guile): Add declaration.
16785 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16786 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16787 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16788 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16789 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16790 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16791 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16792 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16793 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16794 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16795 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16796 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16797 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16798 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16799 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16800 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16801 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16802 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16803 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16804 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16805 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16806 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16807 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16808 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16809 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16810 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16811 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16812 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16813 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16814 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16815 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16816 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16817 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16818 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16819 * infcall.c (_initialize_infcall): Add declaration.
16820 * infcmd.c (_initialize_infcmd): Add declaration.
16821 * inflow.c (_initialize_inflow): Add declaration.
16822 * infrun.c (_initialize_infrun): Add declaration.
16823 * interps.c (_initialize_interpreter): Add declaration.
16824 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16825 * jit.c (_initialize_jit): Add declaration.
16826 * language.c (_initialize_language): Add declaration.
16827 * linux-fork.c (_initialize_linux_fork): Add declaration.
16828 * linux-nat.c (_initialize_linux_nat): Add declaration.
16829 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16830 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16831 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16832 * m2-lang.c (_initialize_m2_language): Add declaration.
16833 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16834 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16835 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16836 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16837 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16838 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16839 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16840 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16841 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16842 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16843 * machoread.c (_initialize_machoread): Add declaration.
16844 * macrocmd.c (_initialize_macrocmd): Add declaration.
16845 * macroscope.c (_initialize_macroscope): Add declaration.
16846 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16847 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16848 * maint.c (_initialize_maint_cmds): Add declaration.
16849 * mdebugread.c (_initialize_mdebugread): Add declaration.
16850 * memattr.c (_initialize_mem): Add declaration.
16851 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16852 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16853 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16854 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16855 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16856 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16857 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16858 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16859 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16860 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16861 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16862 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16863 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16864 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16865 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16866 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16867 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16868 * mipsread.c (_initialize_mipsread): Add declaration.
16869 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16870 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16871 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16872 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16873 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16874 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16875 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16876 * nto-procfs.c (_initialize_procfs): Add declaration.
16877 * objc-lang.c (_initialize_objc_language): Add declaration.
16878 * observable.c (_initialize_observer): Add declaration.
16879 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16880 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16881 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16882 * osabi.c (_initialize_gdb_osabi): Add declaration.
16883 * osdata.c (_initialize_osdata): Add declaration.
16884 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16885 * parse.c (_initialize_parse): Add declaration.
16886 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16887 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16888 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16889 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16890 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16891 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16892 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16893 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16894 * printcmd.c (_initialize_printcmd): Add declaration.
16895 * probe.c (_initialize_probe): Add declaration.
16896 * proc-api.c (_initialize_proc_api): Add declaration.
16897 * proc-events.c (_initialize_proc_events): Add declaration.
16898 * proc-service.c (_initialize_proc_service): Add declaration.
16899 * procfs.c (_initialize_procfs): Add declaration.
16900 * producer.c (_initialize_producer): Add declaration.
16901 * psymtab.c (_initialize_psymtab): Add declaration.
16902 * python/python.c (_initialize_python): Add declaration.
16903 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16904 * record-btrace.c (_initialize_record_btrace): Add declaration.
16905 * record-full.c (_initialize_record_full): Add declaration.
16906 * record.c (_initialize_record): Add declaration.
16907 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16908 * regcache.c (_initialize_regcache): Add declaration.
16909 * reggroups.c (_initialize_reggroup): Add declaration.
16910 * remote-notif.c (_initialize_notif): Add declaration.
16911 * remote-sim.c (_initialize_remote_sim): Add declaration.
16912 * remote.c (_initialize_remote): Add declaration.
16913 * reverse.c (_initialize_reverse): Add declaration.
16914 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16915 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16916 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16917 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16918 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16919 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16920 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16921 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16922 Add declaration.
16923 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16924 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16925 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16926 * rust-exp.y (_initialize_rust_exp): Add declaration.
16927 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16928 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16929 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16930 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16931 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16932 * score-tdep.c (_initialize_score_tdep): Add declaration.
16933 * ser-go32.c (_initialize_ser_dos): Add declaration.
16934 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16935 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16936 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16937 * ser-uds.c (_initialize_ser_socket): Add declaration.
16938 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16939 * serial.c (_initialize_serial): Add declaration.
16940 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16941 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16942 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16943 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16944 * skip.c (_initialize_step_skip): Add declaration.
16945 * sol-thread.c (_initialize_sol_thread): Add declaration.
16946 * solib-aix.c (_initialize_solib_aix): Add declaration.
16947 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16948 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16949 * solib-frv.c (_initialize_frv_solib): Add declaration.
16950 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16951 * solib-target.c (_initialize_solib_target): Add declaration.
16952 * solib.c (_initialize_solib): Add declaration.
16953 * source-cache.c (_initialize_source_cache): Add declaration.
16954 * source.c (_initialize_source): Add declaration.
16955 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16956 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16957 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16958 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16959 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16960 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16961 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16962 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16963 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16964 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16965 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16966 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16967 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16968 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16969 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16970 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16971 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16972 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16973 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16974 * stabsread.c (_initialize_stabsread): Add declaration.
16975 * stack.c (_initialize_stack): Add declaration.
16976 * stap-probe.c (_initialize_stap_probe): Add declaration.
16977 * std-regs.c (_initialize_frame_reg): Add declaration.
16978 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16979 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16980 * symfile.c (_initialize_symfile): Add declaration.
16981 * symmisc.c (_initialize_symmisc): Add declaration.
16982 * symtab.c (_initialize_symtab): Add declaration.
16983 * target.c (_initialize_target): Add declaration.
16984 * target-connection.c (_initialize_target_connection): Add
16985 declaration.
16986 * target-dcache.c (_initialize_target_dcache): Add declaration.
16987 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16988 * thread.c (_initialize_thread): Add declaration.
16989 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16990 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16991 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16992 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16993 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16994 * tracectf.c (_initialize_ctf): Add declaration.
16995 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16996 * tracefile.c (_initialize_tracefile): Add declaration.
16997 * tracepoint.c (_initialize_tracepoint): Add declaration.
16998 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16999 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17000 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17001 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17002 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17003 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17004 * tui/tui.c (_initialize_tui): Add declaration.
17005 * typeprint.c (_initialize_typeprint): Add declaration.
17006 * ui-style.c (_initialize_ui_style): Add declaration.
17007 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17008 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17009 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17010 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17011 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17012 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17013 * unittests/filtered_iterator-selftests.c
17014 (_initialize_filtered_iterator_selftests): Add declaration.
17015 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17016 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17017 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17018 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17019 * unittests/main-thread-selftests.c
17020 (_initialize_main_thread_selftests): Add declaration.
17021 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17022 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17023 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17024 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17025 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17026 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17027 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17028 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17029 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17030 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17031 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17032 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17033 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17034 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17035 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17036 declaration.
17037 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17038 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17039 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17040 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17041 * user-regs.c (_initialize_user_regs): Add declaration.
17042 * utils.c (_initialize_utils): Add declaration.
17043 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17044 * valops.c (_initialize_valops): Add declaration.
17045 * valprint.c (_initialize_valprint): Add declaration.
17046 * value.c (_initialize_values): Add declaration.
17047 * varobj.c (_initialize_varobj): Add declaration.
17048 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17049 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17050 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17051 * windows-nat.c (_initialize_windows_nat): Add declaration.
17052 (_initialize_check_for_gdb_ini): Add declaration.
17053 (_initialize_loadable): Add declaration.
17054 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17055 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17056 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17057 * xcoffread.c (_initialize_xcoffread): Add declaration.
17058 * xml-support.c (_initialize_xml_support): Add declaration.
17059 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17060 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17061 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17062 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17063
e2de1eec
SM
170642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17065
17066 * regformats/regdat.sh: Generate declaration for init function.
17067
e0037b4c
SM
170682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17069
17070 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17071 up.
17072 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17073 close_one_inferior>: New methods.
17074 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17075 pass down target to find_inferior_pid.
17076 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17077 Pass down target to find_inferior_ptid.
17078 (gdbsim_target::create_inferior): Pass down target to
17079 add_thread_silent.
17080 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17081 target down to find_inferior_ptid and switch_to_thread.
17082 (gdbsim_target::close): Update to call close_one_inferior.
17083 (struct resume_data): Remove.
17084 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17085 directly, rather than through a void pointer.
17086 (gdbsim_target::resume): Update to call resume_one_inferior.
17087
58920b5b
SM
170882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17089
17090 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17091
4ec89149
PA
170922020-01-12 Pedro Alves <palves@redhat.com>
17093
17094 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17095 directly for the current inferior instead of
17096 discard_all_inferiors.
17097 (discard_all_inferiors): Delete.
17098
7c392d1d
TT
170992020-01-11 Tom Tromey <tom@tromey.com>
17100
17101 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17102 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17103 deprecated_safe_get_selected_frame.
17104
d9ebdab7
TBA
171052020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17106
17107 * inferior.c (print_inferior): Switch inferior before printing it.
17108
f3c469b9
PA
171092020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17110 Pedro Alves <palves@redhat.com>
17111
17112 * progspace-and-thread.c (switch_to_program_space_and_thread):
17113 Assert there's an inferior for PSPACE. Use
17114 switch_to_inferior_no_thread to switch the inferior too.
17115 * progspace.c (program_space::~program_space): Call
17116 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17117 (program_space::free_all_objfiles): Don't call clear_symtab_users
17118 here.
17119 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17120
65c574f6
PA
171212020-01-10 Pedro Alves <palves@redhat.com>
17122
17123 * NEWS: Mention multi-target debugging, "info connections", and
17124 "add-inferior -no-connection".
17125
2f4fcf00
PA
171262020-01-10 Pedro Alves <palves@redhat.com>
17127
17128 * infrun.c: Include "target-connection.h".
17129 (check_multi_target_resumption): New.
17130 (proceed): Call it.
17131 * target-connection.c (make_target_connection_string): Make
17132 extern.
17133 * target-connection.h (make_target_connection_string): Declare.
17134
121b3efd
PA
171352020-01-10 Pedro Alves <palves@redhat.com>
17136
17137 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17138 * inferior.c (uiout_field_connection): New function.
17139 (print_inferior): Add new "connection-id" column.
17140 (add_inferior_command): Show connection number/string of added
17141 inferior.
17142 * process-stratum-target.h
17143 (process_stratum_target::connection_string): New virtual method.
17144 (process_stratum_target::connection_number): New field.
17145 * remote.c (remote_target::connection_string): New override.
17146 * target-connection.c: New file.
17147 * target-connection.h: New file.
17148 * target.c (decref_target): Remove process_stratum targets from
17149 the connection list.
17150 (target_stack::push): Add process_stratum targets to the
17151 connection list.
17152
4f837581
PA
171532020-01-10 Pedro Alves <palves@redhat.com>
17154
17155 Revert:
17156 2016-04-12 Pedro Alves <palves@redhat.com>
17157 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17158 Remove references to name.
17159 * serial.h (struct serial) <name>: Delete.
17160
f4ec508e
PA
171612020-01-10 Pedro Alves <palves@redhat.com>
17162
17163 * gdbarch-selftests.c (register_to_value_test): Remove "target
17164 already pushed" check.
17165
5b6d1e4f
PA
171662020-01-10 Pedro Alves <palves@redhat.com>
17167 John Baldwin <jhb@FreeBSD.org>
17168
17169 * aarch64-linux-nat.c
17170 (aarch64_linux_nat_target::thread_architecture): Adjust.
17171 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17172 (task_command_1): Likewise.
17173 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17174 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17175 (aix_thread_target::store_registers)
17176 (aix_thread_target::thread_alive): Adjust.
17177 * amd64-fbsd-tdep.c: Include "inferior.h".
17178 (amd64fbsd_get_thread_local_address): Pass down target.
17179 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17180 thread's gdbarch instead of target_gdbarch.
17181 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17182 get_last_target_status.
17183 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17184 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17185 inferiors.
17186 (update_inserted_breakpoint_locations): Skip if inferiors with no
17187 execution.
17188 (update_global_location_list): When handling moribund locations,
17189 find representative inferior for location's pspace, and use thread
17190 count of its process_stratum target.
17191 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17192 * bsd-uthread.c (bsd_uthread_target::wait): Use
17193 as_process_stratum_target and adjust thread_change_ptid and
17194 add_thread calls.
17195 (bsd_uthread_target::update_thread_list): Use
17196 as_process_stratum_target and adjust find_thread_ptid,
17197 thread_change_ptid and add_thread calls.
17198 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17199 find_thread_ptid call.
17200 * corelow.c (add_to_thread_list): Adjust add_thread call.
17201 (core_target_open): Adjust add_thread_silent and thread_count
17202 calls.
17203 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17204 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17205 * event-top.c (async_disconnect): Pop targets from all inferiors.
17206 * exec.c (add_target_sections): Push exec target on all inferiors
17207 sharing the program space.
17208 (remove_target_sections): Remove the exec target from all
17209 inferiors sharing the program space.
17210 (exec_on_vfork): New.
17211 * exec.h (exec_on_vfork): Declare.
17212 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17213 Pass it down.
17214 (fbsd_nat_target::update_thread_list): Adjust.
17215 (fbsd_nat_target::resume): Adjust.
17216 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17217 down.
17218 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17219 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17220 get_thread_arch_regcache call.
17221 * fork-child.c (gdb_startup_inferior): Pass target down to
17222 startup_inferior and set_executing.
17223 * gdbthread.h (struct process_stratum_target): Forward declare.
17224 (add_thread, add_thread_silent, add_thread_with_info)
17225 (in_thread_list): Add process_stratum_target parameter.
17226 (find_thread_ptid(inferior*, ptid_t)): New overload.
17227 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17228 parameter.
17229 (all_threads()): Delete overload.
17230 (all_threads, all_non_exited_threads): Add process_stratum_target
17231 parameter.
17232 (all_threads_safe): Use brace initialization.
17233 (thread_count): Add process_stratum_target parameter.
17234 (set_resumed, set_running, set_stop_requested, set_executing)
17235 (threads_are_executing, finish_thread_state): Add
17236 process_stratum_target parameter.
17237 (switch_to_thread): Use is_current_thread.
17238 * i386-fbsd-tdep.c: Include "inferior.h".
17239 (i386fbsd_get_thread_local_address): Pass down target.
17240 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17241 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17242 have_inferiors check.
17243 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17244 (inf_ptrace_target::attach): Adjust.
17245 * infcall.c (run_inferior_call): Adjust.
17246 * infcmd.c (run_command_1): Pass target to
17247 scoped_finish_thread_state.
17248 (proceed_thread_callback): Skip inferiors with no execution.
17249 (continue_command): Rename 'all_threads' local to avoid hiding
17250 'all_threads' function. Adjust get_last_target_status call.
17251 (prepare_one_step): Adjust set_running call.
17252 (signal_command): Use user_visible_resume_target. Compare thread
17253 pointers instead of inferior_ptid.
17254 (info_program_command): Adjust to pass down target.
17255 (attach_command): Mark target's 'thread_executing' flag.
17256 (stop_current_target_threads_ns): New, factored out from ...
17257 (interrupt_target_1): ... this. Switch inferior before making
17258 target calls.
17259 * inferior-iter.h
17260 (struct all_inferiors_iterator, struct all_inferiors_range)
17261 (struct all_inferiors_safe_range)
17262 (struct all_non_exited_inferiors_range): Filter on
17263 process_stratum_target too. Remove explicit.
17264 * inferior.c (inferior::inferior): Push dummy target on target
17265 stack.
17266 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17267 Add process_stratum_target parameter, and pass it down.
17268 (have_live_inferiors): Adjust.
17269 (switch_to_inferior_and_push_target): New.
17270 (add_inferior_command, clone_inferior_command): Handle
17271 "-no-connection" parameter. Use
17272 switch_to_inferior_and_push_target.
17273 (_initialize_inferior): Mention "-no-connection" option in
17274 the help of "add-inferior" and "clone-inferior" commands.
17275 * inferior.h: Include "process-stratum-target.h".
17276 (interrupt_target_1): Use bool.
17277 (struct inferior) <push_target, unpush_target, target_is_pushed,
17278 find_target_beneath, top_target, process_target, target_at,
17279 m_stack>: New.
17280 (discard_all_inferiors): Delete.
17281 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17282 (all_inferiors, all_non_exited_inferiors): Add
17283 process_stratum_target parameter.
17284 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17285 (target_last_proc_target): New global.
17286 (follow_fork_inferior): Push target on new inferior. Pass target
17287 to add_thread_silent. Call exec_on_vfork. Handle target's
17288 reference count.
17289 (follow_fork): Adjust get_last_target_status call. Also consider
17290 target.
17291 (follow_exec): Push target on new inferior.
17292 (struct execution_control_state) <target>: New field.
17293 (user_visible_resume_target): New.
17294 (do_target_resume): Call target_async.
17295 (resume_1): Set target's threads_executing flag. Consider resume
17296 target.
17297 (commit_resume_all_targets): New.
17298 (proceed): Also consider resume target. Skip threads of inferiors
17299 with no execution. Commit resumtion in all targets.
17300 (start_remote): Pass current inferior to wait_for_inferior.
17301 (infrun_thread_stop_requested): Consider target as well. Pass
17302 thread_info pointer to clear_inline_frame_state instead of ptid.
17303 (infrun_thread_thread_exit): Consider target as well.
17304 (random_pending_event_thread): New inferior parameter. Use it.
17305 (do_target_wait): Rename to ...
17306 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17307 down.
17308 (threads_are_resumed_pending_p, do_target_wait): New.
17309 (prepare_for_detach): Adjust calls.
17310 (wait_for_inferior): New inferior parameter. Handle it. Use
17311 do_target_wait_1 instead of do_target_wait.
17312 (fetch_inferior_event): Adjust. Switch to representative
17313 inferior. Pass target down.
17314 (set_last_target_status): Add process_stratum_target parameter.
17315 Save target in global.
17316 (get_last_target_status): Add process_stratum_target parameter and
17317 handle it.
17318 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17319 (context_switch): Check inferior_ptid == null_ptid before calling
17320 inferior_thread().
17321 (get_inferior_stop_soon): Pass down target.
17322 (wait_one): Rename to ...
17323 (poll_one_curr_target): ... this.
17324 (struct wait_one_event): New.
17325 (wait_one): New.
17326 (stop_all_threads): Adjust.
17327 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17328 event's target.
17329 (switch_back_to_stepped_thread): Also consider target.
17330 (print_stop_event): Update.
17331 (normal_stop): Update. Also consider the resume target.
17332 * infrun.h (wait_for_inferior): Remove declaration.
17333 (user_visible_resume_target): New declaration.
17334 (get_last_target_status, set_last_target_status): New
17335 process_stratum_target parameter.
17336 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17337 process_stratum_target parameter, and use it.
17338 (clear_inline_frame_state (thread_info*)): New.
17339 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17340 process_stratum_target parameter.
17341 (clear_inline_frame_state (thread_info*)): Declare.
17342 * linux-fork.c (delete_checkpoint_command): Pass target down to
17343 find_thread_ptid.
17344 (checkpoint_command): Adjust.
17345 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17346 instead of just tweaking inferior_ptid.
17347 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17348 (exit_lwp): Pass target down to find_thread_ptid.
17349 (attach_proc_task_lwp_callback): Pass target down to
17350 add_thread/set_running/set_executing.
17351 (linux_nat_target::attach): Pass target down to
17352 thread_change_ptid.
17353 (get_detach_signal): Pass target down to find_thread_ptid.
17354 Consider last target status's target.
17355 (linux_resume_one_lwp_throw, resume_lwp)
17356 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17357 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17358 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17359 (linux_nat_target::async_wait_fd): New.
17360 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17361 target down.
17362 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17363 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17364 * linux-thread-db.c (struct thread_db_info::process_target): New
17365 field.
17366 (add_thread_db_info): Save target.
17367 (get_thread_db_info): New process_stratum_target parameter. Also
17368 match target.
17369 (delete_thread_db_info): New process_stratum_target parameter.
17370 Also match target.
17371 (thread_from_lwp): Adjust to pass down target.
17372 (thread_db_notice_clone): Pass down target.
17373 (check_thread_db_callback): Pass down target.
17374 (try_thread_db_load_1): Always push the thread_db target.
17375 (try_thread_db_load, record_thread): Pass target down.
17376 (thread_db_target::detach): Pass target down. Always unpush the
17377 thread_db target.
17378 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17379 target down. Always unpush the thread_db target.
17380 (find_new_threads_callback, thread_db_find_new_threads_2)
17381 (thread_db_target::update_thread_list): Pass target down.
17382 (thread_db_target::pid_to_str): Pass current inferior down.
17383 (thread_db_target::get_thread_local_address): Pass target down.
17384 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17385 target down.
17386 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17387 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17388 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17389 (procfs_init_inferior): Rename to ...
17390 (procfs_target::procfs_init_inferior): ... this and adjust.
17391 (procfs_target::create_inferior, procfs_notice_thread)
17392 (procfs_do_thread_registers): Adjust.
17393 * ppc-fbsd-tdep.c: Include "inferior.h".
17394 (ppcfbsd_get_thread_local_address): Pass down target.
17395 * proc-service.c (ps_xfer_memory): Switch current inferior and
17396 program space as well.
17397 (get_ps_regcache): Pass target down.
17398 * process-stratum-target.c
17399 (process_stratum_target::thread_address_space)
17400 (process_stratum_target::thread_architecture): Pass target down.
17401 * process-stratum-target.h
17402 (process_stratum_target::threads_executing): New field.
17403 (as_process_stratum_target): New.
17404 * ravenscar-thread.c
17405 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17406 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17407 down.
17408 * record-btrace.c (record_btrace_target::info_record): Adjust.
17409 (record_btrace_target::record_method)
17410 (record_btrace_target::record_is_replaying)
17411 (record_btrace_target::fetch_registers)
17412 (get_thread_current_frame_id, record_btrace_target::resume)
17413 (record_btrace_target::wait, record_btrace_target::stop): Pass
17414 target down.
17415 * record-full.c (record_full_wait_1): Switch to event thread.
17416 Pass target down.
17417 * regcache.c (regcache::regcache)
17418 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17419 process_stratum_target parameter and handle it.
17420 (current_thread_target): New global.
17421 (get_thread_regcache): Add process_stratum_target parameter and
17422 handle it. Switch inferior before calling target method.
17423 (get_thread_regcache): Pass target down.
17424 (get_thread_regcache_for_ptid): Pass target down.
17425 (registers_changed_ptid): Add process_stratum_target parameter and
17426 handle it.
17427 (registers_changed_thread, registers_changed): Pass target down.
17428 (test_get_thread_arch_aspace_regcache): New.
17429 (current_regcache_test): Define a couple local test_target_ops
17430 instances and use them for testing.
17431 (readwrite_regcache): Pass process_stratum_target parameter.
17432 (cooked_read_test, cooked_write_test): Pass mock_target down.
17433 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17434 (get_thread_arch_aspace_regcache): Add process_stratum_target
17435 parameter.
17436 (regcache::target): New method.
17437 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17438 (regcache::registers_changed_ptid): Add process_stratum_target
17439 parameter.
17440 (regcache::m_target): New field.
17441 (registers_changed_ptid): Add process_stratum_target parameter.
17442 * remote.c (remote_state::supports_vCont_probed): New field.
17443 (remote_target::async_wait_fd): New method.
17444 (remote_unpush_and_throw): Add remote_target parameter.
17445 (get_current_remote_target): Adjust.
17446 (remote_target::remote_add_inferior): Push target.
17447 (remote_target::remote_add_thread)
17448 (remote_target::remote_notice_new_inferior)
17449 (get_remote_thread_info): Pass target down.
17450 (remote_target::update_thread_list): Skip threads of inferiors
17451 bound to other targets. (remote_target::close): Don't discard
17452 inferiors. (remote_target::add_current_inferior_and_thread)
17453 (remote_target::process_initial_stop_replies)
17454 (remote_target::start_remote)
17455 (remote_target::remote_serial_quit_handler): Pass down target.
17456 (remote_target::remote_unpush_target): New remote_target
17457 parameter. Unpush the target from all inferiors.
17458 (remote_target::remote_unpush_and_throw): New remote_target
17459 parameter. Pass it down.
17460 (remote_target::open_1): Check whether the current inferior has
17461 execution instead of checking whether any inferior is live. Pass
17462 target down.
17463 (remote_target::remote_detach_1): Pass down target. Use
17464 remote_unpush_target.
17465 (extended_remote_target::attach): Pass down target.
17466 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17467 (remote_target::append_resumption): Pass down target.
17468 (remote_target::append_pending_thread_resumptions)
17469 (remote_target::remote_resume_with_hc, remote_target::resume)
17470 (remote_target::commit_resume): Pass down target.
17471 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17472 (remote_target::interrupt_query)
17473 (remote_target::remove_new_fork_children)
17474 (remote_target::check_pending_events_prevent_wildcard_vcont)
17475 (remote_target::remote_parse_stop_reply)
17476 (remote_target::process_stop_reply): Pass down target.
17477 (first_remote_resumed_thread): New remote_target parameter. Pass
17478 it down.
17479 (remote_target::wait_as): Pass down target.
17480 (unpush_and_perror): New remote_target parameter. Pass it down.
17481 (remote_target::readchar, remote_target::remote_serial_write)
17482 (remote_target::getpkt_or_notif_sane_1)
17483 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17484 down target.
17485 (remote_target::mourn_inferior): Pass down target. Use
17486 remote_unpush_target.
17487 (remote_target::core_of_thread)
17488 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17489 (remote_target::pid_to_exec_file)
17490 (remote_target::thread_handle_to_thread_info): Pass down target.
17491 (remote_target::async_wait_fd): New.
17492 * riscv-fbsd-tdep.c: Include "inferior.h".
17493 (riscv_fbsd_get_thread_local_address): Pass down target.
17494 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17495 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17496 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17497 Adjust.
17498 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17499 * solib-svr4.c (enable_break): Pass down target.
17500 * spu-multiarch.c (parse_spufs_run): Pass down target.
17501 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17502 * target-delegates.c: Regenerate.
17503 * target.c (g_target_stack): Delete.
17504 (current_top_target): Return the current inferior's top target.
17505 (target_has_execution_1): Refer to the passed-in inferior's top
17506 target.
17507 (target_supports_terminal_ours): Check whether the initial
17508 inferior was already created.
17509 (decref_target): New.
17510 (target_stack::push): Incref/decref the target.
17511 (push_target, push_target, unpush_target): Adjust.
17512 (target_stack::unpush): Defref target.
17513 (target_is_pushed): Return bool. Adjust to refer to the current
17514 inferior's target stack.
17515 (dispose_inferior): Delete, and inline parts ...
17516 (target_preopen): ... here. Only dispose of the current inferior.
17517 (target_detach): Hold strong target reference while detaching.
17518 Pass target down.
17519 (target_thread_name): Add assertion.
17520 (target_resume): Pass down target.
17521 (target_ops::beneath, find_target_at): Adjust to refer to the
17522 current inferior's target stack.
17523 (get_dummy_target): New.
17524 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17525 has a thread running.
17526 (initialize_targets): Rename to ...
17527 (_initialize_target): ... this.
17528 * target.h: Include "gdbsupport/refcounted-object.h".
17529 (struct target_ops): Inherit refcounted_object.
17530 (target_ops::shortname, target_ops::longname): Make const.
17531 (target_ops::async_wait_fd): New method.
17532 (decref_target): Declare.
17533 (struct target_ops_ref_policy): New.
17534 (target_ops_ref): New typedef.
17535 (get_dummy_target): Declare function.
17536 (target_is_pushed): Return bool.
17537 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17538 (all_matching_threads_iterator::all_matching_threads_iterator):
17539 Handle filter target.
17540 * thread-iter.h (struct all_matching_threads_iterator, struct
17541 all_matching_threads_range, class all_non_exited_threads_range):
17542 Filter by target too. Remove explicit.
17543 * thread.c (threads_executing): Delete.
17544 (inferior_thread): Pass down current inferior.
17545 (clear_thread_inferior_resources): Pass down thread pointer
17546 instead of ptid_t.
17547 (add_thread_silent, add_thread_with_info, add_thread): Add
17548 process_stratum_target parameter. Use it for thread and inferior
17549 searches.
17550 (is_current_thread): New.
17551 (thread_info::deletable): Use it.
17552 (find_thread_ptid, thread_count, in_thread_list)
17553 (thread_change_ptid, set_resumed, set_running): New
17554 process_stratum_target parameter. Pass it down.
17555 (set_executing): New process_stratum_target parameter. Pass it
17556 down. Adjust reference to 'threads_executing'.
17557 (threads_are_executing): New process_stratum_target parameter.
17558 Adjust reference to 'threads_executing'.
17559 (set_stop_requested, finish_thread_state): New
17560 process_stratum_target parameter. Pass it down.
17561 (switch_to_thread): Also match inferior.
17562 (switch_to_thread): New process_stratum_target parameter. Pass it
17563 down.
17564 (update_threads_executing): Reimplement.
17565 * top.c (quit_force): Pop targets from all inferior.
17566 (gdb_init): Don't call initialize_targets.
17567 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17568 Declare.
17569 (windows_add_thread, windows_delete_thread): Adjust.
17570 (get_windows_debug_event): Rename to ...
17571 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17572 * tracefile-tfile.c (tfile_target_open): Pass down target.
17573 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17574 Forward declare.
17575 (switch_to_thread): Add process_stratum_target parameter.
17576 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17577 parameter. Use it.
17578 (mi_on_resume): Pass target down.
17579 * nat/fork-inferior.c (startup_inferior): Add
17580 process_stratum_target parameter. Pass it down.
17581 * nat/fork-inferior.h (startup_inferior): Add
17582 process_stratum_target parameter.
17583 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17584
75c6c844
PA
175852020-01-10 Pedro Alves <palves@redhat.com>
17586
17587 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17588 directly. Instead find the first thread in the thread list and
17589 use switch_to_thread.
17590
78f2c40a
PA
175912020-01-10 Pedro Alves <palves@redhat.com>
17592
17593 * remote.c (remote_target::remote_add_inferior): Don't bind a
17594 process to the current inferior if the current inferior is already
17595 bound to a process.
17596
e7af6c70
TBA
175972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17598 Pedro Alves <palves@redhat.com>
17599
17600 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17601 If no process is specified, return null_ptid instead of
17602 inferior_ptid.
17603 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17604 TARGET_WAITKIND_SIGNALLED with no pid.
17605
31ba933e
PA
176062020-01-10 Pedro Alves <palves@redhat.com>
17607
17608 * remote.c (first_remote_resumed_thread): New.
17609 (remote_target::wait_as): Use it as default event_ptid instead of
17610 inferior_ptid.
17611
735fc2ca
PA
176122020-01-10 Pedro Alves <palves@redhat.com>
17613
17614 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17615
c17e02e1
PA
176162020-01-10 Pedro Alves <palves@redhat.com>
17617
17618 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17619 not -1.
17620
ab1ddbcf
PA
176212020-01-10 Pedro Alves <palves@redhat.com>
17622
17623 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17624 ptid to get_last_target_status.
17625 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17626 ptid to get_last_target_status.
17627 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17628 get_last_target_status.
17629 (info_program_command): Don't pass a target_waitstatus to
17630 get_last_target_status.
17631 * infrun.c (init_wait_for_inferior): Use
17632 nullify_last_target_wait_ptid.
17633 (get_last_target_status): Handle nullptr arguments.
17634 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17635 (print_stop_event): Don't pass a ptid to get_last_target_status.
17636 (normal_stop): Don't pass a ptid to get_last_target_status.
17637 * infrun.h (get_last_target_status, set_last_target_status): Move
17638 comments here and update.
17639 (nullify_last_target_wait_ptid): Declare.
17640 * linux-fork.c (fork_load_infrun_state): Remove local extern
17641 declaration of nullify_last_target_wait_ptid.
17642 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17643 to get_last_target_status.
17644
f3f8ece4
PA
176452020-01-10 Pedro Alves <palves@redhat.com>
17646
17647 * gdbthread.h (scoped_restore_current_thread)
17648 <dont_restore, restore, m_dont_restore>: Declare.
17649 * thread.c (thread_alive): Add assertion. Return bool.
17650 (switch_to_thread_if_alive): New.
17651 (prune_threads): Switch inferior/thread.
17652 (print_thread_info_1): Switch thread before calling target methods.
17653 (scoped_restore_current_thread::restore): New, factored out from
17654 ...
17655 (scoped_restore_current_thread::~scoped_restore_current_thread):
17656 ... this.
17657 (scoped_restore_current_thread::scoped_restore_current_thread):
17658 Add assertion.
17659 (thread_apply_all_command, thread_select): Use
17660 switch_to_thread_if_alive.
17661 * infrun.c (proceed, restart_threads, handle_signal_stop)
17662 (switch_back_to_stepped_thread): Switch current thread before
17663 calling target methods.
17664
db2d40f7
PA
176652020-01-10 Pedro Alves <palves@redhat.com>
17666
17667 * inferior.c (switch_to_inferior_no_thread): New function,
17668 factored out from ...
17669 (inferior_command): ... here.
17670 * inferior.h (switch_to_inferior_no_thread): Declare.
17671 * mi/mi-main.c (run_one_inferior): Use
17672 switch_to_inferior_no_thread.
17673
bd420a2d
PA
176742020-01-10 Pedro Alves <palves@redhat.com>
17675
17676 * infcmd.c (kill_command): Remove dead code.
17677
ddf5db90
PA
176782020-01-10 Pedro Alves <palves@redhat.com>
17679
17680 * remote.c (remote_target::mourn_inferior): No longer check
17681 whether the target is running.
17682
5018ce90
PA
176832020-01-10 Pedro Alves <palves@redhat.com>
17684
17685 * corelow.c (core_target::has_execution): Change parameter type to
17686 inferior pointer.
17687 * inferior.c (number_of_live_inferiors): Use
17688 inferior::has_execution instead of target_has_execution_1.
17689 * inferior.h (inferior::has_execution): New.
17690 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17691 inferior::has_execution instead of target_has_execution_1.
17692 * process-stratum-target.c
17693 (process_stratum_target::has_execution): Change parameter type to
17694 inferior pointer. Check the inferior's PID instead of
17695 inferior_ptid.
17696 * process-stratum-target.h
17697 (process_stratum_target::has_execution): Change parameter type to
17698 inferior pointer.
17699 * record-full.c (record_full_core_target::has_execution): Change
17700 parameter type to inferior pointer.
17701 * target.c (target_has_execution_1): Change parameter type to
17702 inferior pointer.
17703 (target_has_execution_current): Adjust.
17704 * target.h (target_ops::has_execution): Change parameter type to
17705 inferior pointer.
17706 (target_has_execution_1): Change parameter type to inferior
17707 pointer. Change return type to bool.
17708 * tracefile.h (tracefile_target::has_execution): Change parameter
17709 type to inferior pointer.
17710
74375d18
PA
177112020-01-10 Pedro Alves <palves@redhat.com>
17712
17713 * exceptions.c (print_flush): Remove current_top_target() check.
17714
acdf84a6
PA
177152020-01-10 Pedro Alves <palves@redhat.com>
17716
17717 * remote.c (show_remote_exec_file): Show the current inferior's
17718 exec-file instead of the command variable's value.
17719
ec506636
PA
177202020-01-10 Pedro Alves <palves@redhat.com>
17721
17722 * record-full.c (record_full_resume_ptid): New global.
17723 (record_full_target::resume): Set it.
17724 (record_full_wait_1): Use record_full_resume_ptid instead of
17725 inferior_ptid.
17726
873657b9
PA
177272020-01-10 Pedro Alves <palves@redhat.com>
17728
17729 * gdbthread.h (scoped_restore_current_thread)
17730 <dont_restore, restore, m_dont_restore>: Declare.
17731 * thread.c (thread_alive): Add assertion. Return bool.
17732 (switch_to_thread_if_alive): New.
17733 (prune_threads): Switch inferior/thread.
17734 (print_thread_info_1): Switch thread before calling target methods.
17735 (scoped_restore_current_thread::restore): New, factored out from
17736 ...
17737 (scoped_restore_current_thread::~scoped_restore_current_thread):
17738 ... this.
17739 (scoped_restore_current_thread::scoped_restore_current_thread):
17740 Add assertion.
17741 (thread_apply_all_command, thread_select): Use
17742 switch_to_thread_if_alive.
17743
7f0ae84c
GB
177442020-01-10 George Barrett <bob@bob131.so>
17745
17746 * stap-probe.c (stap_modify_semaphore): Don't check for null
17747 semaphores.
17748 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17749 for null semaphores.
17750
f5a7c406
AB
177512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17752
17753 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17754 all source windows, and maintain horizontal scroll status while
17755 doing so.
17756
9ae6bf64
TT
177572020-01-09 Tom Tromey <tom@tromey.com>
17758
17759 PR tui/18932:
17760 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17761 update_source_window, not print_source_lines.
17762
b2efe70c
AB
177632020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17764
17765 * tui/tui.c (tui_enable): Register tui hooks after calling
17766 tui_display_main.
17767
5f23a082
CB
177682020-01-09 Christian Biesinger <cbiesinger@google.com>
17769
17770 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17771
3061113b
SM
177722020-01-08 Simon Marchi <simon.marchi@efficios.com>
17773
17774 * thread.c (print_thread_info_1): Fix indentation.
17775
57d75002
CB
177762020-01-09 Christian Biesinger <cbiesinger@google.com>
17777
17778 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17779 unique_xmalloc_ptr outside the if to always free the demangled name.
17780
6a053cb1
TT
177812020-01-08 Tom Tromey <tromey@adacore.com>
17782
17783 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17784 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17785 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17786 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17787 Remove.
17788 (section_offsets): New typedef.
17789 * symtab.c (fixup_section, get_msymbol_address): Update.
17790 * symmisc.c (dump_msymbols): Update.
17791 * symfile.h (relative_addr_info_to_section_offsets)
17792 (symfile_map_offsets_to_segments): Update.
17793 * symfile.c (build_section_addr_info_from_objfile)
17794 (init_objfile_sect_indices): Update.
17795 (struct place_section_arg): Change type of "offsets".
17796 (place_section): Update.
17797 (relative_addr_info_to_section_offsets): Change type of
17798 "section_offsets". Remove "num_sections" parameter.
17799 (default_symfile_offsets, syms_from_objfile_1)
17800 (set_objfile_default_section_offset): Update.
17801 (reread_symbols): No need to preserve section offsets by hand.
17802 (symfile_map_offsets_to_segments): Change type of "offsets".
17803 * stap-probe.c (relocate_address): Update.
17804 * stabsread.h (process_one_symbol): Update.
17805 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17806 (solib_target_relocate_section_addresses): Update.
17807 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17808 Update.
17809 * solib-frv.c (frv_relocate_main_executable): Update.
17810 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17811 * solib-aix.c (solib_aix_get_section_offsets): Change return
17812 type.
17813 (solib_aix_solib_create_inferior_hook): Update.
17814 * remote.c (remote_target::get_offsets): Update.
17815 * psymtab.c (find_pc_sect_psymtab): Update.
17816 * psympriv.h (struct partial_symbol) <address, text_low,
17817 text_high>: Update.
17818 * objfiles.h (obj_section_offset): Update.
17819 (struct objfile) <section_offsets>: Change type.
17820 <num_sections>: Remove.
17821 (objfile_relocate): Update.
17822 * objfiles.c (entry_point_address_query): Update
17823 (relocate_one_symbol): Change type of "section_offsets".
17824 (objfile_relocate1, objfile_relocate1): Change type of
17825 "new_offsets".
17826 (objfile_rebase1): Update.
17827 * mipsread.c (mipscoff_symfile_read): Update.
17828 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17829 parameter.
17830 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17831 (parse_external, psymtab_to_symtab_1): Update.
17832 * machoread.c (macho_symfile_offsets): Update.
17833 * ia64-tdep.c (ia64_find_unwind_table): Update.
17834 * hppa-tdep.c (read_unwind_info): Update.
17835 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17836 * dwarf2read.c (create_addrmap_from_index)
17837 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17838 (process_psymtab_comp_unit_reader, add_partial_symbol)
17839 (add_partial_subprogram, process_full_comp_unit)
17840 (read_file_scope, read_func_scope, read_lexical_block_scope)
17841 (read_call_site_scope, dwarf2_rnglists_process)
17842 (dwarf2_ranges_process, dwarf2_ranges_read)
17843 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17844 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17845 Update.
17846 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17847 Update.
17848 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17849 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17850 (process_one_symbol): Change type of "section_offsets".
17851 * ctfread.c (get_objfile_text_range): Update.
17852 * coffread.c (coff_symtab_read, enter_linenos)
17853 (process_coff_symbol): Update.
17854 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17855 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17856
456e800a
TT
178572020-01-08 Tom Tromey <tromey@adacore.com>
17858
17859 * dwarf2read.c (parse_macro_definition): Use std::string.
17860 (parse_macro_definition): Likewise.
17861
6dfa2fc2
TT
178622020-01-08 Tom Tromey <tromey@adacore.com>
17863
17864 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17865 (ATTR_ALLOC_CHUNK): Remove.
17866
421d1616
TT
178672020-01-08 Tom Tromey <tromey@adacore.com>
17868
17869 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17870
43816ebc
TT
178712020-01-08 Tom Tromey <tromey@adacore.com>
17872
17873 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17874 (dwarf2_compute_name, open_dwo_file): Likewise.
17875 (process_enumeration_scope): Use std::vector.
17876 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17877 (partial_die_info::fixup, dwarf2_start_subfile)
17878 (guess_full_die_structure_name, dwarf2_name): Likewise.
17879 (determine_prefix): Update.
17880 (guess_full_die_structure_name): Make return type const.
17881 (partial_die_full_name): Return unique_xmalloc_ptr.
17882 (DW_FIELD_ALLOC_CHUNK): Remove.
17883
4212d509
TT
178842020-01-07 Tom Tromey <tromey@adacore.com>
17885
17886 PR build/24937:
17887 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17888
06a6207a
JT
178892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17890
17891 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17892
153d79c4
AB
178932020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17894
17895 * stack.c (print_frame_info): Move disassemble_next_line code
17896 inside source_print block.
17897
66182876
EZ
178982020-01-06 Eli Zaretskii <eliz@gnu.org>
17899
17900 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17901 gdb/signals.h, as we are now using native signal symbols.
17902
cbfa8581
SV
179032020-01-06 Shahab Vahedi <shahab@synopsys.com>
17904
17905 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17906 overflow by an early check of content vs threshold.
aac66a4c 17907 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17908 Likewise.
17909
3f602821
EZ
179102020-01-06 Eli Zaretskii <eliz@gnu.org>
17911
17912 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17913
a08c904d
JT
179142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17915
17916 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17917 export table if no section contains it's RVA.
17918
89a65580
EZ
179192020-01-06 Eli Zaretskii <eliz@gnu.org>
17920
17921 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17922
8b7fcda2
HD
179232020-01-06 Hannes Domani <ssbssa@yahoo.de>
17924
17925 * source.c (print_source_lines_base): Set last_line_listed.
17926
a61b4f69
SV
179272020-01-06 Shahab Vahedi <shahab@synopsys.com>
17928
17929 * tui/tui-disasm.c: Remove trailing spaces.
17930
559e7e50
EZ
179312020-01-06 Eli Zaretskii <eliz@gnu.org>
17932 Pedro Alves <palves@redhat.com>
17933
17934 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17935 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17936 (windows_gdb_signal_to_target): New function, uses the above
17937 enumeration to convert GDB internal signal codes to equivalent
17938 Windows codes.
17939 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17940 * windows-nat.c: Include "gdb_wait.h".
17941 (get_windows_debug_event): Extract the fatal exception from the
17942 exit status and convert to the equivalent Posix signal number.
17943 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17944 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17945 * gdbsupport/gdb_wait.c: New file, implements
17946 windows_status_to_termsig.
17947 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17948 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17949
f2302a34
AB
179502020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17951
17952 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17953 show_layout.
17954
6a5206eb
LM
179552020-01-05 Luis Machado <luis.machado@linaro.org>
17956
17957 * aarch64-linux-nat.c
17958 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17959 and bfd_mach_aarch64.
17960
6ec1d75e
PW
179612020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17962
17963 * ui-file.c (stdio_file::can_emit_style_escape)
17964 (tee_file::can_emit_style_escape): Ensure style is used also on
17965 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17966 to gdb_stdout.
17967 * main.c (set_gdb_data_directory): Use file style to output the
17968 warning that the given pathname is not a directory.
17969 * top.c (show_history_filename, gdb_safe_append_history)
17970 (show_gdb_datadir): Use file style.
17971
44f81a76
HD
179722020-01-03 Hannes Domani <ssbssa@yahoo.de>
17973
17974 * solib-target.c (struct lm_info_target):
17975 Change offsets to be a unique_xmalloc_ptr.
17976 (solib_target_relocate_section_addresses): Update.
17977
25057eb0
HD
179782020-01-03 Hannes Domani <ssbssa@yahoo.de>
17979
17980 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17981
6e2118f5
BE
179822020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17983
17984 * MAINTAINERS (Write After Approval): Add myself.
17985
8133c7dc
LM
179862020-01-02 Luis Machado <luis.machado@linaro.org>
17987
17988 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17989 Cell BE architecture.
17990 * target.h (struct target_ops) <thread_architecture>: Likewise.
17991
48189bec
HD
179922020-01-01 Hannes Domani <ssbssa@yahoo.de>
17993
17994 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17995
ead1063b
HD
179962020-01-01 Hannes Domani <ssbssa@yahoo.de>
17997
17998 * MAINTAINERS (Write After Approval): Add myself.
17999
e5d78223
JB
180002020-01-01 Joel Brobecker <brobecker@adacore.com>
18001
18002 * gdbarch.sh: Update copyright year range of generated files.
18003
b811d2c2
JB
180042020-01-01 Joel Brobecker <brobecker@adacore.com>
18005
18006 Update copyright year range in all GDB files.
18007
5f4def5c
JB
180082020-01-01 Joel Brobecker <brobecker@adacore.com>
18009
18010 * copyright.py: Convert to Python 3.
18011
51fd4002
JB
180122020-01-01 Joel Brobecker <brobecker@adacore.com>
18013
18014 * copyright.py: Adapt after move of gnulib directory from gdb
18015 directory to toplevel directory.
18016
5fb651f2
JB
180172020-01-01 Joel Brobecker <brobecker@adacore.com>
18018
18019 * copyright.py (main): Exit if run from the wrong directory.
18020
5dd8bf88
JB
180212020-01-01 Joel Brobecker <brobecker@adacore.com>
18022
18023 * top.c (print_gdb_version): Change copyright year to 2020.
18024
9f71dacb 180252020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18026
9f71dacb 18027 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18028
9f71dacb 18029For older changes see ChangeLog-2019.
c906108c
SS
18030\f
18031Local Variables:
18032mode: change-log
18033left-margin: 8
18034fill-column: 74
18035version-control: never
57da7796 18036coding: utf-8
c906108c 18037End: