]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: address review comments of previous series
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6ad368b8
SM
12020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
4 Return {} instead of false.
5 (get_discrete_bounds): Compute high bound only if low bound is
6 valid.
7
5b56203a
SM
82020-12-09 Simon Marchi <simon.marchi@efficios.com>
9
10 PR 26875, PR 26901
11 * gdbtypes.c (get_discrete_low_bound): Make non-static.
12 (get_discrete_high_bound): Make non-static.
13 * gdbtypes.h (get_discrete_low_bound): New declaration.
14 (get_discrete_high_bound): New declaration.
15 * valarith.c (value_subscript): Only fetch high bound if
16 necessary.
17
14c09924
SM
182020-12-09 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.c (get_discrete_bounds): Implement with
21 get_discrete_low_bound and get_discrete_high_bound.
22 (get_discrete_low_bound): New.
23 (get_discrete_high_bound): New.
24
1f8d2881
SM
252020-12-09 Simon Marchi <simon.marchi@efficios.com>
26
27 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
28 callers.
29 * gdbtypes.c (get_discrete_bounds): Return bool.
30
6244c119
SM
312020-12-09 Simon Marchi <simon.marchi@efficios.com>
32
33 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
34 (ada_value_slice): Adjust.
35 (pos_atr): Adjust.
36 * gdbtypes.c (get_discrete_bounds): Adjust.
37 (discrete_position): Return optional.
38 * gdbtypes.h (discrete_position): Return optional.
39
a4915e8d
TT
402020-12-07 Tom Tromey <tromey@adacore.com>
41
42 * maint.c (_initialize_maint_cmds): Use expression command
43 completer for "maint print type".
44
1f58f6c2
TBA
452020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 * completer.c (complete_explicit_location): Also add keywords
48 that start with '-' to the completion list.
49
5759831a
TBA
502020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
53 keyword may be followed by any keyword.
54 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
55 'toklen' in the case for "-force-condition".
56
21e051b3
TBA
572020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
58
59 * main.c (catch_command_errors): Add a flag parameter; invoke
60 `bpstat_do_actions` if the flag is set.
61 (execute_cmdargs): Update a call to `catch_command_errors`.
62
f51f9f1d
TV
632020-12-07 Tom de Vries <tdevries@suse.de>
64
65 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
66
00158a68
TT
672020-12-06 Tom Tromey <tom@tromey.com>
68
69 PR ada/26999
70 * ada-lang.c (replace_operator_with_call): Rewrite.
71
296cfb88
GF
722020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
73
74 PR breakpoints/27009
75 * s390-tdep.h (op_bc): Correct BC opcode value.
76
63c457b9
JB
772020-12-06 Joel Brobecker <brobecker@adacore.com>
78
79 * gmp-utils.h (gdb_mpz::safe_export): New private method.
80 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
81 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
82 (gdb_mpz::safe_export): New method.
83 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
84 Update function description.
85 (check_as_integer_raises_out_of_range_error): New function.
86 (gdb_mpz_as_integer_out_of_range): New function.
87 (_initialize_gmp_utils_selftests): Register
88 gdb_mpz_as_integer_out_of_range as a selftest.
89
3c7ba803
JB
902020-12-05 Joel Brobecker <brobecker@adacore.com>
91
92 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
93 TARGET_CHAR_BIT.
94 (gdb_mpz::write): Likewise.
95
372ff58f
SM
962020-12-04 Simon Marchi <simon.marchi@efficios.com>
97
98 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
99 number of displaced step buffers.
100
480af54c
SM
1012020-12-04 Simon Marchi <simon.marchi@efficios.com>
102
103 * displaced-stepping.h (struct displaced_step_buffer): Rename
104 to...
105 (struct displaced_step_buffers): ... this.
106 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
107 <struct displaced_step_buffer>: New inner class.
108 <m_buffers>: New.
109 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
110 to...
111 (displaced_step_buffers::prepare): ... this, adjust for multiple
112 buffers.
113 (displaced_step_buffer::finish): Rename to...
114 (displaced_step_buffers::finish): ... this, adjust for multiple
115 buffers.
116 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
117 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
118 adjust for multiple buffers.
119 (displaced_step_buffer::restore_in_ptid): Rename to...
120 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
121 multiple buffers.
122 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
123 for num_disp_step_buffers.
124 * linux-tdep.c (struct linux_gdbarch_data)
125 <num_disp_step_buffers>: New field.
126 (struct linux_info) <disp_step_buf>: Rename to...
127 <disp_step_bufs>: ... this, change type to
128 displaced_step_buffers.
129 (linux_displaced_step_prepare): Use
130 linux_gdbarch_data::num_disp_step_buffers to create that number
131 of buffers.
132 (linux_displaced_step_finish): Adjust.
133 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
134 (linux_displaced_step_restore_all_in_ptid): Adjust.
135 (linux_init_abi): Change supports_displaced_step parameter for
136 num_disp_step_buffers, save it in linux_gdbarch_data.
137 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
138 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
139 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
140 supports_displaced_step parameter for num_disp_step_buffers.
141 (amd64_linux_init_abi): Adjust.
142 (amd64_x32_linux_init_abi): Adjust.
143 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
144 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
145 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
146 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
147 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
148 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
149 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
150 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
151 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
152 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
153 * m68k-linux-tdep.c (m68k_linux_init_abi):
154 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
155 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
156 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
157 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
158 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
159 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
160 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
161 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
162 Change type to displaced_step_buffers.
163 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
164 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
165 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
166 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
167 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
168 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
169 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
170
d9655058
SM
1712020-12-04 Simon Marchi <simon.marchi@efficios.com>
172
173 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
174 obkstack.
175 (_initialize_linux_tdep): Register pre-init gdb data instead of
176 post-init.
177
187b041e
SM
1782020-12-04 Simon Marchi <simon.marchi@efficios.com>
179
180 * displaced-stepping.h (struct
181 displaced_step_copy_insn_closure): Adjust comments.
182 (struct displaced_step_inferior_state) <step_thread,
183 step_gdbarch, step_closure, step_original, step_copy,
184 step_saved_copy>: Remove fields.
185 (struct displaced_step_thread_state): New.
186 (struct displaced_step_buffer): New.
187 * displaced-stepping.c (displaced_step_buffer::prepare): New.
188 (write_memory_ptid): Move from infrun.c.
189 (displaced_step_instruction_executed_successfully): New,
190 factored out of displaced_step_finish.
191 (displaced_step_buffer::finish): New.
192 (displaced_step_buffer::copy_insn_closure_by_addr): New.
193 (displaced_step_buffer::restore_in_ptid): New.
194 * gdbarch.sh (displaced_step_location): Remove.
195 (displaced_step_prepare, displaced_step_finish,
196 displaced_step_copy_insn_closure_by_addr,
197 displaced_step_restore_all_in_ptid): New.
198 * gdbarch.c: Re-generate.
199 * gdbarch.h: Re-generate.
200 * gdbthread.h (class thread_info) <displaced_step_state>: New
201 field.
202 (thread_step_over_chain_remove): New declaration.
203 (thread_step_over_chain_next): New declaration.
204 (thread_step_over_chain_length): New declaration.
205 * thread.c (thread_step_over_chain_remove): Make non-static.
206 (thread_step_over_chain_next): New.
207 (global_thread_step_over_chain_next): Use
208 thread_step_over_chain_next.
209 (thread_step_over_chain_length): New.
210 (global_thread_step_over_chain_enqueue): Add debug print.
211 (global_thread_step_over_chain_remove): Add debug print.
212 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
213 Remove.
214 * infrun.c (get_displaced_stepping_state): New.
215 (displaced_step_in_progress_any_inferior): Remove.
216 (displaced_step_in_progress_thread): Adjust.
217 (displaced_step_in_progress): Adjust.
218 (displaced_step_in_progress_any_thread): New.
219 (get_displaced_step_copy_insn_closure_by_addr): Remove.
220 (gdbarch_supports_displaced_stepping): Use
221 gdbarch_displaced_step_prepare_p.
222 (displaced_step_reset): Change parameter from inferior to
223 thread.
224 (displaced_step_prepare_throw): Implement using
225 gdbarch_displaced_step_prepare.
226 (write_memory_ptid): Move to displaced-step.c.
227 (displaced_step_restore): Remove.
228 (displaced_step_finish): Implement using
229 gdbarch_displaced_step_finish.
230 (start_step_over): Allow starting more than one displaced step.
231 (prepare_for_detach): Handle possibly multiple threads doing
232 displaced steps.
233 (handle_inferior_event): Handle possibility that fork event
234 happens while another thread displaced steps.
235 * linux-tdep.h (linux_displaced_step_prepare): New.
236 (linux_displaced_step_finish): New.
237 (linux_displaced_step_copy_insn_closure_by_addr): New.
238 (linux_displaced_step_restore_all_in_ptid): New.
239 (linux_init_abi): Add supports_displaced_step parameter.
240 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
241 (linux_displaced_step_prepare): New.
242 (linux_displaced_step_finish): New.
243 (linux_displaced_step_copy_insn_closure_by_addr): New.
244 (linux_displaced_step_restore_all_in_ptid): New.
245 (linux_init_abi): Add supports_displaced_step parameter,
246 register displaced step methods if true.
247 (_initialize_linux_tdep): Register inferior_execd observer.
248 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
249 supports_displaced_step parameter, adjust call to
250 linux_init_abi. Remove call to
251 set_gdbarch_displaced_step_location.
252 (amd64_linux_init_abi): Adjust call to
253 amd64_linux_init_abi_common.
254 (amd64_x32_linux_init_abi): Likewise.
255 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
256 linux_init_abi. Remove call to
257 set_gdbarch_displaced_step_location.
258 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
259 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
260 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
261 linux_init_abi.
262 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
263 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
264 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
265 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
266 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
267 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
268 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
269 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
270 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
271 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
272 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
273 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
274 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
275 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
276 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
277 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
278 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
279 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
280 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
281 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
282 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
283 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
284 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
285 linux_init_abi. Remove call to
286 set_gdbarch_displaced_step_location.
287 * arm-tdep.c (arm_pc_is_thumb): Call
288 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
289 get_displaced_step_copy_insn_closure_by_addr.
290 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
291 clear gdbarch methods.
292 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
293 (get_ppc_per_inferior): New function.
294 (ppc_displaced_step_prepare): New function.
295 (ppc_displaced_step_finish): New function.
296 (ppc_displaced_step_restore_all_in_ptid): New function.
297 (rs6000_gdbarch_init): Register new gdbarch methods.
298 * s390-tdep.c (s390_gdbarch_init): Don't call
299 set_gdbarch_displaced_step_location, set new gdbarch methods.
300
c7acb87b
SM
3012020-12-04 Simon Marchi <simon.marchi@efficios.com>
302
303 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
304 * aarch64-tdep.h: Include displaced-stepping.h.
305 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
306 Move here.
307 (displaced_step_copy_insn_closure_up): Move here.
308 (struct buf_displaced_step_copy_insn_closure): Move here.
309 (struct displaced_step_inferior_state): Move here.
310 (debug_displaced): Move here.
311 (displaced_debug_printf_1): Move here.
312 (displaced_debug_printf): Move here.
313 * displaced-stepping.c: New file.
314 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
315 * gdbarch.h: Re-generate.
316 * inferior.h: Include displaced-stepping.h.
317 * infrun.h (debug_displaced): Move to displaced-stepping.h.
318 (displaced_debug_printf_1): Likewise.
319 (displaced_debug_printf): Likewise.
320 (struct displaced_step_copy_insn_closure): Likewise.
321 (displaced_step_copy_insn_closure_up): Likewise.
322 (struct buf_displaced_step_copy_insn_closure): Likewise.
323 (struct displaced_step_inferior_state): Likewise.
324 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
325 (displaced_debug_printf_1): Likewise.
326 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
327 Likewise.
328 (_initialize_infrun): Don't register "set/show debug displaced".
329
94b24c74
SM
3302020-12-04 Simon Marchi <simon.marchi@efficios.com>
331
332 * linux-tdep.c (get_linux_inferior_data): Add inferior
333 parameter.
334 (linux_vsyscall_range): Pass current inferior.
335
bab37966
SM
3362020-12-04 Simon Marchi <simon.marchi@efficios.com>
337
338 * infrun.c (displaced_step_prepare_throw): Change return type to
339 displaced_step_prepare_status.
340 (displaced_step_prepare): Likewise.
341 (displaced_step_finish): Change return type to
342 displaced_step_finish_status.
343 (resume_1): Adjust.
344 (stop_all_threads): Adjust.
345 * displaced-stepping.h: New file.
346
7def77a1
SM
3472020-12-04 Simon Marchi <simon.marchi@efficios.com>
348
349 * infrun.c (displaced_step_fixup): Rename to...
350 (displaced_step_finish): ... this, update all callers.
351
1152d984
SM
3522020-12-04 Simon Marchi <simon.marchi@efficios.com>
353
354 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
355 (get_displaced_step_copy_insn_closure_by_addr): ... this.
356 Update all users.
357 (displaced_step_closure): Rename to...
358 (displaced_step_copy_insn_closure): ... this. Update all users.
359 (displaced_step_closure_up): Rename to...
360 (displaced_step_copy_insn_closure_up). ... this. Update all
361 users.
362 (buf_displaced_step_closure): Rename to...
363 (buf_displaced_step_copy_insn_closure): ... this. Update all
364 users.
365 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
366 (get_displaced_step_copy_insn_closure_by_addr): ... this.
367 Update all users.
368 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
369 (aarch64_displaced_step_copy_insn_closure): ... this. Update
370 all users.
371 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
372 (amd64_displaced_step_copy_insn_closure): ... this. Update all
373 users.
374 * arm-tdep.h (arm_displaced_step_closure): Rename to...
375 (arm_displaced_step_copy_insn_closure): ... this. Update all
376 users.
377 * i386-tdep.h (i386_displaced_step_closure): Rename to...
378 (i386_displaced_step_copy_insn_closure): ... this. Update all
379 users.
380 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
381 (ppc_displaced_step_copy_insn_closure): ... this. Update all
382 users.
383 * s390-tdep.c (s390_displaced_step_closure): Rename to...
384 (s390_displaced_step_copy_insn_closure): ... this. Update all
385 users.
386 * gdbarch.h: Re-generate.
387 * gdbarch.c: Re-generate.
388
28d5518b
SM
3892020-12-04 Simon Marchi <simon.marchi@efficios.com>
390
391 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
392 (global_thread_step_over_chain_enqueue): ... this. Update all
393 users.
394 (thread_step_over_chain_remove): Rename to...
395 (global_thread_step_over_chain_remove): ... this. Update all
396 users.
397 (thread_step_over_chain_next): Rename to...
398 (global_thread_step_over_chain_next): ... this. Update all
399 users.
400 * infrun.h (step_over_queue_head): Rename to...
401 (global_thread_step_over_chain_head): ... this. Update all
402 users.
403 * infrun.c (step_over_queue_head): Rename to...
404 (global_thread_step_over_chain_head): ... this. Update all
405 users.
406 * thread.c (step_over_chain_remove): Rename to...
407 (thread_step_over_chain_remove): ... this. Update all users.
408 (thread_step_over_chain_next): Rename to...
409 (global_thread_step_over_chain_next): ... this. Update all
410 users.
411 (thread_step_over_chain_enqueue): Rename to...
412 (global_thread_step_over_chain_enqueue): ... this. Update all
413 users.
414 (thread_step_over_chain_remove): Rename to...
415 (global_thread_step_over_chain_remove): ... this. Update all
416 users.
417
f5f01699
SM
4182020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * infrun.c (get_displaced_stepping_state): Remove, change
421 callers to access the field directly.
422
c0aba012
SM
4232020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * infrun.c (handle_inferior_event): Restore displaced step
426 buffer bytes in child process when handling fork, even if fork
427 happened in another thread than the displaced-stepping one.
428
3b7a962d
SM
4292020-12-04 Simon Marchi <simon.marchi@efficios.com>
430
431 * infrun.c (infrun_inferior_execd): New function.
432 (_initialize_infrun): Attach inferior_execd observer.
433
42a4fec5
SM
4342020-12-04 Simon Marchi <simon.marchi@efficios.com>
435
436 * observable.h (inferior_execd): Declare new observable.
437 * observable.c (inferior_execd): Declare new observable.
438 * infrun.c (follow_exec): Notify inferior_execd observer.
439 * jit.c (jit_inferior_created_hook): Make static.
440 (_initialize_jit): Register inferior_execd observer.
441 * jit.h (jit_inferior_created_hook): Remove declaration.
442 * solib.c (_initialize_solib): Register inferior_execd observer.
443
aafdfb4e
TV
4442020-12-04 Tom de Vries <tdevries@suse.de>
445
446 PR gdb/27003
447 * completer.c (completion_tracker::build_completion_result): Don't
448 access match_list[0][-1].
449
f99b5177
TT
4502020-12-04 Tom Tromey <tromey@adacore.com>
451
452 * linespec.c (struct linespec_token): Rename; remove typedef.
453 * guile/scm-block.c (struct block_smob): Remove typedef.
454 (struct block_syms_progress_smob): Likewise.
455 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
456 * guile/scm-symtab.c (symtab_smob): Remove typedef.
457 (struct sal_smob): Remove typedef.
458 * guile/scm-param.c (struct param_smob): Remove typedef.
459 * guile/scm-progspace.c (struct pspace_smob): Rename.
460 * guile/scm-objfile.c (struct objfile_smob): Rename.
461 * guile/scm-iterator.c (struct iterator_smob): Rename.
462 * guile/scm-frame.c (struct frame_smob): Rename.
463 * guile/scm-arch.c (struct arch_smob): Rename.
464 * guile/scm-type.c (struct field_smob): Remove typedef.
465 (struct type_smob): Rename.
466 * guile/scm-cmd.c (struct command_smob): Remove typedef.
467 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
468 * guile/scm-value.c (struct value_smob): Remove typedef.
469 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
470 * guile/guile-internal.h (struct scheme_variable)
471 (struct scheme_function, struct scheme_integer_constant)
472 (struct gdb_smob, struct chained_gdb_smob)
473 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
474 (objfile_smob, pspace_smob, type_smob): Remove typedef.
475 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
476 (struct pretty_printer_worker_smob): Remove typedef.
477 * guile/scm-exception.c (struct exception_smob): Remove typedef.
478 * python/py-block.c (struct block_object): Remove typedef.
479 (block_syms_iterator_object): Update.
480 (set_block): Update.
481 (block_syms_iterator_object): Remove typedef.
482 * python/py-inferior.c (struct membuf_object): Remove typedef.
483 * python/py-symtab.c (struct symtab_object): Remove typedef.
484 (set_symtab): Update.
485 (sal_object): Remove typedef.
486 (set_sal): Update.
487 * python/py-frame.c (frame_object): Remove typedef.
488 * python/py-record-btrace.c (struct btpy_list_object): Remove
489 typedef.
490 * python/py-arch.c (struct arch_object): Remove typedef.
491 * python/py-linetable.c (struct linetable_entry_object)
492 (linetable_object, struct ltpy_iterator_object): Remove typedef.
493 * python/py-events.h (eventregistry_object): Remove typedef.
494 (struct events_object): Remove typedef.
495 * python/python-internal.h (gdbpy_breakpoint_object): Remove
496 typedef.
497 (thread_object): Remove typedef.
498 * python/py-progspace.c (pspace_object): Remove typedef.
499 * python/py-value.c (struct value_object): Remove typedef.
500 * python/py-record.h (recpy_record_object): Remove typedef.
501 (struct recpy_element_object): Remove typedef.
502 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
503 * python/py-objfile.c (objfile_object): Remove typedef.
504 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
505 * python/py-type.c (type_object): Remove typedef.
506 (typy_iterator_object): Update.
507 (set_type): Update.
508 (field_object): Remove typedef.
509 (typy_iterator_object): Remove typedef.
510 * python/py-registers.c (register_descriptor_iterator_object):
511 Remove typedef.
512 (struct register_descriptor_object)
513 (struct reggroup_iterator_object, struct reggroup_object): Remove
514 typedef.
515 * python/py-record.c (recpy_gap_object): Remove typedef.
516 * python/py-symbol.c (symbol_object): Remove typedef.
517 (set_symbol): Update.
518 * python/py-event.h (event_object): Remove typedef.
519 * python/py-param.c (parmpy_object): Remove typedef.
520 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
521 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
522 (unwind_info_object, struct cached_frame_info): Likewise.
523
91f87213
TT
5242020-12-04 Tom Tromey <tromey@adacore.com>
525
526 * value.c (value_internal_function_name): Make return type const.
527 * value.h (value_internal_function_name): Make return type const.
528
5382f971
LM
5292020-12-04 Luis Machado <luis.machado@linaro.org>
530
531 * aarch64-tdep.c (submask, bit, bits): Remove.
532 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
533 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
534 (aarch64_decode_cb, aarch64_decode_tb)
535 (aarch64_decode_ldr_literal): Use sbits to extract a signed
536 immediate.
537 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
538
b6a6aa07
TV
5392020-12-04 Tom de Vries <tdevries@suse.de>
540
541 PR tdep/27007
542 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
543
0bc2e38d
SM
5442020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
545
546 PR gdb/26876
547 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
548 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
549
25428040
AB
5502020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * arch/riscv.c: Include 'rv32e-xregs.c'.
553 (riscv_create_target_description): Update to handle rv32e.
554 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
555 member variable.
556 <operator==>: Update to account for new field.
557 <hash>: Likewise.
558 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
559 * features/riscv/rv32e-xregs.c: Generated.
560 * features/riscv/rv32e-xregs.xml: New file.
561 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
562 file.
563 (riscv_debug_infcall): Likewise.
564 (riscv_debug_unwinder): Likewise.
565 (riscv_debug_gdbarch): Likewise.
566 (enum riscv_register_required_status): Delete.
567 (struct riscv_register_feature): Add constructor, delete default
568 constructor, copy, and assign constructors.
569 (struct riscv_register_feature::register_info) <required>: Delete.
570 <check>: Update comment and arguments.
571 (struct riscv_register_feature) <name>: Change to member function.
572 <prefer_first_name>: Delete.
573 <tdesc_feature>: New member function.
574 <registers>: Rename to...
575 <m_registers>: ...this.
576 <m_feature_name>: New member variable.
577 (riscv_register_feature::register_info::check): Update arguments.
578 (riscv_xreg_feature): Rewrite as class, create a single static
579 instance of the class.
580 (riscv_freg_feature): Likewise.
581 (riscv_virtual_feature): Likewise.
582 (riscv_csr_feature): Likewise.
583 (riscv_create_csr_aliases): Has become a member function inside
584 riscv_csr_feature class.
585 (riscv_abi_embedded): New function definition.
586 (riscv_register_name): Adjust to use new feature objects.
587 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
588 and adjust available argument registers.
589 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
590 (riscv_check_tdesc_feature): Delete.
591 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
592 (riscv_gdbarch_init): Delete target description checking code, and
593 instead call to the new feature objects to perform the checks.
594 Reorder handling of no abi information case, allows small code
595 simplification.
596 (_initialize_riscv_tdep): Remove call, this is now done in the
597 riscv_csr_feature constructor.
598 * riscv-tdep.h (riscv_abi_embedded): Declare.
599
533b2ae0
AB
6002020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
603 DECLARE_CSR_ALIAS.
604
e4502042
AB
6052020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
606
607 * riscv-tdep.c (riscv_is_unknown_csr): New function,
608 implementation moved from riscv_register_reggroup_p.
609 (riscv_register_reggroup_p): Update group handling for unknown
610 CSRs.
611
2bf3b79d
SDJ
6122020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
613
614 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
615 (dwarf2_get_dwz_file): Convert 'filename' to a
616 std::string. Use dwz_search_other_debugdirs to search for DWZ
617 files in the debug-file-directories provided by the user as well.
618
77bf7e99
TT
6192020-12-01 Tom Tromey <tom@tromey.com>
620
621 * parse.c (expr_builder::expr_builder): Initialize expout.
622 (expr_builder::release): Use expression::resize.
623 (expression::expression, expression::~expression)
624 (expression::resize): New methods.
625 (write_exp_elt): Use expression::resize.
626 (prefixify_expression): Update.
627 (increase_expout_size): Use expression::resize.
628 * expression.h (struct expression): Add constructor, destructor.
629 <resize>: New method.
630 (expression_up): Change type.
631
539d71e8
RA
6322020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
633 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
634 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
635 set region.
636
7ce05d21
TV
6372020-11-30 Tom de Vries <tdevries@suse.de>
638
639 PR symtab/26905
640 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
641 is_reference parameter.
642 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
643
88b91969
TT
6442020-11-30 Tom Tromey <tom@tromey.com>
645
646 * rust-lang.c (rust_op_name): Remove.
647 (exp_descriptor_rust): Update.
648 * parser-defs.h (op_name_standard): Don't declare.
649 (struct exp_descriptor) <op_name>: Remove.
650 * parse.c (exp_descriptor_standard): Update.
651 * opencl-lang.c (exp_descriptor_opencl): Update.
652 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
653 * f-lang.c (op_name_f): Remove.
654 (f_language::exp_descriptor_tab): Update.
655 * expression.h (op_name): Update.
656 * expprint.c (op_name): Rewrite.
657 (op_name_standard): Remove.
658 (dump_raw_expression, dump_subexp): Update.
659 * c-lang.c (exp_descriptor_c): Update.
660 * ax-gdb.c (gen_expr): Update.
661 * ada-lang.c (ada_op_name): Remove.
662 (ada_exp_descriptor): Update.
663
1cd49c43
TT
6642020-11-30 Tom Tromey <tom@tromey.com>
665
666 * eval.c (init_array_element): Remove.
667 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
668
96fb9086
HD
6692020-11-29 Hannes Domani <ssbssa@yahoo.de>
670
671 PR tui/26973
672 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
673 static locator win info.
674
b4132322
AR
6752020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
676
677 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
678 program.
679
3df8c6af
AB
6802020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
683 is always initialized.
684
0ae45769
RA
6852020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
686 * MAINTAINERS (Write After Approval): Add myself.
687
239ca5e4
PW
6882020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
689
690 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
691 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
692
cbfa382a
TT
6932020-11-25 Tom Tromey <tom@tromey.com>
694
695 * eval.c (evaluate_subexp_standard): Remove unnecessary
696 variables.
697
af30c400
TT
6982020-11-25 Tom Tromey <tom@tromey.com>
699
700 * d-lang.c: Include parser-defs.h.
701 * rust-lang.c: Include parser-defs.h.
702 * c-lang.h: Do not include parser-defs.h.
703
1c64f6cb
SM
7042020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * regcache.h (struct cached_reg): Remove typedef.
707
2c20a601
JB
7082020-11-24 Joel Brobecker <brobecker@adacore.com>
709
710 * README: Fix the URL of the MPFR library.
711
c609df64
JB
7122020-11-24 Joel Brobecker <brobecker@adacore.com>
713
714 * README: Document the --with-libgmp-prefix configure option.
715
fa123c32
JB
7162020-11-24 Joel Brobecker <brobecker@adacore.com>
717
718 * NEWS: Add entry documenting support for DWARF-based fixed
719 point types.
720
0fb8bb02
JB
7212020-11-24 Joel Brobecker <brobecker@adacore.com>
722
723 * NEWS: Document that building GDB now requires GMP.
724
4afa9fd9
JB
7252020-11-24 Joel Brobecker <brobecker@adacore.com>
726
727 * typeprint.c (print_type_scalar): Add handling of
728 TYPE_CODE_FIXED_POINT.
729
af619ce9
JB
7302020-11-24 Joel Brobecker <brobecker@adacore.com>
731
732 * valarith.c (fixed_point_binop): Replace the
733 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
734 users accordingly.
735
e6fcee3a
JB
7362020-11-24 Joel Brobecker <brobecker@adacore.com>
737
738 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
739 replacing fixed_point_scaling_factor. All callers updated
740 throughout this project.
741 (fixed_point_scaling_factor): Delete declaration.
742 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
743 fixed_point_scaling_factor. Adjust implementation accordingly.
744
d19937a7
JB
7452020-11-24 Joel Brobecker <brobecker@adacore.com>
746
747 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
748 replacing the fixed_point_type_base_type function. All callers
749 updated throughout this project.
750 (fixed_point_type_base_type): Remove declaration.
751 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
752 fixed_point_type_base_type. Adjust implementation accordingly.
753
2a12c336
JB
7542020-11-24 Joel Brobecker <brobecker@adacore.com>
755
756 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
757 New methods.
758 (INIT_FIXED_POINT_SPECIFIC): Adjust.
759 (TYPE_FIXED_POINT_INFO): Delete macro.
760 (allocate_fixed_point_type_info): Change return type to void.
761 * gdbtypes.c (copy_type_recursive): Replace the use of
762 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
763 (fixed_point_scaling_factor): Likewise.
764 (allocate_fixed_point_type_info): Change return type to void.
765 Adjust implementation accordingly.
766 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
767 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
768
c9f0b43f
JB
7692020-11-24 Joel Brobecker <brobecker@adacore.com>
770
771 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
772 into one single gdb::array_view parameter.
773 (gdb_mpz::write): Likewise.
774 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
775 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
776 into one single gdb::array_view parameter.
777 Adjust implementation accordingly.
778 (gdb_mpz::write): Likewise.
779 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
780 * unittests/gmp-utils-selftests.c: Adapt following changes above.
781 * valarith.c, valops.c, valprint.c, value.c: Likewise.
782
987b6703
JB
7832020-11-24 Joel Brobecker <brobecker@adacore.com>
784
785 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
786 Change return type to std::string. Update all callers.
787 * gmp-utils.c (gmp_string_printf): Likewise.
788
4fbb7cce
JB
7892020-11-24 Joel Brobecker <brobecker@adacore.com>
790
791 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
792 instead of mpq_set_ui to initialize our GMP rational.
793
d6ab69dd
TV
7942020-11-23 Tom de Vries <tdevries@suse.de>
795
796 * debuginfod-support.c (debuginfod_source_query)
797 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
798
dab72643
TT
7992020-11-21 Tom Tromey <tom@tromey.com>
800
801 * breakpoint.c (watchpoint_exp_is_const): Return bool.
802
c0ad05d5
SM
8032020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
806 Pass 2.0 to pow.
807 (gdb_mpz_write_all_from_small): Likewise.
808
a43b29c9
SM
8092020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
812 of abs.
813
ae41200b
NA
8142020-11-20 Nick Alcock <nick.alcock@oracle.com>
815
816 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
817 ctf_arc_open_by_name.
818
139633c3
NA
8192020-11-20 Nick Alcock <nick.alcock@oracle.com>
820
821 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
822 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
823
cbbcd7a7
PA
8242020-11-20 Pedro Alves <pedro@palves.net>
825
826 * language.c (language_arch_info::lookup_primitive_type): Use
827 gdb::function_view instead of gdb::function.
828 (template language_lookup_primitive_type): Rename to ...
829 (language_lookup_primitive_type_1): ... this, and make static.
830 (language_lookup_primitive_type(const struct language_defn *,
831 struct gdbarch *, const char *): Make non-template.
832 (language_lookup_primitive_type(const struct language_defn *,
833 struct gdbarch *, std::function<bool (struct type *)>): Make
834 non-template and use gdb::function_view.
835 * language.h (language_arch_info::lookup_primitive_type): Use
836 gdb::function_view instead of std::function.
837 (language_lookup_primitive_type): No longer template.
838 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
839 lambda instead of a std::function.
840
d5ef21c3
AA
8412020-11-19 Andreas Arnez <arnez@linux.ibm.com>
842
843 PR tdep/26916
844 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
845 and STOCFH.
846
a5adb8f3
SM
8472020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
850
70125a45
SM
8512020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
852
853 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
854 in `loop_cb` parameter.
855 * gdbarch.c: Re-generate.
856 * gdbarch.h: Re-generate.
857 * arch-utils.c (default_read_core_file_mappings): Remove `other`
858 parameter.
859 * arch-utils.h (default_read_core_file_mappings): Likewise.
860 * corelow.c (core_target::build_file_mappings): Likewise.
861 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
862 (linux_core_info_proc_mappings): Likewise.
863
a5c641b5
AB
8642020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
867 * NEWS: Mention new options.
868 * f-array-walker.h: New file.
869 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
870 (repack_array_slices): New static global.
871 (show_repack_array_slices): New function.
872 (fortran_array_slicing_debug): New static global.
873 (show_fortran_array_slicing_debug): New function.
874 (value_f90_subarray): Delete.
875 (skip_undetermined_arglist): Delete.
876 (class fortran_array_repacker_base_impl): New class.
877 (class fortran_lazy_array_repacker_impl): New class.
878 (class fortran_array_repacker_impl): New class.
879 (fortran_value_subarray): Complete rewrite.
880 (set_fortran_list): New static global.
881 (show_fortran_list): Likewise.
882 (_initialize_f_language): Register new commands.
883 (fortran_adjust_dynamic_array_base_address_hack): New function.
884 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
885 Declare.
886 * f-valprint.c: Include 'f-array-walker.h'.
887 (class fortran_array_printer_impl): New class.
888 (f77_print_array_1): Delete.
889 (f77_print_array): Delete.
890 (fortran_print_array): New.
891 (f_value_print_inner): Update to call fortran_print_array.
892 * gdbtypes.c: Include 'f-lang.h'.
893 (resolve_dynamic_type_internal): Call
894 fortran_adjust_dynamic_array_base_address_hack.
895
a15a5258
AB
8962020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * breakpoint.c (struct watch_options): New struct.
899 (watch_option_defs): New static global.
900 (make_watch_options_def_group): New function.
901 (watch_maybe_just_location): Convert option parsing.
902 (watch_command_completer): New function.
903 (_initialize_breakpoint): Build help text using options mechanism.
904
2e362716
AB
9052020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
908 (watch_command_1): Update parameter types. Convert locals to
909 bool.
910 (watch_command_wrapper): Change parameter type.
911 (watch_maybe_just_location): Change locals to bool.
912 (rwatch_command_wrapper): Update parameter type.
913 (awatch_command_wrapper): Update parameter type.
914 * breakpoint.h (watch_command_wrapper): Change parameter type.
915 (rwatch_command_wrapper): Update parameter type.
916 (awatch_command_wrapper): Update parameter type.
917 * eval.c (fetch_subexp_value): Change parameter type.
918 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
919 'false' not '0'.
920 * value.h (fetch_subexp_value): Change parameter type in
921 declaration.
922
b3ff61f8
AB
9232020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
926 skip_spaces.
927
5b7d45d3
KS
9282020-11-18 Keith Seitz <keiths@redhat.com>
929
930 * linux-tdep.c (dump_note_entry_p): Return true instead of
931 checking `filename'.
932
c44191f8
TV
9332020-11-18 Tom de Vries <tdevries@suse.de>
934
935 * debuginfod-support.c (debuginfod_source_query)
936 (debuginfod_debuginfo_query): Also do early exit if
937 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
938
5d8254e1
TV
9392020-11-18 Tom de Vries <tdevries@suse.de>
940
941 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
942 warning.
943
584903d3
SM
9442020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
945
946 * gdbtypes.h (get_array_bounds): Return bool, adjust some
947 callers. Move doc here.
948 * gdbtypes.c (get_array_bounds): Return bool
949
6f2643db
AB
9502020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
953 assert.
954 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
955 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
956 case to the default.
957
037d7135
AB
9582020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * printcmd.c: Include 'safe-ctype.c'.
961 (skip_over_slash_fmt): New function.
962 (print_command_completer): Call skip_over_slash_fmt.
963 (display_and_x_command_completer): New function.
964 (_initialize_printcmd): Add command completion for 'x' and
965 'display'.
966
2b3cb400
PA
9672020-11-16 Pedro Alves <pedro@palves.net>
968
969 * frame.c (get_prev_frame): Move get_frame_id call from here ...
970 (get_prev_frame_always_1): ... to here.
971 * inline-frame.c (inline_frame_this_id): Mention
972 get_prev_frame_always_1 in comment.
973
b74dbc20
JB
9742020-11-15 Joel Brobecker <brobecker@adacore.com>
975
976 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
977 handling.
978 (value_less): Add fixed-point handling.
979
0a12719e
JB
9802020-11-15 Joel Brobecker <brobecker@adacore.com>
981
982 * eval.c (binop_promote): Add fixed-point type handling.
983 * valarith.c (fixed_point_binop): New function.
984 (scalar_binop): Add fixed-point type handling.
985 (value_neg): Add fixed-point type handling.
986 * valops.c (value_cast_to_fixed_point): New function.
987 (value_cast): Add fixed-point type handling.
988
0c9150e4
JB
9892020-11-15 Joel Brobecker <brobecker@adacore.com>
990
991 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
992 range types.
993 * c-typeprint.c (c_type_print_varspec_prefix)
994 (c_type_print_varspec_suffix, c_type_print_base_1): Add
995 TYPE_CODE_FIXED_POINT handling.
996 * p-typeprint.c (pascal_type_print_varspec_prefix)
997 (pascal_type_print_varspec_suffix): Likewise.
998 * typeprint.c (print_type_fixed_point): New function.
999 * typeprint.h (print_type_fixed_point): Add declaration.
1000
b26daff9
JB
10012020-11-15 Joel Brobecker <brobecker@adacore.com>
1002
1003 * printcmd.c (print_scalar_formatted): Add fixed-point type
1004 handling when options->format is set.
1005
09584414
JB
10062020-11-15 Joel Brobecker <brobecker@adacore.com>
1007
1008 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1009 * dwarf2/read.c (get_dwarf2_rational_constant)
1010 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1011 (has_zero_over_zero_small_attribute): New functions.
1012 read_base_type, set_die_type): Add fixed-point type handling.
1013 * gdb-gdb.py.in: Add fixed-point type handling.
1014 * gdbtypes.c: #include "gmp-utils.h".
1015 (create_range_type, set_type_code): Add fixed-point type handling.
1016 (init_fixed_point_type): New function.
1017 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1018 (print_fixed_point_type_info): New function.
1019 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1020 handling.
1021 (fixed_point_type_storage): New typedef.
1022 (fixed_point_objfile_key): New static global.
1023 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1024 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1025 functions.
1026 * gdbtypes.h: #include "gmp-utils.h".
1027 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1028 (union type_specific) <fixed_point_info>: New field.
1029 (struct fixed_point_type_info): New struct.
1030 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1031 (init_fixed_point_type, is_fixed_point_type)
1032 (fixed_point_type_base_type, fixed_point_scaling_factor)
1033 (allocate_fixed_point_type_info): Add declarations.
1034 * valprint.c (generic_val_print_fixed_point): New function.
1035 (generic_value_print): Add fixed-point type handling.
1036 * value.c (value_as_address, unpack_long): Add fixed-point type
1037 handling.
1038
e55c6530
JB
10392020-11-15 Joel Brobecker <brobecker@adacore.com>
1040
1041 * utils.h (uinteger_pow): Add declaration.
1042 * utils.c (uinteger_pow): Moved here (without changes)...
1043 * valarith.c (uinteger_pow): ... from here.
1044
b34c74ab
JB
10452020-11-15 Joel Brobecker <brobecker@adacore.com>
1046
40d9d2fd 1047 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1048 * unittests/gmp-utils-selftests.c: New file.
1049 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1050 unittests/gmp-utils-selftests.c.
1051 (COMMON_SFILES) Add gmp-utils.c.
1052 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1053
1b4ac058
JB
10542020-11-15 Joel Brobecker <brobecker@adacore.com>
1055
1056 * configure.ac: Generate an error if a usable GMP library
1057 could not be found.
1058 * configure: Regenerate.
1059
2c947d9b
JB
10602020-11-15 Joel Brobecker <brobecker@adacore.com>
1061
1062 * configure.ac: Add support for --with-libgmp-prefix.
1063 * Makefile.in (LIBGMP): New variable.
1064 (CLIBS): Include $(LIBGMP).
1065 * configure, config.in: Regenerate
1066
9dd02fc0
AB
10672020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 PR cli/26879
1070 * f-exp.y (COMPLETE): New token.
1071 (exp): Two new rules for tab-completion.
1072 (saw_name_at_eof): New static global.
1073 (last_was_structop): Likewise.
1074 (yylex): Set new variables, and return COMPLETE token at the end
1075 of the input stream in some cases.
1076
758cb810
TT
10772020-11-14 Tom Tromey <tom@tromey.com>
1078
1079 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1080
749065b7
TT
10812020-11-14 Tom Tromey <tom@tromey.com>
1082
1083 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1084
2c5b1849
SM
10852020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1088
e8b2f0d9
TT
10892020-11-13 Tom Tromey <tom@tromey.com>
1090
1091 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1092 (convert_escape, parse_one_string): Constify.
1093
25f4c262
KS
10942020-11-13 Keith Seitz <keiths@redhat.com>
1095
1096 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1097 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1098 outside of ELF segments" warning for debugin
1099
9d3ab915
KS
11002020-11-13 Keith Seitz <keiths@redhat.com>
1101
1102 PR gdb/23034
1103 * elfread.c (elf_symfile_segments): Output a BFD file name
1104 for the "Loadable section ... outside of ELF segments" warning.
1105
9ecab40c
SM
11062020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 PR gdb/26835
1109 * arm-tdep.c (class arm_instruction_reader): New.
1110 (target_arm_instruction_reader): New.
1111 (arm_analyze_prologue): Add instruction reader parameter and use
1112 it. Use arm_expand_immediate.
1113 (class target_arm_instruction_reader): Adjust.
1114 (arm_skip_prologue): Adjust.
1115 (arm_expand_immediate): New.
1116 (arm_scan_prologue): Adjust.
1117 (arm_analyze_prologue_test): New.
1118 (class test_arm_instruction_reader): New.
1119
5a7cf527
AB
11202020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * f-lang.c (fortran_argument_convert): Add declaration. Add
1123 header comment, taken from f-lang.h. Make static.
1124 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1125 (fortran_argument_convert): Delete declaration.
1126
7bea47f0
AB
11272020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * ada-exp.y (find_primitive_type): Make parameter const.
1130 * ada-lang.c (enum ada_primitive_types): Delete.
1131 (ada_language::language_arch_info): Update.
1132 * c-lang.c (enum c_primitive_types): Delete.
1133 (c_language_arch_info): Update.
1134 (enum cplus_primitive_types): Delete.
1135 (cplus_language::language_arch_info): Update.
1136 * d-lang.c (enum d_primitive_types): Delete.
1137 (d_language::language_arch_info): Update.
1138 * f-lang.c (enum f_primitive_types): Delete.
1139 (f_language::language_arch_info): Update.
1140 * go-lang.c (enum go_primitive_types): Delete.
1141 (go_language::language_arch_info): Update.
1142 * language.c (auto_or_unknown_language::language_arch_info):
1143 Update.
1144 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1145 (language_string_char_type): Add header comment, call function in
1146 language_arch_info.
1147 (language_bool_type): Likewise
1148 (language_arch_info::bool_type): Define.
1149 (language_lookup_primitive_type_1): Delete.
1150 (language_lookup_primitive_type): Rewrite as a templated function
1151 to call function in language_arch_info, then instantiate twice.
1152 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1153 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1154 (language_arch_info::lookup_primitive_type): Define twice with
1155 different signatures.
1156 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1157 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1158 member function in language_arch_info.
1159 * language.h (language_arch_info): Complete rewrite.
1160 (language_lookup_primitive_type): Make templated.
1161 * m2-lang.c (enum m2_primitive_types): Delete.
1162 (m2_language::language_arch_info): Update.
1163 * opencl-lang.c (OCL_P_TYPE): Delete.
1164 (enum opencl_primitive_types): Delete.
1165 (opencl_type_data): Delete.
1166 (builtin_opencl_type): Delete.
1167 (lookup_opencl_vector_type): Update.
1168 (opencl_language::language_arch_info): Update, lots of content
1169 moved from...
1170 (build_opencl_types): ...here. This function is now deleted.
1171 (_initialize_opencl_language): Delete.
1172 * p-lang.c (enum pascal_primitive_types): Delete.
1173 (pascal_language::language_arch_info): Update.
1174 * rust-lang.c (enum rust_primitive_types): Delete.
1175 (rust_language::language_arch_info): Update.
1176
bf6e5d01
SM
11772020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1180 dwarf2_queue_guard.
1181
1350c3b4
SM
11822020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1185 comment.
1186
6f738b01
SM
11872020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 * dwarf2/read.c (dwarf_read_debug_printf,
1190 dwarf_read_debug_printf_v): New macros, use throughout the file.
1191
10c19fad
SV
11922020-11-12 Shahab Vahedi <shahab@synopsys.com>
1193
10806efd 1194 PR tdep/27015
10c19fad
SV
1195 * arc-linux-tdep.c (collect_register): Populate "eret" by
1196 "pc" value from the regcache when asked for "pc" value.
1197
1f2624a3
TT
11982020-11-12 Tom Tromey <tom@tromey.com>
1199
1200 PR rust/26799:
1201 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1202 exist.
1203
ab33b152
AB
12042020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * features/Makefile (XMLTOC): Add rx.xml.
1207 (FEATURE_XMLFILES): Remove rx.xml.
1208 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1209 * features/rx.c: Regenerate.
1210 * features/rx.xml: Wrap in `target` tags, and reindent.
1211 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1212 structure.
1213 (maint_print_c_tdesc_opt_def): New typedef.
1214 (maint_print_c_tdesc_opt_defs): New static global.
1215 (make_maint_print_c_tdesc_options_def_group): New function.
1216 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1217 print single feature C file for target descriptions containing a
1218 single feature.
1219 (maint_print_c_tdesc_cmd_completer): New function.
1220 (_initialize_target_descriptions): Update call to register command
1221 completer, and include command line flag in help text.
1222
550820e1
AB
12232020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1226 numbers.
1227 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1228 enum values.
1229
baf20f76
TT
12302020-11-10 Tom Tromey <tom@tromey.com>
1231
1232 * value.h (internalvar_name): Update.
1233 * value.c (internalvar_name): Make return type const.
1234
caaece0e
TT
12352020-11-10 Tom Tromey <tom@tromey.com>
1236
1237 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1238 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1239 const.
1240
8e20b4be
TT
12412020-11-10 Tom Tromey <tom@tromey.com>
1242
1243 * objc-lang.h (value_nsstring): Update.
1244 * objc-lang.c (value_nsstring): Make "ptr" const.
1245
86775fab
AB
12462020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * expprint.c (print_subexp_funcall): Increment expression position
1249 after reading argument count.
1250 * f-lang.c (print_subexp_f): Skip over opcode before calling
1251 common function.
1252 (dump_subexp_body_f): Likewise.
1253
3fed4c0b
RG
12542020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1255
1256 PR python/26832
1257 * configure: Regenerate.
1258 * configure.ac: Check for python modules ctypes instead of
1259 itertools.
1260
ac3d4064
PA
12612020-11-06 Pedro Alves <pedro@palves.net>
1262
1263 * macroexp.c (struct macro_buffer): Split in two classes. Add
1264 uses adjusted.
1265 (struct shared_macro_buffer): New, factored out from struct
1266 macro_buffer.
1267 (struct growable_macro_buffer): New, factored out from struct
1268 macro_buffer.
1269 (set_token, get_comment, get_identifier, get_pp_number)
1270 (get_character_constant, get_string_literal, get_punctuator)
1271 (get_next_token_for_substitution): Constify parameters.
1272 (substitute_args): Constify locals.
1273
606decb2
TT
12742020-11-05 Tom Tromey <tom@tromey.com>
1275
1276 * dwarf2/read.c (read_cutu_die_from_dwo)
1277 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1278 (build_type_psymtabs_1): Update.
1279 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1280 parameter.
1281 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1282 Don't read section. Add assert.
1283
9c91c725
TT
12842020-11-04 Tom Tromey <tromey@adacore.com>
1285
1286 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1287
8d9fd3a1
TT
12882020-11-04 Tom Tromey <tromey@adacore.com>
1289
1290 * ada-typeprint.c (ada_print_type): Handle __T types.
1291
d8f62e84
TT
12922020-11-04 Tom Tromey <tromey@adacore.com>
1293
1294 * dwarf2/read.c (add_partial_symbol, process_die):
1295 Handle DW_TAG_array_type.
1296 (is_type_tag_for_partial): Add "lang" parameter.
1297 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1298
7ff5b937
TT
12992020-11-04 Tom Tromey <tromey@adacore.com>
1300
1301 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1302
10f6a3ad
TT
13032020-11-04 Tom Tromey <tromey@adacore.com>
1304
1305 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1306 array.
1307
b72795a8
TT
13082020-11-04 Tom Tromey <tromey@adacore.com>
1309
1310 * gdbtypes.c (update_static_array_size): Handle bit stride.
1311
24aa1b02
TT
13122020-11-04 Tom Tromey <tromey@adacore.com>
1313
1314 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1315
c9a28cbe
TT
13162020-11-04 Tom Tromey <tromey@adacore.com>
1317
1318 * ada-lang.c (ada_is_any_packed_array_type): New function.
1319 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1320
57567375
TT
13212020-11-04 Tom Tromey <tromey@adacore.com>
1322
1323 * dwarf2/read.c (recognize_bound_expression)
1324 (quirk_ada_thick_pointer): New functions.
1325 (read_array_type): Call quirk_ada_thick_pointer.
1326 (set_die_type): Add "skip_data_location" parameter.
1327 (quirk_ada_thick_pointer): New function.
1328 (process_structure_scope): Call quirk_ada_thick_pointer.
1329 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1330 (decode_packed_array_bitsize): Handle thick pointers without
1331 parallel types.
1332 (ada_is_gnat_encoded_packed_array_type): Rename from
1333 ada_is_packed_array_type.
1334 (ada_is_constrained_packed_array_type): Update.
1335 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1336 (ada_value_print_1): Use ada_get_decoded_value.
1337
a7400e44
TT
13382020-11-04 Tom Tromey <tromey@adacore.com>
1339
1340 * ada-lang.c (recursively_update_array_bitsize): New function.
1341 (decode_constrained_packed_array_type): Call it.
1342
75fd6a26
TT
13432020-11-04 Tom Tromey <tromey@adacore.com>
1344
1345 * ada-lang.c (to_fixed_array_type): Error if
1346 decode_constrained_packed_array_type returns NULL.
1347
93f9561e
TT
13482020-11-04 Tom Tromey <tromey@adacore.com>
1349
1350 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1351
257e02d8
TT
13522020-11-02 Tom Tromey <tromey@adacore.com>
1353
1354 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1355 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1356 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1357 * amd64-ravenscar-thread.c: New file.
1358 * amd64-ravenscar-thread.h: New file.
1359 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1360 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1361
74d877e5
AB
13622020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1363
1364 * main.c (execute_cmdargs): New function.
1365 (captured_main_1): Make use of execute_cmdargs.
1366
64aaad63
AB
13672020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * NEWS: Mention changes to config file search path.
1370 * main.c
1371
5b3d3560
TT
13722020-11-02 Tom Tromey <tromey@adacore.com>
1373
1374 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1375 (python_GdbModuleDef): Move earlier. Now static.
1376 (do_start_initialization): Consolidate some IS_PY3K blocks.
1377
dda83cd7
SM
13782020-11-02 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * aarch64-linux-tdep.c: Fix indentation.
1381 * aarch64-ravenscar-thread.c: Fix indentation.
1382 * aarch64-tdep.c: Fix indentation.
1383 * aarch64-tdep.h: Fix indentation.
1384 * ada-lang.c: Fix indentation.
1385 * ada-lang.h: Fix indentation.
1386 * ada-tasks.c: Fix indentation.
1387 * ada-typeprint.c: Fix indentation.
1388 * ada-valprint.c: Fix indentation.
1389 * ada-varobj.c: Fix indentation.
1390 * addrmap.c: Fix indentation.
1391 * addrmap.h: Fix indentation.
1392 * agent.c: Fix indentation.
1393 * aix-thread.c: Fix indentation.
1394 * alpha-bsd-nat.c: Fix indentation.
1395 * alpha-linux-tdep.c: Fix indentation.
1396 * alpha-mdebug-tdep.c: Fix indentation.
1397 * alpha-nbsd-tdep.c: Fix indentation.
1398 * alpha-obsd-tdep.c: Fix indentation.
1399 * alpha-tdep.c: Fix indentation.
1400 * amd64-bsd-nat.c: Fix indentation.
1401 * amd64-darwin-tdep.c: Fix indentation.
1402 * amd64-linux-nat.c: Fix indentation.
1403 * amd64-linux-tdep.c: Fix indentation.
1404 * amd64-nat.c: Fix indentation.
1405 * amd64-obsd-tdep.c: Fix indentation.
1406 * amd64-tdep.c: Fix indentation.
1407 * amd64-windows-tdep.c: Fix indentation.
1408 * annotate.c: Fix indentation.
1409 * arc-tdep.c: Fix indentation.
1410 * arch-utils.c: Fix indentation.
1411 * arch/arm-get-next-pcs.c: Fix indentation.
1412 * arch/arm.c: Fix indentation.
1413 * arm-linux-nat.c: Fix indentation.
1414 * arm-linux-tdep.c: Fix indentation.
1415 * arm-nbsd-tdep.c: Fix indentation.
1416 * arm-pikeos-tdep.c: Fix indentation.
1417 * arm-tdep.c: Fix indentation.
1418 * arm-tdep.h: Fix indentation.
1419 * arm-wince-tdep.c: Fix indentation.
1420 * auto-load.c: Fix indentation.
1421 * auxv.c: Fix indentation.
1422 * avr-tdep.c: Fix indentation.
1423 * ax-gdb.c: Fix indentation.
1424 * ax-general.c: Fix indentation.
1425 * bfin-linux-tdep.c: Fix indentation.
1426 * block.c: Fix indentation.
1427 * block.h: Fix indentation.
1428 * blockframe.c: Fix indentation.
1429 * bpf-tdep.c: Fix indentation.
1430 * break-catch-sig.c: Fix indentation.
1431 * break-catch-syscall.c: Fix indentation.
1432 * break-catch-throw.c: Fix indentation.
1433 * breakpoint.c: Fix indentation.
1434 * breakpoint.h: Fix indentation.
1435 * bsd-uthread.c: Fix indentation.
1436 * btrace.c: Fix indentation.
1437 * build-id.c: Fix indentation.
1438 * buildsym-legacy.h: Fix indentation.
1439 * buildsym.c: Fix indentation.
1440 * c-typeprint.c: Fix indentation.
1441 * c-valprint.c: Fix indentation.
1442 * c-varobj.c: Fix indentation.
1443 * charset.c: Fix indentation.
1444 * cli/cli-cmds.c: Fix indentation.
1445 * cli/cli-decode.c: Fix indentation.
1446 * cli/cli-decode.h: Fix indentation.
1447 * cli/cli-script.c: Fix indentation.
1448 * cli/cli-setshow.c: Fix indentation.
1449 * coff-pe-read.c: Fix indentation.
1450 * coffread.c: Fix indentation.
1451 * compile/compile-cplus-types.c: Fix indentation.
1452 * compile/compile-object-load.c: Fix indentation.
1453 * compile/compile-object-run.c: Fix indentation.
1454 * completer.c: Fix indentation.
1455 * corefile.c: Fix indentation.
1456 * corelow.c: Fix indentation.
1457 * cp-abi.h: Fix indentation.
1458 * cp-namespace.c: Fix indentation.
1459 * cp-support.c: Fix indentation.
1460 * cp-valprint.c: Fix indentation.
1461 * cris-linux-tdep.c: Fix indentation.
1462 * cris-tdep.c: Fix indentation.
1463 * darwin-nat-info.c: Fix indentation.
1464 * darwin-nat.c: Fix indentation.
1465 * darwin-nat.h: Fix indentation.
1466 * dbxread.c: Fix indentation.
1467 * dcache.c: Fix indentation.
1468 * disasm.c: Fix indentation.
1469 * dtrace-probe.c: Fix indentation.
1470 * dwarf2/abbrev.c: Fix indentation.
1471 * dwarf2/attribute.c: Fix indentation.
1472 * dwarf2/expr.c: Fix indentation.
1473 * dwarf2/frame.c: Fix indentation.
1474 * dwarf2/index-cache.c: Fix indentation.
1475 * dwarf2/index-write.c: Fix indentation.
1476 * dwarf2/line-header.c: Fix indentation.
1477 * dwarf2/loc.c: Fix indentation.
1478 * dwarf2/macro.c: Fix indentation.
1479 * dwarf2/read.c: Fix indentation.
1480 * dwarf2/read.h: Fix indentation.
1481 * elfread.c: Fix indentation.
1482 * eval.c: Fix indentation.
1483 * event-top.c: Fix indentation.
1484 * exec.c: Fix indentation.
1485 * exec.h: Fix indentation.
1486 * expprint.c: Fix indentation.
1487 * f-lang.c: Fix indentation.
1488 * f-typeprint.c: Fix indentation.
1489 * f-valprint.c: Fix indentation.
1490 * fbsd-nat.c: Fix indentation.
1491 * fbsd-tdep.c: Fix indentation.
1492 * findvar.c: Fix indentation.
1493 * fork-child.c: Fix indentation.
1494 * frame-unwind.c: Fix indentation.
1495 * frame-unwind.h: Fix indentation.
1496 * frame.c: Fix indentation.
1497 * frv-linux-tdep.c: Fix indentation.
1498 * frv-tdep.c: Fix indentation.
1499 * frv-tdep.h: Fix indentation.
1500 * ft32-tdep.c: Fix indentation.
1501 * gcore.c: Fix indentation.
1502 * gdb_bfd.c: Fix indentation.
1503 * gdbarch.sh: Fix indentation.
1504 * gdbarch.c: Re-generate
1505 * gdbarch.h: Re-generate.
1506 * gdbcore.h: Fix indentation.
1507 * gdbthread.h: Fix indentation.
1508 * gdbtypes.c: Fix indentation.
1509 * gdbtypes.h: Fix indentation.
1510 * glibc-tdep.c: Fix indentation.
1511 * gnu-nat.c: Fix indentation.
1512 * gnu-nat.h: Fix indentation.
1513 * gnu-v2-abi.c: Fix indentation.
1514 * gnu-v3-abi.c: Fix indentation.
1515 * go32-nat.c: Fix indentation.
1516 * guile/guile-internal.h: Fix indentation.
1517 * guile/scm-cmd.c: Fix indentation.
1518 * guile/scm-frame.c: Fix indentation.
1519 * guile/scm-iterator.c: Fix indentation.
1520 * guile/scm-math.c: Fix indentation.
1521 * guile/scm-ports.c: Fix indentation.
1522 * guile/scm-pretty-print.c: Fix indentation.
1523 * guile/scm-value.c: Fix indentation.
1524 * h8300-tdep.c: Fix indentation.
1525 * hppa-linux-nat.c: Fix indentation.
1526 * hppa-linux-tdep.c: Fix indentation.
1527 * hppa-nbsd-nat.c: Fix indentation.
1528 * hppa-nbsd-tdep.c: Fix indentation.
1529 * hppa-obsd-nat.c: Fix indentation.
1530 * hppa-tdep.c: Fix indentation.
1531 * hppa-tdep.h: Fix indentation.
1532 * i386-bsd-nat.c: Fix indentation.
1533 * i386-darwin-nat.c: Fix indentation.
1534 * i386-darwin-tdep.c: Fix indentation.
1535 * i386-dicos-tdep.c: Fix indentation.
1536 * i386-gnu-nat.c: Fix indentation.
1537 * i386-linux-nat.c: Fix indentation.
1538 * i386-linux-tdep.c: Fix indentation.
1539 * i386-nto-tdep.c: Fix indentation.
1540 * i386-obsd-tdep.c: Fix indentation.
1541 * i386-sol2-nat.c: Fix indentation.
1542 * i386-tdep.c: Fix indentation.
1543 * i386-tdep.h: Fix indentation.
1544 * i386-windows-tdep.c: Fix indentation.
1545 * i387-tdep.c: Fix indentation.
1546 * i387-tdep.h: Fix indentation.
1547 * ia64-libunwind-tdep.c: Fix indentation.
1548 * ia64-libunwind-tdep.h: Fix indentation.
1549 * ia64-linux-nat.c: Fix indentation.
1550 * ia64-linux-tdep.c: Fix indentation.
1551 * ia64-tdep.c: Fix indentation.
1552 * ia64-tdep.h: Fix indentation.
1553 * ia64-vms-tdep.c: Fix indentation.
1554 * infcall.c: Fix indentation.
1555 * infcmd.c: Fix indentation.
1556 * inferior.c: Fix indentation.
1557 * infrun.c: Fix indentation.
1558 * iq2000-tdep.c: Fix indentation.
1559 * language.c: Fix indentation.
1560 * linespec.c: Fix indentation.
1561 * linux-fork.c: Fix indentation.
1562 * linux-nat.c: Fix indentation.
1563 * linux-tdep.c: Fix indentation.
1564 * linux-thread-db.c: Fix indentation.
1565 * lm32-tdep.c: Fix indentation.
1566 * m2-lang.c: Fix indentation.
1567 * m2-typeprint.c: Fix indentation.
1568 * m2-valprint.c: Fix indentation.
1569 * m32c-tdep.c: Fix indentation.
1570 * m32r-linux-tdep.c: Fix indentation.
1571 * m32r-tdep.c: Fix indentation.
1572 * m68hc11-tdep.c: Fix indentation.
1573 * m68k-bsd-nat.c: Fix indentation.
1574 * m68k-linux-nat.c: Fix indentation.
1575 * m68k-linux-tdep.c: Fix indentation.
1576 * m68k-tdep.c: Fix indentation.
1577 * machoread.c: Fix indentation.
1578 * macrocmd.c: Fix indentation.
1579 * macroexp.c: Fix indentation.
1580 * macroscope.c: Fix indentation.
1581 * macrotab.c: Fix indentation.
1582 * macrotab.h: Fix indentation.
1583 * main.c: Fix indentation.
1584 * mdebugread.c: Fix indentation.
1585 * mep-tdep.c: Fix indentation.
1586 * mi/mi-cmd-catch.c: Fix indentation.
1587 * mi/mi-cmd-disas.c: Fix indentation.
1588 * mi/mi-cmd-env.c: Fix indentation.
1589 * mi/mi-cmd-stack.c: Fix indentation.
1590 * mi/mi-cmd-var.c: Fix indentation.
1591 * mi/mi-cmds.c: Fix indentation.
1592 * mi/mi-main.c: Fix indentation.
1593 * mi/mi-parse.c: Fix indentation.
1594 * microblaze-tdep.c: Fix indentation.
1595 * minidebug.c: Fix indentation.
1596 * minsyms.c: Fix indentation.
1597 * mips-linux-nat.c: Fix indentation.
1598 * mips-linux-tdep.c: Fix indentation.
1599 * mips-nbsd-tdep.c: Fix indentation.
1600 * mips-tdep.c: Fix indentation.
1601 * mn10300-linux-tdep.c: Fix indentation.
1602 * mn10300-tdep.c: Fix indentation.
1603 * moxie-tdep.c: Fix indentation.
1604 * msp430-tdep.c: Fix indentation.
1605 * namespace.h: Fix indentation.
1606 * nat/fork-inferior.c: Fix indentation.
1607 * nat/gdb_ptrace.h: Fix indentation.
1608 * nat/linux-namespaces.c: Fix indentation.
1609 * nat/linux-osdata.c: Fix indentation.
1610 * nat/netbsd-nat.c: Fix indentation.
1611 * nat/x86-dregs.c: Fix indentation.
1612 * nbsd-nat.c: Fix indentation.
1613 * nbsd-tdep.c: Fix indentation.
1614 * nios2-linux-tdep.c: Fix indentation.
1615 * nios2-tdep.c: Fix indentation.
1616 * nto-procfs.c: Fix indentation.
1617 * nto-tdep.c: Fix indentation.
1618 * objfiles.c: Fix indentation.
1619 * objfiles.h: Fix indentation.
1620 * opencl-lang.c: Fix indentation.
1621 * or1k-tdep.c: Fix indentation.
1622 * osabi.c: Fix indentation.
1623 * osabi.h: Fix indentation.
1624 * osdata.c: Fix indentation.
1625 * p-lang.c: Fix indentation.
1626 * p-typeprint.c: Fix indentation.
1627 * p-valprint.c: Fix indentation.
1628 * parse.c: Fix indentation.
1629 * ppc-linux-nat.c: Fix indentation.
1630 * ppc-linux-tdep.c: Fix indentation.
1631 * ppc-nbsd-nat.c: Fix indentation.
1632 * ppc-nbsd-tdep.c: Fix indentation.
1633 * ppc-obsd-nat.c: Fix indentation.
1634 * ppc-ravenscar-thread.c: Fix indentation.
1635 * ppc-sysv-tdep.c: Fix indentation.
1636 * ppc64-tdep.c: Fix indentation.
1637 * printcmd.c: Fix indentation.
1638 * proc-api.c: Fix indentation.
1639 * producer.c: Fix indentation.
1640 * producer.h: Fix indentation.
1641 * prologue-value.c: Fix indentation.
1642 * prologue-value.h: Fix indentation.
1643 * psymtab.c: Fix indentation.
1644 * python/py-arch.c: Fix indentation.
1645 * python/py-bpevent.c: Fix indentation.
1646 * python/py-event.c: Fix indentation.
1647 * python/py-event.h: Fix indentation.
1648 * python/py-finishbreakpoint.c: Fix indentation.
1649 * python/py-frame.c: Fix indentation.
1650 * python/py-framefilter.c: Fix indentation.
1651 * python/py-inferior.c: Fix indentation.
1652 * python/py-infthread.c: Fix indentation.
1653 * python/py-objfile.c: Fix indentation.
1654 * python/py-prettyprint.c: Fix indentation.
1655 * python/py-registers.c: Fix indentation.
1656 * python/py-signalevent.c: Fix indentation.
1657 * python/py-stopevent.c: Fix indentation.
1658 * python/py-stopevent.h: Fix indentation.
1659 * python/py-threadevent.c: Fix indentation.
1660 * python/py-tui.c: Fix indentation.
1661 * python/py-unwind.c: Fix indentation.
1662 * python/py-value.c: Fix indentation.
1663 * python/py-xmethods.c: Fix indentation.
1664 * python/python-internal.h: Fix indentation.
1665 * python/python.c: Fix indentation.
1666 * ravenscar-thread.c: Fix indentation.
1667 * record-btrace.c: Fix indentation.
1668 * record-full.c: Fix indentation.
1669 * record.c: Fix indentation.
1670 * reggroups.c: Fix indentation.
1671 * regset.h: Fix indentation.
1672 * remote-fileio.c: Fix indentation.
1673 * remote.c: Fix indentation.
1674 * reverse.c: Fix indentation.
1675 * riscv-linux-tdep.c: Fix indentation.
1676 * riscv-ravenscar-thread.c: Fix indentation.
1677 * riscv-tdep.c: Fix indentation.
1678 * rl78-tdep.c: Fix indentation.
1679 * rs6000-aix-tdep.c: Fix indentation.
1680 * rs6000-lynx178-tdep.c: Fix indentation.
1681 * rs6000-nat.c: Fix indentation.
1682 * rs6000-tdep.c: Fix indentation.
1683 * rust-lang.c: Fix indentation.
1684 * rx-tdep.c: Fix indentation.
1685 * s12z-tdep.c: Fix indentation.
1686 * s390-linux-tdep.c: Fix indentation.
1687 * score-tdep.c: Fix indentation.
1688 * ser-base.c: Fix indentation.
1689 * ser-mingw.c: Fix indentation.
1690 * ser-uds.c: Fix indentation.
1691 * ser-unix.c: Fix indentation.
1692 * serial.c: Fix indentation.
1693 * sh-linux-tdep.c: Fix indentation.
1694 * sh-nbsd-tdep.c: Fix indentation.
1695 * sh-tdep.c: Fix indentation.
1696 * skip.c: Fix indentation.
1697 * sol-thread.c: Fix indentation.
1698 * solib-aix.c: Fix indentation.
1699 * solib-darwin.c: Fix indentation.
1700 * solib-frv.c: Fix indentation.
1701 * solib-svr4.c: Fix indentation.
1702 * solib.c: Fix indentation.
1703 * source.c: Fix indentation.
1704 * sparc-linux-tdep.c: Fix indentation.
1705 * sparc-nbsd-tdep.c: Fix indentation.
1706 * sparc-obsd-tdep.c: Fix indentation.
1707 * sparc-ravenscar-thread.c: Fix indentation.
1708 * sparc-tdep.c: Fix indentation.
1709 * sparc64-linux-tdep.c: Fix indentation.
1710 * sparc64-nbsd-tdep.c: Fix indentation.
1711 * sparc64-obsd-tdep.c: Fix indentation.
1712 * sparc64-tdep.c: Fix indentation.
1713 * stabsread.c: Fix indentation.
1714 * stack.c: Fix indentation.
1715 * stap-probe.c: Fix indentation.
1716 * stubs/ia64vms-stub.c: Fix indentation.
1717 * stubs/m32r-stub.c: Fix indentation.
1718 * stubs/m68k-stub.c: Fix indentation.
1719 * stubs/sh-stub.c: Fix indentation.
1720 * stubs/sparc-stub.c: Fix indentation.
1721 * symfile-mem.c: Fix indentation.
1722 * symfile.c: Fix indentation.
1723 * symfile.h: Fix indentation.
1724 * symmisc.c: Fix indentation.
1725 * symtab.c: Fix indentation.
1726 * symtab.h: Fix indentation.
1727 * target-float.c: Fix indentation.
1728 * target.c: Fix indentation.
1729 * target.h: Fix indentation.
1730 * tic6x-tdep.c: Fix indentation.
1731 * tilegx-linux-tdep.c: Fix indentation.
1732 * tilegx-tdep.c: Fix indentation.
1733 * top.c: Fix indentation.
1734 * tracefile-tfile.c: Fix indentation.
1735 * tracepoint.c: Fix indentation.
1736 * tui/tui-disasm.c: Fix indentation.
1737 * tui/tui-io.c: Fix indentation.
1738 * tui/tui-regs.c: Fix indentation.
1739 * tui/tui-stack.c: Fix indentation.
1740 * tui/tui-win.c: Fix indentation.
1741 * tui/tui-winsource.c: Fix indentation.
1742 * tui/tui.c: Fix indentation.
1743 * typeprint.c: Fix indentation.
1744 * ui-out.h: Fix indentation.
1745 * unittests/copy_bitwise-selftests.c: Fix indentation.
1746 * unittests/memory-map-selftests.c: Fix indentation.
1747 * utils.c: Fix indentation.
1748 * v850-tdep.c: Fix indentation.
1749 * valarith.c: Fix indentation.
1750 * valops.c: Fix indentation.
1751 * valprint.c: Fix indentation.
1752 * valprint.h: Fix indentation.
1753 * value.c: Fix indentation.
1754 * value.h: Fix indentation.
1755 * varobj.c: Fix indentation.
1756 * vax-tdep.c: Fix indentation.
1757 * windows-nat.c: Fix indentation.
1758 * windows-tdep.c: Fix indentation.
1759 * xcoffread.c: Fix indentation.
1760 * xml-syscall.c: Fix indentation.
1761 * xml-tdesc.c: Fix indentation.
1762 * xstormy16-tdep.c: Fix indentation.
1763 * xtensa-config.c: Fix indentation.
1764 * xtensa-linux-nat.c: Fix indentation.
1765 * xtensa-linux-tdep.c: Fix indentation.
1766 * xtensa-tdep.c: Fix indentation.
1767
e1f57067
AB
17682020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1769 Craig Blackmore <craig.blackmore@embecosm.com>
1770
1771 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1772 as an unsigned value.
1773
ae7754b2
TT
17742020-11-01 Tom Tromey <tom@tromey.com>
1775
1776 * dbxread.c (dbx_end_psymtab): Update.
1777 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1778 (build_type_psymtabs_reader): Update.
1779 * xcoffread.c (xcoff_end_psymtab): Update.
1780 * ctfread.c (scan_partial_symbols): Update.
1781 * psymtab.c (sort_pst_symbols): Remove.
1782 (partial_symtab::end): Rename from end_psymtab_common. Inline
1783 sort_pst_symbols.
1784 * psympriv.h (struct partial_symtab) <end>: New method.
1785 (end_psymtab_common): Don't declare.
1786
0684bb51
TT
17872020-11-01 Tom Tromey <tom@tromey.com>
1788
1789 * symmisc.c (count_psyms): New function.
1790 (print_objfile_statistics): Use it.
1791 * psymtab.c (append_psymbol_to_list): Remove.
1792 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1793 * objfiles.h (struct objstats) <n_psyms>: Remove.
1794
089002bb
TT
17952020-11-01 Tom Tromey <tom@tromey.com>
1796
1797 * dbxread.c (dbx_end_psymtab): Update.
1798 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1799 (build_type_psymtabs_reader): Update.
1800 * xcoffread.c (xcoff_end_psymtab): Update.
1801 * ctfread.c (scan_partial_symbols): Update.
1802 * psympriv.h (end_psymtab_common): Update.
1803 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1804 (sort_pst_symbols): Likewise.
1805
525454d6
TT
18062020-11-01 Tom Tromey <tom@tromey.com>
1807
1808 * dbxread.c (dbx_symfile_read): Update.
1809 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1810 * xcoffread.c (xcoff_initial_scan): Update.
1811 * psympriv.h (init_psymbol_list): Don't declare.
1812 * psymtab.c (init_psymbol_list): Remove.
1813
60bd1d53
JB
18142020-11-01 Joel Brobecker <brobecker@adacore.com>
1815
1816 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1817 gnat_encoded_fixed_type_info. Update all callers.
1818
db99d0d0
JB
18192020-11-01 Joel Brobecker <brobecker@adacore.com>
1820
1821 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1822 line too long.
1823
75f24e86
JB
18242020-11-01 Joel Brobecker <brobecker@adacore.com>
1825
1826 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1827 cast_from_fixed. Update all callers.
1828 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1829 Update all callers.
1830 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1831 Update all callers.
1832 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1833 ada_scaling_factor.
1834 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1835 to print_gnat_encoded_fixed_point_type.
1836 * ada-valprint.c: Likewise.
1837
4f0469cd
AB
18382020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1841 (debug_prefixed_printf): Add check of debug_displaced flag.
1842 * linux-nat.c (linux_nat_debug_printf): Add check of
1843 debug_linux_nat flag.
1844
17417fb0
SM
18452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * infrun.c (infrun_debug_printf_1): Remove.
1848 (displaced_debug_printf_1): Remove.
1849 (stop_all_threads): Use debug_prefixed_printf.
1850 * infrun.h (infrun_debug_printf_1): Remove.
1851 (infrun_debug_printf): Use debug_prefixed_printf.
1852 (displaced_debug_printf_1): Remove.
1853 (displaced_debug_printf): Use debug_prefixed_printf.
1854 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1855 (linux_nat_debug_printf): Use debug_prefixed_printf.
1856
ad6dba1c
SM
18572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * configure: Re-generate.
1860 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1861 AC_LANG_PROGRAM.
1862
b6fb30ed
SM
18632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * configure: Re-generate.
1866
5164c117
SM
18672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * configure: Re-generate.
1870
864ca435
SM
18712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1872
1873 * configure: Re-generate.
1874
b9442ec1
SM
18752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1876
1877 * configure: Re-generate.
1878
294f2697
SM
18792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1880
1881 * acinclude.m4: Modernize.
1882 * configure: Re-generate.
1883
5593a99a
SM
18842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1885
1886 * configure.ac: Modernize.
1887 * configure: Re-generate.
1888
e41fda1d
SM
18892020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1892 * configure: Re-generate.
1893 * configure.ac: Remove AM_PROG_CC_STDC.
1894
91e1a0ed
SM
18952020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1896
1897 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1898 AC_CANONICAL_SYSTEM.
1899 * configure: Re-generate.
1900
136821d9
SM
19012020-10-30 Simon Marchi <simon.marchi@efficios.com>
1902
1903 * infrun.h (displaced_debug_printf): New macro. Replace
1904 displaced debug prints throughout to use it.
1905 (displaced_debug_printf_1): New declaration.
1906 (displaced_step_dump_bytes): Return string, remove ui_file
1907 parameter, update all callers.
1908 * infrun.c (displaced_debug_printf_1): New function.
1909 (displaced_step_dump_bytes): Return string, remove ui_file
1910 parameter
1911
aa2045e7
SM
19122020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1915
b1ec2735
TT
19162020-10-30 Tom Tromey <tromey@adacore.com>
1917
1918 * Makefile.in (stamp-init): Depend on config.status.
1919
b78b3a29
TBA
19202020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1921
1922 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1923
d70bdd3c
PA
19242020-10-30 Pedro Alves <pedro@palves.net>
1925
1926 * thread.c (lookup_selected_frame): Move ...
1927 * frame.c (lookup_selected_frame): ... here.
1928
79952e69
PA
19292020-10-30 Pedro Alves <pedro@palves.net>
1930
1931 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1932 * frame.c
1933 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1934 Use save_selected_frame. Save language as well.
1935 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1936 Use restore_selected_frame, and restore language as well.
1937 (selected_frame_id, selected_frame_level): New.
1938 (selected_frame): Update comments.
1939 (save_selected_frame, restore_selected_frame): New.
1940 (get_selected_frame): Use lookup_selected_frame.
1941 (get_selected_frame_if_set): Delete.
1942 (select_frame): Record selected_frame_level and selected_frame_id.
1943 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1944 fields.
1945 (get_selected_frame): Make 'message' parameter optional.
1946 (get_selected_frame_if_set): Delete declaration.
1947 (select_frame): Update comments.
1948 (save_selected_frame, restore_selected_frame)
1949 (lookup_selected_frame): Declare.
1950 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1951 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1952 New field.
1953 (save_infcall_control_state): Use save_selected_frame.
1954 (restore_selected_frame): Delete.
1955 (restore_infcall_control_state): Use restore_selected_frame.
1956 * stack.c (select_frame_command_core, frame_command_core): Use
1957 get_selected_frame.
1958 * thread.c (restore_selected_frame): Rename to ...
1959 (lookup_selected_frame): ... this and make extern. Select the
1960 current frame if the frame level is -1.
1961 (scoped_restore_current_thread::restore): Also restore the
1962 language.
1963 (scoped_restore_current_thread::~scoped_restore_current_thread):
1964 Don't try/catch.
1965 (scoped_restore_current_thread::scoped_restore_current_thread):
1966 Save the language as well. Use save_selected_frame.
1967
58103c33
SM
19682020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1969
1970 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1971 documentation.
1972 * gdbarch.h: Re-generate.
1973
40a53766
SM
19742020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1977 parameter.
1978 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1979 Likewise.
1980 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1981 Likewise.
1982 * arch-utils.c (default_displaced_step_hw_singlestep):
1983 Likewise.
1984 * arch-utils.h (default_displaced_step_hw_singlestep):
1985 Likewise.
1986 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1987 Likewise.
1988 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1989 Likewise.
1990 * gdbarch.c: Re-generate.
1991 * gdbarch.h: Re-generate.
1992 * infrun.c (resume_1): Adjust.
1993
8407f91b
TT
19942020-10-29 Tom Tromey <tom@tromey.com>
1995
1996 * progspace.c (program_space::~program_space): Don't call
1997 exec_close.
1998
5008b3b2
TT
19992020-10-29 Tom Tromey <tom@tromey.com>
2000
2001 * exec.c (exec_target::close): Don't change current program
2002 space.
2003
d9eebde0
TT
20042020-10-29 Tom Tromey <tom@tromey.com>
2005
2006 * symfile.c (add_symbol_file_command): Update.
2007 * exec.c (program_space::add_target_sections): Rename.
2008 * symfile-mem.c (symbol_file_add_from_memory): Update.
2009 * progspace.h (struct program_space) <add_target_sections>:
2010 Declare new overload.
2011 * exec.h (add_target_sections_of_objfile): Don't declare.
2012
3769e227
TT
20132020-10-29 Tom Tromey <tom@tromey.com>
2014
2015 * solib.c (solib_map_sections): Update.
2016 * exec.c (program_space::add_target_sections): Now a method.
2017 (exec_file_attach): Update.
2018 * exec.h (add_target_sections): Don't declare.
2019 * progspace.h (struct program_space) <add_target_sections>:
2020 Declare.
2021
2a3f84af
TT
20222020-10-29 Tom Tromey <tom@tromey.com>
2023
2024 * progspace.h (struct program_space) <remove_target_sections>:
2025 Declare.
2026 * exec.c (program_space::remove_target_sections): Now a method.
2027 * exec.h (remove_target_sections): Don't declare.
2028
004eecfd
TT
20292020-10-29 Tom Tromey <tom@tromey.com>
2030
2031 * inferior.c (delete_inferior): Update.
2032 * progspace.c (program_space::empty): Rename from
2033 program_space_empty_p. Return bool.
2034 * progspace.h (struct program_space) <empty>: New method.
2035 (program_space_empty_p): Don't declare.
2036
e39fb971
TT
20372020-10-29 Tom Tromey <tom@tromey.com>
2038
2039 * progspace.c (program_space::~program_space): Don't call
2040 clear_program_space_solib_cache.
2041 (program_space::clear_solib_cache): Rename from
2042 clear_solib_cache.
2043 * solib.c (handle_solib_event): Update.
2044 * progspace.h (struct program_space) <clear_solib_cache>: New
2045 method.
2046 (clear_program_space_solib_cache): Don't declare.
2047
a42d7dd8
TT
20482020-10-29 Tom Tromey <tom@tromey.com>
2049
2050 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2051 * target.c (info_target_command): Update.
2052 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2053 (symbol_file_clear, reread_symbols): Update.
2054 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2055 * stabsread.c (scan_file_globals): Update.
2056 * solib.c (update_solib_list): Update.
2057 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2058 (svr4_fetch_objfile_link_map, enable_break)
2059 (svr4_relocate_main_executable)
2060 (svr4_iterate_over_objfiles_in_search_order): Update.
2061 * solib-frv.c (lm_base, enable_break)
2062 (frv_relocate_main_executable): Update.
2063 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2064 (frv_fetch_objfile_link_map): Update.
2065 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2066 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2067 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2068 * remote.c (remote_target::get_offsets): Update.
2069 (remote_target::start_remote)
2070 (extended_remote_target::post_attach): Update.
2071 * objfiles.c (entry_point_address_query): Update.
2072 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2073 * minsyms.c (get_symbol_leading_char): Update.
2074 * frame.c (inside_main_func): Update.
2075 * progspace.h (symfile_objfile): Remove macro.
2076
19f6550e
TT
20772020-10-29 Tom Tromey <tom@tromey.com>
2078
2079 * exec.c (exec_file_attach): Update.
2080 * progspace.c (program_space::exec_close): Update.
2081 * progspace.h (struct program_space) <ebfd>: Now a
2082 gdb_bfd_ref_ptr.
2083 <set_exec_bfd>: Change argument type.
2084 <exec_bfd>: Update.
2085
7e10abd1
TT
20862020-10-29 Tom Tromey <tom@tromey.com>
2087
2088 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2089 * symfile.c (reread_symbols): Update.
2090 * symfile-mem.c (add_symbol_file_from_memory_command)
2091 (add_vsyscall_page): Update.
2092 * source-cache.c (source_cache::get_plain_source_lines): Update.
2093 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2094 (svr4_current_sos_direct, svr4_exec_displacement)
2095 (svr4_relocate_main_executable): Update.
2096 (svr4_iterate_over_objfiles_in_search_order): Update.
2097 * solib-frv.c (enable_break2, enable_break): Update.
2098 * solib-dsbt.c (lm_base, enable_break): Update.
2099 * solib-darwin.c (find_program_interpreter)
2100 (darwin_solib_create_inferior_hook): Update.
2101 * sol-thread.c (rw_common, ps_pdmodel): Update.
2102 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2103 * remote.c (compare_sections_command)
2104 (remote_target::trace_set_readonly_regions): Update.
2105 * remote-sim.c (get_sim_inferior_data)
2106 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2107 (gdbsim_target_open, gdbsim_target::files_info): Update.
2108 * exec.h (exec_bfd): Remove macro.
2109 * progspace.c (initialize_progspace): Update.
2110 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2111 Update.
2112 * nto-procfs.c (nto_procfs_target::post_attach)
2113 (nto_procfs_target::create_inferior): Update.
2114 * maint.c (maintenance_info_sections): Update.
2115 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2116 Update.
2117 * infcmd.c (post_create_inferior): Update.
2118 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2119 (objfile_find_memory_regions): Update.
2120 * exec.c (validate_exec_file, exec_file_attach)
2121 (exec_read_partial_read_only, print_section_info): Update.
2122 * corelow.c (core_target_open): Update.
2123 * corefile.c (reopen_exec_file, validate_files): Update.
2124 * arm-tdep.c (gdb_print_insn_arm): Update.
2125 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2126 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2127 methods.
2128
b55221ab
TT
21292020-10-29 Tom Tromey <tom@tromey.com>
2130
2131 * progspace.h (current_target_sections): Remove macro.
2132 * solib-svr4.c (scan_dyntag): Update.
2133 * solib-dsbt.c (scan_dyntag): Update.
2134 * exec.c (exec_target::close): Update.
2135 (add_target_sections, add_target_sections_of_objfile)
2136 (remove_target_sections, exec_target::get_section_table)
2137 (exec_target::files_info, set_section_command)
2138 (exec_set_section_address, exec_target::has_memory)
2139 (exec_target::has_memory): Update.
2140
5a36e715
TT
21412020-10-29 Tom Tromey <tom@tromey.com>
2142
2143 * source-cache.c (source_cache::get_plain_source_lines): Use
2144 current_program_space.
2145 * corefile.c (reopen_exec_file): Use current_program_space.
2146 * exec.c (exec_file_attach): Use current_program_space.
2147 * exec.h (exec_bfd_mtime): Remove.
2148
784c8592
TT
21492020-10-29 Tom Tromey <tom@tromey.com>
2150
2151 * gcore.c (default_gcore_mach): Remove.
2152 (create_gcore_bfd): Update.
2153
8a4f1402
TT
21542020-10-29 Tom Tromey <tom@tromey.com>
2155
2156 * progspace.c (program_space::exec_close): New method, from
2157 exec_close in exec.c.
2158 * exec.c (exec_close): Move to progspace.c.
2159 (exec_target::close, exec_file_attach): Update.
2160 * progspace.h (struct program_space) <exec_close>: Declare
2161 method.
2162
c20cb686
TT
21632020-10-29 Tom Tromey <tom@tromey.com>
2164
2165 * progspace.h (struct program_space) <exec_filename>: Rename from
2166 pspace_exec_filename. Now a unique_xmalloc_ptr.
2167 * inferior.c (print_selected_inferior): Update.
2168 (print_inferior): Update.
2169 * mi/mi-main.c (print_one_inferior): Update.
2170 * exec.h (exec_filename): Remove macro.
2171 * corefile.c (get_exec_file): Update.
2172 * exec.c (exec_close): Update.
2173 (exec_file_attach): Update.
2174 * progspace.c (clone_program_space): Update.
2175 (print_program_space): Update.
2176
6be2a9ab
TT
21772020-10-29 Tom Tromey <tom@tromey.com>
2178
2179 * target-section.h (struct target_section): Add constructor.
2180 * exec.c (build_section_table, add_target_sections_of_objfile):
2181 Update.
2182 * corelow.c (core_target::build_file_mappings): Update.
2183
cfaa8f76
TBA
21842020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2185
2186 PR gdb/19318
2187 * inferior.c (detach_inferior_command): Restore the current thread.
2188 (kill_inferior_command): Ditto.
2189
1b00ef06
TV
21902020-10-28 Tom de Vries <tdevries@suse.de>
2191
2192 PR symtab/26772
2193 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2194 map, check it in the "best match" loop.
2195
7f40ce1a
SM
21962020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 * m32c-tdep.c: Remove unused includes.
2199
5eb9e3f5
SM
22002020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 * xtensa-tdep.c: Remove includes.
2203
b1d4d8d1
TBA
22042020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2205
2206 * breakpoint.c (struct condition_command_opts): New struct.
2207 (condition_command_option_defs): New static global.
2208 (make_condition_command_options_def_group): New function.
2209 (condition_completer): Update to consider the '-force' flag.
2210 (condition_command): Use gdb::option for the '-force' flag.
2211
bd24c5d6
TV
22122020-10-27 Tom de Vries <tdevries@suse.de>
2213
2214 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2215 symbols in section check.
2216
61eb46a4
TV
22172020-10-27 Tom de Vries <tdevries@suse.de>
2218
2219 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2220
733d554a
TBA
22212020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2222
2223 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2224 * breakpoint.c: Update the help text of the 'condition' and 'break'
2225 commands.
2226 (set_breakpoint_condition): Take a new bool parameter
2227 to control whether condition definition should be forced even when
2228 the condition expression is invalid in all of the current locations.
2229 (condition_command): Update the call to 'set_breakpoint_condition'.
2230 (find_condition_and_thread): Take the "-force-condition" flag into
2231 account.
2232 * linespec.c (linespec_keywords): Add "-force-condition" as an
2233 element.
2234 (FORCE_KEYWORD_INDEX): New #define.
2235 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2236 as a keyword.
2237 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2238 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2239 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2240 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2241
b5fa468f
TBA
22422020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243
2244 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2245 * breakpoint.c (set_breakpoint_location_condition): New function.
2246 (set_breakpoint_condition): Disable a breakpoint location if parsing
2247 the condition string gives an error.
2248 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2249 (build_target_condition_list): Ditto.
2250 (build_target_command_list): Ditto.
2251 (build_bpstat_chain): Ditto.
2252 (print_one_breakpoint_location): Ditto.
2253 (print_one_breakpoint): Ditto.
2254 (breakpoint_1): Ditto.
2255 (bp_location::bp_location): Ditto.
2256 (locations_are_equal): Ditto.
2257 (update_breakpoint_locations): Ditto.
2258 (enable_disable_bp_num_loc): Ditto.
2259 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2260 (find_condition_and_thread_for_sals): New static function.
2261 (create_breakpoint): Call find_condition_and_thread_for_sals.
2262 (location_to_sals): Call find_condition_and_thread_for_sals instead
2263 of find_condition_and_thread.
2264
1c47ec3e
TV
22652020-10-26 Tom de Vries <tdevries@suse.de>
2266
2267 * dwarf2/read.c (process_full_comp_unit): Call
2268 dwarf2_find_base_address.
2269
6390859c
TT
22702020-10-26 Tom Tromey <tromey@adacore.com>
2271
2272 * gdbtypes.c (create_range_type): Revert previous patch. Add
2273 comment.
2274
d744f0f9
PA
22752020-10-26 Pedro Alves <pedro@palves.net>
2276
2277 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2278 (my_waitpid): Use gdb::handle_eintr.
2279
006811bc
SM
22802020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * acinclude.m4: Update ptrace.m4 path.
2283 * ptrace.m4: Moved to gdbsupport.
2284
c75e31a1
SM
22852020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2288 instead of target_gdbarch.
2289
32495661
SM
22902020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * jit.c (jit_reader_load_command): Pass current inferior.
2293 (jit_inferior_init): Change parameter type to inferior, use it.
2294 (jit_inferior_created): Remove.
2295 (jit_inferior_created_hook): Pass inferior parameter down.
2296 (_initialize_jit): Use jit_inferior_created_hook instead of
2297 jit_inferior_created.
2298 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2299 * infrun.c (follow_exec): Pass inferior to
2300 jit_inferior_created_hook.
2301
3f66685e
SM
23022020-10-24 Simon Marchi <simon.marchi@efficios.com>
2303
2304 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2305 parameter and use it.
2306 (thread_db_inferior_created): Pass inferior argument.
2307
a0ff652f
SM
23082020-10-24 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * aix-thread.c (aix_thread_inferior_created): Add inferior
2311 parameter.
2312 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2313 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2314 * jit.c (jit_inferior_created): Likewise.
2315 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2316 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2317 * observable.h (inferior_created): Likewise.
2318 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2319 * symfile-mem.c (add_vsyscall_page): Likewise.
2320 * infcmd.c (post_create_inferior): Pass inferior argument.
2321
3c67532c
JB
23222020-10-24 Joel Brobecker <brobecker@adacore.com>
2323
2324 GDB 10.1 released.
2325
8747316e
JB
23262020-10-23 Joel Brobecker <brobecker@adacore.com>
2327
2328 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2329 to ada_check_typedef.
2330
1a0ea399
AB
23312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * f-exp.y (f_parse): Rename to...
2334 (f_language::parser): ...this.
2335 * f-lang.c (f_get_encoding): Rename to...
2336 (f_language::get_encoding): ...this.
2337 (f_op_print_tab): Rename to...
2338 (f_language::op_print_tab): ...this.
2339 (exp_descriptor_f): Rename to...
2340 (f_language::exp_descriptor_tab): ...this.
2341 (class f_language): Moved to f-lang.h.
2342 (f_language::language_arch_info): New function, moved out of class
2343 declaration.
2344 (f_language::search_name_hash): Likewise.
2345 (f_language::lookup_symbol_nonlocal): Likewise.
2346 (f_language::get_symbol_name_matcher_inner): Likewise.
2347 * f-lang.h: Add 'valprint.h' include.
2348 (class f_language): Moved here from f-lang.c.
2349 * f-typeprint.c (f_type_print_args): Delete commented out
2350 declaration.
2351 (f_print_typedef): Rename to...
2352 (f_language::print_typedef): ...this.
2353 (f_print_type): Rename to...
2354 (f_language::print_type): ...this.
2355 (f_type_print_varspec_prefix): Delete declaration and rename to...
2356 (f_language::f_type_print_varspec_prefix): ...this.
2357 (f_type_print_varspec_suffix): Delete declaration and rename to...
2358 (f_language::f_type_print_varspec_suffix): ...this.
2359 (f_type_print_base): Delete declaration and rename to...
2360 (f_language::f_type_print_base): ...this.
2361 * f-valprint.c (f_value_print_inner): Rename to...
2362 (f_language::value_print_inner): ...this.
2363 * parse.c: Delete 'f-lang.h' include.
2364
88cefd9b
AB
23652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 * language.h (language_defn::print_type): Add variable names in
2368 declaration, and update header comment.
2369
5399db93
AB
23702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * ada-lang.c (ada_language::demangle): Rename to...
2373 (ada_language::demangle_symbol): ...this.
2374 * c-lang.c (cplus_language::demangle): Rename to...
2375 (cplus_language::demangle_symbol): ...this.
2376 * d-lang.c (d_language::demangle): Rename to...
2377 (d_language::demangle_symbol): ...this.
2378 * f-lang.c (f_language::demangle): Rename to...
2379 (f_language::demangle_symbol): ...this.
2380 * go-lang.c (go_language::demangle): Rename to...
2381 (go_language::demangle_symbol): ...this.
2382 * language.c (language_demangle): Update call to demangle_symbol.
2383 (auto_or_unknown_language::demangle): Rename to...
2384 (auto_or_unknown_language::demangle_symbol): ...this.
2385 * language.h (language_defn::demangle): Rename to...
2386 (language_defn::demangle_symbol): ...this.
2387 * objc-lang.c (objc_language::demangle): Rename to...
2388 (objc_language::demangle_symbol): ...this.
2389 * rust-lang.c (rust_language::demangle): Rename to...
2390 (rust_language::demangle_symbol): ...this.
2391
4b2f86ef
AB
23922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2395 (iterate_over_file_blocks): Replace use of macro with the macros
2396 definition.
2397
e74b39de
AB
23982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2401 * valprint.c (maybe_print_array_index): Replace use of macro with
2402 the macros definition.
2403
00c696a6
AB
24042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (ada_language::print_array_index): Call value_print
2407 directly.
2408 * language.c (language_defn::print_array_index): Likewise.
2409 * language.h (LA_VALUE_PRINT): Delete.
2410 * valprint.c (value_print): Call value_print on the
2411 current_language directly.
2412
d3b67c56
AB
24132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * language.h (LA_PRINT_TYPEDEF): Delete.
2416 * typeprint.c (typedef_print): Call print_typedef directly on the
2417 current_language object.
2418
790e2a12
AB
24192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * m2-exp.y (m2_parse): Rename to...
2422 (m2_language::parser): ...this. Update function signature.
2423 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2424 (m2_op_print): Rename to...
2425 (m2_language::op_print_tab): ...this, and make const.
2426 (exp_descriptor_modula2): Rename to...
2427 (m2_language::exp_descriptor_modula2): ...this.
2428 (class m2_language): Move to m2-lang.h.
2429 (m2_language::language_arch_info): New function, moved out of
2430 class declaration.
2431 (m2_language::printchar): New function, body from m2_printchar.
2432 (m2_language::printstr): New function, moved out of class
2433 declaration.
2434 (m2_language::emitchar): Likewise.
2435 * m2-lang.h (m2_parse): Delete declaration.
2436 (m2_print_typedef): Delete declaration.
2437 (m2_value_print_inner): Delete declaration.
2438 (class m2_language): Class declaration moved from m2-lang.c,
2439 larger functions are left in m2-lang.c.
2440 * m2-typeprint.c (m2_print_typedef): Rename to...
2441 (m2_language::print_typedef): ...this, and update function
2442 signature.
2443 * m2-valprint.c (m2_value_print_inner): Rename to...
2444 (m2_language::value_print_inner): ...this, replace use of
2445 LA_PRINT_STRING with a direct call to printstr member function,
2446 and update recursive call.
2447
b01175fc
AB
24482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * language.c (default_is_string_type_p): Delete, implementation
2451 moved into auto_or_unknown_language::is_string_type_p.
2452 (unk_op_print_tab): Moved into
2453 auto_or_unknown_language::opcode_print_table.
2454 (unknown_language_arch_info): Delete, implementation moved into
2455 auto_or_unknown_language::language_arch_info.
2456 (class auto_or_unknown_language): New class, member functions
2457 copied from unknown_language class, with some updates.
2458 (class unknown_language): Most member functions moved into
2459 auto_or_unknown_language class. Inherit from
2460 auto_or_unknown_language class.
2461 (class auto_language): Inherit from auto_or_unknown_language.
2462 Delete most member functions.
2463
1a97fe8c
HD
24642020-10-22 Hannes Domani <ssbssa@yahoo.de>
2465
2466 * stabsread.c (read_member_functions): Remove gdb_assert.
2467
6b9d0dfd
HD
24682020-10-22 Hannes Domani <ssbssa@yahoo.de>
2469
2470 * gdbtypes.c (init_complex_type): Check target type name.
2471
4b4bb603
SM
24722020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * target-debug.h (target_debug_print_struct_target_ops_p):
2475 Remove.
2476 (target_debug_print_async_callback_ftype_p): Remove.
2477 (target_debug_print_struct_trace_state_variable_p): Remove.
2478 (target_debug_print_struct_traceframe_info_p): Remove.
2479 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2480 (target_debug_print_enum_btrace_format): Remove.
2481 (target_debug_print_enum_info_proc_what): Remove.
2482 (target_debug_print_thread_info_pp): Remove.
2483
24f5300a
SM
24842020-10-22 Simon Marchi <simon.marchi@efficios.com>
2485
2486 * target.h (struct target_ops) <make_corefile_notes>:
2487 Change return type to unique pointer.
2488 * target.c (dummy_make_corefile_notes): Likewise.
2489 * exec.c (struct exec_target) <make_corefile_notes>:
2490 Likewise.
2491 (exec_target::make_corefile_notes): Likewise.
2492 * procfs.c (class procfs_target) <make_corefile_notes>:
2493 Likewise.
2494 (procfs_do_thread_registers): Adjust to unique pointer.
2495 (struct procfs_corefile_thread_data): Add constructor.
2496 <note_data>: Change type to unique pointer.
2497 (procfs_corefile_thread_callback): Adjust to unique pointer.
2498 (procfs_target::make_corefile_notes): Change return type to
2499 unique pointer.
2500 * target-delegates.c: Re-generate.
2501 * gcore.c (write_gcore_file_1): Adjust.
2502 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2503 New.
2504
5fb4027f
TV
25052020-10-22 Tom de Vries <tdevries@suse.de>
2506
2507 * block.c (find_block_in_blockvector): Make sure the returned block
2508 contains pc.
2509
4a636814
SM
25102020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2511
2512 PR gdb/26693
2513 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2514 parameter.
2515 (load_cu): Pass existing CU.
2516 (process_imported_unit_die): Likewise.
2517 (follow_die_offset): Likewise.
2518
1bd57575
LM
25192020-10-22 Luis Machado <luis.machado@linaro.org>
2520
2521 * corelow.c (core_target::xfer_partial): Also check for an empty
2522 m_core_unavailable_mappings vector.
2523
6b4c676c
AB
25242020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2527 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2528 * f-exp.y (arglist): Allow for a series of subranges.
2529 (subrange): Add cases for subranges with strides.
2530 * f-lang.c (value_f90_subarray): Catch use of array strides and
2531 throw an error.
2532 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2533
f2d8e4c5
AB
25342020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * expprint.c (print_subexp_standard): Change enum range_type to
2537 range_flag and rename variables to match.
2538 (dump_subexp_body_standard): Likewise.
2539 * expression.h (enum range_type): Rename to...
2540 (enum range_flag): ...this.
2541 (range_types): Rename to...
2542 (range_flags): ...this.
2543 * f-lang.c (value_f90_subarray): Change enum range_type to
2544 range_flag and rename variables to match.
2545 * parse.c (operator_length_standard): Likewise.
2546 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2547 range_type to range_flag.
2548 * rust-lang.c (rust_evaluate_funcall): Likewise.
2549 (rust_range): Likewise.
2550 (rust_compute_range): Likewise.
2551 (rust_subscript): Likewise.
2552
2f1b18db
AB
25532020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * expprint.c (print_subexp_standard): Update to reflect changes to
2556 enum range_type.
2557 (dump_subexp_body_standard): Likewise.
2558 * expression.h (enum range_type): Convert to a bit field enum, and
2559 make the enum unsigned.
2560 * f-exp.y (subrange): Update to reflect changes to enum
2561 range_type.
2562 * f-lang.c (value_f90_subarray): Likewise.
2563 * parse.c (operator_length_standard): Likewise.
2564 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2565 * rust-lang.c (rust_range): Likewise.
2566 (rust_compute_range): Likewise.
2567 (rust_subscript): Likewise.
2568
a46d1843
SM
25692020-10-21 Simon Marchi <simon.marchi@efficios.com>
2570
2571 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2572 (displaced_step_in_progress): Fix comment.
2573
c21f37a8
SM
25742020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2577 * gdbarch.c: Re-generate.
2578 * gdbarch.h: Re-generate.
2579 * gcore.c (write_gcore_file_1): Adjust.
2580 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2581 constructor.
2582 <note_data>: Change type to unique pointer.
2583 <abort_iteration>: Change type to bool.
2584 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2585 (fbsd_collect_thread_registers): Return void, adjust.
2586 (struct fbsd_corefile_thread_data): Add construtor.
2587 <note_data>: Change type to unique pointer.
2588 (fbsd_corefile_thread): Adjust.
2589 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2590 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2591 to unique pointer, adjust.
2592 (struct linux_collect_regset_section_cb_data): Add constructor.
2593 <note_data>: Change type to unique pointer.
2594 <abort_iteration>: Change type to bool.
2595 (linux_collect_thread_registers): Return void, adjust.
2596 (struct linux_corefile_thread_data): Add constructor.
2597 <note_data>: Change type to unique pointer.
2598 (linux_corefile_thread): Adjust.
2599 (linux_make_corefile_notes): Return unique pointer, adjust.
2600
07fbbd01
SM
26012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2604 * gdbarch.c: Re-generate.
2605 * gdbarch.h: Re-generate.
2606 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2607 bool.
2608 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2609 Likewise.
2610 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2611 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2612 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2613 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2614
39535193
SM
26152020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * gdbarch.sh: Make generated predicates return bool.
2618 * gdbarch.c: Re-generate.
2619 * gdbarch.h: Re-generate.
2620
ad523d01
TT
26212020-10-20 Tom Tromey <tom@tromey.com>
2622
2623 * varobj-iter.h (struct varobj_item): Remove typedef.
2624
c4464ade
SM
26252020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * infrun.c (currently_stepping): Change int to bool
2628 (maybe_software_singlestep): Likewise.
2629 (show_stop_on_solib_events): Likewise.
2630 (stepping_past_nonsteppable_watchpoint): Likewise.
2631 (displaced_step_in_progress_any_inferior): Likewise.
2632 (displaced_step_in_progress_thread): Likewise.
2633 (keep_going_stepped_thread): Likewise.
2634 (thread_still_needs_step_over): Likewise.
2635 (start_step_over): Likewise.
2636 (do_target_resume): Likewise.
2637 (resume_1): Likewise.
2638 (clear_proceed_status): Likewise.
2639 (thread_still_needs_step_over_bp): Likewise.
2640 (proceed): Likewise.
2641 (switch_back_to_stepped_thread): Likewise.
2642 (adjust_pc_after_break): Likewise.
2643 (stepped_in_from): Likewise.
2644 (handle_stop_requested): Likewise.
2645 (handle_syscall_event): Likewise.
2646 (handle_no_resumed): Likewise.
2647 (handle_inferior_event): Likewise.
2648 (finish_step_over): Likewise.
2649 (handle_signal_stop): Likewise.
2650 (process_event_stop_test): Likewise.
2651
2eb20436
SM
26522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2653
2654 * infrun.c (get_displaced_stepping_state): Fix comment.
2655
e0c45ded
AS
26562020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2657
2658 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2659
22cc388e
TT
26602020-10-19 Tom Tromey <tromey@adacore.com>
2661
2662 PR tui/26719
2663 * tui/tui-winsource.h (struct tui_source_window_base)
2664 <refresh_window>: Rename from refresh_pad.
2665 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2666 Rename from refresh_pad.
2667 (tui_source_window_base::show_source_content)
2668 (tui_source_window_base::do_scroll_horizontal): Update.
2669
3c6eb4d4
TBA
26702020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2671
2672 * thread.c (_initialize_thread): Fine-tune the help text of
2673 'info threads'.
2674
26703721
TBA
26752020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2676
2677 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2678
61c26be8
MS
26792020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2680
2681 * breakpoint.c (handle_jit_event): Add an argument, change how
2682 `jit_event_handler` is called.
2683
932539d7
TT
26842020-10-17 Tom Tromey <tom@tromey.com>
2685
2686 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2687 (scan_xcoff_symtab): Update.
2688 * psymtab.h (class psymtab_storage) <global_psymbols,
2689 static_psymbols, current_global_psymbols,
2690 current_static_psymbols>: Remove.
2691 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2692 (match_partial_symbol, lookup_partial_symbol): Update.
2693 (print_partial_symbols): Change parameters.
2694 (dump_psymtab, recursively_search_psymtabs)
2695 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2696 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2697 (concat): Remove.
2698 (end_psymtab_common): Simplify.
2699 (append_psymbol_to_list): Change parameters.
2700 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2701 (init_psymbol_list): Simplify.
2702 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2703 * psympriv.h (struct partial_symtab) <empty>: New method.
2704 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2705 Remove.
2706 <global_psymbols, static_psymbols>: New members.
2707 <add_psymbol>: New methods.
2708 (add_psymbol_to_list): Don't declare.
2709 (psymbol_placement): Move earlier.
2710 * mdebugread.c (parse_partial_symbols): Update.
2711 (handle_psymbol_enumerators): Change parameters.
2712 (mdebug_expand_psymtab): Update.
2713 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2714 (add_partial_symbol): Update.
2715 * dwarf2/index-write.c (write_psymbols): Change parameters.
2716 (write_one_signatured_type): Update.
2717 (recursively_count_psymbols): Update.
2718 (recursively_write_psymbols): Update.
2719 (class debug_names) <recursively_write_psymbols>: Update.
2720 <write_psymbols>: Change parameters.
2721 <write_one_signatured_type>: Update.
2722 * dbxread.c (read_dbx_symtab): Update.
2723 (dbx_end_psymtab): Use partial_symtab::empty.
2724 * ctfread.c (struct ctf_context) <pst>: New member.
2725 (create_partial_symtab): Set it.
2726 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2727 (scan_partial_symbols): Use the psymtab's context. Update.
2728
cfabbd35
TT
27292020-10-17 Tom Tromey <tom@tromey.com>
2730
2731 * valprint.c (generic_value_print): Remove comment.
2732 * m2-valprint.c (m2_value_print_inner): Remove comment.
2733 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2734 type.
2735
520596f2
TV
27362020-10-17 Tom de Vries <tdevries@suse.de>
2737
2738 PR symtab/26317
2739 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2740 symbol main.
2741
76547ab3
TV
27422020-10-14 Tom de Vries <tdevries@suse.de>
2743
2744 PR gdb/26733
2745 * solib.c (solib_contains_address_p): Handle
2746 'solib->sections == nullptr'.
2747
d3a07122
SM
27482020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2749
2750 PR gdb/26642
2751 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2752 target can't do async.
2753 * target.c (target_wait): Assert that we don't pass
2754 TARGET_WNOHANG to a target that can't async.
2755
1b71cfcf
KR
27562020-10-13 Kamil Rytarowski <n54@gmx.com>
2757
2758 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2759 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2760 * alpha-bsd-nat.c: Adjust include.
2761 * alpha-bsd-tdep.h: Adjust comment.
2762 * alpha-nbsd-tdep.c: Rename to ...
2763 * alpha-netbsd-tdep.c: ... this, adjust include.
2764 * amd64-nbsd-nat.c: Rename to ...
2765 * amd64-netbsd-nat.c: ... this, adjust include.
2766 * amd64-nbsd-tdep.c: Rename to ...
2767 * amd64-netbsd-tdep.c: ... this, adjust include.
2768 * amd64-tdep.h: Adjust include.
2769 * arm-nbsd-nat.c: Rename to ...
2770 * arm-netbsd-nat.c: ... this, adjust include.
2771 * arm-nbsd-tdep.c: Rename to ...
2772 * arm-netbsd-tdep.c: ... this, adjust include.
2773 * arm-nbsd-tdep.h: Rename to ...
2774 * arm-netbsd-tdep.h: ... this, adjust include.
2775 * configure.nat: Adjust file lists.
2776 * configure.tgt: Likewise.
2777 * hppa-nbsd-nat.c: Rename to ...
2778 * hppa-netbsd-nat.c: ... this, adjust include.
2779 * hppa-nbsd-tdep.c: Rename to ...
2780 * hppa-netbsd-tdep.c: ... this, adjust include.
2781 * i386-nbsd-nat.c: Rename to ...
2782 * i386-netbsd-nat.c: ... this, adjust include.
2783 * i386-nbsd-tdep.c: Rename to ...
2784 * i386-netbsd-tdep.c: ... this, adjust include.
2785 * m68k-bsd-nat.c: Adjust include.
2786 * mips-nbsd-nat.c: Rename to ...
2787 * mips-netbsd-nat.c: ... this, adjust include.
2788 * mips-nbsd-tdep.c: Rename to ...
2789 * mips-netbsd-tdep.c: ... this, adjust include.
2790 * mips-nbsd-tdep.h: Rename to ...
2791 * mips-netbsd-tdep.h: ... this.
2792 * nbsd-nat.c: Rename to ...
2793 * netbsd-nat.c: ... this, adjust include.
2794 * nbsd-nat.h: Rename to ...
2795 * netbsd-nat.h: ... this, adjust include.
2796 * nbsd-tdep.c: Rename to ...
2797 * netbsd-tdep.c: ... this, adjust include.
2798 * nbsd-tdep.h: Rename to ...
2799 * netbsd-tdep.h: ... this.
2800 * ppc-nbsd-nat.c: Rename to ...
2801 * ppc-netbsd-nat.c: ... this, adjust include.
2802 * ppc-nbsd-tdep.c: Rename to ...
2803 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2804 * ppc-nbsd-tdep.h: Rename to ...
2805 * ppc-netbsd-tdep.h: ... this.
2806 * sh-nbsd-nat.c: Rename to ...
2807 * sh-netbsd-nat.c: ... this, adjust include.
2808 * sh-nbsd-tdep.c: Rename to ...
2809 * sh-netbsd-tdep.c: ... this, adjust include.
2810 * sparc-nbsd-nat.c: Rename to ...
2811 * sparc-netbsd-nat.c: ... this.
2812 * sparc-nbsd-tdep.c: Rename to ...
2813 * sparc-netbsd-tdep.c: ... this, adjust include.
2814 * sparc64-nbsd-nat.c: Rename to ...
2815 * sparc64-netbsd-nat.c: ... this.
2816 * sparc64-nbsd-tdep.c: Rename to ...
2817 * sparc64-netbsd-tdep.c: ... this, adjust include.
2818 * sparc64-tdep.h: Adjust comment.
2819 * vax-bsd-nat.c: Adjust include.
2820 * vax-nbsd-tdep.c: Rename to ...
2821 * vax-netbsd-tdep.c: ... this, adjust include.
2822
d7a78e5c
TT
28232020-10-12 Tom Tromey <tom@tromey.com>
2824
2825 * target.h (struct target_ops) <get_section_table>: Update.
2826 (target_get_section_table): Update.
2827 * target.c (target_get_section_table, target_section_by_addr)
2828 (memory_xfer_partial_1): Update.
2829 * target-section.h (target_section_table): Now an alias.
2830 * target-delegates.c: Rebuild.
2831 * target-debug.h (target_debug_print_target_section_table_p):
2832 Rename from target_debug_print_struct_target_section_table_p.
2833 * symfile.c (build_section_addr_info_from_section_table): Update.
2834 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2835 * solib-svr4.c (scan_dyntag): Update.
2836 * solib-dsbt.c (scan_dyntag): Update.
2837 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2838 Update.
2839 * record-full.c (record_full_core_target::xfer_partial): Update.
2840 * progspace.h (struct program_space) <target_sections>: Update.
2841 * exec.h (print_section_info): Update.
2842 * exec.c (exec_target::close, build_section_table)
2843 (add_target_sections, add_target_sections_of_objfile)
2844 (remove_target_sections, exec_on_vfork)
2845 (section_table_available_memory)
2846 (section_table_xfer_memory_partial)
2847 (exec_target::get_section_table, exec_target::xfer_partial)
2848 (print_section_info, set_section_command)
2849 (exec_set_section_address, exec_target::has_memory): Update.
2850 * corelow.c (core_target::build_file_mappings)
2851 (core_target::xfer_partial, core_target::info_proc_mappings)
2852 (core_target::info_proc_mappings): Update.
2853 * bfd-target.c (class target_bfd): Update
2854
eda214ce
TT
28552020-10-12 Tom Tromey <tom@tromey.com>
2856
2857 * progspace.c (program_space::~program_space): Don't call
2858 clear_section_table.
2859 * exec.h (clear_section_table): Don't declare.
2860 * exec.c (exec_target::close): Update.
2861 (clear_section_table): Remove.
2862
91840ee3
TT
28632020-10-12 Tom Tromey <tom@tromey.com>
2864
2865 * exec.c (add_target_sections_of_objfile): Simplify.
2866
2d128614
TT
28672020-10-12 Tom Tromey <tom@tromey.com>
2868
2869 * solib.c (solib_map_sections): Update.
2870 * record-full.c (record_full_core_open_1): Update.
2871 * exec.h (build_section_table): Return a target_section_table.
2872 * exec.c (exec_file_attach): Update.
2873 (build_section_table): Return a target_section_table.
2874 * corelow.c (core_target::core_target): Update.
2875 * bfd-target.c (target_bfd::target_bfd): Update.
2876
bb2a6777
TT
28772020-10-12 Tom Tromey <tom@tromey.com>
2878
2879 * target.c (target_section_by_addr, memory_xfer_partial_1):
2880 Update.
2881 * target-section.h (struct target_section_table): Use
2882 std::vector.
2883 * symfile.h (build_section_addr_info_from_section_table): Take a
2884 target_section_table.
2885 * symfile.c (build_section_addr_info_from_section_table): Take a
2886 target_section_table.
2887 * solist.h (struct so_list) <sections>: Change type.
2888 <sections_end>: Remove.
2889 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2890 (solib_contains_address_p): Update.
2891 * solib-svr4.c (scan_dyntag): Update.
2892 * solib-dsbt.c (scan_dyntag): Update.
2893 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2894 Update.
2895 * record-full.c (record_full_core_start, record_full_core_end):
2896 Remove.
2897 (record_full_core_sections): New global.
2898 (record_full_core_open_1, record_full_core_target::xfer_partial):
2899 Update.
2900 * exec.h (build_section_table, section_table_xfer_memory_partial)
2901 (add_target_sections): Take a target_section_table.
2902 * exec.c (exec_file_attach, clear_section_table): Update.
2903 (resize_section_table): Remove.
2904 (build_section_table, add_target_sections): Take a
2905 target_section_table.
2906 (add_target_sections_of_objfile, remove_target_sections)
2907 (exec_on_vfork): Update.
2908 (section_table_available_memory): Take a target_section_table.
2909 (section_table_read_available_memory): Update.
2910 (section_table_xfer_memory_partial): Take a target_section_table.
2911 (print_section_info, set_section_command)
2912 (exec_set_section_address, exec_target::has_memory): Update.
2913 * corelow.c (class core_target) <m_core_section_table,
2914 m_core_file_mappings>: Remove braces.
2915 <~core_target>: Remove.
2916 (core_target::core_target): Update.
2917 (core_target::~core_target): Remove.
2918 (core_target::build_file_mappings)
2919 (core_target::xfer_memory_via_mappings)
2920 (core_target::xfer_partial, core_target::info_proc_mappings):
2921 Update.
2922 * bfd-target.c (target_bfd::xfer_partial): Update.
2923 (target_bfd::target_bfd): Update.
2924 (target_bfd::~target_bfd): Remove.
2925
7b466b10
TT
29262020-10-12 Tom Tromey <tom@tromey.com>
2927
2928 * target.h (struct target_section, struct target_section_table):
2929 Move to target-section.h.
2930 * target-section.h: New file.
2931
87a37e5e
PA
29322020-10-12 Pedro Alves <pedro@palves.net>
2933
2934 PR exp/26602
2935 * valops.c (struct struct_field_searcher): New.
2936 (update_search_result): Rename to ...
2937 (struct_field_searcher::update_result): ... this. Simplify
2938 prototype. Record all found fields.
2939 (do_search_struct_field): Rename to ...
2940 (struct_field_searcher::search): ... this. Simplify prototype.
2941 Maintain stack of visited baseclass path. Call update_result for
2942 fields too. Keep searching fields in baseclasses instead of
2943 stopping at the first found field.
2944 (search_struct_field): Use struct_field_searcher. When looking
2945 for fields, report ambiguous access attempts.
2946
9370fd51
AB
29472020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * frame.c (inside_main_func): Check full symbols as well as
2950 minimal symbols.
2951
59c8a30b
JB
29522020-10-09 Joel Brobecker <brobecker@adacore.com>
2953
2954 * ada-lang.c (advance_wild_match): Rewrite the function's
2955 description. Change the type of target0, t0 and t1 to char.
2956
7c184d33
TT
29572020-10-09 Tom Tromey <tromey@adacore.com>
2958
2959 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2960
5c4258f4
TT
29612020-10-09 Tom Tromey <tromey@adacore.com>
2962
2963 * ada-lang.h (ada_encode): Return std::string.
2964 * ada-lang.c (ada_encode_1): Return std::string.
2965 (ada_encode): Likewise.
2966 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2967 Update.
2968 * ada-exp.y (block_lookup, write_var_or_type): Update.
2969
3d87245c
HD
29702020-10-09 Hannes Domani <ssbssa@yahoo.de>
2971
2972 PR exp/26714
2973 * printcmd.c (print_formatted): Handle void results as
2974 unformatted prints.
2975
bbb826f5
AB
29762020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2977
2978 * arch/aarch32.c (aarch32_create_target_description): Release the
2979 target_desc_up as late as possible.
2980 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2981 * arch/amd64.c (amd64_create_target_description): Likewise.
2982 * arch/arc.c (arc_create_target_description): Return a
2983 target_desc_up, don't release it.
2984 * arch/arc.h (arc_create_target_description): Update declaration.
2985 (arc_lookup_target_description): Move target_desc_up into the
2986 cache, and return a borrowed pointer.
2987 * arch/arm.c (arm_create_target_description): Release the
2988 target_desc_up as late as possible.
2989 * arch/i386.c (i386_create_target_description): Likewise.
2990 * arch/riscv.h (riscv_create_target_description): Update
2991 declaration to match definition.
2992 * arch/tic6x.c (tic6x_create_target_description): Release the
2993 target_desc_up as late as possible.
2994
361cb219
AB
29952020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2998 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2999
f5c4b229
JV
30002020-10-09 Jan Vrany <jan.vrany@labware.com>
3001
3002 * source.c (directory_command): Notify observers that "directories"
3003 parameter has changed.
3004
b2701685
TT
30052020-10-08 Tom Tromey <tom@tromey.com>
3006
3007 * cli/cli-cmds.c (print_disassembly): Style function name and
3008 addresses. Add _() wrappers.
3009
ada508b6
SV
30102020-10-08 Shahab Vahedi <shahab@synopsys.com>
3011
3012 * NEWS: Mention ARC support in GDBserver.
3013
51a948fd
AB
30142020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3015
3016 * arch/aarch32.c (aarch32_create_target_description): Release
3017 unique_ptr returned from allocate_target_description.
3018 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3019 * arch/amd64.c (amd64_create_target_description): Likewise.
3020 * arch/arc.c (arc_create_target_description): Likewise.
3021 * arch/arm.c (arm_create_target_description): Likewise.
3022 * arch/i386.c (i386_create_target_description): Likewise.
3023 * arch/riscv.c (riscv_create_target_description): Update return
3024 type. Handle allocate_target_description returning a unique_ptr.
3025 (riscv_lookup_target_description): Update to handle unique_ptr.
3026 * arch/tic6x.c (tic6x_create_target_description): Release
3027 unique_ptr returned from allocate_target_description.
3028 * features/microblaze-with-stack-protect.c: Regenerate.
3029 * features/microblaze.c: Regenerate.
3030 * features/mips-dsp-linux.c: Regenerate.
3031 * features/mips-linux.c: Regenerate.
3032 * features/mips64-dsp-linux.c: Regenerate.
3033 * features/mips64-linux.c: Regenerate.
3034 * features/nds32.c: Regenerate.
3035 * features/nios2.c: Regenerate.
3036 * features/or1k.c: Regenerate.
3037 * features/rs6000/powerpc-32.c: Regenerate.
3038 * features/rs6000/powerpc-32l.c: Regenerate.
3039 * features/rs6000/powerpc-403.c: Regenerate.
3040 * features/rs6000/powerpc-403gc.c: Regenerate.
3041 * features/rs6000/powerpc-405.c: Regenerate.
3042 * features/rs6000/powerpc-505.c: Regenerate.
3043 * features/rs6000/powerpc-601.c: Regenerate.
3044 * features/rs6000/powerpc-602.c: Regenerate.
3045 * features/rs6000/powerpc-603.c: Regenerate.
3046 * features/rs6000/powerpc-604.c: Regenerate.
3047 * features/rs6000/powerpc-64.c: Regenerate.
3048 * features/rs6000/powerpc-64l.c: Regenerate.
3049 * features/rs6000/powerpc-7400.c: Regenerate.
3050 * features/rs6000/powerpc-750.c: Regenerate.
3051 * features/rs6000/powerpc-860.c: Regenerate.
3052 * features/rs6000/powerpc-altivec32.c: Regenerate.
3053 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3054 * features/rs6000/powerpc-altivec64.c: Regenerate.
3055 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3056 * features/rs6000/powerpc-e500.c: Regenerate.
3057 * features/rs6000/powerpc-e500l.c: Regenerate.
3058 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3059 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3060 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3061 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3062 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3063 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3064 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3065 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3066 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3067 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3068 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3069 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3070 * features/rs6000/powerpc-vsx32.c: Regenerate.
3071 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3072 * features/rs6000/powerpc-vsx64.c: Regenerate.
3073 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3074 * features/rs6000/rs6000.c: Regenerate.
3075 * features/rx.c: Regenerate.
3076 * features/s390-gs-linux64.c: Regenerate.
3077 * features/s390-linux32.c: Regenerate.
3078 * features/s390-linux32v1.c: Regenerate.
3079 * features/s390-linux32v2.c: Regenerate.
3080 * features/s390-linux64.c: Regenerate.
3081 * features/s390-linux64v1.c: Regenerate.
3082 * features/s390-linux64v2.c: Regenerate.
3083 * features/s390-te-linux64.c: Regenerate.
3084 * features/s390-tevx-linux64.c: Regenerate.
3085 * features/s390-vx-linux64.c: Regenerate.
3086 * features/s390x-gs-linux64.c: Regenerate.
3087 * features/s390x-linux64.c: Regenerate.
3088 * features/s390x-linux64v1.c: Regenerate.
3089 * features/s390x-linux64v2.c: Regenerate.
3090 * features/s390x-te-linux64.c: Regenerate.
3091 * features/s390x-tevx-linux64.c: Regenerate.
3092 * features/s390x-vx-linux64.c: Regenerate.
3093 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3094 from allocate_target_description.
3095 * target-descriptions.c (allocate_target_description): Update
3096 return type.
3097 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3098 allocate_target_description.
3099
485c47e5
TT
31002020-10-07 Tom Tromey <tromey@adacore.com>
3101
3102 * unittests/search-memory-selftests.c: New file.
3103 * Makefile.in (SELFTESTS_SRCS): Add
3104 unittests/search-memory-selftests.c.
3105
3a135a91
TT
31062020-10-07 Tom Tromey <tromey@adacore.com>
3107
3108 PR gdb/16930:
3109 * findcmd.c (_initialize_mem_search): Mention that the range is
3110 inclusive.
3111
4a72de73
TT
31122020-10-07 Tom Tromey <tromey@adacore.com>
3113
3114 * target.h (simple_search_memory): Don't declare.
3115 * target.c (simple_search_memory): Move to gdbsupport.
3116 (default_search_memory): Update.
3117 * remote.c (remote_target::search_memory): Update.
3118
a038ffd8
SM
31192020-10-07 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * Makefile.in (COMPILE): Add CXXFLAGS.
3122 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3123 (check-headers): Add CXXFLAGS.
3124
cc463201
AK
31252020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3126
3127 * arc-linux-tdep.h: New file.
3128 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3129 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3130 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3131 arc_linux_gregset, arc_linux_v2_regset,
3132 arc_linux_iterate_over_regset_sections,
3133 arc_linux_core_read_description): Implement.
3134 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3135 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3136 (arc_gdbarch_features_create): Add.
3137 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3138
e4bd363f
SV
31392020-10-07 Shahab Vahedi <shahab@synopsys.com>
3140
3141 * arch/arc.h: Rename "arc_gdbarch_features" to
3142 "arc_arch_features".
3143 * arc-tdep.h: Likewise.
3144 * arc-tdep.c: Likewise.
3145
b68bef99
TBA
31462020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3147
3148 * infcmd.c (attach_command): Remove the redundant call to
3149 `clear_proceed_status`.
3150
4641551a
KR
31512020-10-07 Kamil Rytarowski <n54@gmx.com>
3152
3153 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3154
91e5e8db
KR
31552020-10-07 Kamil Rytarowski <n54@gmx.com>
3156
3157 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3158 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3159 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3160
64c03bdb
SM
31612020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3164 (_initialize_break_catch_sig): Don't allocate array.
3165
31a8f60f
AB
31662020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * symtab.c (find_pc_line): Return unmapped addresses when the
3169 requested address is also unmapped.
3170
9e6dbd8b
SM
31712020-10-05 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3174 tui/tui-out.h.
3175
a1d217e8
SM
31762020-10-05 Simon Marchi <simon.marchi@efficios.com>
3177
3178 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3179 type::is_vector instead of TYPE_VECTOR.
3180
7d144117
SM
31812020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3182
3183 * auto-load.c (auto_load_objfile_script_1): Don't use
3184 debugfile_holder as temporary variable when stripping drive
3185 letter.
3186
cd096ec8
HD
31872020-10-05 Hannes Domani <ssbssa@yahoo.de>
3188
3189 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3190 Add TYPE_CODE_COMPLEX.
3191 (amd64_windows_return_value): Fix types returned via XMM0.
3192
b58e7f72
AH
31932020-10-05 Alan Hayward <alan.hayward@arm.com>
3194
3195 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3196 AArch64/ARM maintainers.
3197
8d378f27
SM
31982020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * NEWS: Mention set/show debug event-loop.
3201
d5519913
TT
32022020-10-02 Tom Tromey <tromey@adacore.com>
3203
3204 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3205 REG_EXTENDED.
3206
18b67edc
SM
32072020-10-02 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3210 * procfs.c (procfs_inferior_created): Remove.
3211 (_initialize_procfs): Don't register procfs_inferior_created.
3212
6b01403b
SM
32132020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3214
3215 * async-event.c (invoke_async_signal_handlers): Add debug
3216 print.
3217 (check_async_event_handlers): Likewise.
3218 * event-top.c (show_debug_event_loop): New function.
3219 (_initialize_event_top): Register "set debug event-loop"
3220 setting.
3221
ba988419
SM
32222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3225 * debug.h: Remove.
3226 * infrun.c: Include gdbsupport/common-debug.h.
3227 * linux-nat.c: Likewise.
3228
db20ebdf
SM
32292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * async-event.h (create_async_signal_handler): Add name
3232 parameter.
3233 (create_async_event_handler): Likewise.
3234 * async-event.c (struct async_signal_handler) <name>: New field.
3235 (struct async_event_handler) <name>: New field.
3236 (create_async_signal_handler): Assign name.
3237 (create_async_event_handler): Assign name.
3238 * event-top.c (async_init_signals): Pass name when creating
3239 handler.
3240 * infrun.c (_initialize_infrun): Likewise.
3241 * record-btrace.c (record_btrace_push_target): Likewise.
3242 * record-full.c (record_full_open): Likewise.
3243 * remote-notif.c (remote_notif_state_allocate): Likewise.
3244 * remote.c (remote_target::open_1): Likewise.
3245 * tui/tui-win.c (tui_initialize_win): Likewise.
3246
2554f6f5
SM
32472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * async-event.c (initialize_async_signal_handlers): Pass name to
3250 add_file_handler
3251 * event-top.c (ui_register_input_event_handler): Likewise.
3252 * linux-nat.c (linux_nat_target::async): Likewise.
3253 * run-on-main-thread.c (_initialize_run_on_main_thread):
3254 Likewise
3255 * ser-base.c (reschedule): Likewise.
3256 (ser_base_async): Likewise.
3257 * tui/tui-io.c: Likewise.
3258 * top.h (struct ui) <num>: New field.
3259 * top.c (highest_ui_num): New variable.
3260 (ui::ui): Initialize num.
3261
a7aba266
SM
32622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * observable.h <inferior_created>: Remove parameters. Update all
3265 listeners.
3266 * inferior.h (post_create_inferior): Remove target parameter.
3267 Update all callers.
3268
048fde1e 32692020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3270
3271 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3272 and DW_MACRO_undef_strx.
3273 (dwarf_decode_macros): Likewise
3274 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3275 which is the value of DW_AT_str_offsets_base.
3276 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3277 str_offsets_base.
3278
064280be
KR
32792020-10-01 Kamil Rytarowski <n54@gmx.com>
3280
3281 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3282
6ff33035
KR
32832020-10-01 Kamil Rytarowski <n54@gmx.com>
3284
3285 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3286 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3287
1eb6eb79
KR
32882020-10-01 Kamil Rytarowski <n54@gmx.com>
3289
3290 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3291
95eb9e54
TV
32922020-09-30 Tom de Vries <tdevries@suse.de>
3293
3294 PR symtab/26683
3295 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3296
cae21f8e
TT
32972020-09-30 Tom Tromey <tromey@adacore.com>
3298
3299 * dwarf2/read.c (handle_variant): Use constant_value.
3300
529908cb
TT
33012020-09-29 Tom Tromey <tom@tromey.com>
3302
3303 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3304 (read_file_scope, dwarf2_get_pc_bounds)
3305 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3306 (read_structure_type, handle_struct_member_die)
3307 (read_enumeration_type, read_array_type, read_set_type)
3308 (read_tag_pointer_type, read_tag_reference_type)
3309 (read_subroutine_type, read_base_type, read_subrange_type)
3310 (read_full_die_1, partial_die_info::read)
3311 (partial_die_info::read, by, new_symbol)
3312 (dwarf2_const_value_data, dwarf2_const_value_attr)
3313 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3314 (prepare_one_comp_unit): Update.
3315 * dwarf2/attribute.h (DW_UNSND): Remove.
3316
c45bc3f8
TT
33172020-09-29 Tom Tromey <tom@tromey.com>
3318
3319 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3320 (read_subroutine_type, partial_die_info::read)
3321 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3322 (dwarf2_add_member_fn): Update.
3323 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3324 * dwarf2/attribute.c (attribute::as_boolean): New method.
3325
23dca5c3
TT
33262020-09-29 Tom Tromey <tom@tromey.com>
3327
3328 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3329 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3330 method.
3331 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3332
52c14d11
TT
33332020-09-29 Tom Tromey <tom@tromey.com>
3334
3335 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3336 the attribute's form.
3337
e8e5c158
TT
33382020-09-29 Tom Tromey <tom@tromey.com>
3339
3340 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3341 (dwarf2_add_member_fn): Update.
3342 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3343 * dwarf2/attribute.c (attribute::defaulted): New method, from
3344 is_valid_DW_AT_defaulted.
3345
d4df075e
TT
33462020-09-29 Tom Tromey <tom@tromey.com>
3347
3348 * dwarf2/read.c (dw2_get_file_names_reader)
3349 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3350 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3351 (dwarf2_symbol_mark_computed): Use as_unsigned.
3352 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3353 method.
3354 <form_is_section_offset>: Update comment.
3355
bf23a268
TT
33562020-09-29 Tom Tromey <tom@tromey.com>
3357
3358 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3359 dwarf2_default_access_attribute. Look up attribute.
3360 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3361 Update.
3362
7a5f294d
TT
33632020-09-29 Tom Tromey <tom@tromey.com>
3364
3365 * dwarf2/read.c (skip_one_die): Update.
3366 (read_full_die_1): Change how reprocessing is done.
3367 (partial_die_info::read): Update.
3368 (read_attribute_value): Remove need_reprocess parameter.
3369 (read_attribute): Likewise.
3370 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3371 New method.
3372
36d378cf
TT
33732020-09-29 Tom Tromey <tom@tromey.com>
3374
3375 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3376 (dwarf2_const_value_attr, dump_die_shallow)
3377 (dwarf2_fetch_constant_bytes): Update.
3378 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3379 comment.
3380 <set_address>: New method.
3381 (DW_ADDR): Remove.
3382 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3383 (attribute::as_string, attribute::as_address): Add assert.
3384
fe56917a
TT
33852020-09-29 Tom Tromey <tom@tromey.com>
3386
3387 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3388 (read_attribute_reprocess, read_attribute_value): Update.
3389 (read_attribute): Clear requires_reprocessing.
3390 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3391 form_requires_reprocessing>: New methods.
3392 <string_init>: Clear requires_reprocessing.
3393 <set_unsigned_reprocess>: New method.
3394 <name>: Shrink by one bit.
3395 <requires_reprocessing>: New member.
3396 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3397 method.
3398
414ad644
TT
33992020-09-29 Tom Tromey <tom@tromey.com>
3400
3401 * dwarf2/read.c (read_attribute_value): Update.
3402 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3403 set_unsigned>: New methods.
3404 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3405
1bc397c5
TT
34062020-09-29 Tom Tromey <tom@tromey.com>
3407
3408 * dwarf2/read.c (get_alignment, read_array_order)
3409 (read_attribute_value, dwarf2_const_value_attr)
3410 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3411 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3412 New methods.
3413 (DW_SND): Remove.
3414
630ed6b9
TT
34152020-09-29 Tom Tromey <tom@tromey.com>
3416
3417 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3418 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3419 Update.
3420 * dwarf2/attribute.h (struct attribute) <as_signature,
3421 set_signature>: New methods.
3422 (DW_SIGNATURE): Remove.
3423
9d2246fc
TT
34242020-09-29 Tom Tromey <tom@tromey.com>
3425
3426 * dwarf2/read.c (read_call_site_scope)
3427 (handle_data_member_location, dwarf2_add_member_fn)
3428 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3429 (partial_die_info::read, read_attribute_value)
3430 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3431 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3432 (dwarf2_symbol_mark_computed): Update.
3433 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3434 methods.
3435 (DW_BLOCK): Remove.
3436 * dwarf2/attribute.c (attribute::form_is_block): Add
3437 DW_FORM_data16.
3438
c6481205
TT
34392020-09-29 Tom Tromey <tom@tromey.com>
3440
3441 * dwarf2/read.c (read_cutu_die_from_dwo)
3442 (read_attribute_reprocess, read_attribute_value, read_attribute)
3443 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3444 (dwarf2_fetch_constant_bytes): Update.
3445 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3446 <set_string_noncanonical, set_string_canonical>: New methods.
3447 <string_is_canonical>: Update comment.
3448 <canonical_string_p>: Add assert.
3449 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3450 * dwarf2/attribute.c (attribute::form_is_string): New method.
3451 (attribute::string): Use it.
3452
3b64bf15
TT
34532020-09-29 Tom Tromey <tom@tromey.com>
3454
3455 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3456 (dump_die_shallow): Use canonical_string_p.
3457 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3458 method.
3459
2c830f54
TT
34602020-09-29 Tom Tromey <tom@tromey.com>
3461
3462 * dwarf2/read.c (partial_die_info::read)
3463 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3464 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3465 attribute::as_string.
3466
6c412691
TT
34672020-09-29 Tom Tromey <tom@tromey.com>
3468
3469 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3470 DW_ADDR.
3471 (attribute::string): Don't use DW_STRING.
3472 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3473 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3474
95f982e5
TT
34752020-09-29 Tom Tromey <tom@tromey.com>
3476
3477 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3478 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3479 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3480 * dwarf2/attribute.h (struct attribute): Rename methods.
3481 * dwarf2/attribute.c (attribute::as_address): Rename from
3482 value_as_address.
3483 (attribute::as_string): Rename from value_as_string.
3484
f800b00e
TT
34852020-09-29 Tom Tromey <tom@tromey.com>
3486
3487 * dwarf2/read.c (partial_die_info::read) <case
3488 DW_AT_linkage_name>: Use value_as_string.
3489 (dwarf2_string_attr): Use value_as_string.
3490 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3491 method.
3492 * dwarf2/attribute.c (attribute::value_as_string): New method.
3493
de38d64a
PA
34942020-09-29 Pedro Alves <pedro@palves.net>
3495
3496 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3497 defined before using '#pragma GCC diagnostic' instead of checking
3498 __clang__.
3499
9aed480c
TT
35002020-09-28 Tom Tromey <tom@tromey.com>
3501
3502 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3503 (handle_signal_stop): Update.
3504 * procfs.c (procfs_target::insert_watchpoint): Update.
3505 * target.h (target_have_steppable_watchpoint): Now a function.
3506
8a3ecb79
TT
35072020-09-28 Tom Tromey <tom@tromey.com>
3508
3509 * infrun.c (set_schedlock_func): Update.
3510 * target.h (target_can_lock_scheduler): Now a function.
3511
55f6301a
TT
35122020-09-28 Tom Tromey <tom@tromey.com>
3513
3514 * inferior.h (class inferior) <has_execution>: Update.
3515 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3516 * valops.c (find_function_in_inferior)
3517 (value_allocate_space_in_inferior): Update.
3518 * top.c (kill_or_detach): Update.
3519 * target.c (target_preopen, set_target_permissions): Update.
3520 (target_has_execution_current): Remove.
3521 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3522 Update.
3523 * solib.c (update_solib_list, reload_shared_libraries): Update.
3524 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3525 * solib-dsbt.c (enable_break): Update.
3526 * score-tdep.c (score7_fetch_inst): Update.
3527 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3528 Update.
3529 * remote.c (remote_target::start_remote)
3530 (remote_target::remote_check_symbols, remote_target::open_1)
3531 (remote_target::remote_detach_1, remote_target::verify_memory)
3532 (remote_target::xfer_partial, remote_target::read_description)
3533 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3534 * record-full.c (record_full_open_1): Update.
3535 * record-btrace.c (record_btrace_target_open): Update.
3536 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3537 (value_nsstring): Update.
3538 * linux-thread-db.c (add_thread_db_info)
3539 (thread_db_find_new_threads_silently, check_thread_db_callback)
3540 (try_thread_db_load_1, record_thread): Update.
3541 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3542 Update.
3543 * linux-fork.c (checkpoint_command): Update.
3544 * infrun.c (set_non_stop, set_observer_mode)
3545 (check_multi_target_resumption, for_each_just_stopped_thread)
3546 (maybe_remove_breakpoints, normal_stop)
3547 (class infcall_suspend_state): Update.
3548 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3549 (info_program_command, attach_command): Update.
3550 * infcall.c (call_function_by_hand_dummy): Update.
3551 * inf-loop.c (inferior_event_handler): Update.
3552 * gcore.c (gcore_command, derive_heap_segment): Update.
3553 * exec.c (exec_file_command): Update.
3554 * eval.c (evaluate_subexp): Update.
3555 * compile/compile.c (compile_to_object): Update.
3556 * cli/cli-dump.c (restore_command): Update.
3557 * breakpoint.c (update_watchpoint)
3558 (update_inserted_breakpoint_locations)
3559 (insert_breakpoint_locations, get_bpstat_thread): Update.
3560 * target.h (target_has_execution): Remove macro.
3561 (target_has_execution_current): Don't declare.
3562 (target_has_execution): Rename from target_has_execution_1. Add
3563 argument default.
3564
05374cfd
TT
35652020-09-28 Tom Tromey <tom@tromey.com>
3566
3567 * mi/mi-main.c (exec_reverse_continue)
3568 (mi_cmd_list_target_features): Update.
3569 * infrun.c (set_exec_direction_func): Update.
3570 * target.c (default_execution_direction): Update.
3571 * reverse.c (exec_reverse_once): Update.
3572 * target.h (target_can_execute_reverse): Now a function.
3573
9dccd06e
TT
35742020-09-28 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-regs.c (tui_get_register)
3577 (tui_data_window::show_registers): Update.
3578 * thread.c (scoped_restore_current_thread::restore)
3579 (scoped_restore_current_thread::scoped_restore_current_thread):
3580 Update.
3581 * regcache-dump.c (regcache_print): Update.
3582 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3583 Update.
3584 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3585 * mep-tdep.c (current_me_module, current_options): Update.
3586 * linux-thread-db.c (thread_db_load): Update.
3587 * infcmd.c (registers_info, info_vector_command)
3588 (info_float_command): Update.
3589 * ia64-tdep.c (ia64_frame_prev_register)
3590 (ia64_sigtramp_frame_prev_register): Update.
3591 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3592 * gcore.c (derive_stack_segment): Update.
3593 * frame.c (get_current_frame, has_stack_frames): Update.
3594 * findvar.c (language_defn::read_var_value): Update.
3595 * arm-tdep.c (arm_pc_is_thumb): Update.
3596 * target.c (target_has_registers): Rename from
3597 target_has_registers_1.
3598 * target.h (target_has_registers): Remove macro.
3599 (target_has_registers): Rename from target_has_registers_1.
3600
841de120
TT
36012020-09-28 Tom Tromey <tom@tromey.com>
3602
3603 * windows-tdep.c (tlb_make_value): Update.
3604 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3605 * thread.c (scoped_restore_current_thread::restore)
3606 (scoped_restore_current_thread::scoped_restore_current_thread)
3607 (thread_command): Update.
3608 * stack.c (backtrace_command_1, frame_apply_level_command)
3609 (frame_apply_all_command, frame_apply_command): Update.
3610 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3611 Update.
3612 * gcore.c (derive_stack_segment): Update.
3613 * frame.c (get_current_frame, has_stack_frames): Update.
3614 * auxv.c (info_auxv_command): Update.
3615 * ada-tasks.c (ada_build_task_list): Update.
3616 * target.c (target_has_stack): Rename from target_has_stack_1.
3617 * target.h (target_has_stack): Remove macro.
3618 (target_has_stack): Rename from target_has_stack_1.
3619
a739972c
TT
36202020-09-28 Tom Tromey <tom@tromey.com>
3621
3622 * target.c (target_has_memory): Rename from target_has_memory_1.
3623 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3624 * thread.c (scoped_restore_current_thread::restore)
3625 (scoped_restore_current_thread::scoped_restore_current_thread):
3626 Update.
3627 * frame.c (get_current_frame, has_stack_frames): Update.
3628 * target.h (target_has_memory): Remove macro.
3629 (target_has_memory): Rename from target_has_memory_1.
3630
5b8a4776
TT
36312020-09-28 Tom Tromey <tom@tromey.com>
3632
3633 * target.c (target_has_all_memory_1): Remove.
3634 * target.h (target_has_all_memory): Remove define.
3635 (target_has_all_memory_1): Don't declare.
3636
bd356ec6
SM
36372020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * ser-base.c: Adjust comments formatting.
3640
2c72d5e5
TT
36412020-09-27 Tom Tromey <tom@tromey.com>
3642
3643 PR tui/25342:
3644 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3645
35a98237
TT
36462020-09-27 Tom Tromey <tom@tromey.com>
3647
3648 PR tui/25342:
3649 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3650
9e820dec
TT
36512020-09-27 Tom Tromey <tom@tromey.com>
3652
3653 * unittests/tui-selftests.c: Update.
3654 * tui/tui-winsource.h (struct tui_source_window_base)
3655 <extra_margin, show_line_number, refresh_pad>: New methods.
3656 <m_max_length, m_pad>: New members.
3657 (tui_copy_source_line): Update.
3658 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3659 first_col, line_width, ndigits parameters. Add length.
3660 (tui_source_window_base::show_source_line): Write to pad. Line
3661 number now 0-based.
3662 (tui_source_window_base::refresh_pad): New method.
3663 (tui_source_window_base::show_source_content): Write to pad. Call
3664 refresh_pad.
3665 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3666 not refill.
3667 (tui_source_window_base::update_exec_info): Call
3668 show_line_number.
3669 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3670 method.
3671 <m_digits>: New member.
3672 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3673 and m_max_length.
3674 (tui_source_window::show_line_number): New method.
3675 * tui/tui-io.h (tui_puts): Fix comment.
3676 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3677 m_max_length.
3678
c15c15c8
TT
36792020-09-27 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-winsource.c
3682 (tui_source_window_base::set_is_exec_point_at): Don't call
3683 show_source_line.
3684
149830c1
TT
36852020-09-27 Tom Tromey <tom@tromey.com>
3686
3687 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3688 method.
3689 <erase>: Update.
3690 <cursor_x, cursor_y>: Remove.
3691 <m_inner_window>: New member.
3692 (tui_py_window::rerender): Create inner window.
3693 (tui_py_window::output): Write to inner window.
3694
8f9929bb
GR
36952020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3696
3697 PR python/26586
3698 * cli/cli-script.c (execute_control_commands): don't set
3699 instream to nullptr here as this breaks the from_tty argument
3700 to gdb.execute in Python.
3701 (execute_user_command): set instream to nullptr here instead.
3702
956bdb59
SM
37032020-09-25 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * infrun.h (infrun_debug_printf): Fix formatting.
3706 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3707
3b93626b
SJ
37082020-09-25 Saagar Jha <saagar@saagarjha.com>
3709
3710 * compile/compile-object-load.h (struct munmap_list): Add
3711 explicitly-defined move constructor.
3712
b551a89f
TT
37132020-09-24 Tom Tromey <tromey@adacore.com>
3714
3715 PR tui/26638:
3716 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3717 method.
3718 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3719 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3720 (tui_prev_win): Rewrite.
3721
99bb393f
HD
37222020-09-23 Hannes Domani <ssbssa@yahoo.de>
3723
3724 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3725 in WOW64 processes as SIGINT.
3726 * nat/windows-nat.h: Make wow64_process a shared variable.
3727 * windows-nat.c: Remove static wow64_process variable.
3728
20a5fcbd
TT
37292020-09-23 Tom Tromey <tom@tromey.com>
3730
3731 PR symtab/25470:
3732 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3733 offset and bit size.
3734 * printcmd.c (print_scalar_formatted): Handle zero-length
3735 integer.
3736 (print_scalar_formatted): Use bit_size_differs_p.
3737 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3738 constant.
3739 (union type_specific): <int_stuff>: New member.
3740 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3741 methods.
3742 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3743 TYPE_SPECIFIC_FIELD.
3744 (recursive_dump_type, copy_type_recursive): Update.
3745 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3746 DW_AT_data_bit_offset.
3747
bac51ab7
TT
37482020-09-23 Tom Tromey <tom@tromey.com>
3749
3750 * utils.h (class gdb_argv): Add move operators.
3751 <append>: New methods.
3752 * compile/compile.c (build_argc_argv): Remove.
3753 (compile_args_argc): Remove.
3754 (compile_args_argv): Change type.
3755 (set_compile_args): Simplify.
3756 (append_args): Remove.
3757 (filter_args): Remove argcp parameter.
3758 (get_args): Return gdb_argv. Simplify.
3759 (compile_to_object): Update.
3760
92677124
TT
37612020-09-23 Tom Tromey <tom@tromey.com>
3762
3763 * compile/compile-object-run.c (do_module_cleanup)
3764 <~do_module_cleanup> :Remove.
3765 (do_module_cleanup): Update.
3766 * compile/compile-object-load.h (struct munmap_list): Add move
3767 assignment operator.
3768 <source_file>: Now a std::string.
3769 <munmap_list>: Rename. No longer a pointer.
3770 * compile/compile-object-load.c (struct setup_sections_data): Add
3771 constructor.
3772 <setup_one_section>: Declare.
3773 <munmap_list>: Move earlier.
3774 <m_bfd>: New member.
3775 <m_last_size, m_last_section_first, m_last_prot,
3776 m_last_max_alignment>: Rename, add initializers where needed.
3777 (setup_sections_data::setup_one_section): Rename from
3778 setup_sections. Update.
3779 (compile_object_load): Update. Don't use bfd_map_over_sections.
3780
e616f60a
TT
37812020-09-23 Tom Tromey <tom@tromey.com>
3782
3783 * compile/compile-object-run.c (struct do_module_cleanup): Add
3784 parameters to constructor. Update destructor.
3785 <source_file, scope, scope_data, out_value_type, out_value_addr,
3786 munmap_list_head, objfile_name_string>: Remove.
3787 <module>: New member.
3788 (do_module_cleanup): Update.
3789 (compile_object_run): Update.
3790
e947a848
TT
37912020-09-23 Tom Tromey <tom@tromey.com>
3792
3793 * compile/compile.c (eval_compile_command): Update.
3794 * compile/compile-object-run.h (compile_object_run): Take a
3795 compile_module_up.
3796 * compile/compile-object-run.c (compile_object_run): Take a
3797 compile_module_up.
3798 * compile/compile-object-load.h (struct compile_module): Add
3799 constructor, destructor.
3800 (compile_module_up): New typedef.
3801 (compile_object_load): Return compile_object_up.
3802 * compile/compile-object-load.c (compile_object_load): Return
3803 compile_module_up.
3804
0dbf6ee6
TT
38052020-09-23 Tom Tromey <tom@tromey.com>
3806
3807 * compile/compile-object-run.c (struct do_module_cleanup): Add
3808 constructor, destructor.
3809 <objfile_name_string>: Don't use struct hack.
3810 (do_module_cleanup): Use delete.
3811 (compile_object_run): Use new.
3812
ebe824f5
TT
38132020-09-23 Tom Tromey <tom@tromey.com>
3814
3815 * compile/compile-cplus-types.c
3816 (compile_cplus_convert_struct_or_union): Use std::vector.
3817 (compile_cplus_convert_func): Likewise.
3818 * compile/compile-c-types.c (convert_func): Use std::vector.
3819
5dd918d9
TT
38202020-09-21 Tom Tromey <tromey@adacore.com>
3821
3822 * sparc-tdep.c (sparc32_skip_prologue): Use
3823 skip_prologue_using_sal.
3824
5486c517
TT
38252020-09-19 Tom Tromey <tom@tromey.com>
3826
3827 * symfile.c (add_section_size_callback): Remove.
3828 (load_one_section): Rename from load_section_callback. Change
3829 parameters.
3830 (generic_load): Use foreach.
3831
8a6bb1d1
TT
38322020-09-19 Tom Tromey <tom@tromey.com>
3833
3834 * exec.c (add_to_section_table): Remove.
3835 (build_section_table): Use foreach.
3836
08f93a1a
TT
38372020-09-19 Tom Tromey <tom@tromey.com>
3838
3839 * elfread.c (elf_locate_sections): Change parameters.
3840 (elf_symfile_read): Use foreach.
3841
03cd72b8
TT
38422020-09-19 Tom Tromey <tom@tromey.com>
3843
3844 * cli/cli-dump.c (struct callback_data): Remove.
3845 (restore_one_section): Rename from restore_section_callback.
3846 Change parameters.
3847 (restore_binary_file): Change parameters.
3848 (restore_command): Use foreach.
3849
f4f2b85f
TT
38502020-09-19 Tom Tromey <tom@tromey.com>
3851
3852 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3853 (gcore_copy_callback): Likewise.
3854 (gcore_memory_sections): Use foreach.
3855
b35c1d1c
TT
38562020-09-19 Tom Tromey <tom@tromey.com>
3857
3858 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3859 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3860 parameters.
3861 (generic_elf_osabi_sniffer): Use foreach.
3862 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3863 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3864
5bb6e9dd
TT
38652020-09-19 Tom Tromey <tom@tromey.com>
3866
3867 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3868 (dwarf2_get_dwz_file): Use foreach.
3869 (dwarf2_locate_dwo_sections): Change parameters.
3870 (open_and_init_dwo_file): Use foreach.
3871 (dwarf2_locate_common_dwp_sections): Change parameters.
3872 (open_and_init_dwp_file): Use foreach.
3873
ad7277da
TT
38742020-09-19 Tom Tromey <tom@tromey.com>
3875
3876 * symfile.h: (find_lowest_section): Don't declare.
3877 * symfile.c (find_lowest_section): Now static. Change
3878 parameters.
3879 (struct place_section_arg): Remove.
3880 (place_section): Change parameters.
3881 (addr_info_make_relative): Use foreach.
3882 (symfile_dummy_outputs): Remove.
3883 (default_symfile_relocate): Use foreach.
3884
cb814f2e
TT
38852020-09-19 Tom Tromey <tom@tromey.com>
3886
3887 * objfiles.c (add_to_objfile_sections): Rename from
3888 add_to_objfile_sections_full.
3889 (add_to_objfile_sections): Remove.
3890 (build_objfile_section_table): Use foreach.
3891
3cabfd26
TT
38922020-09-19 Tom Tromey <tom@tromey.com>
3893
3894 * stap-probe.c (get_stap_base_address_1): Remove.
3895 (get_stap_base_address): Use foreach.
3896
1ce51eb5
TT
38972020-09-19 Tom Tromey <tom@tromey.com>
3898
3899 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3900 parameters.
3901 (gdb_bfd_close_or_warn): Use foreach.
3902
a190fabb
TT
39032020-09-19 Tom Tromey <tom@tromey.com>
3904
3905 * corelow.c (add_to_thread_list): Change parameters.
3906 (core_target_open): Use foreach.
3907
cafb0d81
TT
39082020-09-19 Tom Tromey <tom@tromey.com>
3909
3910 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3911 existing function.
3912
c8d5abea
AB
39132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3914
3915 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3916 for arrays.
3917
6d816919
AB
39182020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * eval.c: Remove 'f-lang.h' include.
3921 (value_f90_subarray): Moved to f-lang.c.
3922 (eval_call): Renamed to...
3923 (evaluate_subexp_do_call): ...this, is no longer static, header
3924 comment moved into header file.
3925 (evaluate_funcall): Update call to eval_call.
3926 (skip_undetermined_arglist): Moved to f-lang.c.
3927 (fortran_value_subarray): Likewise.
3928 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3929 moved to evaluate_subexp_f.
3930 (calc_f77_array_dims): Moved to f-lang.c
3931 * expprint.c (print_subexp_funcall): New function.
3932 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3933 moved to print_subexp_f, OP_FUNCALL uses new function.
3934 (dump_subexp_body_funcall): New function.
3935 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3936 moved to dump_subexp_f, OP_FUNCALL uses new function.
3937 * expression.h (evaluate_subexp_do_call): Declare.
3938 * f-lang.c (value_f90_subarray): Moved from eval.c.
3939 (skip_undetermined_arglist): Likewise.
3940 (calc_f77_array_dims): Likewise.
3941 (fortran_value_subarray): Likewise.
3942 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3943 (operator_length_f): Likewise.
3944 (print_subexp_f): Likewise.
3945 (dump_subexp_body_f): Likewise.
3946 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3947 declaration of this operation to here.
3948 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3949 support moved to operator_length_f.
3950 * parser-defs.h (dump_subexp_body_funcall): Declare.
3951 (print_subexp_funcall): Declare.
3952 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3953 fortran-operator.def.
3954
8c37706a
AB
39552020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * eval.c (fortran_value_subarray): New function, content is taken
3958 from...
3959 (evaluate_subexp_standard): ...here, in two places. Now arrays
3960 and strings both call the new function.
3961 (calc_f77_array_dims): Add header comment, handle strings.
3962
14f9473c
VC
39632020-09-18 Victor Collod <vcollod@nvidia.com>
3964
3965 PR gdb/26635
3966 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3967 (i386_analyze_prologue): Call i386_skip_endbr.
3968
b60cea74
TT
39692020-09-18 Tom Tromey <tromey@adacore.com>
3970
3971 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3972 (windows_nat_target::wait): Update.
3973 * target/wait.h (enum target_wait_flag): New. Use
3974 DEF_ENUM_FLAGS_TYPE.
3975 * target/target.h (target_wait): Change type of options.
3976 * target.h (target_options_to_string, default_target_wait):
3977 Update.
3978 (struct target_ops) <wait>: Change type of options.
3979 * target.c (target_wait, default_target_wait, do_option): Change
3980 type of "options".
3981 (target_options_to_string): Likewise.
3982 * target-delegates.c: Rebuild.
3983 * target-debug.h (target_debug_print_target_wait_flags): Rename
3984 from target_debug_print_options.
3985 * sol-thread.c (class sol_thread_target) <wait>: Update.
3986 (sol_thread_target::wait): Update.
3987 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3988 (rs6000_nat_target::wait): Update.
3989 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3990 Update.
3991 (remote_target::wait_ns, remote_target::wait_as): Change type of
3992 "options".
3993 (remote_target::wait): Update.
3994 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3995 (gdbsim_target::wait): Update.
3996 * record-full.c (class record_full_base_target) <wait>: Update.
3997 (record_full_wait_1): Change type of "options".
3998 (record_full_base_target::wait): Update.
3999 * record-btrace.c (class record_btrace_target) <wait>: Update.
4000 (record_btrace_target::wait): Update.
4001 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4002 Update.
4003 (ravenscar_thread_target::wait): Update.
4004 * procfs.c (class procfs_target) <wait>: Update.
4005 (procfs_target::wait): Update.
4006 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4007 * obsd-nat.c (obsd_nat_target::wait): Update.
4008 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4009 (nto_procfs_target::wait): Update.
4010 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4011 * nbsd-nat.c (nbsd_wait): Change type of "options".
4012 (nbsd_nat_target::wait): Update.
4013 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4014 (thread_db_target::wait): Update.
4015 * linux-nat.h (class linux_nat_target) <wait>: Update.
4016 * linux-nat.c (linux_nat_target::wait): Update.
4017 (linux_nat_wait_1): Update.
4018 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4019 "options".
4020 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4021 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4022 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4023 (go32_nat_target::wait): Update.
4024 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4025 * gnu-nat.c (gnu_nat_target::wait): Update.
4026 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4027 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4028 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4029 * darwin-nat.c (darwin_nat_target::wait): Update.
4030 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4031 (bsd_uthread_target::wait): Update.
4032 * aix-thread.c (class aix_thread_target) <wait>: Update.
4033 (aix_thread_target::wait): Update.
4034
0295dde6
AB
40352020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4036
4037 * compile/compile-object-run.c (create_copied_type_recursive): New
4038 function.
4039 (compile_object_run): Use new function.
4040
d3483b43
JT
40412020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4042
4043 * NEWS: Mention x86_64 Cygwin core file support.
4044
e7d612ad
JT
40452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4046
4047 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4048 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4049
aff9d387
JT
40502020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4051
62a5151b
JT
4052 * windows-tdep.h: Add prototypes.
4053 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4054 (i386_windows_core_pid_to_str): Move and rename ...
4055 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4056 (windows_core_pid_to_str): ... and here.
4057 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4058
40592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4060 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4061 (amd64_windows_init_abi_common): ... and register.
4062
7d155da3
JT
40632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4064
4065 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4066 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4067
e8ef12b9
PA
40682020-09-18 Pedro Alves <pedro@palves.net>
4069
4070 PR gdb/26631
4071 * thread.c (thread_find_command): Switch inferior before calling
4072 target methods.
4073
c1e1314d
TT
40742020-09-17 Tom Tromey <tromey@adacore.com>
4075
4076 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4077 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4078 (tdesc_arch_data_up): New typedef.
4079 (tdesc_use_registers, tdesc_data_alloc): Update.
4080 (tdesc_data_cleanup): Don't declare.
4081 * target-descriptions.c (tdesc_data_alloc): Return a
4082 tdesc_arch_data_up.
4083 (tdesc_arch_data_deleter::operator()): Rename from
4084 tdesc_data_cleanup. Change argument type.
4085 (tdesc_use_registers): Change early_data to an rvalue reference.
4086 (tdesc_use_registers): Don't use delete.
4087 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4088 * s390-tdep.c (s390_gdbarch_init): Update.
4089 * rx-tdep.c (rx_gdbarch_init): Update.
4090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4091 * riscv-tdep.c (riscv_gdbarch_init): Update.
4092 * or1k-tdep.c (or1k_gdbarch_init): Update.
4093 * nios2-tdep.c (nios2_gdbarch_init): Update.
4094 * nds32-tdep.c (nds32_gdbarch_init): Update.
4095 * mips-tdep.c (mips_gdbarch_init): Update.
4096 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4097 * m68k-tdep.c (m68k_gdbarch_init): Update.
4098 * i386-tdep.c (i386_gdbarch_init): Update.
4099 * arm-tdep.c (arm_gdbarch_init): Update.
4100 * arc-tdep.c (arc_tdesc_init): Update.
4101 (arc_gdbarch_init): Update.
4102 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4103
0363df3d
HD
41042020-09-17 Hannes Domani <ssbssa@yahoo.de>
4105
4106 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4107 for WOW64 processes.
4108
280a9412
TT
41092020-09-17 Tom Tromey <tom@tromey.com>
4110
4111 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4112
6108fd18
TT
41132020-09-17 Tom Tromey <tom@tromey.com>
4114
4115 * value.c (preserve_values): Update.
4116 * python/py-type.c (save_objfile_types): Update.
4117 * guile/scm-type.c (save_objfile_types): Update.
4118 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4119 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4120 * compile/compile-object-run.c (compile_object_run): Update.
4121
fa9b1164
TT
41222020-09-17 Tom Tromey <tom@tromey.com>
4123
4124 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4125 Remove.
4126 <m_table>: Now htab_up.
4127 * typeprint.c (typedef_hash_table::recursively_update)
4128 (typedef_hash_table::add_template_parameters)
4129 (typedef_hash_table::typedef_hash_table): Update.
4130 (typedef_hash_table::~typedef_hash_table): Remove.
4131 (typedef_hash_table::typedef_hash_table)
4132 (typedef_hash_table::find_global_typedef)
4133 (typedef_hash_table::find_typedef): Update.
4134
eb53f105
TT
41352020-09-17 Tom Tromey <tom@tromey.com>
4136
4137 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4138
7a8a5d47
TT
41392020-09-17 Tom Tromey <tom@tromey.com>
4140
4141 * linespec.c (class decode_compound_collector)
4142 <~decode_compound_collector>: Remove.
4143 <m_unique_syms>: Now htab_up.
4144 (decode_compound_collector::operator ()): Update.
4145 (class symtab_collector) <~symtab_collector>: Remove.
4146 <m_symtab_table>: Now htab_up.
4147 (symtab_collector::operator ()): Update.
4148
99032cfc
TT
41492020-09-17 Tom Tromey <tom@tromey.com>
4150
4151 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4152 (filename_seen_cache::clear): Update.
4153 (~filename_seen_cache): Remove.
4154 (filename_seen_cache::seen): Update.
4155 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4156 htab_up.
4157 <~filename_seen_cache>: Remove.
4158 <traverse>: Update.
4159
32580f6d
TT
41602020-09-17 Tom Tromey <tom@tromey.com>
4161
4162 * completer.c (completion_tracker::discard_completions)
4163 (completion_tracker::~completion_tracker)
4164 (completion_tracker::maybe_add_completion)
4165 (completion_tracker::remove_completion)
4166 (completion_tracker::recompute_lowest_common_denominator)
4167 (completion_tracker::build_completion_result): Update.
4168 * completer.h (class completion_tracker) <have_completions>:
4169 Update.
4170 <m_entries_hash>: Now htab_up.
4171
c1fb9836
TT
41722020-09-17 Tom Tromey <tom@tromey.com>
4173
4174 * breakpoint.c (ambiguous_names_p): Use htab_up.
4175
88f07206
TT
41762020-09-17 Tom Tromey <tom@tromey.com>
4177
4178 * auto-load.c (struct auto_load_pspace_info)
4179 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4180 <loaded_script_files, loaded_script_texts>: Change type to
4181 htab_up.
4182 (~auto_load_pspace_info) Remove.
4183 (init_loaded_scripts_info, maybe_add_script_file)
4184 (maybe_add_script_text, auto_load_info_scripts): Update.
4185
9519b2ee
TT
41862020-09-17 Tom Tromey <tromey@adacore.com>
4187
4188 * c-exp.y (name_obstack): Now static.
4189
d2cd4113
CC
41902020-09-17 Chungyi Chi <demonic@csie.io>
4191
4192 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4193
b650a282
SM
41942020-09-16 Simon Marchi <simon.marchi@efficios.com>
4195
4196 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4197 (add_solib_catchpoint): Likewise.
4198 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4199 to bool.
4200 (add_solib_catchpoint): Change int parameter/variable to bool.
4201 (catch_load_or_unload): Likewise.
4202 (init_catchpoint): Likewise.
4203 (create_fork_vfork_event_catchpoint): Likewise.
4204 (catch_fork_command_1): Likewise.
4205 (catch_exec_command_1): Likewise.
4206
4d0bcfcf
SM
42072020-09-16 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4210 Change instance_flags to m_instance_flags.
4211
fe830662
TT
42122020-09-16 Tom Tromey <tromey@adacore.com>
4213
4214 PR gdb/26598:
4215 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4216
fe5ddfc3
JB
42172020-09-16 John Baldwin <jhb@FreeBSD.org>
4218
4219 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4220 PL_FLAG_EXEC.
4221 (fbsd_nat_target::insert_exec_catchpoint)
4222 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4223 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4224 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4225
e911c666
JB
42262020-09-16 John Baldwin <jhb@FreeBSD.org>
4227
4228 * configure.ac: Remove check for kinfo_getvmmap().
4229 * configure, config.in: Regenerate.
4230 * fbsd-nat.c (fbsd_read_mapping): Remove
4231 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4232 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4233 kinfo_get_vmmap() are always present.
4234
1f17d372
JB
42352020-09-16 John Baldwin <jhb@FreeBSD.org>
4236
4237 * fbsd-nat.c: Always include support for
4238 TARGET_OBJECT_SIGNAL_INFO.
4239
bcb1da7f
JB
42402020-09-16 John Baldwin <jhb@FreeBSD.org>
4241
4242 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4243 sysctl and remove procfs fallback.
4244
5515f729
JB
42452020-09-16 John Baldwin <jhb@FreeBSD.org>
4246
4247 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4248 * fbsd-nat.h: Likewise.
4249
da1df1db
TBA
42502020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4251
4252 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4253 argument.
4254
0e25e767
AB
42552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * ada-lang.c (ada_language_data): Delete.
4258 (ada_language): Remove references to ada_language_data.
4259 * c-lang.c (c_language_data): Delete.
4260 (c_language): Remove references to c_language_data.
4261 (cplus_language_data): Delete.
4262 (cplus_language): Remove references to cplus_language_data.
4263 (asm_language_data): Delete.
4264 (asm_language): Remove references to asm_language_data.
4265 (minimal_language_data): Delete.
4266 (minimal_language): Remove references to minimal_language_data.
4267 * d-lang.c (d_language_data): Delete.
4268 (d_language): Remove references to d_language_data.
4269 * f-lang.c (f_language_data): Delete.
4270 (f_language): Remove references to f_language_data.
4271 * go-lang.c (go_language_data): Delete.
4272 (go_language): Remove references to go_language_data.
4273 * language.c (unknown_language_data): Delete.
4274 (unknown_language): Remove references to unknown_language_data.
4275 (auto_language_data): Delete.
4276 (auto_language): Remove references to auto_language_data.
4277 * language.h (language_data): Delete struct.
4278 (language_defn): No longer inherit from language_data.
4279 * m2-lang.c (m2_language_data): Delete.
4280 (m2_language): Remove references to m2_language_data.
4281 * objc-lang.c (objc_language_data): Delete.
4282 (objc_language): Remove references to objc_language_data.
4283 * opencl-lang.c (opencl_language_data): Delete.
4284 (opencl_language): Remove references to opencl_language_data.
4285 * p-lang.c (pascal_language_data): Delete.
4286 (pascal_language): Remove references to pascal_language_data.
4287 * rust-lang.c (rust_language_data): Delete.
4288 (rust_language): Remove references to rust_language_data.
4289
b7c6e27d
AB
42902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4291
4292 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4293 initializer.
4294 (ada_language::opcode_print_table): New member function.
4295 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4296 (c_language::opcode_print_table): New member function.
4297 (cplus_language_data): Remove la_op_print_tab initializer.
4298 (cplus_language::opcode_print_table): New member function.
4299 (asm_language_data): Remove la_op_print_tab initializer.
4300 (asm_language::opcode_print_table): New member function.
4301 (minimal_language_data): Remove la_op_print_tab initializer.
4302 (minimal_language::opcode_print_table): New member function.
4303 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4304 (d_language::opcode_print_table): New member function.
4305 * expprint.c (print_subexp_standard): Update call to
4306 opcode_print_table.
4307 (op_string): Likewise.
4308 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4309 (f_language::opcode_print_table): New member function.
4310 * go-lang.c (go_language_data): Remove la_op_print_tab
4311 initializer.
4312 (go_language::opcode_print_table): New member function.
4313 * language.c (unknown_language_data): Remove la_op_print_tab
4314 initializer.
4315 (unknown_language::opcode_print_table): New member function.
4316 (auto_language_data): Remove la_op_print_tab initializer.
4317 (auto_language::opcode_print_table): New member function.
4318 * language.h (language_data): Remove la_op_print_tab field.
4319 (language_defn::opcode_print_table): Declare new member function.
4320 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4321 initializer.
4322 (m2_language::opcode_print_table): New member function.
4323 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4324 initializer.
4325 (objc_language::opcode_print_table): New member function.
4326 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4327 initializer.
4328 (opencl_language::opcode_print_table): New member function.
4329 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4330 initializer.
4331 (pascal_language::opcode_print_table): New member function.
4332 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4333 initializer.
4334 (rust_language::opcode_print_table): New member function.
4335
5aba6ebe
AB
43362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4337
4338 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4339 (ada_language::expression_ops): New member function.
4340 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4341 (c_language::expression_ops): New member function.
4342 (cplus_language_data): Remove la_exp_desc initializer.
4343 (cplus_language::expression_ops): New member function.
4344 (asm_language_data): Remove la_exp_desc initializer.
4345 (asm_language::expression_ops): New member function.
4346 (minimal_language_data): Remove la_exp_desc initializer.
4347 (minimal_language::expression_ops): New member function.
4348 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4349 (d_language::expression_ops): New member function.
4350 * eval.c (evaluate_subexp): Update call to expression_ops.
4351 * expprint.c (print_subexp): Likewise.
4352 (op_name): Likewise.
4353 (dump_subexp_body): Likewise.
4354 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4355 (f_language::expression_ops): New member function.
4356 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4357 (go_language::expression_ops): New member function.
4358 * language.c (language_defn::expression_ops): New function.
4359 (unknown_language_data): Remove la_exp_desc initializer.
4360 (auto_language_data): Likewise.
4361 * language.h (language_data): Remove la_exp_desc field.
4362 (language_defn::expression_ops): Declare new member function.
4363 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4364 (m2_language::expression_ops): New member function.
4365 * objc-lang.c (objc_language_data): Remove la_exp_desc
4366 initializer.
4367 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4368 initializer.
4369 (opencl_language::expression_ops): New member function.
4370 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4371 * parse.c (operator_length): Update call to expression_ops.
4372 (exp_iterate): Likewise.
4373 * rust-lang.c (rust_language_data): Remove la_exp_desc
4374 initializer.
4375 (ruse_language::expression_ops): New member function.
4376
b63a3f3f
AB
43772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4378
4379 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4380 initializer.
4381 (ada_language::varobj_ops): New member function.
4382 * c-lang.c (c_language_data): Remove la_varobj_ops
4383 initializer.
4384 (cplus_language_data): Likewise.
4385 (cplus_language::varobj_ops): New member function.
4386 (asm_language_data): Remove la_varobj_ops initializer.
4387 (minimal_language_data): Likewise.
4388 * d-lang.c (d_language_data): Likewise.
4389 * f-lang.c (f_language_data): Likewise.
4390 * go-lang.c (go_language_data): Likewise.
4391 * language.c (language_defn::varobj_ops): New function.
4392 (unknown_language_data): Remove la_varobj_ops
4393 initializer.
4394 (auto_language_data): Likewise.
4395 * language.h (language_data): Remove la_varobj_ops field.
4396 (language_defn::varobj_ops): Declare new member function.
4397 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4398 * objc-lang.c (objc_language_data): Likewise.
4399 * opencl-lang.c (opencl_language_data): Likewise.
4400 * p-lang.c (pascal_language_data): Likewise.
4401 * rust-lang.c (rust_language_data): Likewise.
4402 * varobj.c (varobj_create): Update call to varobj_ops.
4403 * varobj.h (default_varobj_ops): Delete define.
4404
1ac14a04
AB
44052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4408 initializer.
4409 * c-lang.c (c_language_data): Likewise.
4410 (c_language::macro_expansion): New member function.
4411 (cplus_language_data): Likewise.
4412 (cplus_language::macro_expansion): New member function.
4413 (asm_language_data): Likewise.
4414 (asm_language::macro_expansion): New member function.
4415 (minimal_language_data): Likewise.
4416 (minimal_language::macro_expansion): New member function.
4417 * d-lang.c (d_language_data): Remove la_macro_expansion
4418 initializer.
4419 * f-lang.c (f_language_data): Likewise.
4420 * go-lang.c (go_language_data): Likewise.
4421 * language.c (unknown_language_data): Likewise.
4422 (auto_language_data): Likewise.
4423 * language.h (language_data): Remove la_macro_expansion field.
4424 (language_defn::macro_expansion): New member function.
4425 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4426 initializer.
4427 * objc-lang.c (objc_language_data): Likewise.
4428 (objc_language::macro_expansion): New member function.
4429 * opencl-lang.c (opencl_language_data): Likewise.
4430 (opencl_language::macro_expansion): New member function.
4431 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4432 initializer.
4433 * rust-lang.c (rust_language_data): Likewise.
4434 * symtab.c (default_collect_symbol_completion_matches_break_on):
4435 Update call to macro_expansion.
4436
3a3440fb
AB
44372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4438
4439 * ada-lang.c (ada_language_data): Remove la_array_ordering
4440 initializer.
4441 * c-lang.c (c_language_data): Likewise.
4442 (cplus_language_data): Likewise.
4443 (asm_language_data): Likewise.
4444 (minimal_language_data): Likewise.
4445 * d-lang.c (d_language_data): Likewise.
4446 * dwarf2/read.c (read_array_order): Update for call to
4447 array_ordering.
4448 * f-lang.c (f_language_data): Remove la_array_ordering
4449 initializer.
4450 (f_language::array_ordering): New member function.
4451 * go-lang.c (go_language_data): Remove la_array_ordering
4452 initializer.
4453 * language.c (unknown_language_data): Likewise.
4454 (auto_language_data): Likewise.
4455 * language.h (language_data): Delete la_array_ordering field.
4456 (language_defn::array_ordering): New member function.
4457 * m2-lang.c (m2_language_data): Remove la_array_ordering
4458 initializer.
4459 * objc-lang.c (objc_language_data): Likewise.
4460 * opencl-lang.c (opencl_language_data): Likewise.
4461 * p-lang.c (pascal_language_data): Likewise.
4462 * rust-lang.c (rust_language_data): Likewise.
4463
0d201fa4
AB
44642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4465
4466 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
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 * f-lang.c (f_language_data): Likewise.
4474 (f_language::case_sensitivity): New member function.
4475 * go-lang.c (go_language_data): Remove la_case_sensitivity
4476 initializer.
4477 * language.c (enum case_mode): Moved here from language.h.
4478 (case_mode): Make static.
4479 (show_case_command): Update for case_sensitivity being a method.
4480 (set_case_command): Likewise.
4481 (set_range_case): Likewise.
4482 (unknown_language_data): Remove la_case_sensitivity initializer.
4483 (auto_language_data): Likewise.
4484 * language.h (case_mode): Delete, move enum declaration to
4485 language.c.
4486 (language_data): Delete la_case_sensitivity field.
4487 (language_defn::case_sensitivity): New member function.
4488 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4489 initializer.
4490 * objc-lang.c (objc_language_data): Likewise.
4491 * opencl-lang.c (opencl_language_data): Likewise.
4492 * p-lang.c (pascal_language_data): Likewise.
4493 * rust-lang.c (rust_language_data): Likewise.
4494
efdf6a73
AB
44952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4496
4497 * ada-lang.c (ada_language_data): Remove la_range_check
4498 initializer.
4499 * c-lang.c (c_language_data): Likewise.
4500 (cplus_language_data): Likewise.
4501 (asm_language_data): Likewise.
4502 (minimal_language_data): Likewise.
4503 * d-lang.c (d_language_data): Likewise.
4504 * f-lang.c (f_language_data): Likewise.
4505 (f_language::range_checking_on_by_default): New member function.
4506 * go-lang.c (go_language_data): Remove la_range_check initializer.
4507 * language.c (enum range_mode): Moved here from language.h.
4508 (range_mode): Made static.
4509 (show_range_command): Update to use
4510 range_checking_on_by_default.
4511 (set_range_command): Likewise.
4512 (set_range_case): Likewise.
4513 (unknown_language_data): Remove la_range_check initializer.
4514 (auto_language_data): Likewise.
4515 * language.h (range_mode): Delete. Enum definition moved to
4516 language.c.
4517 (language_data): Remove la_range_check field.
4518 (language_defn::range_checking_on_by_default): New member
4519 function.
4520 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4521 (m2_language::range_checking_on_by_default): New member function.
4522 * objc-lang.c (objc_language_data): Remove la_range_check
4523 initializer.
4524 * opencl-lang.c (opencl_language_data): Likewise.
4525 * p-lang.c (pascal_language_data): Likewise.
4526 (pascal_language::range_checking_on_by_default): New member
4527 function.
4528 * rust-lang.c (rust_language_data): Remove la_range_check
4529 initializer.
4530 (rust_language::range_checking_on_by_default): New member
4531 function.
4532
bf92aec5
AB
45332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * dwarf2/read.c (dwarf2_physname): Remove special case for
4536 language_go.
4537 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4538 member function.
4539
d3355e4d
AB
45402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4541
4542 * ada-lang.c (ada_language_data): Remove
4543 la_store_sym_names_in_linkage_form_p initializer.
4544 (ada_language::store_sym_names_in_linkage_form_p): New member
4545 function.
4546 * c-lang.c (c_language_data): Remove
4547 la_store_sym_names_in_linkage_form_p initializer.
4548 (c_language::store_sym_names_in_linkage_form_p): New member
4549 function.
4550 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4551 initializer.
4552 (asm_language_data): Likewise.
4553 (asm_language::store_sym_names_in_linkage_form_p): New member
4554 function.
4555 (minimal_language_data): Remove
4556 la_store_sym_names_in_linkage_form_p initializer.
4557 (minimal_language::store_sym_names_in_linkage_form_p): New member
4558 function.
4559 * d-lang.c (d_language_data): Remove
4560 la_store_sym_names_in_linkage_form_p initializer.
4561 * dwarf2/read.c (dwarf2_physname): Update call to
4562 store_sym_names_in_linkage_form_p.
4563 * f-lang.c (f_language_data): Remove
4564 la_store_sym_names_in_linkage_form_p initializer.
4565 * go-lang.c (go_language_data): Remove
4566 la_store_sym_names_in_linkage_form_p initializer.
4567 * language.c (unknown_language_data): Remove
4568 la_store_sym_names_in_linkage_form_p initializer.
4569 (unknown_language::store_sym_names_in_linkage_form_p): New member
4570 function.
4571 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4572 initializer.
4573 (auto_language::store_sym_names_in_linkage_form_p): New member
4574 function.
4575 * language.h (language_data): Remove
4576 la_store_sym_names_in_linkage_form_p member variable.
4577 (language_defn::store_sym_names_in_linkage_form_p): New member
4578 function.
4579 * m2-lang.c (m2_language_data): Remove
4580 la_store_sym_names_in_linkage_form_p initializer.
4581 * objc-lang.c (objc_language_data): Likewise.
4582 * opencl-lang.c (opencl_language_data): Likewise.
4583 * p-lang.c (pascal_language_data): Likewise.
4584 * rust-lang.c (rust_language_data): Likewise.
4585
22c12a6c
AB
45862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * ada-lang.c (ada_language_data): Remove string_lower_bound
4589 initializer.
4590 * c-lang.c (c_language_data): Likewise.
4591 (cplus_language_data): Likewise.
4592 (asm_language_data): Likewise.
4593 (minimal_language_data): Likewise.
4594 * d-lang.c (d_language_data): Likewise.
4595 * f-lang.c (f_language_data): Likewise.
4596 * go-lang.c (go_language_data): Likewise.
4597 * language.c (unknown_language_data): Likewise.
4598 (auto_language_data): Likewise.
4599 * language.h (language_data): Remove string_lower_bound field.
4600 (language_defn::string_lower_bound): New member function.
4601 * m2-lang.c (m2_language_data): Remove string_lower_bound
4602 initializer.
4603 (m2_language::string_lower_bound): New member function.
4604 * objc-lang.c (objc_language_data): Remove string_lower_bound
4605 initializer.
4606 * opencl-lang.c (opencl_language_data): Likewise.
4607 * p-lang.c (pascal_language_data): Likewise.
4608 * rust-lang.c (rust_language_data): Likewise.
4609 * valops.c (value_cstring): Update call to string_lower_bound.
4610 (value_string): Likewise.
4611 * value.c (allocate_repeated_value): Likewise.
4612
1c236ddd
AB
46132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * valops.c (value_repeat): Fix incorrect argument name in comment.
4616
67bd3fd5
AB
46172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * ada-lang.c (ada_language_data): Remove c_style_arrays
4620 initializer.
4621 (ada_language::c_style_arrays_p): New member fuction.
4622 * c-lang.c (c_language_data): Remove c_style_arrays
4623 initializer.
4624 (cplus_language_data): Likewise.
4625 (asm_language_data): Likewise.
4626 (minimal_language_data): Likewise.
4627 * d-lang.c (d_language_data): Likewise.
4628 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4629 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4630 (f_language::c_style_arrays_p): New member function.
4631 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4632 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4633 * language.c (unknown_language_data): Remove c_style_arrays
4634 initializer.
4635 (auto_language_data): Likewise.
4636 * language.h (language_data): Remove c_style_arrays field.
4637 (language_defn::c_style_arrays_p): New member function.
4638 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4639 (m2_language::c_style_arrays_p): New member function.
4640 * objc-lang.c (objc_language_data): Remove c_style_arrays
4641 initializer.
4642 * opencl-lang.c (opencl_language_data): Likewise.
4643 * p-lang.c (pascal_language_data): Likewise.
4644 * rust-lang.c (rust_language_data): Likewise.
4645 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4646 and update local variable to a bool.
4647 * valops.c (value_cast): Update call to c_style_arrays_p.
4648 (value_array): Likewise.
4649 * value.c (coerce_array): Likewise.
4650
85967615
AB
46512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4652
4653 * ada-lang.c (ada_language_data): Remove la_language initializer.
4654 * c-lang.c (c_language_data): Likewise.
4655 (cplus_language_data): Likewise.
4656 (asm_language_data): Likewise.
4657 (minimal_language_data): Likewise.
4658 * d-lang.c (d_language_data): Likewise.
4659 * f-lang.c (f_language_data): Likewise.
4660 * go-lang.c (go_language_data): Likewise.
4661 * language.c (unknown_language_data): Likewise.
4662 (auto_language_data): Likewise.
4663 * language.h (language_data): Remove la_language field.
4664 (language_defn::language_defn): Initialise la_language field.
4665 (language_defn::la_language): New member variable.
4666 * m2-lang.c (m2_language_data): Remove la_language field.
4667 * objc-lang.c (objc_language_data): Likewise.
4668 * opencl-lang.c (opencl_language_data): Likewise.
4669 * p-lang.c (pascal_language_data): Likewise.
4670 * rust-lang.c (rust_language_data): Likewise.
4671
e171d6f1
AB
46722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * ada-lang.c (ada_extensions): Delete, moved into
4675 ada_language::filename_extensions.
4676 (ada_language_data): Remove la_filename_extensions initializer.
4677 (ada_language::filename_extensions): New member function.
4678 * c-lang.c (c_extensions): Delete, moved into
4679 c_language::filename_extensions.
4680 (c_language_data): Remove la_filename_extensions initializer.
4681 (c_language::filename_extensions): New member function.
4682 (cplus_extensions): Delete, moved into
4683 cplus_language::filename_extensions.
4684 (cplus_language_data): Remove la_filename_extensions initializer.
4685 (cplus_language::filename_extensions): New member function.
4686 (asm_extensions): Delete, moved into
4687 asm_language::filename_extensions.
4688 (asm_language_data): Remove la_filename_extensions initializer.
4689 (asm_language::filename_extensions): New member function.
4690 (minimal_language_data): Remove la_filename_extensions
4691 initializer.
4692 * d-lang.c (d_extensions): Delete, moved into
4693 d_language::filename_extensions.
4694 (d_language_data): Remove la_filename_extensions initializer.
4695 (d_language::filename_extensions): New member function.
4696 * f-lang.c (f_extensions): Delete, moved into
4697 f_language::filename_extensions.
4698 (f_language_data): Remove la_filename_extensions initializer.
4699 (f_language::filename_extensions): New member function.
4700 * go-lang.c (go_language_data): Remove la_filename_extensions
4701 initializer.
4702 * language.c (add_set_language_command): Update now that
4703 filename_extensions returns a vector.
4704 (unknown_language_data): Remove la_filename_extensions
4705 initializer.
4706 (auto_language_data): Likewise.
4707 * language.h (language_data): Remove la_filename_extensions field.
4708 (language_defn::filename_extensions): New member function.
4709 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4710 initializer.
4711 * objc-lang.c (objc_extensions): Delete, moved into
4712 objc_language::filename_extensions.
4713 (objc_language_data): Remove la_filename_extensions initializer.
4714 (objc_language::filename_extensions): New member function.
4715 * opencl-lang.c (opencl_language_data): Remove
4716 la_filename_extensions initializer.
4717 * p-lang.c (pascal_extensions): Delete, moved into
4718 pascal_language::filename_extensions.
4719 (pascal_language_data): Remove la_filename_extensions initializer.
4720 (pascal_language::filename_extensions): New member function.
4721 * rust-lang.c (rust_extensions): Delete, moved into
4722 rust_language::filename_extensions.
4723 (rust_language_data): Remove la_filename_extensions initializer.
4724 (rust_language::filename_extensions): New member function.
4725 * symfile.c (add_filename_language): Add new assert.
4726
6f7664a9
AB
47272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4728
4729 * ada-lang.c (ada_language_data): Remove la_name and
4730 la_natural_name initializers.
4731 (ada_language::name): New member function.
4732 (ada_language::natural_name): New member function.
4733 * c-lang.c (c_language_data): Remove la_name and
4734 la_natural_name initializers.
4735 (c_language::name): New member function.
4736 (c_language::natural_name): New member function.
4737 (cplus_language_data): Remove la_name and
4738 la_natural_name initializers.
4739 (cplus_language::name): New member function.
4740 (cplus_language::natural_name): New member function.
4741 (asm_language_data): Remove la_name and
4742 la_natural_name initializers.
4743 (asm_language::name): New member function.
4744 (asm_language::natural_name): New member function.
4745 (minimal_language_data): Remove la_name and
4746 la_natural_name initializers.
4747 (minimal_language::name): New member function.
4748 (minimal_language::natural_name): New member function.
4749 * compile/compile.c (compile_to_object): Update call to
4750 lanugage_defn::name.
4751 * d-lang.c (d_language_data): Remove la_name and
4752 la_natural_name initializers.
4753 (d_language::name): New member function.
4754 (d_language::natural_name): New member function.
4755 * expprint.c (print_subexp_standard): Update call to
4756 language_defn::name.
4757 (dump_raw_expression): Likewise
4758 (dump_prefix_expression): Likewise.
4759 * f-lang.c (f_language_data): Remove la_name and
4760 la_natural_name initializers.
4761 (f_language::name): New member function.
4762 (f_language::natural_name): New member function.
4763 * go-lang.c (go_language_data): Remove la_name and
4764 la_natural_name initializers.
4765 (go_language::name): New member function.
4766 (go_language::natural_name): New member function.
4767 * language.c (show_language_command): Update call to
4768 language_defn::name.
4769 (set_language_command): Likewise.
4770 (language_enum): Likewise.
4771 (language_str): Likewise.
4772 (add_set_language_command): Likewise, use
4773 language_defn::natural_name in the doc string.
4774 (unknown_language_data): Remove la_name and
4775 la_natural_name initializers.
4776 (unknown_language::name): New member function.
4777 (unknown_language::natural_name): New member function.
4778 (auto_language_data): Remove la_name and
4779 la_natural_name initializers.
4780 (auto_language::name): New member function.
4781 (auto_language::natural_name): New member function.
4782 (language_lookup_primitive_type_as_symbol): Update call to
4783 language_defn::name.
4784 * language.h (language_data): Remove la_name and la_natural_name
4785 member variables.
4786 (language_defn::name): New member function.
4787 (language_defn::natural_name): New member function.
4788 * m2-lang.c (m2_language_data): Remove la_name and
4789 la_natural_name initializers.
4790 (m2_language::name): New member function.
4791 (m2_language::natural_name): New member function.
4792 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4793 language_defn::natural_name.
4794 * objc-lang.c (objc_language_data): Remove la_name and
4795 la_natural_name initializers.
4796 (objc_language::name): New member function.
4797 (objc_language::natural_name): New member function.
4798 * opencl-lang.c (opencl_language_data): Remove la_name and
4799 la_natural_name initializers.
4800 (opencl_language::name): New member function.
4801 (opencl_language::natural_name): New member function.
4802 * p-lang.c (pascal_language_data): Remove la_name and
4803 la_natural_name initializers.
4804 (pascal_language::name): New member function.
4805 (pascal_language::natural_name): New member function.
4806 * rust-lang.c (rust_language_data): Remove la_name and
4807 la_natural_name initializers.
4808 (rust_language::name): New member function.
4809 (rust_language::natural_name): New member function.
4810 * symtab.c (lookup_language_this): Update call to
4811 language_defn::name.
4812
5bae7c4e
AB
48132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4814
4815 * ada-lang.c (ada_language_data): Remove la_name_of_this
4816 initializer.
4817 * ax-gdb.c (gen_expr): Update call to name_of_this.
4818 * c-exp.y (classify_name): Likewise.
4819 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4820 (cplus_language_data): Likewise.
4821 (cplus_language::name_of_this): New member function.
4822 (asm_language_data): Remove la_name_of_this initializer.
4823 (minimal_language_data): Likewise.
4824 * d-lang.c (d_language_data): Likewise.
4825 (d_language::name_of_this): New member function.
4826 * expprint.c (print_subexp_standard): Update call to name_of_this.
4827 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4828 * go-lang.c (go_language_data): Likewise.
4829 * language.c (unknown_language_data): Likewise.
4830 (unknown_language::name_of_this): New member function.
4831 (auto_language_data): Remove la_name_of_this initializer.
4832 (auto_language::name_of_this): New member function.
4833 * language.h (language_data): Delete la_name_of_this member
4834 variable.
4835 (language_defn::name_of_this): New member function.
4836 * m2-lang.c (m2_language_data): Remove la_name_of_this
4837 initializer.
4838 * objc-lang.c (objc_language_data): Likewise.
4839 (objc_language::name_of_this): New member function.
4840 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4841 initializer.
4842 * p-lang.c (pascal_language_data): Likewise.
4843 (pascal_language::name_of_this): New member function.
4844 * rust-lang.c (rust_language_data): Remove la_name_of_this
4845 initializer.
4846 * symtab.c (lookup_language_this): Update call to name_of_this.
4847 (lookup_symbol_aux): Likewise.
4848 * valops.c (value_of_this): Likewise.
4849
22e3f3ed
AB
48502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4851
4852 * ada-lang.c (ada_language_data): Remove
4853 la_struct_too_deep_ellipsis initializer.
4854 (ada_language::struct_too_deep_ellipsis): New member function.
4855 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4856 initializer.
4857 (cplus_language_data): Likewise.
4858 (asm_language_data): Likewise.
4859 (minimal_language_data): Likewise.
4860 * cp-valprint.c (cp_print_value): Update call to
4861 struct_too_deep_ellipsis.
4862 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4863 initializer.
4864 * f-lang.c (f_language_data): Likewise.
4865 (f_language::struct_too_deep_ellipsis): New member function.
4866 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4867 initializer.
4868 * language.c (unknown_language_data): Likewise.
4869 (auto_language_data): Likewise.
4870 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4871 member variable.
4872 (language_defn::struct_too_deep_ellipsis): New member function.
4873 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4874 initializer.Q
4875 * objc-lang.c (objc_language_data): Likewise.
4876 * opencl-lang.c (opencl_language_data): Likewise.
4877 * p-lang.c (pascal_language_data): Likewise.
4878 * rust-lang.c (rust_language_data): Likewise.
4879 * valprint.c (val_print_check_max_depth): Update call to
4880 struct_too_deep_ellipsis.
4881
ed29e1c7
FW
48822020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4883
4884 * MAINTAINERS (Write After Approval): Add myself.
4885
12d8f940
TT
48862020-09-15 Tom Tromey <tom@tromey.com>
4887
4888 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4889 Remove.
4890
6b5a7bc7
TT
48912020-09-15 Tom Tromey <tom@tromey.com>
4892
4893 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4894 and TYPE_CODE_METHODPTR cases.
4895 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4896 (c_value_print_inner): Update.
4897 * valprint.c (generic_value_print_memberptr): New function, from
4898 c_value_print_memberptr.
4899 (generic_value_print): Use it. Call cplus_print_method_ptr.
4900
47f0e2ff
TT
49012020-09-15 Tom Tromey <tromey@adacore.com>
4902
4903 * python/python-internal.h (PyInt_FromLong): Remove define.
4904 * python/py-value.c (convert_value_from_python): Use
4905 gdb_py_object_from_longest.
4906 * python/py-type.c (typy_get_code): Use
4907 gdb_py_object_from_longest.
4908 * python/py-symtab.c (salpy_get_line): Use
4909 gdb_py_object_from_longest.
4910 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4911 gdb_py_object_from_longest.
4912 * python/py-record.c (recpy_gap_reason_code): Use
4913 gdb_py_object_from_longest.
4914 * python/py-record-btrace.c (recpy_bt_insn_size)
4915 (recpy_bt_func_level, btpy_list_count): Use
4916 gdb_py_object_from_longest.
4917 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4918 gdb_py_object_from_longest. Fix error handling.
4919 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4920 gdb_py_object_from_longest.
4921 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4922 gdb_py_object_from_longest.
4923 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4924 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4925 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4926
512116ce
TT
49272020-09-15 Tom Tromey <tromey@adacore.com>
4928
4929 * python/python.c (gdbpy_parameter_value): Use
4930 gdb_py_object_from_ulongest.
4931
4ab1029c
TT
49322020-09-15 Tom Tromey <tromey@adacore.com>
4933
4934 * python/py-infevents.c (create_register_changed_event_object):
4935 Use gdb_py_object_from_longest.
4936 * python/py-exitedevent.c (create_exited_event_object): Use
4937 gdb_py_object_from_longest.
4938
062534d4
TT
49392020-09-15 Tom Tromey <tromey@adacore.com>
4940
4941 * python/python.c (gdbpy_parameter_value): Use
4942 gdb_py_object_from_longest.
4943 * python/py-type.c (convert_field, typy_range): Use
4944 gdb_py_object_from_longest.
4945 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4946 gdb_py_object_from_longest.
4947 * python/py-lazy-string.c (stpy_get_length): Use
4948 gdb_py_object_from_longest.
4949 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4950 gdb_py_object_from_longest.
4951 * python/py-infevents.c (create_memory_changed_event_object): Use
4952 gdb_py_object_from_longest.
4953 * python/py-inferior.c (infpy_get_num): Use
4954 gdb_py_object_from_longest.
4955 (infpy_get_pid): Likewise.
4956
d1cab987
TT
49572020-09-15 Tom Tromey <tromey@adacore.com>
4958
4959 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4960 defines.
4961 * python/py-value.c (valpy_long): Use
4962 gdb_py_object_from_ulongest.
4963 * python/py-symtab.c (salpy_get_pc): Use
4964 gdb_py_object_from_ulongest.
4965 (salpy_get_last): Likewise.
4966 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4967 gdb_py_object_from_ulongest.
4968 * python/py-lazy-string.c (stpy_get_address): Use
4969 gdb_py_object_from_ulongest.
4970 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4971 * python/py-arch.c (archpy_disassemble): Use
4972 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4973 error handling.
4974
4bde49dc
TT
49752020-09-15 Tom Tromey <tromey@adacore.com>
4976
4977 * python/python-internal.h (gdb_py_long_from_longest): Remove
4978 defines.
4979 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4980 * python/py-type.c (convert_field, typy_get_sizeof): Use
4981 gdb_py_object_from_longest.
4982 * python/py-record-btrace.c (btpy_list_index): Use
4983 gdb_py_object_from_longest.
4984
37431074
TT
49852020-09-15 Tom Tromey <tromey@adacore.com>
4986
4987 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4988 * python/py-record.c (recpy_element_number): Use
4989 gdb_py_object_from_longest.
4990 (recpy_gap_number): Likewise.
4991
cbe25684
TT
49922020-09-15 Tom Tromey <tromey@adacore.com>
4993
4994 * top.c (ui::ui): Update.
4995 (highest_ui_num): Remove.
4996 * top.h (struct ui) <num>: Remove.
4997
db92ac45
TT
49982020-09-15 Tom Tromey <tromey@adacore.com>
4999
5000 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5001 * ui-style.c (ansi_regex_text): Now array.
5002 * rust-exp.y (number_regex_text): Now array.
5003 * linespec.c (linespec_quote_characters): Now array.
5004 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5005 Now arrays.
5006
d2b31b67
SM
50072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5008
5009 * debuginfod-support.c (debuginfod_client_deleter): New.
5010 (debuginfod_client_up): New.
5011 (debuginfod_init): Return debuginfod_client_up.
5012 (debuginfod_source_query): Adjust.
5013 (debuginfod_debuginfo_query): Adjust.
5014
3246bd8e
SM
50152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * debuginfod-support.c (debuginfod_source_query): Use
5018 make_unique_xstrdup.
5019
10242f36
SM
50202020-09-14 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5023 with `type::instance_flags`.
5024
e1044e6a
MM
50252020-09-14 Michael Mullin <masmullin@gmail.com>
5026
5027 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5028 Remove baton parameter.
5029
04902b09
PA
50302020-09-14 Pedro Alves <pedro@palves.net>
5031
5032 * Makefile.in (SELFTESTS_SRCS): Add
5033 unittests/enum-flags-selftests.c.
5034 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5035 btrace_function_flags instead of enum btrace_function_flag.
5036 * compile/compile-c-types.c (convert_qualified): Use
5037 enum_flags::raw.
5038 * compile/compile-cplus-symbols.c (convert_one_symbol)
5039 (convert_symbol_bmsym):
5040 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5041 (compile_cplus_convert_struct_or_union_methods)
5042 (compile_cplus_instance::convert_qualified_base):
5043 * go-exp.y (parse_string_or_char): Add cast to int.
5044 * unittests/enum-flags-selftests.c: New file.
5045 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5046 type to btrace_thread_flags from btrace_thread_flag.
5047 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5048 local's type to btrace_thread_flags from btrace_thread_flag. Add
5049 cast in DEBUG call.
5050
69896a2c
PA
50512020-09-14 Pedro Alves <pedro@palves.net>
5052
5053 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5054 * gdbtypes.c (address_space_name_to_int): Rename to ...
5055 (address_space_name_to_type_instance_flags): ... this.
5056 (address_space_int_to_name): Rename to ...
5057 (address_space_type_instance_flags_to_name): ... this.
5058 * gdbtypes.h (address_space_name_to_int): Rename to ...
5059 (address_space_name_to_type_instance_flags): ... this.
5060 (address_space_int_to_name): Rename to ...
5061 (address_space_type_instance_flags_to_name): ... this.
5062 * type-stack.c (type_stack::insert): Adjust to rename.
5063 * type-stack.h (type_stack::insert): Likewise.
5064
314ad88d
PA
50652020-09-14 Pedro Alves <pedro@palves.net>
5066 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * avr-tdep.c (avr_address_class_type_flags): Return
5069 type_instance_flags.
5070 (avr_address_class_type_flags_to_name): Take a
5071 type_instance_flags.
5072 (avr_address_class_name_to_type_flags): Return bool and take a
5073 type_instance_flags.
5074 * d-lang.c (build_d_types): Use type::set_instance_flags.
5075 * ft32-tdep.c (ft32_address_class_type_flags): Return
5076 type_instance_flags.
5077 (ft32_address_class_type_flags_to_name): Take a
5078 type_instance_flags.
5079 (ft32_address_class_name_to_type_flags): Return bool and take a
5080 type_instance_flags.
5081 (ft32_gdbarch_init): Use type::set_instance_flags.
5082 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5083 * gdbarch.h, gdbarch.c: Regenerate.
5084 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5085 (address_class_name_to_type_flags): Use type_instance_flags and
5086 bool.
5087 * gdbtypes.c (address_space_name_to_int)
5088 (address_space_int_to_name, make_qualified_type): Use
5089 type_instance_flags.
5090 (make_qualified_type): Use type_instance_flags and
5091 type::set_instance_flags.
5092 (make_type_with_address_space, make_cv_type, make_vector_type)
5093 (check_typedef): Use type_instance_flags.
5094 (recursive_dump_type): Cast type_instance_flags to unsigned for
5095 printing.
5096 (copy_type_recursive): Use type::set_instance_flags.
5097 (gdbtypes_post_init): Use type::set_instance_flags.
5098 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5099 <m_instance_flags>: ... this.
5100 <instance_flags, set_instance_flags>: New methods.
5101 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5102 (SET_TYPE_INSTANCE_FLAGS): New.
5103 (address_space_name_to_int, address_space_int_to_name)
5104 (make_type_with_address_space): Pass flags using
5105 type_instance_flags instead of int.
5106 * stabsread.c (cleanup_undefined_types_noname): Use
5107 type::set_instance_flags.
5108 * s390-tdep.c (s390_address_class_type_flags): Return
5109 type_instance_flags.
5110 (s390_address_class_type_flags_to_name): Take a
5111 type_instance_flags.
5112 (s390_address_class_name_to_type_flags): Return bool and take a
5113 type_instance_flags.
5114 * type-stack.c (type_stack::follow_types): Use
5115 type_instance_flags.
5116 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5117
27087b7f
TT
51182020-09-14 Tom Tromey <tromey@adacore.com>
5119
5120 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5121 * x86-tdep.c (x86_is_thunk_register_name)
5122 (x86_in_indirect_branch_thunk): Update.
5123 * sparc64-tdep.c (sparc64_fpu_register_names)
5124 (sparc64_cp0_register_names, sparc64_register_names)
5125 (sparc64_pseudo_register_names): Now const.
5126 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5127 cp0_registers_num>: Now const.
5128 * sparc-tdep.c (sparc_core_register_names)
5129 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5130 (sparc32_pseudo_register_names): Now const.
5131 (validate_tdesc_registers): Update.
5132 * rust-lang.c (rust_extensions): Now const.
5133 * p-lang.c (p_extensions): Now const.
5134 * objc-lang.c (objc_extensions): Now const.
5135 * nto-tdep.c (nto_thread_state_str): Now const.
5136 * moxie-tdep.c (moxie_register_names): Now const.
5137 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5138 Now const.
5139 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5140 (mips_linux_reg_names): Now const.
5141 (mips_gdbarch_init): Update.
5142 * microblaze-tdep.c (microblaze_register_names): Now const.
5143 * m68k-tdep.c (m68k_register_names): Now const.
5144 * m32r-tdep.c (m32r_register_names): Now const.
5145 * ia64-tdep.c (ia64_register_names): Now const.
5146 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5147 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5148 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5149 ymm_avx512_register_names, pkeys_register_names>: Now const.
5150 * i386-tdep.c (i386_register_names, i386_zmm_names)
5151 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5152 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5153 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5154 * f-lang.c (f_extensions): Now const.
5155 * d-lang.c (d_extensions): Now const.
5156 * csky-tdep.c (csky_register_names): Now const.
5157 * charset.c (default_charset_names, charset_enum): Now const.
5158 (_initialize_charset): Update.
5159 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5160 const.
5161 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5162 (bsd_uthread_solib_loaded): Update.
5163 (bsd_uthread_state): Now const.
5164 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5165 (amd64_ymm_avx512_names, amd64_ymmh_names)
5166 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5167 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5168 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5169 (amd64_dword_names): Now const.
5170 * agent.c (can_use_agent_enum): Now const.
5171 * ada-tasks.c (task_states, long_task_states): Now const.
5172 * ada-lang.c (known_runtime_file_name_patterns)
5173 (known_auxiliary_function_name_patterns, attribute_names)
5174 (standard_exc, ada_extensions): Now const.
5175
89806626
SM
51762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * bcache.h (struct bcache) <bcache>: Remove constructor.
5179 <m_hash_function, m_compare_function>: Remove.
5180 <~bcache>: Make virtual.
5181 <compare>: Remove static method, introduce virtual method.
5182 <default_hash>: Remove.
5183 <hash>: New virtual method.
5184 * bcache.c (bcache::expand_hash_table): Update.
5185 (bcache::insert): Update.
5186 (bcache::hash): New.
5187 (bcache::compare): Update comment and parameter names.
5188 * gdbtypes.c (types_deeply_equal): Update.
5189 * psymtab.h (struct psymbol_bcache): New struct.
5190 (class psymtab_storage) <psymtab_storage>: Make default.
5191 <psymbol_cache>: Change type to psymbol_bcache.
5192 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5193 (psymbol_hash): Change to...
5194 (psymbol_bcache::hash): ... this.
5195 (psymbol_compare): Change to...
5196 (psymbol_bcache::compare): ... this.
5197
677c92fe
SM
51982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5199
5200 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5201 checking for initial lwp.
5202
3eba3a01
TT
52032020-09-14 Tom Tromey <tromey@adacore.com>
5204
5205 * m68k-tdep.c (m68k_extract_return_value): Use
5206 pointer_result_regnum.
5207 (m68k_store_return_value): Likewise.
5208 (m68k_reg_struct_return_p): Handle vectors and arrays.
5209 (m68k_return_value): Handle arrays.
5210 (m68k_svr4_return_value): Fix single-element aggregate handling.
5211 Handle long double. Adjust for embedded ABI.
5212 (m68k_svr4_init_abi): Set pointer_result_regnum.
5213 (m68k_embedded_init_abi): New function.
5214 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5215 (m68k_osabi_sniffer): New function.
5216 (_initialize_m68k_tdep): Register osabi sniffer.
5217 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5218 member.
5219
33f4dd48
SM
52202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5223 with gdb::unique_xmalloc_ptr<char>.
5224
8400a90d
SM
52252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5226
5227 * xml-support.h (xml_fetch_another): Change type to be a
5228 function_view.
5229 (xml_process_xincludes): Remove baton parameter.
5230 (xml_fetch_content_from_file): Change baton parameter to
5231 dirname.
5232 * xml-support.c (struct xinclude_parsing_data)
5233 <xinclude_parsing_data>: Remove baton parameter.
5234 <fetcher_baton>: Remove.
5235 (xinclude_start_include): Adjust.
5236 (xml_process_xincludes): Adjust.
5237 (xml_fetch_content_from_file): Replace baton parameter with
5238 dirname.
5239 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5240 (xml_init_syscalls_info): Use a lambda.
5241 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5242 (file_read_description_xml): Use a lambda.
5243 (fetch_available_features_from_target): Change baton parameter
5244 to target_ops.
5245 (target_read_description_xml): Use a lambda.
5246 (target_fetch_description_xml): Use a lambda.
5247 (string_read_description_xml): Update.
5248
04f5bab2
SM
52492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5250
5251 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5252 uses with type::endianity_is_not_default.
5253
db558e34
SM
52542020-09-14 Simon Marchi <simon.marchi@efficios.com>
5255
5256 * gdbtypes.h (struct type) <endianity_is_not_default,
5257 set_endianity_is_not_default>: New methods.
5258 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5259 type::endianity_is_not_default, change all write call sites to
5260 use type::set_endianity_is_not_default.
5261
22c4c60c
SM
52622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5265 uses with type::is_fixed_instance.
5266
9cdd0d12
SM
52672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * gdbtypes.h (struct type) <is_fixed_instance,
5270 set_is_fixed_instance>: New methods.
5271 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5272 write call sites to use type::set_is_fixed_instance.
5273
0becda7a
SM
52742020-09-14 Simon Marchi <simon.marchi@efficios.com>
5275
5276 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5277 uses with type::is_gnu_ifunc.
5278
03cc7249
SM
52792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5282 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5283 use type::set_is_gnu_ifunc.
5284
3f46044c
SM
52852020-09-14 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5288 uses with type::stub_is_supported.
5289
9baccff6
SM
52902020-09-14 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5293 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5294 use type::set_stub_is_supported.
5295
bd63c870
SM
52962020-09-14 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5299 uses with type::is_vector.
5300
2062087b
SM
53012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5304 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5305 use type::set_is_vector.
5306
a409645d
SM
53072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5308
5309 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5310 uses with type::has_varargs.
5311
1d6286ed
SM
53122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5315 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5316 use type::set_has_varargs.
5317
7f9f399b
SM
53182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5321 uses with type::is_prototyped.
5322
27e69b7a
SM
53232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5326 New methods.
5327 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5328 call sites to use type::set_is_prototyped.
5329
d2183968
SM
53302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5331
5332 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5333 uses with type::target_is_stub.
5334
8f53807e
SM
53352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5336
5337 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5338 New methods.
5339 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5340 sites to use type::set_target_is_stub.
5341
e46d3488
SM
53422020-09-14 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * gdbtypes.h (TYPE_STUB): Remove, replace all
5345 uses with type::is_stub.
5346
b4b73759
SM
53472020-09-14 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5350 (TYPE_STUB): Use type::is_stub, change all write call sites to
5351 use type::set_is_stub.
5352
20ce4123
SM
53532020-09-14 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5356 type::has_no_signedness.
5357
15152a54
SM
53582020-09-14 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbtypes.h (struct type) <has_no_signedness,
5361 set_has_no_signedness>: New methods.
5362 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5363 call sites to use type::set_has_no_signedness.
5364
c6d940a9
SM
53652020-09-14 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5368 type::is_unsigned.
5369
653223d3
SM
53702020-09-14 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5373 methods.
5374 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5375 sites to use type::set_is_unsigned.
5376
55ea94da 53772020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5378 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5379
e851246a
SM
5380 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5381 pointer and stack frame offset when unwinding.
55ea94da 5382
6791b117
PA
53832020-09-13 Pedro Alves <pedro@palves.net>
5384
5385 * NEWS: Document "-break-insert --qualified".
5386 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5387
77f2120b
PA
53882020-09-13 Pedro Alves <pedro@palves.net>
5389
5390 * linespec.c (classify_mtype, compare_msyms): Delete.
5391 (search_minsyms_for_name): Remove classification logic. Instead
5392 filter out trampoline symbols if we also found an external
5393 function of the same name.
5394
ed6a896c
JB
53952020-09-13 Joel Brobecker <brobecker@adacore.com>
5396
5397 * NEWS: Create a new section for the next release branch.
5398 Rename the section of the current branch, now that it has
5399 been cut.
5400
32aea73e
JB
54012020-09-13 Joel Brobecker <brobecker@adacore.com>
5402
5403 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5404 * version.in: Bump version to 11.0.50.DATE-git.
5405
8087c3fa
JB
54062020-09-12 Joel Brobecker <brobecker@adacore.com>
5407
5408 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5409
2a67f09d
FW
54102020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5411 Felix Willgerodt <Felix.Willgerodt@intel.com>
5412
5413 * gdbarch.sh: Added bfloat16 type.
5414 * gdbarch.c: Regenerated.
5415 * gdbarch.h: Regenerated.
5416 * gdbtypes.c (floatformats_bfloat16): New struct.
5417 (gdbtypes_post_init): Add builtin_bfloat16.
5418 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5419 (floatformats_bfloat16): New struct.
5420 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5421 (i386_ymm_type): Add field "v16_bfloat16"
5422 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5423 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5424 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5425 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5426 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5427 * features/i386/64bit-avx512.c: Regenerated.
5428 * features/i386/64bit-sse.xml: Add bfloat16 type.
5429 * features/i386/64bit-sse.c: Regenerated.
5430
1347d111
FW
54312020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5432
5433 * i386-tdep.c (i386_zmm_type): Fix field names.
5434 (i386_ymm_type): Fix field names.
5435
7a4e8e7d
TBA
54362020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5437
5438 * breakpoint.c: Fix typo in the help message of the
5439 "set breakpoint condition-evaluation" command.
5440
cf4ac4be
KR
54412020-09-10 Kamil Rytarowski <n54@gmx.com>
5442
5443 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5444 * (nbsd_nat_target::pid_to_exec_file)
5445 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5446 (nbsd_nat_target::post_startup_inferior)
5447 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5448 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5449 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5450 * (nbsd_thread_lister): Remove.
5451
f404573e
KR
54522020-09-10 Kamil Rytarowski <n54@gmx.com>
5453
5454 * fork-inferior.c (startup_inferior): Avoid double free.
5455
1ccb2c17
KR
54562020-09-10 Kamil Rytarowski <n54@gmx.com>
5457
5458 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5459 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5460
feedfcc7
KR
54612020-09-10 Kamil Rytarowski <n54@gmx.com>
5462
5463 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5464 * netbsd-nat.c: Include <sys/ptrace.h>.
5465 * (netbsd_nat::enable_proc_events): Add.
5466
c489f8c6
KR
54672020-09-10 Kamil Rytarowski <n54@gmx.com>
5468
5469 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5470 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5471 (netbsd_nat::for_each_thread): Add.
5472 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5473 "gdbsupport/common-debug.h".
5474 * (netbsd_nat::netbsd_thread_lister)
5475 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5476 (netbsd_nat::for_each_thread): Add.
5477
330662f6
KR
54782020-09-10 Kamil Rytarowski <n54@gmx.com>
5479
5480 * netbsd-nat.h: Include <unistd.h>.
5481 * (netbsd_nat::pid_to_exec_file): Add.
5482 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5483 * (netbsd_nat::pid_to_exec_file) Add.
5484
70b67307
KR
54852020-09-10 Kamil Rytarowski <n54@gmx.com>
5486
5487 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5488
99cf6da6
KR
54892020-09-10 Kamil Rytarowski <n54@gmx.com>
5490
5491 * netbsd-nat.h: New file.
5492 * netbsd-nat.c: Likewise.
5493
1b788fb6
TT
54942020-09-09 Tom Tromey <tromey@adacore.com>
5495
5496 * ada-lang.c (remove_extra_symbols): Do not increment when
5497 removing an element
5498
03b0a45f
TT
54992020-09-08 Tom Tromey <tromey@adacore.com>
5500
5501 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5502
3cae4447
TT
55032020-09-08 Tom Tromey <tromey@adacore.com>
5504
5505 PR win32/25302:
5506 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5507 (gdb_bfd_init_data): New function.
5508 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5509
7f08fd51
TBA
55102020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5511
5512 * infrun.c (fetch_inferior_event): Use
5513 `switch_to_target_no_thread` to switch the target.
5514
3e6ff933
TT
55152020-09-06 Tom Tromey <tom@tromey.com>
5516
5517 * symfile.h (dwarf2_free_objfile): Don't declare.
5518
e56798df
AKS
55192020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5520
5521 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5522 to match 16 byte real/complex type generated by Flang compiler.
5523
8f5c6526
TV
55242020-09-03 Tom de Vries <tdevries@suse.de>
5525
5526 PR breakpoint/26546
5527 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5528 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5529
c5065df0
SM
55302020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5531
5532 * maint.c (index_digits): New function.
5533 (struct maint_print_section_data): Remove.
5534 (print_bfd_section_info): Remove print_data parameter, add arg
5535 and index_digits.
5536 (print_objfile_section_info): Likewise.
5537 (print_bfd_section_info_maybe_relocated): Likewise (plus
5538 objfile).
5539 (maintenance_info_sections): Adjust calls.
5540
02c6f3f1
TT
55412020-09-02 Tom Tromey <tromey@adacore.com>
5542
5543 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5544 for null pointers.
5545 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5546
ef5e5b0b
SM
55472020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * bcache.h (struct bcache) <insert>: Change type of `added` to
5550 pointer to bool.
5551 * bcache.c (bcache::insert): Likewise.
5552 * gdbtypes.c (check_types_worklist): Adjust.
5553 * psymtab.c (add_psymbol_to_bcache): Adjust.
5554
973695d6
KB
55552020-08-31 Kevin Buettner <kevinb@redhat.com>
5556
5557 * corelow.c (unordered_set): Include.
5558 (class core_target): Add field 'm_core_unavailable_mappings'.
5559 (core_target::build_file_mappings): Print only one warning
5560 per inaccessible file. Add unavailable/broken mappings
5561 to m_core_unavailable_mappings.
5562 (core_target::xfer_partial): Call...
5563 (core_target::xfer_memory_via_mappings): New method.
5564
264fc0e2
SM
55652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5566
5567 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5568 type to bool.
5569
2de01bdb
SM
55702020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5571
5572 * dwarf2/read.c (struct field_info): Fix indentation.
5573
f3bd50f1
SM
55742020-08-31 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5577 ordering in comment.
5578 * frame.c (frame_id_eq): Fix indentation.
5579
22b9b4b0
SL
55802020-08-31 Scott Linder <scott@scottlinder.com>
5581 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5584 inline frame ids in outer frame.
5585
84154d16
SM
55862020-08-31 Simon Marchi <simon.marchi@efficios.com>
5587
5588 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5589 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5590 (outer_frame_id): Use FID_STACK_OUTER instead of
5591 FID_STACK_INVALID.
5592 (frame_id_p): Don't check for outer_frame_id.
5593
8efaf6b3
SM
55942020-08-31 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5597 regnum/frame in value. Call allocate_value_lazy.
5598 * frame.c (frame_unwind_register_value): Use
5599 val_print_not_saved.
5600
fe1fe7ea
SM
56012020-08-31 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5604
f7c7700d
PA
56052020-08-29 Pedro Alves <pedro@palves.net>
5606
5607 * progspace.c (print_program_space): Use all_inferiors. Switch to
5608 the inferior before calling target_pid_to_str.
5609
e0814aae
TT
56102020-08-28 Tom Tromey <tom@tromey.com>
5611
5612 * xcoffread.c (xcoff_end_psymtab): Update comment.
5613 * dbxread.c (dbx_end_psymtab): Update comment.
5614
626d2320
TV
56152020-08-28 Tom de Vries <tdevries@suse.de>
5616
5617 PR breakpoint/26544
5618 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5619 event_location.
5620 (create_breakpoint): Same.
5621 (base_breakpoint_decode_location): Same.
5622 (bkpt_create_sals_from_location): Same.
5623 (bkpt_decode_location): Same.
5624 (bkpt_probe_create_sals_from_location): Same.
5625 (bkpt_probe_decode_location): Same.
5626 (tracepoint_create_sals_from_location): Same.
5627 (tracepoint_decode_location): Same.
5628 (tracepoint_probe_decode_location): Same.
5629 (strace_marker_create_sals_from_location): Same.
5630 (strace_marker_decode_location): Same.
5631 (create_sals_from_location_default): Same.
5632 (decode_location_default): Same.
5633 * breakpoint.h (struct breakpoint_ops): Same.
5634 (create_breakpoint): Same.
5635 * linespec.h (decode_line_full): Same.
5636 * linespec.c (decode_line_full): Same. Throw error if
5637 result.size () == 0.
5638
df631783
PA
56392020-08-27 Pedro Alves <pedro@palves.net>
5640
5641 PR gdb/26524
5642 * breakpoint.c (until_break_fsm) <location_breakpoint,
5643 caller_breakpoint>: Delete fields.
5644 <breakpoints>: New field.
5645 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5646 two individual breakpoints.
5647 (until_break_fsm::should_stop): Loop over breakpoints in the
5648 breakpoint vector.
5649 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5650 vector.
5651 (until_break_command): Handle location expanding into multiple
5652 sals.
5653
b2b38aa4
PA
56542020-08-27 Pedro Alves <pedro@palves.net>
5655
5656 PR gdb/26523
5657 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5658 bp_until breakpoints user-specified locations. Update intro
5659 comment.
5660
b886559f
SM
56612020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5662
5663 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5664 gdb_bfd_sections): New.
5665 * maint.c (print_bfd_section_info): Change param type to
5666 maint_print_section_data.
5667 (print_objfile_section_info): Likewise.
5668 (print_bfd_section_info_maybe_relocated): Likewise.
5669 (maintenance_info_sections): Use gdb_bfd_sections.
5670
4c6e63bf
SV
56712020-08-25 Shahab Vahedi <shahab@synopsys.com>
5672
5673 * MAINTAINERS: Add ARC target and maintainer.
5674
8d7f0635
AK
56752020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5676
5677 * configure.tgt: ARC support for GNU/Linux.
5678 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5679 * arc-linux-tdep.c: New file.
5680 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5681 * arc-tdep.c (arc_write_pc): Use it.
5682
fdd8731b
SV
56832020-08-25 Shahab Vahedi <shahab@synopsys.com>
5684
5685 * arc-tdep.c (arc_check_for_hardware_loop): New.
5686 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5687
22459524
SV
56882020-08-25 Shahab Vahedi <shahab@synopsys.com>
5689
5690 * arc-tdep.h: Include "gdbarch.h".
5691
995d3a19
SV
56922020-08-25 Shahab Vahedi <shahab@synopsys.com>
5693
5694 * arch/arc.h
5695 (arc_gdbarch_features): New class to stir the selection of target XML.
5696 (arc_create_target_description): Use FEATURES to choose XML target.
5697 (arc_lookup_target_description): Use arc_create_target_description
5698 to create _new_ target descriptions or return the already created
5699 ones if the FEATURES is the same.
5700 * arch/arc.c: Implementation of prototypes described above.
5701 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5702 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5703 * arc-tdep.c (*_feature_name): Make feature names consistent.
5704 (arc_register_feature): A new struct to hold information about
5705 registers of a particular target/feature.
5706 (arc_check_tdesc_feature): Check if XML provides registers in
5707 compliance with ARC_REGISTER_FEATURE structs.
5708 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5709 (determine_*_reg_feature_set): Which feature name to look for.
5710 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5711 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5712 to expected ISA enums to be used in arc_gdbarch_features structs.
5713 * features/Makefile (FEATURE_XMLFILES): Add new files.
5714 * gdb/features/arc/v1-aux.c: New file.
5715 * gdb/features/arc/v1-aux.xml: Likewise.
5716 * gdb/features/arc/v1-core.c: Likewise.
5717 * gdb/features/arc/v1-core.xml: Likewise.
5718 * gdb/features/arc/v2-aux.c: Likewise.
5719 * gdb/features/arc/v2-aux.xml: Likewise.
5720 * gdb/features/arc/v2-core.c: Likewise.
5721 * gdb/features/arc/v2-core.xml: Likewise.
5722 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5723
3945d2d7
GM
57242020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5725 Andrew Burgess <andrew.burgess@embecosm.com>
5726
5727 PR m2/26372
fc5d6901 5728 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5729 an assert. Remove single element array indexing pattern as the
5730 MULTI_SUBSCRIPT support will handle this case too.
5731
2677f2d3
SM
57322020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * value.h (valprint_check_validity): Move declaration from
5735 here...
5736 * valprint.h (valprint_check_validity): ... to here.
5737
c426fddb
SM
57382020-08-24 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * debug.h: New file.
5741 * debug.c (debug_prefixed_vprintf): New function.
5742 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5743 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5744
1eb8556f
SM
57452020-08-24 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * infrun.h (infrun_debug_printf_1): New function declaration.
5748 (infrun_debug_printf): New macro.
5749 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5750 throughout.
5751 (infrun_debug_printf): New function.
5752 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5753 (handle_jit_event): Likewise.
5754
b8fff44e
MW
57552020-08-21 Mark Wielaard <mark@klomp.org>
5756
5757 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5758
d19c3068
SM
57592020-08-22 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * frame.c (enum class frame_id_status): New.
5762 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5763 (fprintf_frame): Update.
5764 (compute_frame_id): Set frame id status to "computing" on entry.
5765 Set it back to "not_computed" on failure and to "computed" on
5766 success.
5767 (get_frame_id): Assert the frame id is not being computed.
5768 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5769 (create_new_frame): Likewise.
5770 (frame_cleanup_after_sniffer): Update assert.
5771
b70e516e
SM
57722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5773
5774 * regcache.c (pid_ptid_regcache_map): New type.
5775 (target_ptid_regcache_map): Remove.
5776 (target_pid_ptid_regcache_map): New type.
5777 (regcaches): Change type to target_pid_ptid_regcache_map.
5778 (get_thread_arch_aspace_regcache): Update.
5779 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5780 case.
5781 (regcaches_size): Update.
5782 (regcache_count): Update.
5783 (registers_changed_ptid_target_pid_test): New.
5784 (_initialize_regcache): Register new test.
5785
cdd9148a
SM
57862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5787
5788 * regcache.c (regcache_count): New.
5789 (struct regcache_test_data): New.
5790 (regcache_test_data_up): New.
5791 (populate_regcaches_for_test): New.
5792 (regcaches_test): Remove.
5793 (get_thread_arch_aspace_regcache_test): New.
5794 (registers_changed_ptid_all_test): New.
5795 (registers_changed_ptid_target_test): New.
5796 (registers_changed_ptid_target_ptid_test): New.
5797 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5798 (_initialize_regcache): Register new tests.
5799
dd125343
SM
58002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5801
5802 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5803 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5804 gdbarch and aspace parameter. Use current inferior's aspace.
5805 Validate regcache's arch value.
5806 (regcaches_test): Update.
5807
3ee93972
SM
58082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5809
5810 * regcache.c (regcaches_test): Call registers_changed.
5811
33bf4c5c
TBA
58122020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5813
5814 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5815
c2fd7fae
AKS
58162020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5817
5818 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5819 to find the end of prologue for flang compiled binaries.
5820 * arm-tdep.c (arm_skip_prologue): Likewise.
5821 * i386-tdep.c (i386_skip_prologue): Likewise.
5822 * producer.c (producer_is_llvm): New function.
5823 (producer_parsing_tests): Added new tests for clang/flang.
5824 * producer.h (producer_is_llvm): New declaration.
5825
9327494e
SM
58262020-08-18 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * linux-nat.c (linux_nat_debug_printf): New function.
5829 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5830
d138725a
AM
58312020-08-18 Aaron Merey <amerey@redhat.com>
5832
5833 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5834 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5835 (CLIBS): Add DEBUGINFOD_LIBS.
5836
f9b11e6b
ST
58372020-08-17 Sergei Trofimovich <siarheit@google.com>
5838
5839 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5840 'gdbarch_num_regs'.
5841
3ae7ab99
TT
58422020-08-17 Tom Tromey <tromey@adacore.com>
5843
5844 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5845 ada_get_decoded_value returns NULL.
5846
b017825f
TT
58472020-08-17 Tom Tromey <tromey@adacore.com>
5848
5849 * python/py-inferior.c (infpy_search_memory): Use
5850 gdb_py_object_from_ulongest.
5851 * python/py-infevents.c (create_inferior_call_event_object)
5852 (create_memory_changed_event_object): Use
5853 gdb_py_object_from_ulongest.
5854 * python/py-linetable.c (ltpy_entry_get_pc): Use
5855 gdb_py_object_from_ulongest.
5856
7635cf79
SM
58572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * loc.c (class symbol_needs_eval_context): Fix indentation.
5860
f54be24b
SM
58612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5862
5863 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5864 bool.
5865
53d5a2a5
TV
58662020-08-17 Tom de Vries <tdevries@suse.de>
5867
5868 PR gdb/26393
5869 * gdbtypes.c (dump_dynamic_prop): New function.
5870 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5871
547ce8f0
TV
58722020-08-15 Tom de Vries <tdevries@suse.de>
5873
5874 PR backtrace/26390
5875 * stack.c (print_frame_args): Temporarily set the selected
5876 frame to FRAME while printing the frame's arguments.
5877
6ea815e7
PFC
58782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5879
5880 PR breakpoints/26385
5881 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5882 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5883
6e562fa3
PFC
58842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5885
5886 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5887 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5888 and >= to check return value instead of == -1 and != -1.
5889
d369b608
SM
58902020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * utils.h (class gdb_argv) <as_array_view>: New method.
5893 * utils.c (gdb_argv_as_array_view_test): New.
5894 (_initialize_utils): Register selftest.
5895 * maint.c (maintenance_selftest): Use the new method.
5896
b31488a3
KR
58972020-08-13 Kamil Rytarowski <n54@gmx.com>
5898
5899 * target.h (supports_dumpcore, dumpcore): New
5900 function declarations.
5901 * target.c (supports_dumpcore, dumpcore): New
5902 functions.
5903 * target-delegates.c: Rebuild.
5904 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5905 and target_dumpcore ().
5906
002a3166
AM
59072020-08-13 Aaron Merey <amerey@redhat.com>
5908
5909 * debuginfod-support.c: Replace global variables with user_data.
5910
ece5bc8a
SM
59112020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * maint.c (maintenance_selftest): Split args and pass array_view
5914 to run_tests.
5915
6d8a0a5e
LM
59162020-08-12 Luis Machado <luis.machado@linaro.org>
5917
5918 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5919 type's length.
5920 Use %s and pulongest to print the length.
5921
7cf663a9
PA
59222020-08-12 Pedro Alves <palves@redhat.com>
5923
5924 * NEWS: Move "Multi-target debugging support" item to the
5925 "Changes since GDB 9" section.
5926
27c7b875
PA
59272020-08-12 Pedro Alves <palves@redhat.com>
5928
5929 PR gdb/26336
5930 * progspace.c (program_space::remove_objfile): Invalidate the
5931 frame cache.
5932
1796a2a1
TV
59332020-08-11 Tom de Vries <tdevries@suse.de>
5934
5935 * MAINTAINERS: Mark ms1 as deleted.
5936
f8e3fe0d
LM
59372020-08-10 Luis Machado <luis.machado@linaro.org>
5938
5939 PR gdb/26310
5940
5941 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5942 act accordingly.
5943 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5944 movz/str/stur/stp skipping behavior.
5945
cc308722
LM
59462020-08-10 Luis Machado <luis.machado@linaro.org>
5947
5948 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5949 struct user_sve_header instead of struct sve_context.
5950
041d9819
SM
59512020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * read.h (dwarf2_fetch_die_loc_sect_off,
5954 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5955 `void *` parameter with function_view.
5956 * read.c (dwarf2_fetch_die_loc_sect_off,
5957 dwarf2_fetch_die_loc_cu_off): Likewise.
5958 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5959 (per_cu_dwarf_call): Adjust.
5960 (get_frame_address_in_block_wrapper): Remove.
5961 (indirect_synthetic_pointer): Adjust.
5962 (get_ax_pc): Remove.
5963 (dwarf2_compile_expr_to_ax): Adjust.
5964
38f8aa06
TV
59652020-08-08 Tom de Vries <tdevries@suse.de>
5966
5967 PR build/26344
5968 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5969 constructor.
5970 * regcache.c (get_thread_arch_aspace_regcache): Same.
5971
a52b3ae2
TT
59722020-08-07 Tom Tromey <tromey@adacore.com>
5973
5974 * ravenscar-thread.c
5975 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5976 New method.
5977 (ravenscar_thread_target::wait): Check
5978 runtime_initialized.
5979 (ravenscar_thread_target::prepare_to_store)
5980 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5981 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5982 (ravenscar_thread_target::stopped_by_watchpoint)
5983 (ravenscar_thread_target::stopped_data_address)
5984 (ravenscar_thread_target::core_of_thread): Use
5985 scoped_restore_current_thread and
5986 set_base_thread_from_ravenscar_task.
5987
0e29517d
TT
59882020-08-07 Tom Tromey <tromey@adacore.com>
5989
5990 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5991
592f9bd7
TT
59922020-08-07 Tom Tromey <tromey@adacore.com>
5993
5994 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5995 update_inferior_ptid before update_thread_list.
5996 (temporarily_change_regcache_ptid): New class.
5997 (ravenscar_thread_target::fetch_registers)
5998 (ravenscar_thread_target::store_registers)
5999 (ravenscar_thread_target::prepare_to_store): Use base thread when
6000 forwarding operation.
6001
39e2018a
TT
60022020-08-07 Tom Tromey <tromey@adacore.com>
6003
6004 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6005 "is_pid" case.
6006
2080266b
TT
60072020-08-07 Tom Tromey <tromey@adacore.com>
6008
6009 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6010 New methods.
6011 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6012 first.
6013 (ravenscar_thread_target::add_thread): Rename from
6014 ravenscar_add_thread.
6015 (ravenscar_thread_target::update_thread_list): Use a lambda.
6016 (ravenscar_thread_target::xfer_partial): New method.
6017
78c02f21
TT
60182020-08-07 Tom Tromey <tromey@adacore.com>
6019
6020 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6021 gdb::function_view.
6022 (iterate_over_live_ada_tasks): Change type of argument.
6023 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6024 of argument.
6025
d5d833af
TT
60262020-08-07 Tom Tromey <tromey@adacore.com>
6027
6028 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6029 Remove.
6030 (ravenscar_thread_target::extra_thread_info): Remove.
6031 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6032 defer to target beneath for non-Ravenscar threads.
6033
a8ac85bb
TT
60342020-08-07 Tom Tromey <tromey@adacore.com>
6035
6036 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6037 get_base_thread_from_ravenscar_task>: Now methods.
6038 <m_cpu_map>: New member.
6039 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6040 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6041 (ravenscar_thread_target::task_is_currently_active): Update.
6042 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6043 Now a method.
6044 (ravenscar_thread_target::add_active_thread): Put initial thread
6045 into the m_cpu_map.
6046
550ab58d
TT
60472020-08-07 Tom Tromey <tromey@adacore.com>
6048
6049 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6050 event_ptid.
6051
e9546579
TT
60522020-08-07 Tom Tromey <tromey@adacore.com>
6053
6054 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6055 runtime_initialized.
6056
3d4470e5
TT
60572020-08-07 Tom Tromey <tromey@adacore.com>
6058
6059 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6060 add_active_thread.
6061 (ravenscar_thread_target::add_active_thread): Now public.
6062 (ravenscar_inferior_created): Call add_active_thread after pushing
6063 the target.
6064
888bdb2b
SM
60652020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * regcache.c (ptid_regcache_map): New type.
6068 (target_ptid_regcache_map): New type.
6069 (regcaches): Change type to target_ptid_regcache_map.
6070 (get_thread_arch_aspace_regcache): Update to regcaches' new
6071 type.
6072 (regcache_thread_ptid_changed): Likewise.
6073 (registers_changed_ptid): Likewise.
6074 (regcaches_size): Likewise.
6075 (regcaches_test): Update.
6076 (regcache_thread_ptid_changed): Update.
6077 * regcache.h (regcache_up): New type.
6078 * gdbsupport/ptid.h (hash_ptid): New struct.
6079
b161a60d
SM
60802020-08-07 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * observable.h (thread_ptid_changed): Add parameter
6083 `process_stratum_target *`.
6084 * infrun.c (infrun_thread_ptid_changed): Add parameter
6085 `process_stratum_target *` and use it.
6086 (selftests): New namespace.
6087 (infrun_thread_ptid_changed): New function.
6088 (_initialize_infrun): Register selftest.
6089 * regcache.c (regcache_thread_ptid_changed): Add parameter
6090 `process_stratum_target *` and use it.
6091 (regcache_thread_ptid_changed): New function.
6092 (_initialize_regcache): Register selftest.
6093 * thread.c (thread_change_ptid): Pass target to
6094 thread_ptid_changed observable.
6095
d2854d8d
CT
60962020-08-06 Caroline Tice <cmtice@google.com>
6097
fe4c3d43
SM
6098 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6099 (struct dwp_sections): Update field comments. Add loclists and
6100 rnglists fields.
6101 (struct virtual_v2_dwo_sections): Rename struct to
6102 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6103 size & offset fields for loclists and rnglists.
6104 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6105 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6106 skipping dummy type units.
6107 (create_dwp_hash_table): Update the large comment above the function to
6108 discuss Version 5 DWP files as well, with references. Update all the
6109 version checks in the function to check for version 5 as well. Add new
6110 section at the end to create dwp hash table for version 5.
6111 (create_dwp_v2_section): Rename function to
6112 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6113 Add V5 to error message text.
6114 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6115 into calls to create_dwp_v2_or_v5_section.
6116 (create_dwo_unit_in_dwp_v5): New function.
6117 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6118 check for version2; add else clause to handle version 5.
6119 (open_and_init_dwo_file): Add code to check dwarf version & only call
6120 create_debug_types_hash_table (with sections.types) if version is not 5;
6121 else call create_debug_type_hash_table, with sections.info.
6122 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6123 version 5.
6124 (dwarf2_locate_v5_dwp_sections): New function.
6125 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6126 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6127
159ed7d9
SM
61282020-08-06 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * regcache.h (class regcache): Remove friend
6131 registers_changed_ptid.
6132 <regcache_thread_ptid_changed>: Remove.
6133 <regcaches>: Remove.
6134 * regcache.c (regcache::regcaches): Rename to...
6135 (regcaches): ... this. Make static.
6136 (get_thread_arch_aspace_regcache): Update.
6137 (regcache::regcache_thread_ptid_changed): Rename to...
6138 (regcache_thread_ptid_changed): ... this. Update.
6139 (class regcache_access): Remove.
6140 (regcaches_test): Update.
6141 (_initialize_regcache): Update.
6142 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6143 <forward_list>.
6144
174981ae
SM
61452020-08-06 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * regcache.h (class regcache) <current_regcache>: Rename to...
6148 <regcaches>: ... this. Move doc here.
6149 * regcache.c (regcache::current_regcache) Rename to...
6150 (regcache::regcaches): ... this. Move doc to header.
6151 (get_thread_arch_aspace_regcache): Update.
6152 (regcache::regcache_thread_ptid_changed): Update.
6153 (registers_changed_ptid): Update.
6154 (class regcache_access) <current_regcache_size>: Rename to...
6155 <regcaches_size>: ... this.
6156 (current_regcache_test): Rename to...
6157 (regcaches_test): ... this.
6158 (_initialize_regcache): Update.
6159
ed908db6
VC
61602020-08-06 Victor Collod <vcollod@nvidia.com>
6161
6162 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6163
b5582ab7
KB
61642020-08-05 Kevin Buettner <kevinb@redhat.com>
6165
6166 * corelow.c (core_target::build_file_mappings): Don't output
6167 null pathname in warning.
6168
ea946b86
SM
61692020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6170
6171 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6172 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6173 gdb.dwarf2/dw2-single-line-discriminators.exp,
6174 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6175
57d02173
TT
61762020-08-05 Tom Tromey <tromey@adacore.com>
6177
6178 PR rust/26197:
6179 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6180 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6181 Fix off-by-one and type size errors in ordinary case.
6182
5555c86d
TV
61832020-08-05 Tom de Vries <tdevries@suse.de>
6184
6185 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6186 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6187
97916bfe
SM
61882020-08-04 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * frame.h (frame_id_p): Return bool.
6191 (frame_id_artificial_p): Return bool.
6192 (frame_id_eq): Return bool.
6193 (has_stack_frames): Return bool.
6194 (get_selected_frame): Fix typo in comment.
6195 (get_frame_pc_if_available): Return bool.
6196 (get_frame_address_in_block_if_available): Return bool.
6197 (get_frame_func_if_available): Return bool.
6198 (read_frame_register_unsigned): Return bool.
6199 (get_frame_register_bytes): Return bool.
6200 (safe_frame_unwind_memory): Return bool.
6201 (deprecated_frame_register_read): Return bool.
6202 (frame_unwinder_is): Return bool.
6203 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6204 bool.
6205 <this_id::p>: Likewise.
6206 <prev_p>: Likewise.
6207 (frame_stash_add): Return bool.
6208 (get_frame_id): Use bool.
6209 (frame_id_build_special) Use bool.
6210 (frame_id_build_unavailable_stack): Use bool.
6211 (frame_id_build): Use bool.
6212 (frame_id_p): Return bool, use true/false instead of 1/0.
6213 (frame_id_artificial_p): Likewise.
6214 (frame_id_eq): Likewise.
6215 (frame_id_inner): Likewise.
6216 (get_frame_func_if_available): Likewise.
6217 (read_frame_register_unsigned): Likewise.
6218 (deprecated_frame_register_read): Likewise.
6219 (get_frame_register_bytes): Likewise.
6220 (has_stack_frames): Likewise.
6221 (inside_main_func): Likewise.
6222 (inside_entry_func): Likewise.
6223 (get_frame_pc_if_available): Likewise.
6224 (get_frame_address_in_block_if_available): Likewise.
6225 (frame_unwinder_is): Likewise.
6226 (safe_frame_unwind_memory): Likewise.
6227 (frame_unwind_arch): Likewise.
6228
fedfee88
SM
62292020-08-04 Simon Marchi <simon.marchi@efficios.com>
6230
6231 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6232 type to cached_copy_status.
6233 (fprintf_frame): Adjust.
6234 (get_frame_func_if_available): Adjust.
6235 (frame_cleanup_after_sniffer): Adjust.
6236
6cfa9b59
MW
62372020-08-04 Mark Wielaard <mark@klomp.org>
6238
6239 * MAINTAINERS (Write After Approval): Update email address.
6240
66d6346b
SM
62412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6244 dynamic_prop::const_val.
6245
8a6d5e35
SM
62462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6247
6248 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6249 dynamic_prop::kind.
6250
51d6067d
SM
62512020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6254
b26e2ae7
JM
62552020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6256
6257 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6258
39791af2
JM
62592020-08-04 Weimin Pan <weimin.pan@oracle.com>
6260 Jose E. Marchesi <jose.marchesi@oracle.com>
6261
6262 * configure.tgt: Add entry for bpf-*-*.
6263 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6264 (ALLDEPFILES): Add bpf-tdep.c.
6265 * bpf-tdep.c: New file.
6266 * MAINTAINERS: Add bpf target and maintainer.
6267 * NEWS: Mention the support for the new target.
6268
521894aa
TV
62692020-08-04 Tom de Vries <tdevries@suse.de>
6270
6271 PR symtab/23270
6272 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6273 Error.
6274
5d6356e9
JB
62752020-08-03 John Baldwin <jhb@FreeBSD.org>
6276
6277 * syscalls/freebsd.xml: Regenerate.
6278
0cf82b81
JB
62792020-08-03 John Baldwin <jhb@FreeBSD.org>
6280
6281 * syscalls/update-freebsd.sh: Fix usage and year range.
6282
8f34b746
TV
62832020-08-03 Tom de Vries <tdevries@suse.de>
6284
6285 PR symtab/26333
6286 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6287 DW_LNE_lo_user/DW_LNE_hi_user range.
6288
5e500d33
SM
62892020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6290
6291 PR ada/26318
6292 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6293 kind.
6294
78319c15
TBA
62952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6296
6297 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6298
4c55e970
TBA
62992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6300
6301 * breakpoint.c (set_breakpoint_condition): Update the condition
6302 expressions after checking that the input condition string parses
6303 successfully and does not contain junk at the end.
6304
1e620590
TBA
63052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6306
6307 * breakpoint.c (set_breakpoint_condition): Update the
6308 condition string after parsing the new condition successfully.
6309
c8693053
RO
63102020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6311
6312 * proc-api.c (_STRUCTURED_PROC): Don't define.
6313 * proc-events.c: Likewise.
6314 * proc-flags.c: Likewise.
6315 * proc-why.c: Likewise.
6316 * procfs.c: Likewise.
6317
6318 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6319 * configure, config.in: Regenerate.
6320
5a99adb8
TV
63212020-07-30 Tom de Vries <tdevries@suse.de>
6322
6323 PR build/26320
6324 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6325 m_red/m_green/m_blue in a union.
6326
8ba83e91
TV
63272020-07-29 Tom de Vries <tdevries@suse.de>
6328
6329 PR tdep/26280
6330 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6331
f75a0693
AB
63322020-07-28 Tom Tromey <tromey@adacore.com>
6333
6334 PR symtab/26270:
6335 * symtab.h (find_pc_partial_function_sym): Declare.
6336 * cli/cli-cmds.c (disassemble_command): Use
6337 find_pc_partial_function_sym. Check asm_demangle.
6338 * blockframe.c (cache_pc_function_sym): New global.
6339 (cache_pc_function_name): Remove.
6340 (clear_pc_function_cache): Update.
6341 (find_pc_partial_function_sym): New function, from
6342 find_pc_partial_function.
6343 (find_pc_partial_function): Rewrite using
6344 find_pc_partial_function_sym.
6345
16f3242c
TT
63462020-07-28 Tom Tromey <tromey@adacore.com>
6347
6348 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6349 help. Add usage.
6350
4888741a
TT
63512020-07-28 Tom Tromey <tromey@adacore.com>
6352
6353 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6354 <DW_OP_GNU_variable_value>: Cast to address type.
6355
4d46f402
KR
63562020-07-28 Kamil Rytarowski <n54@gmx.com>
6357
6358 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6359 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6360 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6361 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6362 (nbsd_get_siginfo_type): New.
6363 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6364 (_initialize_nbsd_tdep): New.
6365
d70f978b
L
63662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6367
6368 PR binutils/26301
6369 * configure: Regenerated.
6370
377170fa
L
63712020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6372
6373 PR binutils/26301
6374 * configure: Regenerated.
6375
43d5901d
AB
63762020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6377
6378 * python/py-frame.c: Remove 'user-regs.h' include.
6379 (frapy_read_register): Rewrite to make use of
6380 gdbpy_parse_register_id.
6381 * python/py-registers.c (gdbpy_parse_register_id): New function,
6382 moved here from python/py-unwind.c. Updated the return type, and
6383 also accepts register descriptor objects.
6384 * python/py-unwind.c: Remove 'user-regs.h' include.
6385 (pyuw_parse_register_id): Moved to python/py-registers.c.
6386 (unwind_infopy_add_saved_register): Update to use
6387 gdbpy_parse_register_id.
6388 (pending_framepy_read_register): Likewise.
6389 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6390
14fa8fb3
AB
63912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * python/py-registers.c: Add 'user-regs.h' include.
6394 (register_descriptor_iter_find): New function.
6395 (register_descriptor_iterator_object_methods): New static global
6396 methods array.
6397 (register_descriptor_iterator_object_type): Add pointer to methods
6398 array.
6399
ddce1758
JB
64002020-07-27 John Baldwin <jhb@FreeBSD.org>
6401
6402 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6403 for all architectures on FreeBSD 11.3 and later.
6404
a4089f52
TT
64052020-07-27 Tom Tromey <tromey@adacore.com>
6406
6407 * gcore.h (load_corefile): Don't declare.
6408
95420d30
TV
64092020-07-27 Tom de Vries <tdevries@suse.de>
6410
6411 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6412 * config.in: Regenerate.
6413 * configure: Regenerate.
6414
05a6b8c2
EZ
64152020-07-26 Eli Zaretskii <eliz@gnu.org>
6416
6417 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6418 ws2tcpip.h. When checking whether socklen_t type is defined, use
6419 ws2tcpip.h if it is available and sys/socket.h isn't.
6420 * configure: Regenerate.
6421 * config.in: Regenerate.
6422
e79eb02f
AB
64232020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 PR fortran/23051
6426 PR fortran/26139
6427 * valops.c (value_ind): Pass address to
6428 readjust_indirect_value_type.
6429 * value.c (readjust_indirect_value_type): Make parameter
6430 non-const, and add extra address parameter. Resolve original type
6431 before using it.
6432 * value.h (readjust_indirect_value_type): Update function
6433 signature and comment.
6434
876518dd
TV
64352020-07-25 Tom de Vries <tdevries@suse.de>
6436
6437 PR symtab/26243
6438 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6439 entries.
6440
f6720b1c
AM
64412020-07-24 Aaron Merey <amerey@redhat.com>
6442
6443 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6444 * configure: Rebuild.
6445
513487e1
KB
64462020-07-23 Kevin Buettner <kevinb@redhat.com>
6447
6448 PR corefiles/26294
6449 * corelow.c (_initialize_corelow): Add period to help text
6450 for "maintenance print core-file-backed-mappings".
6451
e7bc9db8
PA
64522020-07-23 Pedro Alves <pedro@palves.net>
6453
6454 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6455 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6456 meanwhile.
6457 * frame.c (frame_cache_generation, get_frame_cache_generation):
6458 New.
6459 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6460 (get_prev_frame_if_no_cycle): On exception, don't touch
6461 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6462 * frame.h (get_frame_cache_generation): Declare.
6463
90fcc466
TV
64642020-07-23 Tom de Vries <tdevries@suse.de>
6465
6466 PR tui/26282
6467 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6468 New default constructor.
6469
78344df7
AB
64702020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6473 exclude non-statement entries.
6474
b089853a
KB
64752020-07-22 Kevin Buettner <kevinb@redhat.com>
6476
6477 * NEWS (New commands): Mention new command
6478 "maintenance print core-file-backed-mappings".
6479
09c2f5d4
KB
64802020-07-22 Kevin Buettner <kevinb@redhat.com>
6481
6482 * corelow.c (gdbcmd.h): Include.
6483 (core_target::info_proc_mappings): New method.
6484 (get_current_core_target): New function.
6485 (maintenance_print_core_file_backed_mappings): New function.
6486 (_initialize_corelow): Add core-file-backed-mappings to
6487 "maint print" commands.
6488
9c5ec5c2 64892020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6490
9c5ec5c2
KB
6491 * linux-tdep.c (dump_note_entry_p): New function.
6492 (linux_dump_mapping_p_ftype): New typedef.
6493 (linux_find_memory_regions_full): Add new parameter,
6494 should_dump_mapping_p.
6495 (linux_find_memory_regions): Adjust call to
6496 linux_find_memory_regions_full.
6497 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6498 call to linux_find_memory_regions_full.
6499
db082f59
KB
65002020-07-22 Kevin Buettner <kevinb@redhat.com>
6501
6502 * corelow.c (solist.h, unordered_map): Include.
6503 (class core_target): Add field m_core_file_mappings and
6504 method build_file_mappings.
6505 (core_target::core_target): Call build_file_mappings.
6506 (core_target::~core_target): Free memory associated with
6507 m_core_file_mappings.
6508 (core_target::build_file_mappings): New method.
6509 (core_target::xfer_partial): Use m_core_file_mappings
6510 for memory transfers.
6511 * linux-tdep.c (linux_read_core_file_mappings): New
6512 function.
6513 (linux_core_info_proc_mappings): Rewrite to use
6514 linux_read_core_file_mappings.
6515 (linux_init_abi): Register linux_read_core_file_mappings.
6516
7e183d27
KB
65172020-07-22 Kevin Buettner <kevinb@redhat.com>
6518
6519 * arch-utils.c (default_read_core_file_mappings): New function.
6520 * arch-utils.c (default_read_core_file_mappings): Declare.
6521 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6522 * gdbarch.h, gdbarch.c: Regenerate.
6523
2735d421
KB
65242020-07-22 Kevin Buettner <kevinb@redhat.com>
6525
6526 PR corefiles/25631
6527 * corelow.c (core_target:xfer_partial): Revise
6528 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6529 case after first checking the stratum beneath the core
6530 target.
6531 (has_all_memory): Return true.
6532 * target.c (raw_memory_xfer_partial): Revise comment
6533 regarding use of has_all_memory.
6534
e56cb451
KB
65352020-07-22 Kevin Buettner <kevinb@redhat.com>
6536
6537 * exec.h (section_table_xfer_memory): Revise declaration,
6538 replacing section name parameter with an optional callback
6539 predicate.
6540 * exec.c (section_table_xfer_memory): Likewise.
6541 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6542 of section_table_xfer_memory.
6543
32fa152e
TT
65442020-07-22 Tom Tromey <tromey@adacore.com>
6545
6546 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6547 lookup_symbol_search_name.
6548
a67a1c41
AB
65492020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6550
6551 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6552 redundant local variable.
6553 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6554 reference, not pointer, update code accordingly.
6555
a7b4ff4f
SM
65562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6557 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6558
6559 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6560 * jit.c (jit_breakpoint_re_set_internal): Use the
6561 `skip_jit_symbol_lookup` field.
6562
2340e834
SM
65632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6564 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6565
6566 * jit.c (jit_read_descriptor): Define the descriptor address once,
6567 use twice.
6568 (jit_breakpoint_deleted): Move the declaration of the loop variable
6569 `iter` into the loop header.
6570 (jit_breakpoint_re_set_internal): Move the declaration of the local
6571 variable `objf_data` to the first point of definition.
6572 (jit_event_handler): Move the declaration of local variables
6573 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6574 Rename `objf` to `jited`.
6575
c1072906
SM
65762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6577
6578 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6579 Remove.
6580 * jit.c (get_jiter_objfile_data): Update.
6581
c8474dc3
TBA
65822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6583 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 * jit.c (struct jit_program_space_data): Remove.
6586 (jit_program_space_key): Remove.
6587 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6588 stuff.
6589 (get_jit_program_space_data): Remove.
6590 (jit_breakpoint_deleted): Iterate on all of the program space's
6591 objfiles.
6592 (jit_inferior_init): Likewise.
6593 (jit_breakpoint_re_set_internal): Likewise. Also change return
6594 type to void.
6595 (jit_breakpoint_re_set): Pass current_program_space to
6596 jit_breakpoint_re_set_internal.
6597
77208eb7
SM
65982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * jit.h (struct jiter_objfile_data) <cached_code_address,
6601 jit_breakpoint>: Move to here from ...
6602 * jit.c (jit_program_space_data): ... here.
6603 (jiter_objfile_data::~jiter_objfile_data): Update.
6604 (jit_breakpoint_deleted): Update.
6605 (jit_breakpoint_re_set_internal): Update.
6606
8c1c720f
SM
66072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6608
6609 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6610 checks.
6611 (jit_read_descriptor): Remove NULL check.
6612 (jit_event_handler): Add an assertion.
6613
0e74a041
SM
66142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * jit.h (struct jit_objfile_data): Split into...
6617 (struct jiter_objfile_data): ... this ...
6618 (struct jited_objfile_data): ... and this.
6619 * objfiles.h (struct objfile) <jit_data>: Remove.
6620 <jiter_data, jited_data>: New fields.
6621 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6622 (jiter_objfile_data::~jiter_objfile_data): ... this.
6623 (get_jit_objfile_data): Rename to ...
6624 (get_jiter_objfile_data): ... this.
6625 (add_objfile_entry): Update.
6626 (jit_read_descriptor): Use get_jiter_objfile_data.
6627 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6628 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6629 (jit_inferior_exit_hook): Use objfile's jited_data field.
6630
238b5c9f
SM
66312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6632
6633 * jit.h: Forward-declare `struct minimal_symbol`.
6634 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6635 constructor, destructor, and an objfile* field.
6636 * jit.c (jit_objfile_data): Remove.
6637 (struct jit_objfile_data): Migrate from here to jit.h.
6638 (jit_objfile_data::~jit_objfile_data): New destructor
6639 implementation with code moved from free_objfile_data.
6640 (free_objfile_data): Delete.
6641 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6642 (jit_find_objf_with_entry_addr): Ditto.
6643 (jit_inferior_exit_hook): Ditto.
6644 (_initialize_jit): Remove the call to
6645 register_objfile_data_with_cleanup.
6646 * objfiles.h (struct objfile) <jit_data>: New field.
6647
fe053b9e
TBA
66482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6649
6650 * jit.h: Forward-declare `struct objfile`.
6651 (jit_event_handler): Add a second parameter, the JITer objfile.
6652 * jit.c (jit_read_descriptor): Change the signature to take the
6653 JITer objfile as an argument instead of the jit_program_space_data.
6654 (jit_inferior_init): Update the call to jit_read_descriptor.
6655 (jit_event_handler): Use the new JITer objfile argument when calling
6656 jit_read_descriptor.
6657 * breakpoint.c (handle_jit_event): Update the call to
6658 jit_event_handler to pass the JITer objfile.
6659
4cec0c66
JB
66602020-07-21 John Baldwin <jhb@FreeBSD.org>
6661
6662 * gdbarch.c: Regenerate.
6663 * gdbarch.h: Regenerate.
6664 * gdbarch.sh (handle_segmentation_fault): Remove method.
6665 * infrun.c (handle_segmentation_fault): Remove.
6666 (print_signal_received_reason): Remove call to
6667 handle_segmentation_fault.
6668
0e42f66a
JB
66692020-07-21 John Baldwin <jhb@FreeBSD.org>
6670
6671 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6672 Rename to sparc64_linux_report_signal_info and add siggnal
6673 argument.
6674 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6675 instead of sparc64_linux_handle_segmentation_fault.
6676
77bdfeb2
JB
66772020-07-21 John Baldwin <jhb@FreeBSD.org>
6678
6679 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6680 i386_linux_report_signal_info instead of
6681 i386_linux_handle_segmentation_fault.
6682 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6683 to i386_linux_report_signal_info and add siggnal argument.
6684 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6685 of i386_linux_handle_segmentation_fault.
6686 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6687 to i386_linux_report_signal_info and add siggnal argument.
6688
ad97bfc5
JB
66892020-07-21 John Baldwin <jhb@FreeBSD.org>
6690
6691 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6692 hook if present.
6693
272bb05c
JB
66942020-07-21 John Baldwin <jhb@FreeBSD.org>
6695
6696 * gdbarch.c: Regenerate.
6697 * gdbarch.h: Regenerate.
6698 * gdbarch.sh (report_signal_info): New method.
6699 * infrun.c (print_signal_received_reason): Invoke gdbarch
6700 report_signal_info hook if present.
6701
baf8791e
AB
67022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * python/py-registers.c : Add 'unordered_map' include.
6705 (gdbpy_new_reggroup): Renamed to...
6706 (gdbpy_get_reggroup): ...this. Update to only create register
6707 group descriptors when needed.
6708 (gdbpy_reggroup_iter_next): Update.
6709
f7306dac
AB
67102020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * python/py-registers.c (gdbpy_register_object_data): New static
6713 global.
6714 (gdbpy_register_object_data_init): New function.
6715 (gdbpy_new_register_descriptor): Renamed to...
6716 (gdbpy_get_register_descriptor): ...this, and update to reuse
6717 existing register descriptors where possible.
6718 (gdbpy_register_descriptor_iter_next): Update.
6719 (gdbpy_initialize_registers): Register new gdbarch data.
6720
05c309a8
SM
67212020-07-21 Simon Marchi <simon.marchi@efficios.com>
6722
6723 * linux-nat.c (stopped_pids): Make static.
6724
d1fd641e
SM
67252020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6726
6727 PR ada/26235
6728 * gdbtypes.c (ada_discrete_type_low_bound,
6729 ada_discrete_type_high_bound): Handle undefined bounds.
6730
1de14d77
KR
67312020-07-21 Kamil Rytarowski <n54@gmx.com>
6732
6733 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6734 declaration.
6735 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6736 function.
6737
ed810cc7
JB
67382020-07-20 John Baldwin <jhb@FreeBSD.org>
6739
6740 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6741 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6742 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6743 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6744 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6745 method.
6746
ae5369e7
LC
67472020-07-20 Ludovic Courtès <ludo@gnu.org>
6748
6749 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6750 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6751 which are deprecated in Guile 3.0.
6752 * configure.ac (try_guile_versions): Add "guile-3.0".
6753 * configure (try_guile_versions): Regenerate.
6754 * NEWS: Update entry.
6755
68cf161c
LC
67562020-07-20 Ludovic Courtès <ludo@gnu.org>
6757 Doug Evans <dje@google.com>
6758
6759 PR gdb/21104
6760 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6761 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6762 USING_GUILE_BEFORE_2_2.
6763 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6764 Change type to 'scm_t_port_type *'.
6765 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6766 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6767 parameter and honor it. Update callers.
6768 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6769 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6770 functions.
6771 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6772 USING_GUILE_BEFORE_2_2.
6773 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6774 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6775 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6776 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6777 and 'SCM_PORT_TYPE'.
6778 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6779 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6780 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6781 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6782 [!USING_GUILE_BEFORE_2_2]: New functions.
6783 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6784 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6785 'gdbscm_memory_port_read'.
6786 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6787 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6788 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6789 function.
6790 (ioscm_init_memory_port): Remove.
6791 (ioscm_init_memory_port_stream): New function
6792 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6793 function.
6794 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6795 Return scm_from_uint (0).
6796 (gdbscm_set_memory_port_read_buffer_size_x)
6797 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6798 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6799 Return scm_from_uint (0).
6800 (gdbscm_set_memory_port_write_buffer_size_x)
6801 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6802 * configure.ac (try_guile_versions): Add "guile-2.2".
6803 * configure: Regenerate.
6804 * NEWS: Add entry.
6805
aee91db3
TT
68062020-07-18 Tom Tromey <tom@tromey.com>
6807
6808 * linux-nat.c (linux_multi_process): Remove.
6809 (linux_nat_target::supports_multi_process): Return true.
6810
0e267416
AB
68112020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6812
6813 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6814 (riscv_lookup_target_description): Return pointer out of
6815 unique_ptr.
6816 * target-descriptions.c (allocate_target_description): Add
6817 comment.
6818 (target_desc_deleter::operator()): Likewise.
6819 * target-descriptions.h (struct target_desc_deleter): Moved to
6820 gdbsupport/tdesc.h.
6821 (target_desc_up): Likewise.
6822
f80c8ec4
TT
68232020-07-17 Tom Tromey <tromey@adacore.com>
6824
6825 * linux-nat.c (linux_nat_target::supports_non_stop)
6826 (linux_nat_target::always_non_stop_p): Use "true".
6827 (linux_nat_target::supports_disable_randomization): Use "true" and
6828 "false".
6829
d0ce17d8
CT
68302020-07-16 Caroline Tice <cmtice@google.com>
6831
6832 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6833 (RNGLIST_HEADER_SIZE64): New constant definition.
6834 (struct dwop_section_names): Add rnglists_dwo.
6835 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6836 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6837 (struct dwo_sections): Add rnglists field.
6838 (read_attribut_reprocess): Add tag parameter.
6839 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6840 (cu_debug_rnglists_section): New function (decl & definition).
6841 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6842 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6843 die whose range is being checked; get rnglist section from
6844 cu_debug_rnglists_section, to get from either objfile or dwo file as
6845 appropriate. Add cases for DW_RLE_base_addressx,
6846 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6847 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6848 test inside if-condition and updating complaint message.
6849 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6850 dwarf2_rnglists_process.
6851 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6852 dwarf2_ranges_process.
6853 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6854 need_ranges_base and update comment appropriately. Also pass die tag
6855 to dwarf2_ranges_read.
6856 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6857 need_ranges_base and update comment appropriately. Also pass die tag
6858 to dwarf2_ranges_process.
6859 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6860 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6861 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6862 need_ranges_base and update comment appropriately. Also pass die tag
6863 to read_attribute_reprocess and dwarf2_ranges_read.
6864 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6865 and update function comment appropriately.
6866 (read_loclist_index): Call read_loclists_rnglists_header instead of
6867 read_loclist_header.
6868 (read_rnglist_index): New function.
6869 (read_attribute_reprocess): Add tag parameter. Add code for
6870 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6871 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6872
3dcc261c
AB
68732020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6874
6875 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6876 being resolved.
6877
ccb9eba6
AB
68782020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6879
6880 * arch-utils.c (show_architecture): Update formatting of messages.
6881
cf88be68
SM
68822020-07-12 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbtypes.h (struct type) <bounds>: Handle array and string
6885 types.
6886 * ada-lang.c (assign_aggregate): Use type::bounds on
6887 array/string type.
6888 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6889 * c-varobj.c (c_number_of_children): Likewise.
6890 (c_describe_child): Likewise.
6891 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6892 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6893 (f_type_print_base): Likewise.
6894 * f-valprint.c (f77_array_offset_tbl): Likewise.
6895 (f77_get_upperbound): Likewise.
6896 (f77_print_array_1): Likewise.
6897 * guile/scm-type.c (gdbscm_type_range): Likewise.
6898 * m2-typeprint.c (m2_array): Likewise.
6899 (m2_is_long_set_of_type): Likewise.
6900 * m2-valprint.c (get_long_set_bounds): Likewise.
6901 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6902 * python/py-type.c (typy_range): Likewise.
6903 * rust-lang.c (rust_internal_print_type): Likewise.
6904 * type-stack.c (type_stack::follow_types): Likewise.
6905 * valarith.c (value_subscripted_rvalue): Likewise.
6906 * valops.c (value_cast): Likewise.
6907
509971ae
SM
69082020-07-12 Simon Marchi <simon.marchi@efficios.com>
6909
6910 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6911 callers to use the equivalent accessor methods.
6912
107406b7
SM
69132020-07-12 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6916 (struct type) <bit_stride>: New method.
6917 (TYPE_BIT_STRIDE): Remove.
6918 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6919
bb789949
SM
69202020-07-12 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6923 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6924 callers to use the equivalent accessor methods instead.
6925
39498edb
SM
69262020-07-12 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6929 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6930 callers to use the equivalent accessor methods instead.
6931
3b606f38
SM
69322020-07-12 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6935 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6936 to use dynamic_prop::kind.
6937
064d9cb9
SM
69382020-07-12 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6941 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6942 to get the bound property's kind and check against
6943 PROP_UNDEFINED.
6944
5537ddd0
SM
69452020-07-12 Simon Marchi <simon.marchi@efficios.com>
6946
6947 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6948 all callers to use type::range_bounds followed by
6949 dynamic_prop::{low,high}.
6950
8c2e4e06
SM
69512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6952
6953 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6954 const_val, set_const_val, baton, set_locexpr, set_loclist,
6955 set_addr_offset, variant_parts, set_variant_parts,
6956 original_type, set_original_type>: New methods.
6957 <kind>: Rename to...
6958 <m_kind>: ... this. Update all users to use the new methods
6959 instead.
6960 <data>: Rename to...
6961 <m_data>: ... this. Update all users to use the new methods
6962 instead.
6963
7c6f2712
SM
69642020-07-12 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * gdbtypes.c (get_discrete_bounds): Return failure if
6967 the range type's bounds are not both defined and constant
6968 values.
6969 (get_array_bounds): Update comment. Remove undefined bound check.
6970
599088e3
SM
69712020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6972
6973 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6974 the type::bounds method directly.
6975
c4dfcb36
SM
69762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6979 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6980 are used to set the range type's bounds to use set_bounds.
6981
0a278aa7
PW
69822020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6983
6984 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6985
cce20f10
PA
69862020-07-10 Pedro Alves <pedro@palves.net>
6987
6988 * gdbthread.h (inferior_ref): Define.
6989 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6990 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6991 * thread.c
6992 (scoped_restore_current_thread::restore):
6993 Adjust to gdb::ref_ptr.
6994 (scoped_restore_current_thread::~scoped_restore_current_thread):
6995 Remove manual decref handling.
6996 (scoped_restore_current_thread::scoped_restore_current_thread):
6997 Adjust to use
6998 inferior_ref::new_reference/thread_info_ref::new_reference.
6999 Incref the thread before calling get_frame_id instead of after.
7000 Let TARGET_CLOSE_ERROR propagate.
7001
6d7aa592
PA
70022020-07-10 Pedro Alves <pedro@palves.net>
7003
7004 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7005 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7006 NOT_AVAILABLE_ERROR.
7007 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7008 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7009
b3e3a4c1
SM
70102020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7011 Pedro Alves <pedro@palves.net>
7012
7013 PR gdb/26199
7014 * infrun.c (threads_are_resumed_pending_p): Delete.
7015 (do_target_wait): Remove threads_are_executing and
7016 threads_are_resumed_pending_p checks from the inferior_matches
7017 lambda. Update comments.
7018
d6cc5d98
PA
70192020-07-10 Pedro Alves <pedro@palves.net>
7020
7021 PR gdb/26199
7022 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7023 executing threads.
7024
7d3badc6
PA
70252020-07-10 Pedro Alves <pedro@palves.net>
7026
7027 PR gdb/26199
7028 * infrun.c (handle_no_resumed): Handle multiple targets.
7029
42bd97a6
PA
70302020-07-10 Pedro Alves <pedro@palves.net>
7031
7032 PR gdb/26199
7033 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7034 target_is_async_p.
7035
43667cc6
PA
70362020-07-10 Pedro Alves <pedro@palves.net>
7037
7038 PR gdb/26199
7039 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7040 threads, not all threads.
7041
96118d11
PA
70422020-07-10 Pedro Alves <pedro@palves.net>
7043
7044 PR gdb/26199
7045 * remote.c (remote_target::open_1): Pass remote target pointer as
7046 data to create_async_event_handler.
7047 (remote_async_inferior_event_handler): Mark async event handler
7048 before returning if the remote target still has either pending
7049 events or unacknowledged notifications.
7050
54904d81
JB
70512020-07-10 John Baldwin <jhb@FreeBSD.org>
7052
7053 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7054 declaration.
7055 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7056 function.
7057
f37e5866
JB
70582020-07-09 John Baldwin <jhb@FreeBSD.org>
7059
7060 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7061 inferior_ptid.
7062
fc238d4a
JB
70632020-07-09 John Baldwin <jhb@FreeBSD.org>
7064
7065 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7066 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7067 AT_FREEBSD_PS_STRINGS.
7068
6e2469ff
HD
70692020-07-08 Hannes Domani <ssbssa@yahoo.de>
7070
7071 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7072 of debugfile path on Windows.
7073
d1076c41
JB
70742020-07-08 John Baldwin <jhb@FreeBSD.org>
7075
7076 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7077 argument to 'data'.
7078
15f3b077
TT
70792020-07-08 Tom Tromey <tromey@adacore.com>
7080
7081 * ada-lang.c (ada_exception_message_1): Use read_memory.
7082
9fc501fd
AB
70832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 PR python/22748
7086 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7087 special handling for inline frames.
7088 * findvar.c (value_of_register_lazy): Skip inline frames when
7089 creating lazy register values.
7090 * frame.c (frame_id_computed_p): Delete definition.
7091 * frame.h (frame_id_computed_p): Delete declaration.
7092
64cb3757
AB
70932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * NEWS: Mention additions to Python API.
7096 * python/py-arch.c (archpy_register_groups): New function.
7097 (arch_object_methods): Add 'register_groups' method.
7098 * python/py-registers.c (reggroup_iterator_object): New struct.
7099 (reggroup_object): New struct.
7100 (gdbpy_new_reggroup): New function.
7101 (gdbpy_reggroup_to_string): New function.
7102 (gdbpy_reggroup_name): New function.
7103 (gdbpy_reggroup_iter): New function.
7104 (gdbpy_reggroup_iter_next): New function.
7105 (gdbpy_new_reggroup_iterator): New function
7106 (gdbpy_initialize_registers): Register new types.
7107 (reggroup_iterator_object_type): Define new Python type.
7108 (gdbpy_reggroup_getset): New static global.
7109 (reggroup_object_type): Define new Python type.
7110 * python/python-internal.h
7111
0f767f94
AB
71122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7115 * python/py-arch.c (archpy_registers): New function.
7116 (arch_object_methods): Add 'registers' method.
7117 * python/py-registers.c: New file.
7118 * python/python-internal.h
7119 (gdbpy_new_register_descriptor_iterator): Declare.
7120 (gdbpy_initialize_registers): Declare.
7121 * python/python.c (do_start_initialization): Call
7122 gdbpy_initialize_registers.
7123 * NEWS: Mention additions to the Python API.
7124
87dbc774
AB
71252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * NEWS: Mention new Python API method.
7128 * python/py-unwind.c (pending_framepy_architecture): New function.
7129 (pending_frame_object_methods): Add architecture method.
7130
3bc98c0c
AB
71312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * gdbarch.c: Regenerate.
7134 * gdbarch.h: Regenerate.
7135 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7136 (gdbarch_data): Use internal_error for the case where
7137 deprecated_set_gdbarch_data was originally needed.
7138 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7139 and use passed in obstack.
7140 (libunwind_frame_set_descr): Should no longer get back NULL from
7141 gdbarch_data.
7142 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7143 type.
7144 * user-regs.c (user_regs_init): Update parameters, and use passed
7145 in obstack.
7146 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7147 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7148
d8cc8af6
TV
71492020-07-06 Tom de Vries <tdevries@suse.de>
7150
7151 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7152 End-Of-Sequence in lte_is_less_than.
7153 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7154 "gdb: Don't reorder line table entries too much when sorting".
7155
947f7597
TV
71562020-07-06 Tom de Vries <tdevries@suse.de>
7157
7158 PR tui/26205
7159 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7160
1e7c1b22
TV
71612020-07-05 Tom de Vries <tdevries@suse.de>
7162
7163 PR build/26187
7164 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7165 std::uncaught_exceptions instead of deprecated
7166 std::uncaught_exception.
7167
a36158ec
SM
71682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7169
7170 * macroexp.h (macro_stringify): Return
7171 gdb::unique_xmalloc_ptr<char>.
7172 * macroexp.c (macro_stringify): Likewise.
7173 * macrotab.c (fixup_definition): Update.
7174
14d960c8
SM
71752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7178 (lex_one_token): Update.
7179 * macroexp.c (struct macro_buffer) <release>: Return
7180 gdb::unique_xmalloc_ptr<char>.
7181 (macro_stringify): Update.
7182 (macro_expand): Update.
7183 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7184 * macroexp.h (macro_expand_next): Likewise.
7185
211d5b1c
SM
71862020-07-02 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * macroexp.h (macro_lookup_ftype): Remove.
7189 (macro_expand, macro_expand_once, macro_expand_next): Remove
7190 lookup function parameters, add scope parameter.
7191 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7192 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7193 * macroscope.h (standard_macro_lookup): Change parameter type
7194 to macro_scope.
7195 * macroscope.c (standard_macro_lookup): Likewise.
7196 * c-exp.y (lex_one_token): Update.
7197 * macrocmd.c (macro_expand_command): Likewise.
7198 (macro_expand_once_command): Likewise.
7199
b1a35af2
SM
72002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * inf-loop.c (inferior_event_handler): Remove client_data param.
7203 * inf-loop.h (inferior_event_handler): Likewise.
7204 * infcmd.c (step_1): Adjust.
7205 * infrun.c (proceed): Adjust.
7206 (fetch_inferior_event): Remove client_data param.
7207 (infrun_async_inferior_event_handler): Adjust.
7208 * infrun.h (fetch_inferior_event): Remove `void *` param.
7209 * linux-nat.c (handle_target_event): Adjust.
7210 * record-btrace.c (record_btrace_handle_async_inferior_event):
7211 Adjust.
7212 * record-full.c (record_full_async_inferior_event_handler):
7213 Adjust.
7214 * remote.c (remote_async_inferior_event_handler): Adjust.
7215
1cdf9e33
TT
72162020-07-01 Tom Tromey <tom@tromey.com>
7217
7218 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7219 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7220
32c1e210
TT
72212020-07-01 Tom Tromey <tom@tromey.com>
7222
7223 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7224 tui_gen_win_info.
7225 (tui_win_info::make_window): Merge with
7226 tui_gen_win_info::make_window.
7227 (tui_win_info::make_visible): Move from tui_gen_win_info.
7228 * tui/tui-win.c (tui_win_info::max_width): Move from
7229 tui_gen_win_info.
7230 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7231 type.
7232 <window_factory>: Likewise.
7233 * tui/tui-layout.c (tui_win_info::resize): Move from
7234 tui_gen_win_info.
7235 (make_standard_window): Change return type.
7236 (get_locator_window, tui_get_window_by_name): Likewise.
7237 (tui_layout_window::apply): Remove a cast.
7238 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7239 (struct tui_win_info): Merge with tui_gen_win_info.
7240 (struct tui_gen_win_info): Remove.
7241
a30cb6da
TT
72422020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-stack.h (struct tui_locator_window): Derive from
7245 tui_win_info.
7246 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7247 <can_box>: New method.
7248
1eb2161f
TT
72492020-07-01 Tom Tromey <tom@tromey.com>
7250
7251 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7252
7134f2eb
TT
72532020-07-01 Tom Tromey <tom@tromey.com>
7254
7255 * tui/tui-regs.c (tui_data_window::display_registers_from)
7256 (tui_data_window::display_registers_from)
7257 (tui_data_window::first_data_item_displayed)
7258 (tui_data_window::delete_data_content_windows): Update.
7259 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7260 Remove.
7261 (tui_data_window::check_register_values): Update.
7262 (tui_data_item_window::rerender): Add parameters. Update.
7263 (tui_data_item_window::refresh_window): Remove.
7264 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7265 virtual.
7266 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7267 tui_gen_win_info.
7268 <refresh_window, max_height, min_height>: Remove.
7269 <rerender>: Add parameters.
7270 <x, y, visible>: New members.
7271 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7272 <m_item_width>: New member.
7273
22b7b041
TT
72742020-07-01 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-regs.c (tui_data_window::show_register_group)
7277 (tui_data_window::check_register_values): Update.
7278 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7279 from item_no.
7280
c9753adb
TT
72812020-07-01 Tom Tromey <tom@tromey.com>
7282
7283 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7284 useless "if".
7285
9ab26b4a
TT
72862020-07-01 Tom Tromey <tom@tromey.com>
7287
7288 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7289 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7290
e555083f
TT
72912020-07-01 Tom Tromey <tom@tromey.com>
7292
7293 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7294 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7295 (struct tui_line_or_address): Move from tui-data.h.
7296 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7297 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7298 (tui_cmd_window, tui_source_window_base, tui_source_window)
7299 (tui_disasm_window): Don't declare.
7300 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7301 to tui-winsource.h.
7302 (SINGLE_KEY): Move to tui-stack.c.
7303
7a02bab7
TT
73042020-07-01 Tom Tromey <tom@tromey.com>
7305
7306 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7307 std::string.
7308 * tui/tui-regs.c (class tab_expansion_file): New.
7309 (tab_expansion_file::write): New method.
7310 (tui_register_format): Change return type. Use
7311 tab_expansion_file.
7312 (tui_get_register, tui_data_window::display_registers_from)
7313 (tui_data_item_window::rerender): Update.
7314 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7315 * tui/tui-io.c (tui_expand_tabs): Remove.
7316
ea68593b
TT
73172020-07-01 Tom Tromey <tom@tromey.com>
7318
7319 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7320
a8caed5d
FS
73212020-07-01 Fangrui Song <maskray@google.com>
7322
7323 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7324
9cdf9820
AKS
73252020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7326
7327 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7328 forms for DW_AT_associated and DW_AT_allocated attributes,
7329 which is already checked in function attr_to_dynamic_prop.
7330
a1520ad8
TT
73312020-06-30 Tom Tromey <tromey@adacore.com>
7332
7333 * dwarf2/read.c (quirk_rust_enum): Correctly call
7334 alloc_rust_variant for default-less enum.
7335
5ac58899
TT
73362020-06-30 Tom Tromey <tromey@adacore.com>
7337
7338 PR build/26183:
7339 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7340 gdb::to_string.
7341
19b187a9
SM
73422020-06-29 Simon Marchi <simon.marchi@efficios.com>
7343
7344 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7345 * gdbarch.h: Re-generate.
7346
cd4c4c07
TT
73472020-06-28 Tom Tromey <tom@tromey.com>
7348
7349 * command.h (cmd_types): Remove.
7350 (cmd_type): Don't declare.
7351 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7352 typedef.
7353 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7354 * cli/cli-decode.c (cmd_type): Remove.
7355
05779d57
PA
73562020-06-27 Pedro Alves <palves@redhat.com>
7357
7358 * fork-child.c (prefork_hook): Adjust.
7359 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7360 Delete.
7361 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7362 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7363 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7364 Remove declarations.
7365 (struct inferior) <set_tty, tty>: New methods.
7366 (struct inferior) <terminal>: Rename to ...
7367 (struct inferior) <m_terminal>: ... this and make private.
7368 * main.c (captured_main_1): Adjust.
7369 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7370 (mi_cmd_inferior_tty_show): Adjust.
7371 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7372 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7373
1776e3e5
NA
73742020-06-26 Nick Alcock <nick.alcock@oracle.com>
7375
7376 * configure.ac: Add --enable-libctf: handle --disable-static
7377 properly.
7378 * acinclude.m4: sinclude ../config/enable.m4.
7379 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7380 (LIBCTF): Substitute in.
7381 (CTF_DEPS): New, likewise.
7382 (CLIBS): libctf needs symbols from libbfd: move earlier.
7383 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7384 flags.
7385 * ctfread.c: Surround in ENABLE_LIBCTF.
7386 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7387 * configure: Regenerate.
7388 * config.in: Likewise.
7389
58373b80
SM
73902020-06-25 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7393
277474ee
SM
73942020-06-25 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * inferior.h (struct inferior) <terminal>: Change type to
7397 gdb::unique_xmalloc_ptr<char>.
7398 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7399 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7400 field, adjust to unique pointer.
7401 (get_inferior_io_terminal): Adjust to unique pointer.
7402
6d74da72
AB
74032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7404
7405 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7406 registers, not just the known core set of registers.
7407
2e52d038
AB
74082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7411 fflags, frm, and fcsr registers.
7412 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7413 restore groups.
7414 (riscv_tdesc_unknown_reg): New function.
7415 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7416 tdesc_use_registers.
7417 * riscv-tdep.h (struct gdbarch_tdep): Add
7418 unknown_csrs_first_regnum, unknown_csrs_count,
7419 duplicate_fflags_regnum, duplicate_frm_regnum, and
7420 duplicate_fcsr_regnum fields.
7421
be64fd07
AB
74222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7425 callback, use the callback (when not null) to help number unknown
7426 registers.
7427 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7428 (tdesc_use_registers): Add extra parameter to declaration.
7429
3b9fce96
AB
74302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7433 in the file.
7434 (class riscv_pending_register_alias): Likewise.
7435 (riscv_register_feature::register_info): Change 'required_p' field
7436 to 'required', and change its type. Add 'check' member function.
7437 (riscv_register_feature::register_info::check): Define new member
7438 function.
7439 (riscv_xreg_feature): Change initialisation of 'required' field.
7440 (riscv_freg_feature): Likewise.
7441 (riscv_virtual_feature): Likewise.
7442 (riscv_csr_feature): Likewise.
7443 (riscv_check_tdesc_feature): Take extra parameter, the csr
7444 tdesc_feature, rewrite the function to use the new
7445 riscv_register_feature::register_info::check function.
7446 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7447
865bad26
AB
74482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7449
7450 * features/Makefile: Remove all references to the deleted files
7451 below.
7452 * features/riscv/32bit-csr.c: Deleted.
7453 * features/riscv/32bit-csr.xml: Deleted.
7454 * features/riscv/64bit-csr.c: Deleted.
7455 * features/riscv/64bit-csr.xml: Deleted.
7456 * features/riscv/rebuild-csr-xml.sh: Deleted.
7457
ed69cbc8
AB
74582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7459
7460 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7461 whitespace error for declaration of names member variable.
7462 (struct riscv_register_feature): Add new prefer_first_name member
7463 variable, and fix whitespace error in declaration of registers.
7464 (riscv_xreg_feature): Initialize prefer_first_name field.
7465 (riscv_freg_feature): Likewise.
7466 (riscv_virtual_feature): Likewise.
7467 (riscv_csr_feature): Likewise.
7468 (riscv_register_name): Expand on comments. Remove register name
7469 modifications for CSR and virtual registers.
7470
4445e8f5
AB
74712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7472
7473 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7474 errors.
7475
767a879e
AB
74762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7477
7478 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7479 riscv-opc.h.
7480 (class riscv_pending_register_alias): New class.
7481 (riscv_check_tdesc_feature): Take vector of pending aliases and
7482 populate it as appropriate.
7483 (riscv_setup_register_aliases): Delete.
7484 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7485 to riscv_check_tdesc_feature in all cases. Use the vector to
7486 create the register aliases.
7487
bb6e55f3
RO
74882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7489
7490 * sol2-tdep.c (sol2_static_transform_name): Remove.
7491 (sol2_init_abi): Don't register it.
7492 * gdbarch.sh (static_transform_name): Remove.
7493 * gdbarch.c, gdbarch.h: Regenerate.
7494
7495 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7496 gdbarch_static_transform_name.
7497 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7498 * stabsread.c (define_symbol) <'X'>: Remove.
7499 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7500 handling.
7501 <'V'>: Likewise.
7502 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7503 <'S'>: Remove call to gdbarch_static_transform_name.
7504
c6d36836
RO
75052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7506
7507 * procfs.c (procfs_pre_trace): New function.
7508 (procfs_target::create_inferior): Pass it to fork_inferior.
7509
a7e6196b
RO
75102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7511
7512 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7513 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7514 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7515 sol2-tdep.o, sparc-sol2-tdep.o.
7516 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7517 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7518 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7519 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7520
d412e696
RO
75212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7522
7523 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7524 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7525 Call sol2_init_abi.
7526 Remove calls to set_gdbarch_skip_solib_resolver,
7527 set_gdbarch_core_pid_to_str.
7528 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7529 (i386_sol2_static_transform_name): Remove.
7530 (i386_sol2_init_abi): Call sol2_init_abi.
7531 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7532 set_gdbarch_static_transform_name,
7533 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7534 Use sol2_sigtramp_p.
7535 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7536 (sol2_sigtramp_p): New function.
7537 (sol2_static_transform_name): New function.
7538 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7539 (sol2_init_abi): New function.
7540 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7541 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7542 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7543 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7544 (sparc_sol2_static_transform_name): Remove.
7545 (sparc32_sol2_init_abi): Call sol2_init_abi.
7546 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7547 set_gdbarch_static_transform_name,
7548 set_gdbarch_skip_solib_resolver,
7549 set_gdbarch_core_pid_to_str.
7550 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7551 (sparc_sol2_static_transform_name): Remove
7552 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7553 call sol2_sigtramp_p.
7554 (sparc64_sol2_init_abi): Call sol2_init_abi.
7555 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7556 set_gdbarch_static_transform_name,
7557 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7558
a8654e7d
PW
75592020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7560
7561 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7562 * exec.c (validate_exec_file): If from_tty, set both
7563 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7564 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7565 and from_tty, unconditionally ask a confirmation.
7566
caa7fd04
AB
75672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7568
7569 * target-descriptions.c (tdesc_architecture_name): Protect against
7570 NULL pointer dereference.
7571 (maint_print_xml_tdesc_cmd): New function.
7572 (_initialize_target_descriptions): Register new 'maint print
7573 xml-tdesc' command and give it the filename completer.
7574 * NEWS: Mention new 'maint print xml-tdesc' command.
7575
fbf42f4e
AB
75762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7577
7578 * target-descriptions.c (class tdesc_compatible_info): New class.
7579 (struct target_desc): Change type of compatible vector.
7580 (tdesc_compatible_p): Update for change in type of
7581 target_desc::compatible.
7582 (tdesc_compatible_info_list): New function.
7583 (tdesc_compatible_info_arch_name): New function.
7584 (tdesc_add_compatible): Update for change in type of
7585 target_desc::compatible.
7586 (print_c_tdesc::visit_pre): Likewise.
7587
20821f4e
AB
75882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7591 whitespace to underscore.
7592 (maint_print_c_tdesc_cmd): Use fake filename for target
7593 descriptions that came from the target.
7594 (_initialize_target_descriptions): Add filename command completion
7595 for 'maint print c-tdesc'.
7596
1fb5ee62
SM
75972020-06-23 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7600 lines.
7601
fc3ecb3e
SM
76022020-06-23 Simon Marchi <simon.marchi@efficios.com>
7603
7604 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7605 lines.
7606 (dwarf2_find_location_expression): Likewise.
7607 (call_site_parameter_matches): Likewise.
7608 (dwarf2_compile_expr_to_ax): Likewise.
7609 (disassemble_dwarf_expression): Likewise.
7610 (loclist_describe_location): Likewise.
7611
236ef034
PA
76122020-06-23 Pedro Alves <palves@redhat.com>
7613
7614 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7615 progspace-and-thread.h. Include scoped-mock-context.h instead.
7616 (register_to_value_test): Use scoped_mock_context.
7617 * regcache.c: Include "scoped-mock-context.h".
7618 (cooked_read_test): Don't error out if a target is already pushed.
7619 Use scoped_mock_context. Adjust.
7620 * scoped-mock-context.h: New file.
7621
39e7ecca
AB
76222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7625 initializer.
7626 (ada_language::is_string_type_p): New member function.
7627 * c-lang.c (c_language_data): Delete la_is_string_type_p
7628 initializer.
7629 (cplus_language_data): Likewise.
7630 (asm_language_data): Likewise.
7631 (minimal_language_data): Likewise.
7632 * d-lang.c (d_language_data): Likewise.
7633 * f-lang.c (f_is_string_type_p): Delete function, implementation
7634 moved to f_language::is_string_type_p.
7635 (f_language_data): Delete la_is_string_type_p initializer.
7636 (f_language::is_string_type_p): New member function,
7637 implementation from f_is_string_type_p.
7638 * go-lang.c (go_is_string_type_p): Delete function, implementation
7639 moved to go_language::is_string_type_p.
7640 (go_language_data): Delete la_is_string_type_p initializer.
7641 (go_language::is_string_type_p): New member function,
7642 implementation from go_is_string_type_p.
7643 * language.c (language_defn::is_string_type_p): Define new member
7644 function.
7645 (default_is_string_type_p): Make static, add comment copied from
7646 header file.
7647 (unknown_language_data): Delete la_is_string_type_p initializer.
7648 (unknown_language::is_string_type_p): New member function.
7649 (auto_language_data): Delete la_is_string_type_p initializer.
7650 (auto_language::is_string_type_p): New member function.
7651 * language.h (language_data): Delete la_is_string_type_p field.
7652 (language_defn::is_string_type_p): Declare new function.
7653 (default_is_string_type_p): Delete desclaration, move comment to
7654 definition.
7655 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7656 moved to m2_language::is_string_type_p.
7657 (m2_language_data): Delete la_is_string_type_p initializer.
7658 (m2_language::is_string_type_p): New member function,
7659 implementation from m2_is_string_type_p.
7660 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7661 initializer.
7662 * opencl-lang.c (opencl_language_data): Likewise.
7663 * p-lang.c (pascal_is_string_type_p): Delete function,
7664 implementation moved to pascal_language::is_string_type_p.
7665 (pascal_language_data): Delete la_is_string_type_p initializer.
7666 (pascal_language::is_string_type_p): New member function,
7667 implementation from pascal_is_string_type_p.
7668 * rust-lang.c (rust_is_string_type_p): Delete function,
7669 implementation moved to rust_language::is_string_type_p.
7670 (rust_language_data): Delete la_is_string_type_p initializer.
7671 (rust_language::is_string_type_p): New member function,
7672 implementation from rust_is_string_type_p.
7673 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7674 is_string_type_p.
7675
4ffc13fb
AB
76762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * ada-lang.c (ada_language_data): Delete la_print_typedef
7679 initializer.
7680 (ada_language::print_typedef): New member function.
7681 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7682 (cplus_language_data): Likewise.
7683 (asm_language_data): Likewise.
7684 (minimal_language_data): Likewise.
7685 * d-lang.c (d_language_data): Likewise.
7686 * f-lang.c (f_language_data): Likewise.
7687 (f_language::print_typedef): New member function.
7688 * go-lang.c (go_language_data): Delete la_print_typedef
7689 initializer.
7690 * language.c (language_defn::print_typedef): Define member
7691 function.
7692 (unknown_language_data): Delete la_print_typedef initializer.
7693 (unknown_language::print_typedef): New member function.
7694 (auto_language_data): Delete la_print_typedef initializer.
7695 (auto_language::print_typedef): New member function.
7696 * language.h (language_data): Delete la_print_typedef field.
7697 (language_defn::print_typedef): Declare new member function.
7698 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7699 (default_print_typedef): Delete declaration.
7700 * m2-lang.c (m2_language_data): Delete la_print_typedef
7701 initializer.
7702 (m2_language::print_typedef): New member function.
7703 * objc-lang.c (objc_language_data): Delete la_print_typedef
7704 initializer.
7705 * opencl-lang.c (opencl_language_data): Likewise.
7706 * p-lang.c (pascal_language_data): Likewise.
7707 (pascal_language::print_typedef): New member function.
7708 * rust-lang.c (rust_print_typedef): Delete function,
7709 implementation moved to rust_language::print_typedef.
7710 (rust_language): Delete la_print_typedef initializer.
7711 (rust_language::print_typedef): New member function,
7712 implementation from rust_print_typedef.
7713 * typeprint.c (default_print_typedef): Delete.
7714
d711ee67
AB
77152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7716
7717 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7718 (ada_language::printstr): New member function.
7719 * c-lang.c (c_language_data): Delete la_printstr initializer.
7720 (cplus_language_data): Likewise.
7721 (asm_language_data): Likewise.
7722 (minimal_language_data): Likewise.
7723 * d-lang.c (d_language_data): Likewise.
7724 * f-lang.c (f_printstr): Rename to f_language::printstr.
7725 (f_language_data): Delete la_printstr initializer.
7726 (f_language::printstr): New member function, implementation from
7727 f_printstr.
7728 * go-lang.c (go_language_data): Delete la_printstr initializer.
7729 * language.c (language_defn::printstr): Define new member
7730 function.
7731 (unk_lang_printstr): Delete.
7732 (unknown_language_data): Delete la_printstr initializer.
7733 (unknown_language::printstr): New member function.
7734 (auto_language_data): Delete la_printstr initializer.
7735 (auto_language::printstr): New member function.
7736 * language.h (language_data): Delete la_printstr field.
7737 (language_defn::printstr): Declare new member function.
7738 (LA_PRINT_STRING): Update call to printstr.
7739 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7740 (m2_language_data): Delete la_printstr initializer.
7741 (m2_language::printstr): New member function, implementation from
7742 m2_printstr.
7743 * objc-lang.c (objc_language_data): Delete la_printstr
7744 initializer.
7745 * opencl-lang.c (opencl_language_data): Likewise.
7746 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7747 (pascal_language_data): Delete la_printstr initializer.
7748 (pascal_language::printstr): New member function, implementation
7749 from pascal_printstr.
7750 * p-lang.h (pascal_printstr): Delete declaration.
7751 * rust-lang.c (rust_printstr): Update header comment.
7752 (rust_language_data): Delete la_printstr initializer.
7753 (rust_language::printstr): New member function.
7754
52b50f2c
AB
77552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7758 (ada_language::printchar): New member function.
7759 * c-lang.c (c_language_data): Delete la_printchar initializer.
7760 (cplus_language_data): Likewise.
7761 (asm_language_data): Likewise.
7762 (minimal_language_data): Likewise.
7763 * d-lang.c (d_language_data): Likewise.
7764 * f-lang.c (f_printchar): Rename to f_language::printchar.
7765 (f_language_data): Delete la_printchar initializer.
7766 (f_language::printchar): New member function, implementation from
7767 f_printchar.
7768 * go-lang.c (go_language_data): Delete la_printchar initializer.
7769 * language.c (unk_lang_printchar): Delete.
7770 (language_defn::printchar): Define new member function.
7771 (unknown_language_data): Delete la_printchar initializer.
7772 (unknown_language::printchar): New member function.
7773 (auto_language_data): Delete la_printchar initializer.
7774 (auto_language::printchar): New member function.
7775 * language.h (language_data): Delete la_printchar field.
7776 (language_defn::printchar): Declare new member function.
7777 (LA_PRINT_CHAR): Update call to printchar.
7778 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7779 (m2_language::printchar): New member function.
7780 * objc-lang.c (objc_language_data): Delete la_printchar
7781 initializer.
7782 * opencl-lang.c (opencl_language_data): Likewise.
7783 * p-lang.c (pascal_language_data): Delete la_printchar
7784 initializer.
7785 (pascal_language::printchar): New member function.
7786 * rust-lang.c (rust_printchar): Rename to
7787 rust_language::printchar.
7788 (rust_language_data): Delete la_printchar initializer.
7789 (rust_language::printchar): New member function, implementation
7790 from rust_printchar.
7791
ec8cec5b
AB
77922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7795 (ada_language_data): Delete la_emitchar initializer.
7796 (ada_language::emitchar): New member function, implementation from
7797 emit_char.
7798 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7799 (cplus_language_data): Likewise.
7800 (asm_language_data): Likewise.
7801 (minimal_language_data): Likewise.
7802 * d-lang.c (d_language_data): Likewise.
7803 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7804 (f_language_data): Delete la_emitchar initializer.
7805 (f_language::emitchar): New member function, implementation from
7806 f_emit_char.
7807 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7808 * language.c (unk_lang_emit_char): Delete.
7809 (language_defn::emitchar): New member function definition.
7810 (unknown_language_data): Delete la_emitchar initializer.
7811 (unknown_language::emitchar): New member function.
7812 (auto_language_data): Delete la_emitchar initializer.
7813 (auto_language::emitchar): New member function.
7814 * language.h (language_data): Delete la_emitchar field.
7815 (language_defn::emitchar): New member field declaration.
7816 (LA_EMIT_CHAR): Update call to emitchar.
7817 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7818 (m2_language_data): Delete la_emitchar initializer.
7819 (m2_language::emitchar): New member function, implementation from
7820 m2_emit_char.
7821 * objc-lang.c (objc_language_data): Delete la_emitchar
7822 initializer.
7823 * opencl-lang.c (opencl_language_data): Likewise.
7824 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7825 (pascal_language_data): Delete la_emitchar initializer.
7826 (pascal_language::emitchar): New member function, implementation
7827 from pascal_emit_char.
7828 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7829 (rust_language_data): Delete la_emitchar initializer.
7830 (rust_language::emitchar): New member function, implementation
7831 from rust_emitchar.
7832
1bf9c363
AB
78332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7836 (ada_language_data): Delete la_post_parser initializer.
7837 (ada_language::post_parser): New member function.
7838 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7839 (cplus_language_data): Likewise.
7840 (asm_language_data): Likewise.
7841 (minimal_language_data): Likewise.
7842 * d-lang.c (d_language_data): Likewise.
7843 * f-lang.c (f_language_data): Likewise.
7844 * go-lang.c (go_language_data): Likewise.
7845 * language.c (unknown_language_data): Likewise.
7846 (auto_language_data): Likewise.
7847 * language.h (language_data): Delete la_post_parser field.
7848 (language_defn::post_parser): New member function.
7849 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7850 * objc-lang.c (objc_language_data): Likewise.
7851 * opencl-lang.c (opencl_language_data): Likewise.
7852 * p-lang.c (pascal_language_data): Likewise.
7853 * parse.c (parse_exp_in_context): Update call to post_parser.
7854 (null_post_parser): Delete definition.
7855 * parser-defs.h (null_post_parser): Delete declaration.
7856 * rust-lang.c (rust_language_data): Delete la_post_parser
7857 initializer.
7858
87afa652
AB
78592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7860
7861 * ada-lang.c (parse): Rename to ada_language::parser.
7862 (ada_language_data): Delete la_parser initializer.
7863 (ada_language::parser): New member function, implementation from
7864 parse.
7865 * c-lang.c (c_language_data): Delete la_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 (d_language::parser): New member function.
7871 * f-lang.c (f_language_data): Delete la_parser initializer.
7872 (f_language::parser): New member function.
7873 * go-lang.c (go_language_data): Delete la_parser initializer.
7874 (go_language::parser): New member function.
7875 * language.c (unk_lang_parser): Delete.
7876 (language_defn::parser): Define new member function.
7877 (unknown_language_data): Delete la_parser initializer.
7878 (unknown_language::parser): New member function.
7879 (auto_language_data): Delete la_parser initializer.
7880 (auto_language::parser): New member function.
7881 * language.h (language_data): Delete la_parser field.
7882 (language_defn::parser): Declare new member function.
7883 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7884 (m2_language::parser): New member function.
7885 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7886 * opencl-lang.c (opencl_language_data): Likewise.
7887 * p-lang.c (pascal_language_data): Likewise.
7888 (pascal_language::parser): New member function.
7889 * parse.c (parse_exp_in_context): Update call to parser.
7890 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7891 (rust_language::parser): New member function.
7892
37825800
AB
78932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * top.c (print_gdb_configuration): Print --with-python-libdir
7896 configuration value.
7897
5b860c93
PW
78982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7899
7900 * NEWS: Mention change to the alias command.
7901
cf00cd6f
PW
79022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7903
7904 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7905 (alias_command_completer)
7906 (make_alias_options_def_group): New functions.
7907 (alias_opts, alias_option_defs): New struct and array.
7908 (alias_usage_error): Update usage.
7909 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7910 Use option framework.
7911 (_initialize_cli_cmds): Update alias command help.
7912 Update aliases command help.
7913 (show_user):
7914 Add NULL for new default_args lookup_cmd argument.
7915 (valid_command_p): Rename to validate_aliased_command.
7916 Add NULL for new default_args lookup_cmd argument. Verify that the
7917 aliased_command has no default args.
7918 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7919 (lookup_cmd_1, lookup_cmd): New argument default_args.
7920 (add_alias_cmd):
7921 Add NULL for new default_args lookup_cmd argument.
7922 (print_help_for_command): Show default args under the layout
7923 alias some_alias = some_aliased_cmd some_alias_default_arg.
7924 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7925 xfree default_args in destructor.
7926 * cli/cli-script.c (process_next_line, do_define_command):
7927 Add NULL for new default_args lookup_cmd argument.
7928 * command.h: Declare new default_args argument in lookup_cmd
7929 and lookup_cmd_1.
7930 * completer.c (complete_line_internal_1):
7931 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7932 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7933 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7934 Likewise.
7935 * infcmd.c (_initialize_infcmd): Likewise.
7936 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7937 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7938 * python/py-param.c (add_setshow_generic): Likewise.
7939 * remote.c (_initialize_remote): Likewise.
7940 * top.c (execute_command): Prepend default_args if command has some.
7941 (set_verbose):
7942 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7943 * tracepoint.c (validate_actionline, encode_actions_1):
7944 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7945
bd920864
TBA
79462020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7947
7948 * jit.c (jit_read_descriptor): Use bool as the return type.
7949 (jit_breakpoint_re_set_internal): Use bool as the return type.
7950 Invert the return value logic; return true if the jit breakpoint
7951 has been successfully initialized.
7952 (jit_inferior_init): Update the call to
7953 jit_breakpoint_re_set_internal.
7954
f8098322
PA
79552020-06-22 Pedro Alves <palves@redhat.com>
7956
7957 PR gdb/25939
7958 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7959 Use the current inferior instead. Don't return
7960 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7961 wait again.
7962 * sol-thread.c (sol_thread_target::wait): Don't reference
7963 inferior_ptid.
7964 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7965 (sol_update_thread_list_callback): Use the current inferior's pid
7966 instead of inferior_ptid.
7967
196535a6
RO
79682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7969
7970 * procfs.c: Cleanup many comments.
7971
7972 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7973 (AFTER_WATCHFLAG): Replace by value.
7974
7975 (MAIN_PROC_NAME_FORMAT): Inline ...
7976 (create_procinfo): ... here.
7977
7978 (procfs_debug_inferior): Remove SYS_exec handling.
7979 (syscall_is_exec): Likewise.
7980 (procfs_set_exec_trap): Likewise.
7981
7982 (syscall_is_lwp_exit): Inline in callers.
7983 (syscall_is_exit): Likewise.
7984 (syscall_is_exec): Likewise.
7985 (syscall_is_lwp_create): Likewise.
7986
7987 (invalidate_cache): Remove #if 0 code.
7988
7989 (make_signal_thread_runnable): Remove.
7990 (procfs_target::resume): Remove #if 0 code.
7991
cf6f3e86
RO
79922020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7993
7994 PR gdb/25939
7995 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7996 call ...
7997 (procfs_target::create_inferior): ... here.
7998
48e9cc84
PW
79992020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8000
8001 * exec.c (validate_exec_file): Ensure the build-id is up to
8002 date by calling reopen_exec_file (that checks file timestamp
8003 to decide to re-read the file).
8004
3922b302
PA
80052020-06-18 Pedro Alves <palves@redhat.com>
8006
8007 PR gdb/25412
8008 * gdbthread.h (delete_thread, delete_thread_silent)
8009 (find_thread_ptid): Update comments.
8010 * thread.c (current_thread_): New global.
8011 (is_current_thread): Move higher, and reimplement.
8012 (inferior_thread): Reimplement.
8013 (set_thread_exited): Use bool. Add assertions.
8014 (add_thread_silent): Simplify thread-reuse handling by always
8015 calling delete_thread.
8016 (delete_thread): Remove intro comment.
8017 (find_thread_ptid): Skip exited threads.
8018 (switch_to_thread_no_regs): Write to current_thread_.
8019 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8020 INFERIOR_PTID. Clear current_thread_.
8021
6dbdab44
PA
80222020-06-18 Pedro Alves <palves@redhat.com>
8023
8024 * aix-thread.c (pd_update): Use switch_to_thread.
8025
2da4b788
PA
80262020-06-18 Pedro Alves <palves@redhat.com>
8027
8028 * ravenscar-thread.c (ravenscar_thread_target): Update.
8029 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8030 (ravenscar_thread_target::add_active_thread): ... this. Don't
8031 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8032 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8033
50838d1b
PA
80342020-06-18 Pedro Alves <palves@redhat.com>
8035
8036 * nat/windows-nat.c (current_windows_thread): Remove.
8037 * nat/windows-nat.h (current_windows_thread): Remove.
8038 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8039 Adjust.
8040 (display_selectors): Adjust to fetch the current
8041 windows_thread_info based on inferior_ptid.
8042 (fake_create_process): No longer write to current_windows_thread.
8043 (windows_nat_target::get_windows_debug_event):
8044 Don't set inferior_ptid or current_windows_thread.
8045 (windows_nat_target::wait): Adjust to not rely on
8046 current_windows_thread.
8047 (do_initial_windows_stuff): Now a method of windows_nat_target.
8048 Switch to the last_ptid thread.
8049 (windows_nat_target::attach): Adjust.
8050 (windows_nat_target::detach): Use switch_to_no_thread instead of
8051 writing to inferior_ptid directly.
8052 (windows_nat_target::create_inferior): Adjust.
8053
31ce04e9
PA
80542020-06-18 Pedro Alves <palves@redhat.com>
8055
8056 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8057
1ee1a363
PA
80582020-06-18 Pedro Alves <palves@redhat.com>
8059
8060 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8061 after creating it, instead of writing to inferior_ptid. Don't
8062 write to inferior_ptid.
8063
6d350754
PA
80642020-06-18 Pedro Alves <palves@redhat.com>
8065
8066 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8067
5d971d48
PA
80682020-06-18 Pedro Alves <palves@redhat.com>
8069
8070 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8071 it, instead of writing to inferior_ptid.
8072
86e57d1b
PA
80732020-06-18 Pedro Alves <palves@redhat.com>
8074
8075 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8076 to inferior_ptid.
8077
f2e1c129
PA
80782020-06-18 Pedro Alves <palves@redhat.com>
8079
8080 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8081 instead of writing to inferior_ptid directly.
8082
60db1b85
PA
80832020-06-18 Pedro Alves <palves@redhat.com>
8084
8085 * corelow.c (core_target::close): Use switch_to_no_thread instead
8086 of writing to inferior_ptid directly.
8087 (add_to_thread_list, core_target_open): Use switch_to_thread
8088 instead of writing to inferior_ptid directly.
8089
fe7d6a8d
PA
80902020-06-18 Pedro Alves <palves@redhat.com>
8091
8092 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8093 inferior_ptid.
8094 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8095 inferior_ptid.
8096 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8097 inferior_ptid directly.
8098 (darwin_nat_target::init_thread_list): Switch to thread, instead
8099 of writing to inferior_ptid.
8100 (darwin_nat_target::attach): Don't write to inferior_ptid.
8101 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8102
975f8708
PA
81032020-06-18 Pedro Alves <palves@redhat.com>
8104
8105 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8106 thread.
8107 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8108 Instead use switch_to_thread.
8109 (gnu_nat_target::detach): Use switch_to_no_thread
8110 instead of writing to inferior_ptid directly. Used passed-in
8111 inferior instead of looking up the inferior by pid.
8112
1a204730
PA
81132020-06-18 Pedro Alves <palves@redhat.com>
8114
8115 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8116 inferior_ptid.
8117
ebe84f23
PA
81182020-06-18 Pedro Alves <palves@redhat.com>
8119
8120 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8121 inferior_ptid.
8122 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8123 thread.
8124 (nto_procfs_target::detach): Avoid referencing
8125 inferior_ptid. Use switch_to_no_thread instead of writing to
8126 inferior_ptid directly.
8127 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8128 instead of writing to inferior_ptid directly.
8129 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8130 to thread.
8131
191f02e5
PA
81322020-06-18 Pedro Alves <palves@redhat.com>
8133
8134 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8135 after creating it, instead of writing to inferior_ptid.
8136 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8137 to inferior_ptid directly.
8138 (gdbsim_target::wait): Don't write to inferior_ptid.
8139
0ac55310
PA
81402020-06-18 Pedro Alves <palves@redhat.com>
8141
8142 * remote.c (remote_target::remote_notice_new_inferior): Use
8143 switch_to_thread instead of writing to inferior_ptid directly.
8144 (remote_target::add_current_inferior_and_thread): Use
8145 switch_to_no_thread instead of writing to inferior_ptid directly.
8146 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8147 and switch_to_thread instead of using set_current_inferior or
8148 writing to inferior_ptid directly.
8149
5233f39b
PA
81502020-06-18 Pedro Alves <palves@redhat.com>
8151
8152 * tracectf.c (ctf_target_open): Switch to added thread instead of
8153 writing to inferior_ptid directly.
8154 (ctf_target::close): Use switch_to_no_thread instead of writing to
8155 inferior_ptid directly.
8156
087e161b
PA
81572020-06-18 Pedro Alves <palves@redhat.com>
8158
8159 * tracefile-tfile.c (tfile_target_open): Don't write to
8160 inferior_ptid directly, instead switch to added thread.
8161 (tfile_target::close): Use switch_to_no_thread instead of writing
8162 to inferior_ptid directly.
8163
7fb43e53
PA
81642020-06-18 Pedro Alves <palves@redhat.com>
8165
8166 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8167 (procfs_target::detach): Use switch_to_no_thread
8168 instead of writing to inferior_ptid directly.
8169 (do_attach): Change return type to void. Switch to the added
8170 thread.
8171 (procfs_target::create_inferior): Switch to the added thread.
8172 (procfs_do_thread_registers): Don't write to inferior_ptid.
8173
18493a00
PA
81742020-06-18 Pedro Alves <palves@redhat.com>
8175
8176 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8177 of writing to inferior_ptid.
8178 (scoped_restore_exited_inferior): Delete.
8179 (handle_vfork_child_exec_or_exit): Simplify using
8180 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8181 instead of writing to inferior_ptid.
8182 (THREAD_STOPPED_BY): Delete.
8183 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8184 (thread_stopped_by_hw_breakpoint): Delete.
8185 (save_waitstatus): Use
8186 scoped_restore_current_thread+switch_to_thread, and call
8187 target_stopped_by_watchpoint instead of
8188 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8189 instead of thread_stopped_by_sw_breakpoint, and
8190 target_stopped_by_hw_breakpoint instead of
8191 thread_stopped_by_hw_breakpoint.
8192 (handle_inferior_event)
8193 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8194 inferior_ptid directly, nor
8195 set_current_inferior/set_current_program_space. Use
8196 switch_to_thread / switch_to_inferior_no_thread instead.
8197
a0776b13
PA
81982020-06-18 Pedro Alves <palves@redhat.com>
8199
8200 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8201 instead of writing to inferior_ptid.
8202
6155c136
PA
82032020-06-18 Pedro Alves <palves@redhat.com>
8204
8205 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8206 added thread.
8207 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8208 to the added thread.
8209 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8210 instead of writing to inferior_ptid.
8211
c5316fc6
PA
82122020-06-18 Pedro Alves <palves@redhat.com>
8213
8214 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8215 (register_to_value_test): Mock a program_space too. Heap-allocate
8216 the address space. Don't write to inferior_ptid. Use
8217 switch_to_thread instead.
8218
8df01799
PA
82192020-06-18 Pedro Alves <palves@redhat.com>
8220
8221 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8222 Delete.
8223 (find_signalled_thread()): New, factored out from
8224 linux_make_corefile_notes and adjusted to handle exited threads.
8225 (linux_make_corefile_notes): Adjust to use the new
8226 find_signalled_thread.
8227
41792d68
PA
82282020-06-18 Pedro Alves <palves@redhat.com>
8229
8230 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8231 of saving/restoring inferior_ptid.
8232
612f258a
TT
82332020-06-17 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8236 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8237 declare.
8238 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8239
efb763a5
SM
82402020-06-15 Simon Marchi <simon.marchi@efficios.com>
8241
8242 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8243 of partial symtabs.
8244
2951f6c0
SM
82452020-06-17 Simon Marchi <simon.marchi@efficios.com>
8246
8247 * regformats/reg-arm.dat: Remove.
8248 * regformats/reg-bfin.dat: Remove.
8249 * regformats/reg-cris.dat: Remove.
8250 * regformats/reg-crisv32.dat: Remove.
8251 * regformats/reg-m32r.dat: Remove.
8252 * regformats/reg-tilegx.dat: Remove.
8253 * regformats/reg-tilegx32.dat: Remove.
8254
7d458ea5
SM
82552020-06-17 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * features/Makefile (WHICH): Remove arm files.
8258 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8259 * regformats/arm/arm-with-neon.dat: Remove.
8260 * regformats/arm/arm-with-vfpv2.dat: Remove.
8261 * regformats/arm/arm-with-vfpv3.dat: Remove.
8262
3af96c0d
SM
82632020-06-17 Simon Marchi <simon.marchi@efficios.com>
8264
8265 * features/Makefile (XMLTOC): Remove rx.xml.
8266
b25e22fd
PA
82672020-06-17 Pedro Alves <palves@redhat.com>
8268
8269 * gdbthread.h (thread_control_state) <trap_expected> Update
8270 comments.
8271
a78a19b1
AB
82722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8273
8274 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8275 ada_language::lookup_symbol_nonlocal.
8276 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8277 (ada_language::lookup_symbol_nonlocal): New member function,
8278 implementation from ada_lookup_symbol_nonlocal.
8279 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8280 initializer.
8281 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8282 initializer.
8283 (cplus_language::lookup_symbol_nonlocal): New member function.
8284 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8285 (minimal_language_data) Likewise.
8286 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8287 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8288 initializer.
8289 (d_language::lookup_symbol_nonlocal): New member function.
8290 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8291 initializer.
8292 (f_language::lookup_symbol_nonlocal): New member function.
8293 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8294 initializer.
8295 * language.c (unknown_language_data): Likewise.
8296 (auto_language_data): Likewise.
8297 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8298 field.
8299 (language_defn::lookup_symbol_nonlocal): New member function.
8300 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8301 initializer.
8302 * objc-lang.c (objc_language_data): Likewise.
8303 * opencl-lang.c (opencl_language_data): Likewise.
8304 * p-lang.c (pascal_language_data): Likewise.
8305 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8306 rust_language::lookup_symbol_nonlocal.
8307 (rust_language_data): Delete la_lookup_symbol_nonlocal
8308 initializer.
8309 (rust_language::lookup_symbol_nonlocal): New member function,
8310 implementation from rust_lookup_symbol_nonlocal.
8311 * symtab.c (lookup_symbol_aux): Update call to
8312 lookup_symbol_nonlocal.
8313 (basic_lookup_symbol_nonlocal): Rename to...
8314 (language_defn::lookup_symbol_nonlocal): ...this, and update
8315 header comment. Remove language_defn parameter, and replace with
8316 uses of `this'.
8317 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8318
ebe2334e
AB
83192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8320
8321 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8322 initializer.
8323 (ada_language::value_print_inner): New member function.
8324 * c-lang.c (c_language_data): Delete la_value_print_inner
8325 initializer.
8326 (cplus_language_data): Likewise.
8327 (asm_language_data): Likewise.
8328 (minimal_language_data): Likewise.
8329 * d-lang.c (d_language_data): Likewise.
8330 (d_language::value_print_inner): New member function.
8331 * f-lang.c (f_language_data): Delete la_value_print_inner
8332 initializer.
8333 (f_language::value_print_inner): New member function.
8334 * f-lang.h (f_value_print_innner): Rename to...
8335 (f_value_print_inner): ...this (note spelling of 'inner').
8336 * f-valprint.c (f_value_print_innner): Rename to...
8337 (f_value_print_inner): ...this (note spelling of 'inner').
8338 * go-lang.c (go_language_data): Delete la_value_print_inner
8339 initializer.
8340 (go_language::value_print_inner): New member function.
8341 * language.c (language_defn::value_print_inner): Define new member
8342 function.
8343 (unk_lang_value_print_inner): Delete.
8344 (unknown_language_data): Delete la_value_print_inner initializer.
8345 (unknown_language::value_print_inner): New member function.
8346 (auto_language_data): Delete la_value_print_inner initializer.
8347 (auto_language::value_print_inner): New member function.
8348 * language.h (language_data): Delete la_value_print_inner field.
8349 (language_defn::value_print_inner): Delcare new member function.
8350 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8351 initializer.
8352 (m2_language::value_print_inner): New member function.
8353 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8354 initializer.
8355 * opencl-lang.c (opencl_language_data): Likewise.
8356 * p-lang.c (pascal_language_data): Likewise.
8357 (pascal_language::value_print_inner): New member function.
8358 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8359 initializer.
8360 (rust_language::value_print_inner): New member function.
8361 * valprint.c (do_val_print): Update call to value_print_inner.
8362
a1d1fa3e
AB
83632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8364
8365 * ada-lang.c (ada_language_data): Delete la_value_print
8366 initializer.
8367 (ada_language::value_print): New member function.
8368 * c-lang.c (c_language_data): Delete la_value_print initializer.
8369 (cplus_language_data): Likewise.
8370 (asm_language_data): Likewise.
8371 (minimal_language_data): Likewise.
8372 * d-lang.c (d_language_data): Likewise.
8373 * f-lang.c (f_language_data): Likewise.
8374 * go-lang.c (go_language_data): Likewise.
8375 * language.c (unk_lang_value_print): Delete.
8376 (language_defn::value_print): Define new member function.
8377 (unknown_language_data): Delete la_value_print initializer.
8378 (unknown_language::value_print): New member function.
8379 (auto_language_data): Delete la_value_print initializer.
8380 (auto_language::value_print): New member function.
8381 * language.h (language_data): Delete la_value_print field.
8382 (language_defn::value_print): Declare new member function.
8383 (LA_VALUE_PRINT): Update call to value_print.
8384 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8385 * objc-lang.c (objc_language_data): Likewise.
8386 * opencl-lang.c (opencl_language_data): Likewise.
8387 * p-lang.c (pascal_language_data): Likewise.
8388 (pascal_language::value_print): New member function.
8389 * rust-lang.c (rust_language_data): Delete la_value_print
8390 initializer.
8391
f16a9f57
AB
83922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8393
8394 * ada-lang.c (ada_watch_location_expression): Rename to
8395 ada_language::watch_location_expression.
8396 (ada_language_data): Delete la_watch_location_expression
8397 initializer.
8398 (ada_language::watch_location_expression): New member function,
8399 implementation from ada_watch_location_expression.
8400 * breakpoint.c (watch_command_1): Update call to
8401 watch_location_expression.
8402 * c-lang.c (c_watch_location_expression): Rename to
8403 language_defn::watch_location_expression.
8404 (c_language_data): Delete la_watch_location_expression
8405 initializer.
8406 (cplus_language_data): Likewise.
8407 (asm_language_data): Likewise.
8408 (minimal_language_data): Likewise.
8409 * c-lang.h (c_watch_location_expression): Delete declaration.
8410 * d-lang.c (d_language_data): Delete la_watch_location_expression
8411 initializer.
8412 * f-lang.c (f_language_data): Likewise.
8413 * go-lang.c (go_language_data): Likewise.
8414 * language.c (language_defn::watch_location_expression): Member
8415 function implementation from c_watch_location_expression.
8416 (unknown_language_data): Delete la_watch_location_expression
8417 initializer.
8418 (auto_language_data): Likewise.
8419 * language.h (language_data): Delete la_watch_location_expression
8420 field.
8421 (language_defn::watch_location_expression): Declare new member
8422 function.
8423 * m2-lang.c (m2_language_data): Delete
8424 la_watch_location_expression initializer.
8425 * objc-lang.c (objc_language_data): Likewise.
8426 * opencl-lang.c (opencl_language_data): Likewise.
8427 * p-lang.c (pascal_language_data): Likewise.
8428 * rust-lang.c (rust_watch_location_expression): Rename to
8429 rust_language::watch_location_expression.
8430 (rust_language_data): Delete la_watch_location_expression
8431 initializer.
8432 (rust_language::watch_location_expression): New member function,
8433 implementation from rust_watch_location_expression.
8434
7e56227d
AB
84352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8436
8437 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8438 ada_language::collect_symbol_completion_matches.
8439 (ada_language_data): Delete la_collect_symbol_completion_matches
8440 initializer.
8441 (ada_language::collect_symbol_completion_matches): New member
8442 function, implementation from
8443 ada_collect_symbol_completion_matches.
8444 * c-lang.c (c_language_data): Delete
8445 la_collect_symbol_completion_matches initializer.
8446 (cplus_language_data): Likewise.
8447 (asm_language_data): Likewise.
8448 (minimal_language_data): Likewise.
8449 * d-lang.c (d_language_data): Likewise.
8450 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8451 f_language::collect_symbol_completion_matches.
8452 (f_language_data): Delete la_collect_symbol_completion_matches
8453 initializer.
8454 (f_language::collect_symbol_completion_matches) New member
8455 function, implementation from f_collect_symbol_completion_matches.
8456 * go-lang.c (go_language_data): Delete
8457 la_collect_symbol_completion_matches initializer.
8458 * language.c (unknown_language_data): Likewise.
8459 (auto_language_data): Likewise.
8460 * language.h (language_data): Delete
8461 la_collect_symbol_completion_matches field.
8462 (language_defn::collect_symbol_completion_matches): New member
8463 function.
8464 * m2-lang.c (m2_language_data): Delete
8465 la_collect_symbol_completion_matches initializer.
8466 * objc-lang.c (objc_language_data): Likewise.
8467 * opencl-lang.c (opencl_language_data): Likewise.
8468 * p-lang.c (pascal_language_data): Likewise.
8469 * rust-lang.c (rust_language_data): Likewise.
8470 * symtab.c (default_collect_symbol_completion_matches): Delete.
8471 (collect_symbol_completion_matches): Update call to
8472 collect_symbol_completion_matches.
8473 (collect_symbol_completion_matches_type): Likewise.
8474 * symtab.h (default_collect_symbol_completion_matches): Delete
8475 declaration.
8476
53fc67f8
AB
84772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8478
8479 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8480 (ada_language_data): Delete la_word_break_characters initializer.
8481 (ada_language::word_break_characters): New member function.
8482 * c-lang.c (c_language_data): Delete la_word_break_characters
8483 initializer.
8484 (cplus_language_data): Likewise.
8485 (asm_language_data): Likewise.
8486 (minimal_language_data): Likewise.
8487 * completer.c: Update global comment.
8488 (advance_to_expression_complete_word_point): Update call to
8489 word_break_characters.
8490 (complete_files_symbols): Likewise.
8491 (complete_line_internal_1): Likewise.
8492 (default_completer_handle_brkchars): Likewise.
8493 (skip_quoted_chars): Likewise.
8494 * d-lang.c (d_language_data): Delete la_word_break_characters
8495 initializer.
8496 * f-lang.c (f_word_break_characters): Delete.
8497 (f_language_data): Delete la_word_break_characters initializer.
8498 (f_language::word_break_characters): New member function.
8499 * go-lang.c (go_language_data): Delete la_word_break_characters
8500 initializer.
8501 * language.c (unknown_language_data): Likewise.
8502 (auto_language_data): Likewise.
8503 * language.h (default_word_break_characters): Move declaration to
8504 earlier in the file.
8505 (language_data): Delete la_word_break_characters field.
8506 (language_defn::word_break_characters): New member function.
8507 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8508 initializer.
8509 * objc-lang.c (objc_language_data): Likewise.
8510 * opencl-lang.c (opencl_language_data): Likewise.
8511 * p-lang.c (pascal_language_data): Likewise.
8512 * rust-lang.c (rust_language_data): Likewise.
8513
c9debfb9
AB
85142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8515
8516 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8517 (ada_language_data): Delete la_get_symbol_name_matcher
8518 initializer.
8519 (language_defn::get_symbol_name_matcher_inner): New member
8520 function.
8521 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8522 initializer.
8523 (cplus_language_data): Likewise.
8524 (cplus_language::get_symbol_name_matcher_inner): New member
8525 function.
8526 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8527 (minimal_language_data): Likewise.
8528 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8529 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8530 initializer.
8531 * dictionary.c (iter_match_first_hashed): Update call to
8532 get_symbol_name_matcher.
8533 (iter_match_next_hashed): Likewise.
8534 (iter_match_next_linear): Likewise.
8535 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8536 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8537 initializer.
8538 (f_language::get_symbol_name_matcher_inner): New member function.
8539 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8540 initializer.
8541 * language.c (default_symbol_name_matcher): Update header comment,
8542 make static.
8543 (language_defn::get_symbol_name_matcher): New definition.
8544 (language_defn::get_symbol_name_matcher_inner): Likewise.
8545 (get_symbol_name_matcher): Delete.
8546 (unknown_language_data): Delete la_get_symbol_name_matcher
8547 initializer.
8548 (auto_language_data): Likewise.
8549 * language.h (language_data): Delete la_get_symbol_name_matcher
8550 field.
8551 (language_defn::get_symbol_name_matcher): New member function.
8552 (language_defn::get_symbol_name_matcher_inner): Likewise.
8553 (default_symbol_name_matcher): Delete declaration.
8554 * linespec.c (find_methods): Update call to
8555 get_symbol_name_matcher.
8556 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8557 initializer.
8558 * minsyms.c (lookup_minimal_symbol): Update call to
8559 get_symbol_name_matcher.
8560 (iterate_over_minimal_symbols): Likewise.
8561 * objc-lang.c (objc_language_data): Delete
8562 la_get_symbol_name_matcher initializer.
8563 * opencl-lang.c (opencl_language_data): Likewise.
8564 * p-lang.c (pascal_language_data): Likewise.
8565 * psymtab.c (psymbol_name_matches): Update call to
8566 get_symbol_name_matcher.
8567 * rust-lang.c (rust_language_data): Delete
8568 la_get_symbol_name_matcher initializer.
8569 * symtab.c (symbol_matches_search_name): Update call to
8570 get_symbol_name_matcher.
8571 (compare_symbol_name): Likewise.
8572
9a49ad8c
AB
85732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * ada-lang.c (ada_language_data): Delete la_compute_program
8576 initializer.
8577 * c-lang.c (c_language_data): Likewise.
8578 (c_language::compute_program): New member function.
8579 (cplus_language_data): Delete la_compute_program initializer.
8580 (cplus_language::compute_program): New member function.
8581 (asm_language_data): Delete la_compute_program initializer.
8582 (minimal_language_data): Likewise.
8583 * c-lang.h (c_compute_program): Update comment.
8584 (cplus_compute_program): Likewise.
8585 * compile/compile-c-support.c (c_compute_program): Likewise.
8586 (cplus_compute_program): Likewise.
8587 * compile/compile.c (compile_to_object): Update call to
8588 la_compute_program.
8589 * d-lang.c (d_language_data): Delete la_compute_program
8590 initializer.
8591 * f-lang.c (f_language_data): Likewise.
8592 * go-lang.c (go_language_data): Likewise.
8593 * language.c (unknown_language_data): Likewise.
8594 (auto_language_data): Likewise.
8595 * language.h (language_data): Delete la_compute_program field.
8596 (language_defn::compute_program): New member function.
8597 * m2-lang.c (m2_language_data): Delete la_compute_program
8598 initializer.
8599 * objc-lang.c (objc_language_data): Likewise.
8600 * opencl-lang.c (opencl_language_data): Likewise.
8601 * p-lang.c (pascal_language_data): Likewise.
8602 * rust-lang.c (rust_language_data): Likewise.
8603
eff93b4d
AB
86042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8605
8606 * ada-lang.c (ada_language_data) Delete
8607 la_class_name_from_physname initializer.
8608 * c-lang.c (c_language_data): Likewise.
8609 (cplus_language_data): Likewise.
8610 (cplus_language::class_name_from_physname): New member function.
8611 (asm_language_data): Delete la_class_name_from_physname
8612 initializer.
8613 (minimal_language_data): Likewise.
8614 * d-lang.c (d_language_data): Likewise.
8615 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8616 method on language_defn class.
8617 (guess_full_die_structure_name): Likewise.
8618 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8619 initializer.
8620 * go-lang.c (go_language_data): Likewise.
8621 * language.c (language_class_name_from_physname): Delete.
8622 (unk_lang_class_name): Delete.
8623 (unknown_language_data): Delete la_class_name_from_physname
8624 initializer.
8625 (auto_language_data): Likewise.
8626 * language.h (language_data): Delete la_class_name_from_physname
8627 field.
8628 (language_defn::class_name_from_physname): New function.
8629 (language_class_name_from_physname): Delete declaration.
8630 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8631 initializer.
8632 * objc-lang.c (objc_language_data): Likewise.
8633 * opencl-lang.c (opencl_language_data): Likewise.
8634 * p-lang.c (pascal_language_data): Likewise.
8635 * rust-lang.c (rust_language_data): Likewise.
8636
de543742
TT
86372020-06-16 Tom Tromey <tom@tromey.com>
8638
8639 * tui/tui-data.h (STATUS_NAME): New macro.
8640 * tui/tui-layout.c (tui_remove_some_windows)
8641 (initialize_known_windows, tui_register_window)
8642 (tui_layout_split::remove_windows, initialize_layouts)
8643 (tui_new_layout_command): Don't use hard-coded window names.
8644
a350efd4
TT
86452020-06-16 Tom Tromey <tom@tromey.com>
8646
8647 PR tui/25348:
8648 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8649 tui_initialize_readline. Only run once. Call rl_initialize.
8650 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8651 tui_initialize_readline.
8652 * tui/tui-io.c (tui_setup_io): Call
8653 tui_ensure_readline_initialized.
8654 * tui/tui-interp.c (tui_interp::init): Update.
8655
39ec0490
TT
86562020-06-16 Tom Tromey <tom@tromey.com>
8657
8658 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8659 Also preserve the status window.
8660
d2d1ea20
TT
86612020-06-16 Tom Tromey <tom@tromey.com>
8662
8663 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8664 where m_window==nullptr.
8665
66920317
TT
86662020-06-15 Tom Tromey <tromey@adacore.com>
8667
8668 * windows-nat.c (windows_nat::handle_output_debug_string):
8669 Update.
8670 (windows_nat::handle_ms_vc_exception): Update.
8671 * target.h (target_read_string): Change API.
8672 * target.c (target_read_string): Change API.
8673 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8674 Update.
8675 * solib-frv.c (frv_current_sos): Update.
8676 * solib-dsbt.c (dsbt_current_sos): Update.
8677 * solib-darwin.c (darwin_current_sos): Update.
8678 * linux-thread-db.c (inferior_has_bug): Update.
8679 * expprint.c (print_subexp_standard): Update.
8680 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8681 (ada_exception_message_1): Update.
8682
a5d871dd
TT
86832020-06-15 Tom Tromey <tromey@adacore.com>
8684
8685 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8686
670e35fa
TT
86872020-06-15 Tom Tromey <tromey@adacore.com>
8688
8689 * valprint.c (read_string): Update comment.
8690 * target.c (MIN): Remove.
8691 (target_read_string): Rewrite.
8692
f5272a3b
TT
86932020-06-15 Tom Tromey <tromey@adacore.com>
8694
8695 * corefile.c (read_memory_string): Remove.
8696 * ada-valprint.c (ada_value_print_ptr): Update.
8697 * ada-lang.h (ada_tag_name): Change return type.
8698 * ada-lang.c (type_from_tag): Update.
8699 (ada_tag_name_from_tsd): Change return type. Use
8700 target_read_string.
8701 (ada_tag_name): Likewise.
8702 * gdbcore.h (read_memory_string): Don't declare.
8703
2c074f49
HD
87042020-06-14 Hannes Domani <ssbssa@yahoo.de>
8705
8706 * symtab.c (rbreak_command): Ignore Windows drive colon.
8707
6a17d503
SM
87082020-06-12 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * NEWS: Mention removed GDBserver host support.
8711
453c733f
NC
87122020-06-12 Nelson Chu <nelson.chu@sifive.com>
8713
8714 * features/riscv/rebuild-csr-xml.sh: Updated.
8715
2b4e6a3f
TT
87162020-06-11 Tom Tromey <tom@tromey.com>
8717
8718 PR gdb/18318:
8719 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8720
4412332f
JG
87212020-06-09 Jonny Grant <jg@jguk.org>
87222020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8723
8724 * main.c (captured_main_1): Don't print new line after help.
8725 (print_gdb_help): add mailing list and IRC channel information
8726 to --help. Add new lines between items in the footer. Remove
8727 quotes around bug url.
8728
2f33032a
KS
87292020-06-11 Keith Seitz <keiths@redhat.com>
8730
8731 PR gdb/21356
8732 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8733 Resolve typedefs for type length calculations.
8734
7ab96794
TV
87352020-06-10 Tom de Vries <tdevries@suse.de>
8736
8737 PR ada/24713
8738 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8739 (write_psymbols): Enable .gdb_index for ada.
8740 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8741 ada.
8742
e5f3ece2
TV
87432020-06-10 Tom de Vries <tdevries@suse.de>
8744
8745 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8746 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8747 namei" instead of "const char *name" argument.
8748 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8749 dw2_symtab_iter_init.
8750
940da03e
SM
87512020-06-08 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8754 to use type::field and field::type instead.
8755
b6cdac4b
SM
87562020-06-08 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8759 to use field::type instead.
8760
5d14b6e5
SM
87612020-06-08 Simon Marchi <simon.marchi@efficios.com>
8762
8763 * gdbtypes.h (struct field) <type, set_type>: New methods.
8764 Rename `type` field to...
8765 <m_type>: ... this. Change references throughout to use type or
8766 set_type methods.
8767 (FIELD_TYPE): Use field::type. Change call sites that modify
8768 the field's type to use field::set_type instead.
8769
3d967001
SM
87702020-06-08 Simon Marchi <simon.marchi@efficios.com>
8771
8772 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8773 to use type::index_type instead.
8774
262abc0d
SM
87752020-06-08 Simon Marchi <simon.marchi@efficios.com>
8776
8777 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8778 methods.
8779 (TYPE_INDEX_TYPE): Use type::index_type.
8780 * gdbtypes.c (create_array_type_with_stride): Likewise.
8781
82836c92
TT
87822020-06-07 Tom Tromey <tom@tromey.com>
8783
8784 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8785 parameter.
8786 (generic_value_print): Update.
8787
940dace9
AB
87882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8789
8790 Revert commit 982a38f60b0.
8791 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8792
982a38f6
AB
87932020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8794
8795 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8796 avoid use after free.
8797
82f06518
TV
87982020-06-05 Tom de Vries <tdevries@suse.de>
8799
8800 * NEWS: Fix typos.
8801
f8c41851
SM
88022020-06-04 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8805 the per_bfd object.
8806 (dwarf2_read_debug_names): Likewise.
8807 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8808 object when re-using a per_bfd object with an index.
8809
f9b5d5ea
TV
88102020-06-03 Tom de Vries <tdevries@suse.de>
8811
8812 PR symtab/26046
8813 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8814 children for C++.
8815 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8816 DW_TAG_subprogram.
8817
f6eee2d0
AB
88182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * ada-lang.c (ada_language_data): Delete skip_trampoline
8821 initializer.
8822 * c-lang.c (c_language_data): Likewise.
8823 (cplus_language_data): Likewise.
8824 (cplus_language::skip_trampoline): New member function.
8825 (asm_language_data): Delete skip_trampoline initializer.
8826 (minimal_language_data): Likewise.
8827 * d-lang.c (d_language_data): Likewise.
8828 * f-lang.c (f_language_data): Likewise.
8829 * go-lang.c (go_language_data): Likewise.
8830 * language.c (unk_lang_trampoline): Delete function.
8831 (skip_language_trampoline): Update.
8832 (unknown_language_data): Delete skip_trampoline initializer.
8833 (auto_language_data): Likewise.
8834 * language.h (language_data): Delete skip_trampoline field.
8835 (language_defn::skip_trampoline): New function.
8836 * m2-lang.c (m2_language_data): Delete skip_trampoline
8837 initializer.
8838 * objc-lang.c (objc_skip_trampoline): Delete function, move
8839 implementation to objc_language::skip_trampoline.
8840 (objc_language_data): Delete skip_trampoline initializer.
8841 (objc_language::skip_trampoline): New member function with
8842 implementation from objc_skip_trampoline.
8843 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8844 initializer.
8845 * p-lang.c (pascal_language_data): Likewise.
8846 * rust-lang.c (rust_language_data): Likewise.
8847
0a50df5d
AB
88482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8849
8850 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8851 (ada_language::demangle): New member function.
8852 * c-lang.c (c_language_data): Delete la_demangle initializer.
8853 (cplus_language_data): Delete la_demangle initializer.
8854 (cplus_language::demangle): New member function.
8855 (asm_language_data): Delete la_demangle initializer.
8856 (minimal_language_data): Delete la_demangle initializer.
8857 * d-lang.c (d_language_data): Delete la_demangle initializer.
8858 (d_language::demangle): New member function.
8859 * f-lang.c (f_language_data): Delete la_demangle initializer.
8860 (f_language::demangle): New member function.
8861 * go-lang.c (go_language_data): Delete la_demangle initializer.
8862 (go_language::demangle): New member function.
8863 * language.c (language_demangle): Update.
8864 (unk_lang_demangle): Delete.
8865 (unknown_language_data): Delete la_demangle initializer.
8866 (unknown_language::demangle): New member function.
8867 (auto_language_data): Delete la_demangle initializer.
8868 (auto_language::demangle): New member function.
8869 * language.h (language_data): Delete la_demangle field.
8870 (language_defn::demangle): New function.
8871 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8872 * objc-lang.c (objc_language_data): Delete la_demangle
8873 initializer.
8874 (objc_language::demangle): New member function.
8875 * opencl-lang.c (opencl_language_data): Delete la_demangle
8876 initializer.
8877 * p-lang.c (pascal_language_data): Likewise.
8878 * rust-lang.c (rust_language_data): Likewise.
8879 (rust_language::demangle): New member function.
8880
fbfb0a46
AB
88812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * ada-lang.c (ada_language_data): Delete la_print_type
8884 initializer.
8885 (ada_language::print_type): New member function.
8886 * c-lang.c (c_language_data): Delete la_print_type initializer.
8887 (c_language::print_type): New member function.
8888 (cplus_language_data): Delete la_print_type initializer.
8889 (cplus_language::print_type): New member function.
8890 (asm_language_data): Delete la_print_type initializer.
8891 (asm_language::print_type): New member function.
8892 (minimal_language_data): Delete la_print_type initializer.
8893 (minimal_language::print_type): New member function.
8894 * d-lang.c (d_language_data): Delete la_print_type initializer.
8895 (d_language::print_type): New member function.
8896 * f-lang.c (f_language_data): Delete la_print_type initializer.
8897 (f_language::print_type): New member function.
8898 * go-lang.c (go_language_data): Delete la_print_type initializer.
8899 (go_language::print_type): New member function.
8900 * language.c (unk_lang_print_type): Delete.
8901 (unknown_language_data): Delete la_print_type initializer.
8902 (unknown_language::print_type): New member function.
8903 (auto_language_data): Delete la_print_type initializer.
8904 (auto_language::print_type): New member function.
8905 * language.h (language_data): Delete la_print_type field.
8906 (language_defn::print_type): New function.
8907 (LA_PRINT_TYPE): Update.
8908 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8909 (m2_language::print_type): New member function.
8910 * objc-lang.c (objc_language_data): Delete la_print_type
8911 initializer.
8912 (objc_language::print_type): New member function.
8913 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8914 to opencl_language::print_type.
8915 (opencl_language_data): Delete la_print_type initializer.
8916 (opencl_language::print_type): New member function, implementation
8917 from opencl_print_type.
8918 * p-lang.c (pascal_language_data): Delete la_print_type
8919 initializer.
8920 (pascal_language::print_type): New member function.
8921 * rust-lang.c (rust_print_type): Delete, implementation moved to
8922 rust_language::print_type.
8923 (rust_language_data): Delete la_print_type initializer.
8924 (rust_language::print_type): New member function, implementation
8925 from rust_print_type.
8926
6f827019
AB
89272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8928
8929 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8930 implementation moves to...
8931 (ada_language::sniff_from_mangled_name): ...here. Update return
8932 type.
8933 (ada_language_data): Delete la_sniff_from_mangled_name
8934 initializer.
8935 * c-lang.c (c_language_data): Likewise.
8936 (cplus_language_data): Likewise.
8937 (cplus_language::sniff_from_mangled_name): New member function,
8938 implementation taken from gdb_sniff_from_mangled_name.
8939 (asm_language_data): Delete la_sniff_from_mangled_name
8940 initializer.
8941 (minimal_language_data): Likewise.
8942 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8943 implementation moves to cplus_language::sniff_from_mangled_name.
8944 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8945 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8946 moves to...
8947 (d_language::sniff_from_mangled_name): ...here.
8948 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8949 * f-lang.c (f_language_data): Likewise.
8950 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8951 moves to...
8952 (go_language::sniff_from_mangled_name): ...here.
8953 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8954 * language.c (language_sniff_from_mangled_name): Delete.
8955 (unknown_language_data): Delete la_sniff_from_mangled_name
8956 initializer.
8957 (auto_language_data): Likewise.
8958 * language.h (language_data): Delete la_sniff_from_mangled_name
8959 field.
8960 (language_defn::sniff_from_mangled_name): New function.
8961 (language_sniff_from_mangled_name): Delete declaration.
8962 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8963 field.
8964 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8965 implementation moves to...
8966 (objc_language::sniff_from_mangled_name): ...here.
8967 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8968 * opencl-lang.c (opencl_language_data): Likewise.
8969 * p-lang.c (pascal_language_data): Likewise.
8970 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8971 implementation moves to...
8972 (rust_language::sniff_from_mangled_name): ...here.
8973 (rust_language_data): Delete la_sniff_from_mangled_name
8974 initializer.
8975 * symtab.c (symbol_find_demangled_name): Call
8976 sniff_from_mangled_name member function.
8977
fb8006fd
AB
89782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8979
8980 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8981 initializer.
8982 * c-lang.c (c_language_data): Likewise.
8983 (cplus_language_data): Likewise.
8984 (cplus_language::search_name_hash): New member function.
8985 (asm_language_data): Delete la_search_name_hash initializer.
8986 (minimal_language_data): Likewise.
8987 * d-lang.c (d_language_data): Likewise.
8988 * dictionary.c (default_search_name_hash): Rename to...
8989 (language_defn::search_name_hash): ...this.
8990 * f-lang.c (f_language_data): Likewise.
8991 (f_language::search_name_hash): New member function.
8992 * go-lang.c (go_language_data): Delete la_search_name_hash
8993 initializer.
8994 * language.c (unknown_language_data): Likewise.
8995 (auto_language_data): Likewise.
8996 * language.h (struct language_data): Delete la_search_name_hash
8997 field.
8998 (language_defn::search_name_hash): Declare new member function.
8999 (default_search_name_hash): Delete declaration.
9000 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9001 initializer.
9002 * objc-lang.c (objc_language_data): Likewise.
9003 * opencl-lang.c (opencl_language_data): Likewise.
9004 * p-lang.c (pascal_language_data): Likewise.
9005 * rust-lang.c (rust_language_data): Likewise.
9006 * symtab.c (search_name_hash): Update call.
9007
8e25bafe
AB
90082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9011 initializer.
9012 * c-lang.c (class compile_instance): Declare.
9013 (c_language_data): Delete la_get_compile_instance initializer.
9014 (c_language::get_compile_instance): New member function.
9015 (cplus_language_data): Delete la_get_compile_instance initializer.
9016 (cplus_language::get_compile_instance): New member function.
9017 (asm_language_data): Delete la_get_compile_instance initializer.
9018 (minimal_language_data): Likewise.
9019 * c-lang.h (c_get_compile_context): Update comment.
9020 (cplus_get_compile_context): Update comment.
9021 * compile/compile.c (compile_to_object): Update calls, don't rely
9022 on function pointer being NULL.
9023 * d-lang.c (d_language_data): Delete la_get_compile_instance
9024 initializer.
9025 * f-lang.c (f_language_data): Likewise.
9026 * go-lang.c (go_language_data): Likewise.
9027 * language.c (unknown_language_data): Likewise.
9028 (auto_language_data): Likewise.
9029 * language.h (language_data): Delete la_get_compile_instance field.
9030 (language_defn::get_compile_instance): New member function.
9031 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9032 initializer.
9033 * objc-lang.c (objc_language_data): Likewise.
9034 * opencl-lang.c (opencl_language_data): Likewise.
9035 * p-lang.c (pascal_language_data): Likewise.
9036 * rust-lang.c (rust_language_data): Likewise.
9037
4009ee92
AB
90382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9039
9040 * ada-lang.c (ada_add_all_symbols): Update comment.
9041 (ada_iterate_over_symbols): Delete, move implementation to...
9042 (ada_language::iterate_over_symbols): ...here, a new member
9043 function, rewrite to use range based for loop.
9044 (ada_language_data): Delete la_iterate_over_symbols initializer.
9045 * c-lang.c (c_language_data): Likewise.
9046 (cplus_language_data): Likewise.
9047 (asm_language_data): Likewise.
9048 (minimal_language_data): Likewise.
9049 * d-lang.c (d_language_data): Likewise.
9050 * f-lang.c (f_language_data): Likewise.
9051 * go-lang.c (go_language_data): Likewise.
9052 * language.c (unknown_language_data): Likewise.
9053 (auto_language_data): Likewise.
9054 * language.h (language_data): Delete la_iterate_over_symbols field.
9055 (language_defn::iterate_over_symbols): New member function.
9056 (LA_ITERATE_OVER_SYMBOLS): Update.
9057 * linespec.c (iterate_over_all_matching_symtabs): Update.
9058 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
54f4ca46
AB
90652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * ada-lang.c (ada_language_data): Delete
9068 la_lookup_transparent_type initializer.
9069 * c-lang.c (c_language_data): Likewise.
9070 (cplus_language_data): Likewise.
9071 (cplus_language::lookup_transparent_type): New member function.
9072 (asm_language_data): Delete la_lookup_transparent_type
9073 initializer.
9074 (minimal_language_data): Likewise.
9075 * d-lang.c (d_language_data): Likewise.
9076 * f-lang.c (f_language_data): Likewise.
9077 * go-lang.c (go_language_data): Likewise.
9078 * language.c (unknown_language_data): Likewise.
9079 (auto_language_data): Likewise.
9080 * language.h (struct language_data): Delete
9081 la_lookup_transparent_type field.
9082 (language_defn::lookup_transparent_type): New member function.
9083 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9084 initializer.
9085 * objc-lang.c (objc_language_data): Likewise.
9086 * opencl-lang.c (opencl_language_data): Likewise.
9087 * p-lang.c (pascal_language_data): Likewise.
9088 * rust-lang.c (rust_language_data): Likewise.
9089 * symtab.c (symbol_matches_domain): Update call.
9090
1fb314aa
AB
90912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 * ada-lang.c (ada_language_arch_info): Delete function, move
9094 implementation to...
9095 (ada_language::language_arch_info): ...here, a new member
9096 function.
9097 (ada_language_data): Delete la_language_arch_info.
9098 * c-lang.c (c_language_data): Likewise.
9099 (c_language::language_arch_info): New member function.
9100 (cplus_language_arch_info): Delete function, move
9101 implementation to...
9102 (cplus_language::language_arch_info): ...here, a new member
9103 function.
9104 (cplus_language_data): Delete la_language_arch_info.
9105 (asm_language_data): Likewise.
9106 (asm_language::language_arch_info): New member function.
9107 (minimal_language_data): Delete la_language_arch_info.
9108 (minimal_language::language_arch_info): New member function.
9109 * d-lang.c (d_language_arch_info): Delete function, move
9110 implementation to...
9111 (d_language::language_arch_info): ...here, a new member
9112 function.
9113 (d_language_data): Delete la_language_arch_info.
9114 * f-lang.c (f_language_arch_info): Delete function, move
9115 implementation to...
9116 (f_language::language_arch_info): ...here, a new member
9117 function.
9118 (f_language_data): Delete la_language_arch_info.
9119 * go-lang.c (go_language_arch_info): Delete function, move
9120 implementation to...
9121 (go_language::language_arch_info): ...here, a new member
9122 function.
9123 (go_language_data): Delete la_language_arch_info.
9124 * language.c (unknown_language_data): Likewise.
9125 (unknown_language::language_arch_info): New member function.
9126 (auto_language_data): Delete la_language_arch_info.
9127 (auto_language::language_arch_info): New member function.
9128 (language_gdbarch_post_init): Update call to
9129 la_language_arch_info.
9130 * language.h (language_data): Delete la_language_arch_info
9131 function pointer.
9132 (language_defn::language_arch_info): New function.
9133 * m2-lang.c (m2_language_arch_info): Delete function, move
9134 implementation to...
9135 (m2_language::language_arch_info): ...here, a new member
9136 function.
9137 (m2_language_data): Delete la_language_arch_info.
9138 * objc-lang.c (objc_language_arch_info): Delete function, move
9139 implementation to...
9140 (objc_language::language_arch_info): ...here, a new member
9141 function.
9142 (objc_language_data): Delete la_language_arch_info.
9143 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9144 implementation to...
9145 (opencl_language::language_arch_info): ...here, a new member
9146 function.
9147 (opencl_language_data): Delete la_language_arch_info.
9148 * p-lang.c (pascal_language_arch_info): Delete function, move
9149 implementation to...
9150 (pascal_language::language_arch_info): ...here, a new member
9151 function.
9152 (pascal_language_data): Delete la_language_arch_info.
9153 * rust-lang.c (rust_language_arch_info): Delete function, move
9154 implementation to...
9155 (rust_language::language_arch_info): ...here, a new member
9156 function.
9157 (rust_language_data): Delete la_language_arch_info.
9158
48448202
AB
91592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9160
9161 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9162 initializer.
9163 * c-lang.c (c_language_data): Likewise.
9164 (cplus_language_data): Likewise.
9165 (cplus_language::pass_by_reference_info): New method.
9166 (asm_language_data): Delete la_pass_by_reference initializer.
9167 (minimal_language_data): Likewise.
9168 * cp-abi.c (cp_pass_by_reference): Remove use of
9169 default_pass_by_reference.
9170 * d-lang.c (d_language_data): Likewise.
9171 * f-lang.c (f_language_data): Likewise.
9172 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9173 default_pass_by_reference.
9174 * go-lang.c (go_language_data): Likewise.
9175 * language.c (language_pass_by_reference): Update.
9176 (default_pass_by_reference): Delete.
9177 (unknown_language_data): Delete la_pass_by_reference
9178 initializer.
9179 (auto_language_data): Likewise.
9180 * language.h (struct language_data): Delete la_pass_by_reference
9181 field.
9182 (language_defn::pass_by_reference_info): New member function.
9183 (default_pass_by_reference): Delete declaration.
9184 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9185 initializer.
9186 * objc-lang.c (objc_language_data): Likewise.
9187 * opencl-lang.c (opencl_language_data): Likewise.
9188 * p-lang.c (pascal_language_data): Likewise.
9189 * rust-lang.c (rust_language_data): Likewise.
9190
15e5fd35
AB
91912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9192
9193 * ada-lang.c (ada_read_var_value): Delete function, move
9194 implementation to...
9195 (ada_language::read_var_value): ...here.
9196 (ada_language_data): Delete la_read_var_value initializer.
9197 * c-lang.c (c_language_data): Likewise.
9198 (cplus_language_data): Likewise.
9199 (minimal_language_data): Likewise.
9200 * d-lang.c (d_language_data): Likewise.
9201 * f-lang.c (f_language_data): Likewise.
9202 * findvar.c (default_read_var_value): Rename to...
9203 (language_defn::read_var_value): ...this.
9204 * findvar.c (read_var_value): Update header comment, and change to
9205 call member function instead of function pointer.
9206 * go-lang.c (go_language_data): Likewise.
9207 * language.c (unknown_language_data): Delete la_read_var_value
9208 initializer.
9209 (auto_language_data): Likewise.
9210 * language.h (struct language_data): Delete la_read_var_value
9211 field.
9212 (language_defn::read_var_value): New member function.
9213 (default_read_var_value): Delete declaration.
9214 * m2-lang.c (m2_language_data): Delete la_read_var_value
9215 initializer.
9216 * objc-lang.c (objc_language_data): Likewise.
9217 * opencl-lang.c (opencl_language_data): Likewise.
9218 * p-lang.c (pascal_language_data): Likewise.
9219 * rust-lang.c (rust_language_data): Likewise.
9220 * value.h (default_read_var_value): Delete declaration.
9221
5bd40f2a
AB
92222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9223
9224 * ada-lang.c (ada_print_array_index): Delete function, move
9225 implementation to...
9226 (ada_language::print_array_index): ...here.
9227 (ada_language_data): Delete la_print_array_index initializer.
9228 * c-lang.c (c_language_data): Likewise.
9229 (cplus_language_data): Likewise.
9230 (minimal_language_data): Likewise.
9231 * d-lang.c (d_language_data): Likewise.
9232 * f-lang.c (f_language_data): Likewise.
9233 * go-lang.c (go_language_data): Likewise.
9234 * language.c (default_print_array_index): Delete function, move
9235 implementation to...
9236 (language_defn::print_array_index): ...here.
9237 (unknown_language_data): Delete la_print_array_index initializer.
9238 (auto_language_data): Likewise.
9239 * language.h (struct language_data): Delete la_print_array_index
9240 field.
9241 (language_defn::print_array_index): New member function.
9242 (LA_PRINT_ARRAY_INDEX): Update.
9243 (default_print_array_index): Delete declaration.
9244 * m2-lang.c (m2_language_data): Delete la_print_array_index
9245 initializer.
9246 * objc-lang.c (objc_language_data): Likewise.
9247 * opencl-lang.c (opencl_language_data): Likewise.
9248 * p-lang.c (pascal_language_data): Likewise.
9249 * rust-lang.c (rust_language_data): Likewise.
9250
0874fd07
AB
92512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * gdb/ada-lang.c (ada_language_defn): Convert to...
9254 (ada_language_data): ...this.
9255 (class ada_language): New class.
9256 (ada_language_defn): New static global.
9257 * gdb/c-lang.c (c_language_defn): Convert to...
9258 (c_language_data): ...this.
9259 (class c_language): New class.
9260 (c_language_defn): New static global.
9261 (cplus_language_defn): Convert to...
9262 (cplus_language_data): ...this.
9263 (class cplus_language): New class.
9264 (cplus_language_defn): New static global.
9265 (asm_language_defn): Convert to...
9266 (asm_language_data): ...this.
9267 (class asm_language): New class.
9268 (asm_language_defn): New static global.
9269 (minimal_language_defn): Convert to...
9270 (minimal_language_data): ...this.
9271 (class minimal_language): New class.
9272 (minimal_language_defn): New static global.
9273 * gdb/d-lang.c (d_language_defn): Convert to...
9274 (d_language_data): ...this.
9275 (class d_language): New class.
9276 (d_language_defn): New static global.
9277 * gdb/f-lang.c (f_language_defn): Convert to...
9278 (f_language_data): ...this.
9279 (class f_language): New class.
9280 (f_language_defn): New static global.
9281 * gdb/go-lang.c (go_language_defn): Convert to...
9282 (go_language_data): ...this.
9283 (class go_language): New class.
9284 (go_language_defn): New static global.
9285 * gdb/language.c (unknown_language_defn): Remove declaration.
9286 (current_language): Initialize to nullptr, real initialization is
9287 moved to _initialize_language.
9288 (languages): Delete global.
9289 (language_defn::languages): Define.
9290 (set_language_command): Use language_defn::languages.
9291 (set_language): Likewise.
9292 (range_error): Likewise.
9293 (language_enum): Likewise.
9294 (language_def): Likewise.
9295 (add_set_language_command): Use language_def::languages for the
9296 language list, and language_def to lookup language pointers.
9297 (skip_language_trampoline): Use language_defn::languages.
9298 (unknown_language_defn): Convert to...
9299 (unknown_language_data): ...this.
9300 (class unknown_language): New class.
9301 (unknown_language_defn): New static global.
9302 (auto_language_defn): Convert to...
9303 (auto_language_data): ...this.
9304 (class auto_language): New class.
9305 (auto_language_defn): New static global.
9306 (language_gdbarch_post_init): Use language_defn::languages.
9307 (_initialize_language): Initialize current_language.
9308 * gdb/language.h (struct language_defn): Rename to...
9309 (struct language_data): ...this.
9310 (struct language_defn): New.
9311 (auto_language_defn): Delete.
9312 (unknown_language_defn): Delete.
9313 (minimal_language_defn): Delete.
9314 (ada_language_defn): Delete.
9315 (asm_language_defn): Delete.
9316 (c_language_defn): Delete.
9317 (cplus_language_defn): Delete.
9318 (d_language_defn): Delete.
9319 (f_language_defn): Delete.
9320 (go_language_defn): Delete.
9321 (m2_language_defn): Delete.
9322 (objc_language_defn): Delete.
9323 (opencl_language_defn): Delete.
9324 (pascal_language_defn): Delete.
9325 (rust_language_defn): Delete.
9326 * gdb/m2-lang.c (m2_language_defn): Convert to...
9327 (m2_language_data): ...this.
9328 (class m2_language): New class.
9329 (m2_language_defn): New static global.
9330 * gdb/objc-lang.c (objc_language_defn): Convert to...
9331 (objc_language_data): ...this.
9332 (class objc_language): New class.
9333 (objc_language_defn): New static global.
9334 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9335 (opencl_language_data): ...this.
9336 (class opencl_language): New class.
9337 (opencl_language_defn): New static global.
9338 * gdb/p-lang.c (pascal_language_defn): Convert to...
9339 (pascal_language_data): ...this.
9340 (class pascal_language): New class.
9341 (pascal_language_defn): New static global.
9342 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9343 language pointer, update comment format.
9344 * gdb/rust-lang.c (rust_language_defn): Convert to...
9345 (rust_language_data): ...this.
9346 (class rust_language): New class.
9347 (rust_language_defn): New static global.
9348
1313c56e
AB
93492020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9350
9351 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9352 member variable.
9353 <m_stmt_at_address>: New member variable.
9354 (lnp_state_machine::record_line): Don't record some lines, update
9355 tracking of is_stmt at the same address.
9356 (lnp_state_machine::lnp_state_machine): Initialise new member
9357 variables.
9358
b7ed9f3d
ST
93592020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9360
9361 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9362 "-include gnu-nat-mig.h".
9363 * gnu-nat-mig.h: New file.
9364 * gnu-nat.c: Include "gnu-nat-mig.h".
9365 (exc_server, msg_reply_server, notify_server,
9366 process_reply_server): Remove declarations.
9367
14a8ad62
ST
93682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9369
9370 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9371 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9372 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9373 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9374 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9375 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9376 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9377 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9378 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9379 to gnu_nat_target class.
9380 * gnu-nat.c: Likewise.
9381 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9382 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9383 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9384 object.
9385 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9386 instead of `gnu_target'.
9387
0af5e106
ST
93882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9389
9390 * i386-gnu-tdep.c: Include "gdbcore.h"
9391 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9392 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9393 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9394 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9395 i386_gnu_sigcontext_addr): New functions
9396 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9397 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9398 tdep.
9399
078f2fc9
ST
94002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9401
9402 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9403 before fork_inferior call. Avoid calling it if target_is_pushed returns
9404 true.
9405
53dff92c
ST
94062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9407
9408 * gnu-nat.h (gnu_target): New variable declaration.
9409 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9410 gnu_target.
9411 * gnu-nat.c (gnu_target): New variable.
9412 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9413 add_thread_silent, and add_thread calls.
9414 (gnu_nat_target::create_inferior): Pass gnu_target to
9415 add_thread_silent, thread_change_ptid call.
9416 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9417 call.
9418
5a8b8627
ST
94192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9420
9421 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9422 (gnu_nat_target::find_memory_regions): Remove unused
9423 `old_address' variable.
9424
366f550a
ST
94252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9426
9427 * gnu-nat.c: Include "gdbarch.h".
9428
f14871bf
ST
94292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9430
9431 * reply_mig_hack.awk (Error return): Cast function through
9432 void *, to bypass compiler function call check.
9433
c6887cfb
ST
94342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9435
9436 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9437 $(srcdir)/reply_mig_hack.awk.
9438
6930bffe
ST
94392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9440
9441 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9442
112c22ed
JG
94432020-05-30 Jonny Grant <jg@jguk.org>
9444
9445 * configure.ac (ACX_BUGURL): change bug URL to https.
9446
f68f85b5
PA
94472020-05-30 Pedro Alves <palves@redhat.com>
9448
9449 * cp-support.c (replace_typedefs_template): New.
9450 (replace_typedefs_qualified_name): Handle
9451 DEMANGLE_COMPONENT_TEMPLATE.
9452
976ca316
SM
94532020-05-29 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9456 dwarf2/index-cache.h, dwarf2/index-write.c,
9457 dwarf2/index-write.h, dwarf2/line-header.c,
9458 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9459 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9460 variables and fields from `dwarf2_per_objfile` to just
9461 `per_objfile` throughout.
9462
989ade05
SM
94632020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9464
9465 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9466 <push_dwarf_reg_entry_value>: Add comment.
9467
c47bae85
KB
94682020-05-28 Kevin Buettner <kevinb@redhat.com>
9469 Keith Seitz <keiths@redhat.com>
9470
9471 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9472 instead of PyEval_ReleaseLock.
9473 (class gdbpy_gil): Move to earlier in file.
9474 (finalize_python): Set gdb_python_initialized.
9475 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9476 when not initialized.
9477
44486dcf
SM
94782020-05-28 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9481 <push_dwarf_reg_entry_value>: Remove assert. Override
9482 per_objfile with caller_per_objfile.
9483
f030440d
TV
94842020-05-28 Tom de Vries <tdevries@suse.de>
9485
9486 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9487 PR gold/15646 workaround to symbol kind "type".
9488
f0fbb768
TT
94892020-05-27 Tom Tromey <tromey@adacore.com>
9490
9491 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9492
af0b2a3e
TT
94932020-05-27 Tom Tromey <tromey@adacore.com>
9494
9495 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9496 Use htab_find_with_hash.
9497 <add_abbrev>: Remove "abbrev_number" parameter.
9498 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9499 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9500 (hash_abbrev): Add comment.
9501 (abbrev_table::lookup_abbrev): Move to header file.
9502 (abbrev_table::read): Update.
9503
7d00ffec
TT
95042020-05-27 Tom Tromey <tromey@adacore.com>
9505
9506 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9507 method.
9508 <canonical_name>: New member.
9509 <raw_name>: Rename from "name".
9510 (partial_die_info): Initialize canonical_name.
9511 (scan_partial_symbols): Check raw_name.
9512 (partial_die_parent_scope, partial_die_full_name)
9513 (add_partial_symbol, add_partial_subprogram)
9514 (add_partial_enumeration, load_partial_dies): Use "name" method.
9515 (partial_die_info::name): New method.
9516 (partial_die_info::read, guess_partial_die_structure_name)
9517 (partial_die_info::fixup): Update.
9518
697bba18
TT
95192020-05-27 Tom Tromey <tromey@adacore.com>
9520
9521 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9522 <get_ref_die_offset>: Inline.
9523 <get_ref_die_offset_complaint>: New method.
9524 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9525 (attribute::get_ref_die_offset_complaint): Rename from
9526 get_ref_die_offset. Just issue complaint.
9527
c17ace43
HD
95282020-05-27 Hannes Domani <ssbssa@yahoo.de>
9529
9530 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9531
96445f0b
HD
95322020-05-27 Hannes Domani <ssbssa@yahoo.de>
9533
9534 * exec.c (exec_file_attach): Use errno value of first openp failure.
9535
ac637ec3
HD
95362020-05-27 Hannes Domani <ssbssa@yahoo.de>
9537
9538 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9539 Don't close thread handle.
9540
17ee85fc
TT
95412020-05-27 Tom Tromey <tom@tromey.com>
9542 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9545 shared_ptr.
9546 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9547 member.
9548 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9549 dwarf2_per_bfd_objfile_data_key>: New globals.
9550 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9551 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9552 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9553 shared.
9554 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9555 short-circuit when sharing.
9556 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9557 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9558
39b16f87
SM
95592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9562 to...
9563 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9564 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9565
fcf23d5b
SM
95662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9567
9568 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9569 build_name_components, find_name_components_bounds>:
9570 Add per_objfile parameter.
9571 (struct mapped_index) <symbol_name_at>: Likewise.
9572 (struct mapped_debug_names): Remove constructor.
9573 <dwarf2_per_objfile>: Remove field.
9574 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9575 (mapped_index_base::find_name_components_bounds,
9576 mapped_index_base::build_name_components,
9577 dw2_expand_symtabs_matching_symbol): Likewise.
9578 (class mock_mapped_index) <symbol_name_at>: Likewise.
9579 (check_match): Likewise.
9580 (check_find_bounds_finds): Likewise.
9581 (test_mapped_index_find_name_component_bounds): Update.
9582 (CHECK_MATCH): Update.
9583 (dw2_expand_symtabs_matching): Update.
9584 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9585 per_objfile parameter.
9586 <find_vec_in_debug_names>: Likewise.
9587 <m_per_objfile>: New field.
9588 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9589 parameter.
9590 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9591 (dw2_debug_names_iterator::next): Update.
9592 (dw2_debug_names_lookup_symbol): Update.
9593 (dw2_debug_names_expand_symtabs_for_function): Update.
9594 (dw2_debug_names_map_matching_symbols): Update.
9595 (dw2_debug_names_expand_symtabs_matching): Update.
9596 (dwarf2_read_debug_names): Update.
9597
7188ed02
SM
95982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9599
9600 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9601 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9602 move to dwarf2_per_objfile.
9603 <read_in_chain>: Remove.
9604 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9605 remove_all_cus, age_comp_units>: New methods.
9606 <m_dwarf2_cus>: New member.
9607 (struct dwarf2_per_cu_data) <cu>: Remove.
9608 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9609 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9610 moved to methods of dwarf2_per_objfile.
9611 (dwarf2_clear_marks): Remove.
9612 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9613 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9614 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9615 (dwarf2_per_objfile::remove_all_cus): New.
9616 (class free_cached_comp_units) <~free_cached_comp_units>:
9617 Update.
9618 (load_cu): Update.
9619 (dw2_do_instantiate_symtab): Adjust.
9620 (fill_in_sig_entry_from_dwo_entry): Adjust.
9621 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9622 (cutu_reader::cutu_reader): Likewise.
9623 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9624 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9625 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9626 and dwarf2_per_objfile::age_comp_units.
9627 (load_partial_comp_unit): Update.
9628 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9629 (process_queue): Likewise.
9630 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9631 backlink.
9632 (dwarf2_read_addr_index): Likewise.
9633 (follow_die_offset): Likewise.
9634 (dwarf2_fetch_die_loc_sect_off): Likewise.
9635 (dwarf2_fetch_constant_bytes): Likewise.
9636 (dwarf2_fetch_die_type_sect_off): Likewise.
9637 (follow_die_sig_1): Likewise.
9638 (load_full_type_unit): Likewise.
9639 (read_signatured_type): Likewise.
9640 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9641 (dwarf2_cu::~dwarf2_cu): Remove.
9642 (dwarf2_per_objfile::get_cu): New.
9643 (dwarf2_per_objfile::set_cu): New.
9644 (age_cached_comp_units): Rename to...
9645 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9646 to std::unordered_map.
9647 (free_one_cached_comp_unit): Rename to...
9648 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9649 to std::unordered_map.
9650 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9651 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9652 a dwarf2_per_objfile in data.
9653 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9654 (dwarf2_clear_marks): Remove.
9655
2e671100
SM
96562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9659 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9660 (init_tu_and_read_dwo_dies): Likewise.
9661 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9662 (cutu_reader::cutu_reader): Likewise.
9663 (load_partial_comp_unit): Likewise.
9664 (process_psymtab_comp_unit): Update.
9665 (build_type_psymtabs_1): Update.
9666 (process_skeletonless_type_unit): Update.
9667 (load_full_comp_unit): Update.
9668 (find_partial_die): Update.
9669 (dwarf2_read_addr_index): Update.
9670 (read_signatured_type): Update.
9671
2e6a9f79
SM
96722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9673
9674 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9675 m_header_read_in>: New fields.
9676 <get_header>: New method.
9677 * dwarf2/read.c (per_cu_header_read_in): Remove.
9678 (dwarf2_per_cu_data::get_header): New.
9679 (dwarf2_per_cu_data::addr_size): Update.
9680 (dwarf2_per_cu_data::offset_size): Update.
9681 (dwarf2_per_cu_data::ref_addr_size): Update.
9682
1b555f17
SM
96832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9684
9685 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9686 (dw2_do_instantiate_symtab): Update.
9687 (queue_and_load_all_dwo_tus): Change parameter from
9688 dwarf2_per_cu_data to dwarf2_cu.
9689 (dwarf2_fetch_die_loc_sect_off): Update.
9690 (dwarf2_fetch_constant_bytes): Update.
9691 (dwarf2_fetch_die_type_sect_off): Update.
9692
8fc0b21d
SM
96932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9694
9695 * dwarf2/read.c (process_full_comp_unit,
9696 process_full_type_unit): Remove per_cu, per_objfile paramters.
9697 Add dwarf2_cu parameter.
9698 (process_queue): Update.
9699
168c9250
SM
97002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9701
9702 * dwarf2/read.c (create_cu_from_index_list): Replace
9703 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9704 (create_cus_from_index_list): Likewise.
9705 (create_cus_from_index): Likewise.
9706 (create_signatured_type_table_from_index): Likewise.
9707 (create_cus_from_debug_names_list): Likewise.
9708 (create_cus_from_debug_names): Likewise.
9709 (dwarf2_read_gdb_index): Update.
9710 (dwarf2_read_debug_names): Update.
9711
e286671b
TT
97122020-05-27 Tom Tromey <tom@tromey.com>
9713 Simon Marchi <simon.marchi@efficios.com>
9714
9715 * dwarf2/read.h (struct dwarf2_per_objfile)
9716 <get_type_for_signatured_type, set_type_for_signatured_type>:
9717 New methods.
9718 <m_type_map>: New member.
9719 (struct signatured_type) <type>: Remove.
9720 * dwarf2/read.c
9721 (dwarf2_per_objfile::get_type_for_signatured_type,
9722 dwarf2_per_objfile::set_type_for_signatured_type): New.
9723 (get_signatured_type): Use new methods.
9724
8adb8487
TT
97252020-05-27 Tom Tromey <tom@tromey.com>
9726 Simon Marchi <simon.marchi@efficios.com>
9727
9728 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9729 (struct dwarf2_per_objfile) <type_units>: New member.
9730 <get_type_unit_group_unshareable>: New method.
9731 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9732 num_symtabs, symtabs>: Remove; move to
9733 type_unit_group_unshareable.
9734 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9735 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9736 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9737
127bbf4b
SM
97382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * dwarf2/read.h (struct dwarf2_per_cu_data):
9741 <dwarf2_per_objfile>: Remove.
9742 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9743 dwarf2_per_objfile.
9744 (create_signatured_type_table_from_index): Likewise.
9745 (create_signatured_type_table_from_debug_names): Likewise.
9746 (create_debug_type_hash_table): Likewise.
9747 (fill_in_sig_entry_from_dwo_entry): Likewise.
9748 (create_type_unit_group): Likewise.
9749 (read_comp_units_from_section): Likewise.
9750 (create_cus_hash_table): Likewise.
9751
f6e649dd
SM
97522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9753
9754 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9755 dwarf2_per_cu_data::dwarf2_per_objfile.
9756 (compute_compunit_symtab_includes): Likewise.
9757 (dwarf2_cu::start_symtab): Likewise.
9758
aa66c379
SM
97592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9760
9761 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9762 parameter.
9763 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9764 (read_namespace_alias): Update.
9765 (lookup_die_type): Update.
9766 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9767 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9768 Update.
9769 (disassemble_dwarf_expression): Update.
9770
120ce1b5
SM
97712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * dwarf2/read.h (struct dwarf2_queue_item): Add
9774 dwarf2_per_objfile parameter, assign new parameter.
9775 <per_objfile>: New field.
9776 * dwarf2/read.c (free_one_cached_comp_unit): Add
9777 dwarf2_per_objfile parameter.
9778 (queue_comp_unit): Likewise.
9779 (dw2_do_instantiate_symtab): Update.
9780 (process_psymtab_comp_unit): Update.
9781 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9782 (process_imported_unit_die): Update.
9783 (queue_and_load_dwo_tu): Update.
9784 (follow_die_offset): Update.
9785 (follow_die_sig_1): Update.
9786
9f47c707
SM
97872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9790 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9791 (read_call_site_scope): Assign per_objfile.
9792 (dwarf2_per_cu_data::objfile): Remove.
9793 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9794 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9795 dwarf2_per_objfile parameter.
9796 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9797 dwarf2_per_objfile parameter.
9798 (dwarf_expr_reg_to_entry_parameter): Add output
9799 dwarf2_per_objfile parameter.
9800 (locexpr_get_frame_base): Update.
9801 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9802 <push_dwarf_reg_entry_value>: Update.
9803 <call_site_to_target_addr>: Update.
9804 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9805 parameter.
9806 (value_of_dwarf_reg_entry): Update.
9807 (rw_pieced_value): Update.
9808 (indirect_synthetic_pointer): Update.
9809 (dwarf2_evaluate_property): Update.
9810 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9811 parameter.
9812 (locexpr_read_variable): Update.
9813 (locexpr_get_symbol_read_needs): Update.
9814 (loclist_read_variable): Update.
9815
14095eb3
SM
98162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9819 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9820 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9821 parameter.
9822 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9823 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9824 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9825 parameter.
9826 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9827 sect_variable_value): Add dwarf2_per_objfile parameter.
9828 (class dwarf_evaluate_loc_desc) <dwarf_call,
9829 dwarf_variable_value>: Update.
9830 (fetch_const_value_from_synthetic_pointer): Add
9831 dwarf2_per_objfile parameter.
9832 (fetch_const_value_from_synthetic_pointer): Update.
9833 (coerced_pieced_ref): Update.
9834 (class symbol_needs_eval_context) <dwarf_call,
9835 dwarf_variable_value>: Update.
9836 (dwarf2_compile_expr_to_ax): Update.
9837
3c3cd3d4
SM
98382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9841 parameter.
9842 (dwarf2_evaluate_loc_desc_full): Update.
9843
82ca3f51
SM
98442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9847 parameter.
9848 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9849 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9850 dwarf2_per_objfile parameter.
9851 (decode_debug_loc_dwo_addresses): Likewise.
9852 (dwarf2_find_location_expression): Update.
9853 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9854 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9855 parameter.
9856 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9857 parameter.
9858 (locexpr_describe_location_1): Likewise.
9859 (locexpr_describe_location): Update.
9860
4b167ea1
SM
98612020-05-27 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9864 Remove.
9865 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9866 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9867 (dwarf2_compile_property_to_c): Update.
9868 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9869 use text offset from objfile.
9870 (locexpr_tracepoint_var_ref): Update.
9871 (locexpr_generate_c_location): Update.
9872 (loclist_describe_location): Update.
9873 (loclist_tracepoint_var_ref): Update.
9874 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9875 dwarf2_per_objfile parameter.
9876 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9877 use text offset from objfile.
9878 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9879
89b07335
SM
98802020-05-27 Simon Marchi <simon.marchi@efficios.com>
9881
9882 * dwarf2/expr.h (struct dwarf_expr_context)
9883 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9884 <offset>: Remove.
9885 <per_objfile>: New member.
9886 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9887 dwarf2_per_objfile parameter. Don't set offset, set
9888 per_objfile.
9889 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9890 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9891 a dwarf2_per_objfile object instead of an offset.
9892 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9893 constructor.
9894 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9895 to dwarf2_expr_executor constructor. Don't set offset.
9896 (dwarf2_fetch_cfa_info): Update.
9897 (struct dwarf2_frame_cache) <text_offset>: Remove.
9898 <per_objfile>: New field.
9899 (dwarf2_frame_cache): Update.
9900 (dwarf2_frame_prev_register): Update.
9901 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9902 <dwarf_evaluate_loc_desc>: Add constructor.
9903 (dwarf2_evaluate_loc_desc_full): Update.
9904 (dwarf2_locexpr_baton_eval): Update.
9905 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9906 Add constructor.
9907 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9908
293e7e51
SM
99092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9912 addr_sized_int_type>: Move to dwarf2_cu.
9913 <int_type>: Move to dwarf2_per_objfile.
9914 (struct dwarf2_per_objfile) <int_type>: Move here.
9915 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9916 addr_sized_int_type>: Move here.
9917 (read_func_scope): Update.
9918 (read_array_type): Update.
9919 (read_tag_string_type): Update.
9920 (attr_to_dynamic_prop): Update.
9921 (dwarf2_per_cu_data::int_type): Rename to...
9922 (dwarf2_per_objfile::int_type): ... this.
9923 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9924 (dwarf2_cu::addr_sized_int_type): ... this.
9925 (read_subrange_type): Update.
9926 (dwarf2_per_cu_data::addr_type): Rename to...
9927 (dwarf2_cu::addr_type): ... this.
9928 (set_die_type): Update.
9929
64874a40
SM
99302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9933 data through per_cu->cu.
9934
4ab09049
SM
99352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9938 dwarf2_per_cu_data parameter fo dwarf2_cu.
9939 (lookup_dwo_type_unit): Likewise.
9940 (read_cutu_die_from_dwo): Likewise.
9941 (lookup_dwo_unit): Likewise.
9942 (open_and_init_dwo_file): Likewise.
9943 (lookup_dwo_cutu): Likewise.
9944 (lookup_dwo_comp_unit): Likewise.
9945 (lookup_dwo_type_unit): Likewise.
9946 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9947 (cutu_reader::cutu_reader): Update.
9948
47b14e86
SM
99492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9952 parameter.
9953 (process_full_type_unit): Likewise.
9954 (process_queue): Update.
9955
43182c09
SM
99562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * dwarf2/read.c (recursively_compute_inclusions): Add
9959 dwarf2_per_objfile parameter.
9960 (compute_compunit_symtab_includes): Likewise.
9961 (process_cu_includes): Update.
9962
7aa104c4
SM
99632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9966 parameter.
9967 (create_type_unit_group): Update.
9968 (process_psymtab_comp_unit_reader): Update.
9969 (build_type_psymtabs_reader): Update.
9970
e3beb21d
SM
99712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9972
9973 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9974 object through m_this_cu->cu.
9975
d460f660
SM
99762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9977
9978 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9979 the info parameter.
9980 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9981
ab432490
SM
99822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9983
9984 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9985 per_objfile parameter.
9986 (load_full_type_unit): Add per_objfile parameter.
9987 (read_signatured_type): Likewise.
9988 (load_full_comp_unit): Likewise.
9989 (load_cu): Likewise.
9990 (dw2_do_instantiate_symtab): Likewise.
9991 (dw2_get_file_names): Likewise.
9992 (dw2_map_symtabs_matching_filename): Update.
9993 (dw_expand_symtabs_matching_file_matcher): Update.
9994 (dw2_map_symbol_filenames): Update.
9995 (process_psymtab_comp_unit): Add per_objfile parameter.
9996 (build_type_psymtabs_1): Update.
9997 (process_skeletonless_type_unit): Update.
9998 (dwarf2_build_psymtabs_hard): Update.
9999 (load_partial_comp_unit): Add per_objfile parameter.
10000 (scan_partial_symbols): Update.
10001 (load_full_comp_unit): Add per_objfile parameter.
10002 (process_imported_unit_die): Update.
10003 (create_cus_hash_table): Update.
10004 (find_partial_die): Update.
10005 (dwarf2_read_addr_index): Update.
10006 (follow_die_offset): Update.
10007 (dwarf2_fetch_die_loc_sect_off): Update.
10008 (dwarf2_fetch_constant_bytes): Update.
10009 (dwarf2_fetch_die_type_sect_off): Update.
10010 (follow_die_sig_1): Update.
10011 (load_full_type_unit): Add per_objfile parameter.
10012 (read_signatured_type): Likewise.
10013
313bad1b
SM
100142020-05-27 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10017 of objfile_name.
10018
c3699833
SM
100192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10020
10021 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10022 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10023 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10024 field.
10025 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10026 (create_cus_from_index): Update.
10027 (dwarf2_read_gdb_index): Update.
10028 (create_cus_from_debug_names): Update.
10029 (dwarf2_read_debug_names): Update.
10030 (get_abbrev_section_for_cu): Update.
10031 (create_all_comp_units): Update.
10032 (read_attribute_value): Update.
10033 (get_debug_line_section): Update.
10034 * dwarf2/index-cache.c (index_cache::store): Update.
10035 * dwarf2/index-write.c (save_gdb_index_command): Update.
10036 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10037
1859c670
SM
100382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10039
10040 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10041 member.
10042 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10043 dwarf2_per_cu_data::per_bfd.
10044 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10045 (create_type_unit_group): Likewise.
10046 (queue_comp_unit): Remove reference to
10047 per_cu->dwarf2_per_objfile.
10048 (maybe_queue_comp_unit): Likewise.
10049 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10050 (create_cus_hash_table): Assign new field.
10051
5e22e966
SM
100522020-05-27 Simon Marchi <simon.marchi@efficios.com>
10053
10054 * dwarf2/read.c: Replace
10055 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10056 dwarf2_cu->per_objfile throughout.
10057
97a1449a
SM
100582020-05-27 Simon Marchi <simon.marchi@efficios.com>
10059
10060 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10061 parameter, don't use per_cu->dwarf2_per_objfile.
10062 (dw2_instantiate_symtab): Likewise.
10063 (dw2_find_last_source_symtab): Update.
10064 (dw2_map_expand_apply): Update.
10065 (dw2_lookup_symbol): Update.
10066 (dw2_expand_symtabs_for_function): Update.
10067 (dw2_expand_all_symtabs): Update.
10068 (dw2_expand_symtabs_with_fullname): Update.
10069 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10070 don't use per_cu->dwarf2_per_objfile.
10071 (dw2_expand_marked_cus): Update.
10072 (dw2_find_pc_sect_compunit_symtab): Update.
10073 (dw2_debug_names_lookup_symbol): Update.
10074 (dw2_debug_names_expand_symtabs_for_function): Update.
10075 (dw2_debug_names_map_matching_symbols): Update.
10076 (dwarf2_psymtab::expand_psymtab): Update.
10077
9e021579
SM
100782020-05-27 Simon Marchi <simon.marchi@efficios.com>
10079
10080 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10081 <per_objfile>: New member.
10082 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10083 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10084 call to dwarf2_cu.
10085 (cutu_reader::cutu_reader): Update.
10086 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10087
ae090bdb
SM
100882020-05-27 Simon Marchi <simon.marchi@efficios.com>
10089
10090 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10091 struct dwarf2_per_objfile.
10092 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10093 dwarf2_per_bfd.
10094 * dwarf2/read.c (set_die_type): Update.
10095 (get_die_type_at_offset): Update.
10096
af758d11
SM
100972020-05-27 Tom Tromey <tom@tromey.com>
10098 Simon Marchi <simon.marchi@efficios.com>
10099
10100 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10101 method.
10102 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10103 get_symtab, set_symtab>: New methods.
10104 <m_symtabs>: New field.
10105 (struct dwarf2_psymtab): Derive from partial_symtab.
10106 <readin_p, get_compunit_symtab>: Declare methods.
10107 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10108 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10109 New methods.
10110 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10111 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10112 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10113 (dw2_symtab_iter_next, dw2_print_stats)
10114 (dw2_expand_symtabs_with_fullname)
10115 (dw2_expand_symtabs_matching_one)
10116 (dw_expand_symtabs_matching_file_matcher)
10117 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10118 (dw2_debug_names_iterator::next)
10119 (dw2_debug_names_map_matching_symbols)
10120 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10121 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10122 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10123 New methods.
10124 (get_compunit_symtab, process_full_comp_unit)
10125 (process_full_type_unit): Update.
10126 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10127
5989a64e
SM
101282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10129
10130 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10131 then introduce a new dwarf2_per_objfile type.
10132 <read_line_string>: Move to the new dwarf2_per_objfile type.
10133 <objfile>: Likewise.
10134 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10135 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10136 dwarf2_per_objfile->per_bfd.
10137 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10138 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10139 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10140 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10141 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10142 (dwarf2_per_objfile::locate_sections): Rename to...
10143 (dwarf2_per_bfd::locate_sections): ... this.
10144 (dwarf2_per_objfile::get_cutu): Rename to...
10145 (dwarf2_per_bfd::get_cutu): ... this.
10146 (dwarf2_per_objfile::get_cu): Rename to...
10147 (dwarf2_per_bfd::get_cu): ... this.
10148 (dwarf2_per_objfile::get_tu): Rename to...
10149 (dwarf2_per_bfd::get_tu): ... this.
10150 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10151 (dwarf2_per_bfd::allocate_per_cu): ... this.
10152 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10153 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10154 (get_gdb_index_contents_ftype): Change parameter from
10155 dwarf2_per_objfile to dwarf2_per_bfd.
10156 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10157 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10158
a50264ba
TT
101592020-05-27 Tom Tromey <tom@tromey.com>
10160 Simon Marchi <simon.marchi@efficios.com>
10161
10162 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10163 (allocate_piece_closure): Set "per_objfile" member.
10164 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10165 (locexpr_describe_location, loclist_describe_location): Use new
10166 member.
10167 * dwarf2/read.c (read_call_site_scope)
10168 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10169 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10170 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10171 handle_data_member_location): Set per_objfile member.
10172 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10173 member.
10174 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10175
d3473f0c
TT
101762020-05-27 Tom Tromey <tom@tromey.com>
10177
10178 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10179 allocate_signatured_type>: Declare new methods.
10180 <m_num_psymtabs>: New member.
10181 (struct dwarf2_per_cu_data) <index>: New member.
10182 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10183 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10184 (create_cu_from_index_list): Use allocate_per_cu.
10185 (create_signatured_type_table_from_index)
10186 (create_signatured_type_table_from_debug_names)
10187 (create_debug_type_hash_table, add_type_unit)
10188 (read_comp_units_from_section): Use allocate_signatured_type.
10189
5717c425
TT
101902020-05-27 Tom Tromey <tom@tromey.com>
10191
10192 * psymtab.c (partial_map_expand_apply)
10193 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10194 (psym_lookup_global_symbol_language)
10195 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10196 (psym_print_stats, psym_expand_symtabs_for_function)
10197 (psym_map_symbol_filenames, psym_map_matching_symbols)
10198 (psym_expand_symtabs_matching)
10199 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10200 (maintenance_check_psymtabs): Update.
10201 * psympriv.h (struct partial_symtab) <readin_p,
10202 get_compunit_symtab>: Add objfile parameter.
10203 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10204 Likewise.
10205 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10206 get_compunit_symtab>: Likewise.
10207 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10208
45940949
TT
102092020-05-27 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10212 member.
10213 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10214 (create_cu_from_index_list)
10215 (create_signatured_type_table_from_index)
10216 (create_signatured_type_table_from_debug_names)
10217 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10218 (dwarf2_create_include_psymtab)
10219 (create_debug_type_hash_table, add_type_unit)
10220 (create_type_unit_group, read_comp_units_from_section)
10221 (dwarf2_compute_name, create_cus_hash_table)
10222 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10223 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10224 obstack.
10225 (dw2_get_real_path): Likewise. Change argument to
10226 dwarf2_per_objfile.
10227
f8c6d152
LM
102282020-05-27 Luis Machado <luis.machado@linaro.org>
10229
10230 PR tdep/26000
10231 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10232 for ldrd (immediate).
10233
e98d2e6d
PW
102342020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235
10236 * command.h: Add comment giving the name of class_tui.
10237 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10238 create the fake command for the help for class_tui.
10239
53a47a3e
TT
102402020-05-26 Tom Tromey <tromey@adacore.com>
10241
10242 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10243 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10244 (val_atr): New function.
10245 (value_val_atr): Use it.
10246 * ada-valprint.c (print_optional_low_bound): Change low bound
10247 handling for enums.
10248 (val_print_packed_array_elements): Don't call discrete_position.
10249 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10250 discrete_position for enum types.
10251 * language.c (default_print_array_index): Change type.
10252 * language.h (struct language_defn) <la_print_array_index>: Add
10253 index_type parameter, change type of index_value.
10254 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10255 (default_print_array_index): Update.
10256 * valprint.c (maybe_print_array_index): Don't call
10257 value_from_longest. Update.
10258 (value_print_array_elements): Don't call discrete_position.
10259
0bc2354b
TT
102602020-05-26 Tom Tromey <tromey@adacore.com>
10261
10262 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10263 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10264
1218a4bf
CDA
102652020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10266
10267 PR gdb/13519
10268 * avr-tdep.c (avr_integer_to_address): Return data or code
10269 address accordingly to the second 'type' argument of the
10270 function.
10271
92651b1d
MW
102722020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10273
10274 * infcmd.c, inferior.h: (construct_inferior_arguments):
10275 Moved function from here to gdbsupport/common-inferior.{h,cc}
10276
0a4f5f8c
TT
102772020-05-23 Tom Tromey <tom@tromey.com>
10278
10279 Revert commit eca1f90c:
10280 * NEWS: Remove entry for completion styling.
10281 * completer.c (_rl_completion_prefix_display_length): Move
10282 declaration later.
10283 (gdb_fnprint): Revert.
10284 (gdb_display_match_list_1): Likewise.
10285 * cli/cli-style.c (completion_prefix_style)
10286 (completion_difference_style, completion_suffix_style): Remove.
10287 (_initialize_cli_style): Revert.
10288 * cli/cli-style.h (completion_prefix_style)
10289 (completion_difference_style, completion_suffix_style): Don't
10290 declare.
10291
e08bd6c5
PA
102922020-05-24 Pedro Alves <palves@redhat.com>
10293
10294 * symtab.c (completion_list_add_name): Return boolean indication
10295 of whether the symbol matched.
10296 (completion_list_add_symbol): Don't try to remove C++ aliases if
10297 the symbol didn't match in the first place.
10298 * symtab.h (completion_list_add_name): Return bool.
10299
ceacbf6e
SM
103002020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10301
10302 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10303 type::field.
10304
26f16254
JB
103052020-05-23 Joel Brobecker <brobecker@adacore.com>
10306
10307 GDB 9.2 released.
10308
eca1f90c
TT
103092020-05-23 Tom Tromey <tom@tromey.com>
10310
10311 * NEWS: Add entry for completion styling.
10312 * completer.c (_rl_completion_prefix_display_length): Move
10313 declaration earlier.
10314 (gdb_fnprint): Use completion_style.
10315 (gdb_display_match_list_1): Likewise.
10316 * cli/cli-style.c (completion_prefix_style)
10317 (completion_difference_style, completion_suffix_style): New
10318 globals.
10319 (_initialize_cli_style): Register new globals.
10320 * cli/cli-style.h (completion_prefix_style)
10321 (completion_difference_style, completion_suffix_style): Declare.
10322
51e2cfa2
PA
103232020-05-23 Pedro Alves <palves@redhat.com>
10324
10325 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10326 (parse_escape): Use ISDIGIT instead of isdigit.
10327 (puts_debug): Use gdb_isprint instead of isprint.
10328 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10329 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10330 ISSPACE instead of isspace.
10331 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10332 instead of isspace.
10333 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10334 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10335 instead of isxdigit and ISDIGIT instead of isdigit.
10336
80fc5e77
SM
103372020-05-22 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * gdbtypes.h (struct type) <field>: New method.
10340 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10341 or type::field.
10342
3cabb6b0
SM
103432020-05-22 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10346 (TYPE_FIELDS): Use type::fields. Change all call sites that
10347 modify the propery to use type::set_fields instead.
10348
1f704f76
SM
103492020-05-22 Simon Marchi <simon.marchi@efficios.com>
10350
10351 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10352 type::num_fields instead.
10353
5e33d5f4
SM
103542020-05-22 Simon Marchi <simon.marchi@efficios.com>
10355
10356 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10357 methods.
10358 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10359 that modify the number of fields to use type::set_num_fields
10360 instead.
10361
9392ebb3
TT
103622020-05-22 Tom Tromey <tromey@adacore.com>
10363
10364 * compile/compile-object-load.h (munmap_list_free): Don't
10365 declare.
10366
7c13f4e8
AB
103672020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10368
10369 * annotate.c (annotate_source_line): Update return type, add call
10370 to update current symtab and line.
10371 * annotate.h (annotate_source_line): Update return type, and
10372 extend header comment.
10373 * source.c (info_line_command): Check annotation_level before
10374 calling annotate_source_line.
10375 * stack.c (print_frame_info): If calling annotate_source_line
10376 returns true, then don't print any other source line information.
10377
aa370940
SM
103782020-05-21 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10381
84d53fa9
SM
103822020-05-21 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * coffread.c (patch_type): Remove NULL check before xfree.
10385 * corefile.c (set_gnutarget): Likewise.
10386 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10387 * exec.c (build_section_table): Likewise.
10388 * remote.c (remote_target::pass_signals): Likewise.
10389 * utils.c (n_spaces): Likewise.
10390 * cli/cli-script.c (document_command): Likewise.
10391 * i386-windows-tdep.c (core_process_module_section): Likewise.
10392 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10393
9d428aae
SM
103942020-05-20 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * symfile.c (reread_symbols): Clear objfile's section_offsets
10397 vector and section indices, re-compute them by calling
10398 sym_offsets.
10399
250106a7
TT
104002020-05-20 Tom Tromey <tromey@adacore.com>
10401
10402 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10403 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10404
9a0bacfb
TV
104052020-05-20 Tom de Vries <tdevries@suse.de>
10406
10407 PR symtab/25833
10408 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10409
7b958a48
AM
104102020-05-20 Alan Modra <amodra@gmail.com>
10411
10412 PR 25993
10413 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10414 bfd_set_filename.
10415 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10416 passed to bfd_set_filename.
10417 * symfile-mem.c (add_vsyscall_page): Likewise for string
10418 passed to symbol_file_add_from_memory.
10419 (symbol_file_add_from_memory): Make name param a const char* and
10420 don't strdup.
10421
c7e97679
AM
104222020-05-20 Alan Modra <amodra@gmail.com>
10423
10424 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10425 rather than accessing bfd->filename directly.
10426 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10427 and use bfd_section_name.
10428 * dwarf2/frame.c (decode_frame_entry): Likewise.
10429 * exec.c (exec_set_section_address): Likewise.
10430 * solib-aix.c (solib_aix_bfd_open): Likewise.
10431 * stap-probe.c (get_stap_base_address): Likewise.
10432 * symfile.c (reread_symbols): Likewise.
10433
563c591b
TT
104342020-05-19 Tom Tromey <tromey@adacore.com>
10435
10436 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10437
f408d82c
SM
104382020-05-19 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10441
98c59b52
PA
104422020-05-19 Pedro Alves <palves@redhat.com>
10443
10444 * NEWS (set exec-file-mismatch): Adjust entry.
10445 * exec.c: Include "build-id.h".
10446 (validate_exec_file): Try to match build IDs instead of filenames.
10447 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10448 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10449 and pass down 'warn_if_slow'.
10450 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10451 gdb_bfd_open_closure to pass it down.
10452 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10453
4111f652
PA
104542020-05-19 Pedro Alves <palves@redhat.com>
10455
10456 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10457 * target.c (target_fileio_open_1): Rename to target_fileio_open
10458 and make extern. Use bool.
10459 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10460 (target_fileio_read_alloc_1): Adjust.
10461 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10462 (target_fileio_open_warn_if_slow): Delete declaration.
10463
ad80db5b
PA
104642020-05-19 Pedro Alves <palves@redhat.com>
10465
10466 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10467 Adjust all callers.
10468
1d6ce4d3
YS
104692020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10470
10471 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10472 whether disp is negative.
10473
9005fbbb
SM
104742020-05-19 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * symfile.h (struct symfile_segment_data)
10477 <~symfile_segment_data>: Remove.
10478 <segment_info>: Change to std::vector.
10479 * symfile.c (default_symfile_segments): Update.
10480 * elfread.c (elf_symfile_segments): Update.
10481
68b888ff
SM
104822020-05-19 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10485 <segments>: New.
10486 <segment_bases, segment_sizes>: Remove.
10487 * symfile.c (default_symfile_segments): Update.
10488 * elfread.c (elf_symfile_segments): Update.
10489 * remote.c (remote_target::get_offsets): Update.
10490 * solib-target.c (solib_target_relocate_section_addresses):
10491 Update.
10492
62982abd
SM
104932020-05-19 Simon Marchi <simon.marchi@efficios.com>
10494
10495 * symfile.h (struct symfile_segment_data): Initialize fields.
10496 <~symfile_segment_data>: Add.
10497 (symfile_segment_data_up): New.
10498 (struct sym_fns) <sym_segments>: Return a
10499 symfile_segment_data_up.
10500 (default_symfile_segments): Return a symfile_segment_data_up.
10501 (free_symfile_segment_data): Remove.
10502 (get_symfile_segment_data): Return a symfile_segment_data_up.
10503 * symfile.c (default_symfile_segments): Likewise.
10504 (get_symfile_segment_data): Likewise.
10505 (free_symfile_segment_data): Remove.
10506 (symfile_find_segment_sections): Update.
10507 * elfread.c (elf_symfile_segments): Return a
10508 symfile_segment_data_up.
10509 * remote.c (remote_target::get_offsets): Update.
10510 * solib-target.c (solib_target_relocate_section_addresses):
10511 Update.
10512 * symfile-debug.c (debug_sym_segments): Return a
10513 symfile_segment_data_up.
10514
7f204339
RO
105152020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10516
e52a0f1b
RO
10517 PR build/25981
10518 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10519 Hardcode register numbers.
10520
7f204339
RO
10521 PR build/25981
10522 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10523 procfs_find_LDT_entry): Remove.
10524 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10525 procfs_find_LDT_entry): Remove.
10526 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10527 Remove.
10528
7f32a4d5
PA
105292020-05-17 Pedro Alves <palves@redhat.com>
10530 Andrew Burgess <andrew.burgess@embecosm.com>
10531 Keno Fischer <keno@juliacomputing.com>
10532
10533 PR gdb/25741
10534 * breakpoint.c (build_target_condition_list): Update comments.
10535 (build_target_command_list): Update comments and skip matching
10536 locations.
10537 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10538 a separate function. Simplify "set breakpoint auto-hw off"
10539 handling.
10540 (insert_breakpoints): Update comment.
10541 (tracepoint_locations_match): New parameter. For breakpoints,
10542 compare location types too, if the caller wants to.
10543 (handle_automatic_hardware_breakpoints): New functions.
10544 (bp_location_is_less_than): Also sort by location type and
10545 hardware breakpoint length.
10546 (update_global_location_list): Handle "set breakpoint auto-hw on"
10547 here.
10548 (update_breakpoint_locations): Ask breakpoint_locations_match to
10549 ignore location types.
10550
7d93a1e0
SM
105512020-05-16 Simon Marchi <simon.marchi@efficios.com>
10552
10553 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10554 type::name instead.
10555
d0e39ea2
SM
105562020-05-16 Simon Marchi <simon.marchi@efficios.com>
10557
10558 * gdbtypes.h (struct type) <name, set_name>: New methods.
10559 (TYPE_CODE): Use type::name. Change all call sites used to set
10560 the name to use type::set_name instead.
10561
2dab0c7b
TT
105622020-05-16 Tom Tromey <tom@tromey.com>
10563
10564 * top.c (quit_force): Update.
10565 * infrun.c (handle_no_resumed): Update.
10566 * top.h (all_uis): New function.
10567 (ALL_UIS): Remove.
10568
59f7bd8d
SM
105692020-05-16 Simon Marchi <simon.marchi@efficios.com>
10570
10571 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10572
9bf058f0
PA
105732020-05-16 Pedro Alves <palves@redhat.com>
10574
10575 * ia64-linux-nat.c
10576 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10577 Declare method.
10578 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10579
8f86ae1a
SM
105802020-05-15 Simon Marchi <simon.marchi@efficios.com>
10581
10582 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10583 (sparc64_adi_info): Likewise.
10584
d6bc0792
TT
105852020-05-15 Tom Tromey <tom@tromey.com>
10586
10587 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10588 block_objfile.
10589 (lookup_objfile_from_block): Remove.
10590 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10591 (lookup_global_symbol): Use block_objfile.
10592 * symtab.h (lookup_objfile_from_block): Don't declare.
10593 * printcmd.c (clear_dangling_display_expressions): Use
10594 block_objfile.
10595 * parse.c (operator_check_standard): Use block_objfile.
10596
8c14c3a3
TT
105972020-05-15 Tom Tromey <tom@tromey.com>
10598
10599 * language.c (language_alloc_type_symbol): Set
10600 SYMBOL_SECTION.
10601 * symtab.c (initialize_objfile_symbol): Remove.
10602 (allocate_symbol): Remove.
10603 (allocate_template_symbol): Remove.
10604 * dwarf2/read.c (fixup_go_packaging): Use "new".
10605 (new_symbol): Use "new".
10606 (read_variable): Don't call initialize_objfile_symbol. Use
10607 "new".
10608 (read_func_scope): Use "new".
10609 * xcoffread.c (process_xcoff_symbol): Don't call
10610 initialize_objfile_symbol.
10611 (SYMBOL_DUP): Remove.
10612 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10613 "new".
10614 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10615 (allocate_template_symbol): Don't declare.
10616 (struct symbol): Add copy constructor. Change defaults.
10617 * jit.c (finalize_symtab): Use "new".
10618 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10619 Use "new".
10620 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10621 (common_block_end): Use "new".
10622 * mdebugread.c (parse_symbol): Use "new".
10623 (new_symbol): Likewise.
10624
5b4a1a8d
PW
106252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10626
10627 * NEWS: Mention changes to help and apropos.
10628
57b4f16e
PW
106292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10630
10631 * command.h (enum command_class): Improve comments, document
10632 that class_alias is for user-defined aliases, give the class
10633 name for each class, remove unused class_xdb.
10634 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10635 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10636 by a precise class.
10637 * infcmd.c (_initialize_infcmd): Likewise.
10638 * reverse.c (_initialize_reverse): Likewise.
10639 * stack.c (_initialize_stack): Likewise.
10640 * symfile.c (_initialize_symfile): Likewise.
10641 * tracepoint.c (_initialize_tracepoint): Likewise.
10642
7c05caf7
PW
106432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10644
10645 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10646 when their aliased command is traversed.
10647 (help_cmd): Add fput_command_names_styled call to
10648 output command name and aliases when command has an alias.
10649
3b3aaacb
PW
106502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10651
10652 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10653 * cli/cli-decode.c (help_cmd_list): Declare as static,
10654 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10655 a command together with the command.
10656 (fput_command_name_styled, fput_command_names_styled): New functions.
10657 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10658 fput_command_name_styled.
10659 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10660 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10661
7aa1b46f
PW
106622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10663
10664 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10665 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10666 * command.h (cmd_show_list): Likewise.
10667 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10668 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10669
89bcba74
PW
106702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10671
10672 * unittests/command-def-selftests.c (traverse_command_structure):
10673 Verify all commands of a list have the same prefix command and
10674 that only the top cmdlist commands have a null prefix.
10675
3f4d92eb
PW
106762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10677
10678 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10679 as prefix, not one of its aliases.
10680 (set_cmd_prefix): Remove.
10681 (do_add_cmd): Centralize the setting of the prefix of a command, when
10682 command is defined after its full chain of prefix commands.
10683 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10684 (add_setshow_cmd_full): Likewise.
10685 (update_prefix_field_of_prefixed_commands): New function.
10686 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10687 update_prefix_field_of_prefixed_commands.
10688 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10689 addresses of remote_set_cmdlist and remote_show_cmdlist given
10690 as argument, not the address of an argument.
10691 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10692 * gdb/remote.c (_initialize_remote): Likewise.
10693
0605465f
PW
106942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10695
10696 * cli/cli-cmds.c (alias_command): Check for an existing alias
10697 using lookup_cmd_composition, as valid_command_p is too strict
10698 and forbids aliases that are the prefix of an existing alias
10699 or command.
10700 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10701 command is properly recognised as a valid command.
10702
58e6ac70
PW
107032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10704
10705 * unittests/help-doc-selftests.c: Rename to
10706 unittests/command-def-selftests.c
10707 * unittests/command-def-selftests.c (help_doc_tests): Update some
10708 comments.
10709 (command_structure_tests, traverse_command_structure): New namespace
10710 and function.
10711 (command_structure_invariants_tests): New function.
10712 (_initialize_command_def_selftests) Renamed from
10713 _initialize_help_doc_selftests, register command_structure_invariants
10714 selftest.
10715
a7b9ceb8
PW
107162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10717
10718 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10719 an alias of 'show'.
10720
b2188a06
JB
107212020-05-15 Joel Brobecker <brobecker@adacore.com>
10722
10723 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10724 ada_is_fixed_point_type. Update all callers.
10725 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10726 all callers.
10727 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10728 Update all callers.
10729 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10730 print_fixed_point_type. Update all callers.
10731 * ada-valprint.c (ada_value_print_num): Replace call to
10732 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10733
a51951c2
KB
107342020-05-14 Kevin Buettner <kevinb@redhat.com>
10735
10736 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10737 processors.
10738 (cpu_supports_bts): Add CV_AMD case.
10739
29d6859f
LM
107402020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10741 Simon Marchi <simon.marchi@efficios.com>
10742
10743 * infrun.c (stop_all_threads): Collect multiple wait events at
10744 each pass.
10745
78134374
SM
107462020-05-14 Simon Marchi <simon.marchi@efficios.com>
10747
10748 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10749 type::code instead.
10750
67607e24
SM
107512020-05-14 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * gdbtypes.h (struct type) <code, set_code>: New methods.
10754 (TYPE_CODE): Use type::code. Change all call sites used to set
10755 the code to use type::set_code instead.
10756
a05575d3
TBA
107572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10758 Tom de Vries <tdevries@suse.de>
10759 Pedro Alves <palves@redhat.com>
10760
10761 PR threads/25478
10762 * infrun.c (stop_all_threads): Do NOT ignore
10763 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10764 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10765 received.
10766 (handle_no_resumed): Remove code handling a live inferior with no
10767 threads.
10768 * remote.c (has_single_non_exited_thread): New.
10769 (remote_target::update_thread_list): Do not delete a thread if is
10770 the last thread of the process.
10771 * thread.c (thread_select): Call delete_exited_threads instead of
10772 prune_threads.
10773
6ad82919
TBA
107742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10775
10776 * infrun.c (stop_all_threads): Enable/disable thread events of all
10777 targets. Move a debug message denoting the end of the function
10778 into the SCOPED_EXIT block.
10779
d890404b
TBA
107802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10781
10782 * process-stratum-target.h: Include <set>.
10783 (all_non_exited_process_targets, switch_to_target_no_thread): New
10784 function declarations.
10785 * process-stratum-target.c (all_non_exited_process_targets)
10786 (switch_to_target_no_thread): New function implementations.
10787
293b3ebc
TBA
107882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10789
10790 * infrun.c (handle_inferior_event): Extract out a piece of code
10791 into...
10792 (mark_non_executing_threads): ...this new function.
10793
7ca9b62a
TBA
107942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10795
10796 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10797 use.
10798
fc75c28b
TBA
107992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10800
10801 * regcache.c (regcache_read_pc_protected): New function
10802 implementation that returns 0 if the PC cannot read via
10803 'regcache_read_pc'.
10804 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10805 instead of 'regcache_read_pc'.
10806 (keep_going_pass_signal): Ditto.
10807
a89febbd
TT
108082020-05-13 Tom Tromey <tromey@adacore.com>
10809
10810 * ada-lang.c (align_value): Remove.
10811 (ada_template_to_fixed_record_type_1): Use align_up.
10812
f7e23710
TBA
108132020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10814
10815 * async-event.c: Update the copyright year.
10816 * async-event.h: Update the copyright year.
10817
02ff80c2
SM
108182020-05-12 Simon Marchi <simon.marchi@efficios.com>
10819
10820 * objfiles.h (is_addr_in_objfile,
10821 shared_objfile_contains_address_p): Return bool.
10822 * objfile.c (is_addr_in_objfile,
10823 shared_objfile_contains_address_p): Return bool.
10824
4fd6c7e8
TT
108252020-05-11 Tom Tromey <tromey@adacore.com>
10826
10827 * cli/cli-cmds.c (info_command): Restore.
10828 (_initialize_cli_cmds): Use add_prefix_command for "info".
10829 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10830
5eb68a39
TT
108312020-05-11 Tom Tromey <tromey@adacore.com>
10832
10833 * ada-lang.c (ada_value_primitive_field): Now public.
10834 * ada-lang.h (ada_value_primitive_field): Declare.
10835 * ada-valprint.c (print_field_values): Use
10836 ada_value_primitive_field for wrapper fields.
10837
7666722f
TV
108382020-05-11 Tom de Vries <tdevries@suse.de>
10839
10840 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10841 MODULE_DOMAIN.
10842
3ee6bb11
TV
108432020-05-11 Tom de Vries <tdevries@suse.de>
10844
10845 PR symtab/25941
10846 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10847 with length 0, if not gdb-produced.
10848 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10849
43434996
TV
108502020-05-09 Tom de Vries <tdevries@suse.de>
10851
10852 PR gdb/25955
10853 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10854 calculation.
10855
2f78cffc
TT
108562020-05-09 Tom Tromey <tom@tromey.com>
10857
10858 * top.c (server_command): Now bool.
10859 * top.h (server_command): Now bool.
10860
4f7bc5ed
TT
108612020-05-08 Tom Tromey <tromey@adacore.com>
10862
10863 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10864 already being processed.
10865
8be4b118
TT
108662020-05-08 Tom Tromey <tom@tromey.com>
10867
10868 * printcmd.c (struct display) <next>: Remove.
10869 <display>: New constructor.
10870 <exp_string>: Now a std::string.
10871 <enabled_p>: Now a bool.
10872 (display_number): Move definition earlier.
10873 (displays): Rename from display_chain. Now a std::vector.
10874 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10875 (display_command): Update.
10876 (do_one_display, disable_display)
10877 (enable_disable_display_command, do_enable_disable_display):
10878 Update.
10879 (free_display): Remove.
10880 (clear_displays): Rewrite.
10881 (delete_display): Update.
10882 (map_display_numbers): Use function_view. Remove "data"
10883 parameter. Update.
10884 (do_delete_display): Remove.
10885 (undisplay_command): Update.
10886 (do_one_display, do_displays, disable_display)
10887 (info_display_command): Update.
10888 (do_enable_disable_display): Remove.
10889 (enable_disable_display_command)
10890 (clear_dangling_display_expressions): Update.
10891
94c93c35
TT
108922020-05-08 Tom Tromey <tom@tromey.com>
10893
10894 * symtab.c (set_symbol_cache_size)
10895 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10896 (maintenance_print_symbol_cache_statistics): Update.
10897 * symmisc.c (print_symbol_bcache_statistics)
10898 (print_objfile_statistics, maintenance_print_objfiles)
10899 (maintenance_info_symtabs, maintenance_check_symtabs)
10900 (maintenance_expand_symtabs, maintenance_info_line_tables):
10901 Update.
10902 * symfile-debug.c (set_debug_symfile): Update.
10903 * source.c (forget_cached_source_info): Update.
10904 * python/python.c (gdbpy_progspaces): Update.
10905 * psymtab.c (maintenance_info_psymtabs): Update.
10906 * probe.c (parse_probes): Update.
10907 * linespec.c (iterate_over_all_matching_symtabs)
10908 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10909 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10910 * exec.c (exec_target::close): Update.
10911 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10912 * breakpoint.c (print_one_breakpoint_location)
10913 (create_longjmp_master_breakpoint)
10914 (create_std_terminate_master_breakpoint): Update.
10915 * progspace.c (program_spaces): Now a std::vector.
10916 (maybe_new_address_space): Update.
10917 (add_program_space): Remove.
10918 (program_space::program_space): Update.
10919 (remove_program_space): Update.
10920 (number_of_program_spaces): Remove.
10921 (print_program_space, update_address_spaces): Update.
10922 * progspace.h (program_spaces): Change type.
10923 (ALL_PSPACES): Remove.
10924 (number_of_program_spaces): Don't declare.
10925 (struct program_space) <next>: Remove.
10926
a1fd1ac9
TT
109272020-05-08 Tom Tromey <tom@tromey.com>
10928
10929 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10930 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10931 (enable_break): Update.
10932 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10933 (frv_fdpic_find_canonical_descriptor): Update.
10934 (frv_fetch_objfile_link_map): Update.
10935 * progspace.c (program_space::free_all_objfiles): Update.
10936 (program_space::solibs): New method.
10937 * progspace.h (struct program_space) <solibs>: New method.
10938 * solist.h (master_so_list): Don't declare.
10939 (ALL_SO_LIBS): Remove.
10940 * solib.h (so_list_head): Remove.
10941 (update_solib_list): Update comment.
10942 * solib.c (master_so_list): Remove.
10943 (solib_used, update_solib_list, solib_add)
10944 (info_sharedlibrary_command, clear_solib)
10945 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10946
38eae084
TT
109472020-05-08 Tom Tromey <tom@tromey.com>
10948
10949 * extension.c (extension_languages): Now a std::array.
10950 (ALL_EXTENSION_LANGUAGES): Remove.
10951 (get_ext_lang_defn, get_ext_lang_of_file)
10952 (eval_ext_lang_from_control_command): Update.
10953 (finish_ext_lang_initialization)
10954 (auto_load_ext_lang_scripts_for_objfile)
10955 (ext_lang_type_printers::ext_lang_type_printers)
10956 (apply_ext_lang_type_printers)
10957 (ext_lang_type_printers::~ext_lang_type_printers)
10958 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10959 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10960 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10961 (get_matching_xmethod_workers, ext_lang_colorize)
10962 (ext_lang_before_prompt): Update.
10963 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10964
596dc4ad
TT
109652020-05-08 Tom Tromey <tom@tromey.com>
10966
10967 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10968 overload.
10969 <swap_string, m_string>: Remove.
10970 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10971 Update.
10972 * stabsread.c (define_symbol, read_type): Update.
10973 * linespec.c (find_linespec_symbols): Update.
10974 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10975 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10976 * dbxread.c (read_dbx_symtab): Update.
10977 * cp-support.h (cp_canonicalize_string_full)
10978 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10979 Return unique_xmalloc_ptr.
10980 * cp-support.c (inspect_type): Update.
10981 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10982 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10983 Likewise.
10984 * c-typeprint.c (print_name_maybe_canonical): Update.
10985 * break-catch-throw.c (check_status_exception_catchpoint):
10986 Update.
10987
bf4cb9be
TV
109882020-05-08 Tom de Vries <tdevries@suse.de>
10989
10990 * infrun.c (follow_fork): Copy current_line and current_symtab to
10991 child thread.
10992
a1b68f28
SM
109932020-05-07 Simon Marchi <simon.marchi@efficios.com>
10994
10995 * async-event.c (struct async_signal_handler, struct
10996 async_event_handler): Reformat, remove typedef.
10997
98d48915
SM
109982020-05-07 Simon Marchi <simon.marchi@efficios.com>
10999
11000 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11001 access thistype->main_type->dyn_prop_list directly.
11002
7aa91313
SM
110032020-05-07 Simon Marchi <simon.marchi@efficios.com>
11004
11005 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11006 (remove_dyn_prop): Remove. Update all users to use
11007 type::remove_dyn_prop.
11008 * gdbtypes.c (remove_dyn_prop): Rename to...
11009 (type::remove_dyn_prop): ... this.
11010
5c54719c
SM
110112020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11012
11013 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11014 (add_dyn_prop): Remove. Update all users to use
11015 type::add_dyn_prop.
11016 * gdbtypes.c (add_dyn_prop): Rename to...
11017 (type::add_dyn_prop): ... this.
11018
24e99c6c
SM
110192020-05-07 Simon Marchi <simon.marchi@efficios.com>
11020
11021 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11022 (get_dyn_prop): Remove. Update all users to use
11023 type::dyn_prop.
11024 * gdbtypes.c (get_dyn_prop): Rename to...
11025 (type::dyn_prop): ... this.
11026
0d4bf016
SM
110272020-05-06 Simon Marchi <simon.marchi@efficios.com>
11028
11029 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11030
ac4a4f1c
SM
110312020-05-06 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11034 instruction, skip it if it's there.
11035
a3bbacc1
SM
110362020-05-05 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11039
c3236f84
SM
110402020-05-04 Simon Marchi <simon.marchi@efficios.com>
11041
11042 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11043 * gdbtypes.c (recursive_dump_type): Remove use of
11044 TYPE_INCOMPLETE.
11045
3b6acaee
TT
110462020-05-03 Tom Tromey <tom@tromey.com>
11047
11048 * breakpoint.c (catch_command, tcatch_command): Remove.
11049 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11050 add_show_prefix_cmd.
11051 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11052 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11053 Remove.
11054 (add_internal_problem_command): Use add_basic_prefix_cmd,
11055 add_show_prefix_cmd.
11056 * mips-tdep.c (set_mipsfpu_command): Remove.
11057 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11058 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11059 (_initialize_index_cache): Use add_basic_prefix_cmd.
11060 * memattr.c (dummy_cmd): Remove.
11061 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11062 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11063 (_initialize_tui_win): Use add_basic_prefix_cmd,
11064 add_show_prefix_cmd.
11065 * cli/cli-logging.c (set_logging_command): Remove.
11066 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11067 add_show_prefix_cmd.
11068 (show_logging_command): Remove.
11069 * target.c (target_command): Remove.
11070 (add_target): Use add_basic_prefix_cmd.
11071
a51119cd
HD
110722020-05-02 Hannes Domani <ssbssa@yahoo.de>
11073
11074 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11075
652fc23a 110762020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11077
652fc23a
PW
11078 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11079 info_command.
11080
117539e6
KR
110812020-04-30 Kamil Rytarowski <n54@gmx.com>
11082
11083 * nbsd-nat.c (nbsd_enable_proc_events)
11084 (nbsd_nat_target::post_startup_inferior): Add.
11085 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11086 (nbsd_nat_target::update_thread_list): Rewrite.
11087 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11088 "PTRACE_LWP_CREATE".
11089 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11090
102e38eb 110912020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11092
102e38eb
PW
11093 * stack.c (_initialize_stack): Remove duplicated creation
11094 of "frame" command and "f" alias.
11095
ee9d1e5f
HD
110962020-04-30 Hannes Domani <ssbssa@yahoo.de>
11097
11098 PR gdb/18706
11099 * gdbtypes.c (check_typedef): Calculate size of array of
11100 stubbed type.
11101
627c7fb8
HD
111022020-04-30 Hannes Domani <ssbssa@yahoo.de>
11103
11104 PR gdb/15559
11105 * i386-tdep.c (i386_push_dummy_call): Call
11106 i386_thiscall_push_dummy_call.
11107 (i386_thiscall_push_dummy_call): New function.
11108 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11109 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11110 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11111
ffc2844e
SM
111122020-04-29 Simon Marchi <simon.marchi@efficios.com>
11113
11114 * gdbarch.sh (do_read): Add shellcheck disable directive for
11115 warning SC2162.
11116
1207375d
SM
111172020-04-29 Simon Marchi <simon.marchi@efficios.com>
11118
11119 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11120 "referenced but not assigned" warning.
11121
9fdb2916
SM
111222020-04-29 Simon Marchi <simon.marchi@efficios.com>
11123
11124 * gdbarch.sh: Remove code that sets fallbackdefault.
11125
759cea5e
SM
111262020-04-29 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * gdbarch.sh: Use shell operators && and || instead of
11129 -a and -o.
11130
cb02ab24
SM
111312020-04-29 Simon Marchi <simon.marchi@efficios.com>
11132
11133 * gdbarch.sh: Use $(...) instead of `...`.
11134
a6fc5ffc
SM
111352020-04-29 Simon Marchi <simon.marchi@efficios.com>
11136
11137 * gdbarch.sh: Use double quotes around variables.
11138
8d113d13
SM
111392020-04-29 Simon Marchi <simon.marchi@efficios.com>
11140
11141 * gdbarch.sh: Use %s with printf, instead of variables in the
11142 format string.
11143
ed6acedd
TT
111442020-04-29 Tom Tromey <tromey@adacore.com>
11145
11146 PR ada/25875:
11147 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11148 type fields here.
11149 (read_enumeration_type): Call
11150 update_enumeration_type_from_children later. Update comments.
11151 (process_enumeration_scope): Don't create type fields.
11152
b68b1b58
KR
111532020-04-29 Kamil Rytarowski <n54@gmx.com>
11154
11155 * nbsd-tdep.c: Include "xml-syscall.h".
11156 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11157
f94b2e03
KR
111582020-04-29 Kamil Rytarowski <n54@gmx.com>
11159
11160 * nbsd-nat.c: Include "sys/wait.h".
11161 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11162 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11163 (nbsd_nat_target::remove_exec_catchpoint)
11164 (nbsd_nat_target::set_syscall_catchpoint): Add.
11165 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11166 (nbsd_nat_target::insert_exec_catchpoint)
11167 (nbsd_nat_target::remove_exec_catchpoint)
11168 (nbsd_nat_target::set_syscall_catchpoint): Add.
11169 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11170 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11171 `nbsd_get_syscall_number'.
11172
fc49bc72
TT
111732020-04-29 Tom Tromey <tom@tromey.com>
11174
11175 * stack.c (print_block_frame_labels): Remove.
11176
d642b692
HD
111772020-04-29 Hannes Domani <ssbssa@yahoo.de>
11178
11179 PR gdb/17320
11180 * ada-valprint.c (val_print_packed_array_elements): Move array
11181 end bracket to new line.
11182 (ada_val_print_string): Remove extra spaces before first array
11183 element.
11184 * c-valprint.c (c_value_print_array): Likewise.
11185 * m2-valprint.c (m2_print_array_contents): Likewise.
11186 (m2_value_print_inner): Likewise.
11187 * p-valprint.c (pascal_value_print_inner): Likewise.
11188 * valprint.c (generic_val_print_array): Likewise.
11189 (value_print_array_elements): Move first array element and array
11190 end bracket to new line.
11191
ea90f227
TV
111922020-04-29 Tom de Vries <tdevries@suse.de>
11193
11194 PR symtab/25889
11195 * linespec.c (find_method): Fix ix calculation.
11196
4498ef4f
KR
111972020-04-28 Kamil Rytarowski <n54@gmx.com>
11198
11199 * syscalls/update-netbsd.sh: New file.
11200 * syscalls/netbsd.xml: Regenerate.
11201 * data-directory/Makefile.in: Register `netbsd.xml' in
11202 `SYSCALLS_FILES'.
11203
a55e30b5
SM
112042020-04-28 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * syscalls/update-freebsd.sh: Add double quotes.
11207
2b2fbab8
TT
112082020-04-28 Tom Tromey <tom@tromey.com>
11209
11210 * NEWS: Update.
11211 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11212 (cmdpy_init): Allow class_tui.
11213
a65189c9
TV
112142020-04-28 Mark Williams <mark@myosotissp.com>
11215
11216 PR gdb/24480
11217 * dwarf2read.c: Add missing assingments to list_in_scope when
11218 start_symtab was already called.
11219
1b95cdb7
SM
112202020-04-28 Simon Marchi <simon.marchi@efficios.com>
11221
11222 PR gdb/25881
11223 * dwarf2/read.c (offset_map_type): Use
11224 gdb:hash_enum<sect_offset> as hash function.
11225
15cd93d0
TV
112262020-04-28 Tom de Vries <tdevries@suse.de>
11227
11228 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11229 with DW_AT_signature.
11230
1eb39914
SM
112312020-04-27 Simon Marchi <simon.marchi@efficios.com>
11232
11233 * configure.ac: Remove check for fs_base/gs_base in
11234 user_regs_struct.
11235 * configure: Re-generate.
11236 * config.in: Re-generate.
11237 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11238 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11239 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11240
991a3e2e
LM
112412020-04-27 Luis Machado <luis.machado@linaro.org>
11242
11243 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11244 problematic inline frame unwinding situation.
11245 * frame.c (frame_id_computed_p): New function.
11246 * frame.h (frame_id_computed_p): New prototype.
11247
361ba0e8
TT
112482020-04-26 Tom Tromey <tom@tromey.com>
11249
11250 * command.h (enum command_class) <class_pseudo>: Remove.
11251
bc3609fd
PW
112522020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11253
11254 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11255 and whitespace.
11256
b9771db7
KR
112572020-04-25 Kamil Rytarowski <n54@gmx.com>
11258
ec16513e
SM
11259 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11260 `PT_GET_PROCESS_STATE' block.
b9771db7 11261
7151c1af
TT
112622020-04-24 Tom Tromey <tom@tromey.com>
11263
11264 * symtab.h (symbol_get_demangled_name): Don't declare.
11265 * symtab.c (symbol_get_demangled_name): Remove.
11266 (general_symbol_info::natural_name)
11267 (general_symbol_info::demangled_name): Update.
11268
906bb4c5
TT
112692020-04-24 Tom Tromey <tom@tromey.com>
11270
11271 PR rust/25025:
11272 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11273
bcfe6157
TT
112742020-04-24 Tom Tromey <tom@tromey.com>
11275
11276 PR symtab/12707:
11277 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11278 exists.
11279 (new_symbol): Likewise.
11280 * compile/compile-object-load.c (get_out_value_type): Use
11281 symbol_matches_search_name.
11282
f049a313
TT
112832020-04-24 Tom Tromey <tom@tromey.com>
11284
11285 * dwarf2/read.c (add_partial_symbol): Do not call
11286 compute_and_set_names.
11287
76e288d1
TT
112882020-04-24 Tom Tromey <tom@tromey.com>
11289
11290 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11291 overload.
11292
2467f4f6
TT
112932020-04-24 Tom Tromey <tom@tromey.com>
11294
11295 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11296 (add_psymbol_to_list): New overload. Make old overload call new
11297 one.
11298 * psympriv.h (add_psymbol_to_list): New overload.
11299
e61108c9
TT
113002020-04-24 Tom Tromey <tom@tromey.com>
11301
11302 * dwarf2/read.c (partial_die_info::read) <case
11303 DW_AT_linkage_name>: Use value_as_string.
11304 (dwarf2_string_attr): Use value_as_string.
11305 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11306 method.
11307 * dwarf2/attribute.c (attribute::value_as_string): New method.
11308
8c87a452
TT
113092020-04-24 Tom Tromey <tom@tromey.com>
11310
11311 * symtab.c (general_symbol_info::natural_name)
11312 (general_symbol_info::demangled_name): Check for language_rust.
11313
787de330
TT
113142020-04-24 Tom Tromey <tom@tromey.com>
11315
11316 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11317 (dwarf2_physname): ... from here.
11318 (partial_die_info::read): Add Rust "{" hack.
11319
ff985671
TT
113202020-04-24 Tom Tromey <tom@tromey.com>
11321
11322 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11323 method.
11324 (symbol_set_demangled_name): Don't declare.
11325 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11326 symbol_set_demangled_name.
11327 (general_symbol_info::set_language)
11328 (general_symbol_info::compute_and_set_names): Update.
11329 * minsyms.c (minimal_symbol_reader::install): Update.
11330 * dwarf2/read.c (new_symbol): Update.
11331
1acda803
TT
113322020-04-24 Tom Tromey <tromey@adacore.com>
11333
11334 PR python/23662:
11335 * python/py-type.c (convert_field): Handle
11336 FIELD_LOC_KIND_DWARF_BLOCK.
11337 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11338 (typy_get_dynamic): Nw function.
11339 (type_object_getset): Add "dynamic".
11340 * NEWS: Add entry.
11341
d656f129
TT
113422020-04-24 Tom Tromey <tromey@adacore.com>
11343
11344 * ada-typeprint.c (print_choices, print_variant_part)
11345 (print_record_field_types_dynamic): New functions.
11346 (print_record_field_types): Use print_record_field_types_dynamic.
11347
7d79de9a
TT
113482020-04-24 Tom Tromey <tromey@adacore.com>
11349
11350 * dwarf2/read.c (handle_data_member_location): New overload.
11351 (dwarf2_add_field): Use it.
11352 (decode_locdesc): Add "computed" parameter. Update comment.
11353 * gdbtypes.c (is_dynamic_type_internal): Also look for
11354 FIELD_LOC_KIND_DWARF_BLOCK.
11355 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11356 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11357 virtual base classes.
11358 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11359 FIELD_LOC_KIND_DWARF_BLOCK.
11360
f8e89861
TT
113612020-04-24 Tom Tromey <tromey@adacore.com>
11362
11363 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11364 * gdbtypes.c (is_dynamic_type_internal): Check
11365 TYPE_HAS_DYNAMIC_LENGTH.
11366 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11367 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11368 New macros.
11369 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11370 constant.
11371
9c6a1327
TT
113722020-04-24 Tom Tromey <tromey@adacore.com>
11373
11374 * dwarf2/read.c (struct variant_field): Rewrite.
11375 (struct variant_part_builder): New.
11376 (struct nextfield): Remove "variant" field. Add "offset".
11377 (struct field_info): Add "current_variant_part" and
11378 "variant_parts".
11379 (alloc_discriminant_info): Remove.
11380 (alloc_rust_variant): New function.
11381 (quirk_rust_enum): Update.
11382 (dwarf2_add_field): Set "offset" member. Don't handle
11383 DW_TAG_variant_part.
11384 (offset_map_type): New typedef.
11385 (convert_variant_range, create_one_variant)
11386 (create_one_variant_part, create_variant_parts)
11387 (add_variant_property): New functions.
11388 (dwarf2_attach_fields_to_type): Call add_variant_property.
11389 (read_structure_type): Don't handle DW_TAG_variant_part.
11390 (handle_variant_part, handle_variant): New functions.
11391 (handle_struct_member_die): Use them.
11392 (process_structure_scope): Don't handle variant parts.
11393 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11394 (struct discriminant_info): Remove.
11395 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11396 (struct main_type) <flag_discriminated_union>: Remove.
11397 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11398 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11399 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11400 Update.
11401 * valops.c (value_union_variant): Remove.
11402 * value.h (value_union_variant): Don't declare.
11403
b249d2c2
TT
114042020-04-24 Tom Tromey <tromey@adacore.com>
11405
11406 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11407 (ada_value_primitive_packed_val): Update.
11408 * ada-valprint.c (ada_value_print_1): Update.
11409 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11410 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11411 just an address. Use evaluate_for_locexpr_baton.
11412 (dwarf2_evaluate_property): Update.
11413 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11414 array_view.
11415 * findvar.c (default_read_var_value): Update.
11416 * gdbtypes.c (compute_variant_fields_inner)
11417 (resolve_dynamic_type_internal): Update.
11418 (resolve_dynamic_type): Change type of valaddr parameter.
11419 * gdbtypes.h (resolve_dynamic_type): Update.
11420 * valarith.c (value_subscripted_rvalue): Update.
11421 * value.c (value_from_contents_and_address): Update.
11422
61122aa9
TT
114232020-04-24 Tom Tromey <tromey@adacore.com>
11424
11425 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11426 "push_initial_value" parameter.
11427 (dwarf2_evaluate_property): Likewise.
11428 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11429
ef83a141
TT
114302020-04-24 Tom Tromey <tromey@adacore.com>
11431
11432 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11433 (variant::matches, compute_variant_fields_recurse)
11434 (compute_variant_fields_inner, compute_variant_fields): New
11435 functions.
11436 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11437 Use resolved_type after type is made.
11438 (operator==): Add new cases.
11439 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11440 (struct discriminant_range, struct variant, struct variant_part):
11441 New.
11442 (union dynamic_prop_data) <variant_parts, original_type>: New
11443 members.
11444 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11445 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11446 constants.
11447 * value.c (unpack_bits_as_long): Now public.
11448 * value.h (unpack_bits_as_long): Declare.
11449
675127ec
TT
114502020-04-24 Tom Tromey <tromey@adacore.com>
11451
11452 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11453 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11454
9852ceef
HD
114552020-04-24 Hannes Domani <ssbssa@yahoo.de>
11456
11457 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11458
7632c6ce
KR
114592020-04-24 Kamil Rytarowski <n54@gmx.com>
11460
11461 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11462 (remove_fork_catchpoint, post_startup_inferior)
11463 (post_attach): Move...
11464 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11465 (remove_fork_catchpoint, post_startup_inferior)
11466 (post_attach): ...here.
11467 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11468 (remove_fork_catchpoint, post_startup_inferior)
11469 (post_attach): Move...
11470 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11471 (remove_fork_catchpoint, post_startup_inferior)
11472 (post_attach): ...here.
11473
7be2bb4f
TT
114742020-04-24 Tom Tromey <tromey@adacore.com>
11475
11476 * nat/windows-nat.h (struct windows_thread_info)
11477 <pc_adjusted>: New member.
11478 * windows-nat.c (windows_fetch_one_register): Check
11479 pc_adjusted.
11480 (windows_nat_target::get_windows_debug_event)
11481 (windows_nat_target::wait): Set pc_adjusted.
11482
f80cb3b4
TV
114832020-04-24 Tom de Vries <tdevries@suse.de>
11484
11485 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11486 Run gdb-add-index inside temp dir.
11487
29514b87
TT
114882020-04-23 Tom Tromey <tromey@adacore.com>
11489
11490 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11491 in loop.
11492
5939967b
LM
114932020-04-23 Luis Machado <luis.machado@linaro.org>
11494
11495 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11496 get_frame_register instead of gdbarch_unwind_pc.
11497
70bc38f5
TV
114982020-04-23 Tom de Vries <tdevries@suse.de>
11499
11500 * symtab.c (lookup_global_symbol): Prefer def over decl.
11501
de82891c
TV
115022020-04-23 Tom de Vries <tdevries@suse.de>
11503
11504 PR symtab/25807
11505 * block.c (best_symbol, better_symbol): Promote to external.
11506 * block.h (best_symbol, better_symbol): Declare.
11507 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11508 decl.
11509
ecc6c606
TT
115102020-04-23 Tom Tromey <tromey@adacore.com>
11511
11512 PR ada/25837:
11513 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11514 "const char *", not a "const std::string &".
11515 <name_and_matcher::operator==>: Update.
11516 * unittests/lookup_name_info-selftests.c: Change type of
11517 "result".
11518
740480b8
TT
115192020-04-23 Tom Tromey <tom@tromey.com>
11520
11521 * inferior.h (iterate_over_inferiors): Don't declare.
11522 * inferior.c (iterate_over_inferiors): Remove.
11523 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11524 Remove.
11525 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11526 use iterate_over_inferiors.
11527 (darwin_resume_inferior_it)
11528 (struct resume_inferior_threads_param)
11529 (darwin_resume_inferior_threads_it): Remove.
11530 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11531
ae3ab1f0
TV
115322020-04-23 Tom de Vries <tdevries@suse.de>
11533
11534 * blockframe.c (find_pc_partial_function): Use
11535 find_pc_sect_compunit_symtab rather than
11536 objfile->sf->qf->find_pc_sect_compunit_symtab.
11537
317d2668
TV
115382020-04-22 Tom de Vries <tdevries@suse.de>
11539
11540 PR symtab/25764
11541 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11542 in psymtabs.
11543
eea9e357
TV
115442020-04-22 Tom de Vries <tdevries@suse.de>
11545
11546 PR symtab/25801
11547 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11548 symtabs.
11549
3d5afab3
TV
115502020-04-22 Tom de Vries <tdevries@suse.de>
11551
11552 PR symtab/25700
11553 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11554 CU if already created.
11555
d43b7a2d
TBA
115562020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11557
11558 * infrun.c (displaced_step_fixup): Switch to the event_thread
11559 before calling displaced_step_restore, not after.
11560
d89edf9b
MM
115612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11562
11563 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11564 its inferior is not recorded by us.
11565 (record_btrace_target_open): Replace call to
11566 all_non_exited_threads () with call to current_inferior
11567 ()->non_exited_threads ().
11568 (record_btrace_target::stop_recording): Likewise.
11569 (record_btrace_target::close): Likewise.
11570 (record_btrace_target::wait): Likewise.
11571 (record_btrace_target::record_stop_replaying): Likewise.
11572
5897fd49
MM
115732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11574
11575 * btrace.c (btrace_enable): Throw an error on double enables and
11576 when enabling recording fails.
11577 (btrace_disable): Throw an error if the thread is not recorded.
11578
1a476b6d
MM
115792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11580
11581 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11582 request if we do not have a thread_info.
11583
4778a5f8
TV
115842020-04-21 Tom de Vries <tdevries@suse.de>
11585
11586 PR gdb/25471
11587 * thread.c
11588 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11589 exception in get_frame_id.
11590
0fa7617d
TT
115912020-04-20 Tom Tromey <tromey@adacore.com>
11592
11593 * python/python.c (struct gdbpy_event): Mark move constructor as
11594 noexcept.
11595 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11596 constructor as noexcept.
11597 * completer.h (struct completion_result): Mark move constructor as
11598 noexcept.
11599 * completer.c (completion_result::completion_result): Use
11600 initialization style. Don't call reset_match_list.
11601
ad23bda0
MS
116022020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11603
11604 * MAINTAINERS (Write After Approval): Add myself.
11605
45e1f031
TT
116062020-04-18 Tom Tromey <tom@tromey.com>
11607
11608 * windows-tdep.c (init_w32_command_list)
11609 (w32_prefix_command_valid): Restore.
11610 (_initialize_windows_tdep): Call init_w32_command_list.
11611
08feed99
TT
116122020-04-18 Tom Tromey <tom@tromey.com>
11613
11614 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11615 * value.c (value_fn_field): Update.
11616 * valops.c (find_function_in_inferior)
11617 (value_allocate_space_in_inferior): Update.
11618 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11619 Update.
11620 * tui/tui-source.c (tui_source_window::set_contents): Update.
11621 * symtab.c (lookup_global_or_static_symbol)
11622 (find_function_start_sal_1, skip_prologue_sal)
11623 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11624 * symmisc.c (dump_msymbols, dump_symtab_1)
11625 (maintenance_print_one_line_table): Update.
11626 * symfile.c (init_entry_point_info, section_is_mapped)
11627 (list_overlays_command, simple_read_overlay_table)
11628 (simple_overlay_update_1): Update.
11629 * stap-probe.c (handle_stap_probe): Update.
11630 * stabsread.c (dbx_init_float_type, define_symbol)
11631 (read_one_struct_field, read_enum_type, read_range_type): Update.
11632 * source.c (info_line_command): Update.
11633 * python/python.c (gdbpy_source_objfile_script)
11634 (gdbpy_execute_objfile_script): Update.
11635 * python/py-type.c (save_objfile_types): Update.
11636 * python/py-objfile.c (py_free_objfile): Update.
11637 * python/py-inferior.c (python_new_objfile): Update.
11638 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11639 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11640 (maintenance_check_psymtabs): Update.
11641 * printcmd.c (info_address_command): Update.
11642 * objfiles.h (struct objfile) <arch>: New method, from
11643 get_objfile_arch.
11644 (get_objfile_arch): Don't declare.
11645 * objfiles.c (get_objfile_arch): Remove.
11646 (filter_overlapping_sections): Update.
11647 * minsyms.c (msymbol_is_function): Update.
11648 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11649 (output_nondebug_symbol): Update.
11650 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11651 (mdebug_expand_psymtab): Update.
11652 * machoread.c (macho_add_oso_symfile): Update.
11653 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11654 Update.
11655 * linux-fork.c (checkpoint_command): Update.
11656 * linespec.c (convert_linespec_to_sals): Update.
11657 * jit.c (finalize_symtab): Update.
11658 * infrun.c (insert_exception_resume_from_probe): Update.
11659 * ia64-tdep.c (ia64_find_unwind_table): Update.
11660 * hppa-tdep.c (internalize_unwinds): Update.
11661 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11662 Update.
11663 * gcore.c (call_target_sbrk): Update.
11664 * elfread.c (record_minimal_symbol, elf_symtab_read)
11665 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11666 (elf_gnu_ifunc_resolve_by_got): Update.
11667 * dwarf2/read.c (create_addrmap_from_index)
11668 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11669 (read_debug_names_from_section)
11670 (process_psymtab_comp_unit_reader, add_partial_symbol)
11671 (add_partial_subprogram, process_full_comp_unit)
11672 (read_file_scope, read_func_scope, read_lexical_block_scope)
11673 (read_call_site_scope, dwarf2_ranges_read)
11674 (dwarf2_record_block_ranges, dwarf2_add_field)
11675 (mark_common_block_symbol_computed, read_tag_pointer_type)
11676 (read_tag_string_type, dwarf2_init_float_type)
11677 (dwarf2_init_complex_target_type, read_base_type)
11678 (partial_die_info::read, partial_die_info::read)
11679 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11680 (dwarf2_fetch_die_loc_sect_off): Update.
11681 * dwarf2/loc.c (dwarf2_find_location_expression)
11682 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11683 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11684 (dwarf2_loc_desc_get_symbol_read_needs)
11685 (locexpr_describe_location_piece, locexpr_describe_location_1)
11686 (loclist_describe_location): Update.
11687 * dwarf2/index-write.c (write_debug_names): Update.
11688 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11689 * dtrace-probe.c (dtrace_process_dof): Update.
11690 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11691 (process_one_symbol): Update.
11692 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11693 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11694 (coff_read_enum_type): Update.
11695 * cli/cli-cmds.c (edit_command, list_command): Update.
11696 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11697 * breakpoint.c (create_overlay_event_breakpoint)
11698 (create_longjmp_master_breakpoint)
11699 (create_std_terminate_master_breakpoint)
11700 (create_exception_master_breakpoint, get_sal_arch): Update.
11701 * block.c (block_gdbarch): Update.
11702 * annotate.c (annotate_source_line): Update.
11703
0743fc83
TT
117042020-04-17 Tom Tromey <tromey@adacore.com>
11705
11706 * auto-load.c (show_auto_load_cmd): Remove.
11707 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11708 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11709 (maintenance_print_arc_command): Remove.
11710 * tui/tui-win.c (tui_command): Remove.
11711 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11712 * tui/tui-layout.c (tui_layout_command): Remove.
11713 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11714 * python/python.c (user_set_python, user_show_python): Remove.
11715 (_initialize_python): Use add_basic_prefix_cmd,
11716 add_show_prefix_cmd.
11717 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11718 (install_gdb_commands): Use add_basic_prefix_cmd,
11719 add_show_prefix_cmd.
11720 (info_guile_command): Remove.
11721 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11722 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11723 add_show_prefix_cmd.
11724 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11725 Remove do_set and do_show parameters.
11726 * cli/cli-style.c (set_style, show_style): Remove.
11727 (_initialize_cli_style): Use add_basic_prefix_cmd,
11728 add_show_prefix_cmd.
11729 (cli_style_option::add_setshow_commands): Remove do_set and
11730 do_show parameters.
11731 (cli_style_option::add_setshow_commands): Use
11732 add_basic_prefix_cmd, add_show_prefix_cmd.
11733 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11734 (set_style_name): Remove.
11735 * cli/cli-dump.c (dump_command, append_command): Remove.
11736 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11737 (tekhex_dump_command, binary_dump_command)
11738 (binary_append_command): Remove.
11739 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11740 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11741 (init_w32_command_list): Remove; move into ...
11742 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11743 * valprint.c (set_print, show_print, set_print_raw)
11744 (show_print_raw): Remove.
11745 (_initialize_valprint): Use add_basic_prefix_cmd,
11746 add_show_prefix_cmd.
11747 * typeprint.c (set_print_type, show_print_type): Remove.
11748 (_initialize_typeprint): Use add_basic_prefix_cmd,
11749 add_show_prefix_cmd.
11750 * record.c (set_record_command, show_record_command): Remove.
11751 (_initialize_record): Use add_basic_prefix_cmd,
11752 add_show_prefix_cmd.
11753 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11754 add_show_prefix_cmd.
11755 (info_command, show_command, set_debug, show_debug): Remove.
11756 * top.h (set_history, show_history): Don't declare.
11757 * top.c (set_history, show_history): Remove.
11758 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11759 (unset_tdesc_cmd): Remove.
11760 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11761 add_show_prefix_cmd.
11762 * symtab.c (info_module_command): Remove.
11763 (_initialize_symtab): Use add_basic_prefix_cmd.
11764 * symfile.c (overlay_command): Remove.
11765 (_initialize_symfile): Use add_basic_prefix_cmd.
11766 * sparc64-tdep.c (info_adi_command): Remove.
11767 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11768 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11769 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11770 add_show_prefix_cmd.
11771 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11772 (_initialize_serial): Use add_basic_prefix_cmd,
11773 add_show_prefix_cmd.
11774 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11775 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11776 add_show_prefix_cmd.
11777 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11778 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11779 add_show_prefix_cmd.
11780 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11781 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11782 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11783 add_show_prefix_cmd.
11784 * remote.c (remote_command, set_remote_cmd): Remove.
11785 (_initialize_remote): Use add_basic_prefix_cmd.
11786 * record-full.c (set_record_full_command)
11787 (show_record_full_command): Remove.
11788 (_initialize_record_full): Use add_basic_prefix_cmd,
11789 add_show_prefix_cmd.
11790 * record-btrace.c (cmd_set_record_btrace)
11791 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11792 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11793 (cmd_show_record_btrace_pt): Remove.
11794 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11795 add_show_prefix_cmd.
11796 * ravenscar-thread.c (set_ravenscar_command)
11797 (show_ravenscar_command): Remove.
11798 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11799 add_show_prefix_cmd.
11800 * mips-tdep.c (show_mips_command, set_mips_command)
11801 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11802 add_show_prefix_cmd.
11803 * maint.c (maintenance_command, maintenance_info_command)
11804 (maintenance_check_command, maintenance_print_command)
11805 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11806 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11807 add_show_prefix_cmd.
11808 (show_per_command_cmd): Remove.
11809 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11810 Remove.
11811 (maintenance_show_test_settings_cmd): Remove.
11812 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11813 add_show_prefix_cmd.
11814 * maint-test-options.c (maintenance_test_options_command):
11815 Remove.
11816 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11817 * macrocmd.c (macro_command): Remove
11818 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11819 * language.c (set_check, show_check): Remove.
11820 (_initialize_language): Use add_basic_prefix_cmd,
11821 add_show_prefix_cmd.
11822 * infcmd.c (unset_command): Remove.
11823 (_initialize_infcmd): Use add_basic_prefix_cmd.
11824 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11825 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11826 add_show_prefix_cmd.
11827 * go32-nat.c (go32_info_dos_command): Remove.
11828 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11829 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11830 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11831 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11832 (_initialize_frame): Use add_basic_prefix_cmd,
11833 add_show_prefix_cmd.
11834 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11835 (_initialize_dcache): Use add_basic_prefix_cmd,
11836 add_show_prefix_cmd.
11837 * cp-support.c (maint_cplus_command): Remove.
11838 (_initialize_cp_support): Use add_basic_prefix_cmd.
11839 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11840 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11841 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11842 add_basic_prefix_cmd, add_show_prefix_cmd.
11843 * breakpoint.c (save_command): Remove.
11844 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11845 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11846 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11847 add_show_prefix_cmd.
11848 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11849 (set_ada_command, show_ada_command): Remove.
11850 (_initialize_ada_language): Use add_basic_prefix_cmd,
11851 add_show_prefix_cmd.
11852 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11853
3557f442
KR
118542020-04-16 Kamil Rytarowski <n54@gmx.com>
11855
11856 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11857 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11858
16197208
SM
118592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11860
11861 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11862 warning messages.
11863
00ac85d3
SM
118642020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11865
11866 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11867 import table is not at beginning of .idata section.
11868
381ce63f
PA
118692020-04-16 Pedro Alves <palves@redhat.com>
11870
11871 * inferior.c (delete_inferior): Use delete operator directly
11872 instead of delete_program_space.
11873 * progspace.c (add_program_space): New, factored out from
11874 program_space::program_space.
11875 (remove_program_space): New, factored out from
11876 delete_program_space.
11877 (program_space::program_space): Remove intro comment. Rewrite.
11878 (program_space::~program_space): Remove intro comment. Call
11879 remove_program_space.
11880 (delete_program_space): Delete.
11881 * progspace.h (program_space::program_space): Make explicit. Move
11882 intro comment here, adjusted.
11883 (program_space::~program_space): Move intro comment here,
11884 adjusted.
11885 (delete_program_space): Remove.
11886
a010605f
TT
118872020-04-16 Tom Tromey <tromey@adacore.com>
11888
11889 * windows-nat.c (windows_nat::handle_access_violation): New
11890 function.
11891 * nat/windows-nat.h (handle_access_violation): Declare.
11892 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11893 windows-nat.c. Call handle_access_violation.
11894
efba5c23
TV
118952020-04-16 Tom de Vries <tdevries@suse.de>
11896
11897 PR symtab/25791
11898 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11899 CUs without psymtab.
11900
97ed802d
KB
119012020-04-16 Kevin Buettner <kevinb@redhat.com>
11902
11903 * python/python.c (do_start_initialization): Don't call
11904 PyEval_InitThreads for Python 3.9 and beyond.
11905
c7d64809
KR
119062020-04-15 Kamil Rytarowski <n54@gmx.com>
11907
11908 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11909 thread functions.
11910 (obsd_nat_target::wait): Likewise.
11911
ce127a96
TT
119122020-04-15 Tom Tromey <tromey@adacore.com>
11913
11914 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11915 (DEBUG_EXCEPT): Use debug_printf.
11916
99f1bc6a
AB
119172020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11918
11919 * completer.c (class completion_tracker::completion_hash_entry)
11920 <hash_name>: New member function.
11921 (completion_tracker::discard_completions): New callback to hash a
11922 completion_hash_entry, pass this to htab_create_alloc.
11923
a0e9b532
JT
119242016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11925
11926 * windows-nat.c (windows_make_so): Warn rather than stopping with
11927 an error if realpath() fails.
11928
06ca5dd4
KR
119292020-04-14 Kamil Rytarowski <n54@gmx.com>
11930
11931 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11932 (nbsd_nat_target::info_proc): Add do_status.
11933
194d088f
TV
119342020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11935 Tom de Vries <tdevries@suse.de>
11936
11937 PR symtab/25718
11938 * psympriv.h (struct partial_symtab::read_symtab)
11939 (struct partial_symtab::expand_psymtab)
11940 (struct partial_symtab::read_dependencies): Update comments.
11941 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11942 read_symtab for includer.
11943 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11944 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11945 (struct dwarf2_include_psymtab::m_readin): Remove.
11946 (struct dwarf2_include_psymtab::includer): New member function.
11947 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11948
c1a66c06
TV
119492020-04-14 Tom de Vries <tdevries@suse.de>
11950
11951 PR symtab/25720
11952 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11953 with NULL symbol_matcher and lookup_name.
11954 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11955 and lookup_name.
11956 * dwarf2/read.c (dw2_expand_symtabs_matching)
11957 (dw2_debug_names_expand_symtabs_matching): Same.
11958 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11959 Make lookup_name a pointer. Update comment.
11960 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11961 lookup_name being a pointer.
11962 * symfile.c (expand_symtabs_matching): Same.
11963 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11964 * linespec.c (iterate_over_all_matching_symtabs): Same.
11965
400b5eca
TT
119662020-04-13 Tom Tromey <tom@tromey.com>
11967
11968 * run-on-main-thread.c: Update include.
11969 * unittests/main-thread-selftests.c: Update include.
11970 * tui/tui-win.c: Update include.
11971 * tui/tui-io.c: Update include.
11972 * tui/tui-interp.c: Update include.
11973 * tui/tui-hooks.c: Update include.
11974 * top.h: Update include.
11975 * top.c: Update include.
11976 * ser-base.c: Update include.
11977 * remote.c: Update include.
11978 * remote-notif.c: Update include.
11979 * remote-fileio.c: Update include.
11980 * record-full.c: Update include.
11981 * record-btrace.c: Update include.
11982 * python/python.c: Update include.
11983 * posix-hdep.c: Update include.
11984 * mingw-hdep.c: Update include.
11985 * mi/mi-main.c: Update include.
11986 * mi/mi-interp.c: Update include.
11987 * main.c: Update include.
11988 * linux-nat.c: Update include.
11989 * interps.c: Update include.
11990 * infrun.c: Update include.
11991 * inf-loop.c: Update include.
11992 * event-top.c: Update include.
11993 * event-loop.c: Move to ../gdbsupport/.
11994 * event-loop.h: Move to ../gdbsupport/.
11995 * async-event.h: Update include.
11996 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11997
93b54c8e
TT
119982020-04-13 Tom Tromey <tom@tromey.com>
11999
12000 * tui/tui-win.c: Include async-event.h.
12001 * remote.c: Include async-event.h.
12002 * remote-notif.c: Include async-event.h.
12003 * record-full.c: Include async-event.h.
12004 * record-btrace.c: Include async-event.h.
12005 * infrun.c: Include async-event.h.
12006 * event-top.c: Include async-event.h.
12007 * event-loop.h: Move some declarations to async-event.h.
12008 * event-loop.c: Don't include ser-event.h or top.h. Move some
12009 code to async-event.c.
12010 * async-event.h: New file.
12011 * async-event.c: New file.
12012 * Makefile.in (COMMON_SFILES): Add async-event.c.
12013 (HFILES_NO_SRCDIR): Add async-event.h.
12014
c1cd3163
TT
120152020-04-13 Tom Tromey <tom@tromey.com>
12016
12017 * utils.c (flush_streams): New function.
12018 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12019
29f2bf4f
TT
120202020-04-13 Tom Tromey <tom@tromey.com>
12021
12022 * event-loop.c (handle_file_event): Use warning, not
12023 printf_unfiltered.
12024
98029d02
TT
120252020-04-13 Tom Tromey <tom@tromey.com>
12026
12027 * event-loop.c: Include <chrono>.
12028
06cc9596
TT
120292020-04-13 Tom Tromey <tom@tromey.com>
12030
12031 * gdb_select.h: Move to ../gdbsupport/.
12032 * event-loop.c: Update include path.
12033 * top.c: Update include path.
12034 * ser-base.c: Update include path.
12035 * ui-file.c: Update include path.
12036 * ser-tcp.c: Update include path.
12037 * guile/scm-ports.c: Update include path.
12038 * posix-hdep.c: Update include path.
12039 * ser-unix.c: Update include path.
12040 * gdb_usleep.c: Update include path.
12041 * mingw-hdep.c: Update include path.
12042 * inflow.c: Update include path.
12043 * infrun.c: Update include path.
12044 * event-top.c: Update include path.
12045
8ae8e197
TT
120462020-04-13 Tom Tromey <tom@tromey.com>
12047
12048 * configure: Rebuild.
12049 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12050
58cf28e8
TT
120512020-04-13 Tom Tromey <tom@tromey.com>
12052
12053 * event-loop.h (start_event_loop): Don't declare.
12054 * event-loop.c (start_event_loop): Move...
12055 * main.c (start_event_loop): ...here. Now static.
12056
b7f999ae
SDJ
120572020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12058
12059 * MAINTAINERS: Update my email address.
12060
1085dfd4
KR
120612020-04-12 Kamil Rytarowski <n54@gmx.com>
12062
12063 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12064 IP_ALL.
12065
49d1d1f5
KR
120662020-04-12 Kamil Rytarowski <n54@gmx.com>
12067
12068 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12069 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12070
b4848d2a
KR
120712020-04-12 Kamil Rytarowski <n54@gmx.com>
12072
12073 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12074 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12075
51c133d5
KR
120762020-04-12 Kamil Rytarowski <n54@gmx.com>
12077
12078 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12079
54b8cbd0
KR
120802020-04-11 Kamil Rytarowski <n54@gmx.com>
12081
12082 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12083 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12084 (nbsd_nat_target::info_proc): New functions.
12085 * nbsd-nat.c (kinfo_get_vmmap): New function.
12086 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12087 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12088 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12089 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12090 functions.
12091 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12092 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12093 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12094 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12095 (KINFO_VME_FLAG_GROWS_DOWN): New.
12096
cf83625d
AS
120972020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12098
12099 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12100 bit shift.
12101
0c4311ab
TT
121022020-04-10 Tom Tromey <tromey@adacore.com>
12103
12104 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12105
3e65b3e9
TT
121062020-04-10 Tom Tromey <tromey@adacore.com>
12107
12108 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12109 separate debug files.
12110
13302e95
HD
121112020-04-10 Hannes Domani <ssbssa@yahoo.de>
12112
12113 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12114 Move to...
12115 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12116 ... here.
12117 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12118 Check for STATUS_WX86_BREAKPOINT.
12119 (windows_nat_target::wait): Same.
12120
bdfc1e8a
TV
121212020-04-10 Tom de Vries <tdevries@suse.de>
12122
12123 PR cli/25808
12124 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12125
f4460aec
SM
121262020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12127
12128 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12129 (Write After Approval): Remove Tom de Vries.
12130
a25198bb
BE
121312020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12132
12133 revert partially:
12134 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12135
aac66a4c
SM
12136 * buildsym.c (record_line): Fix undefined behavior and preserve
12137 lines at eof.
a25198bb 12138
206c98a6
KR
121392020-04-09 Kamil Rytarowski <n54@gmx.com>
12140
12141 * auxv.h (svr4_auxv_parse): New.
12142 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12143 and generic_auxv_parse.
12144 (svr4_auxv_parse): Add.
12145 * obsd-tdep.c: Include "auxv.h".
12146 (obsd_auxv_parse): Remove.
12147 (obsd_init_abi): Remove comment.
12148 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12149 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12150 * nbsd-tdep.c: Include "auxv.h".
12151 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12152
71fbdbaf
TT
121532020-04-08 Tom Tromey <tromey@adacore.com>
12154
12155 * nat/windows-nat.h (last_wait_event): Don't declare.
12156 (wait_for_debug_event): Update comment.
12157 * nat/windows-nat.c (last_wait_event): Now static.
12158
2c1d95e8
TT
121592020-04-08 Tom Tromey <tromey@adacore.com>
12160
12161 * windows-nat.c (wait_for_debug_event): Move to
12162 nat/windows-nat.c.
12163 * nat/windows-nat.h (wait_for_debug_event): Declare.
12164 * nat/windows-nat.c (wait_for_debug_event): Move from
12165 windows-nat.c. No longer static.
12166
d2977bc4
TT
121672020-04-08 Tom Tromey <tromey@adacore.com>
12168
12169 * windows-nat.c (get_windows_debug_event): Use
12170 fetch_pending_stop.
12171 * nat/windows-nat.h (fetch_pending_stop): Declare.
12172 * nat/windows-nat.c (fetch_pending_stop): New function.
12173
e758e19c
TT
121742020-04-08 Tom Tromey <tromey@adacore.com>
12175
12176 * windows-nat.c (windows_continue): Use matching_pending_stop and
12177 continue_last_debug_event.
12178 * nat/windows-nat.h (matching_pending_stop)
12179 (continue_last_debug_event): Declare.
12180 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12181 (matching_pending_stop, continue_last_debug_event): New
12182 functions.
12183
8d30e395
TT
121842020-04-08 Tom Tromey <tromey@adacore.com>
12185
12186 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12187 (handle_exception_result): Move to nat/windows-nat.h.
12188 (DEBUG_EXCEPTION_SIMPLE): Remove.
12189 (windows_nat::handle_ms_vc_exception): New function.
12190 (handle_exception): Move to nat/windows-nat.c.
12191 (get_windows_debug_event): Update.
12192 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12193 nat/windows-nat.c.
12194 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12195 (handle_exception_result): Move from windows-nat.c.
12196 (handle_exception): Declare.
12197 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12198 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12199 windows-nat.c.
12200
29de418d
TT
122012020-04-08 Tom Tromey <tromey@adacore.com>
12202
12203 * windows-nat.c (exception_count, event_count): Remove.
12204 (handle_exception, get_windows_debug_event)
12205 (do_initial_windows_stuff): Update.
12206
a816ba18
TT
122072020-04-08 Tom Tromey <tromey@adacore.com>
12208
12209 * windows-nat.c (windows_nat::handle_load_dll)
12210 (windows_nat::handle_unload_dll): Rename. No longer static.
12211 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12212 Declare.
12213
a00caa12
TT
122142020-04-08 Tom Tromey <tromey@adacore.com>
12215
12216 * complaints.h (stop_whining): Declare at top-level.
12217 (complaint): Don't declare stop_whining.
12218
d41b524f
TT
122192020-04-08 Tom Tromey <tromey@adacore.com>
12220
12221 * windows-nat.c (windows_nat::handle_output_debug_string):
12222 Rename. No longer static.
12223 * nat/windows-nat.h (handle_output_debug_string): Declare.
12224
3c76026d
TT
122252020-04-08 Tom Tromey <tromey@adacore.com>
12226
12227 * windows-nat.c (current_process_handle, current_process_id)
12228 (main_thread_id, last_sig, current_event, last_wait_event)
12229 (current_windows_thread, desired_stop_thread_id, pending_stops)
12230 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12231 (display_selectors, fake_create_process)
12232 (get_windows_debug_event): Update.
12233 * nat/windows-nat.h (current_process_handle, current_process_id)
12234 (main_thread_id, last_sig, current_event, last_wait_event)
12235 (current_windows_thread, desired_stop_thread_id, pending_stops)
12236 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12237 * nat/windows-nat.c (current_process_handle, current_process_id)
12238 (main_thread_id, last_sig, current_event, last_wait_event)
12239 (current_windows_thread, desired_stop_thread_id, pending_stops)
12240 (siginfo_er): New globals. Move from windows-nat.c.
12241
9d8679cc
TT
122422020-04-08 Tom Tromey <tromey@adacore.com>
12243
12244 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12245 (handle_load_dll): Update.
12246 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12247
28688adf
TT
122482020-04-08 Tom Tromey <tromey@adacore.com>
12249
12250 * windows-nat.c (enum thread_disposition_type): Move to
12251 nat/windows-nat.h.
12252 (windows_nat::thread_rec): Rename from thread_rec. No longer
12253 static.
12254 (windows_add_thread, windows_nat_target::fetch_registers)
12255 (windows_nat_target::store_registers, handle_exception)
12256 (windows_nat_target::resume, get_windows_debug_event)
12257 (windows_nat_target::get_tib_address)
12258 (windows_nat_target::thread_name)
12259 (windows_nat_target::thread_alive): Update.
12260 * nat/windows-nat.h (enum thread_disposition_type): Move from
12261 windows-nat.c.
12262 (thread_rec): Declare.
12263
4834dad0
TT
122642020-04-08 Tom Tromey <tromey@adacore.com>
12265
12266 * windows-nat.c: Add "using namespace".
12267 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12268 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12269
65bafd5b
TT
122702020-04-08 Tom Tromey <tromey@adacore.com>
12271
12272 * nat/windows-nat.h (struct windows_thread_info): Declare
12273 destructor.
12274 * nat/windows-nat.c (~windows_thread_info): New.
12275
0a4afda3
TT
122762020-04-08 Tom Tromey <tromey@adacore.com>
12277
12278 PR gdb/22992
12279 * windows-nat.c (current_event): Update comment.
12280 (last_wait_event, desired_stop_thread_id): New globals.
12281 (struct pending_stop): New.
12282 (pending_stops): New global.
12283 (windows_nat_target) <stopped_by_sw_breakpoint>
12284 <supports_stopped_by_sw_breakpoint>: New methods.
12285 (windows_fetch_one_register): Add assertions. Adjust PC.
12286 (windows_continue): Handle pending stops. Suspend other threads
12287 when stepping. Use last_wait_event
12288 (wait_for_debug_event): New function.
12289 (get_windows_debug_event): Use wait_for_debug_event. Handle
12290 pending stops. Queue spurious stops.
12291 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12292 (windows_nat_target::kill): Use wait_for_debug_event.
12293 * nat/windows-nat.h (struct windows_thread_info)
12294 <stopped_at_software_breakpoint>: New field.
12295 * nat/windows-nat.c (windows_thread_info::resume): Clear
12296 stopped_at_software_breakpoint.
12297
8e61ebec
TT
122982020-04-08 Tom Tromey <tromey@adacore.com>
12299
12300 * windows-nat.c (enum thread_disposition_type): New.
12301 (thread_rec): Replace "get_context" parameter with "disposition";
12302 change type.
12303 (windows_add_thread, windows_nat_target::fetch_registers)
12304 (windows_nat_target::store_registers, handle_exception)
12305 (windows_nat_target::resume, get_windows_debug_event)
12306 (windows_nat_target::get_tib_address)
12307 (windows_nat_target::thread_name)
12308 (windows_nat_target::thread_alive): Update.
12309
98a03287
TT
123102020-04-08 Tom Tromey <tromey@adacore.com>
12311
12312 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12313 (windows_continue): Use windows_continue::resume.
12314 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12315 resume>: Declare new methods.
12316 * nat/windows-nat.c: New file.
12317 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12318
7c7411bc
TT
123192020-04-08 Tom Tromey <tromey@adacore.com>
12320
12321 * windows-nat.c (windows_add_thread, windows_delete_thread)
12322 (windows_nat_target::fetch_registers)
12323 (windows_nat_target::store_registers, fake_create_process)
12324 (windows_nat_target::resume, windows_nat_target::resume)
12325 (get_windows_debug_event, windows_nat_target::wait)
12326 (windows_nat_target::pid_to_str)
12327 (windows_nat_target::get_tib_address)
12328 (windows_nat_target::get_ada_task_ptid)
12329 (windows_nat_target::thread_name)
12330 (windows_nat_target::thread_alive): Use lwp, not tid.
12331
2950fdf7
TT
123322020-04-08 Tom Tromey <tromey@adacore.com>
12333
12334 * windows-nat.c (handle_exception)
12335 (windows_nat_target::thread_name): Update.
12336 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12337 <name>: Now unique_xmalloc_ptr.
12338
62fe396b
TT
123392020-04-08 Tom Tromey <tromey@adacore.com>
12340
12341 * windows-nat.c (thread_rec)
12342 (windows_nat_target::fetch_registers): Update.
12343 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12344 Update comment.
12345 <debug_registers_changed, reload_context>: Now bool.
12346
e9534bd2
TT
123472020-04-08 Tom Tromey <tromey@adacore.com>
12348
12349 * windows-nat.c (windows_add_thread): Use new.
12350 (windows_init_thread_list, windows_delete_thread): Use delete.
12351 (get_windows_debug_event): Update.
12352 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12353 destructor, and initializers.
12354
ae1f8880
TT
123552020-04-08 Tom Tromey <tromey@adacore.com>
12356
12357 * windows-nat.c (struct windows_thread_info): Remove.
12358 * nat/windows-nat.h: New file.
12359
55a1e039
TT
123602020-04-08 Tom Tromey <tromey@adacore.com>
12361
12362 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12363 (thread_rec, windows_add_thread, windows_delete_thread)
12364 (windows_continue): Update.
12365
93366324
TT
123662020-04-08 Tom Tromey <tromey@adacore.com>
12367
12368 * windows-nat.c (struct windows_thread_info): Remove typedef.
12369 (thread_head): Remove.
12370 (thread_list): New global.
12371 (thread_rec, windows_add_thread, windows_init_thread_list)
12372 (windows_delete_thread, windows_continue): Update.
12373
0f2265e2
SM
123742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12375
12376 * windows-tdep.h (windows_init_abi): Add comment.
12377 (cygwin_init_abi): New declaration.
12378 * windows-tdep.c: Split signal enumeration in two, one for
12379 Windows and one for Cygwin.
12380 (windows_gdb_signal_to_target): Only deal with signal of the
12381 Windows OS ABI.
12382 (cygwin_gdb_signal_to_target): New function.
12383 (windows_init_abi): Rename to windows_init_abi_common, don't set
12384 gdb_signal_to_target gdbarch method. Add new new function with
12385 this name.
12386 (cygwin_init_abi): New function.
12387 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12388 comment. Don't call windows_init_abi.
12389 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12390 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12391 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12392 i386_windows_init_abi_common, don't call windows_init_abi. Add
12393 a new function of this name.
12394 (i386_cygwin_init_abi): New function.
12395 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12396 OS ABI Cygwin.
12397
3810f182
SM
123982020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12399
12400 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12401 parameter.c.
12402 (dwarf2_read_gdb_index): Update.
12403
063f8e80
KR
124042020-04-07 Kamil Rytarowski <n54@gmx.com>
12405
12406 * nbsd-tdep.c: Include "objfiles.h".
12407 (nbsd_skip_solib_resolver): New.
12408 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12409
85a9510c 124102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12411
12412 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12413 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12414 with DW_LLE_base_addressx are being emitted in DWARFv5.
12415 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12416 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12417 unsigned integer.
12418
9fc3eaae 124192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12420
12421 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12422 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12423 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12424 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12425 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12426 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12427 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12428
12429
41144253 124302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12431
12432 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12433 (read_loclist_index): New function definition.
12434 (lookup_loclist_base): New function definition.
12435 (read_loclist_header): New function definition.
12436 (dwarf2_cu): Add loclist_base and loclist_header field.
12437 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12438 (read_full_die_1): Read the value of DW_AT_loclists_base.
12439 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12440 (read_attribute_value): Handle DW_FORM_loclistx.
12441 (skip_one_die): Handle DW_FORM_loclistx.
12442 (loclist_header): New structure declaration.
12443 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12444
9f4e76a4
SM
124452020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12446
12447 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12448 constructor. Remove `addr` parameter from other constructor and
12449 add `per_cu` parameter.
12450 * dwarf2/read.c (create_partial_symtab): Update.
12451
25c11aca
TV
124522020-04-07 Tom de Vries <tdevries@suse.de>
12453
12454 PR symtab/25796
12455 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12456 (partial_die_info::fixup): Inherit has_const_value.
12457
5707e24b
TV
124582020-04-07 Tom de Vries <tdevries@suse.de>
12459
12460 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12461 symbols without address.
12462
05f00e22
KR
124632020-04-06 Kamil Rytarowski <n54@gmx.com>
12464
12465 * nbsd-nat.h (struct thread_info): Add forward declaration.
12466 (nbsd_nat_target::thread_alive): Add.
12467 (nbsd_nat_target::thread_name): Likewise.
12468 (nbsd_nat_target::update_thread_list): Likewise.
12469 (update_thread_list::post_attach): Likewise.
12470 (post_attach::pid_to_str): Likewise.
12471 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12472 (nbsd_thread_lister): Add.
12473 (nbsd_nat_target::thread_alive): Likewise.
12474 (nbsd_nat_target::thread_name): Likewise.
12475 (nbsd_add_threads): Likewise.
12476 (update_thread_list::post_attach): Likewise.
12477 (nbsd_nat_target::update_thread_list): Likewise.
12478 (post_attach::pid_to_str): Likewise.
12479
6ee448cc
TT
124802020-04-06 Tom Tromey <tromey@adacore.com>
12481
12482 * ada-valprint.c (print_variant_part): Extract the variant field.
12483 (print_field_values): Use the field as the outer value when
12484 recursing.
12485
dea34e8c
TT
124862020-04-06 Tom Tromey <tromey@adacore.com>
12487
12488 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12489 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12490 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12491 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12492 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12493
93689ce9
TT
124942020-04-06 Tom Tromey <tromey@adacore.com>
12495
12496 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12497 TYPE_CODE_ERROR.
12498
79743962
KR
124992020-04-06 Kamil Rytarowski <n54@gmx.com>
12500
12501 * nbsd-tdep.c: Include "gdbarch.h".
12502 Define enum with NetBSD signal numbers.
12503 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12504 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12505 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12506 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12507 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12508 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12509 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12510 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12511 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12512 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12513 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12514 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12515
9e7c9a03
HD
125162020-04-03 Hannes Domani <ssbssa@yahoo.de>
12517
12518 PR gdb/25325
12519 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12520
d9e49b61
TT
125212020-04-03 Tom Tromey <tromey@adacore.com>
12522
12523 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12524 Read constant block.
12525
e0fc5c3f
SM
125262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12527
12528 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12529 (gdb_bfd_get_full_section_contents): New declaration.
12530 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12531 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12532 gdb_bfd_get_full_section_contents.
12533
e2ff18a0
SM
125342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12535
12536 * exec.c (build_section_table): Replace internal_error with
12537 gdb_assert.
12538 (section_table_xfer_memory_partial): Likewise.
12539 * mdebugread.c (parse_partial_symbols): Likewise.
12540 * psymtab.c (lookup_partial_symbol): Likewise.
12541 * utils.c (wrap_here): Likewise.
12542
0830d301
TT
125432020-04-02 Tom Tromey <tromey@adacore.com>
12544
12545 * f-lang.c (build_fortran_types): Use arch_type to initialize
12546 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12547
e7da7f8f
TT
125482020-04-02 Tom Tromey <tromey@adacore.com>
12549
12550 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12551 of attributes.
12552
c90d28ac
AB
125532020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12554 Bernd Edlinger <bernd.edlinger@hotmail.de>
12555 Tom Tromey <tromey@adacore.com>
12556
12557 * buildsym.c (buildsym_compunit::record_line): Remove
12558 deduplication code.
12559
1aa98955
TV
125602020-04-02 Tom de Vries <tdevries@suse.de>
12561
12562 PR ada/24671
12563 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12564
d3214198
TV
125652020-04-02 Tom de Vries <tdevries@suse.de>
12566
12567 * dwarf2/read.c (dwarf2_gdb_index_functions,
12568 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12569 NULL.
12570 * psymtab.c (psym_lookup_global_symbol_language): New function.
12571 (psym_functions): Init psym_lookup_global_symbol_language with
12572 psym_lookup_global_symbol_language.
12573 * symfile-debug.c (debug_sym_quick_functions): Init
12574 lookup_global_symbol_language with NULL.
12575 * symfile.c (set_initial_language): Remove fixme comment.
12576 * symfile.h (struct quick_symbol_functions): Add
12577 lookup_global_symbol_language.
12578 * symtab.c (find_quick_global_symbol_language): New function.
12579 (find_main_name): Use find_quick_global_symbol_language.
12580
2836752f
SM
125812020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12582
12583 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12584
64dc2d4b
BE
125852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12586
12587 * buildsym.c (record_line): Fix undefined behavior and preserve
12588 lines at eof.
12589
bbe3dc41
BE
125902020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12591
12592 * buildsym.c (record_line): Fix the resizing condition.
12593
6b4a335b
TT
125942020-04-01 Tom Tromey <tom@tromey.com>
12595
12596 * value.h (value_literal_complex): Add comment.
12597 * valops.c (value_literal_complex): Refer to value.h.
12598
3638a098
TT
125992020-04-01 Tom Tromey <tom@tromey.com>
12600
12601 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12602 (scalar_type): New rule, from typebase.
12603 (typebase): Use scalar_type. Recognize complex types.
12604 (field_name): Handle FLOAT_KEYWORD.
12605 (ident_tokens): Add _Complex and __complex__.
12606
c34e8714
TT
126072020-04-01 Tom Tromey <tom@tromey.com>
12608
12609 PR exp/25299:
12610 * valarith.c (promotion_type, complex_binop): New functions.
12611 (scalar_binop): Handle complex numbers. Use promotion_type.
12612 (value_pos, value_neg, value_complement): Handle complex numbers.
12613
fa649bb7
TT
126142020-04-01 Tom Tromey <tom@tromey.com>
12615
12616 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12617 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12618 (parse_number): Handle complex numbers.
12619
981c08ce
TT
126202020-04-01 Tom Tromey <tom@tromey.com>
12621
12622 * c-valprint.c (c_decorations): Change complex suffix to "i".
12623
4c99290d
TT
126242020-04-01 Tom Tromey <tom@tromey.com>
12625
12626 * valprint.c (generic_value_print_complex): Use accessors.
12627 * value.h (value_real_part, value_imaginary_part): Declare.
12628 * valops.c (value_real_part, value_imaginary_part): New
12629 functions.
12630 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12631
5b930b45
TT
126322020-04-01 Tom Tromey <tom@tromey.com>
12633
12634 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12635 (read_range_type): Update.
12636 * mdebugread.c (basic_type): Update.
12637 * go-lang.c (build_go_types): Use init_complex_type.
12638 * gdbtypes.h (struct main_type) <complex_type>: New member.
12639 (init_complex_type): Update.
12640 (arch_complex_type): Don't declare.
12641 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12642 Make name if none given. Use alloc_type_copy. Look for cached
12643 complex type.
12644 (arch_complex_type): Remove.
12645 (gdbtypes_post_init): Use init_complex_type.
12646 * f-lang.c (build_fortran_types): Use init_complex_type.
12647 * dwarf2/read.c (read_base_type): Update.
12648 * d-lang.c (build_d_types): Use init_complex_type.
12649 * ctfread.c (read_base_type): Update.
12650
53cccef1
TBA
126512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12652
12653 * infrun.c (stop_all_threads): Update assertion, plus when
12654 stopping threads, take into account that we might be trying
12655 to stop an all-stop target.
12656 (stop_waiting): Call 'stop_all_threads' if there exists a
12657 non-stop target.
12658
a0714d30
TBA
126592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12660
12661 * target.h (exists_non_stop_target): New function declaration.
12662 * target.c (exists_non_stop_target): New function.
12663
60e22c1e
HD
126642020-04-01 Hannes Domani <ssbssa@yahoo.de>
12665
12666 PR gdb/24789
12667 * eval.c (is_integral_or_integral_reference): New function.
12668 (evaluate_subexp_standard): Allow integer references in
12669 pointer arithmetic.
12670
e139a727
TBA
126712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12672
12673 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12674 check for no ptid in the stop reply when the target is non-stop.
12675
e0802d59
TT
126762020-04-01 Tom Tromey <tromey@adacore.com>
12677
12678 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12679 "name" parameter to rvalue reference. Initialize m_name_holder.
12680 <lookup_name_info>: New overloads.
12681 <name>: Return gdb::string_view.
12682 <c_str>: New method.
12683 <make_ignore_params>: Update.
12684 <search_name_hash>: Update.
12685 <language_lookup_name>: Return const char *.
12686 <m_name>: Change type.
12687 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12688 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12689 (lookup_name_info::match_any): Update.
12690 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12691 Update.
12692 * minsyms.c (linkage_name_str): Update.
12693 * language.c (default_symbol_name_matcher): Update.
12694 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12695 Update.
12696 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12697 (ada_lookup_name_info::ada_lookup_name_info): Update.
12698 (literal_symbol_name_matcher): Update.
12699
8c072cb6
TT
127002020-04-01 Tom Tromey <tromey@adacore.com>
12701
12702 * psymtab.c (psymtab_search_name): Remove function.
12703 (psym_lookup_symbol): Create search name and lookup name here.
12704 (lookup_partial_symbol): Remove "name" parameter; add
12705 lookup_name.
12706 (psym_expand_symtabs_for_function): Update.
12707
6f29a534
TT
127082020-03-31 Joel Jones <joelkevinjones@gmail.com>
12709
12710 PR tui/25597:
12711 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12712
af62665e
TT
127132020-03-31 Tom Tromey <tromey@adacore.com>
12714
12715 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12716 memcpy.
12717
d1a89da5
NC
127182020-03-30 Nelson Chu <nelson.chu@sifive.com>
12719
12720 * features/riscv/32bit-csr.xml: Regenerated.
12721 * features/riscv/64bit-csr.xml: Regenerated.
12722
d8af9068
TT
127232020-03-30 Tom Tromey <tromey@adacore.com>
12724
12725 * ada-valprint.c (print_variant_part): Update.
12726 * ada-lang.h (ada_which_variant_applies): Update.
12727 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12728 outer_valaddr parameters; replace with "outer" value parameter.
12729 (to_fixed_variant_branch_type): Update.
12730
227c0bf4
PFC
127312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12732
12733 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12734 <list>. Remove inclusion of observable.h.
12735 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12736 (struct arch_lwp_info): New struct.
12737 (class ppc_linux_dreg_interface): New class.
12738 (struct ppc_linux_process_info): New struct.
12739 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12740 <low_new_clone, low_forget_process, low_prepare_to_resume>
12741 <copy_thread_dreg_state, mark_thread_stale>
12742 <mark_debug_registers_changed, register_hw_breakpoint>
12743 <clear_hw_breakpoint, register_wp, clear_wp>
12744 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12745 <num_memory_accesses, get_trigger_type>
12746 <create_watchpoint_request, hwdebug_point_cmp>
12747 <init_arch_lwp_info, get_arch_lwp_info>
12748 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12749 methods.
12750 <struct ptid_hash>: New inner struct.
12751 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12752 members.
12753 (saved_dabr_value, hwdebug_info, max_slots_number)
12754 (struct hw_break_tuple, struct thread_points, ppc_threads)
12755 (have_ptrace_hwdebug_interface)
12756 (hwdebug_find_thread_points_by_tid)
12757 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12758 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12759 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12760 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12761 use m_dreg_interface.
12762 (hwdebug_point_cmp): Change to...
12763 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12764 reference arguments instead of pointers.
12765 (ppc_linux_nat_target::ranged_break_num_registers): Use
12766 m_dreg_interface.
12767 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12768 m_dreg_interface. Call register_hw_breakpoint.
12769 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12770 m_dreg_interface. Call clear_hw_breakpoint.
12771 (get_trigger_type): Change to...
12772 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12773 comment.
12774 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12775 use m_dreg_interface. Call register_hw_breakpoint.
12776 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12777 use m_dreg_interface. Call clear_hw_breakpoint.
12778 (can_use_watchpoint_cond_accel): Change to...
12779 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12780 method. Update comment, use m_dreg_interface and
12781 m_process_info.
12782 (calculate_dvc): Change to...
12783 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12784 m_dreg_interface.
12785 (num_memory_accesses): Change to...
12786 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12787 (check_condition): Change to...
12788 (ppc_linux_nat_target::check_condition): ...this method.
12789 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12790 comment, use m_dreg_interface.
12791 (create_watchpoint_request): Change to...
12792 (ppc_linux_nat_target::create_watchpoint_request): ...this
12793 method. Use m_dreg_interface.
12794 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12795 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12796 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12797 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12798 (ppc_linux_nat_target::low_forget_process)
12799 (ppc_linux_nat_target::low_new_fork)
12800 (ppc_linux_nat_target::low_new_clone)
12801 (ppc_linux_nat_target::low_delete_thread)
12802 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12803 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12804 only call mark_thread_stale.
12805 (ppc_linux_thread_exit): Remove.
12806 (ppc_linux_nat_target::stopped_data_address): Change to...
12807 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12808 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12809 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12810 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12811 comment. Call low_stopped_data_address.
12812 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12813 m_dreg_interface.
12814 (ppc_linux_nat_target::masked_watch_num_registers): Use
12815 m_dreg_interface.
12816 (ppc_linux_nat_target::copy_thread_dreg_state)
12817 (ppc_linux_nat_target::mark_thread_stale)
12818 (ppc_linux_nat_target::mark_debug_registers_changed)
12819 (ppc_linux_nat_target::register_hw_breakpoint)
12820 (ppc_linux_nat_target::clear_hw_breakpoint)
12821 (ppc_linux_nat_target::register_wp)
12822 (ppc_linux_nat_target::clear_wp)
12823 (ppc_linux_nat_target::init_arch_lwp_info)
12824 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12825 (_initialize_ppc_linux_nat): Remove observer callback.
12826
4db10d8f
PFC
128272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12828
12829 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12830 (ppc_linux_nat_target::auxv_parse)
12831 (ppc_linux_nat_target::read_description)
12832 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12833 Move up.
12834
1310c1b0
PFC
128352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12836
12837 * linux-nat.h (low_new_clone): New method.
12838 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12839
69b037c3
SM
128402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12841
12842 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12843 (dbx_expand_psymtab): ... this.
12844 (start_psymtab): Update.
12845 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12846 (mdebug_expand_psymtab): ... this.
12847 (parse_partial_symbols): Update.
12848 (new_psymtab): Update.
12849 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12850 (xcoff_expand_psymtab): ... this.
12851 (xcoff_start_psymtab): Update.
12852
48993951
SM
128532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12854
12855 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12856 <expand_dependencies>: ... this.
12857 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12858 (partial_symtab::expand_dependencies): ... this.
12859 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12860 Update.
12861 (dwarf2_psymtab::expand_psymtab): Update.
12862 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12863 * mdebugread.c (psymtab_to_symtab_1): Update.
12864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12865
3ad83046
SM
128662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12867
12868 * psympriv.h (discard_psymtab): Remove.
12869 * dbxread.c (dbx_end_psymtab): Update.
12870 * xcoffread.c (xcoff_end_psymtab): Update.
12871
4d1b9ab6
TT
128722020-03-28 Tom Tromey <tom@tromey.com>
12873
12874 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12875 comment.
12876
f1749218
TT
128772020-03-28 Tom Tromey <tom@tromey.com>
12878
12879 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12880
ebea7626
HD
128812020-03-27 Hannes Domani <ssbssa@yahoo.de>
12882
12883 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12884
a879b4d5
JB
128852020-03-26 John Baldwin <jhb@FreeBSD.org>
12886
12887 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12888
0826b30a
TT
128892020-03-26 Tom Tromey <tom@tromey.com>
12890
12891 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12892 (mark_common_block_symbol_computed, read_tag_string_type)
12893 (attr_to_dynamic_prop, read_subrange_type): Update.
12894 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12895 to be methods on struct attribute.
12896 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12897 (read_call_site_scope, partial_die_info::read)
12898 (partial_die_info::read, lookup_die_type, follow_die_ref):
12899 Update.
12900 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12901 from dwarf2_get_ref_die_offset.
12902 (attribute::constant_value): New method, from
12903 dwarf2_get_attr_constant_value.
12904 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12905 Declare method.
12906 <constant_value>: New method.
12907
2b2558bf
TT
129082020-03-26 Tom Tromey <tom@tromey.com>
12909
12910 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12911 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12912 (dwarf_type_encoding_name): Move to stringify.c.
12913 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12914 * dwarf2/stringify.c: New file.
12915 * dwarf2/stringify.h: New file.
12916
eeb64781
TT
129172020-03-26 Tom Tromey <tom@tromey.com>
12918
12919 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12920 Rewrite.
12921
a39fdb41
TT
129222020-03-26 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12925 methods.
12926 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12927 (lookup_ranges_base): Likewise.
12928 (read_cutu_die_from_dwo, read_full_die_1): Update.
12929
436c571c
TT
129302020-03-26 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/read.c (read_import_statement, read_file_scope)
12933 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12934 (read_lexical_block_scope, read_call_site_scope)
12935 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12936 (handle_struct_member_die, process_structure_scope)
12937 (update_enumeration_type_from_children)
12938 (process_enumeration_scope, read_array_type, read_common_block)
12939 (read_namespace, read_module, read_subroutine_type): Update.
12940 (sibling_die): Remove.
12941
052c8bb8
TT
129422020-03-26 Tom Tromey <tom@tromey.com>
12943
12944 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12945 (build_type_psymtabs_reader, read_structure_type)
12946 (read_enumeration_type, read_full_die_1): Update.
12947 (dwarf2_attr_no_follow): Move to die.h.
12948 * dwarf2/die.h (struct die_info) <attr>: New method.
12949
2b24b6e4
TT
129502020-03-26 Tom Tromey <tom@tromey.com>
12951
12952 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12953 <base_address>: Now an optional.
12954 (dwarf2_find_base_address, dwarf2_rnglists_process)
12955 (dwarf2_ranges_process, fill_in_loclist_baton)
12956 (dwarf2_symbol_mark_computed): Update.
12957
c2d50fd0
TT
129582020-03-26 Tom Tromey <tom@tromey.com>
12959
12960 * dwarf2/read.c (struct die_info): Move to die.h.
12961 * dwarf2/die.h: New file.
12962
0df7ad3a
TT
129632020-03-26 Tom Tromey <tom@tromey.com>
12964
12965 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12966 * dwarf2/read.c
12967 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12968 Move to line-header.c.
12969 (read_checked_initial_length_and_offset, read_formatted_entries):
12970 Likewise.
12971 (dwarf_decode_line_header): Split into two.
12972 * dwarf2/line-header.c
12973 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12974 Move from read.c.
12975 (read_checked_initial_length_and_offset, read_formatted_entries):
12976 Likewise.
12977 (dwarf_decode_line_header): New function, split from read.c.
12978
86c0bb4c
TT
129792020-03-26 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12982 Declare method.
12983 * dwarf2/read.c (read_attribute_value): Update.
12984 (dwarf2_per_objfile::read_line_string): Rename from
12985 read_indirect_line_string.
12986 (read_formatted_entries): Update.
12987
2ef46c2f
TT
129882020-03-26 Tom Tromey <tom@tromey.com>
12989
12990 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12991 variable.
12992
4f9c1eda
TT
129932020-03-26 Tom Tromey <tom@tromey.com>
12994
12995 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12996 const.
12997 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12998 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12999 parameter const.
13000
5a0e026f
TT
130012020-03-26 Tom Tromey <tom@tromey.com>
13002
13003 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13004 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13005 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13006 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13007
8844c11b
TT
130082020-03-26 Tom Tromey <tom@tromey.com>
13009
13010 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13011 file_names_size, file_full_name, file_file_name>: Use const.
13012 <file_name_at, file_names>: Add const overload.
13013 * dwarf2/line-header.c (line_header::file_file_name)
13014 (line_header::file_full_name): Update.
13015
c90ec28a
TT
130162020-03-26 Tom Tromey <tom@tromey.com>
13017
13018 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13019 (macro_start_file, consume_improper_spaces)
13020 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13021 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13022 (dwarf_decode_macros): Move to macro.c.
13023 * dwarf2/macro.c: New file.
13024 * dwarf2/macro.h: New file.
13025 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13026
4f44ae6c
TT
130272020-03-26 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13030 method.
13031 * dwarf2/section.c: New method. From
13032 read_indirect_string_at_offset_from.
13033 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13034 (read_indirect_string_at_offset_from): Move to section.c.
13035 (read_indirect_string_at_offset): Rewrite.
13036 (read_indirect_line_string_at_offset): Remove.
13037 (read_indirect_string, read_indirect_line_string)
13038 (dwarf_decode_macro_bytes): Update.
13039
a0194fa8
TT
130402020-03-26 Tom Tromey <tom@tromey.com>
13041
13042 * dwarf2/section.h (struct dwarf2_section_info)
13043 <overload_complaint>: Declare.
13044 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13045 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13046 Rename from dwarf2_section_buffer_overflow_complaint.
13047 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13048 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13049
3d27bbdb
TT
130502020-03-26 Tom Tromey <tom@tromey.com>
13051
13052 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13053 Declare.
13054 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13055 Move from read.c.
13056 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13057 to section.c.
13058
9eac9650
TT
130592020-03-26 Tom Tromey <tom@tromey.com>
13060
13061 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13062
bf80d710
TT
130632020-03-26 Tom Tromey <tom@tromey.com>
13064
13065 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13066 "builder".
13067 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13068 parameter.
13069 (dwarf_decode_macros): Update.
13070
0314b390
TT
130712020-03-26 Tom Tromey <tom@tromey.com>
13072
13073 * dwarf2/read.c (read_attribute_value): Update.
13074 (read_indirect_string_from_dwz): Move to dwz.c; change into
13075 method.
13076 (dwarf_decode_macro_bytes): Update.
13077 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13078 * dwarf2/dwz.c: New file.
13079 * Makefile.in (COMMON_SFILES): Add dwz.c.
13080
9fda78b6
TT
130812020-03-26 Tom Tromey <tom@tromey.com>
13082
13083 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13084 * dwarf2/read.c: Add include.
13085 * dwarf2/index-write.c: Add include.
13086 * dwarf2/index-cache.c: Add include.
13087 * dwarf2/dwz.h: New file.
13088
33aa3c10
TT
130892020-03-25 Tom Tromey <tom@tromey.com>
13090
13091 * compile/compile-object-load.c (get_out_value_type): Mention
13092 correct symbol name in error message.
13093
d503b685
HD
130942020-03-25 Hannes Domani <ssbssa@yahoo.de>
13095
13096 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13097
7b1eff95
TV
130982020-03-25 Tom de Vries <tdevries@suse.de>
13099
13100 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13101 * symmisc.c (dump_symtab_1): Print user and includes fields.
13102 (maintenance_info_symtabs): Same.
13103
dd895392
AB
131042020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13105
13106 PR gdb/25534
13107 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13108 (riscv_regcache_cooked_write): New function.
13109 (riscv_push_dummy_call): Use new function.
13110 (riscv_return_value): Likewise.
13111
5ab2fbf1
SM
131122020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13113
13114 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13115 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13116 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13117 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13118 * infrun.c (follow_fork): Likewise.
13119 (follow_fork_inferior): Likewise.
13120 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13121 * linux-nat.h (class linux_nat_target): Likewise.
13122 * remote.c (class remote_target) <follow_fork>: Likewise.
13123 (remote_target::follow_fork): Likewise.
13124 * target-delegates.c: Re-generate.
13125 * target.c (default_follow_fork): Likewise.
13126 (target_follow_fork): Likewise.
13127 * target.h (struct target_ops) <follow_fork>: Likewise.
13128 (target_follow_fork): Likewise.
13129
a64fafb5
TV
131302020-03-24 Tom de Vries <tdevries@suse.de>
13131
13132 * psymtab.c (maintenance_info_psymtabs): Print user field.
13133
fe26d3a3
TT
131342020-03-20 Tom Tromey <tromey@adacore.com>
13135
13136 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13137 const.
13138 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13139 const.
13140
c884cc46
SM
131412020-03-20 Simon Marchi <simon.marchi@efficios.com>
13142
13143 * ptrace.m4: Don't check for ptrace declaration.
13144 * config.in: Re-generate.
13145 * configure: Re-generate.
13146 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13147 not defined.
13148
1ff700c2
KR
131492020-03-20 Kamil Rytarowski <n54@gmx.com>
13150
13151 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13152 `PTRACE_TYPE_RET'.
13153 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13154 * sparc-nat.c (gdb_ptrace): Likewise.
13155 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13156
f7d4f0b1
TT
131572020-03-20 Tom Tromey <tromey@adacore.com>
13158
13159 * c-exp.y (lex_one_token): Fix assert.
13160
f67210ff
TT
131612020-03-20 Tom Tromey <tromey@adacore.com>
13162
13163 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13164 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13165 strncpy call.
13166
1773be9e
TT
131672020-03-20 Tom Tromey <tromey@adacore.com>
13168
13169 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13170
70304be9
TT
131712020-03-20 Tom Tromey <tromey@adacore.com>
13172
13173 * ada-valprint.c (print_variant_part): Remove parameters; switch
13174 to value-based API.
13175 (print_field_values): Likewise.
13176 (ada_val_print_struct_union): Likewise.
13177 (ada_value_print_1): Update.
13178
9faa006d
KR
131792020-03-20 Kamil Rytarowski <n54@gmx.com>
13180
13181 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13182 nbsd_nat_target instead of inf_ptrace_target.
13183 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13184 nbsd_nat_target.
13185
4a90f062
KR
131862020-03-20 Kamil Rytarowski <n54@gmx.com>
13187
13188 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13189 it to the ptrace call.
13190 * (store_registers): Likewise.
13191
131922020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13193
13194 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13195 it to the ptrace call.
13196 * (store_registers): Likewise.
13197
2d07da27
LM
131982020-03-19 Luis Machado <luis.machado@linaro.org>
13199
13200 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13201 valid, fetch vg value from ptrace.
13202
f09db380
KR
132032020-03-19 Kamil Rytarowski <n54@gmx.com>
13204 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13205 * inf-ptrace.c: Likewise.
13206 * (gdb_ptrace): Add.
13207 * (inf_ptrace_target::resume): Update.
13208 * (inf_ptrace_target::xfer_partial): Likewise.
13209 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13210 * (inf_ptrace_peek_poke): Update.
13211
fcc7376e
KR
132122020-03-19 Kamil Rytarowski <n54@gmx.com>
13213
13214 * x86-bsd-nat.c (gdb_ptrace): New.
13215 * (x86bsd_dr_set): Add new argument `ptid'.
13216 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13217 x86bsd_dr_set_addr): Update.
13218
cada5fc9
AB
132192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13220
13221 * remote.c (remote_target::process_stop_reply): Handle events for
13222 all threads differently.
13223
19a2740f
AB
132242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13225
13226 * completer.c (completion_tracker::remove_completion): Define new
13227 function.
13228 * completer.h (completion_tracker::remove_completion): Declare new
13229 function.
13230 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13231 when adding a C++ function symbol.
13232
724fd9ba
AB
132332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13234
13235 * completer.c (completion_tracker::completion_hash_entry): Define
13236 new class.
13237 (advance_to_filename_complete_word_point): Call
13238 recompute_lowest_common_denominator.
13239 (completion_tracker::completion_tracker): Call discard_completions
13240 to setup the hash table.
13241 (completion_tracker::discard_completions): Allow for being called
13242 from the constructor, pass new equal function, and element deleter
13243 when constructing the hash table. Initialise new class member
13244 variables.
13245 (completion_tracker::maybe_add_completion): Remove use of
13246 m_entries_vec, and store more information into m_entries_hash.
13247 (completion_tracker::recompute_lcd_visitor): New function, most
13248 content taken from...
13249 (completion_tracker::recompute_lowest_common_denominator):
13250 ...here, this now just visits each item in the hash calling the
13251 above visitor.
13252 (completion_tracker::build_completion_result): Remove use of
13253 m_entries_vec, call recompute_lowest_common_denominator.
13254 * completer.h (completion_tracker::have_completions): Remove use
13255 of m_entries_vec.
13256 (completion_tracker::completion_hash_entry): Declare new class.
13257 (completion_tracker::recompute_lowest_common_denominator): Change
13258 function signature.
13259 (completion_tracker::recompute_lcd_visitor): Declare new function.
13260 (completion_tracker::m_entries_vec): Delete.
13261 (completion_tracker::m_entries_hash): Initialize to NULL.
13262 (completion_tracker::m_lowest_common_denominator_valid): New
13263 member variable.
13264 (completion_tracker::m_lowest_common_denominator_max_length): New
13265 member variable.
13266
5a82b8a1
KR
132672020-03-17 Kamil Rytarowski <n54@gmx.com>
13268
13269 * regformats/regdef.h: Put reg in gdb namespace.
13270
fb516a69
KR
132712020-03-17 Kamil Rytarowski <n54@gmx.com>
13272
13273 * i386-bsd-nat.c (gdb_ptrace): New.
13274 * (i386bsd_fetch_inferior_registers,
13275 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13276 * (i386bsd_fetch_inferior_registers,
13277 i386bsd_store_inferior_registers) Use gdb_ptrace.
13278
1c0aa1fb
KR
132792020-03-17 Kamil Rytarowski <n54@gmx.com>
13280
13281 * amd64-bsd-nat.c (gdb_ptrace): New.
13282 * (amd64bsd_fetch_inferior_registers,
13283 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13284 * (amd64bsd_fetch_inferior_registers,
13285 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13286
5ccd2fb7
KR
132872020-03-17 Kamil Rytarowski <n54@gmx.com>
13288
13289 * user-regs.c (user_reg::read): Rename to...
13290 (user_reg::xread): ...this.
13291 * (append_user_reg): Rename argument `read' to `xread'.
13292 * (user_reg_add_builtin): Likewise.
13293 * (user_reg_add): Likewise.
13294 * (value_of_user_reg): Likewise.
13295
2108a63a
KR
132962020-03-17 Kamil Rytarowski <n54@gmx.com>
13297
13298 * sparc-nat.c (gdb_ptrace): New.
13299 * sparc-nat.c (sparc_fetch_inferior_registers)
13300 (sparc_store_inferior_registers) Remove obsolete comment.
13301 * sparc-nat.c (sparc_fetch_inferior_registers)
13302 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13303 * sparc-nat.c (sparc_fetch_inferior_registers)
13304 (sparc_store_inferior_registers) Use gdb_ptrace.
13305
a225c9a8
KR
133062020-03-17 Kamil Rytarowski <n54@gmx.com>
13307
13308 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13309 it to the ptrace call.
13310 * sh-nbsd-nat.c (store_registers): Likewise.
13311
98097623
KR
133122020-03-17 Kamil Rytarowski <n54@gmx.com>
13313
13314 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13315 nbsd_nat_target instead of inf_ptrace_target.
13316 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13317 nbsd_nat_target.
13318
9e38d619
KR
133192020-03-17 Kamil Rytarowski <n54@gmx.com>
13320
13321 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13322
a2ecbe9f
KR
133232020-03-17 Kamil Rytarowski <n54@gmx.com>
13324
13325 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13326 <sys/sysctl.h>.
13327 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13328
58990295
TV
133292020-03-17 Tom de Vries <tdevries@suse.de>
13330
13331 PR gdb/23710
13332 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13333 fields.
13334 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13335 fields.
13336 (process_imported_unit_die): Skip import of c++ CUs.
13337
771dd3a8
TT
133382020-03-16 Tom Tromey <tom@tromey.com>
13339
13340 * p-valprint.c (pascal_object_print_value): Initialize
13341 base_value.
13342
817a7585
AK
133432020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13344 Shahab Vahedi <shahab@synopsys.com>
13345
13346 * Makefile.in: Add arch/arc.o
13347 * configure.tgt: Likewise.
13348 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13349 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13350 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13351 * arc-tdep.h (arc_read_description): Add proto type.
13352 * arch/arc.c: New file.
13353 * arch/arc.h: Likewise.
13354 * features/Makefile: Replace old target descriptions with new.
13355 * features/arc-arcompact.c: Remove.
13356 * features/arc-arcompact.xml: Likewise.
13357 * features/arc-v2.c: Likewise
13358 * features/arc-v2.xml: Likewise
13359 * features/arc/aux-arcompact.xml: New file.
13360 * features/arc/aux-v2.xml: Likewise.
13361 * features/arc/core-arcompact.xml: Likewise.
13362 * features/arc/core-v2.xml: Likewise.
13363 * features/arc/aux-arcompact.c: Generate.
13364 * features/arc/aux-v2.c: Likewise.
13365 * features/arc/core-arcompact.c: Likewise.
13366 * features/arc/core-v2.c: Likewise.
13367 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13368
67430cd0
TT
133692020-03-16 Tom Tromey <tromey@adacore.com>
13370
13371 PR gdb/25663:
13372 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13373 putting value into bcache.
13374
30efb6c7
SM
133752020-03-16 Simon Marchi <simon.marchi@efficios.com>
13376
13377 PR gdb/21500
13378 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13379 to...
13380 (amd64_windows_init_abi_common): ... this. Don't set size of
13381 long type.
13382 (amd64_windows_init_abi): New function.
13383 (amd64_cygwin_init_abi): New function.
13384 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13385 the Cygwin OS ABI.
13386 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13387 comment.
13388
8db52437
SM
133892020-03-16 Simon Marchi <simon.marchi@efficios.com>
13390
13391 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13392 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13393 (pe_import_directory_entry): New struct type.
13394 (is_linked_with_cygwin_dll): New function.
13395 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13396 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13397 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13398
5982a56a
SM
133992020-03-16 Simon Marchi <simon.marchi@efficios.com>
13400
13401 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13402 i386_cygwin_core_osabi_sniffer.
13403
7a1998df
SM
134042020-03-16 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * i386-cygwin-tdep.c: Rename to...
13407 * i386-windows-tdep.c: ... this.
13408 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13409 i386-windows-tdep.c.
13410 * configure.tgt: Likewise.
13411
053205cc
SM
134122020-03-16 Simon Marchi <simon.marchi@efficios.com>
13413
13414 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13415 * osabi.c (gdb_osabi_names): Add "Windows".
13416 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13417 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13418 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13419 i386_cygwin_osabi_sniffer.
13420 (_initialize_i386_cygwin_tdep): Register OS ABI
13421 GDB_OSABI_WINDOWS for i386.
13422 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13423 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13424 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13425 for x86-64.
13426 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13427 when the target matches '*-*-mingw*'.
13428
fe4b2ee6
SM
134292020-03-16 Simon Marchi <simon.marchi@efficios.com>
13430
13431 * defs.h (enum gdb_osabi): Move to...
13432 * osabi.h (enum gdb_osabi): ... here.
13433 * gdbarch.sh: Include osabi.h in gdbarch.h.
13434 * gdbarch.h: Re-generate.
13435
cb9b645d
SM
134362020-03-16 Simon Marchi <simon.marchi@efficios.com>
13437
13438 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13439 function.
13440 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13441
3293bbaf
TT
134422020-03-14 Tom Tromey <tom@tromey.com>
13443
13444 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13445 for C++.
13446 (c_type_print_modifier): Likewise. Add "language" parameter.
13447 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13448 (c_type_print_base_1): Update.
13449 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13450 constants.
13451 * type-stack.c (type_stack::insert): Handle tp_atomic and
13452 tp_restrict.
13453 (type_stack::follow_type_instance_flags): Likewise.
13454 (type_stack::follow_types): Likewise. Merge type-following code.
13455 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13456 (space_identifier, cv_with_space_id)
13457 (const_or_volatile_or_space_identifier_noopt)
13458 (const_or_volatile_or_space_identifier): Remove.
13459 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13460 rules.
13461 (ptr_operator, typebase): Update.
13462 (enum token_flag) <FLAG_C>: New constant.
13463 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13464 "_Atomic".
13465 (lex_one_token): Handle FLAG_C.
13466
154151a6
KR
134672020-03-14 Kamil Rytarowski <n54@gmx.com>
13468
13469 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13470 it to the ptrace call.
13471 * m68k-bsd-nat.c (store_registers): Likewise.
13472
bc107784
KR
134732020-03-14 Kamil Rytarowski <n54@gmx.com>
13474
13475 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13476 gdb_byte *.
13477 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13478 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13479 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13480
01a80117
KR
134812020-03-14 Kamil Rytarowski <n54@gmx.com>
13482
13483 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13484 nbsd_nat_target instead of inf_ptrace_target.
13485 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13486 nbsd_nat_target.
13487
f90280ca
KR
134882020-03-14 Kamil Rytarowski <n54@gmx.com>
13489
13490 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13491 register_t.
13492
6def66f1
KR
134932020-03-14 Kamil Rytarowski <n54@gmx.com>
13494
13495 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13496 it to the ptrace call.
13497 * alpha-bsd-nat.c (store_registers): Likewise.
13498
66eaca97
KR
134992020-03-14 Kamil Rytarowski <n54@gmx.com>
13500
13501 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13502 includes.
13503 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13504 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13505 fill_fpregset): Likewise.
13506
4fed520b
KR
135072020-03-14 Kamil Rytarowski <n54@gmx.com>
13508
13509 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13510 nbsd_nat_target instead of inf_ptrace_target.
13511 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13512 nbsd_nat_target.
13513
2190cf06
KR
135142020-03-14 Kamil Rytarowski <n54@gmx.com>
13515
13516 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13517 register_t.
13518
75c56d3d
KR
135192020-03-14 Kamil Rytarowski <n54@gmx.com>
13520
13521 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13522 it to the ptrace call.
13523 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13524 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13525 * arm-nbsd-nat.c (store_register): Likewise.
13526 * arm-nbsd-nat.c (store_regs): Likewise.
13527 * arm-nbsd-nat.c (store_fp_register): Likewise.
13528 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13529
6018d381
KR
135302020-03-14 Kamil Rytarowski <n54@gmx.com>
13531
13532 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13533 nbsd_nat_target instead of inf_ptrace_target.
13534 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13535 nbsd_nat_target.
13536
013f99f0
KR
135372020-03-14 Kamil Rytarowski <n54@gmx.com>
13538
13539 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13540 it to the ptrace call.
13541 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13542
12753073
KR
135432020-03-14 Kamil Rytarowski <n54@gmx.com>
13544
6227b330
KR
13545 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13546 it to the ptrace call.
13547 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13548
135492020-03-14 Kamil Rytarowski <n54@gmx.com>
13550
13551 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13552 gdb_byte *.
12753073
KR
13553 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13554
d5be5fa4
KR
135552020-03-14 Kamil Rytarowski <n54@gmx.com>
13556
13557 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13558 instead of inf_ptrace_target.
13559 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13560 nbsd_nat_target.
13561
8110f842
KR
135622020-03-14 Kamil Rytarowski <n54@gmx.com>
13563
13564 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13565 register_t.
13566
52feded7
KR
135672020-03-14 Kamil Rytarowski <n54@gmx.com>
13568
13569 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13570 register_t.
13571
25567eee
KR
135722020-03-14 Kamil Rytarowski <n54@gmx.com>
13573
13574 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13575 register_t.
13576
426a9c18
TT
135772020-03-13 Tom Tromey <tom@tromey.com>
13578
13579 * value.h (val_print): Don't declare.
13580 * valprint.h (val_print_array_elements)
13581 (val_print_scalar_formatted, generic_val_print): Don't declare.
13582 * valprint.c (generic_val_print_array): Take a struct value.
13583 (generic_val_print_ptr, generic_val_print_memberptr)
13584 (generic_val_print_bool, generic_val_print_int)
13585 (generic_val_print_char, generic_val_print_complex)
13586 (generic_val_print): Remove.
13587 (generic_value_print): Update.
13588 (do_val_print): Remove unused parameters. Don't call
13589 la_val_print.
13590 (val_print): Remove.
13591 (common_val_print): Update. Don't call value_check_printable.
13592 (val_print_scalar_formatted, val_print_array_elements): Remove.
13593 * rust-lang.c (rust_val_print): Remove.
13594 (rust_language_defn): Update.
13595 * p-valprint.c (pascal_val_print): Remove.
13596 (pascal_value_print_inner): Update.
13597 (pascal_object_print_val_fields, pascal_object_print_val):
13598 Remove.
13599 (pascal_object_print_static_field): Update.
13600 * p-lang.h (pascal_val_print): Don't declare.
13601 * p-lang.c (pascal_language_defn): Update.
13602 * opencl-lang.c (opencl_language_defn): Update.
13603 * objc-lang.c (objc_language_defn): Update.
13604 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13605 * m2-lang.h (m2_val_print): Don't declare.
13606 * m2-lang.c (m2_language_defn): Update.
13607 * language.h (struct language_defn) <la_val_print>: Remove.
13608 * language.c (unk_lang_value_print_inner): Rename. Change
13609 argument types.
13610 (unknown_language_defn, auto_language_defn): Update.
13611 * go-valprint.c (go_val_print): Remove.
13612 * go-lang.h (go_val_print): Don't declare.
13613 * go-lang.c (go_language_defn): Update.
13614 * f-valprint.c (f_val_print): Remove.
13615 * f-lang.h (f_value_print): Don't declare.
13616 * f-lang.c (f_language_defn): Update.
13617 * d-valprint.c (d_val_print): Remove.
13618 * d-lang.h (d_value_print): Don't declare.
13619 * d-lang.c (d_language_defn): Update.
13620 * cp-valprint.c (cp_print_value_fields)
13621 (cp_print_value_fields_rtti, cp_print_value): Remove.
13622 (cp_print_static_field): Update.
13623 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13624 (c_val_print_struct, c_val_print_union, c_val_print_int)
13625 (c_val_print_memberptr, c_val_print): Remove.
13626 * c-lang.h (c_val_print_array, cp_print_value_fields)
13627 (cp_print_value_fields_rtti): Don't declare.
13628 * c-lang.c (c_language_defn, cplus_language_defn)
13629 (asm_language_defn, minimal_language_defn): Update.
13630 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13631 (ada_val_print_enum): Take a struct value.
13632 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13633 (ada_val_print): Remove.
13634 (ada_value_print_1): Update.
13635 (printable_val_type): Remove.
13636 * ada-lang.h (ada_val_print): Don't declare.
13637 * ada-lang.c (ada_language_defn): Update.
13638
42331a1e
TT
136392020-03-13 Tom Tromey <tom@tromey.com>
13640
13641 * valprint.c (do_val_print): Update.
13642 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13643 a struct value.
13644 (value_to_value_object_no_release): Declare.
13645 * python/py-value.c (value_to_value_object_no_release): New
13646 function.
13647 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13648 struct value.
13649 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13650 function.
13651 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13652 a struct value.
13653 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13654 Declare.
13655 (gdbscm_apply_val_pretty_printer): Take a struct value.
13656 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13657 value.
13658 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13659 value.
13660 * extension-priv.h (struct extension_language_ops)
13661 <apply_val_pretty_printer>: Take a struct value.
13662 * cp-valprint.c (cp_print_value): Create a struct value.
13663 (cp_print_value): Update.
13664
3a916a97
TT
136652020-03-13 Tom Tromey <tom@tromey.com>
13666
13667 * ada-valprint.c (print_field_values): Call common_val_print.
13668
b59eac37
TT
136692020-03-13 Tom Tromey <tom@tromey.com>
13670
13671 * ada-valprint.c (val_print_packed_array_elements): Remove
13672 bitoffset and val parameters. Call common_val_print.
13673 (ada_val_print_string): Remove offset, address, and original_value
13674 parameters.
13675 (ada_val_print_array): Update.
13676 (ada_value_print_array): New function.
13677 (ada_value_print_1): Call it.
13678
03371129
TT
136792020-03-13 Tom Tromey <tom@tromey.com>
13680
13681 * ada-valprint.c (ada_value_print): Use common_val_print.
13682
2e088f8b
TT
136832020-03-13 Tom Tromey <tom@tromey.com>
13684
13685 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13686
39ef85a8
TT
136872020-03-13 Tom Tromey <tom@tromey.com>
13688
13689 * ada-valprint.c (ada_value_print_num): New function.
13690 (ada_value_print_1): Use it.
13691
b9fa6e07
TT
136922020-03-13 Tom Tromey <tom@tromey.com>
13693
13694 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13695
416595d6
TT
136962020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * ada-valprint.c (ada_value_print_ptr): New function.
13699 (ada_value_print_1): Use it.
13700
5b5e15ec
TT
137012020-03-13 Tom Tromey <tom@tromey.com>
13702
13703 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13704 call common_val_print.
13705 (ada_val_print_1): Update.
13706 (ada_value_print_1): New function.
13707 (ada_value_print_inner): Rewrite.
13708
fbf54e75
TT
137092020-03-13 Tom Tromey <tom@tromey.com>
13710
13711 * cp-valprint.c (cp_print_value_fields): Update.
13712 (cp_print_value): New function.
13713
64b653ca
TT
137142020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * m2-valprint.c (m2_value_print_inner): Use
13717 cp_print_value_fields.
13718 * cp-valprint.c (cp_print_value_fields): New function.
13719 * c-valprint.c (c_value_print_struct): New function.
13720 (c_value_print_inner): Use c_value_print_struct.
13721 * c-lang.h (cp_print_value_fields): Declare.
13722
6999f067
TT
137232020-03-13 Tom Tromey <tom@tromey.com>
13724
13725 * c-valprint.c (c_value_print_array): New function.
13726 (c_value_print_inner): Use it.
13727
ce80b8bd
TT
137282020-03-13 Tom Tromey <tom@tromey.com>
13729
13730 * c-valprint.c (c_value_print_memberptr): New function.
13731 (c_value_print_inner): Use it.
13732
2faac269
TT
137332020-03-13 Tom Tromey <tom@tromey.com>
13734
13735 * c-valprint.c (c_value_print_int): New function.
13736 (c_value_print_inner): Use it.
13737
da3e2c29
TT
137382020-03-13 Tom Tromey <tom@tromey.com>
13739
13740 * c-valprint.c (c_value_print_ptr): New function.
13741 (c_value_print_inner): Use it.
13742
50836231
TT
137432020-03-13 Tom Tromey <tom@tromey.com>
13744
13745 * c-valprint.c (c_value_print_inner): Rewrite.
13746
4f412b6e
TT
137472020-03-13 Tom Tromey <tom@tromey.com>
13748
13749 * valprint.c (generic_value_print_complex): New function.
13750 (generic_value_print): Use it.
13751
f5354008
TT
137522020-03-13 Tom Tromey <tom@tromey.com>
13753
13754 * valprint.c (generic_val_print_float): Don't call
13755 val_print_scalar_formatted.
13756 (generic_val_print, generic_value_print): Update.
13757
3eec3b05
TT
137582020-03-13 Tom Tromey <tom@tromey.com>
13759
13760 * valprint.c (generic_value_print_char): New function
13761 (generic_value_print): Use it.
13762
fdddfccb
TT
137632020-03-13 Tom Tromey <tom@tromey.com>
13764
13765 * valprint.c (generic_value_print_int): New function.
13766 (generic_value_print): Use it.
13767
6dde7521
TT
137682020-03-13 Tom Tromey <tom@tromey.com>
13769
13770 * valprint.c (generic_value_print_bool): New function.
13771 (generic_value_print): Use it.
13772
4112d2e6
TT
137732020-03-13 Tom Tromey <tom@tromey.com>
13774
13775 * valprint.c (generic_val_print_func): Simplify.
13776 (generic_val_print, generic_value_print): Update.
13777
65786af6
TT
137782020-03-13 Tom Tromey <tom@tromey.com>
13779
13780 * valprint.c (generic_val_print_flags): Remove.
13781 (generic_val_print, generic_value_print): Update.
13782 (val_print_type_code_flags): Add original_value parameter.
13783
40f3ce18
TT
137842020-03-13 Tom Tromey <tom@tromey.com>
13785
13786 * valprint.c (generic_val_print): Update.
13787 (generic_value_print): Update.
13788 * valprint.c (generic_val_print_enum): Don't call
13789 val_print_scalar_formatted.
13790
2a5b130b
TT
137912020-03-13 Tom Tromey <tom@tromey.com>
13792
13793 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13794 * valprint.c (generic_value_print_ptr): New function.
13795
abc66ce9
TT
137962020-03-13 Tom Tromey <tom@tromey.com>
13797
13798 * valprint.c (generic_value_print): Rewrite.
13799
07a32858
TT
138002020-03-13 Tom Tromey <tom@tromey.com>
13801
13802 * p-valprint.c (pascal_object_print_value_fields)
13803 (pascal_object_print_value): New functions.
13804
64d64d3a
TT
138052020-03-13 Tom Tromey <tom@tromey.com>
13806
13807 * p-valprint.c (pascal_value_print_inner): Rewrite.
13808
6a95a1f5
TT
138092020-03-13 Tom Tromey <tom@tromey.com>
13810
13811 * f-valprint.c (f_value_print_innner): Rewrite.
13812
59fcdac6
TT
138132020-03-13 Tom Tromey <tom@tromey.com>
13814
13815 * m2-valprint.c (m2_print_unbounded_array): New overload.
13816 (m2_print_unbounded_array): Update.
13817 (m2_print_array_contents): Take a struct value.
13818 (m2_value_print_inner): Rewrite.
13819
d133c3e1
TT
138202020-03-13 Tom Tromey <tom@tromey.com>
13821
13822 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13823 (d_value_print_inner): New function.
13824 * d-lang.h (d_value_print_inner): Declare.
13825 * d-lang.c (d_language_defn): Use d_value_print_inner.
13826
23b0f06b
TT
138272020-03-13 Tom Tromey <tom@tromey.com>
13828
13829 * go-valprint.c (go_value_print_inner): New function.
13830 * go-lang.h (go_value_print_inner): Declare.
13831 * go-lang.c (go_language_defn): Use go_value_print_inner.
13832
5f56f7cb
TT
138332020-03-13 Tom Tromey <tom@tromey.com>
13834
13835 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13836 API.
13837 (rust_val_print): Rewrite.
13838 (rust_value_print_inner): New function, from rust_val_print.
13839 (rust_language_defn): Use rust_value_print_inner.
13840
26792ee0
TT
138412020-03-13 Tom Tromey <tom@tromey.com>
13842
13843 * ada-valprint.c (ada_value_print_inner): New function.
13844 * ada-lang.h (ada_value_print_inner): Declare.
13845 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13846
24051bbe
TT
138472020-03-13 Tom Tromey <tom@tromey.com>
13848
13849 * f-valprint.c (f_value_print_innner): New function.
13850 * f-lang.h (f_value_print_innner): Declare.
13851 * f-lang.c (f_language_defn): Use f_value_print_innner.
13852
c0941be6
TT
138532020-03-13 Tom Tromey <tom@tromey.com>
13854
13855 * p-valprint.c (pascal_value_print_inner): New function.
13856 * p-lang.h (pascal_value_print_inner): Declare.
13857 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13858
62c4663d
TT
138592020-03-13 Tom Tromey <tom@tromey.com>
13860
13861 * m2-valprint.c (m2_value_print_inner): New function.
13862 * m2-lang.h (m2_value_print_inner): Declare.
13863 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13864
62182190
TT
138652020-03-13 Tom Tromey <tom@tromey.com>
13866
13867 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13868 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13869 * c-valprint.c (c_value_print_inner): New function.
13870 * c-lang.h (c_value_print_inner): Declare.
13871 * c-lang.c (c_language_defn, cplus_language_defn)
13872 (asm_language_defn, minimal_language_defn): Use
13873 c_value_print_inner.
13874
1e592a8a
TT
138752020-03-13 Tom Tromey <tom@tromey.com>
13876
13877 * p-valprint.c (pascal_object_print_value_fields): Now static.
13878 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13879
7fe471e9
TT
138802020-03-13 Tom Tromey <tom@tromey.com>
13881
13882 * c-valprint.c (c_val_print_array): Simplify.
13883
d121c6ce
TT
138842020-03-13 Tom Tromey <tom@tromey.com>
13885
13886 * valprint.c (value_print_array_elements): New function.
13887 * valprint.h (value_print_array_elements): Declare.
13888
4dba70ee
TT
138892020-03-13 Tom Tromey <tom@tromey.com>
13890
13891 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13892 * mips-tdep.c (mips_print_register): Use
13893 value_print_scalar_formatted.
13894
4f9ae810
TT
138952020-03-13 Tom Tromey <tom@tromey.com>
13896
13897 * valprint.h (value_print_scalar_formatted): Declare.
13898 * valprint.c (value_print_scalar_formatted): New function.
13899
156bfec9
TT
139002020-03-13 Tom Tromey <tom@tromey.com>
13901
13902 * valprint.h (generic_value_print): Declare.
13903 * valprint.c (generic_value_print): New function.
13904
2b4e573d
TT
139052020-03-13 Tom Tromey <tom@tromey.com>
13906
13907 * valprint.c (do_val_print): Call la_value_print_inner, if
13908 available.
13909 * rust-lang.c (rust_language_defn): Update.
13910 * p-lang.c (pascal_language_defn): Update.
13911 * opencl-lang.c (opencl_language_defn): Update.
13912 * objc-lang.c (objc_language_defn): Update.
13913 * m2-lang.c (m2_language_defn): Update.
13914 * language.h (struct language_defn) <la_value_print_inner>: New
13915 member.
13916 * language.c (unknown_language_defn, auto_language_defn): Update.
13917 * go-lang.c (go_language_defn): Update.
13918 * f-lang.c (f_language_defn): Update.
13919 * d-lang.c (d_language_defn): Update.
13920 * c-lang.c (c_language_defn, cplus_language_defn)
13921 (asm_language_defn, minimal_language_defn): Update.
13922 * ada-lang.c (ada_language_defn): Update.
13923
a1f6a07c
TT
139242020-03-13 Tom Tromey <tom@tromey.com>
13925
13926 * c-valprint.c (c_value_print): Use common_val_print.
13927
410cf315
TT
139282020-03-13 Tom Tromey <tom@tromey.com>
13929
13930 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13931
72a45c93
TT
139322020-03-13 Tom Tromey <tom@tromey.com>
13933
13934 * f-valprint.c (f77_print_array_1, f_val_print): Use
13935 common_val_print.
13936
040f66bd
TT
139372020-03-13 Tom Tromey <tom@tromey.com>
13938
13939 * riscv-tdep.c (riscv_print_one_register_info): Use
13940 common_val_print.
13941
a6e05a6c
TT
139422020-03-13 Tom Tromey <tom@tromey.com>
13943
13944 * mi/mi-main.c (output_register): Use common_val_print.
13945
3444c526
TT
139462020-03-13 Tom Tromey <tom@tromey.com>
13947
13948 * infcmd.c (default_print_one_register_info): Use
13949 common_val_print.
13950
c2a44efe
TT
139512020-03-13 Tom Tromey <tom@tromey.com>
13952
13953 * valprint.h (common_val_print_checked): Declare.
13954 * valprint.c (common_val_print_checked): New function.
13955 * stack.c (print_frame_arg): Use common_val_print_checked.
13956
b0c26e99
TT
139572020-03-13 Tom Tromey <tom@tromey.com>
13958
13959 * valprint.c (do_val_print): New function, from val_print.
13960 (val_print): Use do_val_print.
13961 (common_val_print): Use do_val_print.
13962
ce3acbe9
TT
139632020-03-13 Tom Tromey <tom@tromey.com>
13964
13965 * valprint.c (value_print): Use scoped_value_mark.
13966
96c7f873
TV
139672020-03-13 Tom de Vries <tdevries@suse.de>
13968
13969 PR symtab/25646
13970 * psymtab.c (partial_symtab::partial_symtab): Don't set
13971 globals_offset and statics_offset. Push element onto
13972 current_global_psymbols and current_static_psymbols stacks.
13973 (concat): New function.
13974 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13975 element from current_global_psymbols and current_static_psymbols
13976 stacks. Concat popped elements to global_psymbols and
13977 static_symbols.
13978 (add_psymbol_to_list): Use current_global_psymbols and
13979 current_static_psymbols stacks.
13980 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13981 current_static_psymbols fields.
13982
6ba0a321
CB
139832020-03-12 Christian Biesinger <cbiesinger@google.com>
13984
13985 * corelow.c (sniff_core_bfd): Remove.
13986 (class core_target) <m_core_vec>: Remove.
13987 (core_target::core_target): Update.
13988 (core_file_fns): Remove.
13989 (deprecated_add_core_fns): Remove.
13990 (default_core_sniffer): Remove.
13991 (sniff_core_bfd): Remove.
13992 (default_check_format): Remove.
13993 (gdb_check_format): Remove.
13994 (core_target_open): Update.
13995 (core_target::get_core_register_section): Update.
13996 (get_core_registers_cb): Update.
13997 (core_target::fetch_registers): Update.
13998 * gdbcore.h (struct core_fns): Remove.
13999 (deprecated_add_core_fns): Remove.
14000 (default_core_sniffer): Remove.
14001 (default_check_format): Remove.
14002
227031b2
TT
140032020-03-12 Tom Tromey <tom@tromey.com>
14004
14005 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14006 CORE_ADDR.
14007 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14008
53807e9f
TT
140092020-03-12 Tom Tromey <tom@tromey.com>
14010
14011 * remote.c (remote_target::download_tracepoint)
14012 (remote_target::enable_tracepoint)
14013 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14014 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14015 sprintf_vma.
14016
64f25102
TT
140172020-03-12 Tom Tromey <tom@tromey.com>
14018
14019 * symfile-mem.c: Update CORE_ADDR size assert.
14020
272cd5a3
SM
140212020-03-12 Simon Marchi <simon.marchi@efficios.com>
14022
14023 * selftest.m4: Move to gdbsupport/.
14024 * acinclude.m4: Update path to selftest.m4.
14025
74cd3f9d
SM
140262020-03-12 Simon Marchi <simon.marchi@efficios.com>
14027
14028 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14029 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14030 gdbarch-selfselftests.c and selftest-arch.c.
14031 (SUBDIR_UNITTESTS_OBS): Rename to...
14032 (SELFTESTS_OBS): ... this.
14033 (COMMON_SFILES): Remove disasm-selftests.c and
14034 gdbarch-selftests.c.
14035 * configure.ac: Don't add selftest-arch.{c,o} to
14036 CONFIG_{SRCS,OBS}.
14037 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14038 preprocessor conditions.
14039
db6878ac
SM
140402020-03-12 Simon Marchi <simon.marchi@efficios.com>
14041
14042 * configure.ac: Don't source bfd/development.sh.
14043 * selftest.m4: Modify comment.
14044 * configure: Re-generate.
14045
4d696a5c
SM
140462020-03-12 Simon Marchi <simon.marchi@efficios.com>
14047
14048 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14049 not "true" or "false".
14050 * configure: Re-generate.
14051
8dd8e1c7
CB
140522020-03-12 Christian Biesinger <cbiesinger@google.com>
14053
14054 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14055 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14056 renamed to arm_nbsd_supply_gregset.
14057 (fetch_register): Update to call arm_nbsd_supply_gregset.
14058 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14059 (arm_netbsd_nat_target::fetch_registers): Update.
14060 (fetch_elfcore_registers): Removed.
14061 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14062 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14063 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14064 not require NetBSD system headers.
14065 (arm_nbsd_regset): New struct.
14066 (arm_nbsd_iterate_over_regset_sections): New function.
14067 (arm_netbsd_init_abi_common): Updated to call
14068 set_gdbarch_iterate_over_regset_sections.
14069 * arm-nbsd-tdep.h: New file.
14070
dd69bf7a
KB
140712020-03-11 Kevin Buettner <kevinb@redhat.com>
14072
14073 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14074 recursion.
14075
a0761e34
SM
140762020-03-11 Simon Marchi <simon.marchi@efficios.com>
14077
14078 * configure: Re-generate.
14079
e7a82140
TT
140802020-03-11 Tom Tromey <tromey@adacore.com>
14081
14082 * ada-typeprint.c (print_choices): Fix comment.
14083
dcc050c8
AB
140842020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14085
14086 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14087 previous item in the list, when the list has no items.
14088
1c33af77
TV
140892020-03-11 Tom de Vries <tdevries@suse.de>
14090
14091 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14092 PROP_LOCLIST handling code.
14093
8c95582d
AB
140942020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14095
14096 * buildsym-legacy.c (record_line): Pass extra parameter to
14097 record_line.
14098 * buildsym.c (buildsym_compunit::record_line): Take an extra
14099 parameter, reduce duplication in the line table, and record the
14100 is_stmt flag in the line table.
14101 * buildsym.h (buildsym_compunit::record_line): Add extra
14102 parameter.
14103 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14104 non-statement lines.
14105 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14106 this to the symtab builder.
14107 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14108 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14109 through to dwarf_record_line_1.
14110 * infrun.c (process_event_stop_test): When stepping, don't stop at
14111 a non-statement instruction, and only refresh the step info when
14112 we land in the middle of a line's range. Also add an extra
14113 comment.
14114 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14115 field.
14116 * record-btrace.c (btrace_find_line_range): Only record lines
14117 marked as is-statement.
14118 * stack.c (frame_show_address): Show the frame address if we are
14119 in a non-statement sal.
14120 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14121 (maintenance_print_one_line_table): Print a header for the is_stmt
14122 column, and include is_stmt information in the output.
14123 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14124 preference to non-statements.
14125 (find_pcs_for_symtab_line): Prefer is-statement entries.
14126 (find_line_common): Likewise.
14127 * symtab.h (struct linetable_entry): Add is_stmt field.
14128 (struct symtab_and_line): Likewise.
14129 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14130 arranging the line table.
14131
e4003a34
TV
141322020-03-07 Tom de Vries <tdevries@suse.de>
14133
14134 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14135 DIE.
14136
e8932576
TT
141372020-03-07 Tom Tromey <tom@tromey.com>
14138
14139 * valops.c (value_literal_complex): Remove obsolete comment.
14140 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14141 comment.
14142
29734269
SM
141432020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14144
14145 * infrun.h: Forward-declare thread_info.
14146 (set_step_info): Add thread_info parameter, add doc.
14147 * infrun.c (set_step_info): Add thread_info parameter, move doc
14148 to header.
14149 * infrun.c (process_event_stop_test): Pass thread to
14150 set_step_info call.
14151 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14152 set_step_info.
14153 (prepare_one_step): Add thread_info parameter, pass it to
14154 set_step_frame and prepare_one_step (recursive) call.
14155 (step_1): Pass thread to prepare_one_step call.
14156 (step_command_fsm::should_stop): Pass thread to
14157 prepare_one_step.
14158 (until_next_fsm): Pass thread to set_step_frame call.
14159 (finish_command): Pass thread to set_step_info call.
14160
b7d64b29
HD
141612020-03-06 Hannes Domani <ssbssa@yahoo.de>
14162
14163 * windows-tdep.c (windows_solib_create_inferior_hook):
14164 Check if inferior is running.
14165
09f2921c
TV
141662020-03-06 Tom de Vries <tdevries@suse.de>
14167
14168 * NEWS: Fix "the the".
14169 * ctfread.c: Same.
14170
fd760e79
TV
141712020-03-06 Tom de Vries <tdevries@suse.de>
14172
14173 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14174
20ea4a60
AB
141752020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14176
14177 * .dir-locals.el: Add a comment referencing the other copies of
14178 this file.
14179
0afbabf0
JB
141802020-03-05 John Baldwin <jhb@FreeBSD.org>
14181
14182 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14183 psargs.
14184
842806cb
TBA
141852020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14186
14187 * .gitattributes: New file.
14188
be1e3d3e
TT
141892020-03-04 Tom Tromey <tom@tromey.com>
14190
14191 * symmisc.c (print_symbol_bcache_statistics)
14192 (print_objfile_statistics): Update.
14193 * symfile.c (allocate_symtab): Use intern.
14194 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14195 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14196 macro_cache>: Remove.
14197 <string_cache>: New member.
14198 (struct objfile) <intern>: New methods.
14199 * elfread.c (elf_symtab_read): Use intern.
14200 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14201 (dwarf2_compute_name, dwarf2_physname)
14202 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14203 names.
14204 (guess_partial_die_structure_name): Update.
14205 (partial_die_info::fixup): Intern name.
14206 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14207 name.
14208 (dwarf2_name): Intern name. Update.
14209 * buildsym.c (buildsym_compunit::get_macro_table): Use
14210 string_cache.
14211
4e7625fd
TT
142122020-03-04 Tom Tromey <tom@tromey.com>
14213
14214 * jit.c (bfd_open_from_target_memory): Make "target" const.
14215 * corefile.c (gnutarget): Now const.
14216 * gdbcore.h (gnutarget): Now const.
14217
46f9f931
HD
142182020-03-04 Hannes Domani <ssbssa@yahoo.de>
14219
14220 * NEWS: Mention support for WOW64 processes.
14221 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14222 (amd64_windows_segment_register_p): Remove static.
14223 (_initialize_amd64_windows_nat): Update.
14224 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14225 * i386-windows-nat.c (context_offset): Update.
14226 (i386_mappings): Rename and remove static.
14227 (i386_windows_segment_register_p): Remove static.
14228 (_initialize_i386_windows_nat): Update.
14229 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14230 (STATUS_WX86_SINGLE_STEP): New macro.
14231 (EnumProcessModulesEx): New macro.
14232 (Wow64SuspendThread): New macro.
14233 (Wow64GetThreadContext): New macro.
14234 (Wow64SetThreadContext): New macro.
14235 (Wow64GetThreadSelectorEntry): New macro.
14236 (windows_set_context_register_offsets): Add static.
14237 (windows_set_segment_register_p): Likewise.
14238 (windows_add_thread): Adapt for WOW64 processes.
14239 (windows_fetch_one_register): Likewise.
14240 (windows_nat_target::fetch_registers): Likewise.
14241 (windows_store_one_register): Likewise.
14242 (display_selector): Likewise.
14243 (display_selectors): Likewise.
14244 (handle_exception): Likewise.
14245 (windows_continue): Likewise.
14246 (windows_nat_target::resume): Likewise.
14247 (windows_add_all_dlls): Likewise.
14248 (do_initial_windows_stuff): Likewise.
14249 (windows_nat_target::attach): Likewise.
14250 (windows_get_exec_module_filename): Likewise.
14251 (windows_nat_target::create_inferior): Likewise.
14252 (windows_xfer_siginfo): Likewise.
14253 (_initialize_loadable): Initialize Wow64SuspendThread,
14254 Wow64GetThreadContext, Wow64SetThreadContext,
14255 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14256 * windows-nat.h (windows_set_context_register_offsets):
14257 Remove declaration.
14258 (windows_set_segment_register_p): Likewise.
14259 (i386_windows_segment_register_p): Add declaration.
14260 (amd64_windows_segment_register_p): Likewise.
14261
440cf44e
LM
142622020-03-04 Luis Machado <luis.machado@linaro.org>
14263
14264 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14265 in "info registers" for AArch64/ARM.
14266
14267 The change caused "info registers" to not print GPR's.
14268
14269 gdb/ChangeLog:
14270
14271 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14272
14273 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14274 when reg->group is empty and reggroup is not.
14275
1009d92f
TT
142762020-03-03 Tom Tromey <tromey@adacore.com>
14277
14278 * dwarf2/frame.c (struct dwarf2_frame_cache)
14279 <checked_tailcall_bottom, entry_cfa_sp_offset,
14280 entry_cfa_sp_offset_p>: Remove members.
14281 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14282 (dwarf2_frame_prev_register): Don't call
14283 dwarf2_tailcall_sniffer_first.
14284 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14285 * frame-unwind.c (add_unwinder): New fuction.
14286 (frame_unwind_init): Use it. Add tailcall unwinder.
14287
5e5d66b6
AB
142882020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14289 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14290
14291 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14292 value should be printed as true.
14293
584cf46d
HD
142942020-03-03 Hannes Domani <ssbssa@yahoo.de>
14295
14296 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14297 (windows_init_abi): Set and use windows_so_ops.
14298
7b973adc
SDJ
142992020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14300
14301 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14302 when verifying if dealing with a convenience variable.
14303
bb7b70ab
LM
143042020-03-03 Luis Machado <luis.machado@linaro.org>
14305
14306 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14307
9822cb57
SM
143082020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14309
14310 * infrun.c (gdbarch_supports_displaced_stepping): New.
14311 (use_displaced_stepping): Break up conditions in smaller pieces.
14312 Use gdbarch_supports_displaced_stepping.
14313 (displaced_step_prepare_throw): Use
14314 gdbarch_supports_displaced_stepping.
14315
63e163f2
AB
143162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14317
14318 * NEWS: Mention new behaviour of the history filename.
14319 * top.c (write_history_p): Add comment.
14320 (show_write_history_p): Add header comment, give a different
14321 message when history writing is on, but the history filename is
14322 empty.
14323 (history_filename): Add comment.
14324 (history_filename_empty): New function.
14325 (show_history_filename): Add header comment, give a different
14326 message when the filename is empty.
14327 (init_history): Compare history_filename against nullptr, and only
14328 read history if the filename is not empty.
14329 (set_history_filename): Add header comment, and only make
14330 non-empty filenames absolute.
14331 (init_main): Make the filename argument to 'set history filename'
14332 optional.
14333
81b86b97
CB
143342020-03-02 Christian Biesinger <cbiesinger@google.com>
14335
14336 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14337 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14338 (fetch_fp_register): Update.
14339 (fetch_fp_regs): Update.
14340 (store_fp_register): Update.
14341 (store_fp_regs): Update.
14342 (arm_netbsd_nat_target::read_description): New function.
14343 (fetch_elfcore_registers): Update.
14344
24ed6739
AB
143452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14346
14347 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14348 general_thread if the stop reply is missing a thread-id.
14349 (remote_target::process_stop_reply): Use the first non-exited
14350 thread if the target didn't pass a thread-id.
14351 * infrun.c (do_target_wait): Move call to
14352 switch_to_inferior_no_thread to ....
14353 (do_target_wait_1): ... here.
14354
a84bb2a0
JT
143552020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14356
14357 * debuginfod-support.c: Include defs.h first.
14358
658dadf0
TV
143592020-02-28 Tom de Vries <tdevries@suse.de>
14360
14361 * symfile.c (set_initial_language): Use default language for lookup.
14362
4ebe4877
SM
143632020-02-28 Simon Marchi <simon.marchi@efficios.com>
14364
14365 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14366 reader variable, pass `this` to read_cutu_die_from_dwo.
14367
e5da1139
AM
143682020-02-27 Aaron Merey <amerey@redhat.com>
14369
14370 * source.c (open_source_file): Check for nullptr when computing
14371 srcpath.
14372
317f7127
TT
143732020-02-27 Tom Tromey <tromey@adacore.com>
14374
14375 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14376 member.
14377 (dwarf2_add_field): Don't update nfields.
14378 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14379
3104d9ee
AB
143802020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14381
14382 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14383 abs.
14384
b83470bf
TT
143852020-02-26 Tom Tromey <tom@tromey.com>
14386
14387 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14388 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14389 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14390 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14391 per_cu_data.
14392
edfe0a0c
TT
143932020-02-26 Tom Tromey <tom@tromey.com>
14394
14395 * dwarf2/index-write.c (psym_index_map): Change type.
14396 (add_address_entry_worker, write_one_signatured_type)
14397 (recursively_count_psymbols, recursively_write_psymbols)
14398 (class debug_names, psyms_seen_size, write_gdbindex)
14399 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14400
0d79cdc4
AM
144012020-02-26 Aaron Merey <amerey@redhat.com>
14402
14403 * Makefile.in: Handle optional debuginfod support.
14404 * NEWS: Update.
14405 * README: Add --with-debuginfod summary.
14406 * config.in: Regenerate.
14407 * configure: Regenerate.
14408 * configure.ac: Handle optional debuginfod support.
14409 * debuginfod-support.c: debuginfod helper functions.
14410 * debuginfod-support.h: Ditto.
14411 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14412 summary.
14413 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14414 when a dwz file cannot be found.
14415 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14416 debuginfo file cannot be found.
14417 * source.c (open_source_file): Query debuginfod servers when a
14418 source file cannot be found.
14419 * top.c (print_gdb_configuration): Include
14420 --{with,without}-debuginfod in the output.
14421
b65ce565
JG
144222020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14423
14424 * thread.c (thr_try_catch_cmd): Print thread name.
14425
d4c9a4f8
SM
144262020-02-26 Simon Marchi <simon.marchi@efficios.com>
14427
14428 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14429 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14430 dwarf2_fetch_die_type_sect_off): Move to...
14431 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14432 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14433 dwarf2_fetch_die_type_sect_off): ... here.
14434 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14435 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14436 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14437
0dce4280
TV
144382020-02-26 Tom de Vries <tdevries@suse.de>
14439
14440 PR gdb/25603
14441 * symfile.c (set_initial_language): Exit-early if
14442 language_mode == language_mode_manual.
14443
450a1bfc
SM
144442020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14445
14446 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14447 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14448 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14449
9e80cfa1
AB
144502020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14451
14452 * gdbtypes.c (create_array_type_with_stride): Handle negative
14453 array strides.
14454 * valarith.c (value_subscripted_rvalue): Likewise.
14455
09624f1f
LM
144562020-02-25 Luis Machado <luis.machado@linaro.org>
14457
14458 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14459
8cb5117c
SM
144602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14461
14462 * loc.h (dwarf2_get_die_type): Move to...
14463 * read.h (dwarf2_get_die_type): ... here.
14464 * read.c (dwarf2_get_die_type): Move doc to header.
14465
c325c44e
JB
144662020-02-25 Joel Brobecker <brobecker@adacore.com>
14467
14468 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14469 'gnulib/Makefile.in' to the list.
14470
4ac93832
TT
144712020-02-24 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14474 Remove.
14475 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14476 XOBNEWVEC.
14477
197400e8
TT
144782020-02-24 Tom Tromey <tom@tromey.com>
14479
14480 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14481 New method.
14482 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14483 (dw2_do_instantiate_symtab, dw2_get_file_names)
14484 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14485
76935768
TT
144862020-02-24 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14489 make_scoped_restore.
14490 (dwarf2_psymtab::read_symtab): Don't clear
14491 reading_partial_symbols.
14492
a88ef40d
TV
144932020-02-24 Tom de Vries <tdevries@suse.de>
14494
14495 PR gdb/25592
14496 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14497
c9af6521
TV
144982020-02-24 Tom de Vries <tdevries@suse.de>
14499
14500 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14501 commands layout next/prev/regs.
14502
5707a07a
TT
145032020-02-22 Tom Tromey <tom@tromey.com>
14504
14505 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14506 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14507
3b0fb49e
TT
145082020-02-22 Tom Tromey <tom@tromey.com>
14509
14510 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14511
283be8bf
TT
145122020-02-22 Tom Tromey <tom@tromey.com>
14513
14514 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14515 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14516 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14517 * tui/tui.c (_initialize_tui): Add usage text.
14518
ca793b96
TT
145192020-02-22 Tom Tromey <tom@tromey.com>
14520
14521 * tui/tui-win.c (tui_set_focus_command)
14522 (tui_set_win_height_command): Use error_no_arg.
14523 (_initialize_tui_win): Update help text.
14524 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14525
432b5c40
TT
145262020-02-22 Tom Tromey <tom@tromey.com>
14527
14528 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14529 * tui/tui-disasm.h (struct tui_disasm_window)
14530 <display_start_addr>: Declare.
14531 * tui/tui-source.h (struct tui_source_window)
14532 <display_start_addr>: Declare.
14533 * tui/tui-winsource.h (struct tui_source_window_base)
14534 <show_source_line, display_start_addr>: New methods.
14535 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14536 Rename and move to protected section.
14537 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14538 (tui_source_window_base::do_erase_source_content): Update.
14539 (tui_source_window_base::show_source_line): Now a method.
14540 (tui_source_window_base::show_source_content)
14541 (tui_source_window_base::tui_source_window_base)
14542 (tui_source_window_base::rerender)
14543 (tui_source_window_base::refill)
14544 (tui_source_window_base::do_scroll_horizontal)
14545 (tui_source_window_base::set_is_exec_point_at)
14546 (tui_source_window_base::update_breakpoint_info)
14547 (tui_source_window_base::update_exec_info): Update.
14548 * tui/tui-source.c (tui_source_window::set_contents)
14549 (tui_source_window::showing_source_p)
14550 (tui_source_window::do_scroll_vertical)
14551 (tui_source_window::location_matches_p)
14552 (tui_source_window::line_is_displayed): Update.
14553 (tui_source_window::display_start_addr): New method.
14554 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14555 (tui_disasm_window::do_scroll_vertical)
14556 (tui_disasm_window::location_matches_p): Update.
14557 (tui_disasm_window::display_start_addr): New method.
14558
01b1af32
TT
145592020-02-22 Tom Tromey <tom@tromey.com>
14560
14561 * NEWS: Add entry for gdb.register_window_type.
14562 * tui/tui-layout.h (window_factory): New typedef.
14563 (tui_register_window): Declare.
14564 * tui/tui-layout.c (saved_tui_windows): New global.
14565 (tui_apply_current_layout): Use it.
14566 (tui_register_window): New function.
14567 * python/python.c (do_start_initialization): Call
14568 gdbpy_initialize_tui.
14569 (python_GdbMethods): Add "register_window_type" function.
14570 * python/python-internal.h (gdbpy_register_tui_window)
14571 (gdbpy_initialize_tui): Declare.
14572 * python/py-tui.c: New file.
14573 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14574
fc96d20b
TT
145752020-02-22 Tom Tromey <tom@tromey.com>
14576
14577 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14578
935c78c0
TT
145792020-02-22 Tom Tromey <tom@tromey.com>
14580
14581 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14582 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14583 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14584 (tui_set_win_focus_to): Move from tui-win.c.
14585
0240c8f1
TT
145862020-02-22 Tom Tromey <tom@tromey.com>
14587
14588 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14589 functions.
14590 (known_window_types): New global.
14591 (tui_get_window_by_name): Reimplement.
14592 (initialize_known_windows): New function.
14593 (validate_window_name): Rewrite.
14594 (_initialize_tui_layout): Call initialize_known_windows.
14595
fdb01f0c
TT
145962020-02-22 Tom Tromey <tom@tromey.com>
14597
14598 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14599 Remove constants.
14600 * tui/tui-winsource.h (struct tui_source_window_base)
14601 <tui_source_window_base>: Remove parameter.
14602 * tui/tui-winsource.c
14603 (tui_source_window_base::tui_source_window_base): Remove
14604 parameter.
14605 (tui_source_window_base::refill): Update.
14606 * tui/tui-stack.h (struct tui_locator_window)
14607 <tui_locator_window>: Update.
14608 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14609 Default the constructor.
14610 * tui/tui-regs.h (struct tui_data_item_window)
14611 <tui_data_item_window>: Default the constructor.
14612 (struct tui_data_window) <tui_data_window>: Likewise.
14613 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14614 Default the constructor.
14615 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14616 Default the constructor.
14617 <type>: Remove.
14618 (struct tui_win_info) <tui_win_info>: Default the constructor.
14619 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14620 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14621 Default the constructor.
14622
865a5aec
TT
146232020-02-22 Tom Tromey <tom@tromey.com>
14624
14625 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14626 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14627 * tui/tui-win.c (tui_resize_all): Don't call
14628 tui_delete_invisible_windows.
14629 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14630 done.
14631 (tui_set_layout): Update.
14632 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14633 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14634 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14635
e098d18c
TT
146362020-02-22 Tom Tromey <tom@tromey.com>
14637
14638 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14639 correctly.
14640
eb9c8874
TT
146412020-02-22 Tom Tromey <tom@tromey.com>
14642
14643 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14644
7eed1a8e
TT
146452020-02-22 Tom Tromey <tom@tromey.com>
14646
14647 * tui/tui-winsource.h (struct tui_source_window_iterator)
14648 <inner_iterator>: New etytypedef.
14649 <tui_source_window_iterator>: Take "end" parameter.
14650 <tui_source_window_iterator>: Take iterator.
14651 <operator*, advance>: Update.
14652 <m_iter>: Change type.
14653 <m_end>: New field.
14654 (struct tui_source_windows) <begin, end>: Update.
14655 * tui/tui-layout.c (tui_windows): New global.
14656 (tui_apply_current_layout): Clear tui_windows.
14657 (tui_layout_window::apply): Update tui_windows.
14658 * tui/tui-data.h (tui_windows): Declare.
14659 (all_tui_windows): Now inline function.
14660 (class tui_window_iterator, struct all_tui_windows): Remove.
14661
7c043ba6
TT
146622020-02-22 Tom Tromey <tom@tromey.com>
14663
14664 PR tui/17850:
14665 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14666 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14667 "height" argument.
14668 (class tui_layout_window) <get_sizes>: Likewise.
14669 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14670 argument.
14671 <get_sizes>: Add "height" argument.
14672 <m_vertical>: New field.
14673 * tui/tui-layout.c (tui_layout_split::clone): Update.
14674 (tui_layout_split::get_sizes): Add "height" argument.
14675 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14676 (tui_new_layout_command): Parse "-horizontal".
14677 (_initialize_tui_layout): Update help string.
14678 (tui_layout_split::specification): Add "-horizontal" when needed.
14679 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14680 argument.
14681 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14682 New methods.
14683
6bc56648
TT
146842020-02-22 Tom Tromey <tom@tromey.com>
14685
14686 * tui/tui-layout.h (enum tui_adjust_result): New.
14687 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14688 (class tui_layout_window) <adjust_size>: Return
14689 tui_adjust_result. Rewrite.
14690 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14691 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14692
c22fef7e
TT
146932020-02-22 Tom Tromey <tom@tromey.com>
14694
14695 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14696 parameter and return types.
14697 (class tui_layout_base) <specification>: Add "depth".
14698 (class tui_layout_window) <specification>: Add "depth".
14699 (class tui_layout_split) <specification>: Add "depth".
14700 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14701 and return types.
14702 (tui_new_layout_command): Parse sub-layouts.
14703 (_initialize_tui_layout): Update help string.
14704 (tui_layout_window::specification): Add "depth".
14705 (add_layout_command): Update.
14706
ee325b61
TT
147072020-02-22 Tom Tromey <tom@tromey.com>
14708
14709 * NEWS: Add "tui new-layout" item.
14710 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14711 Add new-layout command to help text.
14712 (validate_window_name): New function.
14713 (tui_new_layout_command): New function.
14714 (_initialize_tui_layout): Register "new-layout".
14715 (tui_layout_window::specification): New method.
14716 (tui_layout_window::specification): New method.
14717 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14718 method.
14719 (class tui_layout_window) <specification>: New method.
14720 (class tui_layout_split) <specification>: New method.
14721
416eb92d
TT
147222020-02-22 Tom Tromey <tom@tromey.com>
14723
14724 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14725 * tui/tui-win.c (window_name_completer): Update comment.
14726 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14727 Declare method.
14728 (class tui_layout_window) <replace_window>: Likewise.
14729 (class tui_layout_split) <replace_window>: Likewise.
14730 (tui_set_layout): Don't declare.
14731 (tui_set_initial_layout): Declare function.
14732 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14733 (asm_regs_layout): New globals.
14734 (tui_current_layout, show_layout): Remove.
14735 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14736 (find_layout, tui_apply_layout): New function.
14737 (layout_completer): Remove.
14738 (tui_next_layout): Reimplement.
14739 (tui_next_layout_command): New function.
14740 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14741 (tui_regs_layout): Reimplement.
14742 (tui_regs_layout_command): New function.
14743 (extract_display_start_addr): Rewrite.
14744 (next_layout, prev_layout): Remove.
14745 (tui_layout_window::replace_window): New method.
14746 (tui_layout_split::replace_window): New method.
14747 (destroy_layout): New function.
14748 (layout_list): New global.
14749 (add_layout_command): New function.
14750 (initialize_layouts): Update.
14751 (tui_layout_command): New function.
14752 (_initialize_tui_layout): Install "layout" commands.
14753 * tui/tui-data.h (enum tui_layout_type): Remove.
14754 (tui_current_layout): Don't declare.
14755
0dbc2fc7
TT
147562020-02-22 Tom Tromey <tom@tromey.com>
14757
14758 * tui/tui-regs.c (tui_reg_layout): Remove.
14759 (tui_reg_command): Use tui_regs_layout.
14760 * tui/tui-layout.h (tui_reg_command): Declare.
14761 * tui/tui-layout.c (tui_reg_command): New function.
14762
5afe342e
TT
147632020-02-22 Tom Tromey <tom@tromey.com>
14764
14765 * tui/tui.c (tui_rl_delete_other_windows): Call
14766 tui_remove_some_windows.
14767 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14768 Declare method.
14769 (class tui_layout_window) <remove_windows>: New method.
14770 (class tui_layout_split) <remove_windows>: Declare.
14771 (tui_remove_some_windows): Declare.
14772 * tui/tui-layout.c (tui_remove_some_windows): New function.
14773 (tui_layout_split::remove_windows): New method.
14774
427326a8
TT
147752020-02-22 Tom Tromey <tom@tromey.com>
14776
14777 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14778 * tui/tui-layout.h (tui_next_layout): Declare.
14779 * tui/tui-layout.c (tui_next_layout): New function.
14780
3fe12b6d
TT
147812020-02-22 Tom Tromey <tom@tromey.com>
14782
14783 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14784 correct coordinates.
14785
59b8b5d2
TT
147862020-02-22 Tom Tromey <tom@tromey.com>
14787
14788 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14789 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14790 DATA_WIN case.
14791
2a3d458b
TT
147922020-02-22 Tom Tromey <tom@tromey.com>
14793
14794 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14795 TUI_DISASM_WIN, not tui_win_list.
14796
3f0cbb04
TT
147972020-02-22 Tom Tromey <tom@tromey.com>
14798
14799 * valprint.c (generic_val_print_enum_1)
14800 (val_print_type_code_flags): Style member names.
14801 * rust-lang.c (val_print_struct, rust_print_enum)
14802 (rust_print_struct_def, rust_internal_print_type): Style member
14803 names.
14804 * p-valprint.c (pascal_object_print_value_fields): Style member
14805 names. Only call fprintf_symbol_filtered for static members.
14806 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14807 * f-valprint.c (f_val_print): Style member names.
14808 * f-typeprint.c (f_type_print_base): Style member names.
14809 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14810 call fprintf_symbol_filtered for static members.
14811 (cp_print_class_member): Style member names.
14812 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14813 member names.
14814 * ada-valprint.c (ada_print_scalar): Style enum names.
14815 (ada_val_print_enum): Likewise.
14816 * ada-typeprint.c (print_enum_type): Style enum names.
14817
d4d947ae
TT
148182020-02-21 Tom Tromey <tom@tromey.com>
14819
14820 * psympriv.h (struct partial_symtab): Update comment.
14821
e94e944b
TT
148222020-02-21 Tom Tromey <tromey@adacore.com>
14823
14824 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14825 type is CORE_ADDR.
14826
1eb73179
TV
148272020-02-21 Tom de Vries <tdevries@suse.de>
14828
14829 PR gdb/25534
14830 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14831 if dependencies[i]->user != NULL.
14832
4f180d53
AT
148332020-02-21 Ali Tamur <tamur@google.com>
14834
14835 * dwarf2/read.c (dwarf2_name): Add null check.
14836
22b6cd70
TT
148372020-02-20 Tom Tromey <tom@tromey.com>
14838
14839 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14840 ">=", in binary search.
14841 (dwarf2_find_containing_comp_unit): New overload.
14842 (run_test): New self-test.
14843 (_initialize_dwarf2_read): Register new test.
14844
bd0cf5a6
NC
148452020-02-20 Nelson Chu <nelson.chu@sifive.com>
14846
14847 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14848 * riscv-tdep.h: Likewise.
14849 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14850 rv32-only CSR.
14851 * features/riscv/64bit-csr.xml: Regenerated.
14852
3f702acd
SDJ
148532020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14854 Tom Tromey <tom@tromey.com>
14855
14856 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14857 of 'fputc_unfiltered'.
14858 (putchar_unfiltered): Call 'fputc_unfiltered'.
14859 (fputc_unfiltered): Call 'fputs_unfiltered'.
14860
d13c7322
AB
148612020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14862
14863 * config.in: Regenerate.
14864 * configure: Regenerate.
14865 * configure.ac: Add --with-python-libdir option.
14866 * main.c: Use WITH_PYTHON_LIBDIR.
14867
869d8950
TT
148682020-02-19 Tom Tromey <tom@tromey.com>
14869
14870 * symtab.c (general_symbol_info::compute_and_set_names): Use
14871 obstack_strndup. Simplify call to symbol_set_demangled_name.
14872
298e9637
SM
148732020-02-19 Simon Marchi <simon.marchi@efficios.com>
14874
14875 * dwarf2/read.c (allocate_signatured_type_table,
14876 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14877 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14878 Remove objfile parameter, update all callers.
14879
08410482
DE
148802020-02-19 Doug Evans <dje@google.com>
14881
14882 PR rust/25535
14883 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14884 rust_enum_variant calculation.
14885
dfdeeca1
TT
148862020-02-19 Tom Tromey <tromey@adacore.com>
14887
14888 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14889
2ef5453b
TT
148902020-02-19 Tom Tromey <tromey@adacore.com>
14891
14892 * ada-lang.c (cache_symbol): Use obstack_strdup.
14893
9f1528a1
AB
148942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14895
14896 * configure: Regenerate.
14897
d3c22fa8
TT
148982020-02-19 Tom Tromey <tromey@adacore.com>
14899
14900 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14901 NULL check.
14902
bf84f706
MR
149032020-02-19 Maciej W. Rozycki <macro@wdc.com>
14904
14905 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14906
d1c9b20f
AB
149072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14908
14909 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14910 if GDBSERVER is not defined.
14911 (riscv_tdesc_cache): Likewise, also store const target_desc.
14912 (STATIC_IN_GDB): Define.
14913 (riscv_create_target_description): Update declaration with
14914 STATIC_IN_GDB.
14915 (riscv_lookup_target_description): New function, only define if
14916 GDBSERVER is not defined.
14917 * arch/riscv.h (riscv_create_target_description): Declare only
14918 when GDBSERVER is defined.
14919 (riscv_lookup_target_description): New declaration when GDBSERVER
14920 is not defined.
14921 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14922 (riscv_linux_read_features): ...this, and return
14923 riscv_gdbarch_features instead of target_desc.
14924 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14925 (riscv_linux_read_description): Rename to...
14926 (riscv_linux_read_features): ...this.
14927 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14928 Update to use riscv_gdbarch_features and
14929 riscv_lookup_target_description.
14930 * riscv-tdep.c (riscv_find_default_target_description): Use
14931 riscv_lookup_target_description instead of
14932 riscv_create_target_description.
14933
373d7ac0
SM
149342020-02-18 Simon Marchi <simon.marchi@efficios.com>
14935
14936 * valprint.c (generic_val_print_enum_1): When printing a flag
14937 enum with value 0 and there is no enumerator with value 0, print
14938 just "0" instead of "(unknown: 0x0)".
14939
b29a2df0
SM
149402020-02-18 Simon Marchi <simon.marchi@efficios.com>
14941
14942 * valprint.c (generic_val_print_enum_1): Print unknown part of
14943 flag enum in hex.
14944
6740f0cc
SM
149452020-02-18 Simon Marchi <simon.marchi@efficios.com>
14946
14947 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14948 flag enums to contain duplicate enumerators.
14949 * valprint.c (generic_val_print_enum_1): Update comment.
14950
edd45eb0
SM
149512020-02-18 Simon Marchi <simon.marchi@efficios.com>
14952
14953 * dwarf2/read.c: Include "count-one-bits.h".
14954 (update_enumeration_type_from_children): If an enumerator has
14955 multiple bits set, don't treat the enumeration as a "flag enum".
14956 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14957 of flag enums have 0 or 1 bit set.
14958
6d0cf446
BE
149592020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14960
14961 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14962 conversion.
14963 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14964 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14965 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14966 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14967 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14968
7001c1b7
SM
149692020-02-18 Simon Marchi <simon.marchi@efficios.com>
14970
14971 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14972
fdb61c6c
SM
149732020-02-14 Simon Marchi <simon.marchi@efficios.com>
14974
14975 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14976 displaced_step_closure_up.
14977 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14978 (struct displaced_step_closure_up):
14979 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14980 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14981 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14982 Likewise.
14983 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14984 * gdbarch.c, gdbarch.h: Re-generate.
14985 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14986 displaced_step_closure_up.
14987 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14988 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14989 * infrun.h (displaced_step_closure_up): New type alias.
14990 (struct displaced_step_inferior_state) <step_closure>: Change
14991 type to displaced_step_closure_up.
14992 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14993 displaced_step_closure_up.
14994 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14995
a4a38eb4
TT
149962020-02-14 Tom Tromey <tom@tromey.com>
14997
14998 * minidebug.c (gnu_debug_key): New global.
14999 (find_separate_debug_file_in_section): Use it.
15000
e8217e61
SM
150012020-02-14 Simon Marchi <simon.marchi@efficios.com>
15002
15003 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15004 std::unique_ptr.
15005 * gdbarch.c: Re-generate.
15006 * gdbarch.h: Re-generate.
15007 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15008 change.
15009 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15010 type to std::unique_ptr.
15011 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15012 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15013 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15014 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15015 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15016 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15017 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15018 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15019 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15020
d8d83535
SM
150212020-02-14 Simon Marchi <simon.marchi@efficios.com>
15022
15023 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15024 std::unique_ptr.
15025 (displaced_step_clear): Rename to...
15026 (displaced_step_reset): ... this. Just call displaced->reset ().
15027 (displaced_step_clear_cleanup): Rename to...
15028 (displaced_step_reset_cleanup): ... this.
15029 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15030 (displaced_step_fixup): Likewise.
15031 (resume_1): Likewise.
15032 (handle_inferior_event): Restore child's memory before calling
15033 displaced_step_fixup on the parent.
15034 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15035 to std::unique_ptr.
15036 <step_closure>: Change type to std::unique_ptr.
15037
5f661e03
SM
150382020-02-14 Simon Marchi <simon.marchi@efficios.com>
15039
15040 * arm-tdep.c: Include count-one-bits.h.
15041 (cleanup_block_store_pc): Use count_one_bits.
15042 (cleanup_block_load_pc): Use count_one_bits.
15043 (arm_copy_block_xfer): Use count_one_bits.
15044 (thumb2_copy_block_xfer): Use count_one_bits.
15045 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15046 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15047 (thumb_get_next_pcs_raw): Use count_one_bits.
15048 (arm_get_next_pcs_raw): Use count_one_bits_l.
15049 * arch/arm.c (bitcount): Remove.
15050 * arch/arm.h (bitcount): Remove.
15051
8084e579
TT
150522020-02-14 Tom Tromey <tromey@adacore.com>
15053
15054 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15055 Update.
15056 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15057 * dwarf2/loc.c (call_site_find_chain_1): Return
15058 unique_xmalloc_ptr.
15059 (call_site_find_chain): Likewise.
15060
258bf0ee
RB
150612020-02-14 Richard Biener <rguenther@suse.de>
15062
15063 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15064 on expression with division operators.
15065
f98a8458
AKS
150662020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15067
15068 * MAINTAINERS (Write After Approval): Adding myself.
15069
d1437c0e
TT
150702020-02-12 Tom Tromey <tom@tromey.com>
15071
15072 * event-loop.c (event_data, gdb_event, event_handler_func):
15073 Remove.
15074
3d4560f7
TT
150752020-02-12 Tom Tromey <tom@tromey.com>
15076
15077 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15078 (dwarf2_frame_objfile_data): Add comment.
15079 (find_comp_unit, set_comp_unit): New functions.
15080 (dwarf2_frame_find_fde): Use find_comp_unit.
15081 (dwarf2_build_frame_info): Use set_comp_unit.
15082
21982304
TT
150832020-02-12 Tom Tromey <tom@tromey.com>
15084
15085 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15086 (comp_unit): Don't initialize objfile.
15087 (execute_cfa_program): Add text_offset parameter.
15088 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15089 (dwarf2_frame_cache): Update.
15090 (dwarf2_build_frame_info): Don't set "objfile" member.
15091
4debb237
TT
150922020-02-12 Tom Tromey <tom@tromey.com>
15093
15094 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15095 (decode_frame_entry): Likewise.
15096 (dwarf2_build_frame_info): Update.
15097
0d404d44
TT
150982020-02-12 Tom Tromey <tom@tromey.com>
15099
15100 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15101 (decode_frame_entry_1): Use the comp_unit obstack.
15102
a7a3ae5c
TT
151032020-02-12 Tom Tromey <tom@tromey.com>
15104
15105 * dwarf2/frame.c (struct comp_unit): Add initializers and
15106 constructor.
15107 (dwarf2_frame_objfile_data): Store a comp_unit.
15108 (dwarf2_frame_find_fde): Update.
15109 (dwarf2_build_frame_info): Use "new".
15110
a9d65418
TT
151112020-02-12 Tom Tromey <tom@tromey.com>
15112
15113 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15114 (dwarf2_fde_table): Typedef for std::vector.
15115 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15116 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15117 (decode_frame_entry): Update.
15118 (dwarf2_build_frame_info): Use "new".
15119
7559c217
CB
151202020-02-12 Christian Biesinger <cbiesinger@google.com>
15121
15122 * arm-tdep.c (arm_gdbarch_init): Update.
15123 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15124 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15125 have_neon, is_m>: Change to bool.
15126
aeefc73c
CB
151272020-02-12 Christian Biesinger <cbiesinger@google.com>
15128
15129 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15130
d27b8e5f
TT
151312020-02-12 Tom Tromey <tom@tromey.com>
15132
15133 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15134
cd5900f3
HD
151352020-02-12 Hannes Domani <ssbssa@yahoo.de>
15136
15137 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15138 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15139
f056b22b
TT
151402020-02-11 Tom Tromey <tom@tromey.com>
15141
15142 * psymtab.h: Update comment.
15143
f92ff6b5
TT
151442020-02-11 Tom Tromey <tom@tromey.com>
15145
15146 * gdb_obstack.h (struct auto_obstack): Use
15147 DISABLE_COPY_AND_ASSIGN.
15148
3fd6912b
TT
151492020-02-11 Tom Tromey <tom@tromey.com>
15150
15151 * dwarf2/frame.h (struct objfile): Don't forward declare.
15152
69ed9b74
CB
151532020-02-11 Christian Biesinger <cbiesinger@google.com>
15154
15155 * cris-tdep.c (cris_supply_gregset): Change signature to match
15156 what struct regset expects.
15157 (cris_regset): New struct.
15158 (fetch_core_registers): Remove.
15159 (cris_iterate_over_regset_sections): New function.
15160 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15161 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15162
bda874f6
CB
151632020-02-11 Christian Biesinger <cbiesinger@google.com>
15164
15165 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15166 registers.
15167
754e1564
CB
151682020-02-11 Christian Biesinger <cbiesinger@google.com>
15169
15170 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15171
8ddd8e0e
SM
151722020-02-11 Simon Marchi <simon.marchi@efficios.com>
15173
15174 * configure: Re-generate.
15175
898e7f60
SM
151762020-02-11 Simon Marchi <simon.marchi@efficios.com>
15177
15178 * configure: Re-generate.
15179
58df732b
SM
151802020-02-11 Simon Marchi <simon.marchi@efficios.com>
15181
15182 * acinclude: Update warning.m4 path.
15183 * warning.m4: Move to gdbsupport.
15184
da5bd37e
TT
151852020-02-11 Tom Tromey <tromey@adacore.com>
15186
15187 * remote.c (remote_console_output): Update.
15188 * printcmd.c (printf_command): Update.
15189 * event-loop.c (gdb_wait_for_event): Update.
15190 * linux-nat.c (sigchld_handler): Update.
15191 * remote-sim.c (gdb_os_write_stdout): Update.
15192 (gdb_os_flush_stdout): Update.
15193 (gdb_os_flush_stderr): Update.
15194 (gdb_os_write_stderr): Update.
15195 * exceptions.c (print_exception): Update.
15196 * remote-fileio.c (remote_fileio_func_read): Update.
15197 (remote_fileio_func_write): Update.
15198 * tui/tui.c (tui_enable): Update.
15199 * tui/tui-interp.c (tui_interp::init): Update.
15200 * utils.c (init_page_info): Update.
15201 (putchar_unfiltered, fputc_unfiltered): Update.
15202 (gdb_flush): Update.
15203 (emit_style_escape): Update.
15204 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15205 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15206 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15207 (stderr_file::write): Update.
15208 (stderr_file::puts): Update.
15209 * ui-file.h (ui_file_isatty, ui_file_write)
15210 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15211 (ui_file_puts): Don't declare.
15212
85f0dd3c
TV
152132020-02-10 Tom de Vries <tdevries@suse.de>
15214
15215 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15216 sentinel to char *.
15217
2e927613
TV
152182020-02-09 Tom de Vries <tdevries@suse.de>
15219
15220 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15221 filename if it matches "<artificial>".
15222
6bafc845
HD
152232020-02-09 Hannes Domani <ssbssa@yahoo.de>
15224
15225 * windows-tdep.c (struct enum_value_name): New struct.
15226 (create_enum): New function.
15227 (windows_get_siginfo_type): Create and use enum types.
15228
7928d571
HD
152292020-02-09 Hannes Domani <ssbssa@yahoo.de>
15230
15231 * NEWS: Mention $_siginfo support for Windows.
15232 * windows-nat.c (handle_exception): Set siginfo_er.
15233 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15234 (windows_xfer_siginfo): New function.
15235 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15236 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15237 (init_windows_gdbarch_data): New function.
15238 (get_windows_gdbarch_data): New function.
15239 (windows_get_siginfo_type): New function.
15240 (windows_init_abi): Register windows_get_siginfo_type.
15241 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15242
6751ebae
TT
152432020-02-08 Tom Tromey <tom@tromey.com>
15244
15245 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15246 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15247 <keep>: Declare method.
15248 <m_keep>: Remove member.
15249 <~cutu_reader>: Remove.
15250 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15251 (cutu_reader::cutu_reader): Update.
15252 (cutu_reader::keep): Rename from ~cutu_reader.
15253 (process_psymtab_comp_unit, build_type_psymtabs_1)
15254 (process_skeletonless_type_unit, load_partial_comp_unit)
15255 (load_full_comp_unit, dwarf2_read_addr_index)
15256 (read_signatured_type): Update.
15257
135f5437
TT
152582020-02-08 Tom Tromey <tom@tromey.com>
15259
15260 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15261 "want_partial_unit" parameter.
15262 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15263 Inline check for DW_TAG_partial_unit.
15264 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15265
9f66ff1c
TT
152662020-02-08 Tom Tromey <tom@tromey.com>
15267
15268 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15269 read.c.
15270 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15271 read.c.
15272
c8a7a66f
TT
152732020-02-08 Tom Tromey <tom@tromey.com>
15274
15275 * dwarf2/read.c (read_address): Move to comp-unit.c.
15276 (dwarf2_rnglists_process, dwarf2_ranges_process)
15277 (read_attribute_value, dwarf_decode_lines_1)
15278 (var_decode_location, decode_locdesc): Update.
15279 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15280 read.c. Remove "cu" parameter.
15281 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15282 method.
15283
8266302d
TT
152842020-02-08 Tom Tromey <tom@tromey.com>
15285
15286 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15287 (read_indirect_line_string): Update.
15288 * dwarf2/comp-unit.c (read_offset): Remove.
15289 (read_comp_unit_head): Update.
15290 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15291 method.
15292 (read_offset): Don't declare.
15293
4057dfde
TT
152942020-02-08 Tom Tromey <tom@tromey.com>
15295
15296 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15297 * dwarf2/read.c (struct comp_unit_head): Move to
15298 dwarf2/comp-unit.h.
15299 (enum class rcuh_kind): Move to comp-unit.h.
15300 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15301 (read_comp_unit_head, error_check_comp_unit_head)
15302 (read_and_check_comp_unit_head): Move to comp-unit.c.
15303 (read_offset, dwarf_unit_type_name): Likewise.
15304 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15305 (cutu_reader::cutu_reader, read_call_site_scope)
15306 (find_partial_die, follow_die_offset): Update.
15307 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15308
24aa364d
TT
153092020-02-08 Tom Tromey <tom@tromey.com>
15310
15311 * dwarf2/read.c (read_offset_1): Move to leb.c.
15312 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15313 (dwarf_decode_macro_bytes): Update.
15314 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15315 * dwarf2/leb.h (read_offset): Declare.
15316
2c7d5afc
TT
153172020-02-08 Tom Tromey <tom@tromey.com>
15318
15319 * dwarf2/read.c (dwarf2_section_size): Remove.
15320 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15321 Update.
15322 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15323
4075cb26
TT
153242020-02-08 Tom Tromey <tom@tromey.com>
15325
15326 * dwarf2/read.c (read_initial_length): Move to leb.c.
15327 * dwarf2/leb.h (read_initial_length): Declare.
15328 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15329 handle_nonstd parameter.
15330 * dwarf2/frame.c (read_initial_length): Remove.
15331 (decode_frame_entry_1): Update.
15332
09ba997f
TT
153332020-02-08 Tom Tromey <tom@tromey.com>
15334
15335 * dwarf2/loc.c (dwarf2_find_location_expression)
15336 (dwarf_evaluate_loc_desc::get_tls_address)
15337 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15338 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15339 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15340 (dwarf2_compile_property_to_c)
15341 (dwarf2_loc_desc_get_symbol_read_needs)
15342 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15343 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15344 (loclist_describe_location, loclist_tracepoint_var_ref)
15345 (loclist_generate_c_location): Update.
15346 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15347 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15348 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15349 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15350 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15351 (dwarf2_per_cu_data::addr_size)
15352 (dwarf2_per_cu_data::ref_addr_size)
15353 (dwarf2_per_cu_data::text_offset)
15354 (dwarf2_per_cu_data::addr_type): Now methods.
15355 (per_cu_header_read_in): Make per_cu "const".
15356 (dwarf2_version): Remove.
15357 (dwarf2_per_cu_data::int_type): Now a method.
15358 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15359 (set_die_type, read_array_type, read_subrange_index_type)
15360 (read_tag_string_type, read_subrange_type): Update.
15361 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15362 offset_size, ref_addr_size, text_offset, addr_type, version,
15363 objfile, int_type, addr_sized_int_type>: Declare methods.
15364
96c738c0
TT
153652020-02-08 Tom Tromey <tom@tromey.com>
15366
15367 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15368 Move earlier.
15369
8fdd972c
TT
153702020-02-08 Tom Tromey <tom@tromey.com>
15371
15372 * dwarf2/read.h (dwarf_line_debug): Declare.
15373 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15374 * dwarf2/read.c: Move line_header code to new files.
15375 (dwarf_line_debug): No longer static.
15376 * dwarf2/line-header.c: New file.
15377 * dwarf2/line-header.h: New file.
15378
03075812
TT
153792020-02-08 Tom Tromey <tom@tromey.com>
15380
15381 * dwarf2/read.c (struct line_header) <file_full_name,
15382 file_file_name>: Return unique_xmalloc_ptr.
15383 (line_header::file_file_name): Update.
15384 (line_header::file_full_name): Update.
15385 (dw2_get_file_names_reader): Update.
15386 (macro_start_file): Update.
15387
bb822404
TT
153882020-02-08 Tom Tromey <tom@tromey.com>
15389
15390 * dwarf2/read.c (struct line_header) <file_full_name,
15391 file_file_name>: Declare methods.
15392 (dw2_get_file_names_reader): Update.
15393 (file_file_name): Now a method.
15394 (file_full_name): Likewise.
15395 (macro_start_file): Update.
15396
009b64fc
TT
153972020-02-08 Tom Tromey <tom@tromey.com>
15398
15399 * dwarf2/read.c (dwarf_always_disassemble)
15400 (show_dwarf_always_disassemble): Move to loc.c.
15401 (_initialize_dwarf2_read): Move "always-disassemble" registration
15402 to loc.c.
15403 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15404 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15405 static.
15406 (show_dwarf_always_disassemble): Move from read.c.
15407 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15408
5895093f
TT
154092020-02-08 Tom Tromey <tom@tromey.com>
15410
15411 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15412 (create_quick_file_names_table): Return htab_up.
15413 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15414 Update.
15415 * dwarf2/read.h (struct dwarf2_per_objfile)
15416 <quick_file_names_table>: Now htab_up.
15417
b3b32279
TT
154182020-02-08 Tom Tromey <tom@tromey.com>
15419
15420 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15421
1d33d811
TT
154222020-02-08 Tom Tromey <tom@tromey.com>
15423
15424 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15425 Rewrite.
15426 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15427 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15428 (abbrev_table::abbrev_table): No longer inline.
15429 (ABBREV_HASH_SIZE): Remove.
15430 (abbrev_table::m_abbrevs): Now an htab_up.
15431
86de1d91
TT
154322020-02-08 Tom Tromey <tom@tromey.com>
15433
15434 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15435 (cutu_reader): Update.
15436 (build_type_psymtabs_1): Update.
15437 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15438 (abbrev_table::alloc_abbrev): Update.
15439 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15440 (abbrev_table::read): New static method, renamed from
15441 abbrev_table_read_table.
15442 (abbrev_table::alloc_abbrev)
15443 (abbrev_table::add_abbrev): Now private.
15444 (abbrev_table::abbrev_table): Now private.
15445 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15446
0335378b
TT
154472020-02-08 Tom Tromey <tom@tromey.com>
15448
15449 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15450 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15451 htab_up.
15452
48b490f2
TT
154532020-02-08 Tom Tromey <tom@tromey.com>
15454
15455 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15456 htab_up.
15457 (lookup_dwo_unit_in_dwp): Update.
15458 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15459 on obstack.
15460
bc68fb19
TT
154612020-02-08 Tom Tromey <tom@tromey.com>
15462
15463 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15464 obstack.
15465
d15acc42
TT
154662020-02-08 Tom Tromey <tom@tromey.com>
15467
15468 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15469 line_header_hash.
15470 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15471 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15472 Change type to htab_up.
15473
eaa5fa8b
TT
154742020-02-08 Tom Tromey <tom@tromey.com>
15475
15476 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15477 htab_up. Don't allocate on obstack.
15478 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15479 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15480 Change type to htab_up.
15481
b0b6a987
TT
154822020-02-08 Tom Tromey <tom@tromey.com>
15483
15484 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15485 Change type to htab_up.
15486 * dwarf2/read.c (create_signatured_type_table_from_index)
15487 (create_signatured_type_table_from_debug_names)
15488 (create_all_type_units, add_type_unit)
15489 (lookup_dwo_signatured_type, lookup_signatured_type)
15490 (process_skeletonless_type_unit): Update.
15491 (create_debug_type_hash_table, create_debug_types_hash_table):
15492 Change type of types_htab.
15493 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15494 htab_up. Don't allocate on obstack.
15495 (create_cus_hash_table): Change type of cus_htab parameter.
15496 (struct dwo_file) <cus, tus>: Now htab_up.
15497 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15498 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15499 (queue_and_load_all_dwo_tus): Update.
15500 * dwarf2/index-write.c (write_gdbindex): Update.
15501 (write_debug_names): Update.
15502
39856def
TT
155032020-02-08 Tom Tromey <tom@tromey.com>
15504
15505 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15506 dwarf2/read.c. Remove "next" member. Add constructor ntad
15507 destructor.
15508 (struct dwarf2_per_objfile) <queue>: New member.
15509 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15510 dwarf2/read.h.
15511 (dwarf2_queue, dwarf2_queue_tail): Remove.
15512 (class dwarf2_queue_guard): Add parameter to constructor. Use
15513 DISABLE_COPY_AND_ASSIGN.
15514 <m_per_objfile>: New member.
15515 <~dwarf2_queue_guard>: Rewrite.
15516 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15517 Update.
15518 (~dwarf2_queue_item): New.
15519
3e225074
TT
155202020-02-08 Tom Tromey <tom@tromey.com>
15521
15522 * dwarf2/read.c (struct die_info) <has_children>: New member.
15523 (dw2_get_file_names_reader): Remove has_children.
15524 (dw2_get_file_names): Update.
15525 (read_cutu_die_from_dwo): Remove has_children.
15526 (cutu_reader::init_tu_and_read_dwo_dies)
15527 (cutu_reader::cutu_reader): Update.
15528 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15529 Remove has_children.
15530 (build_type_psymtabs_1, process_skeletonless_type_unit)
15531 (load_partial_comp_unit, load_full_comp_unit): Update.
15532 (create_dwo_cu_reader): Remove has_children.
15533 (create_cus_hash_table, read_die_and_children): Update.
15534 (read_full_die_1,read_full_die): Remove has_children.
15535 (read_signatured_type): Update.
15536 (class cutu_reader) <has_children>: Remove.
15537
82ca8957
TT
155382020-02-08 Tom Tromey <tom@tromey.com>
15539
15540 * dwarf2/expr.c: Rename from dwarf2expr.c.
15541 * dwarf2/expr.h: Rename from dwarf2expr.h.
15542 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15543 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15544 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15545 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15546 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15547 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15548 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15549 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15550 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15551 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15552 * dwarf2/loc.c: Rename from dwarf2loc.c.
15553 * dwarf2/loc.h: Rename from dwarf2loc.h.
15554 * dwarf2/read.c: Rename from dwarf2read.c.
15555 * dwarf2/read.h: Rename from dwarf2read.h.
15556 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15557 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15558 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15559 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15560 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15561 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15562 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15563 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15564 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15565 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15566 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15567 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15568 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15569 Update.
15570 * Makefile.in (COMMON_SFILES): Update.
15571 (HFILES_NO_SRCDIR): Update.
15572
9e35d499
TT
155732020-02-08 Tom Tromey <tom@tromey.com>
15574
15575 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15576 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15577
1eba2311
TT
155782020-02-08 Tom Tromey <tom@tromey.com>
15579
15580 * dwarf2read.h (struct die_info): Don't declare.
15581
e41c2da2
TT
155822020-02-08 Tom Tromey <tom@tromey.com>
15583
15584 * dwarf2read.h (die_info_ptr): Remove typedef.
15585
4fc6c0d5
TT
155862020-02-08 Tom Tromey <tom@tromey.com>
15587
15588 * dwarf2read.c (read_call_site_scope)
15589 (handle_data_member_location, dwarf2_add_member_fn)
15590 (mark_common_block_symbol_computed, read_common_block)
15591 (attr_to_dynamic_prop, partial_die_info::read)
15592 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15593 (dwarf2_symbol_mark_computed, set_die_type): Update.
15594 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15595 method.
15596 (attr_form_is_block): Don't declare.
15597 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15598
cd6c91b4
TT
155992020-02-08 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2read.c (dwarf2_find_base_address, )
15602 (read_call_site_scope, rust_containing_type)
15603 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15604 (handle_data_member_location, dwarf2_add_member_fn)
15605 (get_alignment, read_structure_type, process_structure_scope)
15606 (mark_common_block_symbol_computed, read_common_block)
15607 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15608 (partial_die_info::read, read_attribute_value, new_symbol)
15609 (lookup_die_type, dwarf2_get_ref_die_offset)
15610 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15611 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15612 (dwarf2_symbol_mark_computed): Update.
15613 * dwarf2/attribute.h (struct attribute) <value_as_address,
15614 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15615 methods.
15616 (value_as_address, attr_form_is_section_offset)
15617 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15618 * dwarf2/attribute.c (attribute::value_as_address)
15619 (attribute::form_is_section_offset, attribute::form_is_constant)
15620 (attribute::form_is_ref): Now methods.
15621
162dce55
TT
156222020-02-08 Tom Tromey <tom@tromey.com>
15623
15624 * dwarf2read.c (struct attribute, DW_STRING)
15625 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15626 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15627 (attr_form_is_block, attr_form_is_section_offset)
15628 (attr_form_is_constant, attr_form_is_ref): Move.
15629 * dwarf2/attribute.h: New file.
15630 * dwarf2/attribute.c: New file, from dwarf2read.c.
15631 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15632
3054dd54
TT
156332020-02-08 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15636 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15637 Move.
15638 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15639 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15640 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15641 abbrev.c.
15642 * dwarf2/abbrev.h: New file.
15643 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15644 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15645
96b79293
TT
156462020-02-08 Tom Tromey <tom@tromey.com>
15647
15648 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15649 (dwarf2_section_size, dwarf2_get_section_info)
15650 (create_signatured_type_table_from_debug_names)
15651 (create_addrmap_from_aranges, read_debug_names_from_section)
15652 (get_gdb_index_contents_from_section, read_comp_unit_head)
15653 (error_check_comp_unit_head, read_abbrev_offset)
15654 (create_debug_type_hash_table, init_cu_die_reader)
15655 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15656 (read_comp_units_from_section, create_cus_hash_table)
15657 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15658 (create_dwp_v2_section, dwarf2_rnglists_process)
15659 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15660 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15661 (read_indirect_string_from_dwz, read_addr_index_1)
15662 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15663 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15664 (fill_in_loclist_baton): Update.
15665 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15666 get_containing_section, get_bfd_owner, get_bfd_section,
15667 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15668 (dwarf2_read_section, get_section_name, get_section_file_name)
15669 (get_containing_section, get_section_bfd_owner)
15670 (get_section_bfd_section, get_section_name, get_section_file_name)
15671 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15672 declare.
15673 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15674 (dwarf2_section_info::get_bfd_owner)
15675 (dwarf2_section_info::get_bfd_section)
15676 (dwarf2_section_info::get_name)
15677 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15678 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15679 (dwarf2_section_info::read): Now methods.
15680 * dwarf-index-write.c (class debug_names): Update.
15681
2c86cff9
TT
156822020-02-08 Tom Tromey <tom@tromey.com>
15683
15684 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15685 Move to dwarf2/section.h.
15686 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15687 (get_section_bfd_section, get_section_name)
15688 (get_section_file_name, get_section_id, get_section_flags)
15689 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15690 dwarf2/section.c.
15691 * dwarf2/section.h: New file.
15692 * dwarf2/section.c: New file, from dwarf2read.c.
15693 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15694
f4382c45
TT
156952020-02-08 Tom Tromey <tom@tromey.com>
15696
15697 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15698 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15699 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15700 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15701 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15702 * dwarf2/leb.h: New file, from dwarf2read.c.
15703 * dwarf2/leb.c: New file, from dwarf2read.c.
15704 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15705 Remove.
15706 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15707 (COMMON_SFILES): Add dwarf2/leb.c.
15708
01840b7a
JB
157092020-02-08 Joel Brobecker <brobecker@adacore.com>
15710
15711 GDB 9.1 released.
15712
dfcb27e4
IB
157132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15714
15715 PR gdb/25190:
aac66a4c
SM
15716 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15717 * gdb/remote.c (remote_console_output): Update.
15718 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15719 (ui_file_puts): ...this.
15720 * gdb/ui-file.h (ui_file_puts): Add declaration.
15721 * gdb/utils.c (emit_style_escape): Update.
15722 (flush_wrap_buffer): Update.
15723 (fputs_maybe_filtered): Update.
15724 (fputs_unfiltered): Add function.
dfcb27e4 15725
faa17681
IB
157262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15727
aac66a4c
SM
15728 * gdb/event-loop.c (gdb_wait_for_event): Update.
15729 * gdb/printcmd.c (printf_command): Update.
15730 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15731 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15732 (gdb_os_flush_stderr): Update.
15733 * gdb/remote.c (remote_console_output): Update.
15734 * gdb/ui-file.c (gdb_flush): Rename to...
15735 (ui_file_flush): ...this.
15736 (stderr_file::write): Update.
15737 (stderr_file::puts): Update.
15738 * gdb/ui-file.h (gdb_flush): Rename to...
15739 (ui_file_flush): ...this.
15740 * gdb/utils.c (gdb_flush): Add function.
15741 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15742
5abbbe1d
TT
157432020-02-07 Tom Tromey <tromey@adacore.com>
15744
15745 PR breakpoints/24915:
15746 * source.c (find_and_open_source): Do not check basenames_may_differ.
15747
919adfe8
TT
157482020-02-07 Tom Tromey <tom@tromey.com>
15749
15750 * README: Update gdbserver documentation.
15751 * gdbserver: Move to top level.
15752 * configure.tgt (build_gdbserver): Remove.
15753 * configure.ac: Remove --enable-gdbserver.
15754 * configure: Rebuild.
15755 * Makefile.in (distclean): Don't mention gdbserver.
15756
1d5d29e7
SV
157572020-02-06 Shahab Vahedi <shahab@synopsys.com>
15758
15759 * source-cache.c (source_cache::ensure): Surround
15760 get_plain_source_lines with a try/catch.
15761 (source_cache::get_line_charpos): Get rid of try/catch
15762 and only check for the return value of "ensure".
15763 * tui/tui-source.c (tui_source_window::set_contents):
15764 Simplify "nlines" calculation.
15765
6eb1129c
SV
157662020-02-06 Shahab Vahedi <shahab@synopsys.com>
15767
15768 * MAINTAINERS (Write After Approval): Add myself.
15769
c6a42d11
CB
157702020-02-05 Christian Biesinger <cbiesinger@google.com>
15771
15772 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15773 function call.
15774
c8ecdda6
CB
157752020-02-05 Christian Biesinger <cbiesinger@google.com>
15776
15777 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15778
f6480e70
MR
157792020-02-05 Maciej W. Rozycki <macro@wdc.com>
15780
15781 * nat/riscv-linux-tdesc.h: New file.
15782 * nat/riscv-linux-tdesc.c: New file, taking code from...
15783 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15784 ... here.
15785 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15786 NATDEPFILES.
15787
dcc9fbc6
AB
157882020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15789
15790 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15791 we don't set the fake simulator ptid to the null_ptid.
15792
719546c4
SM
157932020-02-03 Simon Marchi <simon.marchi@efficios.com>
15794
15795 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15796 * gdbthread.h (class thread_info) <resumed>: Likewise.
15797 * infrun.c (resume_1): Likewise.
15798 (proceed): Likewise.
15799 (infrun_thread_stop_requested): Likewise.
15800 (stop_all_threads): Likewise.
15801 (handle_inferior_event): Likewise.
15802 (restart_threads): Likewise.
15803 (finish_step_over): Likewise.
15804 (keep_going_stepped_thread): Likewise.
15805 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15806 (linux_handle_extended_wait): Likewise.
15807 * record-btrace.c (get_thread_current_frame_id): Likewise.
15808 * record-full.c (record_full_wait_1): Likewise.
15809 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15810 * target.c (target_resume): Likewise.
15811 * thread.c (set_running_thread): Likewise.
15812
e409c542
AKS
158132020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15814
15815 * f-valprint.c (f77_print_array_1): Changed datatype of index
15816 variable to LONGEST from int to enable it to contain bound
15817 values correctly.
15818
ee98c0da
MR
158192020-02-03 Maciej W. Rozycki <macro@wdc.com>
15820
15821 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15822 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15823 offsets according to FLEN determined.
15824 (riscv_linux_nat_target::read_description): Determine FLEN
15825 dynamically.
15826 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15827 according to FLEN determined.
15828 (riscv_linux_nat_target::store_registers): Likewise.
15829
aa66aac4
SV
158302020-02-01 Shahab Vahedi <shahab@synopsys.com>
15831
15832 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15833 when reg->group is empty and reggroup is not.
15834
fd9faca8
TT
158352020-01-31 Tom Tromey <tromey@adacore.com>
15836
15837 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15838 Call beneath target's mourn_inferior after unpushing.
15839
42330a68
AB
158402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15841
15842 PR tui/9765
15843 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15844 have enough lines to fill the screen, still return the lowest
15845 address we found.
15846
7a27a45b
AB
158472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15848
15849 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15850 '-', '<', and '>' commands.
15851
c47f70e2
PA
158522020-01-29 Pedro Alves <palves@redhat.com>
15853 Sergio Durigan Junior <sergiodj@redhat.com>
15854
15855 * infcmd.c (construct_inferior_arguments): Assert that
15856 'argc' is greater than 0.
15857
5133a315
LM
158582020-01-29 Luis Machado <luis.machado@linaro.org>
15859
15860 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15861 (BRK_INSN_MASK): Define to 0xd4200000.
15862 (aarch64_program_breakpoint_here_p): New function.
15863 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15864 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15865 breakpoint.c.
15866 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15867 breakpoint.h
15868 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15869 call gdbarch_program_breakpoint_here_p.
15870 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15871 default_program_breakpoint_here_p, changed return type to bool and
15872 simplified.
15873 * breakpoint.h (program_breakpoint_here): Moved prototype to
15874 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15875 return type to bool.
15876 * gdbarch.c: Regenerate.
15877 * gdbarch.h: Regenerate.
15878 * gdbarch.sh (program_breakpoint_here_p): New method.
15879 * infrun.c (handle_signal_stop): Call
15880 gdbarch_program_breakpoint_here_p.
15881
168f8c6b
TT
158822020-01-26 Tom Tromey <tom@tromey.com>
15883
15884 * ctfread.c (struct ctf_fp_info): Reindent.
15885 (_initialize_ctfread): Remove.
15886
128a391f
TT
158872020-01-26 Tom Tromey <tom@tromey.com>
15888
15889 * psymtab.c (partial_map_expand_apply)
15890 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15891 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15892 (psym_print_stats, psym_expand_symtabs_for_function)
15893 (psym_map_symbol_filenames, psym_map_matching_symbols)
15894 (psym_expand_symtabs_matching)
15895 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15896 (maintenance_check_psymtabs): Use new methods.
15897 * psympriv.h (struct partial_symtab) <readin_p,
15898 get_compunit_symtab>: New methods.
15899 <readin, compunit_symtab>: Remove members.
15900 (struct standard_psymtab): New.
15901 (struct legacy_psymtab): Derive from standard_psymtab.
15902 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15903 standard_psymtab.
15904 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15905
0494dbec
TT
159062020-01-26 Tom Tromey <tom@tromey.com>
15907
15908 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15909 read_dependencies. Add assert.
15910 * psymtab.c (partial_symtab::read_dependencies): New method.
15911 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15912 method.
15913 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15914 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15915 read_dependencies.
15916 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15917 Add assert.
15918
8566b89b
TT
159192020-01-26 Tom Tromey <tom@tromey.com>
15920
15921 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15922 Call expand_psymtab.
15923 (xcoff_read_symtab): Call expand_psymtab.
15924 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15925 legacy_expand_psymtab.
15926 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15927 method.
15928 (struct legacy_psymtab) <expand_psymtab>: Implement.
15929 <legacy_expand_psymtab>: New member.
15930 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15931 (parse_partial_symbols): Set legacy_expand_psymtab.
15932 (psymtab_to_symtab_1): Change argument order. Call
15933 expand_psymtab.
15934 (new_psymtab): Set legacy_expand_psymtab.
15935 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15936 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15937 expand_psymtab.
15938 (dwarf2_psymtab::expand_psymtab): Rename from
15939 psymtab_to_symtab_1. Call expand_psymtab.
15940 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15941 (dbx_end_psymtab): Likewise.
15942 (dbx_psymtab_to_symtab_1): Change argument order. Call
15943 expand_psymtab.
15944 (dbx_read_symtab): Call expand_psymtab.
15945 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15946 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15947 (ctf_psymtab::read_symtab): Call expand_psymtab.
15948
077cbab2
TT
159492020-01-26 Tom Tromey <tom@tromey.com>
15950
15951 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15952 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15953 messages.
15954 * mdebugread.c (mdebug_read_symtab): Remove prints.
15955 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15956 assert.
15957 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15958
891813be
TT
159592020-01-26 Tom Tromey <tom@tromey.com>
15960
15961 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15962 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15963 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15964 legacy_symtab.
15965 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15966 * psymtab.c (psymtab_to_symtab): Call method.
15967 (dump_psymtab): Update.
15968 * psympriv.h (struct partial_symtab): Add virtual destructor.
15969 <read_symtab>: New method.
15970 (struct legacy_symtab): New.
15971 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15972 (struct pst_map) <pst>: Now a legacy_psymtab.
15973 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15974 (new_psymtab): Use legacy_psymtab.
15975 * dwarf2read.h (struct dwarf2_psymtab): New.
15976 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15977 * dwarf2read.c (dwarf2_create_include_psymtab)
15978 (dwarf2_build_include_psymtabs, create_type_unit_group)
15979 (create_partial_symtab, process_psymtab_comp_unit_reader)
15980 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15981 (set_partial_user): Use dwarf2_psymtab.
15982 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15983 (psymtab_to_symtab_1, process_full_comp_unit)
15984 (process_full_type_unit, dwarf2_ranges_read)
15985 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15986 (dwarf_decode_lines): Use dwarf2_psymtab.
15987 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15988 (add_address_entry_worker, write_one_signatured_type)
15989 (recursively_count_psymbols, recursively_write_psymbols)
15990 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15991 (write_debug_names): Likewise.
15992 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15993 <pst>: Now a legacy_psymtab.
15994 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15995 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15996 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15997 * ctfread.c (struct ctf_psymtab): New.
15998 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15999 ctf_psymtab.
16000 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16001 (create_partial_symtab): Return a ctf_psymtab.
16002 (scan_partial_symbols): Update.
16003
c3693a1d
TT
160042020-01-26 Tom Tromey <tom@tromey.com>
16005
16006 * xcoffread.c (xcoff_start_psymtab): Use new.
16007 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16008 renamed from start_psymtab_common.
16009 * psympriv.h (struct partial_symtab): Add new constructor.
16010 (start_psymtab_common): Don't declare.
16011 * mdebugread.c (parse_partial_symbols): Use new.
16012 * dwarf2read.c (create_partial_symtab): Use new.
16013 * dbxread.c (start_psymtab): Use new.
16014 * ctfread.c (create_partial_symtab): Use new.
16015
32caafd0
TT
160162020-01-26 Tom Tromey <tom@tromey.com>
16017
16018 * xcoffread.c (xcoff_end_psymtab): Use new.
16019 * psymtab.c (start_psymtab_common): Use new.
16020 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16021 Update.
16022 * psympriv.h (struct partial_symtab): Add parameters to
16023 constructor. Don't inline.
16024 (allocate_psymtab): Don't declare.
16025 * mdebugread.c (new_psymtab): Use new.
16026 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16027 * dbxread.c (dbx_end_psymtab): Use new.
16028
abaa2f23
TT
160292020-01-26 Tom Tromey <tom@tromey.com>
16030
16031 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16032 allocate_psymtab. Update documentation.
16033 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16034 allocate_psymtab. Do not use new.
16035 (allocate_psymtab): Use new. Update.
16036
6d94535f
TT
160372020-01-26 Tom Tromey <tom@tromey.com>
16038
16039 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16040 * psymtab.c (psym_print_stats): Update.
16041 * psympriv.h (struct partial_symtab) <readin,
16042 psymtabs_addrmap_supported, anonymous>: Now bool.
16043 * mdebugread.c (psymtab_to_symtab_1): Update.
16044 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16045 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16046 (process_full_comp_unit, process_full_type_unit): Update.
16047 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16048 * ctfread.c (psymtab_to_symtab): Update.
16049
6f17252b
TT
160502020-01-26 Tom Tromey <tom@tromey.com>
16051
16052 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16053 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16054 * psymtab.c (psymtab_storage): Delete psymtabs.
16055 (psymtab_storage::allocate_psymtab): Use new.
16056 (psymtab_storage::discard_psymtab): Use delete.
16057 * psympriv.h (struct partial_symtab): Add constructor and
16058 initializers.
16059
f6f1cebc
TT
160602020-01-26 Tom Tromey <tom@tromey.com>
16061
16062 * machoread.c: Do not include psympriv.h.
16063
e47e48f6
PW
160642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16065
16066 * NEWS: Mention the new option and the set/show commands.
16067
a2fedca9
PW
160682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16069
16070 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16071 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16072 (validate_exec_file): New variables, enums, functions.
16073 (exec_file_locate_attach, print_section_info): Style the filenames.
16074 (_initialize_exec): Install show_exec_file_mismatch_command and
16075 set_exec_file_mismatch_command.
16076 * gdbcore.h (validate_exec_file): Declare.
16077 * infcmd.c (attach_command): Call validate_exec_file.
16078 * remote.c ( remote_target::remote_add_inferior): Likewise.
16079
7ffa82e1
AB
160802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16081
16082 * frame.c (find_frame_sal): Move call to get_next_frame into more
16083 inner scope.
16084 * inline-frame.c (inilne_state) <inline_state>: Update argument
16085 types.
16086 (inilne_state) <skipped_symbol>: Rename to...
16087 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16088 (skip_inline_frames): Build vector of skipped symbols and use this
16089 to reate the inline_state.
16090 (inline_skipped_symbol): Add a comment and some assertions, fetch
16091 skipped symbol from the list.
16092
3d92a3e3
AB
160932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16094
16095 * buildsym.c (lte_is_less_than): Delete.
16096 (buildsym_compunit::end_symtab_with_blockvector): Create local
16097 lambda function to sort line table entries, and use
16098 std::stable_sort instead of std::sort.
16099 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16100 markers when looking for a previous line.
16101
94a72be7
AB
161022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16103
16104 * dwarf2read.c (lnp_state_machine::record_line): Include
16105 end_sequence parameter in debug print out. Record the line if we
16106 are at an end_sequence marker even if it's not the start of a
16107 statement.
16108 * symmisc.c (maintenance_print_one_line_table): Print end of
16109 sequence markers with 'END' not '0'.
16110
53af73bf
PA
161112020-01-24 Pedro Alves <palves@redhat.com>
16112
16113 PR gdb/25410
16114 * thread.c (scoped_restore_current_thread::restore): Use
16115 switch_to_inferior_no_thread.
16116 * exec.c: Include "progspace-and-thread.h".
16117 (add_target_sections, remove_target_sections):
16118 scoped_restore_current_pspace_and_thread instead of
16119 scoped_restore_current_thread.
16120 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16121 and aspace to the inferior before calling clone_program_space.
16122 Remove stale comment.
16123
3050c6f4
CB
161242020-01-24 Christian Biesinger <cbiesinger@google.com>
16125
16126 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16127 (arm_netbsd_nat_target::fetch_registers): ...this.
16128 (arm_nbsd_nat_target::store_registers): Rename to...
16129 (arm_netbsd_nat_target::store_registers): ...this.
16130
73685c7e
CB
161312020-01-24 Christian Biesinger <cbiesinger@google.com>
16132
16133 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16134 register_t.
16135
89203d40
CB
161362020-01-24 Christian Biesinger <cbiesinger@google.com>
16137
16138 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16139 Update comment.
16140 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16141 Likewise.
16142 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16143 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16144 the correct replacement (iterate_over_regset_sections).
16145 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16146 Update comment.
16147
1ba1ac88
AB
161482020-01-24 Graham Markall <graham.markall@embecosm.com>
16149
16150 PR gdb/23718
16151 * gdb/python/python.c (execute_gdb_command): Call
16152 async_enable_stdin in catch block.
16153
f3364a6d
AB
161542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16155
16156 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16157 SWITCH_THRU_ALL_UIS.
16158
733d0a67
AB
161592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16160
16161 PR tui/9765
16162 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16163 comment, add extra parameter, and update to store previous symbol
16164 when appropriate.
16165 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16166 add extra parameter.
16167 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16168 remove unneeded parameter, add try/catch around gdb_print_insn,
16169 rewrite to add items to asm_lines vector.
16170 (tui_find_backward_disassembly_start_address): New function.
16171 (tui_find_disassembly_address): Updated throughout.
16172 (tui_disasm_window::set_contents): Update for changes to
16173 tui_disassemble.
16174 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16175 number of lines to scroll.
16176
b3b3bada
SM
161772020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16178
16179 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16180 (SECT_OFF_DATA): Likewise.
16181 (SECT_OFF_RODATA): Likewise.
16182 (SECT_OFF_TEXT): Likewise.
16183 (SECT_OFF_BSS): Likewise.
16184 (struct objfile) <text_section_offset, data_section_offset>: New
16185 methods.
16186 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16187 objfile::text_section_offset.
16188 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16189 * coffread.c (coff_symtab_read): Likewise.
16190 (enter_linenos): Likewise.
16191 (process_coff_symbol): Likewise.
16192 * ctfread.c (get_objfile_text_range): Likewise.
16193 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16194 Use objfile::data_section_offset.
16195 * dwarf2-frame.c (execute_cfa_program): Use
16196 objfile::text_section_offset.
16197 (dwarf2_frame_find_fde): Likewise.
16198 * dwarf2read.c (create_addrmap_from_index): Likewise.
16199 (create_addrmap_from_aranges): Likewise.
16200 (dw2_find_pc_sect_compunit_symtab): Likewise.
16201 (process_psymtab_comp_unit_reader): Likewise.
16202 (add_partial_symbol): Likewise.
16203 (add_partial_subprogram): Likewise.
16204 (process_full_comp_unit): Likewise.
16205 (read_file_scope): Likewise.
16206 (read_func_scope): Likewise.
16207 (read_lexical_block_scope): Likewise.
16208 (read_call_site_scope): Likewise.
16209 (dwarf2_rnglists_process): Likewise.
16210 (dwarf2_ranges_process): Likewise.
16211 (dwarf2_ranges_read): Likewise.
16212 (dwarf_decode_lines_1): Likewise.
16213 (new_symbol): Likewise.
16214 (dwarf2_fetch_die_loc_sect_off): Likewise.
16215 (dwarf2_per_cu_text_offset): Likewise.
16216 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16217 * hppa-tdep.c (read_unwind_info): Likewise.
16218 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16219 * psympriv.h (struct partial_symtab): Likewise.
16220 * psymtab.c (find_pc_sect_psymtab): Likewise.
16221 * solib-svr4.c (enable_break): Likewise.
16222 * stap-probe.c (relocate_address): Use
16223 objfile::data_section_offset.
16224 * xcoffread.c (enter_line_range): Use
16225 objfile::text_section_offset.
16226 (read_xcoff_symtab): Likewise.
16227
ab53f382
SM
162282020-01-23 Simon Marchi <simon.marchi@efficios.com>
16229
16230 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16231 declaration to narrower scopes.
16232
e7eee665
SM
162332020-01-23 Simon Marchi <simon.marchi@efficios.com>
16234
16235 * darwin-nat.h (struct darwin_exception_msg, enum
16236 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16237 Move up.
16238 (class darwin_nat_target) <wait_1, check_new_threads,
16239 decode_exception_message, decode_message, stop_inferior,
16240 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16241 * darwin-nat.c (darwin_check_new_threads): Rename to...
16242 (darwin_nat_target::check_new_threads): ... this.
16243 (darwin_suspend_inferior_it): Remove.
16244 (darwin_decode_exception_message): Rename to...
16245 (darwin_nat_target::decode_exception_message): ... this.
16246 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16247 (darwin_decode_message): Rename to...
16248 (darwin_nat_target::decode_message): ... this.
16249 (cancel_breakpoint): Rename to...
16250 (darwin_nat_target::cancel_breakpoint): ... this.
16251 (darwin_wait): Rename to...
16252 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16253 instead of iterate_over_inferiors.
16254 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16255 (darwin_stop_inferior): Rename to...
16256 (darwin_nat_target::stop_inferior): ... this.
16257 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16258 (darwin_init_thread_list): Rename to...
16259 (darwin_nat_target::init_thread_list): ... this.
16260 (darwin_ptrace_him): Rename to...
16261 (darwin_nat_target::ptrace_him): ... this.
16262 (darwin_nat_target::create_inferior): Pass lambda function to
16263 fork_inferior.
16264 (darwin_nat_target::detach): Call stop_inferior instead of
16265 darwin_stop_inferior.
16266 * fork-inferior.h (fork_inferior): Change init_trace_fun
16267 parameter to gdb::function_view.
16268 * fork-inferior.c (fork_inferior): Likewise.
16269
c162ed3e
HD
162702020-01-23 Hannes Domani <ssbssa@yahoo.de>
16271
16272 * i386-cygwin-tdep.c (core_process_module_section): Update.
16273 * windows-nat.c (struct lm_info_windows): Add text_offset.
16274 (windows_xfer_shared_libraries): Update.
16275 * windows-tdep.c (windows_xfer_shared_library):
16276 Add text_offset_cached argument.
16277 * windows-tdep.h (windows_xfer_shared_library): Update.
16278
a1237872
SM
162792020-01-21 Simon Marchi <simon.marchi@efficios.com>
16280
16281 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16282
b3ee6dd9
SM
162832020-01-21 Simon Marchi <simon.marchi@efficios.com>
16284
16285 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16286 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16287 replace with range-based for.
16288 (gdbsim_interrupt_inferior): Remove.
16289 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16290 with a range-based for. Inline code from
16291 gdbsim_interrupt_inferior.
16292
f9fac3c8
SM
162932020-01-21 Simon Marchi <simon.marchi@efficios.com>
16294
16295 * infrun.c (proceed): Fix indentation.
16296
f6474de9
TT
162972020-01-21 Tom Tromey <tromey@adacore.com>
16298
16299 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16300 * python/python.c (python_extension_ops): Update.
16301 (gdbpy_colorize): New function.
16302 * python/lib/gdb/__init__.py (colorize): New function.
16303 * extension.h (ext_lang_colorize): Declare.
16304 * extension.c (ext_lang_colorize): New function.
16305 * extension-priv.h (struct extension_language_ops) <colorize>: New
16306 member.
16307 * cli/cli-style.c (_initialize_cli_style): Update help text.
16308
f0c702d4
LM
163092020-01-21 Luis Machado <luis.machado@linaro.org>
16310
16311 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16312 <cond>: Change type to bool.
16313 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16314 (aarch64_displaced_step_cb): Likewise.
16315 (aarch64_displaced_step_tb): Likewise.
16316
1ab139e5
LM
163172020-01-21 Luis Machado <luis.machado@linaro.org>
16318
16319 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16320 output.
16321
0c271889
LM
163222020-01-21 Luis Machado <luis.machado@linaro.org>
16323
16324 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16325 <pc_adjust>: Adjust the documentation.
16326 (aarch64_displaced_step_fixup): Check if PC really moved before
16327 adjusting it.
16328
4d89c1c7
TT
163292020-01-19 Tom Tromey <tom@tromey.com>
16330
16331 * disasm.c (~gdb_disassembler): New destructor.
16332 (gdb_buffered_insn_length): Call disassemble_free_target.
16333 * disasm.h (class gdb_disassembler): Declare destructor. Use
16334 DISABLE_COPY_AND_ASSIGN.
16335
c0ab21c2
TT
163362020-01-19 Tom Tromey <tom@tromey.com>
16337
16338 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16339 (die_reader_func_ftype): Remove.
16340 (cutu_reader): New class.
16341 (dw2_get_file_names_reader): Remove "data" parameter.
16342 (dw2_get_file_names): Use cutu_reader.
16343 (create_debug_type_hash_table): Update.
16344 (read_cutu_die_from_dwo): Update comment.
16345 (lookup_dwo_unit): Add dwo_name parameter.
16346 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16347 die_reader_func_ftype and data parameters.
16348 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16349 Remove die_reader_func_ftype and data parameters.
16350 (~cutu_reader): New; from init_cutu_and_read_dies.
16351 (cutu_reader::cutu_reader): Rename from
16352 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16353 and data parameters.
16354 (init_cutu_and_read_dies_simple): Remove.
16355 (struct process_psymtab_comp_unit_data): Remove.
16356 (process_psymtab_comp_unit_reader): Remove data parameter; add
16357 want_partial_unit and pretend_language parameters.
16358 (process_psymtab_comp_unit): Use cutu_reader.
16359 (build_type_psymtabs_reader): Remove data parameter.
16360 (build_type_psymtabs_1): Use cutu_reader.
16361 (process_skeletonless_type_unit): Likewise.
16362 (load_partial_comp_unit_reader): Remove.
16363 (load_partial_comp_unit): Use cutu_reader.
16364 (load_full_comp_unit_reader): Remove.
16365 (load_full_comp_unit): Use cutu_reader.
16366 (struct create_dwo_cu_data): Remove.
16367 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16368 dwo_unit parameters.
16369 (create_cus_hash_table): Use cutu_reader.
16370 (struct dwarf2_read_addr_index_data): Remove.
16371 (dwarf2_read_addr_index_reader): Remove.
16372 (dwarf2_read_addr_index): Use cutu_reader.
16373 (read_signatured_type_reader): Remove.
16374 (read_signatured_type): Use cutu_reader.
16375
45bbae5c
TT
163762020-01-19 Tom Tromey <tom@tromey.com>
16377
16378 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16379 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16380 (tui_wrefresh): Declare.
16381 * tui/tui-wingeneral.c (suppress_output): New global.
16382 (tui_suppress_output, ~tui_suppress_output): New constructor and
16383 destructor.
16384 (tui_wrefresh): New function.
16385 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16386 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16387 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16388 method.
16389 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16390 tui_wrefresh.
16391 (tui_data_window::no_refresh): New method.
16392 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16393 (tui_reg_command): Use tui_suppress_output
16394 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16395 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16396 method.
16397 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16398
4f13c1c0
TT
163992020-01-19 Tom Tromey <tom@tromey.com>
16400
16401 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16402 Handle case where symtab is null.
16403
fa47e446
SM
164042020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16405
16406 * linux-fork.c (one_fork_p): Simplify.
16407
26f42329
SM
164082020-01-17 Simon Marchi <simon.marchi@efficios.com>
16409
16410 * top.c (struct qt_args): Remove.
16411 (kill_or_detach): Change return type to void, replace `void *`
16412 parameter with a proper one.
16413 (print_inferior_quit_action): Likewise.
16414 (quit_confirm): Use range-based for loop to iterate over inferiors.
16415 (quit_force): Likewise.
16416
a9ac81b1
SM
164172020-01-17 Simon Marchi <simon.marchi@efficios.com>
16418
16419 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16420 `void *` parameter with proper parameters.
16421 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16422 (print_one_inferior): Change return type to void, replace `void *`
16423 parameter with proper parameters.
16424 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16425 inferiors.
16426 (get_other_inferior): Remove.
16427 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16428 inferiors.
16429
788eca49
SM
164302020-01-17 Simon Marchi <simon.marchi@efficios.com>
16431
16432 * mi/mi-interp.c (report_initial_inferior): Remove.
16433 (mi_interp::init): Use range-based for to iterate over inferiors.
16434
d9bc85b6
SM
164352020-01-17 Simon Marchi <simon.marchi@efficios.com>
16436
16437 * python/py-inferior.c (build_inferior_list): Remove.
16438 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16439
40c94099
CB
164402020-01-16 Christian Biesinger <cbiesinger@google.com>
16441
16442 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16443 (btrace_stitch_trace): Likewise.
16444 * charset.c (intermediate_encoding): Likewise (vaild).
16445 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16446 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16447 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16448
e0cdfe3c
HD
164492020-01-16 Hannes Domani <ssbssa@yahoo.de>
16450
16451 * windows-tdep.c (windows_get_tlb_type):
16452 Add rtl_user_process_parameters type.
16453
790f1718 164542020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16455 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16456
16457 PR build/24805
16458 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16459 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16460 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16461 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16462 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16463 (ps_plog): Redeclare exported functions with default visibility.
16464
3112ed97
NA
164652020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16466
16467 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16468 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16469
8dc3273e
SM
164702020-01-15 Simon Marchi <simon.marchi@efficios.com>
16471
16472 * infcmd.c (post_create_inferior): Use get_thread_regcache
16473 instead of get_current_regcache.
16474
ff47f4f0
TT
164752020-01-14 Tom Tromey <tom@tromey.com>
16476
16477 PR symtab/12535:
16478 * python/python.c (gdbpy_decode_line): Treat empty string the same
16479 as no argument.
16480
975f45b7
TT
164812020-01-14 Tom Tromey <tom@tromey.com>
16482
16483 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16484
25e57356
TT
164852020-01-14 Tom Tromey <tom@tromey.com>
16486
16487 * nat/linux-btrace.c: Don't include <config.h>.
16488 * nat/linux-ptrace.c: Don't include <config.h>.
16489 * nat/x86-linux-dregs.c: Don't include <config.h>.
16490
05ea2a05
TT
164912020-01-14 Tom Tromey <tom@tromey.com>
16492
16493 * configure: Rebuild.
16494 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16495
01027315
TT
164962020-01-14 Tom Tromey <tom@tromey.com>
16497
16498 * nat/x86-linux-dregs.c: Include configh.h.
16499 * nat/linux-ptrace.c: Include configh.h.
16500 * nat/linux-btrace.c: Include configh.h.
16501 * defs.h: Include config.h, bfd.h.
16502 * configure.ac: Don't source common.host.
16503 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16504 * configure: Rebuild.
16505 * acinclude.m4: Update path.
16506 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16507 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16508 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16509 (CLIBS): Add LIBSUPPORT.
16510 (CDEPS): Likewise.
16511 (COMMON_SFILES): Remove gdbsupport files.
16512 (HFILES_NO_SRCDIR): Likewise.
16513 (stamp-version): Update path to create-version.sh.
16514 (ALLDEPFILES): Remove gdbsupport files.
16515
b2ceabe8
TT
165162020-01-14 Tom Tromey <tom@tromey.com>
16517
16518 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16519 USE_WIN32API when needed.
16520 * configure.ac (USE_WIN32API): Don't define.
16521 (WIN32LIBS): Use WIN32APILIBS.
16522 * configure: Rebuild.
16523
25c51f71
TT
165242020-01-14 Tom Tromey <tom@tromey.com>
16525
16526 * configure: Rebuild.
16527 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16528
717c684d
BE
165292020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16530
16531 * skip.c (skip_function_command): Make skip w/o arguments use the
16532 name of the inlined function if pc is inside any inlined function.
16533
7da6a5b9
LM
165342020-01-14 Luis Machado <luis.machado@linaro.org>
16535
16536 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16537 * infrun.c (resume_1): Likewise.
16538 (handle_inferior_event): Remove stale comment.
16539 * linux-nat.c (linux_nat_target::resume): Update comments.
16540 (save_stop_reason): Likewise.
16541 (linux_nat_filter_event): Likewise.
16542 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16543
44e4c775
AB
165442020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16545
16546 * elfread.c (record_minimal_symbol): Set section index to 0 for
16547 non-allocatable sections.
16548
18a8505e
AT
16549
165502020-01-13 Ali Tamur <tamur@google.com>
16551
16552 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16553 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16554 to gdb::optional. Update comments.
16555 (dwo_file): Update comments.
16556 (read_attribute): Update API to take an additional out parameter,
16557 need_reprocess. This is used to mark attributes that need other
16558 attributes (e.g. str_offsets_base) for correct computation which may not
16559 have been read yet.
16560 (read_attribute_reprocess): New function declaration.
16561 (read_addr_index): Likewise.
16562 (read_dwo_str_index): Likewise.
16563 (read_stub_str_index): Likewise.
16564 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16565 (lookup_addr_base): New function definition.
16566 (lookup_ranges_base): Likewise.
16567 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16568 lookup_ranges_base.
16569 (init_cutu_and_read_dies): Update comments.
16570 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16571 unit. This is used to inherit parent's str_offsets_base and addr_base.
16572 Update comments.
16573 (init_cutu_and_read_dies_simple): Reflect API changes.
16574 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16575 (create_cus_hash_table): Change API to take parent compile unit.
16576 Reflect API changes.
16577 (open_and_init_dwo_file): Reflect API changes.
16578 (dwarf2_get_pc_bounds): Update comments.
16579 (dwarf2_record_block_ranges): Likewise.
16580 (read_full_die_1): Change implementation to reprocess attributes that
16581 need str_offsets_base and addr_base.
16582 (partial_die_info::read): Likewise.
16583 (read_attribute_reprocess): New function definition.
16584 (read_attribute_value): Change API to take an additional out parameter,
16585 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16586 when a non-dwo compile unit has index based attributes.
16587 (read_attribute): Reflect API changes.
16588 (read_addr_index_1): Reflect API changes. Update comments.
16589 (dwarf2_read_addr_index_data): Reflect API changes.
16590 (dwarf2_read_addr_index): Likewise.
16591 (read_str_index): Change API and implementation. This becomes a helper
16592 to be used by the new string index related methods. Update error
16593 message and comments.
16594 (read_dwo_str_index): New function definition.
16595 (read_stub_str_index): Likewise.
16596 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16597 * symfile.h (dwarf2_debug_sections): Likewise.
16598 * xcoffread.c (dwarf2_debug_sections): Likewise.
16599
0cac9354
SM
166002020-01-13 Simon Marchi <simon.marchi@efficios.com>
16601
16602 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16603 core_reg_sect type to gdb_byte *.
16604 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16605 * cris-tdep.c (fetch_core_registers): Likewise.
16606 * corelow.c (core_target::get_core_register_section): Change
16607 type of `contents` to gdb::byte_vector.
16608
9a6d629c
AB
166092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16610
16611 * tui/tui-wingeneral.c (box_win): Position the title in the center
16612 of the border.
16613
d8b2f9e3
SM
166142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16615
16616 * corelow.c (core_target::get_core_register_section): Use
16617 std::vector instead of alloca.
16618
bb564c58
SM
166192020-01-13 Simon Marchi <simon.marchi@efficios.com>
16620
16621 * warning.m4: Add -Wmissing-declarations to build_warnings.
16622 * configure: Re-generate.
16623
6b366111
SM
166242020-01-13 Simon Marchi <simon.marchi@efficios.com>
16625
16626 * python/python.c (init__gdb_module): Add declaration.
16627
6c265988
SM
166282020-01-13 Simon Marchi <simon.marchi@efficios.com>
16629
16630 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16631 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16632 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16633 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16634 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16635 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16636 * ada-exp.y (_initialize_ada_exp): Add declaration.
16637 * ada-lang.c (_initialize_ada_language): Add declaration.
16638 * ada-tasks.c (_initialize_tasks): Add declaration.
16639 * agent.c (_initialize_agent): Add declaration.
16640 * aix-thread.c (_initialize_aix_thread): Add declaration.
16641 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16642 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16643 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16644 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16645 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16646 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16647 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16648 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16649 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16650 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16651 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16652 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16653 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16654 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16655 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16656 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16657 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16658 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16659 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16660 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16661 * annotate.c (_initialize_annotate): Add declaration.
16662 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16663 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16664 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16665 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16666 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16667 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16668 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16669 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16670 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16671 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16672 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16673 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16674 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16675 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16676 * auto-load.c (_initialize_auto_load): Add declaration.
16677 * auxv.c (_initialize_auxv): Add declaration.
16678 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16679 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16680 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16681 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16682 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16683 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16684 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16685 * breakpoint.c (_initialize_breakpoint): Add declaration.
16686 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16687 * btrace.c (_initialize_btrace): Add declaration.
16688 * charset.c (_initialize_charset): Add declaration.
16689 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16690 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16691 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16692 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16693 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16694 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16695 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16696 * coffread.c (_initialize_coffread): Add declaration.
16697 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16698 * compile/compile.c (_initialize_compile): Add declaration.
16699 * complaints.c (_initialize_complaints): Add declaration.
16700 * completer.c (_initialize_completer): Add declaration.
16701 * copying.c (_initialize_copying): Add declaration.
16702 * corefile.c (_initialize_core): Add declaration.
16703 * corelow.c (_initialize_corelow): Add declaration.
16704 * cp-abi.c (_initialize_cp_abi): Add declaration.
16705 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16706 * cp-support.c (_initialize_cp_support): Add declaration.
16707 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16708 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16709 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16710 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16711 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16712 * ctfread.c (_initialize_ctfread): Add declaration.
16713 * d-lang.c (_initialize_d_language): Add declaration.
16714 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16715 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16716 * dbxread.c (_initialize_dbxread): Add declaration.
16717 * dcache.c (_initialize_dcache): Add declaration.
16718 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16719 * disasm.c (_initialize_disasm): Add declaration.
16720 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16721 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16722 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16723 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16724 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16725 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16726 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16727 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16728 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16729 * elfread.c (_initialize_elfread): Add declaration.
16730 * exec.c (_initialize_exec): Add declaration.
16731 * extension.c (_initialize_extension): Add declaration.
16732 * f-lang.c (_initialize_f_language): Add declaration.
16733 * f-valprint.c (_initialize_f_valprint): Add declaration.
16734 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16735 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16736 * filesystem.c (_initialize_filesystem): Add declaration.
16737 * findcmd.c (_initialize_mem_search): Add declaration.
16738 * findvar.c (_initialize_findvar): Add declaration.
16739 * fork-child.c (_initialize_fork_child): Add declaration.
16740 * frame-base.c (_initialize_frame_base): Add declaration.
16741 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16742 * frame.c (_initialize_frame): Add declaration.
16743 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16744 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16745 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16746 * gcore.c (_initialize_gcore): Add declaration.
16747 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16748 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16749 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16750 * gdbarch.c (_initialize_gdbarch): Add declaration.
16751 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16752 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16753 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16754 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16755 * go-lang.c (_initialize_go_language): Add declaration.
16756 * go32-nat.c (_initialize_go32_nat): Add declaration.
16757 * guile/guile.c (_initialize_guile): Add declaration.
16758 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16759 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16760 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16761 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16762 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16763 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16764 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16765 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16766 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16767 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16768 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16769 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16770 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16771 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16772 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16773 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16774 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16775 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16776 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16777 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16778 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16779 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16780 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16781 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16782 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16783 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16784 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16785 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16786 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16787 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16788 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16789 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16790 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16791 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16792 * infcall.c (_initialize_infcall): Add declaration.
16793 * infcmd.c (_initialize_infcmd): Add declaration.
16794 * inflow.c (_initialize_inflow): Add declaration.
16795 * infrun.c (_initialize_infrun): Add declaration.
16796 * interps.c (_initialize_interpreter): Add declaration.
16797 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16798 * jit.c (_initialize_jit): Add declaration.
16799 * language.c (_initialize_language): Add declaration.
16800 * linux-fork.c (_initialize_linux_fork): Add declaration.
16801 * linux-nat.c (_initialize_linux_nat): Add declaration.
16802 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16803 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16804 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16805 * m2-lang.c (_initialize_m2_language): Add declaration.
16806 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16807 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16808 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16809 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16810 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16811 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16812 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16813 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16814 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16815 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16816 * machoread.c (_initialize_machoread): Add declaration.
16817 * macrocmd.c (_initialize_macrocmd): Add declaration.
16818 * macroscope.c (_initialize_macroscope): Add declaration.
16819 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16820 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16821 * maint.c (_initialize_maint_cmds): Add declaration.
16822 * mdebugread.c (_initialize_mdebugread): Add declaration.
16823 * memattr.c (_initialize_mem): Add declaration.
16824 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16825 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16826 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16827 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16828 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16829 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16830 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16831 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16832 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16833 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16834 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16835 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16836 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16837 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16838 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16839 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16840 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16841 * mipsread.c (_initialize_mipsread): Add declaration.
16842 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16843 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16844 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16845 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16846 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16847 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16848 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16849 * nto-procfs.c (_initialize_procfs): Add declaration.
16850 * objc-lang.c (_initialize_objc_language): Add declaration.
16851 * observable.c (_initialize_observer): Add declaration.
16852 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16853 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16854 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16855 * osabi.c (_initialize_gdb_osabi): Add declaration.
16856 * osdata.c (_initialize_osdata): Add declaration.
16857 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16858 * parse.c (_initialize_parse): Add declaration.
16859 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16860 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16861 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16862 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16863 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16864 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16865 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16866 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16867 * printcmd.c (_initialize_printcmd): Add declaration.
16868 * probe.c (_initialize_probe): Add declaration.
16869 * proc-api.c (_initialize_proc_api): Add declaration.
16870 * proc-events.c (_initialize_proc_events): Add declaration.
16871 * proc-service.c (_initialize_proc_service): Add declaration.
16872 * procfs.c (_initialize_procfs): Add declaration.
16873 * producer.c (_initialize_producer): Add declaration.
16874 * psymtab.c (_initialize_psymtab): Add declaration.
16875 * python/python.c (_initialize_python): Add declaration.
16876 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16877 * record-btrace.c (_initialize_record_btrace): Add declaration.
16878 * record-full.c (_initialize_record_full): Add declaration.
16879 * record.c (_initialize_record): Add declaration.
16880 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16881 * regcache.c (_initialize_regcache): Add declaration.
16882 * reggroups.c (_initialize_reggroup): Add declaration.
16883 * remote-notif.c (_initialize_notif): Add declaration.
16884 * remote-sim.c (_initialize_remote_sim): Add declaration.
16885 * remote.c (_initialize_remote): Add declaration.
16886 * reverse.c (_initialize_reverse): Add declaration.
16887 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16888 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16889 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16890 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16891 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16892 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16893 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16894 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16895 Add declaration.
16896 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16897 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16898 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16899 * rust-exp.y (_initialize_rust_exp): Add declaration.
16900 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16901 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16902 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16903 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16904 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16905 * score-tdep.c (_initialize_score_tdep): Add declaration.
16906 * ser-go32.c (_initialize_ser_dos): Add declaration.
16907 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16908 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16909 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16910 * ser-uds.c (_initialize_ser_socket): Add declaration.
16911 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16912 * serial.c (_initialize_serial): Add declaration.
16913 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16914 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16915 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16916 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16917 * skip.c (_initialize_step_skip): Add declaration.
16918 * sol-thread.c (_initialize_sol_thread): Add declaration.
16919 * solib-aix.c (_initialize_solib_aix): Add declaration.
16920 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16921 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16922 * solib-frv.c (_initialize_frv_solib): Add declaration.
16923 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16924 * solib-target.c (_initialize_solib_target): Add declaration.
16925 * solib.c (_initialize_solib): Add declaration.
16926 * source-cache.c (_initialize_source_cache): Add declaration.
16927 * source.c (_initialize_source): Add declaration.
16928 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16929 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16930 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16931 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16932 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16933 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16934 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16935 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16936 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16937 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16938 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16939 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16940 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16941 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16942 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16943 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16944 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16945 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16946 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16947 * stabsread.c (_initialize_stabsread): Add declaration.
16948 * stack.c (_initialize_stack): Add declaration.
16949 * stap-probe.c (_initialize_stap_probe): Add declaration.
16950 * std-regs.c (_initialize_frame_reg): Add declaration.
16951 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16952 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16953 * symfile.c (_initialize_symfile): Add declaration.
16954 * symmisc.c (_initialize_symmisc): Add declaration.
16955 * symtab.c (_initialize_symtab): Add declaration.
16956 * target.c (_initialize_target): Add declaration.
16957 * target-connection.c (_initialize_target_connection): Add
16958 declaration.
16959 * target-dcache.c (_initialize_target_dcache): Add declaration.
16960 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16961 * thread.c (_initialize_thread): Add declaration.
16962 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16963 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16964 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16965 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16966 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16967 * tracectf.c (_initialize_ctf): Add declaration.
16968 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16969 * tracefile.c (_initialize_tracefile): Add declaration.
16970 * tracepoint.c (_initialize_tracepoint): Add declaration.
16971 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16972 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16973 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16974 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16975 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16976 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16977 * tui/tui.c (_initialize_tui): Add declaration.
16978 * typeprint.c (_initialize_typeprint): Add declaration.
16979 * ui-style.c (_initialize_ui_style): Add declaration.
16980 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16981 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16982 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16983 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16984 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16985 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16986 * unittests/filtered_iterator-selftests.c
16987 (_initialize_filtered_iterator_selftests): Add declaration.
16988 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16989 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16990 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16991 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16992 * unittests/main-thread-selftests.c
16993 (_initialize_main_thread_selftests): Add declaration.
16994 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16995 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16996 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16997 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16998 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16999 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17000 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17001 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17002 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17003 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17004 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17005 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17006 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17007 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17008 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17009 declaration.
17010 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17011 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17012 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17013 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17014 * user-regs.c (_initialize_user_regs): Add declaration.
17015 * utils.c (_initialize_utils): Add declaration.
17016 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17017 * valops.c (_initialize_valops): Add declaration.
17018 * valprint.c (_initialize_valprint): Add declaration.
17019 * value.c (_initialize_values): Add declaration.
17020 * varobj.c (_initialize_varobj): Add declaration.
17021 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17022 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17023 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17024 * windows-nat.c (_initialize_windows_nat): Add declaration.
17025 (_initialize_check_for_gdb_ini): Add declaration.
17026 (_initialize_loadable): Add declaration.
17027 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17028 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17029 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17030 * xcoffread.c (_initialize_xcoffread): Add declaration.
17031 * xml-support.c (_initialize_xml_support): Add declaration.
17032 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17033 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17034 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17035 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17036
e2de1eec
SM
170372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17038
17039 * regformats/regdat.sh: Generate declaration for init function.
17040
e0037b4c
SM
170412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17042
17043 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17044 up.
17045 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17046 close_one_inferior>: New methods.
17047 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17048 pass down target to find_inferior_pid.
17049 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17050 Pass down target to find_inferior_ptid.
17051 (gdbsim_target::create_inferior): Pass down target to
17052 add_thread_silent.
17053 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17054 target down to find_inferior_ptid and switch_to_thread.
17055 (gdbsim_target::close): Update to call close_one_inferior.
17056 (struct resume_data): Remove.
17057 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17058 directly, rather than through a void pointer.
17059 (gdbsim_target::resume): Update to call resume_one_inferior.
17060
58920b5b
SM
170612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17062
17063 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17064
4ec89149
PA
170652020-01-12 Pedro Alves <palves@redhat.com>
17066
17067 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17068 directly for the current inferior instead of
17069 discard_all_inferiors.
17070 (discard_all_inferiors): Delete.
17071
7c392d1d
TT
170722020-01-11 Tom Tromey <tom@tromey.com>
17073
17074 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17075 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17076 deprecated_safe_get_selected_frame.
17077
d9ebdab7
TBA
170782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17079
17080 * inferior.c (print_inferior): Switch inferior before printing it.
17081
f3c469b9
PA
170822020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17083 Pedro Alves <palves@redhat.com>
17084
17085 * progspace-and-thread.c (switch_to_program_space_and_thread):
17086 Assert there's an inferior for PSPACE. Use
17087 switch_to_inferior_no_thread to switch the inferior too.
17088 * progspace.c (program_space::~program_space): Call
17089 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17090 (program_space::free_all_objfiles): Don't call clear_symtab_users
17091 here.
17092 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17093
65c574f6
PA
170942020-01-10 Pedro Alves <palves@redhat.com>
17095
17096 * NEWS: Mention multi-target debugging, "info connections", and
17097 "add-inferior -no-connection".
17098
2f4fcf00
PA
170992020-01-10 Pedro Alves <palves@redhat.com>
17100
17101 * infrun.c: Include "target-connection.h".
17102 (check_multi_target_resumption): New.
17103 (proceed): Call it.
17104 * target-connection.c (make_target_connection_string): Make
17105 extern.
17106 * target-connection.h (make_target_connection_string): Declare.
17107
121b3efd
PA
171082020-01-10 Pedro Alves <palves@redhat.com>
17109
17110 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17111 * inferior.c (uiout_field_connection): New function.
17112 (print_inferior): Add new "connection-id" column.
17113 (add_inferior_command): Show connection number/string of added
17114 inferior.
17115 * process-stratum-target.h
17116 (process_stratum_target::connection_string): New virtual method.
17117 (process_stratum_target::connection_number): New field.
17118 * remote.c (remote_target::connection_string): New override.
17119 * target-connection.c: New file.
17120 * target-connection.h: New file.
17121 * target.c (decref_target): Remove process_stratum targets from
17122 the connection list.
17123 (target_stack::push): Add process_stratum targets to the
17124 connection list.
17125
4f837581
PA
171262020-01-10 Pedro Alves <palves@redhat.com>
17127
17128 Revert:
17129 2016-04-12 Pedro Alves <palves@redhat.com>
17130 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17131 Remove references to name.
17132 * serial.h (struct serial) <name>: Delete.
17133
f4ec508e
PA
171342020-01-10 Pedro Alves <palves@redhat.com>
17135
17136 * gdbarch-selftests.c (register_to_value_test): Remove "target
17137 already pushed" check.
17138
5b6d1e4f
PA
171392020-01-10 Pedro Alves <palves@redhat.com>
17140 John Baldwin <jhb@FreeBSD.org>
17141
17142 * aarch64-linux-nat.c
17143 (aarch64_linux_nat_target::thread_architecture): Adjust.
17144 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17145 (task_command_1): Likewise.
17146 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17147 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17148 (aix_thread_target::store_registers)
17149 (aix_thread_target::thread_alive): Adjust.
17150 * amd64-fbsd-tdep.c: Include "inferior.h".
17151 (amd64fbsd_get_thread_local_address): Pass down target.
17152 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17153 thread's gdbarch instead of target_gdbarch.
17154 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17155 get_last_target_status.
17156 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17157 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17158 inferiors.
17159 (update_inserted_breakpoint_locations): Skip if inferiors with no
17160 execution.
17161 (update_global_location_list): When handling moribund locations,
17162 find representative inferior for location's pspace, and use thread
17163 count of its process_stratum target.
17164 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17165 * bsd-uthread.c (bsd_uthread_target::wait): Use
17166 as_process_stratum_target and adjust thread_change_ptid and
17167 add_thread calls.
17168 (bsd_uthread_target::update_thread_list): Use
17169 as_process_stratum_target and adjust find_thread_ptid,
17170 thread_change_ptid and add_thread calls.
17171 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17172 find_thread_ptid call.
17173 * corelow.c (add_to_thread_list): Adjust add_thread call.
17174 (core_target_open): Adjust add_thread_silent and thread_count
17175 calls.
17176 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17177 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17178 * event-top.c (async_disconnect): Pop targets from all inferiors.
17179 * exec.c (add_target_sections): Push exec target on all inferiors
17180 sharing the program space.
17181 (remove_target_sections): Remove the exec target from all
17182 inferiors sharing the program space.
17183 (exec_on_vfork): New.
17184 * exec.h (exec_on_vfork): Declare.
17185 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17186 Pass it down.
17187 (fbsd_nat_target::update_thread_list): Adjust.
17188 (fbsd_nat_target::resume): Adjust.
17189 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17190 down.
17191 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17192 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17193 get_thread_arch_regcache call.
17194 * fork-child.c (gdb_startup_inferior): Pass target down to
17195 startup_inferior and set_executing.
17196 * gdbthread.h (struct process_stratum_target): Forward declare.
17197 (add_thread, add_thread_silent, add_thread_with_info)
17198 (in_thread_list): Add process_stratum_target parameter.
17199 (find_thread_ptid(inferior*, ptid_t)): New overload.
17200 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17201 parameter.
17202 (all_threads()): Delete overload.
17203 (all_threads, all_non_exited_threads): Add process_stratum_target
17204 parameter.
17205 (all_threads_safe): Use brace initialization.
17206 (thread_count): Add process_stratum_target parameter.
17207 (set_resumed, set_running, set_stop_requested, set_executing)
17208 (threads_are_executing, finish_thread_state): Add
17209 process_stratum_target parameter.
17210 (switch_to_thread): Use is_current_thread.
17211 * i386-fbsd-tdep.c: Include "inferior.h".
17212 (i386fbsd_get_thread_local_address): Pass down target.
17213 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17214 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17215 have_inferiors check.
17216 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17217 (inf_ptrace_target::attach): Adjust.
17218 * infcall.c (run_inferior_call): Adjust.
17219 * infcmd.c (run_command_1): Pass target to
17220 scoped_finish_thread_state.
17221 (proceed_thread_callback): Skip inferiors with no execution.
17222 (continue_command): Rename 'all_threads' local to avoid hiding
17223 'all_threads' function. Adjust get_last_target_status call.
17224 (prepare_one_step): Adjust set_running call.
17225 (signal_command): Use user_visible_resume_target. Compare thread
17226 pointers instead of inferior_ptid.
17227 (info_program_command): Adjust to pass down target.
17228 (attach_command): Mark target's 'thread_executing' flag.
17229 (stop_current_target_threads_ns): New, factored out from ...
17230 (interrupt_target_1): ... this. Switch inferior before making
17231 target calls.
17232 * inferior-iter.h
17233 (struct all_inferiors_iterator, struct all_inferiors_range)
17234 (struct all_inferiors_safe_range)
17235 (struct all_non_exited_inferiors_range): Filter on
17236 process_stratum_target too. Remove explicit.
17237 * inferior.c (inferior::inferior): Push dummy target on target
17238 stack.
17239 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17240 Add process_stratum_target parameter, and pass it down.
17241 (have_live_inferiors): Adjust.
17242 (switch_to_inferior_and_push_target): New.
17243 (add_inferior_command, clone_inferior_command): Handle
17244 "-no-connection" parameter. Use
17245 switch_to_inferior_and_push_target.
17246 (_initialize_inferior): Mention "-no-connection" option in
17247 the help of "add-inferior" and "clone-inferior" commands.
17248 * inferior.h: Include "process-stratum-target.h".
17249 (interrupt_target_1): Use bool.
17250 (struct inferior) <push_target, unpush_target, target_is_pushed,
17251 find_target_beneath, top_target, process_target, target_at,
17252 m_stack>: New.
17253 (discard_all_inferiors): Delete.
17254 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17255 (all_inferiors, all_non_exited_inferiors): Add
17256 process_stratum_target parameter.
17257 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17258 (target_last_proc_target): New global.
17259 (follow_fork_inferior): Push target on new inferior. Pass target
17260 to add_thread_silent. Call exec_on_vfork. Handle target's
17261 reference count.
17262 (follow_fork): Adjust get_last_target_status call. Also consider
17263 target.
17264 (follow_exec): Push target on new inferior.
17265 (struct execution_control_state) <target>: New field.
17266 (user_visible_resume_target): New.
17267 (do_target_resume): Call target_async.
17268 (resume_1): Set target's threads_executing flag. Consider resume
17269 target.
17270 (commit_resume_all_targets): New.
17271 (proceed): Also consider resume target. Skip threads of inferiors
17272 with no execution. Commit resumtion in all targets.
17273 (start_remote): Pass current inferior to wait_for_inferior.
17274 (infrun_thread_stop_requested): Consider target as well. Pass
17275 thread_info pointer to clear_inline_frame_state instead of ptid.
17276 (infrun_thread_thread_exit): Consider target as well.
17277 (random_pending_event_thread): New inferior parameter. Use it.
17278 (do_target_wait): Rename to ...
17279 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17280 down.
17281 (threads_are_resumed_pending_p, do_target_wait): New.
17282 (prepare_for_detach): Adjust calls.
17283 (wait_for_inferior): New inferior parameter. Handle it. Use
17284 do_target_wait_1 instead of do_target_wait.
17285 (fetch_inferior_event): Adjust. Switch to representative
17286 inferior. Pass target down.
17287 (set_last_target_status): Add process_stratum_target parameter.
17288 Save target in global.
17289 (get_last_target_status): Add process_stratum_target parameter and
17290 handle it.
17291 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17292 (context_switch): Check inferior_ptid == null_ptid before calling
17293 inferior_thread().
17294 (get_inferior_stop_soon): Pass down target.
17295 (wait_one): Rename to ...
17296 (poll_one_curr_target): ... this.
17297 (struct wait_one_event): New.
17298 (wait_one): New.
17299 (stop_all_threads): Adjust.
17300 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17301 event's target.
17302 (switch_back_to_stepped_thread): Also consider target.
17303 (print_stop_event): Update.
17304 (normal_stop): Update. Also consider the resume target.
17305 * infrun.h (wait_for_inferior): Remove declaration.
17306 (user_visible_resume_target): New declaration.
17307 (get_last_target_status, set_last_target_status): New
17308 process_stratum_target parameter.
17309 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17310 process_stratum_target parameter, and use it.
17311 (clear_inline_frame_state (thread_info*)): New.
17312 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17313 process_stratum_target parameter.
17314 (clear_inline_frame_state (thread_info*)): Declare.
17315 * linux-fork.c (delete_checkpoint_command): Pass target down to
17316 find_thread_ptid.
17317 (checkpoint_command): Adjust.
17318 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17319 instead of just tweaking inferior_ptid.
17320 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17321 (exit_lwp): Pass target down to find_thread_ptid.
17322 (attach_proc_task_lwp_callback): Pass target down to
17323 add_thread/set_running/set_executing.
17324 (linux_nat_target::attach): Pass target down to
17325 thread_change_ptid.
17326 (get_detach_signal): Pass target down to find_thread_ptid.
17327 Consider last target status's target.
17328 (linux_resume_one_lwp_throw, resume_lwp)
17329 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17330 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17331 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17332 (linux_nat_target::async_wait_fd): New.
17333 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17334 target down.
17335 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17336 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17337 * linux-thread-db.c (struct thread_db_info::process_target): New
17338 field.
17339 (add_thread_db_info): Save target.
17340 (get_thread_db_info): New process_stratum_target parameter. Also
17341 match target.
17342 (delete_thread_db_info): New process_stratum_target parameter.
17343 Also match target.
17344 (thread_from_lwp): Adjust to pass down target.
17345 (thread_db_notice_clone): Pass down target.
17346 (check_thread_db_callback): Pass down target.
17347 (try_thread_db_load_1): Always push the thread_db target.
17348 (try_thread_db_load, record_thread): Pass target down.
17349 (thread_db_target::detach): Pass target down. Always unpush the
17350 thread_db target.
17351 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17352 target down. Always unpush the thread_db target.
17353 (find_new_threads_callback, thread_db_find_new_threads_2)
17354 (thread_db_target::update_thread_list): Pass target down.
17355 (thread_db_target::pid_to_str): Pass current inferior down.
17356 (thread_db_target::get_thread_local_address): Pass target down.
17357 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17358 target down.
17359 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17360 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17361 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17362 (procfs_init_inferior): Rename to ...
17363 (procfs_target::procfs_init_inferior): ... this and adjust.
17364 (procfs_target::create_inferior, procfs_notice_thread)
17365 (procfs_do_thread_registers): Adjust.
17366 * ppc-fbsd-tdep.c: Include "inferior.h".
17367 (ppcfbsd_get_thread_local_address): Pass down target.
17368 * proc-service.c (ps_xfer_memory): Switch current inferior and
17369 program space as well.
17370 (get_ps_regcache): Pass target down.
17371 * process-stratum-target.c
17372 (process_stratum_target::thread_address_space)
17373 (process_stratum_target::thread_architecture): Pass target down.
17374 * process-stratum-target.h
17375 (process_stratum_target::threads_executing): New field.
17376 (as_process_stratum_target): New.
17377 * ravenscar-thread.c
17378 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17379 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17380 down.
17381 * record-btrace.c (record_btrace_target::info_record): Adjust.
17382 (record_btrace_target::record_method)
17383 (record_btrace_target::record_is_replaying)
17384 (record_btrace_target::fetch_registers)
17385 (get_thread_current_frame_id, record_btrace_target::resume)
17386 (record_btrace_target::wait, record_btrace_target::stop): Pass
17387 target down.
17388 * record-full.c (record_full_wait_1): Switch to event thread.
17389 Pass target down.
17390 * regcache.c (regcache::regcache)
17391 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17392 process_stratum_target parameter and handle it.
17393 (current_thread_target): New global.
17394 (get_thread_regcache): Add process_stratum_target parameter and
17395 handle it. Switch inferior before calling target method.
17396 (get_thread_regcache): Pass target down.
17397 (get_thread_regcache_for_ptid): Pass target down.
17398 (registers_changed_ptid): Add process_stratum_target parameter and
17399 handle it.
17400 (registers_changed_thread, registers_changed): Pass target down.
17401 (test_get_thread_arch_aspace_regcache): New.
17402 (current_regcache_test): Define a couple local test_target_ops
17403 instances and use them for testing.
17404 (readwrite_regcache): Pass process_stratum_target parameter.
17405 (cooked_read_test, cooked_write_test): Pass mock_target down.
17406 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17407 (get_thread_arch_aspace_regcache): Add process_stratum_target
17408 parameter.
17409 (regcache::target): New method.
17410 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17411 (regcache::registers_changed_ptid): Add process_stratum_target
17412 parameter.
17413 (regcache::m_target): New field.
17414 (registers_changed_ptid): Add process_stratum_target parameter.
17415 * remote.c (remote_state::supports_vCont_probed): New field.
17416 (remote_target::async_wait_fd): New method.
17417 (remote_unpush_and_throw): Add remote_target parameter.
17418 (get_current_remote_target): Adjust.
17419 (remote_target::remote_add_inferior): Push target.
17420 (remote_target::remote_add_thread)
17421 (remote_target::remote_notice_new_inferior)
17422 (get_remote_thread_info): Pass target down.
17423 (remote_target::update_thread_list): Skip threads of inferiors
17424 bound to other targets. (remote_target::close): Don't discard
17425 inferiors. (remote_target::add_current_inferior_and_thread)
17426 (remote_target::process_initial_stop_replies)
17427 (remote_target::start_remote)
17428 (remote_target::remote_serial_quit_handler): Pass down target.
17429 (remote_target::remote_unpush_target): New remote_target
17430 parameter. Unpush the target from all inferiors.
17431 (remote_target::remote_unpush_and_throw): New remote_target
17432 parameter. Pass it down.
17433 (remote_target::open_1): Check whether the current inferior has
17434 execution instead of checking whether any inferior is live. Pass
17435 target down.
17436 (remote_target::remote_detach_1): Pass down target. Use
17437 remote_unpush_target.
17438 (extended_remote_target::attach): Pass down target.
17439 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17440 (remote_target::append_resumption): Pass down target.
17441 (remote_target::append_pending_thread_resumptions)
17442 (remote_target::remote_resume_with_hc, remote_target::resume)
17443 (remote_target::commit_resume): Pass down target.
17444 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17445 (remote_target::interrupt_query)
17446 (remote_target::remove_new_fork_children)
17447 (remote_target::check_pending_events_prevent_wildcard_vcont)
17448 (remote_target::remote_parse_stop_reply)
17449 (remote_target::process_stop_reply): Pass down target.
17450 (first_remote_resumed_thread): New remote_target parameter. Pass
17451 it down.
17452 (remote_target::wait_as): Pass down target.
17453 (unpush_and_perror): New remote_target parameter. Pass it down.
17454 (remote_target::readchar, remote_target::remote_serial_write)
17455 (remote_target::getpkt_or_notif_sane_1)
17456 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17457 down target.
17458 (remote_target::mourn_inferior): Pass down target. Use
17459 remote_unpush_target.
17460 (remote_target::core_of_thread)
17461 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17462 (remote_target::pid_to_exec_file)
17463 (remote_target::thread_handle_to_thread_info): Pass down target.
17464 (remote_target::async_wait_fd): New.
17465 * riscv-fbsd-tdep.c: Include "inferior.h".
17466 (riscv_fbsd_get_thread_local_address): Pass down target.
17467 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17468 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17469 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17470 Adjust.
17471 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17472 * solib-svr4.c (enable_break): Pass down target.
17473 * spu-multiarch.c (parse_spufs_run): Pass down target.
17474 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17475 * target-delegates.c: Regenerate.
17476 * target.c (g_target_stack): Delete.
17477 (current_top_target): Return the current inferior's top target.
17478 (target_has_execution_1): Refer to the passed-in inferior's top
17479 target.
17480 (target_supports_terminal_ours): Check whether the initial
17481 inferior was already created.
17482 (decref_target): New.
17483 (target_stack::push): Incref/decref the target.
17484 (push_target, push_target, unpush_target): Adjust.
17485 (target_stack::unpush): Defref target.
17486 (target_is_pushed): Return bool. Adjust to refer to the current
17487 inferior's target stack.
17488 (dispose_inferior): Delete, and inline parts ...
17489 (target_preopen): ... here. Only dispose of the current inferior.
17490 (target_detach): Hold strong target reference while detaching.
17491 Pass target down.
17492 (target_thread_name): Add assertion.
17493 (target_resume): Pass down target.
17494 (target_ops::beneath, find_target_at): Adjust to refer to the
17495 current inferior's target stack.
17496 (get_dummy_target): New.
17497 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17498 has a thread running.
17499 (initialize_targets): Rename to ...
17500 (_initialize_target): ... this.
17501 * target.h: Include "gdbsupport/refcounted-object.h".
17502 (struct target_ops): Inherit refcounted_object.
17503 (target_ops::shortname, target_ops::longname): Make const.
17504 (target_ops::async_wait_fd): New method.
17505 (decref_target): Declare.
17506 (struct target_ops_ref_policy): New.
17507 (target_ops_ref): New typedef.
17508 (get_dummy_target): Declare function.
17509 (target_is_pushed): Return bool.
17510 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17511 (all_matching_threads_iterator::all_matching_threads_iterator):
17512 Handle filter target.
17513 * thread-iter.h (struct all_matching_threads_iterator, struct
17514 all_matching_threads_range, class all_non_exited_threads_range):
17515 Filter by target too. Remove explicit.
17516 * thread.c (threads_executing): Delete.
17517 (inferior_thread): Pass down current inferior.
17518 (clear_thread_inferior_resources): Pass down thread pointer
17519 instead of ptid_t.
17520 (add_thread_silent, add_thread_with_info, add_thread): Add
17521 process_stratum_target parameter. Use it for thread and inferior
17522 searches.
17523 (is_current_thread): New.
17524 (thread_info::deletable): Use it.
17525 (find_thread_ptid, thread_count, in_thread_list)
17526 (thread_change_ptid, set_resumed, set_running): New
17527 process_stratum_target parameter. Pass it down.
17528 (set_executing): New process_stratum_target parameter. Pass it
17529 down. Adjust reference to 'threads_executing'.
17530 (threads_are_executing): New process_stratum_target parameter.
17531 Adjust reference to 'threads_executing'.
17532 (set_stop_requested, finish_thread_state): New
17533 process_stratum_target parameter. Pass it down.
17534 (switch_to_thread): Also match inferior.
17535 (switch_to_thread): New process_stratum_target parameter. Pass it
17536 down.
17537 (update_threads_executing): Reimplement.
17538 * top.c (quit_force): Pop targets from all inferior.
17539 (gdb_init): Don't call initialize_targets.
17540 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17541 Declare.
17542 (windows_add_thread, windows_delete_thread): Adjust.
17543 (get_windows_debug_event): Rename to ...
17544 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17545 * tracefile-tfile.c (tfile_target_open): Pass down target.
17546 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17547 Forward declare.
17548 (switch_to_thread): Add process_stratum_target parameter.
17549 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17550 parameter. Use it.
17551 (mi_on_resume): Pass target down.
17552 * nat/fork-inferior.c (startup_inferior): Add
17553 process_stratum_target parameter. Pass it down.
17554 * nat/fork-inferior.h (startup_inferior): Add
17555 process_stratum_target parameter.
17556 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17557
75c6c844
PA
175582020-01-10 Pedro Alves <palves@redhat.com>
17559
17560 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17561 directly. Instead find the first thread in the thread list and
17562 use switch_to_thread.
17563
78f2c40a
PA
175642020-01-10 Pedro Alves <palves@redhat.com>
17565
17566 * remote.c (remote_target::remote_add_inferior): Don't bind a
17567 process to the current inferior if the current inferior is already
17568 bound to a process.
17569
e7af6c70
TBA
175702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17571 Pedro Alves <palves@redhat.com>
17572
17573 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17574 If no process is specified, return null_ptid instead of
17575 inferior_ptid.
17576 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17577 TARGET_WAITKIND_SIGNALLED with no pid.
17578
31ba933e
PA
175792020-01-10 Pedro Alves <palves@redhat.com>
17580
17581 * remote.c (first_remote_resumed_thread): New.
17582 (remote_target::wait_as): Use it as default event_ptid instead of
17583 inferior_ptid.
17584
735fc2ca
PA
175852020-01-10 Pedro Alves <palves@redhat.com>
17586
17587 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17588
c17e02e1
PA
175892020-01-10 Pedro Alves <palves@redhat.com>
17590
17591 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17592 not -1.
17593
ab1ddbcf
PA
175942020-01-10 Pedro Alves <palves@redhat.com>
17595
17596 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17597 ptid to get_last_target_status.
17598 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17599 ptid to get_last_target_status.
17600 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17601 get_last_target_status.
17602 (info_program_command): Don't pass a target_waitstatus to
17603 get_last_target_status.
17604 * infrun.c (init_wait_for_inferior): Use
17605 nullify_last_target_wait_ptid.
17606 (get_last_target_status): Handle nullptr arguments.
17607 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17608 (print_stop_event): Don't pass a ptid to get_last_target_status.
17609 (normal_stop): Don't pass a ptid to get_last_target_status.
17610 * infrun.h (get_last_target_status, set_last_target_status): Move
17611 comments here and update.
17612 (nullify_last_target_wait_ptid): Declare.
17613 * linux-fork.c (fork_load_infrun_state): Remove local extern
17614 declaration of nullify_last_target_wait_ptid.
17615 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17616 to get_last_target_status.
17617
f3f8ece4
PA
176182020-01-10 Pedro Alves <palves@redhat.com>
17619
17620 * gdbthread.h (scoped_restore_current_thread)
17621 <dont_restore, restore, m_dont_restore>: Declare.
17622 * thread.c (thread_alive): Add assertion. Return bool.
17623 (switch_to_thread_if_alive): New.
17624 (prune_threads): Switch inferior/thread.
17625 (print_thread_info_1): Switch thread before calling target methods.
17626 (scoped_restore_current_thread::restore): New, factored out from
17627 ...
17628 (scoped_restore_current_thread::~scoped_restore_current_thread):
17629 ... this.
17630 (scoped_restore_current_thread::scoped_restore_current_thread):
17631 Add assertion.
17632 (thread_apply_all_command, thread_select): Use
17633 switch_to_thread_if_alive.
17634 * infrun.c (proceed, restart_threads, handle_signal_stop)
17635 (switch_back_to_stepped_thread): Switch current thread before
17636 calling target methods.
17637
db2d40f7
PA
176382020-01-10 Pedro Alves <palves@redhat.com>
17639
17640 * inferior.c (switch_to_inferior_no_thread): New function,
17641 factored out from ...
17642 (inferior_command): ... here.
17643 * inferior.h (switch_to_inferior_no_thread): Declare.
17644 * mi/mi-main.c (run_one_inferior): Use
17645 switch_to_inferior_no_thread.
17646
bd420a2d
PA
176472020-01-10 Pedro Alves <palves@redhat.com>
17648
17649 * infcmd.c (kill_command): Remove dead code.
17650
ddf5db90
PA
176512020-01-10 Pedro Alves <palves@redhat.com>
17652
17653 * remote.c (remote_target::mourn_inferior): No longer check
17654 whether the target is running.
17655
5018ce90
PA
176562020-01-10 Pedro Alves <palves@redhat.com>
17657
17658 * corelow.c (core_target::has_execution): Change parameter type to
17659 inferior pointer.
17660 * inferior.c (number_of_live_inferiors): Use
17661 inferior::has_execution instead of target_has_execution_1.
17662 * inferior.h (inferior::has_execution): New.
17663 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17664 inferior::has_execution instead of target_has_execution_1.
17665 * process-stratum-target.c
17666 (process_stratum_target::has_execution): Change parameter type to
17667 inferior pointer. Check the inferior's PID instead of
17668 inferior_ptid.
17669 * process-stratum-target.h
17670 (process_stratum_target::has_execution): Change parameter type to
17671 inferior pointer.
17672 * record-full.c (record_full_core_target::has_execution): Change
17673 parameter type to inferior pointer.
17674 * target.c (target_has_execution_1): Change parameter type to
17675 inferior pointer.
17676 (target_has_execution_current): Adjust.
17677 * target.h (target_ops::has_execution): Change parameter type to
17678 inferior pointer.
17679 (target_has_execution_1): Change parameter type to inferior
17680 pointer. Change return type to bool.
17681 * tracefile.h (tracefile_target::has_execution): Change parameter
17682 type to inferior pointer.
17683
74375d18
PA
176842020-01-10 Pedro Alves <palves@redhat.com>
17685
17686 * exceptions.c (print_flush): Remove current_top_target() check.
17687
acdf84a6
PA
176882020-01-10 Pedro Alves <palves@redhat.com>
17689
17690 * remote.c (show_remote_exec_file): Show the current inferior's
17691 exec-file instead of the command variable's value.
17692
ec506636
PA
176932020-01-10 Pedro Alves <palves@redhat.com>
17694
17695 * record-full.c (record_full_resume_ptid): New global.
17696 (record_full_target::resume): Set it.
17697 (record_full_wait_1): Use record_full_resume_ptid instead of
17698 inferior_ptid.
17699
873657b9
PA
177002020-01-10 Pedro Alves <palves@redhat.com>
17701
17702 * gdbthread.h (scoped_restore_current_thread)
17703 <dont_restore, restore, m_dont_restore>: Declare.
17704 * thread.c (thread_alive): Add assertion. Return bool.
17705 (switch_to_thread_if_alive): New.
17706 (prune_threads): Switch inferior/thread.
17707 (print_thread_info_1): Switch thread before calling target methods.
17708 (scoped_restore_current_thread::restore): New, factored out from
17709 ...
17710 (scoped_restore_current_thread::~scoped_restore_current_thread):
17711 ... this.
17712 (scoped_restore_current_thread::scoped_restore_current_thread):
17713 Add assertion.
17714 (thread_apply_all_command, thread_select): Use
17715 switch_to_thread_if_alive.
17716
7f0ae84c
GB
177172020-01-10 George Barrett <bob@bob131.so>
17718
17719 * stap-probe.c (stap_modify_semaphore): Don't check for null
17720 semaphores.
17721 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17722 for null semaphores.
17723
f5a7c406
AB
177242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17725
17726 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17727 all source windows, and maintain horizontal scroll status while
17728 doing so.
17729
9ae6bf64
TT
177302020-01-09 Tom Tromey <tom@tromey.com>
17731
17732 PR tui/18932:
17733 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17734 update_source_window, not print_source_lines.
17735
b2efe70c
AB
177362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17737
17738 * tui/tui.c (tui_enable): Register tui hooks after calling
17739 tui_display_main.
17740
5f23a082
CB
177412020-01-09 Christian Biesinger <cbiesinger@google.com>
17742
17743 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17744
3061113b
SM
177452020-01-08 Simon Marchi <simon.marchi@efficios.com>
17746
17747 * thread.c (print_thread_info_1): Fix indentation.
17748
57d75002
CB
177492020-01-09 Christian Biesinger <cbiesinger@google.com>
17750
17751 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17752 unique_xmalloc_ptr outside the if to always free the demangled name.
17753
6a053cb1
TT
177542020-01-08 Tom Tromey <tromey@adacore.com>
17755
17756 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17757 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17758 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17759 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17760 Remove.
17761 (section_offsets): New typedef.
17762 * symtab.c (fixup_section, get_msymbol_address): Update.
17763 * symmisc.c (dump_msymbols): Update.
17764 * symfile.h (relative_addr_info_to_section_offsets)
17765 (symfile_map_offsets_to_segments): Update.
17766 * symfile.c (build_section_addr_info_from_objfile)
17767 (init_objfile_sect_indices): Update.
17768 (struct place_section_arg): Change type of "offsets".
17769 (place_section): Update.
17770 (relative_addr_info_to_section_offsets): Change type of
17771 "section_offsets". Remove "num_sections" parameter.
17772 (default_symfile_offsets, syms_from_objfile_1)
17773 (set_objfile_default_section_offset): Update.
17774 (reread_symbols): No need to preserve section offsets by hand.
17775 (symfile_map_offsets_to_segments): Change type of "offsets".
17776 * stap-probe.c (relocate_address): Update.
17777 * stabsread.h (process_one_symbol): Update.
17778 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17779 (solib_target_relocate_section_addresses): Update.
17780 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17781 Update.
17782 * solib-frv.c (frv_relocate_main_executable): Update.
17783 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17784 * solib-aix.c (solib_aix_get_section_offsets): Change return
17785 type.
17786 (solib_aix_solib_create_inferior_hook): Update.
17787 * remote.c (remote_target::get_offsets): Update.
17788 * psymtab.c (find_pc_sect_psymtab): Update.
17789 * psympriv.h (struct partial_symbol) <address, text_low,
17790 text_high>: Update.
17791 * objfiles.h (obj_section_offset): Update.
17792 (struct objfile) <section_offsets>: Change type.
17793 <num_sections>: Remove.
17794 (objfile_relocate): Update.
17795 * objfiles.c (entry_point_address_query): Update
17796 (relocate_one_symbol): Change type of "section_offsets".
17797 (objfile_relocate1, objfile_relocate1): Change type of
17798 "new_offsets".
17799 (objfile_rebase1): Update.
17800 * mipsread.c (mipscoff_symfile_read): Update.
17801 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17802 parameter.
17803 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17804 (parse_external, psymtab_to_symtab_1): Update.
17805 * machoread.c (macho_symfile_offsets): Update.
17806 * ia64-tdep.c (ia64_find_unwind_table): Update.
17807 * hppa-tdep.c (read_unwind_info): Update.
17808 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17809 * dwarf2read.c (create_addrmap_from_index)
17810 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17811 (process_psymtab_comp_unit_reader, add_partial_symbol)
17812 (add_partial_subprogram, process_full_comp_unit)
17813 (read_file_scope, read_func_scope, read_lexical_block_scope)
17814 (read_call_site_scope, dwarf2_rnglists_process)
17815 (dwarf2_ranges_process, dwarf2_ranges_read)
17816 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17817 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17818 Update.
17819 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17820 Update.
17821 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17822 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17823 (process_one_symbol): Change type of "section_offsets".
17824 * ctfread.c (get_objfile_text_range): Update.
17825 * coffread.c (coff_symtab_read, enter_linenos)
17826 (process_coff_symbol): Update.
17827 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17828 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17829
456e800a
TT
178302020-01-08 Tom Tromey <tromey@adacore.com>
17831
17832 * dwarf2read.c (parse_macro_definition): Use std::string.
17833 (parse_macro_definition): Likewise.
17834
6dfa2fc2
TT
178352020-01-08 Tom Tromey <tromey@adacore.com>
17836
17837 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17838 (ATTR_ALLOC_CHUNK): Remove.
17839
421d1616
TT
178402020-01-08 Tom Tromey <tromey@adacore.com>
17841
17842 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17843
43816ebc
TT
178442020-01-08 Tom Tromey <tromey@adacore.com>
17845
17846 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17847 (dwarf2_compute_name, open_dwo_file): Likewise.
17848 (process_enumeration_scope): Use std::vector.
17849 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17850 (partial_die_info::fixup, dwarf2_start_subfile)
17851 (guess_full_die_structure_name, dwarf2_name): Likewise.
17852 (determine_prefix): Update.
17853 (guess_full_die_structure_name): Make return type const.
17854 (partial_die_full_name): Return unique_xmalloc_ptr.
17855 (DW_FIELD_ALLOC_CHUNK): Remove.
17856
4212d509
TT
178572020-01-07 Tom Tromey <tromey@adacore.com>
17858
17859 PR build/24937:
17860 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17861
06a6207a
JT
178622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17863
17864 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17865
153d79c4
AB
178662020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17867
17868 * stack.c (print_frame_info): Move disassemble_next_line code
17869 inside source_print block.
17870
66182876
EZ
178712020-01-06 Eli Zaretskii <eliz@gnu.org>
17872
17873 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17874 gdb/signals.h, as we are now using native signal symbols.
17875
cbfa8581
SV
178762020-01-06 Shahab Vahedi <shahab@synopsys.com>
17877
17878 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17879 overflow by an early check of content vs threshold.
aac66a4c 17880 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17881 Likewise.
17882
3f602821
EZ
178832020-01-06 Eli Zaretskii <eliz@gnu.org>
17884
17885 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17886
a08c904d
JT
178872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17888
17889 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17890 export table if no section contains it's RVA.
17891
89a65580
EZ
178922020-01-06 Eli Zaretskii <eliz@gnu.org>
17893
17894 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17895
8b7fcda2
HD
178962020-01-06 Hannes Domani <ssbssa@yahoo.de>
17897
17898 * source.c (print_source_lines_base): Set last_line_listed.
17899
a61b4f69
SV
179002020-01-06 Shahab Vahedi <shahab@synopsys.com>
17901
17902 * tui/tui-disasm.c: Remove trailing spaces.
17903
559e7e50
EZ
179042020-01-06 Eli Zaretskii <eliz@gnu.org>
17905 Pedro Alves <palves@redhat.com>
17906
17907 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17908 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17909 (windows_gdb_signal_to_target): New function, uses the above
17910 enumeration to convert GDB internal signal codes to equivalent
17911 Windows codes.
17912 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17913 * windows-nat.c: Include "gdb_wait.h".
17914 (get_windows_debug_event): Extract the fatal exception from the
17915 exit status and convert to the equivalent Posix signal number.
17916 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17917 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17918 * gdbsupport/gdb_wait.c: New file, implements
17919 windows_status_to_termsig.
17920 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17921 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17922
f2302a34
AB
179232020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17924
17925 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17926 show_layout.
17927
6a5206eb
LM
179282020-01-05 Luis Machado <luis.machado@linaro.org>
17929
17930 * aarch64-linux-nat.c
17931 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17932 and bfd_mach_aarch64.
17933
6ec1d75e
PW
179342020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17935
17936 * ui-file.c (stdio_file::can_emit_style_escape)
17937 (tee_file::can_emit_style_escape): Ensure style is used also on
17938 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17939 to gdb_stdout.
17940 * main.c (set_gdb_data_directory): Use file style to output the
17941 warning that the given pathname is not a directory.
17942 * top.c (show_history_filename, gdb_safe_append_history)
17943 (show_gdb_datadir): Use file style.
17944
44f81a76
HD
179452020-01-03 Hannes Domani <ssbssa@yahoo.de>
17946
17947 * solib-target.c (struct lm_info_target):
17948 Change offsets to be a unique_xmalloc_ptr.
17949 (solib_target_relocate_section_addresses): Update.
17950
25057eb0
HD
179512020-01-03 Hannes Domani <ssbssa@yahoo.de>
17952
17953 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17954
6e2118f5
BE
179552020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17956
17957 * MAINTAINERS (Write After Approval): Add myself.
17958
8133c7dc
LM
179592020-01-02 Luis Machado <luis.machado@linaro.org>
17960
17961 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17962 Cell BE architecture.
17963 * target.h (struct target_ops) <thread_architecture>: Likewise.
17964
48189bec
HD
179652020-01-01 Hannes Domani <ssbssa@yahoo.de>
17966
17967 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17968
ead1063b
HD
179692020-01-01 Hannes Domani <ssbssa@yahoo.de>
17970
17971 * MAINTAINERS (Write After Approval): Add myself.
17972
e5d78223
JB
179732020-01-01 Joel Brobecker <brobecker@adacore.com>
17974
17975 * gdbarch.sh: Update copyright year range of generated files.
17976
b811d2c2
JB
179772020-01-01 Joel Brobecker <brobecker@adacore.com>
17978
17979 Update copyright year range in all GDB files.
17980
5f4def5c
JB
179812020-01-01 Joel Brobecker <brobecker@adacore.com>
17982
17983 * copyright.py: Convert to Python 3.
17984
51fd4002
JB
179852020-01-01 Joel Brobecker <brobecker@adacore.com>
17986
17987 * copyright.py: Adapt after move of gnulib directory from gdb
17988 directory to toplevel directory.
17989
5fb651f2
JB
179902020-01-01 Joel Brobecker <brobecker@adacore.com>
17991
17992 * copyright.py (main): Exit if run from the wrong directory.
17993
5dd8bf88
JB
179942020-01-01 Joel Brobecker <brobecker@adacore.com>
17995
17996 * top.c (print_gdb_version): Change copyright year to 2020.
17997
9f71dacb 179982020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17999
9f71dacb 18000 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18001
9f71dacb 18002For older changes see ChangeLog-2019.
c906108c
SS
18003\f
18004Local Variables:
18005mode: change-log
18006left-margin: 8
18007fill-column: 74
18008version-control: never
57da7796 18009coding: utf-8
c906108c 18010End: